Index: Source/web/WebViewImpl.h |
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h |
index 0db68d6ecdc61129878687dbed3b7c28e71490eb..b3e115c1a0fa7ced9f90ef37df6a80c9fd6b735a 100644 |
--- a/Source/web/WebViewImpl.h |
+++ b/Source/web/WebViewImpl.h |
@@ -110,7 +110,10 @@ public: |
virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; |
virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; |
- virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE; |
+ virtual void applyViewportDeltas( |
+ const WebSize& scrollDelta, |
+ float pageScaleDelta, |
+ float topControlsDelta) OVERRIDE; |
virtual void mouseCaptureLost() OVERRIDE; |
virtual void setFocus(bool enable) OVERRIDE; |
virtual bool setComposition( |
@@ -487,6 +490,8 @@ public: |
bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_matchesHeuristicsForGpuRasterization; } |
private: |
+ void setTopControlsContentOffset(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; |
@@ -714,6 +719,7 @@ private: |
float m_zoomFactorOverride; |
bool m_userGestureObserved; |
+ float m_topControlsContentOffset; |
}; |
// We have no ways to check if the specified WebView is an instance of |