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

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

Issue 112023010: Make EventHandler::ActiveIntervalTimer mockable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename methods and handle pending fires Created 6 years, 11 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
Index: Source/core/page/EventHandler.h
diff --git a/Source/core/page/EventHandler.h b/Source/core/page/EventHandler.h
index 7c92bd992e2fab46d085bf105f36e0c3e1b23f0c..d3a57c9ea22588e1e9392ee83ec97d26d146a75e 100755
--- a/Source/core/page/EventHandler.h
+++ b/Source/core/page/EventHandler.h
@@ -148,6 +148,8 @@ 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);
+ MockableTimer<EventHandler>* getActiveIntervalTimerForTesting();
+
bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint);
bool sendContextMenuEvent(const PlatformMouseEvent&);
@@ -378,7 +380,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