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

Side by Side Diff: ash/aura/shell_port_classic.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 months 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
« no previous file with comments | « ash/aura/shell_port_classic.h ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/aura/shell_port_classic.h ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698