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/wtf/Allocator.h" |
| 11 #include "platform/wtf/HashMap.h" |
10 #include "public/platform/WebInputEventResult.h" | 12 #include "public/platform/WebInputEventResult.h" |
11 #include "public/platform/WebTouchPoint.h" | 13 #include "public/platform/WebTouchPoint.h" |
12 #include "wtf/Allocator.h" | |
13 #include "wtf/HashMap.h" | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class LocalFrame; | 17 class LocalFrame; |
18 class Document; | 18 class Document; |
19 class WebTouchEvent; | 19 class WebTouchEvent; |
20 | 20 |
21 // This class takes care of dispatching all touch events and | 21 // This class takes care of dispatching all touch events and |
22 // maintaining related states. | 22 // maintaining related states. |
23 class CORE_EXPORT TouchEventManager | 23 class CORE_EXPORT TouchEventManager |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // The current touch action, computed on each touch start and is | 100 // The current touch action, computed on each touch start and is |
101 // a union of all touches. Reset when all touches are released. | 101 // a union of all touches. Reset when all touches are released. |
102 TouchAction current_touch_action_; | 102 TouchAction current_touch_action_; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
108 | 108 |
109 #endif // TouchEventManager_h | 109 #endif // TouchEventManager_h |
OLD | NEW |