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/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" | |
11 #include "core/paint/PaintLayer.h" | |
10 #include "platform/geometry/LayoutPoint.h" | 12 #include "platform/geometry/LayoutPoint.h" |
13 #include "platform/scroll/ScrollableArea.h" | |
bokan
2016/09/30 16:57:55
These types should just be forward declared below
Navid Zolghadr
2016/10/03 16:03:00
Done.
| |
11 #include "public/platform/WebInputEventResult.h" | 14 #include "public/platform/WebInputEventResult.h" |
12 | 15 |
13 namespace blink { | 16 namespace blink { |
14 | 17 |
15 namespace EventHandlingUtil { | 18 namespace EventHandlingUtil { |
16 | 19 |
17 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, | 20 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, |
18 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | 21 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
19 | HitTestRequest::Active); | 22 | HitTestRequest::Active); |
20 | 23 |
21 WebInputEventResult mergeEventResult( | 24 WebInputEventResult mergeEventResult( |
22 WebInputEventResult resultA, WebInputEventResult resultB); | 25 WebInputEventResult resultA, WebInputEventResult resultB); |
23 WebInputEventResult toWebInputEventResult(DispatchEventResult); | 26 WebInputEventResult toWebInputEventResult(DispatchEventResult); |
24 | 27 |
28 PaintLayer* layerForNode(Node*); | |
29 ScrollableArea* associatedScrollableArea(const PaintLayer*); | |
30 | |
31 ContainerNode* parentForClickEvent(const Node&); | |
32 | |
33 | |
34 LayoutPoint contentPointFromRootFrame(LocalFrame*, | |
35 const IntPoint& pointInRootFrame); | |
36 | |
37 MouseEventWithHitTestResults performMouseEventHitTest(LocalFrame*, | |
38 const HitTestRequest&, const PlatformMouseEvent&); | |
39 | |
25 } // namespace EventHandlingUtil | 40 } // namespace EventHandlingUtil |
26 | 41 |
27 } // namespace blink | 42 } // namespace blink |
28 | 43 |
29 #endif // EventHandlingUtil_h | 44 #endif // EventHandlingUtil_h |
OLD | NEW |