OLD | NEW |
---|---|
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/layout/HitTestResult.h" | 8 #include "core/layout/HitTestResult.h" |
9 #include "core/page/EventWithHitTestResults.h" | 9 #include "core/page/EventWithHitTestResults.h" |
10 #include "platform/geometry/LayoutPoint.h" | 10 #include "platform/geometry/LayoutPoint.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 HitTestRequest::HitTestRequestType hit_type = HitTestRequest::kReadOnly | | 24 HitTestRequest::HitTestRequestType hit_type = HitTestRequest::kReadOnly | |
25 HitTestRequest::kActive); | 25 HitTestRequest::kActive); |
26 | 26 |
27 WebInputEventResult MergeEventResult(WebInputEventResult result_a, | 27 WebInputEventResult MergeEventResult(WebInputEventResult result_a, |
28 WebInputEventResult result_b); | 28 WebInputEventResult result_b); |
29 WebInputEventResult ToWebInputEventResult(DispatchEventResult); | 29 WebInputEventResult ToWebInputEventResult(DispatchEventResult); |
30 | 30 |
31 PaintLayer* LayerForNode(Node*); | 31 PaintLayer* LayerForNode(Node*); |
32 ScrollableArea* AssociatedScrollableArea(const PaintLayer*); | 32 ScrollableArea* AssociatedScrollableArea(const PaintLayer*); |
33 | 33 |
34 Element* ParentElementIfNeeded(Node*); | |
dtapuska
2017/04/19 01:56:07
Ia this method really needed? Could HitTestResult:
hayato
2017/04/19 02:26:35
Ah, I didn't notice innerElement() at all because
| |
34 ContainerNode* ParentForClickEvent(const Node&); | 35 ContainerNode* ParentForClickEvent(const Node&); |
35 | 36 |
36 LayoutPoint ContentPointFromRootFrame(LocalFrame*, | 37 LayoutPoint ContentPointFromRootFrame(LocalFrame*, |
37 const IntPoint& point_in_root_frame); | 38 const IntPoint& point_in_root_frame); |
38 | 39 |
39 MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*, | 40 MouseEventWithHitTestResults PerformMouseEventHitTest(LocalFrame*, |
40 const HitTestRequest&, | 41 const HitTestRequest&, |
41 const WebMouseEvent&); | 42 const WebMouseEvent&); |
42 | 43 |
43 } // namespace EventHandlingUtil | 44 } // namespace EventHandlingUtil |
44 | 45 |
45 } // namespace blink | 46 } // namespace blink |
46 | 47 |
47 #endif // EventHandlingUtil_h | 48 #endif // EventHandlingUtil_h |
OLD | NEW |