| 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_TYPES_H_ | 5 #ifndef UI_EVENTS_GESTURES_GESTURE_TYPES_H_ |
| 6 #define UI_EVENTS_GESTURES_GESTURE_TYPES_H_ | 6 #define UI_EVENTS_GESTURES_GESTURE_TYPES_H_ |
| 7 | 7 |
| 8 #include "ui/events/events_export.h" | 8 #include "ui/events/events_export.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // can dispatch them. | 23 // can dispatch them. |
| 24 class EVENTS_EXPORT GestureEventHelper { | 24 class EVENTS_EXPORT GestureEventHelper { |
| 25 public: | 25 public: |
| 26 virtual ~GestureEventHelper() { | 26 virtual ~GestureEventHelper() { |
| 27 } | 27 } |
| 28 | 28 |
| 29 // Returns true if this helper can dispatch events to |consumer|. | 29 // Returns true if this helper can dispatch events to |consumer|. |
| 30 virtual bool CanDispatchToConsumer(GestureConsumer* consumer) = 0; | 30 virtual bool CanDispatchToConsumer(GestureConsumer* consumer) = 0; |
| 31 virtual void DispatchGestureEvent(GestureConsumer* raw_input_consumer, | 31 virtual void DispatchGestureEvent(GestureConsumer* raw_input_consumer, |
| 32 GestureEvent* event) = 0; | 32 GestureEvent* event) = 0; |
| 33 virtual void DispatchCancelTouchEvent(GestureConsumer* raw_input_consumer, | 33 virtual void DispatchSyntheticTouchEvent(TouchEvent* event) = 0; |
| 34 TouchEvent* event) = 0; | |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace ui | 36 } // namespace ui |
| 38 | 37 |
| 39 #endif // UI_EVENTS_GESTURES_GESTURE_TYPES_H_ | 38 #endif // UI_EVENTS_GESTURES_GESTURE_TYPES_H_ |
| OLD | NEW |