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

Unified Diff: Source/core/page/EventHandler.h

Issue 112023010: Make EventHandler::ActiveIntervalTimer mockable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
Index: Source/core/page/EventHandler.h
diff --git a/Source/core/page/EventHandler.h b/Source/core/page/EventHandler.h
index 183a4acb46c01ba6bfc5a990b9a2aee7e356c7b9..4ac6ddcd132a4e29d30d549649c617240c2fc3e0 100644
--- a/Source/core/page/EventHandler.h
+++ b/Source/core/page/EventHandler.h
@@ -148,6 +148,10 @@ public:
bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode);
bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRect& targetArea, Node*& targetNode);
+ void suspendActiveIntervalTimer();
Rick Byers 2013/12/13 22:52:25 To minimize impact on EventHandler API surface, I'
+ void resumeActiveIntervalTimer();
+ void fireActiveIntervalTimer();
+
bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint);
bool sendContextMenuEvent(const PlatformMouseEvent&);
@@ -378,7 +382,7 @@ private:
OwnPtr<IntPoint> m_lastSyntheticPanLocation;
float m_syntheticPageScaleFactor;
- Timer<EventHandler> m_activeIntervalTimer;
+ MockableTimer<EventHandler> m_activeIntervalTimer;
double m_lastShowPressTimestamp;
RefPtr<Element> m_lastDeferredTapElement;
};

Powered by Google App Engine
This is Rietveld 408576698