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

Unified Diff: third_party/WebKit/Source/core/input/TouchEventManager.cpp

Issue 2350433002: Extract more of the mouse logic from EventHandler (Closed)
Patch Set: Yet another rebase because of a presubmit rule bug Created 4 years, 2 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/input/ScrollManager.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/TouchEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
index d8c9b60f91179b2aac4add52af14e7c5a26fc01f..4d13d0be63331099f8c7048351e8473c4b699636 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
@@ -88,6 +88,22 @@ TouchEventManager::TouchEventManager(LocalFrame* frame) : m_frame(frame) {
clear();
}
+void TouchEventManager::clear() {
+ m_touchSequenceDocument.clear();
+ m_touchSequenceUserGestureToken.clear();
+ m_targetForTouchID.clear();
+ m_regionForTouchID.clear();
+ m_touchPressed = false;
+ m_touchScrollStarted = false;
+ m_currentEvent = PlatformEvent::NoType;
+}
+
+DEFINE_TRACE(TouchEventManager) {
+ visitor->trace(m_frame);
+ visitor->trace(m_touchSequenceDocument);
+ visitor->trace(m_targetForTouchID);
+}
+
WebInputEventResult TouchEventManager::dispatchTouchEvents(
const PlatformTouchEvent& event,
const HeapVector<TouchInfo>& touchInfos,
@@ -526,25 +542,10 @@ WebInputEventResult TouchEventManager::handleTouchEvent(
return dispatchTouchEvents(event, touchInfos, allTouchesReleased);
}
-void TouchEventManager::clear() {
- m_touchSequenceDocument.clear();
- m_touchSequenceUserGestureToken.clear();
- m_targetForTouchID.clear();
- m_regionForTouchID.clear();
- m_touchPressed = false;
- m_touchScrollStarted = false;
- m_currentEvent = PlatformEvent::NoType;
-}
-
bool TouchEventManager::isAnyTouchActive() const {
return m_touchPressed;
}
-DEFINE_TRACE(TouchEventManager) {
- visitor->trace(m_frame);
- visitor->trace(m_touchSequenceDocument);
- visitor->trace(m_targetForTouchID);
-}
void TouchEventManager::userGestureUtilized() {
// This is invoked for UserGestureIndicators created in TouchEventManger::handleTouchEvent which perhaps
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698