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

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

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 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/root_window_view_mac.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/root_window.h" 21 #include "ui/aura/root_window.h"
22 #include "ui/base/cursor/cursor.h" 22 #include "ui/base/cursor/cursor.h"
23 #include "ui/base/keycodes/keyboard_codes.h" 23 #include "ui/base/keycodes/keyboard_codes.h"
24 #include "ui/base/touch/touch_factory.h" 24 #include "ui/base/touch/touch_factory.h"
25 #include "ui/base/view_prop.h"
25 #include "ui/base/x/x11_util.h" 26 #include "ui/base/x/x11_util.h"
26 #include "ui/base/view_prop.h" 27 #include "ui/compositor/layer.h"
27 #include "ui/gfx/compositor/layer.h"
28 28
29 using std::max; 29 using std::max;
30 using std::min; 30 using std::min;
31 31
32 namespace aura { 32 namespace aura {
33 33
34 namespace { 34 namespace {
35 35
36 // Standard Linux mouse buttons for going back and forward. 36 // Standard Linux mouse buttons for going back and forward.
37 const int kBackMouseButton = 8; 37 const int kBackMouseButton = 8;
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 ui::ViewProp::GetValue(accelerated_widget, kRootWindowHostLinuxKey)); 815 ui::ViewProp::GetValue(accelerated_widget, kRootWindowHostLinuxKey));
816 } 816 }
817 817
818 // static 818 // static
819 gfx::Size RootWindowHost::GetNativeScreenSize() { 819 gfx::Size RootWindowHost::GetNativeScreenSize() {
820 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay(); 820 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay();
821 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); 821 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0));
822 } 822 }
823 823
824 } // namespace aura 824 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698