Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: third_party/WebKit/Source/core/input/PointerEventManager.h

Issue 1800143002: Notify Blink about start of gesture scroll through a queued event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 PassRefPtrWillBeRawPtr<Node> relatedTarget, 31 PassRefPtrWillBeRawPtr<Node> relatedTarget,
32 PassRefPtrWillBeRawPtr<AbstractView>); 32 PassRefPtrWillBeRawPtr<AbstractView>);
33 33
34 // Returns whether the event is consumed or not 34 // Returns whether the event is consumed or not
35 WebInputEventResult sendTouchPointerEvent( 35 WebInputEventResult sendTouchPointerEvent(
36 PassRefPtrWillBeRawPtr<EventTarget>, 36 PassRefPtrWillBeRawPtr<EventTarget>,
37 const PlatformTouchPoint&, PlatformEvent::Modifiers, 37 const PlatformTouchPoint&, PlatformEvent::Modifiers,
38 const double width, const double height, 38 const double width, const double height,
39 const double clientX, const double clientY); 39 const double clientX, const double clientY);
40 40
41 void sendTouchCancelPointerEvent(PassRefPtrWillBeRawPtr<EventTarget>, 41 // Inhibits firing of touch-type PointerEvents until unblocked by unblockTou chPointers(). Also
42 const PlatformTouchPoint&); 42 // sends pointercancels for existing touch-type PointerEvents.
43 // See: www.w3.org/TR/pointerevents/#declaring-candidate-regions-for-default -touch-behaviors
44 void blockTouchPointers();
45
46 // Enables firing of touch-type PointerEvents after they were inhibited by b lockTouchPointers().
47 void unblockTouchPointers();
43 48
44 // Sends node transition events (pointer|mouse)(out|leave|over|enter) to the corresponding targets 49 // Sends node transition events (pointer|mouse)(out|leave|over|enter) to the corresponding targets
45 void sendNodeTransitionEvents(PassRefPtrWillBeRawPtr<Node> exitedNode, 50 void sendNodeTransitionEvents(PassRefPtrWillBeRawPtr<Node> exitedNode,
46 PassRefPtrWillBeRawPtr<Node> enteredNode, 51 PassRefPtrWillBeRawPtr<Node> enteredNode,
47 const PlatformMouseEvent&, 52 const PlatformMouseEvent&,
48 PassRefPtrWillBeRawPtr<AbstractView>); 53 PassRefPtrWillBeRawPtr<AbstractView>);
49 54
50 // Clear all the existing ids. 55 // Clear all the existing ids.
51 void clear(); 56 void clear();
52 57
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 PassRefPtrWillBeRawPtr<EventTarget>, 105 PassRefPtrWillBeRawPtr<EventTarget>,
101 PassRefPtrWillBeRawPtr<PointerEvent>, 106 PassRefPtrWillBeRawPtr<PointerEvent>,
102 bool checkForListener = false); 107 bool checkForListener = false);
103 void releasePointerCapture(int); 108 void releasePointerCapture(int);
104 109
105 // Prevents firing mousedown, mousemove & mouseup in-between a canceled poin terdown and next pointerup/pointercancel. 110 // Prevents firing mousedown, mousemove & mouseup in-between a canceled poin terdown and next pointerup/pointercancel.
106 // See "PREVENT MOUSE EVENT flag" in the spec: 111 // See "PREVENT MOUSE EVENT flag" in the spec:
107 // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-e vents 112 // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-e vents
108 bool m_preventMouseEventForPointerTypeMouse; 113 bool m_preventMouseEventForPointerTypeMouse;
109 114
115 // Set upon sending a pointercancel for touch, prevents PE dispatches for to uches until
116 // all touch-points become inactive.
117 bool m_inCanceledStateForPointerTypeTouch;
118
110 // Note that this map keeps track of node under pointer with id=1 as well 119 // Note that this map keeps track of node under pointer with id=1 as well
111 // which might be different than m_nodeUnderMouse in EventHandler. That one 120 // which might be different than m_nodeUnderMouse in EventHandler. That one
112 // keeps track of any compatibility mouse event positions but this map for 121 // keeps track of any compatibility mouse event positions but this map for
113 // the pointer with id=1 is only taking care of true mouse related events. 122 // the pointer with id=1 is only taking care of true mouse related events.
114 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; 123 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer;
115 124
116 PointerCapturingMap m_pointerCaptureTarget; 125 PointerCapturingMap m_pointerCaptureTarget;
117 PointerCapturingMap m_pendingPointerCaptureTarget; 126 PointerCapturingMap m_pendingPointerCaptureTarget;
118 PointerEventFactory m_pointerEventFactory; 127 PointerEventFactory m_pointerEventFactory;
119 }; 128 };
120 129
121 } // namespace blink 130 } // namespace blink
122 131
123 #endif // PointerEventManager_h 132 #endif // PointerEventManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698