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

Unified Diff: Source/core/frame/PinchViewport.h

Issue 889803004: Add touchpad pinch zoom support to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update tests Created 5 years, 10 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
Index: Source/core/frame/PinchViewport.h
diff --git a/Source/core/frame/PinchViewport.h b/Source/core/frame/PinchViewport.h
index 8070e60f267ae4d0cac07008079974048db2c1c5..20d15335b4b2fe76d046435e8db87975ac549b35 100644
--- a/Source/core/frame/PinchViewport.h
+++ b/Source/core/frame/PinchViewport.h
@@ -106,6 +106,11 @@ public:
void setScale(float);
float scale() const { return m_scale; }
+ // Update scale factor, magnifying or minifying by magnifyDelta, centered around
+ // the point specified by anchor in window coordinates. Returns false if page
+ // scale factor is left unchanged.
+ bool magnifyScaleAroundAnchor(float magnifyDelta, const FloatPoint& anchor);
+
void registerLayersWithTreeView(blink::WebLayerTreeView*) const;
void clearLayersForTreeView(blink::WebLayerTreeView*) const;

Powered by Google App Engine
This is Rietveld 408576698