Chromium Code Reviews

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

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: Change the style of the constructors Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 114 matching lines...)
125 const AtomicString&, 125 const AtomicString&,
126 bool check_for_listener); 126 bool check_for_listener);
127 Member<PointerEventManager> pointer_event_manager_; 127 Member<PointerEventManager> pointer_event_manager_;
128 Member<PointerEvent> pointer_event_; 128 Member<PointerEvent> pointer_event_;
129 }; 129 };
130 130
131 // Inhibits firing of touch-type PointerEvents until unblocked by 131 // Inhibits firing of touch-type PointerEvents until unblocked by
132 // unblockTouchPointers(). Also sends pointercancels for existing touch-type 132 // unblockTouchPointers(). Also sends pointercancels for existing touch-type
133 // PointerEvents. See: 133 // PointerEvents. See:
134 // www.w3.org/TR/pointerevents/#declaring-candidate-regions-for-default-touch- behaviors 134 // www.w3.org/TR/pointerevents/#declaring-candidate-regions-for-default-touch- behaviors
135 void BlockTouchPointers(); 135 void BlockTouchPointers(TimeTicks platfrom_time_stamp);
dtapuska 2017/04/24 15:27:43 s/platfrom/platform/
Navid Zolghadr 2017/04/24 15:51:45 Done.
136 136
137 // Enables firing of touch-type PointerEvents after they were inhibited by 137 // Enables firing of touch-type PointerEvents after they were inhibited by
138 // blockTouchPointers(). 138 // blockTouchPointers().
139 void UnblockTouchPointers(); 139 void UnblockTouchPointers();
140 140
141 // Generate the TouchInfos for a WebTouchEvent, hit-testing as necessary. 141 // Generate the TouchInfos for a WebTouchEvent, hit-testing as necessary.
142 void ComputeTouchTargets(const WebTouchEvent&, 142 void ComputeTouchTargets(const WebTouchEvent&,
143 HeapVector<TouchEventManager::TouchInfo>&); 143 HeapVector<TouchEventManager::TouchInfo>&);
144 144
145 // Sends touch pointer events and sets consumed bits in TouchInfo array 145 // Sends touch pointer events and sets consumed bits in TouchInfo array
(...skipping 79 matching lines...)
225 Member<MouseEventManager> mouse_event_manager_; 225 Member<MouseEventManager> mouse_event_manager_;
226 226
227 // The pointerId of the PointerEvent currently being dispatched within this 227 // The pointerId of the PointerEvent currently being dispatched within this
228 // frame or 0 if none. 228 // frame or 0 if none.
229 int dispatching_pointer_id_; 229 int dispatching_pointer_id_;
230 }; 230 };
231 231
232 } // namespace blink 232 } // namespace blink
233 233
234 #endif // PointerEventManager_h 234 #endif // PointerEventManager_h
OLDNEW

Powered by Google App Engine