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 "public/platform/WebInputEventResult.h" | 10 #include "public/platform/WebInputEventResult.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; | 89 WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
90 TouchRegionMap m_regionForTouchID; | 90 TouchRegionMap m_regionForTouchID; |
91 | 91 |
92 // If set, the document of the active touch sequence. Unset if no touch | 92 // If set, the document of the active touch sequence. Unset if no touch |
93 // sequence active. | 93 // sequence active. |
94 Member<Document> m_touchSequenceDocument; | 94 Member<Document> m_touchSequenceDocument; |
95 | 95 |
96 bool m_touchPressed; | 96 bool m_touchPressed; |
97 // The touch event currently being handled or NoType if none. | 97 // The touch event currently being handled or NoType if none. |
98 PlatformEvent::EventType m_currentEvent; | 98 PlatformEvent::EventType m_currentEvent; |
| 99 |
| 100 // The current touch action, computed on each touch start and is |
| 101 // a union of all touches. Reset when all touches are released. |
| 102 TouchAction m_currentTouchAction; |
99 }; | 103 }; |
100 | 104 |
101 } // namespace blink | 105 } // namespace blink |
102 | 106 |
103 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
104 | 108 |
105 #endif // TouchEventManager_h | 109 #endif // TouchEventManager_h |
OLD | NEW |