Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(831)

Side by Side Diff: third_party/WebKit/Source/core/input/TouchEventManager.h

Issue 2255323004: Create MouseEventManager and EventHandlingUtil (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make all *Manager classes GarbageCollected Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21
22 // This class takes care of dispatching all touch events and 22 // This class takes care of dispatching all touch events and
23 // maintaining related states. 23 // maintaining related states.
24 class CORE_EXPORT TouchEventManager: public UserGestureUtilizedCallback { 24 class CORE_EXPORT TouchEventManager final : public GarbageCollectedFinalized<Tou chEventManager>, public UserGestureUtilizedCallback {
25 WTF_MAKE_NONCOPYABLE(TouchEventManager); 25 WTF_MAKE_NONCOPYABLE(TouchEventManager);
26 DISALLOW_NEW();
27 public: 26 public:
28 class TouchInfo { 27 class TouchInfo {
29 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 28 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
30 public: 29 public:
31 DEFINE_INLINE_TRACE() 30 DEFINE_INLINE_TRACE()
32 { 31 {
33 visitor->trace(touchNode); 32 visitor->trace(touchNode);
34 visitor->trace(targetFrame); 33 visitor->trace(targetFrame);
35 } 34 }
36 35
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool m_touchScrollStarted; 102 bool m_touchScrollStarted;
104 // The touch event currently being handled or NoType if none. 103 // The touch event currently being handled or NoType if none.
105 PlatformEvent::EventType m_currentEvent; 104 PlatformEvent::EventType m_currentEvent;
106 }; 105 };
107 106
108 } // namespace blink 107 } // namespace blink
109 108
110 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); 109 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo);
111 110
112 #endif // TouchEventManager_h 111 #endif // TouchEventManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698