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

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

Issue 2936023002: MouseWheelEventManager is added to handle wheel events. (Closed)
Patch Set: review comments addressed. 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
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/frame/LocalFrame.h"
9 #include "core/layout/HitTestResult.h" 9 #include "core/layout/HitTestResult.h"
10 #include "core/page/EventWithHitTestResults.h" 10 #include "core/page/EventWithHitTestResults.h"
(...skipping 25 matching lines...) Expand all
36 36
37 ContainerNode* ParentForClickEvent(const Node&); 37 ContainerNode* ParentForClickEvent(const Node&);
38 38
39 LayoutPoint ContentPointFromRootFrame(LocalFrame*, 39 LayoutPoint ContentPointFromRootFrame(LocalFrame*,
40 const IntPoint& point_in_root_frame); 40 const IntPoint& point_in_root_frame);
41 41
42 MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*, 42 MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*,
43 const HitTestRequest&, 43 const HitTestRequest&,
44 const WebMouseEvent&); 44 const WebMouseEvent&);
45 45
46 LocalFrame* SubframeForHitTestResult(const MouseEventWithHitTestResults&);
47
48 LocalFrame* SubframeForTargetNode(Node*);
49
46 class PointerEventTarget { 50 class PointerEventTarget {
47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 51 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
48 52
49 public: 53 public:
50 DEFINE_INLINE_TRACE() { 54 DEFINE_INLINE_TRACE() {
51 visitor->Trace(target_node); 55 visitor->Trace(target_node);
52 visitor->Trace(target_frame); 56 visitor->Trace(target_frame);
53 } 57 }
54 58
55 Member<Node> target_node; 59 Member<Node> target_node;
56 Member<LocalFrame> target_frame; 60 Member<LocalFrame> target_frame;
57 String region; 61 String region;
58 }; 62 };
59 63
60 } // namespace EventHandlingUtil 64 } // namespace EventHandlingUtil
61 65
62 } // namespace blink 66 } // namespace blink
63 67
64 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandlingUtil::PointerEventTarget); 68 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandlingUtil::PointerEventTarget);
65 69
66 #endif // EventHandlingUtil_h 70 #endif // EventHandlingUtil_h
OLDNEW
« 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