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

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

Issue 393953012: Eager Gesture Recognition on Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests. Created 6 years, 5 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 | Annotate | Revision Log
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); 63 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer);
64 void CancelTouches(std::vector<std::pair<int, GestureConsumer*> >* touches); 64 void CancelTouches(std::vector<std::pair<int, GestureConsumer*> >* touches);
65 65
66 void DispatchGestureEvent(GestureEvent* event); 66 void DispatchGestureEvent(GestureEvent* event);
67 67
68 // Overridden from GestureRecognizer 68 // Overridden from GestureRecognizer
69 virtual Gestures* ProcessTouchEventForGesture( 69 virtual Gestures* ProcessTouchEventForGesture(
70 const TouchEvent& event, 70 const TouchEvent& event,
71 ui::EventResult result, 71 ui::EventResult result,
72 GestureConsumer* target) OVERRIDE; 72 GestureConsumer* target) OVERRIDE;
73
74 virtual ScopedVector<GestureEvent>* AckTouchEventForGesture(
75 ui::EventResult result,
76 GestureConsumer* target) OVERRIDE;
77
73 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) 78 virtual bool CleanupStateForConsumer(GestureConsumer* consumer)
74 OVERRIDE; 79 OVERRIDE;
75 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 80 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
76 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 81 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
77 82
78 // Overridden from ui::GestureSequenceDelegate. 83 // Overridden from ui::GestureSequenceDelegate.
79 virtual void DispatchPostponedGestureEvent(GestureEvent* event) OVERRIDE; 84 virtual void DispatchPostponedGestureEvent(GestureEvent* event) OVERRIDE;
80 85
81 // Overridden from GestureProviderAuraClient 86 // Overridden from GestureProviderAuraClient
82 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE; 87 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE;
(...skipping 19 matching lines...) Expand all
102 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 107 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
103 }; 108 };
104 109
105 // Provided only for testing: 110 // Provided only for testing:
106 EVENTS_EXPORT void SetGestureRecognizerForTesting( 111 EVENTS_EXPORT void SetGestureRecognizerForTesting(
107 GestureRecognizer* gesture_recognizer); 112 GestureRecognizer* gesture_recognizer);
108 113
109 } // namespace ui 114 } // namespace ui
110 115
111 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 116 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698