OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |