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

Side by Side Diff: ui/aura/root_window_host_linux.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 8 months 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.cc ('k') | ui/aura/single_monitor_manager.h » ('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 (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
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
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/single_monitor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698