Java Code Examples for org.chromium.chrome.browser.compositor.layouts.components.LayoutTab#showToolbar()
The following examples show how to use
org.chromium.chrome.browser.compositor.layouts.components.LayoutTab#showToolbar() .
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: LayoutManagerDocumentTabSwitcher.java From delion with Apache License 2.0 | 6 votes |
@Override public void startHiding(int nextTabId, boolean hintAtTabSelection) { super.startHiding(nextTabId, hintAtTabSelection); Layout layoutBeingHidden = getActiveLayout(); if (isOverviewLayout(layoutBeingHidden)) { boolean showToolbar = true; if (layoutBeingHidden == mOverviewLayout) { final LayoutTab tab = layoutBeingHidden.getLayoutTab(nextTabId); // Note: this value is reversed in LayoutManagerChrome#startHiding. showToolbar = tab != null ? tab.showToolbar() : true; } boolean delayAnimation = false; for (OverviewModeObserver observer : mOverviewModeObservers) { observer.onOverviewModeStartedHiding(showToolbar, delayAnimation); } } }
Example 2
Source File: LayoutManagerChrome.java From delion with Apache License 2.0 | 6 votes |
@Override public void startHiding(int nextTabId, boolean hintAtTabSelection) { super.startHiding(nextTabId, hintAtTabSelection); Layout layoutBeingHidden = getActiveLayout(); if (isOverviewLayout(layoutBeingHidden)) { boolean showToolbar = true; if (mEnableAnimations && layoutBeingHidden == mOverviewLayout) { final LayoutTab tab = layoutBeingHidden.getLayoutTab(nextTabId); showToolbar = tab != null ? !tab.showToolbar() : true; } boolean creatingNtp = layoutBeingHidden == mOverviewLayout && mCreatingNtp; for (OverviewModeObserver observer : mOverviewModeObservers) { observer.onOverviewModeStartedHiding(showToolbar, creatingNtp); } } }
Example 3
Source File: LayoutManagerChrome.java From AndroidChromium with Apache License 2.0 | 6 votes |
@Override public void startHiding(int nextTabId, boolean hintAtTabSelection) { super.startHiding(nextTabId, hintAtTabSelection); Layout layoutBeingHidden = getActiveLayout(); if (isOverviewLayout(layoutBeingHidden)) { boolean showToolbar = true; if (mEnableAnimations && layoutBeingHidden == mOverviewLayout) { final LayoutTab tab = layoutBeingHidden.getLayoutTab(nextTabId); showToolbar = tab != null ? !tab.showToolbar() : true; } boolean creatingNtp = layoutBeingHidden == mOverviewLayout && mCreatingNtp; for (OverviewModeObserver observer : mOverviewModeObservers) { observer.onOverviewModeStartedHiding(showToolbar, creatingNtp); } } }
Example 4
Source File: LayoutManagerChrome.java From 365browser with Apache License 2.0 | 6 votes |
@Override public void startHiding(int nextTabId, boolean hintAtTabSelection) { super.startHiding(nextTabId, hintAtTabSelection); Layout layoutBeingHidden = getActiveLayout(); if (isOverviewLayout(layoutBeingHidden)) { boolean showToolbar = true; if (mEnableAnimations && layoutBeingHidden == mOverviewLayout) { final LayoutTab tab = layoutBeingHidden.getLayoutTab(nextTabId); showToolbar = tab != null ? !tab.showToolbar() : true; } boolean creatingNtp = layoutBeingHidden == mOverviewLayout && mCreatingNtp; for (OverviewModeObserver observer : mOverviewModeObservers) { observer.onOverviewModeStartedHiding(showToolbar, creatingNtp); } } }