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

Unified Diff: public/web/WebWidget.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: Review Feedback 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 | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index d0e12437890840de7d3f096cb11941719c0c1f65..3132250bc958515064820c514532e43e8ebff9a2 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -138,11 +138,12 @@ public:
// Check whether the given point hits any registered touch event handlers.
virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
- // Applies a scroll delta to the root layer, which is bundled with a page
- // scale factor that may apply a CSS transform on the whole document (used
- // for mobile-device pinch zooming). This is triggered by events sent to the
- // compositor thread.
- virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFactor) { }
aelias_OOO_until_Jul13 2014/09/05 00:22:07 I assume you want to land the Blink side first. I
bokan 2014/09/05 01:05:40 Done.
+ // Applies viewport related properties during a commit from the compositor
+ // thread.
+ virtual void applyViewportDeltas(
+ const WebSize& scrollDelta,
+ float scaleFactor,
+ float topControlsDelta) { }
// Called to inform the WebWidget that mouse capture was lost.
virtual void mouseCaptureLost() { }
« no previous file with comments | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698