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

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

Issue 490783003: Reduce hit test on ShowPress by moving event targeting to WebViewImpl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary headers Created 6 years, 4 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 c3c0118f588b26f4d70c17e2467f614b3d7d4cb9..5d7035b9b112bd3781aa814d038bd31678f04450 100644
--- a/Source/core/page/EventHandler.h
+++ b/Source/core/page/EventHandler.h
@@ -29,6 +29,7 @@
#include "core/editing/TextGranularity.h"
#include "core/events/TextEventInputType.h"
#include "core/page/DragActions.h"
+#include "core/page/EventWithHitTestResults.h"
#include "core/page/FocusType.h"
#include "core/rendering/HitTestRequest.h"
#include "core/rendering/style/RenderStyleConstants.h"
@@ -81,9 +82,6 @@ class VisibleSelection;
class WheelEvent;
class Widget;
-typedef EventWithHitTestResults<PlatformGestureEvent> GestureEventWithHitTestResults;
-typedef EventWithHitTestResults<PlatformMouseEvent> MouseEventWithHitTestResults;
-
enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTrailingWhitespace };
enum CheckDragHysteresis { ShouldCheckDragHysteresis, DontCheckDragHysteresis };
@@ -148,6 +146,7 @@ public:
// Called on the local root frame exactly once per gesture event.
bool handleGestureEvent(const PlatformGestureEvent&);
+ bool handleGestureEvent(const GestureEventWithHitTestResults&);
// Hit-test the provided (non-scroll) gesture event, applying touch-adjustment and updating
// hover/active state across all frames if necessary. This should be called at most once

Powered by Google App Engine
This is Rietveld 408576698