| Index: Source/web/WebViewImpl.h
|
| diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
|
| index 70896b71787c276cb6bcbd6633204d8511a97c80..86f470dbbd0a43aae891b4261845566daee91795 100644
|
| --- a/Source/web/WebViewImpl.h
|
| +++ b/Source/web/WebViewImpl.h
|
| @@ -73,6 +73,7 @@ class InputMethodContext;
|
| class LinkHighlight;
|
| class PopupContainer;
|
| class LayerCompositor;
|
| +class TopControls;
|
| class UserGestureToken;
|
| class WebActiveGestureAnimation;
|
| class WebDevToolsAgentImpl;
|
| @@ -517,15 +518,17 @@ public:
|
| bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_matchesHeuristicsForGpuRasterization; }
|
|
|
| virtual void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) override;
|
| + virtual void updateTopControlsState(WebTopControlsState constraint, WebTopControlsState current, bool animate) override;
|
| +
|
| + TopControls& topControls();
|
| + // Called anytime top controls layout height or content offset have changed.
|
| + void didUpdateTopControls();
|
|
|
| virtual void forceNextWebGLContextCreationToFail() override;
|
|
|
| IntSize mainFrameSize();
|
|
|
| private:
|
| - void didUpdateTopControls();
|
| - void setTopControlsShownRatio(float);
|
| -
|
| // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made private to
|
| // prevent external usage
|
| virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) override;
|
| @@ -756,15 +759,6 @@ private:
|
| float m_zoomFactorOverride;
|
|
|
| bool m_userGestureObserved;
|
| -
|
| - // The top controls shown amount (normalized from 0 to 1) since the last
|
| - // compositor commit.
|
| - float m_topControlsShownRatio;
|
| -
|
| - float m_topControlsHeight;
|
| - // If this is true, then the embedder shrunk the WebView size by the top
|
| - // controls height.
|
| - bool m_topControlsShrinkLayoutSize;
|
| };
|
|
|
| DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.isWebView());
|
|
|