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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Sends the mouse pointer events and the boundary events | 33 // Sends the mouse pointer events and the boundary events |
34 // that it may cause. It also sends the compat mouse events | 34 // that it may cause. It also sends the compat mouse events |
35 // and sets the newNodeUnderMouse if the capturing is set | 35 // and sets the newNodeUnderMouse if the capturing is set |
36 // in this function. | 36 // in this function. |
37 WebInputEventResult sendMousePointerEvent( | 37 WebInputEventResult sendMousePointerEvent( |
38 Node* target, | 38 Node* target, |
39 const String& canvasRegionId, | 39 const String& canvasRegionId, |
40 const AtomicString& type, | 40 const AtomicString& type, |
41 const WebMouseEvent&, | 41 const WebMouseEvent&, |
42 const Vector<WebMouseEvent>& coalescedEvents); | 42 const Vector<WebMouseEvent>& coalescedEvents, |
| 43 bool selectionOverLink); |
43 | 44 |
44 WebInputEventResult handleTouchEvents( | 45 WebInputEventResult handleTouchEvents( |
45 const WebTouchEvent&, | 46 const WebTouchEvent&, |
46 const Vector<WebTouchEvent>& coalescedEvents); | 47 const Vector<WebTouchEvent>& coalescedEvents); |
47 | 48 |
48 // Sends boundary events pointerout/leave/over/enter and | 49 // Sends boundary events pointerout/leave/over/enter and |
49 // mouseout/leave/over/enter to the corresponding targets. | 50 // mouseout/leave/over/enter to the corresponding targets. |
50 // inside the document. This functions handles the cases that pointer is | 51 // inside the document. This functions handles the cases that pointer is |
51 // leaving a frame. Note that normal mouse events (e.g. mousemove/down/up) | 52 // leaving a frame. Note that normal mouse events (e.g. mousemove/down/up) |
52 // and their corresponding boundary events will be handled altogether by | 53 // and their corresponding boundary events will be handled altogether by |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 Member<MouseEventManager> m_mouseEventManager; | 226 Member<MouseEventManager> m_mouseEventManager; |
226 | 227 |
227 // The pointerId of the PointerEvent currently being dispatched within this | 228 // The pointerId of the PointerEvent currently being dispatched within this |
228 // frame or 0 if none. | 229 // frame or 0 if none. |
229 int m_dispatchingPointerId; | 230 int m_dispatchingPointerId; |
230 }; | 231 }; |
231 | 232 |
232 } // namespace blink | 233 } // namespace blink |
233 | 234 |
234 #endif // PointerEventManager_h | 235 #endif // PointerEventManager_h |
OLD | NEW |