| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Sets up the target consumer for gestures based on the touch-event. | 63 // Sets up the target consumer for gestures based on the touch-event. |
| 64 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); | 64 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); |
| 65 | 65 |
| 66 void DispatchGestureEvent(GestureConsumer* raw_input_consumer, | 66 void DispatchGestureEvent(GestureConsumer* raw_input_consumer, |
| 67 GestureEvent* event); | 67 GestureEvent* event); |
| 68 | 68 |
| 69 // Overridden from GestureRecognizer | 69 // Overridden from GestureRecognizer |
| 70 bool ProcessTouchEventPreDispatch(TouchEvent* event, | 70 bool ProcessTouchEventPreDispatch(TouchEvent* event, |
| 71 GestureConsumer* consumer) override; | 71 GestureConsumer* consumer) override; |
| 72 | 72 |
| 73 Gestures* AckTouchEvent(uint32_t unique_event_id, | 73 Gestures AckTouchEvent(uint32_t unique_event_id, |
| 74 ui::EventResult result, | 74 ui::EventResult result, |
| 75 GestureConsumer* consumer) override; | 75 GestureConsumer* consumer) override; |
| 76 | 76 |
| 77 bool CleanupStateForConsumer(GestureConsumer* consumer) override; | 77 bool CleanupStateForConsumer(GestureConsumer* consumer) override; |
| 78 void AddGestureEventHelper(GestureEventHelper* helper) override; | 78 void AddGestureEventHelper(GestureEventHelper* helper) override; |
| 79 void RemoveGestureEventHelper(GestureEventHelper* helper) override; | 79 void RemoveGestureEventHelper(GestureEventHelper* helper) override; |
| 80 | 80 |
| 81 // Overridden from GestureProviderAuraClient | 81 // Overridden from GestureProviderAuraClient |
| 82 void OnGestureEvent(GestureConsumer* raw_input_consumer, | 82 void OnGestureEvent(GestureConsumer* raw_input_consumer, |
| 83 GestureEvent* event) override; | 83 GestureEvent* event) override; |
| 84 | 84 |
| 85 // Convenience method to find the GestureEventHelper that can dispatch events | 85 // Convenience method to find the GestureEventHelper that can dispatch events |
| (...skipping 12 matching lines...) Expand all Loading... |
| 98 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); | 98 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // Provided only for testing: | 101 // Provided only for testing: |
| 102 EVENTS_EXPORT void SetGestureRecognizerForTesting( | 102 EVENTS_EXPORT void SetGestureRecognizerForTesting( |
| 103 GestureRecognizer* gesture_recognizer); | 103 GestureRecognizer* gesture_recognizer); |
| 104 | 104 |
| 105 } // namespace ui | 105 } // namespace ui |
| 106 | 106 |
| 107 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ | 107 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ |
| OLD | NEW |