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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Overridden from GestureRecognizer | 62 // Overridden from GestureRecognizer |
63 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event, | 63 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event, |
64 GestureConsumer* consumer) OVERRIDE; | 64 GestureConsumer* consumer) OVERRIDE; |
65 | 65 |
66 virtual Gestures* ProcessTouchEventPostDispatch( | 66 virtual Gestures* ProcessTouchEventPostDispatch( |
67 const TouchEvent& event, | 67 const TouchEvent& event, |
68 ui::EventResult result, | 68 ui::EventResult result, |
69 GestureConsumer* consumer) OVERRIDE; | 69 GestureConsumer* consumer) OVERRIDE; |
70 | 70 |
71 virtual Gestures* ProcessTouchEventOnAsyncAck( | 71 virtual Gestures* ProcessTouchEventOnAsyncAck( |
72 const TouchEvent& event, | |
73 ui::EventResult result, | 72 ui::EventResult result, |
74 GestureConsumer* consumer) OVERRIDE; | 73 GestureConsumer* consumer) OVERRIDE; |
75 | 74 |
76 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) | 75 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) |
77 OVERRIDE; | 76 OVERRIDE; |
78 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE; | 77 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE; |
79 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE; | 78 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE; |
80 | 79 |
81 // Overridden from GestureProviderAuraClient | 80 // Overridden from GestureProviderAuraClient |
82 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE; | 81 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
98 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); | 97 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); |
99 }; | 98 }; |
100 | 99 |
101 // Provided only for testing: | 100 // Provided only for testing: |
102 EVENTS_EXPORT void SetGestureRecognizerForTesting( | 101 EVENTS_EXPORT void SetGestureRecognizerForTesting( |
103 GestureRecognizer* gesture_recognizer); | 102 GestureRecognizer* gesture_recognizer); |
104 | 103 |
105 } // namespace ui | 104 } // namespace ui |
106 | 105 |
107 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ | 106 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ |
OLD | NEW |