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

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

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
Index: third_party/WebKit/Source/core/input/EventHandlingUtil.h
diff --git a/third_party/WebKit/Source/core/input/EventHandlingUtil.h b/third_party/WebKit/Source/core/input/EventHandlingUtil.h
index 666e1974a8574fa1216e3d41ebe5d785a7ccccaa..558ae12dc8988460c665bad368236c6286fdf388 100644
--- a/third_party/WebKit/Source/core/input/EventHandlingUtil.h
+++ b/third_party/WebKit/Source/core/input/EventHandlingUtil.h
@@ -5,13 +5,17 @@
#ifndef EventHandlingUtil_h
#define EventHandlingUtil_h
-#include "core/frame/LocalFrame.h"
#include "core/layout/HitTestResult.h"
+#include "core/page/EventWithHitTestResults.h"
#include "platform/geometry/LayoutPoint.h"
#include "public/platform/WebInputEventResult.h"
namespace blink {
+class LocalFrame;
+class ScrollableArea;
+class PaintLayer;
+
namespace EventHandlingUtil {
HitTestResult hitTestResultInFrame(
@@ -24,6 +28,19 @@ WebInputEventResult mergeEventResult(WebInputEventResult resultA,
WebInputEventResult resultB);
WebInputEventResult toWebInputEventResult(DispatchEventResult);
+PaintLayer* layerForNode(Node*);
+ScrollableArea* associatedScrollableArea(const PaintLayer*);
+
+ContainerNode* parentForClickEvent(const Node&);
+
+LayoutPoint contentPointFromRootFrame(LocalFrame*,
+ const IntPoint& pointInRootFrame);
+
+MouseEventWithHitTestResults performMouseEventHitTest(
+ LocalFrame*,
+ const HitTestRequest&,
+ const PlatformMouseEvent&);
+
} // namespace EventHandlingUtil
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/EventHandlingUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698