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

Side by Side Diff: ash/display/display_controller.cc

Issue 25108005: linux_aura: Compile ash into chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos link Created 7 years, 2 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 | « no previous file | ash/root_window_controller.h » ('j') | chrome/browser/fullscreen_aura.cc » ('J')
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 "ash/display/display_controller.h" 5 #include "ash/display/display_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 25 matching lines...) Expand all
36 #include "ui/compositor/dip_util.h" 36 #include "ui/compositor/dip_util.h"
37 #include "ui/gfx/display.h" 37 #include "ui/gfx/display.h"
38 #include "ui/gfx/screen.h" 38 #include "ui/gfx/screen.h"
39 39
40 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
41 #include "base/sys_info.h" 41 #include "base/sys_info.h"
42 #include "base/time/time.h" 42 #include "base/time/time.h"
43 #if defined(USE_X11) 43 #if defined(USE_X11)
44 #include "ash/display/output_configurator_animation.h" 44 #include "ash/display/output_configurator_animation.h"
45 #include "chromeos/display/output_configurator.h" 45 #include "chromeos/display/output_configurator.h"
46 #endif // defined(USE_X11)
47 #endif // defined(OS_CHROMEOS)
48
49 #if defined(USE_X11)
46 #include "ui/base/x/x11_util.h" 50 #include "ui/base/x/x11_util.h"
47 #include "ui/gfx/x/x11_types.h" 51 #include "ui/gfx/x/x11_types.h"
48 52
49 // Including this at the bottom to avoid other 53 // Including this at the bottom to avoid other
50 // potential conflict with chrome headers. 54 // potential conflict with chrome headers.
51 #include <X11/extensions/Xrandr.h> 55 #include <X11/extensions/Xrandr.h>
52 #undef RootWindow 56 #undef RootWindow
53 #endif // defined(USE_X11) 57 #endif // defined(USE_X11)
54 #endif // defined(OS_CHROMEOS)
55 58
56 namespace ash { 59 namespace ash {
57 namespace { 60 namespace {
58 61
59 // Primary display stored in global object as it can be 62 // Primary display stored in global object as it can be
60 // accessed after Shell is deleted. A separate display instance is created 63 // accessed after Shell is deleted. A separate display instance is created
61 // during the shutdown instead of always keeping two display instances 64 // during the shutdown instead of always keeping two display instances
62 // (one here and another one in display_manager) in sync, which is error prone. 65 // (one here and another one in display_manager) in sync, which is error prone.
63 int64 primary_display_id = gfx::Display::kInvalidDisplayID; 66 int64 primary_display_id = gfx::Display::kInvalidDisplayID;
64 gfx::Display* primary_display_for_shutdown = NULL; 67 gfx::Display* primary_display_for_shutdown = NULL;
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 for (size_t i = 0; i < root_windows.size(); ++i) { 827 for (size_t i = 0; i < root_windows.size(); ++i) {
825 std::string name = 828 std::string name =
826 root_windows[i] == primary ? "aura_root_0" : "aura_root_x"; 829 root_windows[i] == primary ? "aura_root_0" : "aura_root_x";
827 gfx::AcceleratedWidget xwindow = root_windows[i]->GetAcceleratedWidget(); 830 gfx::AcceleratedWidget xwindow = root_windows[i]->GetAcceleratedWidget();
828 XStoreName(gfx::GetXDisplay(), xwindow, name.c_str()); 831 XStoreName(gfx::GetXDisplay(), xwindow, name.c_str());
829 } 832 }
830 #endif 833 #endif
831 } 834 }
832 835
833 } // namespace ash 836 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.h » ('j') | chrome/browser/fullscreen_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698