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

Side by Side Diff: third_party/WebKit/Source/core/input/TouchEventManager.cpp

Issue 2541073004: ABANDONED CL: Revert of Move EventHandler timers to per-frame task queues. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/input/TouchEventManager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "core/input/TouchEventManager.h" 5 #include "core/input/TouchEventManager.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/events/TouchEvent.h" 8 #include "core/events/TouchEvent.h"
9 #include "core/frame/Deprecation.h" 9 #include "core/frame/Deprecation.h"
10 #include "core/frame/EventHandlerRegistry.h" 10 #include "core/frame/EventHandlerRegistry.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // instance represents. 78 // instance represents.
79 Member<TouchList> m_touches; 79 Member<TouchList> m_touches;
80 80
81 using EventTargetSet = HeapHashSet<Member<EventTarget>>; 81 using EventTargetSet = HeapHashSet<Member<EventTarget>>;
82 // Set of targets involved in m_touches. 82 // Set of targets involved in m_touches.
83 EventTargetSet m_targets; 83 EventTargetSet m_targets;
84 }; 84 };
85 85
86 } // namespace 86 } // namespace
87 87
88 TouchEventManager::TouchEventManager(LocalFrame& frame) : m_frame(frame) { 88 TouchEventManager::TouchEventManager(LocalFrame* frame) : m_frame(frame) {
89 clear(); 89 clear();
90 } 90 }
91 91
92 void TouchEventManager::clear() { 92 void TouchEventManager::clear() {
93 m_touchSequenceDocument.clear(); 93 m_touchSequenceDocument.clear();
94 m_targetForTouchID.clear(); 94 m_targetForTouchID.clear();
95 m_regionForTouchID.clear(); 95 m_regionForTouchID.clear();
96 m_touchPressed = false; 96 m_touchPressed = false;
97 m_currentEvent = PlatformEvent::NoType; 97 m_currentEvent = PlatformEvent::NoType;
98 m_currentTouchAction = TouchActionAuto; 98 m_currentTouchAction = TouchActionAuto;
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 503 }
504 504
505 return dispatchTouchEvents(event, touchInfos, allTouchesReleased); 505 return dispatchTouchEvents(event, touchInfos, allTouchesReleased);
506 } 506 }
507 507
508 bool TouchEventManager::isAnyTouchActive() const { 508 bool TouchEventManager::isAnyTouchActive() const {
509 return m_touchPressed; 509 return m_touchPressed;
510 } 510 }
511 511
512 } // namespace blink 512 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/TouchEventManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698