OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EVENTS_H_ | 5 #ifndef UI_BASE_EVENTS_H_ |
6 #define UI_BASE_EVENTS_H_ | 6 #define UI_BASE_EVENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 #include "ui/base/keycodes/keyboard_codes.h" | 10 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Gets the radius along the X/Y axis from a native event. Default is 1.0. | 96 // Gets the radius along the X/Y axis from a native event. Default is 1.0. |
97 UI_EXPORT float GetTouchRadiusX(const base::NativeEvent& native_event); | 97 UI_EXPORT float GetTouchRadiusX(const base::NativeEvent& native_event); |
98 UI_EXPORT float GetTouchRadiusY(const base::NativeEvent& native_event); | 98 UI_EXPORT float GetTouchRadiusY(const base::NativeEvent& native_event); |
99 | 99 |
100 // Gets the angle of the major axis away from the X axis. Default is 0.0. | 100 // Gets the angle of the major axis away from the X axis. Default is 0.0. |
101 UI_EXPORT float GetTouchAngle(const base::NativeEvent& native_event); | 101 UI_EXPORT float GetTouchAngle(const base::NativeEvent& native_event); |
102 | 102 |
103 // Gets the force from a native_event. Normalized to be [0, 1]. Default is 0.0. | 103 // Gets the force from a native_event. Normalized to be [0, 1]. Default is 0.0. |
104 UI_EXPORT float GetTouchForce(const base::NativeEvent& native_event); | 104 UI_EXPORT float GetTouchForce(const base::NativeEvent& native_event); |
105 | 105 |
| 106 // Creates and returns no-op event. |
| 107 UI_EXPORT base::NativeEvent CreateNoopEvent(); |
| 108 |
106 } // namespace ui | 109 } // namespace ui |
107 | 110 |
108 #endif // UI_BASE_EVENTS_H_ | 111 #endif // UI_BASE_EVENTS_H_ |
OLD | NEW |