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/aura/root_window_host_linux.h" | 5 #include "ui/aura/root_window_host_linux.h" |
6 | 6 |
7 #include <X11/Xatom.h> | 7 #include <X11/Xatom.h> |
8 #include <X11/cursorfont.h> | 8 #include <X11/cursorfont.h> |
9 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
10 #include <X11/extensions/Xfixes.h> | 10 #include <X11/extensions/Xfixes.h> |
11 #include <X11/extensions/Xrandr.h> | 11 #include <X11/extensions/Xrandr.h> |
12 #include <algorithm> | 12 #include <algorithm> |
13 | 13 |
14 #include "base/message_pump_x.h" | 14 #include "base/message_pump_x.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "ui/aura/client/user_gesture_client.h" | 17 #include "ui/aura/client/user_gesture_client.h" |
18 #include "ui/aura/dispatcher_linux.h" | 18 #include "ui/aura/dispatcher_linux.h" |
19 #include "ui/aura/env.h" | 19 #include "ui/aura/env.h" |
20 #include "ui/aura/event.h" | 20 #include "ui/aura/event.h" |
21 #include "ui/aura/monitor.h" | |
22 #include "ui/aura/monitor_manager.h" | |
23 #include "ui/aura/root_window.h" | 21 #include "ui/aura/root_window.h" |
24 #include "ui/base/cursor/cursor.h" | 22 #include "ui/base/cursor/cursor.h" |
25 #include "ui/base/keycodes/keyboard_codes.h" | 23 #include "ui/base/keycodes/keyboard_codes.h" |
26 #include "ui/base/touch/touch_factory.h" | 24 #include "ui/base/touch/touch_factory.h" |
27 #include "ui/base/x/x11_util.h" | 25 #include "ui/base/x/x11_util.h" |
28 #include "ui/gfx/compositor/layer.h" | 26 #include "ui/gfx/compositor/layer.h" |
29 | 27 |
30 using std::max; | 28 using std::max; |
31 using std::min; | 29 using std::min; |
32 | 30 |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 return new RootWindowHostLinux(bounds); | 799 return new RootWindowHostLinux(bounds); |
802 } | 800 } |
803 | 801 |
804 // static | 802 // static |
805 gfx::Size RootWindowHost::GetNativeScreenSize() { | 803 gfx::Size RootWindowHost::GetNativeScreenSize() { |
806 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay(); | 804 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay(); |
807 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); | 805 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); |
808 } | 806 } |
809 | 807 |
810 } // namespace aura | 808 } // namespace aura |
OLD | NEW |