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

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

Issue 2914673002: Refactor TouchEventManager::TouchInfo class (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/input/PointerEventManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c001ec8ee7e9039c4265f6bd1656c372b1e28ca1..9e24c9a7a69a5bace3610f59fb7bd514a408b7cb 100644
--- a/third_party/WebKit/Source/core/input/EventHandlingUtil.h
+++ b/third_party/WebKit/Source/core/input/EventHandlingUtil.h
@@ -5,6 +5,7 @@
#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"
@@ -42,8 +43,24 @@ MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*,
const HitTestRequest&,
const WebMouseEvent&);
+class PointerEventTarget {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
+
+ public:
+ DEFINE_INLINE_TRACE() {
+ visitor->Trace(target_node);
+ visitor->Trace(target_frame);
+ }
+
+ Member<Node> target_node;
+ Member<LocalFrame> target_frame;
+ String region;
+};
+
} // namespace EventHandlingUtil
} // namespace blink
+WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandlingUtil::PointerEventTarget);
+
#endif // EventHandlingUtil_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/PointerEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698