| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ |
| 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ | 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 SyntheticGestureParams(const SyntheticGestureParams& other); | 33 SyntheticGestureParams(const SyntheticGestureParams& other); |
| 34 virtual ~SyntheticGestureParams(); | 34 virtual ~SyntheticGestureParams(); |
| 35 | 35 |
| 36 // Describes which type of input events synthetic gesture objects should | 36 // Describes which type of input events synthetic gesture objects should |
| 37 // generate. When specifying DEFAULT_INPUT the platform will be queried for | 37 // generate. When specifying DEFAULT_INPUT the platform will be queried for |
| 38 // the preferred input event type. | 38 // the preferred input event type. |
| 39 enum GestureSourceType { | 39 enum GestureSourceType { |
| 40 DEFAULT_INPUT, | 40 DEFAULT_INPUT, |
| 41 TOUCH_INPUT, | 41 TOUCH_INPUT, |
| 42 MOUSE_INPUT, | 42 MOUSE_INPUT, |
| 43 GESTURE_SOURCE_TYPE_MAX = MOUSE_INPUT | 43 PEN_INPUT, |
| 44 GESTURE_SOURCE_TYPE_MAX = PEN_INPUT |
| 44 }; | 45 }; |
| 45 GestureSourceType gesture_source_type; | 46 GestureSourceType gesture_source_type; |
| 46 | 47 |
| 47 enum GestureType { | 48 enum GestureType { |
| 48 SMOOTH_SCROLL_GESTURE, | 49 SMOOTH_SCROLL_GESTURE, |
| 49 SMOOTH_DRAG_GESTURE, | 50 SMOOTH_DRAG_GESTURE, |
| 50 PINCH_GESTURE, | 51 PINCH_GESTURE, |
| 51 TAP_GESTURE, | 52 TAP_GESTURE, |
| 52 POINTER_ACTION_LIST, | 53 POINTER_ACTION_LIST, |
| 53 SYNTHETIC_GESTURE_TYPE_MAX = POINTER_ACTION_LIST | 54 SYNTHETIC_GESTURE_TYPE_MAX = POINTER_ACTION_LIST |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 virtual GestureType GetGestureType() const = 0; | 57 virtual GestureType GetGestureType() const = 0; |
| 57 | 58 |
| 58 // Returns true if the specific gesture source type is supported on this | 59 // Returns true if the specific gesture source type is supported on this |
| 59 // platform. | 60 // platform. |
| 60 static bool IsGestureSourceTypeSupported( | 61 static bool IsGestureSourceTypeSupported( |
| 61 GestureSourceType gesture_source_type); | 62 GestureSourceType gesture_source_type); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace content | 65 } // namespace content |
| 65 | 66 |
| 66 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ | 67 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ |
| OLD | NEW |