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 // This file defines utility functions for X11 (Linux only). This code has been | 5 // This file defines utility functions for X11 (Linux only). This code has been |
6 // ported from XCB since we can't use XCB on Ubuntu while its 32-bit support | 6 // ported from XCB since we can't use XCB on Ubuntu while its 32-bit support |
7 // remains woefully incomplete. | 7 // remains woefully incomplete. |
8 | 8 |
9 #include "ui/base/x/x11_util.h" | 9 #include "ui/base/x/x11_util.h" |
10 | 10 |
11 #include <ctype.h> | 11 #include <ctype.h> |
12 #include <sys/ipc.h> | 12 #include <sys/ipc.h> |
13 #include <sys/shm.h> | 13 #include <sys/shm.h> |
14 | 14 |
15 #include <list> | 15 #include <list> |
16 #include <map> | 16 #include <map> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include <X11/extensions/shape.h> | 20 #include <X11/extensions/shape.h> |
21 #include <X11/extensions/XInput2.h> | 21 #include <X11/extensions/XInput2.h> |
22 | 22 |
23 #include "base/bind.h" | 23 #include "base/bind.h" |
24 #include "base/command_line.h" | 24 #include "base/command_line.h" |
25 #include "base/logging.h" | 25 #include "base/logging.h" |
26 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
27 #include "base/memory/singleton.h" | 27 #include "base/memory/singleton.h" |
28 #include "base/message_loop.h" | 28 #include "base/message_loop/message_loop.h" |
29 #include "base/metrics/histogram.h" | 29 #include "base/metrics/histogram.h" |
30 #include "base/strings/string_number_conversions.h" | 30 #include "base/strings/string_number_conversions.h" |
31 #include "base/strings/string_util.h" | 31 #include "base/strings/string_util.h" |
32 #include "base/strings/stringprintf.h" | 32 #include "base/strings/stringprintf.h" |
33 #include "base/sys_byteorder.h" | 33 #include "base/sys_byteorder.h" |
34 #include "base/threading/thread.h" | 34 #include "base/threading/thread.h" |
35 #include "ui/base/events/event_utils.h" | 35 #include "ui/base/events/event_utils.h" |
36 #include "ui/base/keycodes/keyboard_code_conversion_x.h" | 36 #include "ui/base/keycodes/keyboard_code_conversion_x.h" |
37 #include "ui/base/touch/touch_factory_x11.h" | 37 #include "ui/base/touch/touch_factory_x11.h" |
38 #include "ui/base/x/device_data_manager.h" | 38 #include "ui/base/x/device_data_manager.h" |
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 << "request_code " << static_cast<int>(error_event.request_code) << ", " | 1673 << "request_code " << static_cast<int>(error_event.request_code) << ", " |
1674 << "minor_code " << static_cast<int>(error_event.minor_code) | 1674 << "minor_code " << static_cast<int>(error_event.minor_code) |
1675 << " (" << request_str << ")"; | 1675 << " (" << request_str << ")"; |
1676 } | 1676 } |
1677 | 1677 |
1678 // ---------------------------------------------------------------------------- | 1678 // ---------------------------------------------------------------------------- |
1679 // End of x11_util_internal.h | 1679 // End of x11_util_internal.h |
1680 | 1680 |
1681 | 1681 |
1682 } // namespace ui | 1682 } // namespace ui |
OLD | NEW |