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

Side by Side Diff: ui/aura_shell/stacking_controller.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_shell/stacking_controller.h" 5 #include "ui/aura_shell/stacking_controller.h"
6 6
7 #include "ui/aura/client/aura_constants.h" 7 #include "ui/aura/client/aura_constants.h"
8 #include "ui/aura/desktop.h" 8 #include "ui/aura/root_window.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/aura_shell/always_on_top_controller.h" 10 #include "ui/aura_shell/always_on_top_controller.h"
11 #include "ui/aura_shell/shell.h" 11 #include "ui/aura_shell/shell.h"
12 #include "ui/aura_shell/shell_window_ids.h" 12 #include "ui/aura_shell/shell_window_ids.h"
13 13
14 namespace aura_shell { 14 namespace aura_shell {
15 namespace internal { 15 namespace internal {
16 namespace { 16 namespace {
17 17
18 aura::Window* GetContainer(int id) { 18 aura::Window* GetContainer(int id) {
(...skipping 11 matching lines...) Expand all
30 bool IsWindowModal(aura::Window* window) { 30 bool IsWindowModal(aura::Window* window) {
31 return window->transient_parent() && window->GetIntProperty(aura::kModalKey); 31 return window->transient_parent() && window->GetIntProperty(aura::kModalKey);
32 } 32 }
33 33
34 } // namespace 34 } // namespace
35 35
36 //////////////////////////////////////////////////////////////////////////////// 36 ////////////////////////////////////////////////////////////////////////////////
37 // StackingController, public: 37 // StackingController, public:
38 38
39 StackingController::StackingController() { 39 StackingController::StackingController() {
40 aura::Desktop::GetInstance()->SetStackingClient(this); 40 aura::RootWindow::GetInstance()->SetStackingClient(this);
41 } 41 }
42 42
43 StackingController::~StackingController() { 43 StackingController::~StackingController() {
44 } 44 }
45 45
46 void StackingController::Init() { 46 void StackingController::Init() {
47 always_on_top_controller_.reset(new internal::AlwaysOnTopController); 47 always_on_top_controller_.reset(new internal::AlwaysOnTopController);
48 always_on_top_controller_->SetContainers( 48 always_on_top_controller_->SetContainers(
49 GetContainer(internal::kShellWindowId_DefaultContainer), 49 GetContainer(internal::kShellWindowId_DefaultContainer),
50 GetContainer(internal::kShellWindowId_AlwaysOnTopContainer)); 50 GetContainer(internal::kShellWindowId_AlwaysOnTopContainer));
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 if (window_container_id < lock_container_id) 135 if (window_container_id < lock_container_id)
136 container = GetContainer(internal::kShellWindowId_ModalContainer); 136 container = GetContainer(internal::kShellWindowId_ModalContainer);
137 else 137 else
138 container = GetContainer(internal::kShellWindowId_LockModalContainer); 138 container = GetContainer(internal::kShellWindowId_LockModalContainer);
139 139
140 return container; 140 return container;
141 } 141 }
142 142
143 } // namespace internal 143 } // namespace internal
144 } // namespace aura_shell 144 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/shell_accelerator_filter.cc ('k') | ui/aura_shell/stacking_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698