OLD | NEW |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 void InitTouchEvent(int deviceid, | 54 void InitTouchEvent(int deviceid, |
55 int evtype, | 55 int evtype, |
56 int tracking_id, | 56 int tracking_id, |
57 const gfx::Point& location, | 57 const gfx::Point& location, |
58 const std::vector<Valuator>& valuators); | 58 const std::vector<Valuator>& valuators); |
59 | 59 |
60 private: | 60 private: |
61 void Cleanup(); | 61 void Cleanup(); |
62 | 62 |
| 63 void SetUpValuators(const std::vector<Valuator>& valuators); |
| 64 |
63 scoped_ptr<XEvent> event_; | 65 scoped_ptr<XEvent> event_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(ScopedXI2Event); | 67 DISALLOW_COPY_AND_ASSIGN(ScopedXI2Event); |
66 }; | 68 }; |
67 | 69 |
68 // Initializes a test touchpad device for scroll events. | 70 // Initializes a test touchpad device for scroll events. |
69 void SetUpScrollDeviceForTest(unsigned int deviceid); | 71 void SetUpScrollDeviceForTest(unsigned int deviceid); |
70 | 72 |
71 // Initializes a list of touchscreen devices for touch events. | 73 // Initializes a list of touchscreen devices for touch events. |
72 void SetupTouchDevicesForTest(const std::vector<unsigned int>& devices); | 74 void SetUpTouchDevicesForTest(const std::vector<unsigned int>& devices); |
73 | 75 |
74 } // namespace ui | 76 } // namespace ui |
75 | 77 |
76 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ | 78 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ |
OLD | NEW |