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 21 matching lines...) Expand all Loading... |
32 virtual ~GestureRecognizerImpl(); | 32 virtual ~GestureRecognizerImpl(); |
33 | 33 |
34 std::vector<GestureEventHelper*>& helpers() { return helpers_; } | 34 std::vector<GestureEventHelper*>& helpers() { return helpers_; } |
35 | 35 |
36 // Overridden from GestureRecognizer | 36 // Overridden from GestureRecognizer |
37 virtual GestureConsumer* GetTouchLockedTarget( | 37 virtual GestureConsumer* GetTouchLockedTarget( |
38 const TouchEvent& event) OVERRIDE; | 38 const TouchEvent& event) OVERRIDE; |
39 virtual GestureConsumer* GetTargetForGestureEvent( | 39 virtual GestureConsumer* GetTargetForGestureEvent( |
40 const GestureEvent& event) OVERRIDE; | 40 const GestureEvent& event) OVERRIDE; |
41 virtual GestureConsumer* GetTargetForLocation( | 41 virtual GestureConsumer* GetTargetForLocation( |
42 const gfx::Point& location) OVERRIDE; | 42 const gfx::Point& location, int source_device_id) OVERRIDE; |
43 virtual void TransferEventsTo(GestureConsumer* current_consumer, | 43 virtual void TransferEventsTo(GestureConsumer* current_consumer, |
44 GestureConsumer* new_consumer) OVERRIDE; | 44 GestureConsumer* new_consumer) OVERRIDE; |
45 virtual bool GetLastTouchPointForTarget(GestureConsumer* consumer, | 45 virtual bool GetLastTouchPointForTarget(GestureConsumer* consumer, |
46 gfx::Point* point) OVERRIDE; | 46 gfx::Point* point) OVERRIDE; |
47 virtual void CancelActiveTouches(GestureConsumer* consumer) OVERRIDE; | 47 virtual void CancelActiveTouches(GestureConsumer* consumer) OVERRIDE; |
48 | 48 |
49 protected: | 49 protected: |
50 virtual GestureSequence* CreateSequence(GestureSequenceDelegate* delegate); | 50 virtual GestureSequence* CreateSequence(GestureSequenceDelegate* delegate); |
51 virtual GestureSequence* GetGestureSequenceForConsumer(GestureConsumer* c); | 51 virtual GestureSequence* GetGestureSequenceForConsumer(GestureConsumer* c); |
52 | 52 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); | 85 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); |
86 }; | 86 }; |
87 | 87 |
88 // Provided only for testing: | 88 // Provided only for testing: |
89 EVENTS_EXPORT void SetGestureRecognizerForTesting( | 89 EVENTS_EXPORT void SetGestureRecognizerForTesting( |
90 GestureRecognizer* gesture_recognizer); | 90 GestureRecognizer* gesture_recognizer); |
91 | 91 |
92 } // namespace ui | 92 } // namespace ui |
93 | 93 |
94 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ | 94 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ |
OLD | NEW |