Java Code Examples for org.chromium.content.browser.ContentViewCore#setBottomControlsHeight()
The following examples show how to use
org.chromium.content.browser.ContentViewCore#setBottomControlsHeight() .
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: ChromeFullscreenManager.java From 365browser with Apache License 2.0 | 6 votes |
/** * Updates the content view's viewport size to have it render the content correctly. * * @param viewCore The ContentViewCore to update. */ public void updateContentViewViewportSize(ContentViewCore viewCore) { if (viewCore == null) return; if (mInGesture || mContentViewScrolling) return; // Update content viewport size only when the browser controls are not animating. int topContentOffset = (int) mRendererTopContentOffset; int bottomControlOffset = (int) mRendererBottomControlOffset; if ((topContentOffset != 0 && topContentOffset != getTopControlsHeight()) && bottomControlOffset != 0 && bottomControlOffset != getBottomControlsHeight()) { return; } boolean controlsResizeView = topContentOffset > 0 || bottomControlOffset < getBottomControlsHeight(); viewCore.setTopControlsHeight(getTopControlsHeight(), controlsResizeView); viewCore.setBottomControlsHeight(getBottomControlsHeight()); }
Example 2
Source File: CompositorViewHolder.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Initializes the rendering surface parameters of {@code contentViewCore}. Note that this does * not size the actual {@link ContentViewCore}. * @param contentViewCore The {@link ContentViewCore} to initialize. */ private void initializeContentViewCore(ContentViewCore contentViewCore) { contentViewCore.setCurrentTouchEventOffsets(0.f, 0.f); contentViewCore.setTopControlsHeight(getTopControlsHeightPixels(), contentViewCore.doBrowserControlsShrinkBlinkSize()); contentViewCore.setBottomControlsHeight(getBottomControlsHeightPixels()); adjustPhysicalBackingSize(contentViewCore, mCompositorView.getWidth(), mCompositorView.getHeight()); }
Example 3
Source File: CompositorViewHolder.java From 365browser with Apache License 2.0 | 5 votes |
/** * Initializes the rendering surface parameters of {@code contentViewCore}. Note that this does * not size the actual {@link ContentViewCore}. * @param contentViewCore The {@link ContentViewCore} to initialize. */ private void initializeContentViewCore(ContentViewCore contentViewCore) { contentViewCore.setCurrentTouchEventOffsets(0.f, 0.f); contentViewCore.setTopControlsHeight(getTopControlsHeightPixels(), contentViewCore.doBrowserControlsShrinkBlinkSize()); contentViewCore.setBottomControlsHeight(getBottomControlsHeightPixels()); adjustPhysicalBackingSize(contentViewCore, mCompositorView.getWidth(), mCompositorView.getHeight()); }