| 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 PointerEventManager_h | 5 #ifndef PointerEventManager_h |
| 6 #define PointerEventManager_h | 6 #define PointerEventManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/events/PointerEvent.h" | 9 #include "core/events/PointerEvent.h" |
| 10 #include "core/events/PointerEventFactory.h" | 10 #include "core/events/PointerEventFactory.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 DISALLOW_NEW(); | 24 DISALLOW_NEW(); |
| 25 public: | 25 public: |
| 26 explicit PointerEventManager(LocalFrame*); | 26 explicit PointerEventManager(LocalFrame*); |
| 27 ~PointerEventManager(); | 27 ~PointerEventManager(); |
| 28 DECLARE_TRACE(); | 28 DECLARE_TRACE(); |
| 29 | 29 |
| 30 WebInputEventResult sendMousePointerEvent( | 30 WebInputEventResult sendMousePointerEvent( |
| 31 Node*, const AtomicString& type, | 31 Node*, const AtomicString& type, |
| 32 int clickCount, const PlatformMouseEvent&, | 32 int clickCount, const PlatformMouseEvent&, |
| 33 Node* relatedTarget, | 33 Node* relatedTarget, |
| 34 AbstractView*, | |
| 35 Node* lastNodeUnderMouse); | 34 Node* lastNodeUnderMouse); |
| 36 | 35 |
| 37 WebInputEventResult handleTouchEvents( | 36 WebInputEventResult handleTouchEvents( |
| 38 const PlatformTouchEvent&); | 37 const PlatformTouchEvent&); |
| 39 | 38 |
| 40 // Sends node transition events mouseout/leave/over/enter to the | 39 // Sends node transition events mouseout/leave/over/enter to the |
| 41 // corresponding targets. This function sends pointerout/leave/over/enter | 40 // corresponding targets. This function sends pointerout/leave/over/enter |
| 42 // only when isFrameBoundaryTransition is true which indicates the | 41 // only when isFrameBoundaryTransition is true which indicates the |
| 43 // transition is over the document boundary and not only the elements border | 42 // transition is over the document boundary and not only the elements border |
| 44 // inside the document. If isFrameBoundaryTransition is false, | 43 // inside the document. If isFrameBoundaryTransition is false, |
| 45 // then the event is a compatibility event like those created by touch | 44 // then the event is a compatibility event like those created by touch |
| 46 // and in that case the corresponding pointer events will be handled by | 45 // and in that case the corresponding pointer events will be handled by |
| 47 // sendTouchPointerEvent for example and there is no need to send pointer | 46 // sendTouchPointerEvent for example and there is no need to send pointer |
| 48 // transition events. Note that normal mouse events (e.g. mousemove/down/up) | 47 // transition events. Note that normal mouse events (e.g. mousemove/down/up) |
| 49 // and their corresponding transition events will be handled altogether by | 48 // and their corresponding transition events will be handled altogether by |
| 50 // sendMousePointerEvent function. | 49 // sendMousePointerEvent function. |
| 51 void sendMouseAndPossiblyPointerNodeTransitionEvents( | 50 void sendMouseAndPossiblyPointerNodeTransitionEvents( |
| 52 Node* exitedNode, | 51 Node* exitedNode, |
| 53 Node* enteredNode, | 52 Node* enteredNode, |
| 54 const PlatformMouseEvent&, | 53 const PlatformMouseEvent&, |
| 55 AbstractView*, bool isFrameBoundaryTransition); | 54 bool isFrameBoundaryTransition); |
| 56 | 55 |
| 57 // Resets the internal state of this object. | 56 // Resets the internal state of this object. |
| 58 void clear(); | 57 void clear(); |
| 59 | 58 |
| 60 void elementRemoved(EventTarget*); | 59 void elementRemoved(EventTarget*); |
| 61 void setPointerCapture(int, EventTarget*); | 60 void setPointerCapture(int, EventTarget*); |
| 62 void releasePointerCapture(int, EventTarget*); | 61 void releasePointerCapture(int, EventTarget*); |
| 63 bool isActive(const int) const; | 62 bool isActive(const int) const; |
| 64 WebPointerProperties::PointerType getPointerEventType(const int) const; | 63 WebPointerProperties::PointerType getPointerEventType(const int) const; |
| 65 | 64 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 PointerCapturingMap m_pointerCaptureTarget; | 170 PointerCapturingMap m_pointerCaptureTarget; |
| 172 PointerCapturingMap m_pendingPointerCaptureTarget; | 171 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 173 PointerEventFactory m_pointerEventFactory; | 172 PointerEventFactory m_pointerEventFactory; |
| 174 TouchEventManager m_touchEventManager; | 173 TouchEventManager m_touchEventManager; |
| 175 | 174 |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 } // namespace blink | 177 } // namespace blink |
| 179 | 178 |
| 180 #endif // PointerEventManager_h | 179 #endif // PointerEventManager_h |
| OLD | NEW |