| 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/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 Loading... |
| 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 |
| OLD | NEW |