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

Side by Side Diff: ui/events/test/events_test_utils_x11.h

Issue 144423006: Rewrite release event only if press event was rewritten for a given device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ 5 #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_
6 #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ 6 #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/events/event_constants.h" 9 #include "ui/events/event_constants.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 23 matching lines...) Expand all
34 // Initializes a XEvent with for the appropriate type with the specified data. 34 // Initializes a XEvent with for the appropriate type with the specified data.
35 // Note that ui::EF_ flags should be passed as |flags|, not the native ones in 35 // Note that ui::EF_ flags should be passed as |flags|, not the native ones in
36 // <X11/X.h>. 36 // <X11/X.h>.
37 void InitKeyEvent(EventType type, 37 void InitKeyEvent(EventType type,
38 KeyboardCode key_code, 38 KeyboardCode key_code,
39 int flags); 39 int flags);
40 40
41 void InitButtonEvent(EventType type, 41 void InitButtonEvent(EventType type,
42 int flags); 42 int flags);
43 43
44 void InitGenericButtonEvent(int deviceid,
45 EventType type,
46 int flags);
47
44 void InitMouseWheelEvent(int wheel_delta, 48 void InitMouseWheelEvent(int wheel_delta,
45 int flags); 49 int flags);
46 50
47 void InitScrollEvent(int deviceid, 51 void InitScrollEvent(int deviceid,
48 int x_offset, 52 int x_offset,
49 int y_offset, 53 int y_offset,
50 int x_offset_ordinal, 54 int x_offset_ordinal,
51 int y_offset_ordinal, 55 int y_offset_ordinal,
52 int finger_count); 56 int finger_count);
53 57
(...skipping 22 matching lines...) Expand all
76 80
77 // Initializes a test touchpad device for scroll events. 81 // Initializes a test touchpad device for scroll events.
78 void SetUpScrollDeviceForTest(unsigned int deviceid); 82 void SetUpScrollDeviceForTest(unsigned int deviceid);
79 83
80 // Initializes a list of touchscreen devices for touch events. 84 // Initializes a list of touchscreen devices for touch events.
81 void SetUpTouchDevicesForTest(const std::vector<unsigned int>& devices); 85 void SetUpTouchDevicesForTest(const std::vector<unsigned int>& devices);
82 86
83 } // namespace ui 87 } // namespace ui
84 88
85 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ 89 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/event_rewriter_unittest.cc ('k') | ui/events/test/events_test_utils_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698