Java Code Examples for org.chromium.chrome.browser.tab.Tab#updateFullscreenEnabledState()

The following examples show how to use org.chromium.chrome.browser.tab.Tab#updateFullscreenEnabledState() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FullscreenManager.java    From delion with Apache License 2.0 5 votes vote down vote up
/**
 * Enters or exits persistent fullscreen mode.  In this mode, the top controls will be
 * permanently hidden until this mode is exited.
 *
 * @param enabled Whether to enable persistent fullscreen mode.
 */
public void setPersistentFullscreenMode(boolean enabled) {
    mHtmlApiHandler.setPersistentFullscreenMode(enabled);

    Tab tab = mModelSelector.getCurrentTab();
    if (tab != null) {
        tab.updateFullscreenEnabledState();
    }
}
 
Example 2
Source File: FullscreenManager.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
/**
 * Enters or exits persistent fullscreen mode.  In this mode, the browser controls will be
 * permanently hidden until this mode is exited.
 *
 * @param enabled Whether to enable persistent fullscreen mode.
 */
public void setPersistentFullscreenMode(boolean enabled) {
    mHtmlApiHandler.setPersistentFullscreenMode(enabled);

    Tab tab = getTab();
    if (tab != null) {
        tab.updateFullscreenEnabledState();
    }
}
 
Example 3
Source File: FullscreenManager.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * Enters or exits persistent fullscreen mode.  In this mode, the browser controls will be
 * permanently hidden until this mode is exited.
 *
 * @param enabled Whether to enable persistent fullscreen mode.
 */
public void setPersistentFullscreenMode(boolean enabled) {
    mHtmlApiHandler.setPersistentFullscreenMode(enabled);

    Tab tab = getTab();
    if (tab != null) {
        tab.updateFullscreenEnabledState();
    }
}
 
Example 4
Source File: LayoutManagerDocument.java    From delion with Apache License 2.0 4 votes vote down vote up
@Override
public void releaseOverlayPanelContentViewCore() {
    if (getTabModelSelector() == null) return;
    Tab tab = getTabModelSelector().getCurrentTab();
    if (tab != null) tab.updateFullscreenEnabledState();
}
 
Example 5
Source File: LayoutManagerDocument.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public void releaseOverlayPanelContentViewCore() {
    if (getTabModelSelector() == null) return;
    Tab tab = getTabModelSelector().getCurrentTab();
    if (tab != null) tab.updateFullscreenEnabledState();
}
 
Example 6
Source File: LayoutManagerDocument.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public void releaseOverlayPanelContentViewCore() {
    if (getTabModelSelector() == null) return;
    Tab tab = getTabModelSelector().getCurrentTab();
    if (tab != null) tab.updateFullscreenEnabledState();
}