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

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

Issue 2255323004: Create MouseEventManager and EventHandlingUtil (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 4 years, 3 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/TouchEventManager.h ('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 61ebef8989021452b932a75a8e6e700476b0ee2a..f5df812e0d25d75ffba1f2b5e568b556fa0a9c08 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
@@ -11,7 +11,7 @@
#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/html/HTMLCanvasElement.h"
-#include "core/input/EventHandler.h"
+#include "core/input/EventHandlingUtil.h"
#include "core/input/TouchActionUtil.h"
#include "core/layout/HitTestCanvasResult.h"
#include "core/page/ChromeClient.h"
@@ -87,10 +87,6 @@ TouchEventManager::TouchEventManager(LocalFrame* frame)
clear();
}
-TouchEventManager::~TouchEventManager()
-{
-}
-
WebInputEventResult TouchEventManager::dispatchTouchEvents(
const PlatformTouchEvent& event,
const HeapVector<TouchInfo>& touchInfos,
@@ -213,8 +209,8 @@ WebInputEventResult TouchEventManager::dispatchTouchEvents(
touchDispositionsDuringFlingHistogram.count(touchEvent->preventDefaultCalledOnUncancelableEvent() ? HandledTouches : UnhandledTouches);
}
}
- eventResult = EventHandler::mergeEventResult(eventResult,
- EventHandler::toWebInputEventResult(domDispatchResult));
+ eventResult = EventHandlingUtil::mergeEventResult(eventResult,
+ EventHandlingUtil::toWebInputEventResult(domDispatchResult));
}
}
@@ -246,7 +242,7 @@ void TouchEventManager::updateTargetAndRegionMapsForTouchStarts(
|| &touchInfo.touchNode->document() != m_touchSequenceDocument)) {
if (m_touchSequenceDocument->frame()) {
LayoutPoint framePoint = roundedLayoutPoint(m_touchSequenceDocument->frame()->view()->rootFrameToContents(touchInfo.point.pos()));
- result = EventHandler::hitTestResultInFrame(m_touchSequenceDocument->frame(), framePoint, hitType);
+ result = EventHandlingUtil::hitTestResultInFrame(m_touchSequenceDocument->frame(), framePoint, hitType);
Node* node = result.innerNode();
if (!node)
continue;
« no previous file with comments | « third_party/WebKit/Source/core/input/TouchEventManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698