| OLD | NEW |
| 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/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // static | 222 // static |
| 223 Shell::RootWindowControllerList Shell::GetAllRootWindowControllers() { | 223 Shell::RootWindowControllerList Shell::GetAllRootWindowControllers() { |
| 224 CHECK(HasInstance()); | 224 CHECK(HasInstance()); |
| 225 RootWindowControllerList root_window_controllers; | 225 RootWindowControllerList root_window_controllers; |
| 226 for (WmWindow* root_window : instance_->wm_shell_->GetAllRootWindows()) | 226 for (WmWindow* root_window : instance_->wm_shell_->GetAllRootWindows()) |
| 227 root_window_controllers.push_back(root_window->GetRootWindowController()); | 227 root_window_controllers.push_back(root_window->GetRootWindowController()); |
| 228 return root_window_controllers; | 228 return root_window_controllers; |
| 229 } | 229 } |
| 230 | 230 |
| 231 // static | 231 // static |
| 232 RootWindowController* Shell::GetRootWindowControllerWithDisplayId( |
| 233 int64_t display_id) { |
| 234 CHECK(HasInstance()); |
| 235 WmWindow* root_window = |
| 236 instance_->wm_shell_->GetRootWindowForDisplayId(display_id); |
| 237 return root_window ? root_window->GetRootWindowController() : nullptr; |
| 238 } |
| 239 |
| 240 // static |
| 232 aura::Window* Shell::GetPrimaryRootWindow() { | 241 aura::Window* Shell::GetPrimaryRootWindow() { |
| 233 CHECK(HasInstance()); | 242 CHECK(HasInstance()); |
| 234 return instance_->wm_shell_->GetPrimaryRootWindow()->aura_window(); | 243 return instance_->wm_shell_->GetPrimaryRootWindow()->aura_window(); |
| 235 } | 244 } |
| 236 | 245 |
| 237 // static | 246 // static |
| 238 aura::Window* Shell::GetTargetRootWindow() { | 247 aura::Window* Shell::GetTargetRootWindow() { |
| 239 CHECK(WmShell::HasInstance()); | 248 CHECK(WmShell::HasInstance()); |
| 240 return WmWindow::GetAuraWindow(WmShell::Get()->GetRootWindowForNewWindows()); | 249 return WmWindow::GetAuraWindow(WmShell::Get()->GetRootWindowForNewWindows()); |
| 241 } | 250 } |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { | 951 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { |
| 943 return std::unique_ptr<ui::EventTargetIterator>(); | 952 return std::unique_ptr<ui::EventTargetIterator>(); |
| 944 } | 953 } |
| 945 | 954 |
| 946 ui::EventTargeter* Shell::GetEventTargeter() { | 955 ui::EventTargeter* Shell::GetEventTargeter() { |
| 947 NOTREACHED(); | 956 NOTREACHED(); |
| 948 return nullptr; | 957 return nullptr; |
| 949 } | 958 } |
| 950 | 959 |
| 951 } // namespace ash | 960 } // namespace ash |
| OLD | NEW |