OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/base/events.h" | 5 #include "ui/base/events.h" |
6 | 6 |
7 #include <X11/Xlib.h> | 7 #include <string.h> |
8 #include <X11/extensions/XInput.h> | 8 #include <X11/extensions/XInput.h> |
9 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
10 #include <string.h> | 10 #include <X11/Xlib.h> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_pump_aurax11.h" | 14 #include "base/message_pump_aurax11.h" |
15 #include "ui/base/keycodes/keyboard_code_conversion_x.h" | 15 #include "ui/base/keycodes/keyboard_code_conversion_x.h" |
| 16 #include "ui/base/touch/touch_factory.h" |
16 #include "ui/base/ui_base_switches.h" | 17 #include "ui/base/ui_base_switches.h" |
17 #include "ui/base/touch/touch_factory.h" | |
18 #include "ui/base/x/valuators.h" | 18 #include "ui/base/x/valuators.h" |
19 #include "ui/base/x/x11_util.h" | 19 #include "ui/base/x/x11_util.h" |
| 20 #include "ui/gfx/display.h" |
20 #include "ui/gfx/point.h" | 21 #include "ui/gfx/point.h" |
21 #include "ui/gfx/monitor.h" | |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
24 | 24 |
25 // Copied from xserver-properties.h | 25 // Copied from xserver-properties.h |
26 #define AXIS_LABEL_PROP_REL_HWHEEL "Rel Horiz Wheel" | 26 #define AXIS_LABEL_PROP_REL_HWHEEL "Rel Horiz Wheel" |
27 #define AXIS_LABEL_PROP_REL_WHEEL "Rel Vert Wheel" | 27 #define AXIS_LABEL_PROP_REL_WHEEL "Rel Vert Wheel" |
28 | 28 |
29 // CMT specific timings | 29 // CMT specific timings |
30 #define AXIS_LABEL_PROP_ABS_START_TIME "Abs Start Timestamp" | 30 #define AXIS_LABEL_PROP_ABS_START_TIME "Abs Start Timestamp" |
31 #define AXIS_LABEL_PROP_ABS_END_TIME "Abs End Timestamp" | 31 #define AXIS_LABEL_PROP_ABS_END_TIME "Abs End Timestamp" |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 noop->xclient.format = 8; | 979 noop->xclient.format = 8; |
980 DCHECK(!noop->xclient.display); | 980 DCHECK(!noop->xclient.display); |
981 } | 981 } |
982 // Make sure we use atom from current xdisplay, which may | 982 // Make sure we use atom from current xdisplay, which may |
983 // change during the test. | 983 // change during the test. |
984 noop->xclient.message_type = GetNoopEventAtom(); | 984 noop->xclient.message_type = GetNoopEventAtom(); |
985 return noop; | 985 return noop; |
986 } | 986 } |
987 | 987 |
988 } // namespace ui | 988 } // namespace ui |
OLD | NEW |