| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EventHandlingUtil_h |
| 6 #define EventHandlingUtil_h |
| 7 |
| 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/layout/HitTestResult.h" |
| 10 #include "platform/geometry/LayoutPoint.h" |
| 11 #include "public/platform/WebInputEventResult.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 namespace EventHandlingUtil { |
| 16 |
| 17 class BoundaryEventDispatcher { |
| 18 public: |
| 19 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 20 virtual void dispatchOut(EventTarget*, EventTarget* relatedTarget) = 0; |
| 21 virtual void dispatchOver(EventTarget*, EventTarget* relatedTarget) = 0; |
| 22 virtual void dispatchLeave(EventTarget*, EventTarget* relatedTarget, bool ch
eckForListener) = 0; |
| 23 virtual void dispatchEnter(EventTarget*, EventTarget* relatedTarget, bool ch
eckForListener) = 0; |
| 24 }; |
| 25 |
| 26 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, |
| 27 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
| 28 | HitTestRequest::Active); |
| 29 |
| 30 WebInputEventResult mergeEventResult( |
| 31 WebInputEventResult resultA, WebInputEventResult resultB); |
| 32 WebInputEventResult toWebInputEventResult(DispatchEventResult); |
| 33 |
| 34 void sendBoundaryEvents( |
| 35 EventTarget* exitedTarget, |
| 36 EventTarget* enteredTarget, |
| 37 BoundaryEventDispatcher*); |
| 38 |
| 39 } // namespace EventHandlingUtil |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif // EventHandlingUtil_h |
| OLD | NEW |