| 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" | 10 #include "core/page/EventWithHitTestResults.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 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* SubframeForTargetNode(Node*); |
| 47 |
| 46 class PointerEventTarget { | 48 class PointerEventTarget { |
| 47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 48 | 50 |
| 49 public: | 51 public: |
| 50 DEFINE_INLINE_TRACE() { | 52 DEFINE_INLINE_TRACE() { |
| 51 visitor->Trace(target_node); | 53 visitor->Trace(target_node); |
| 52 visitor->Trace(target_frame); | 54 visitor->Trace(target_frame); |
| 53 } | 55 } |
| 54 | 56 |
| 55 Member<Node> target_node; | 57 Member<Node> target_node; |
| 56 Member<LocalFrame> target_frame; | 58 Member<LocalFrame> target_frame; |
| 57 String region; | 59 String region; |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 } // namespace EventHandlingUtil | 62 } // namespace EventHandlingUtil |
| 61 | 63 |
| 62 } // namespace blink | 64 } // namespace blink |
| 63 | 65 |
| 64 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandlingUtil::PointerEventTarget); | 66 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandlingUtil::PointerEventTarget); |
| 65 | 67 |
| 66 #endif // EventHandlingUtil_h | 68 #endif // EventHandlingUtil_h |
| OLD | NEW |