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

Unified Diff: ui/events/x/events_x_utils.h

Issue 81863002: Sticky keys modifies an entire scroll sequence instead of just a single event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasing Created 7 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 | « ash/wm/sticky_keys_unittest.cc ('k') | ui/events/x/events_x_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/events_x_utils.h
diff --git a/ui/events/x/events_x_utils.h b/ui/events/x/events_x_utils.h
index 1d316a726d795785719446f65e69930eb4c4c98d..c9567e40c5facfedeb1693af78ebdebc04203bf2 100644
--- a/ui/events/x/events_x_utils.h
+++ b/ui/events/x/events_x_utils.h
@@ -66,6 +66,17 @@ EVENTS_EXPORT XEvent* CreateScrollEventForTest(
int y_offset_ordinal,
int finger_count);
+// Creates the native XInput2 based XEvent for an aura scroll event of type
+// ET_SCROLL_FLING_START or ET_SCROLL_FLING_CANCEL. The caller is responsible
+// for the ownership of the returned XEvent.
+EVENTS_EXPORT XEvent* CreateFlingEventForTest(
+ int deviceid,
+ int x_velocity,
+ int y_velocity,
+ int x_velocity_ordinal,
+ int y_velocity_ordinal,
+ bool is_cancel);
+
// Initializes a test touchpad device for scroll events.
EVENTS_EXPORT void SetUpScrollDeviceForTest(unsigned int deviceid);
« no previous file with comments | « ash/wm/sticky_keys_unittest.cc ('k') | ui/events/x/events_x_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698