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 TouchEventManager_h | 5 #ifndef TouchEventManager_h |
6 #define TouchEventManager_h | 6 #define TouchEventManager_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/events/PointerEventFactory.h" | 9 #include "core/events/PointerEventFactory.h" |
10 #include "platform/UserGestureIndicator.h" | 10 #include "platform/UserGestureIndicator.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 using TouchTargetMap = HeapHashMap<unsigned, Member<Node>, DefaultHash<unsig
ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; | 92 using TouchTargetMap = HeapHashMap<unsigned, Member<Node>, DefaultHash<unsig
ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
93 TouchTargetMap m_targetForTouchID; | 93 TouchTargetMap m_targetForTouchID; |
94 using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash
, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; | 94 using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash
, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
95 TouchRegionMap m_regionForTouchID; | 95 TouchRegionMap m_regionForTouchID; |
96 | 96 |
97 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. | 97 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. |
98 Member<Document> m_touchSequenceDocument; | 98 Member<Document> m_touchSequenceDocument; |
99 | 99 |
100 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; | 100 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; |
101 bool m_touchPressed; | 101 bool m_touchPressed; |
102 // True if waiting on first touch move after a touch start. | |
103 bool m_waitingForFirstTouchMove; | |
104 // True if a touch is active but scrolling/zooming has started. | 102 // True if a touch is active but scrolling/zooming has started. |
105 bool m_touchScrollStarted; | 103 bool m_touchScrollStarted; |
106 // The touch event currently being handled or NoType if none. | 104 // The touch event currently being handled or NoType if none. |
107 PlatformEvent::EventType m_currentEvent; | 105 PlatformEvent::EventType m_currentEvent; |
108 }; | 106 }; |
109 | 107 |
110 } // namespace blink | 108 } // namespace blink |
111 | 109 |
112 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 110 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
113 | 111 |
114 #endif // TouchEventManager_h | 112 #endif // TouchEventManager_h |
OLD | NEW |