| 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_BASE_GESTURES_GESTURE_RECOGNIZER_H_ | 5 #ifndef UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ |
| 6 #define UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ | 6 #define UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 11 #include "ui/base/events.h" | 11 #include "ui/base/events/event_constants.h" |
| 12 #include "ui/base/gestures/gesture_types.h" | 12 #include "ui/base/gestures/gesture_types.h" |
| 13 #include "ui/base/ui_export.h" | 13 #include "ui/base/ui_export.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 // A GestureRecognizer is an abstract base class for conversion of touch events | 16 // A GestureRecognizer is an abstract base class for conversion of touch events |
| 17 // into gestures. | 17 // into gestures. |
| 18 class UI_EXPORT GestureRecognizer { | 18 class UI_EXPORT GestureRecognizer { |
| 19 public: | 19 public: |
| 20 static GestureRecognizer* Create(GestureEventHelper* helper); | 20 static GestureRecognizer* Create(GestureEventHelper* helper); |
| 21 | 21 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // If a gesture is underway for |consumer| |point| is set to the last touch | 68 // If a gesture is underway for |consumer| |point| is set to the last touch |
| 69 // point and true is returned. If no touch events have been processed for | 69 // point and true is returned. If no touch events have been processed for |
| 70 // |consumer| false is returned and |point| is untouched. | 70 // |consumer| false is returned and |point| is untouched. |
| 71 virtual bool GetLastTouchPointForTarget(GestureConsumer* consumer, | 71 virtual bool GetLastTouchPointForTarget(GestureConsumer* consumer, |
| 72 gfx::Point* point) = 0; | 72 gfx::Point* point) = 0; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace ui | 75 } // namespace ui |
| 76 | 76 |
| 77 #endif // UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ | 77 #endif // UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ |
| OLD | NEW |