| OLD | NEW |
| 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/shell.h" | 5 #include "ui/aura_shell/shell.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "ui/aura/aura_switches.h" | 9 #include "ui/aura/aura_switches.h" |
| 10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 return instance_; | 148 return instance_; |
| 149 } | 149 } |
| 150 | 150 |
| 151 // static | 151 // static |
| 152 Shell* Shell::GetInstance() { | 152 Shell* Shell::GetInstance() { |
| 153 DCHECK(instance_); | 153 DCHECK(instance_); |
| 154 return instance_; | 154 return instance_; |
| 155 } | 155 } |
| 156 | 156 |
| 157 // static | 157 // static |
| 158 void Shell::DeleteInstanceForTesting() { | 158 void Shell::DeleteInstance() { |
| 159 delete instance_; | 159 delete instance_; |
| 160 instance_ = NULL; | 160 instance_ = NULL; |
| 161 } | 161 } |
| 162 | 162 |
| 163 void Shell::Init() { | 163 void Shell::Init() { |
| 164 aura::Desktop* desktop_window = aura::Desktop::GetInstance(); | 164 aura::Desktop* desktop_window = aura::Desktop::GetInstance(); |
| 165 desktop_window->SetCursor(aura::kCursorPointer); | 165 desktop_window->SetCursor(aura::kCursorPointer); |
| 166 | 166 |
| 167 aura::Window::Windows containers; | 167 aura::Window::Windows containers; |
| 168 CreateSpecialContainers(&containers); | 168 CreateSpecialContainers(&containers); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 new internal::WorkspaceController(default_container)); | 269 new internal::WorkspaceController(default_container)); |
| 270 workspace_controller_->SetLauncherModel(launcher_->model()); | 270 workspace_controller_->SetLauncherModel(launcher_->model()); |
| 271 default_container->SetEventFilter( | 271 default_container->SetEventFilter( |
| 272 new internal::DefaultContainerEventFilter(default_container)); | 272 new internal::DefaultContainerEventFilter(default_container)); |
| 273 default_container->SetLayoutManager( | 273 default_container->SetLayoutManager( |
| 274 new internal::DefaultContainerLayoutManager( | 274 new internal::DefaultContainerLayoutManager( |
| 275 workspace_controller_->workspace_manager())); | 275 workspace_controller_->workspace_manager())); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace aura_shell | 278 } // namespace aura_shell |
| OLD | NEW |