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

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

Issue 2541073004: ABANDONED CL: Revert of Move EventHandler timers to per-frame task queues. (Closed)
Patch Set: Created 4 years 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 GestureManager_h 5 #ifndef GestureManager_h
6 #define GestureManager_h 6 #define GestureManager_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/layout/HitTestRequest.h" 10 #include "core/layout/HitTestRequest.h"
11 #include "core/page/EventWithHitTestResults.h" 11 #include "core/page/EventWithHitTestResults.h"
12 #include "platform/PlatformEvent.h" 12 #include "platform/PlatformEvent.h"
13 #include "public/platform/WebInputEventResult.h" 13 #include "public/platform/WebInputEventResult.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class ScrollManager; 17 class ScrollManager;
18 class SelectionController; 18 class SelectionController;
19 class PointerEventManager; 19 class PointerEventManager;
20 class MouseEventManager; 20 class MouseEventManager;
21 21
22 // This class takes care of gestures and delegating the action based on the 22 // This class takes care of gestures and delegating the action based on the
23 // gesture to the responsible class. 23 // gesture to the responsible class.
24 class CORE_EXPORT GestureManager 24 class CORE_EXPORT GestureManager
25 : public GarbageCollectedFinalized<GestureManager> { 25 : public GarbageCollectedFinalized<GestureManager> {
26 WTF_MAKE_NONCOPYABLE(GestureManager); 26 WTF_MAKE_NONCOPYABLE(GestureManager);
27 27
28 public: 28 public:
29 GestureManager(LocalFrame&, 29 GestureManager(LocalFrame*,
30 ScrollManager&, 30 ScrollManager*,
31 MouseEventManager&, 31 MouseEventManager*,
32 PointerEventManager&, 32 PointerEventManager*,
33 SelectionController&); 33 SelectionController*);
34 DECLARE_TRACE(); 34 DECLARE_TRACE();
35 35
36 void clear(); 36 void clear();
37 37
38 HitTestRequest::HitTestRequestType getHitTypeForGestureType( 38 HitTestRequest::HitTestRequestType getHitTypeForGestureType(
39 PlatformEvent::EventType); 39 PlatformEvent::EventType);
40 WebInputEventResult handleGestureEventInFrame( 40 WebInputEventResult handleGestureEventInFrame(
41 const GestureEventWithHitTestResults&); 41 const GestureEventWithHitTestResults&);
42 42
43 // TODO(nzolghadr): This can probably be hidden and the related logic 43 // TODO(nzolghadr): This can probably be hidden and the related logic
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool m_longTapShouldInvokeContextMenu; 79 bool m_longTapShouldInvokeContextMenu;
80 80
81 const Member<SelectionController> m_selectionController; 81 const Member<SelectionController> m_selectionController;
82 82
83 double m_lastShowPressTimestamp; 83 double m_lastShowPressTimestamp;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // GestureManager_h 88 #endif // GestureManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698