| 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 #include <X11/Xcursor/Xcursor.h> | 22 #include <X11/Xcursor/Xcursor.h> |
| 23 | 23 |
| 24 #include "base/bind.h" | 24 #include "base/bind.h" |
| 25 #include "base/debug/trace_event.h" | |
| 26 #include "base/logging.h" | 25 #include "base/logging.h" |
| 27 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
| 28 #include "base/memory/singleton.h" | 27 #include "base/memory/singleton.h" |
| 29 #include "base/message_loop/message_loop.h" | 28 #include "base/message_loop/message_loop.h" |
| 30 #include "base/metrics/histogram.h" | 29 #include "base/metrics/histogram.h" |
| 31 #include "base/strings/string_number_conversions.h" | 30 #include "base/strings/string_number_conversions.h" |
| 32 #include "base/strings/string_util.h" | 31 #include "base/strings/string_util.h" |
| 33 #include "base/strings/stringprintf.h" | 32 #include "base/strings/stringprintf.h" |
| 34 #include "base/sys_byteorder.h" | 33 #include "base/sys_byteorder.h" |
| 35 #include "base/threading/thread.h" | 34 #include "base/threading/thread.h" |
| 35 #include "base/trace_event/trace_event.h" |
| 36 #include "skia/ext/image_operations.h" | 36 #include "skia/ext/image_operations.h" |
| 37 #include "third_party/skia/include/core/SkBitmap.h" | 37 #include "third_party/skia/include/core/SkBitmap.h" |
| 38 #include "third_party/skia/include/core/SkPostConfig.h" | 38 #include "third_party/skia/include/core/SkPostConfig.h" |
| 39 #include "ui/base/x/x11_menu_list.h" | 39 #include "ui/base/x/x11_menu_list.h" |
| 40 #include "ui/base/x/x11_util_internal.h" | 40 #include "ui/base/x/x11_util_internal.h" |
| 41 #include "ui/events/devices/x11/device_data_manager_x11.h" | 41 #include "ui/events/devices/x11/device_data_manager_x11.h" |
| 42 #include "ui/events/devices/x11/touch_factory_x11.h" | 42 #include "ui/events/devices/x11/touch_factory_x11.h" |
| 43 #include "ui/events/event_utils.h" | 43 #include "ui/events/event_utils.h" |
| 44 #include "ui/events/keycodes/keyboard_code_conversion_x.h" | 44 #include "ui/events/keycodes/keyboard_code_conversion_x.h" |
| 45 #include "ui/gfx/canvas.h" | 45 #include "ui/gfx/canvas.h" |
| (...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 << "request_code " << static_cast<int>(error_event.request_code) << ", " | 1495 << "request_code " << static_cast<int>(error_event.request_code) << ", " |
| 1496 << "minor_code " << static_cast<int>(error_event.minor_code) | 1496 << "minor_code " << static_cast<int>(error_event.minor_code) |
| 1497 << " (" << request_str << ")"; | 1497 << " (" << request_str << ")"; |
| 1498 } | 1498 } |
| 1499 | 1499 |
| 1500 // ---------------------------------------------------------------------------- | 1500 // ---------------------------------------------------------------------------- |
| 1501 // End of x11_util_internal.h | 1501 // End of x11_util_internal.h |
| 1502 | 1502 |
| 1503 | 1503 |
| 1504 } // namespace ui | 1504 } // namespace ui |
| OLD | NEW |