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

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

Issue 967213004: Removed FrameView's windowToContents and contentsToWindow methods. (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 5e22f2e90b91a64b17a651a8f82c8a6bd5f3935d..ddba860bfdd38b0218c35784a47cc44480c64d6f 100644
--- a/Source/core/frame/PinchViewport.h
+++ b/Source/core/frame/PinchViewport.h
@@ -133,6 +133,7 @@ public:
// in the viewport. The given and returned rects are in CSS pixels, meaning
// scale isn't applied.
FloatRect mainViewToViewportCSSPixels(const FloatRect&) const;
+ FloatPoint viewportCSSPixelsToRootFrame(const FloatPoint&) const;
// Scroll the main frame and pinch viewport so that the given rect in the
// top-level document is centered in the viewport. This method will avoid
@@ -155,6 +156,16 @@ public:
// Adjust the viewport's offset so that it remains bounded by the outer
// viepwort.
void clampToBoundaries();
+
+ FloatRect viewportToRootFrame(const FloatRect&) const;
+ IntRect viewportToRootFrame(const IntRect&) const;
+ FloatRect rootFrameToViewport(const FloatRect&) const;
+ IntRect rootFrameToViewport(const IntRect&) const;
+
+ FloatPoint viewportToRootFrame(const FloatPoint&) const;
+ FloatPoint rootFrameToViewport(const FloatPoint&) const;
+ IntPoint viewportToRootFrame(const IntPoint&) const;
+ IntPoint rootFrameToViewport(const IntPoint&) const;
private:
explicit PinchViewport(FrameHost&);
« 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