Java Code Examples for org.chromium.chrome.browser.fullscreen.FullscreenManager#INVALID_TOKEN
The following examples show how to use
org.chromium.chrome.browser.fullscreen.FullscreenManager#INVALID_TOKEN .
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: ToolbarManager.java From delion with Apache License 2.0 | 6 votes |
/** * Triggered when the URL input field has gained or lost focus. * @param hasFocus Whether the URL field has gained focus. */ @Override public void onUrlFocusChange(boolean hasFocus) { mToolbar.onUrlFocusChange(hasFocus); if (mFindToolbarManager != null && hasFocus) mFindToolbarManager.hideToolbar(); if (mFullscreenManager == null) return; if (hasFocus) { mFullscreenFocusToken = mFullscreenManager.showControlsPersistentAndClearOldToken( mFullscreenFocusToken); } else { mFullscreenManager.hideControlsPersistent(mFullscreenFocusToken); mFullscreenFocusToken = FullscreenManager.INVALID_TOKEN; } }
Example 2
Source File: ToolbarManager.java From AndroidChromium with Apache License 2.0 | 6 votes |
/** * Triggered when the URL input field has gained or lost focus. * @param hasFocus Whether the URL field has gained focus. */ @Override public void onUrlFocusChange(boolean hasFocus) { mToolbar.onUrlFocusChange(hasFocus); if (mFindToolbarManager != null && hasFocus) mFindToolbarManager.hideToolbar(); if (mControlsVisibilityDelegate == null) return; if (hasFocus) { mFullscreenFocusToken = mControlsVisibilityDelegate .showControlsPersistentAndClearOldToken(mFullscreenFocusToken); } else { mControlsVisibilityDelegate.hideControlsPersistent(mFullscreenFocusToken); mFullscreenFocusToken = FullscreenManager.INVALID_TOKEN; } }
Example 3
Source File: ToolbarManager.java From 365browser with Apache License 2.0 | 6 votes |
/** * Triggered when the URL input field has gained or lost focus. * @param hasFocus Whether the URL field has gained focus. */ @Override public void onUrlFocusChange(boolean hasFocus) { mToolbar.onUrlFocusChange(hasFocus); if (mFindToolbarManager != null && hasFocus) mFindToolbarManager.hideToolbar(); if (mControlsVisibilityDelegate == null) return; if (hasFocus) { mFullscreenFocusToken = mControlsVisibilityDelegate .showControlsPersistentAndClearOldToken(mFullscreenFocusToken); } else { mControlsVisibilityDelegate.hideControlsPersistent(mFullscreenFocusToken); mFullscreenFocusToken = FullscreenManager.INVALID_TOKEN; } mUrlFocusChangedCallback.onResult(hasFocus); }
Example 4
Source File: Tab.java From delion with Apache License 2.0 | 5 votes |
/** * Triggers the hiding logic for the view backing the tab. */ public final void hide() { try { TraceEvent.begin("Tab.hide"); if (isHidden()) return; mIsHidden = true; if (mContentViewCore != null) mContentViewCore.onHide(); // Clean up any fullscreen state that might impact other tabs. if (mFullscreenManager != null) { mFullscreenManager.setPersistentFullscreenMode(false); mFullscreenManager.hideControlsPersistent(mFullscreenHungRendererToken); mFullscreenHungRendererToken = FullscreenManager.INVALID_TOKEN; } if (mTabUma != null) mTabUma.onHide(); mTabRedirectHandler.clear(); cancelEnableFullscreenLoadDelay(); // Allow this tab's NativePage to be frozen if it stays hidden for a while. NativePageAssassin.getInstance().tabHidden(this); for (TabObserver observer : mObservers) observer.onHidden(this); } finally { TraceEvent.end("Tab.hide"); } }
Example 5
Source File: Tab.java From delion with Apache License 2.0 | 5 votes |
/** * Clears hung renderer state. */ private void clearHungRendererState() { if (mFullscreenManager == null) return; mFullscreenManager.hideControlsPersistent(mFullscreenHungRendererToken); mFullscreenHungRendererToken = FullscreenManager.INVALID_TOKEN; updateFullscreenEnabledState(); }
Example 6
Source File: Tab.java From delion with Apache License 2.0 | 4 votes |
void handleRendererResponsive() { if (mFullscreenManager == null) return; mFullscreenManager.hideControlsPersistent(mFullscreenHungRendererToken); mFullscreenHungRendererToken = FullscreenManager.INVALID_TOKEN; }