Index: Source/WebKit/chromium/src/WebViewImpl.h |
=================================================================== |
--- Source/WebKit/chromium/src/WebViewImpl.h (revision 143777) |
+++ Source/WebKit/chromium/src/WebViewImpl.h (working copy) |
@@ -403,7 +403,7 @@ |
void mouseDoubleClick(const WebMouseEvent&); |
bool detectContentOnTouch(const WebPoint&); |
- void startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool useAnchor, float newScale, double durationInSeconds); |
+ bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool useAnchor, float newScale, double durationInSeconds); |
void numberOfWheelEventHandlersChanged(unsigned); |
void hasTouchEventHandlers(bool); |
@@ -583,7 +583,11 @@ |
#endif |
void animateZoomAroundPoint(const WebCore::IntPoint&, AutoZoomType); |
- void shouldUseAnimateDoubleTapTimeZeroForTesting(bool); |
+ void enableFakeDoubleTapAnimationForTesting(bool); |
+ bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoomPending; } |
+ WebCore::IntPoint fakeDoubleTapTargetPositionForTesting() const { return m_fakeDoubleTapTargetPosition; } |
+ float fakeDoubleTapPageScaleFactorForTesting() const { return m_fakeDoubleTapPageScaleFactor; } |
+ bool fakeDoubleTapUseAnchorForTesting() const { return m_fakeDoubleTapUseAnchor; } |
void enterFullScreenForElement(WebCore::Element*); |
void exitFullScreenForElement(WebCore::Element*); |
@@ -763,11 +767,16 @@ |
float m_savedPageScaleFactor; // 0 means that no page scale factor is saved. |
WebCore::IntSize m_savedScrollOffset; |
- // Whether the current scale was achieved by zooming in with double tap. |
- bool m_doubleTapZoomInEffect; |
+ // The scale moved to by the latest double tap zoom, if any. |
+ float m_doubleTapZoomPageScaleFactor; |
+ // Have we sent a double-tap zoom and not yet heard back the scale? |
+ bool m_doubleTapZoomPending; |
// Used for testing purposes. |
- bool m_shouldUseDoubleTapTimeZero; |
+ bool m_enableFakeDoubleTapAnimationForTesting; |
+ WebCore::IntPoint m_fakeDoubleTapTargetPosition; |
+ float m_fakeDoubleTapPageScaleFactor; |
+ bool m_fakeDoubleTapUseAnchor; |
bool m_contextMenuAllowed; |