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

Side by Side Diff: ui/events/gestures/gesture_recognizer_impl.h

Issue 680413006: Re-enable Eager Gesture Recognition on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address jdduke's comments. Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 5 #ifndef UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
6 #define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 6 #define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void DispatchGestureEvent(GestureEvent* event); 57 void DispatchGestureEvent(GestureEvent* event);
58 58
59 // Overridden from GestureRecognizer 59 // Overridden from GestureRecognizer
60 bool ProcessTouchEventPreDispatch(const TouchEvent& event, 60 bool ProcessTouchEventPreDispatch(const TouchEvent& event,
61 GestureConsumer* consumer) override; 61 GestureConsumer* consumer) override;
62 62
63 Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event, 63 Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event,
64 ui::EventResult result, 64 ui::EventResult result,
65 GestureConsumer* consumer) override; 65 GestureConsumer* consumer) override;
66 66
67 Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event,
68 ui::EventResult result,
69 GestureConsumer* consumer) override;
70
71 bool CleanupStateForConsumer(GestureConsumer* consumer) override; 67 bool CleanupStateForConsumer(GestureConsumer* consumer) override;
72 void AddGestureEventHelper(GestureEventHelper* helper) override; 68 void AddGestureEventHelper(GestureEventHelper* helper) override;
73 void RemoveGestureEventHelper(GestureEventHelper* helper) override; 69 void RemoveGestureEventHelper(GestureEventHelper* helper) override;
74 70
75 // Overridden from GestureProviderAuraClient 71 // Overridden from GestureProviderAuraClient
76 void OnGestureEvent(GestureEvent* event) override; 72 void OnGestureEvent(GestureEvent* event) override;
77 73
78 // Convenience method to find the GestureEventHelper that can dispatch events 74 // Convenience method to find the GestureEventHelper that can dispatch events
79 // to a specific |consumer|. 75 // to a specific |consumer|.
80 GestureEventHelper* FindDispatchHelperForConsumer(GestureConsumer* consumer); 76 GestureEventHelper* FindDispatchHelperForConsumer(GestureConsumer* consumer);
(...skipping 11 matching lines...) Expand all
92 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 88 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
93 }; 89 };
94 90
95 // Provided only for testing: 91 // Provided only for testing:
96 EVENTS_EXPORT void SetGestureRecognizerForTesting( 92 EVENTS_EXPORT void SetGestureRecognizerForTesting(
97 GestureRecognizer* gesture_recognizer); 93 GestureRecognizer* gesture_recognizer);
98 94
99 } // namespace ui 95 } // namespace ui
100 96
101 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 97 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698