Index: Source/web/WebViewImpl.h |
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h |
index 6af8ddff37139f603faabfabb587529e0126cdca..acbf9dcd6df7cdd8a33a5b016dbc59e952bf645c 100644 |
--- a/Source/web/WebViewImpl.h |
+++ b/Source/web/WebViewImpl.h |
@@ -130,6 +130,7 @@ public: |
enum AutoZoomType { |
DoubleTap, |
FindInPage, |
+ MultipleTargets, |
}; |
// WebWidget methods: |
@@ -223,6 +224,7 @@ public: |
virtual void zoomLimitsChanged(double minimumZoomLevel, |
double maximumZoomLevel); |
virtual void setInitialPageScaleOverride(float); |
+ virtual bool zoomToMultipleTargetsRect(const WebRect&); |
virtual float pageScaleFactor() const; |
virtual void setPageScaleFactorPreservingScrollOffset(float); |
virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin); |
@@ -528,7 +530,15 @@ public: |
WebCore::Node* bestTapNode(const WebCore::PlatformGestureEvent& tapEvent); |
void enableTapHighlight(const WebCore::PlatformGestureEvent& tapEvent); |
void computeScaleAndScrollForFocusedNode(WebCore::Node* focusedNode, float& scale, WebCore::IntPoint& scroll, bool& needAnimation); |
- void animateZoomAroundPoint(const WebCore::IntPoint&, AutoZoomType); |
+ |
+ // The rect has different meanings depending on zoom type: |
+ // - DoubleTap |
+ // Point where a double tap occured, will zoom to fit an element. |
+ // - FindInPage |
+ // Enclosing rect of the element we would like to zoom to. |
+ // - MultipleTargets |
+ // Window we would like to zoom into. |
+ bool animateZoomToRect(const WebCore::IntRect&, AutoZoomType); |
void enableFakeDoubleTapAnimationForTesting(bool); |
bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoomPending; } |