| 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 { | 24 class CORE_EXPORT TouchEventManager { |
| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // True if waiting on first touch move after a touch start. | 97 // True if waiting on first touch move after a touch start. |
| 99 bool m_waitingForFirstTouchMove; | 98 bool m_waitingForFirstTouchMove; |
| 100 | 99 |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace blink | 102 } // namespace blink |
| 104 | 103 |
| 105 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 104 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
| 106 | 105 |
| 107 #endif // TouchEventManager_h | 106 #endif // TouchEventManager_h |
| OLD | NEW |