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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandlingUtil.h

Issue 2914673002: Refactor TouchEventManager::TouchInfo class (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/PointerEventManager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EventHandlingUtil_h 5 #ifndef EventHandlingUtil_h
6 #define EventHandlingUtil_h 6 #define EventHandlingUtil_h
7 7
8 #include "core/frame/LocalFrame.h"
8 #include "core/layout/HitTestResult.h" 9 #include "core/layout/HitTestResult.h"
9 #include "core/page/EventWithHitTestResults.h" 10 #include "core/page/EventWithHitTestResults.h"
10 #include "platform/geometry/LayoutPoint.h" 11 #include "platform/geometry/LayoutPoint.h"
11 #include "public/platform/WebInputEventResult.h" 12 #include "public/platform/WebInputEventResult.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class LocalFrame; 16 class LocalFrame;
16 class ScrollableArea; 17 class ScrollableArea;
17 class PaintLayer; 18 class PaintLayer;
(...skipping 17 matching lines...) Expand all
35 36
36 ContainerNode* ParentForClickEvent(const Node&); 37 ContainerNode* ParentForClickEvent(const Node&);
37 38
38 LayoutPoint ContentPointFromRootFrame(LocalFrame*, 39 LayoutPoint ContentPointFromRootFrame(LocalFrame*,
39 const IntPoint& point_in_root_frame); 40 const IntPoint& point_in_root_frame);
40 41
41 MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*, 42 MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*,
42 const HitTestRequest&, 43 const HitTestRequest&,
43 const WebMouseEvent&); 44 const WebMouseEvent&);
44 45
46 class PointerEventTarget {
47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
48
49 public:
50 DEFINE_INLINE_TRACE() {
51 visitor->Trace(target_node);
52 visitor->Trace(target_frame);
53 }
54
55 Member<Node> target_node;
56 Member<LocalFrame> target_frame;
57 String region;
58 };
59
45 } // namespace EventHandlingUtil 60 } // namespace EventHandlingUtil
46 61
47 } // namespace blink 62 } // namespace blink
48 63
64 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandlingUtil::PointerEventTarget);
65
49 #endif // EventHandlingUtil_h 66 #endif // EventHandlingUtil_h
OLDNEW
« 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