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&); |