| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual GestureProviderAura* GetGestureProviderForConsumer( | 50 virtual GestureProviderAura* GetGestureProviderForConsumer( |
| 51 GestureConsumer* c); | 51 GestureConsumer* c); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 // Sets up the target consumer for gestures based on the touch-event. | 54 // Sets up the target consumer for gestures based on the touch-event. |
| 55 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); | 55 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); |
| 56 | 56 |
| 57 void DispatchGestureEvent(GestureEvent* event); | 57 void DispatchGestureEvent(GestureEvent* event); |
| 58 | 58 |
| 59 // Overridden from GestureRecognizer | 59 // Overridden from GestureRecognizer |
| 60 bool ProcessTouchEventPreDispatch(const TouchEvent& event, | 60 bool ProcessTouchEventPreDispatch(TouchEvent* event, |
| 61 GestureConsumer* consumer) override; | 61 GestureConsumer* consumer) override; |
| 62 | 62 |
| 63 Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event, | 63 Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event, |
| 64 ui::EventResult result, | 64 ui::EventResult result, |
| 65 GestureConsumer* consumer) override; | 65 GestureConsumer* consumer) override; |
| 66 | 66 |
| 67 Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event, | 67 Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event, |
| 68 ui::EventResult result, | 68 ui::EventResult result, |
| 69 GestureConsumer* consumer) override; | 69 GestureConsumer* consumer) override; |
| 70 | 70 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 92 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); | 92 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // Provided only for testing: | 95 // Provided only for testing: |
| 96 EVENTS_EXPORT void SetGestureRecognizerForTesting( | 96 EVENTS_EXPORT void SetGestureRecognizerForTesting( |
| 97 GestureRecognizer* gesture_recognizer); | 97 GestureRecognizer* gesture_recognizer); |
| 98 | 98 |
| 99 } // namespace ui | 99 } // namespace ui |
| 100 | 100 |
| 101 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ | 101 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ |
| OLD | NEW |