| 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" |
| 11 #include "public/platform/WebInputEventResult.h" | 11 #include "public/platform/WebInputEventResult.h" |
| 12 #include "wtf/Allocator.h" | 12 #include "wtf/Allocator.h" |
| 13 #include "wtf/HashMap.h" | 13 #include "wtf/HashMap.h" |
| 14 | 14 |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class LocalFrame; | 18 class LocalFrame; |
| 19 class Document; | 19 class Document; |
| 20 class PlatformTouchEvent; | 20 class PlatformTouchEvent; |
| 21 class PointerEventWithTarget; | |
| 22 | 21 |
| 23 // This class takes care of dispatching all touch events and | 22 // This class takes care of dispatching all touch events and |
| 24 // maintaining related states. | 23 // maintaining related states. |
| 25 class CORE_EXPORT TouchEventManager: public UserGestureUtilizedCallback { | 24 class CORE_EXPORT TouchEventManager: public UserGestureUtilizedCallback { |
| 26 WTF_MAKE_NONCOPYABLE(TouchEventManager); | 25 WTF_MAKE_NONCOPYABLE(TouchEventManager); |
| 27 DISALLOW_NEW(); | 26 DISALLOW_NEW(); |
| 28 public: | 27 public: |
| 29 class TouchInfo { | 28 class TouchInfo { |
| 30 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 29 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 31 public: | 30 public: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool m_touchScrollStarted; | 105 bool m_touchScrollStarted; |
| 107 // The touch event currently being handled or NoType if none. | 106 // The touch event currently being handled or NoType if none. |
| 108 PlatformEvent::EventType m_currentEvent; | 107 PlatformEvent::EventType m_currentEvent; |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace blink | 110 } // namespace blink |
| 112 | 111 |
| 113 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 112 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
| 114 | 113 |
| 115 #endif // TouchEventManager_h | 114 #endif // TouchEventManager_h |
| OLD | NEW |