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

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

Issue 1025543002: Remove old pinch-zoom paths from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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 | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/PinchViewport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/PinchViewport.h
diff --git a/Source/core/frame/PinchViewport.h b/Source/core/frame/PinchViewport.h
index ddba860bfdd38b0218c35784a47cc44480c64d6f..8a2f6de79d81a3a988e677a2082c19cd2f41e010 100644
--- a/Source/core/frame/PinchViewport.h
+++ b/Source/core/frame/PinchViewport.h
@@ -84,7 +84,7 @@ public:
return m_innerViewportScrollLayer.get();
}
- // Sets the location of the inner viewport relative to the outer viewport. The
+ // Sets the location of the pinch viewport relative to the outer viewport. The
// coordinates are in partial CSS pixels.
void setLocation(const FloatPoint&);
// FIXME: This should be called moveBy
@@ -92,6 +92,12 @@ public:
void move(const FloatSize&);
FloatPoint location() const { return m_offset; }
+ // Sets the location of the pinch viewport relative to the document. This
+ // will attempt to scroll the root FrameView such that the pinch viewport
+ // is at the given location. It will then scroll the pinch viewport if
+ // scrolling only the root FrameView couldn't reach the location.
+ void setLocationInDocument(const DoublePoint&);
+
// Sets the size of the inner viewport when unscaled in CSS pixels.
void setSize(const IntSize&);
IntSize size() const { return m_size; }
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/PinchViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698