Chromium Code Reviews| 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. | |
|
mustaq
2017/07/10 16:17:30
Say it's a WIP, link to the bug (we have one, righ
Navid Zolghadr
2017/07/11 15:41:06
Done.
| |
| 35 WebInputEventResult HandlePointerEvent(const WebPointerEvent&, Node* target); | |
| 36 | |
| 33 // Sends the mouse pointer events and the boundary events | 37 // Sends the mouse pointer events and the boundary events |
| 34 // that it may cause. It also sends the compat mouse events | 38 // that it may cause. It also sends the compat mouse events |
| 35 // and sets the newNodeUnderMouse if the capturing is set | 39 // and sets the newNodeUnderMouse if the capturing is set |
| 36 // in this function. | 40 // in this function. |
| 37 WebInputEventResult SendMousePointerEvent( | 41 WebInputEventResult SendMousePointerEvent( |
| 38 Node* target, | 42 Node* target, |
| 39 const String& canvas_region_id, | 43 const String& canvas_region_id, |
| 40 const AtomicString& type, | 44 const AtomicString& type, |
| 41 const WebMouseEvent&, | 45 const WebMouseEvent&, |
| 42 const Vector<WebMouseEvent>& coalesced_events); | 46 const Vector<WebMouseEvent>& coalesced_events); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 232 Member<MouseEventManager> mouse_event_manager_; | 236 Member<MouseEventManager> mouse_event_manager_; |
| 233 | 237 |
| 234 // The pointerId of the PointerEvent currently being dispatched within this | 238 // The pointerId of the PointerEvent currently being dispatched within this |
| 235 // frame or 0 if none. | 239 // frame or 0 if none. |
| 236 int dispatching_pointer_id_; | 240 int dispatching_pointer_id_; |
| 237 }; | 241 }; |
| 238 | 242 |
| 239 } // namespace blink | 243 } // namespace blink |
| 240 | 244 |
| 241 #endif // PointerEventManager_h | 245 #endif // PointerEventManager_h |
| OLD | NEW |