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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2137113002: Create GestureManager class and move related logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the nits Created 4 years, 5 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 | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.h
diff --git a/third_party/WebKit/Source/core/input/EventHandler.h b/third_party/WebKit/Source/core/input/EventHandler.h
index 3f44d21a35070704b772816d16cae56856c44d84..2db35deadc1f46571aa5d13afd2f3896ce1bea6b 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.h
+++ b/third_party/WebKit/Source/core/input/EventHandler.h
@@ -28,6 +28,7 @@
#include "core/CoreExport.h"
#include "core/events/TextEventInputType.h"
+#include "core/input/GestureManager.h"
#include "core/input/KeyboardEventManager.h"
#include "core/input/PointerEventManager.h"
#include "core/input/ScrollManager.h"
@@ -325,6 +326,10 @@ private:
void setLastKnownMousePosition(const PlatformMouseEvent&);
+ void setClickNode(Node*);
+ bool handleDragDropIfPossible(const GestureEventWithHitTestResults&);
+ static ContainerNode* parentForClickEvent(const Node&);
+
bool shouldTopControlsConsumeScroll(FloatSize) const;
// If the given element is a shadow host and its root has delegatesFocus=false flag,
@@ -392,6 +397,7 @@ private:
PointerEventManager m_pointerEventManager;
ScrollManager m_scrollManager;
KeyboardEventManager m_keyboardEventManager;
+ GestureManager m_gestureManager;
double m_maxMouseMovedDuration;
@@ -405,6 +411,9 @@ private:
// triggering |touchstart| event was canceled. This suppresses mouse event
// firing for the current gesture sequence (i.e. until next GestureTapDown).
bool m_suppressMouseEventsFromGestures;
+
+ // TODO(nzolghadr): Temporary until further refactoring
+ friend GestureManager;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698