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

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

Issue 95403006: x11: Cleanup how valuators are set for X events in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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
« no previous file with comments | « ui/aura/root_window_host_x11_unittest.cc ('k') | ui/events/test/events_test_utils_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_x11_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