Chromium Code Reviews| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 MOUSE_INPUT, | 41 MOUSE_INPUT, |
| 42 GESTURE_SOURCE_TYPE_MAX = MOUSE_INPUT | 42 GESTURE_SOURCE_TYPE_MAX = MOUSE_INPUT |
| 43 }; | 43 }; |
| 44 GestureSourceType gesture_source_type; | 44 GestureSourceType gesture_source_type; |
| 45 | 45 |
| 46 enum GestureType { | 46 enum GestureType { |
| 47 SMOOTH_SCROLL_GESTURE, | 47 SMOOTH_SCROLL_GESTURE, |
| 48 SMOOTH_DRAG_GESTURE, | 48 SMOOTH_DRAG_GESTURE, |
| 49 PINCH_GESTURE, | 49 PINCH_GESTURE, |
| 50 TAP_GESTURE, | 50 TAP_GESTURE, |
| 51 SYNTHETIC_GESTURE_TYPE_MAX = TAP_GESTURE | 51 POINTER_ACTION, |
| 52 SYNTHETIC_GESTURE_TYPE_MAX = POINTER_ACTION | |
| 52 }; | 53 }; |
| 54 | |
| 55 // When we send actions one by one, once we receive a PROCESS action, we will | |
|
tdresser
2016/03/02 19:37:56
Shouldn't there be a PROCESS action defined?
| |
| 56 // start to dispatch a event with all the pending actions. | |
| 57 enum PointerActionType { | |
|
tdresser
2016/03/02 19:37:56
Might as well use an enum class here.
| |
| 58 PRESS, | |
| 59 MOVE, | |
| 60 RELEASE, | |
| 61 POINTER_ACTION_TYPE_MAX = RELEASE | |
| 62 }; | |
| 63 | |
| 53 virtual GestureType GetGestureType() const = 0; | 64 virtual GestureType GetGestureType() const = 0; |
| 54 | 65 |
| 55 // Returns true if the specific gesture source type is supported on this | 66 // Returns true if the specific gesture source type is supported on this |
| 56 // platform. | 67 // platform. |
| 57 static bool IsGestureSourceTypeSupported( | 68 static bool IsGestureSourceTypeSupported( |
| 58 GestureSourceType gesture_source_type); | 69 GestureSourceType gesture_source_type); |
| 59 }; | 70 }; |
| 60 | 71 |
| 61 } // namespace content | 72 } // namespace content |
| 62 | 73 |
| 63 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ | 74 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ |
| OLD | NEW |