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 aura::Window* ShellPortClassic::GetRootWindowForDisplayId(int64_t display_id) { |
87 return WmWindow::Get( | 86 return Shell::Get()->window_tree_host_manager()->GetRootWindowForDisplayId( |
88 Shell::Get()->window_tree_host_manager()->GetRootWindowForDisplayId( | 87 display_id); |
89 display_id)); | |
90 } | 88 } |
91 | 89 |
92 const display::ManagedDisplayInfo& ShellPortClassic::GetDisplayInfo( | 90 const display::ManagedDisplayInfo& ShellPortClassic::GetDisplayInfo( |
93 int64_t display_id) const { | 91 int64_t display_id) const { |
94 return Shell::Get()->display_manager()->GetDisplayInfo(display_id); | 92 return Shell::Get()->display_manager()->GetDisplayInfo(display_id); |
95 } | 93 } |
96 | 94 |
97 bool ShellPortClassic::IsActiveDisplayId(int64_t display_id) const { | 95 bool ShellPortClassic::IsActiveDisplayId(int64_t display_id) const { |
98 return Shell::Get()->display_manager()->IsActiveDisplayId(display_id); | 96 return Shell::Get()->display_manager()->IsActiveDisplayId(display_id); |
99 } | 97 } |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 for (auto& observer : display_observers_) | 299 for (auto& observer : display_observers_) |
302 observer.OnDisplayConfigurationChanging(); | 300 observer.OnDisplayConfigurationChanging(); |
303 } | 301 } |
304 | 302 |
305 void ShellPortClassic::OnDisplayConfigurationChanged() { | 303 void ShellPortClassic::OnDisplayConfigurationChanged() { |
306 for (auto& observer : display_observers_) | 304 for (auto& observer : display_observers_) |
307 observer.OnDisplayConfigurationChanged(); | 305 observer.OnDisplayConfigurationChanged(); |
308 } | 306 } |
309 | 307 |
310 } // namespace ash | 308 } // namespace ash |
OLD | NEW |