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

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

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.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 24b02a8368b3bdeed6d7d9d685d4feb0c5e91130..2b0ee5625dc6fb2393184dd845ebb3217808711f 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -2739,6 +2739,21 @@ bool EventHandler::bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, co
return findBestZoomableArea(targetNode, targetArea, touchCenter, touchRect, Vector<RefPtr<Node> >(nodes));
}
+void EventHandler::suspendActiveIntervalTimer()
+{
+ m_activeIntervalTimer.suspend();
+}
+
+void EventHandler::resumeActiveIntervalTimer()
+{
+ m_activeIntervalTimer.resume();
+}
+
+void EventHandler::fireActiveIntervalTimer()
+{
+ m_activeIntervalTimer.fire();
+}
+
bool EventHandler::adjustGesturePosition(const PlatformGestureEvent& gestureEvent, IntPoint& adjustedPoint)
{
if (!shouldApplyTouchAdjustment(gestureEvent))

Powered by Google App Engine
This is Rietveld 408576698