| 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 12 matching lines...) Expand all Loading... |
| 23 // This class takes care of dispatching all pointer events and keeps track of | 23 // This class takes care of dispatching all pointer events and keeps track of |
| 24 // properties of active pointer events. | 24 // properties of active pointer events. |
| 25 class CORE_EXPORT PointerEventManager | 25 class CORE_EXPORT PointerEventManager |
| 26 : public GarbageCollectedFinalized<PointerEventManager> { | 26 : public GarbageCollectedFinalized<PointerEventManager> { |
| 27 WTF_MAKE_NONCOPYABLE(PointerEventManager); | 27 WTF_MAKE_NONCOPYABLE(PointerEventManager); |
| 28 | 28 |
| 29 public: | 29 public: |
| 30 PointerEventManager(LocalFrame&, MouseEventManager&); | 30 PointerEventManager(LocalFrame&, MouseEventManager&); |
| 31 DECLARE_TRACE(); | 31 DECLARE_TRACE(); |
| 32 | 32 |
| 33 // This is the unified path for handling all input device events. This may |
| 34 // cause firing DOM pointerevents, mouseevent, and touch events accordingly. |
| 35 // TODO(crbug.com/625841): We need to get all event handling path to go |
| 36 // through this function. |
| 37 WebInputEventResult HandlePointerEvent(const WebPointerEvent&, Node* target); |
| 38 |
| 33 // Sends the mouse pointer events and the boundary events | 39 // Sends the mouse pointer events and the boundary events |
| 34 // that it may cause. It also sends the compat mouse events | 40 // that it may cause. It also sends the compat mouse events |
| 35 // and sets the newNodeUnderMouse if the capturing is set | 41 // and sets the newNodeUnderMouse if the capturing is set |
| 36 // in this function. | 42 // in this function. |
| 37 WebInputEventResult SendMousePointerEvent( | 43 WebInputEventResult SendMousePointerEvent( |
| 38 Node* target, | 44 Node* target, |
| 39 const String& canvas_region_id, | 45 const String& canvas_region_id, |
| 40 const AtomicString& type, | 46 const AtomicString& type, |
| 41 const WebMouseEvent&, | 47 const WebMouseEvent&, |
| 42 const Vector<WebMouseEvent>& coalesced_events); | 48 const Vector<WebMouseEvent>& coalesced_events); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 Member<MouseEventManager> mouse_event_manager_; | 238 Member<MouseEventManager> mouse_event_manager_; |
| 233 | 239 |
| 234 // The pointerId of the PointerEvent currently being dispatched within this | 240 // The pointerId of the PointerEvent currently being dispatched within this |
| 235 // frame or 0 if none. | 241 // frame or 0 if none. |
| 236 int dispatching_pointer_id_; | 242 int dispatching_pointer_id_; |
| 237 }; | 243 }; |
| 238 | 244 |
| 239 } // namespace blink | 245 } // namespace blink |
| 240 | 246 |
| 241 #endif // PointerEventManager_h | 247 #endif // PointerEventManager_h |
| OLD | NEW |