| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool is_source_touch_event_set_non_blocking, |
| 75 GestureConsumer* consumer) override; | 76 GestureConsumer* consumer) override; |
| 76 | 77 |
| 77 bool CleanupStateForConsumer(GestureConsumer* consumer) override; | 78 bool CleanupStateForConsumer(GestureConsumer* consumer) override; |
| 78 void AddGestureEventHelper(GestureEventHelper* helper) override; | 79 void AddGestureEventHelper(GestureEventHelper* helper) override; |
| 79 void RemoveGestureEventHelper(GestureEventHelper* helper) override; | 80 void RemoveGestureEventHelper(GestureEventHelper* helper) override; |
| 80 | 81 |
| 81 // Overridden from GestureProviderAuraClient | 82 // Overridden from GestureProviderAuraClient |
| 82 void OnGestureEvent(GestureConsumer* raw_input_consumer, | 83 void OnGestureEvent(GestureConsumer* raw_input_consumer, |
| 83 GestureEvent* event) override; | 84 GestureEvent* event) override; |
| 84 | 85 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 104 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); | 105 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 // Provided only for testing: | 108 // Provided only for testing: |
| 108 EVENTS_EXPORT void SetGestureRecognizerForTesting( | 109 EVENTS_EXPORT void SetGestureRecognizerForTesting( |
| 109 GestureRecognizer* gesture_recognizer); | 110 GestureRecognizer* gesture_recognizer); |
| 110 | 111 |
| 111 } // namespace ui | 112 } // namespace ui |
| 112 | 113 |
| 113 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ | 114 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ |
| OLD | NEW |