private WindowAndroid mWindow;
private boolean mLoading = false;
+ private boolean mIsFullscreen = false;
/**
* Constructor for inflating via XML.
@CalledByNative
private void toggleFullscreenModeForTab(boolean enterFullscreen) {
+ mIsFullscreen = enterFullscreen;
+ LinearLayout toolBar = (LinearLayout) findViewById(R.id.toolbar);
+ toolBar.setVisibility(enterFullscreen ? GONE : VISIBLE);
}
@CalledByNative
private boolean isFullscreenForTabOrPending() {
- return false;
+ return mIsFullscreen;
}
@SuppressWarnings("unused")
return mContentViewCore;
}
+ /**
+ * @return The {@link WebContents} currently managing the content shown by this Shell.
+ */
+ public WebContents getWebContents() {
+ return mWebContents;
+ }
+
private void setKeyboardVisibilityForUrl(boolean visible) {
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(
Context.INPUT_METHOD_SERVICE);