Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: ui/base/events.h

Issue 8521001: Touch to Mouse conversion validation of views::GestureManager (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/x/events_x.cc » ('j') | ui/base/x/events_x.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | ui/base/x/events_x.cc » ('j') | ui/base/x/events_x.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698