| 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; | 21 class PointerEventWithTarget; |
| 22 | 22 |
| 23 // This class takes care of dispatching all touch events and | 23 // This class takes care of dispatching all touch events and |
| 24 // maintaining related states. | 24 // maintaining related states. |
| 25 class CORE_EXPORT TouchEventManager { | 25 class CORE_EXPORT TouchEventManager { |
| 26 WTF_MAKE_NONCOPYABLE(TouchEventManager); |
| 26 DISALLOW_NEW(); | 27 DISALLOW_NEW(); |
| 27 public: | 28 public: |
| 28 class TouchInfo { | 29 class TouchInfo { |
| 29 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 30 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 30 public: | 31 public: |
| 31 DEFINE_INLINE_TRACE() | 32 DEFINE_INLINE_TRACE() |
| 32 { | 33 { |
| 33 visitor->trace(touchNode); | 34 visitor->trace(touchNode); |
| 34 visitor->trace(targetFrame); | 35 visitor->trace(targetFrame); |
| 35 } | 36 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // True if waiting on first touch move after a touch start. | 98 // True if waiting on first touch move after a touch start. |
| 98 bool m_waitingForFirstTouchMove; | 99 bool m_waitingForFirstTouchMove; |
| 99 | 100 |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace blink | 103 } // namespace blink |
| 103 | 104 |
| 104 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 105 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
| 105 | 106 |
| 106 #endif // TouchEventManager_h | 107 #endif // TouchEventManager_h |
| OLD | NEW |