Chromium Code Reviews| Index: ui/base/events.h |
| diff --git a/ui/base/events.h b/ui/base/events.h |
| index 1e834797eefe41d9f977569c4d491e1ea680270f..ed084b120c65139b082173fb50a76ea6179d1b9c 100644 |
| --- a/ui/base/events.h |
| +++ b/ui/base/events.h |
| @@ -103,6 +103,18 @@ UI_EXPORT float GetTouchAngle(const base::NativeEvent& native_event); |
| // Gets the force from a native_event. Normalized to be [0, 1]. Default is 0.0. |
| UI_EXPORT float GetTouchForce(const base::NativeEvent& native_event); |
| +#if defined(USE_X11) |
|
rjkroege
2011/11/10 16:34:40
can you move this code to your test? They do not s
Gajen
2011/11/11 13:39:07
Done.
|
| +// All Below methods are intended for testing touch to mouse event conversion in |
| +// views_unittests. |
| +// Get test XEvent with all bits set to 'x0'. |
| +UI_EXPORT base::NativeEvent GetNativeEventForTesting(); |
| + |
| +// Set location of native event. |
| +UI_EXPORT void SetNativeEventLocationForTesting( |
| + const base::NativeEvent& native_event, |
| + int x, int y); |
| +#endif |
| + |
| } // namespace ui |
| #endif // UI_BASE_EVENTS_H_ |