Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: Source/web/WebViewImpl.h

Issue 513053003: Made Blink aware of top controls offset (Blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.h
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
index b5045dea9eefa59d2dfd00154b62f9dcb8e7ab9d..544e21fffe25f1ca93b0c4b8ba684f79e951a748 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -109,7 +109,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(
@@ -486,6 +489,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;
@@ -715,6 +720,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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698