| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/aura/shell_port_classic.h" | 5 #include "ash/aura/shell_port_classic.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/accelerators/accelerator_controller.h" | 9 #include "ash/accelerators/accelerator_controller.h" |
| 10 #include "ash/accelerators/accelerator_controller_delegate_aura.h" | 10 #include "ash/accelerators/accelerator_controller_delegate_aura.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 ShellPort::Shutdown(); | 72 ShellPort::Shutdown(); |
| 73 | 73 |
| 74 Shell::Get()->window_tree_host_manager()->Shutdown(); | 74 Shell::Get()->window_tree_host_manager()->Shutdown(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 Config ShellPortClassic::GetAshConfig() const { | 77 Config ShellPortClassic::GetAshConfig() const { |
| 78 return Config::CLASSIC; | 78 return Config::CLASSIC; |
| 79 } | 79 } |
| 80 | 80 |
| 81 WmWindow* ShellPortClassic::GetPrimaryRootWindow() { | 81 aura::Window* ShellPortClassic::GetPrimaryRootWindow() { |
| 82 return WmWindow::Get( | 82 return Shell::Get()->window_tree_host_manager()->GetPrimaryRootWindow(); |
| 83 Shell::Get()->window_tree_host_manager()->GetPrimaryRootWindow()); | |
| 84 } | 83 } |
| 85 | 84 |
| 86 WmWindow* ShellPortClassic::GetRootWindowForDisplayId(int64_t display_id) { | 85 WmWindow* ShellPortClassic::GetRootWindowForDisplayId(int64_t display_id) { |
| 87 return WmWindow::Get( | 86 return WmWindow::Get( |
| 88 Shell::Get()->window_tree_host_manager()->GetRootWindowForDisplayId( | 87 Shell::Get()->window_tree_host_manager()->GetRootWindowForDisplayId( |
| 89 display_id)); | 88 display_id)); |
| 90 } | 89 } |
| 91 | 90 |
| 92 const display::ManagedDisplayInfo& ShellPortClassic::GetDisplayInfo( | 91 const display::ManagedDisplayInfo& ShellPortClassic::GetDisplayInfo( |
| 93 int64_t display_id) const { | 92 int64_t display_id) const { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 for (auto& observer : display_observers_) | 300 for (auto& observer : display_observers_) |
| 302 observer.OnDisplayConfigurationChanging(); | 301 observer.OnDisplayConfigurationChanging(); |
| 303 } | 302 } |
| 304 | 303 |
| 305 void ShellPortClassic::OnDisplayConfigurationChanged() { | 304 void ShellPortClassic::OnDisplayConfigurationChanged() { |
| 306 for (auto& observer : display_observers_) | 305 for (auto& observer : display_observers_) |
| 307 observer.OnDisplayConfigurationChanged(); | 306 observer.OnDisplayConfigurationChanged(); |
| 308 } | 307 } |
| 309 | 308 |
| 310 } // namespace ash | 309 } // namespace ash |
| OLD | NEW |