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

Unified Diff: ash/mus/bridge/shell_port_mash.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/bridge/shell_port_mash.h ('k') | ash/mus/top_level_window_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/shell_port_mash.cc
diff --git a/ash/mus/bridge/shell_port_mash.cc b/ash/mus/bridge/shell_port_mash.cc
index 9b922f34c8b1e3e36567c9102e3469c6988c1880..5df798f1a6d2cc83e53d7536a081e3d342c47ca7 100644
--- a/ash/mus/bridge/shell_port_mash.cc
+++ b/ash/mus/bridge/shell_port_mash.cc
@@ -113,7 +113,7 @@ ShellPortMash::MusSpecificState::MusSpecificState() = default;
ShellPortMash::MusSpecificState::~MusSpecificState() = default;
ShellPortMash::ShellPortMash(
- WmWindow* primary_root_window,
+ aura::Window* primary_root_window,
WindowManager* window_manager,
views::PointerWatcherEventRouter* pointer_watcher_event_router,
bool create_session_state_delegate_stub)
@@ -179,27 +179,23 @@ Config ShellPortMash::GetAshConfig() const {
return window_manager_->config();
}
-WmWindow* ShellPortMash::GetPrimaryRootWindow() {
- if (GetAshConfig() == Config::MUS) {
- return WmWindow::Get(
- Shell::Get()->window_tree_host_manager()->GetPrimaryRootWindow());
- }
+aura::Window* ShellPortMash::GetPrimaryRootWindow() {
+ if (GetAshConfig() == Config::MUS)
+ return Shell::Get()->window_tree_host_manager()->GetPrimaryRootWindow();
// NOTE: This is called before the RootWindowController has been created, so
// it can't call through to RootWindowController to get all windows.
return primary_root_window_;
}
-WmWindow* ShellPortMash::GetRootWindowForDisplayId(int64_t display_id) {
+aura::Window* ShellPortMash::GetRootWindowForDisplayId(int64_t display_id) {
if (GetAshConfig() == Config::MUS) {
- return WmWindow::Get(
- Shell::Get()->window_tree_host_manager()->GetRootWindowForDisplayId(
- display_id));
+ return Shell::Get()->window_tree_host_manager()->GetRootWindowForDisplayId(
+ display_id);
}
RootWindowController* root_window_controller =
GetRootWindowControllerWithDisplayId(display_id);
- return root_window_controller
- ? WmWindow::Get(root_window_controller->GetRootWindow())
- : nullptr;
+ return root_window_controller ? root_window_controller->GetRootWindow()
+ : nullptr;
}
const display::ManagedDisplayInfo& ShellPortMash::GetDisplayInfo(
« no previous file with comments | « ash/mus/bridge/shell_port_mash.h ('k') | ash/mus/top_level_window_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698