| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |