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

Unified Diff: Source/WebKit/chromium/src/WebViewImpl.h

Issue 12330082: Merge 143355 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 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/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698