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

Unified Diff: ash/mus/disconnected_app_handler.cc

Issue 2625873007: Promotes WmWindowMus functions to WmWindowAura and nukes WmWindowMus (Closed)
Patch Set: merge Created 3 years, 11 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/wm_window_mus.cc ('k') | ash/mus/frame/detached_title_area_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/disconnected_app_handler.cc
diff --git a/ash/mus/disconnected_app_handler.cc b/ash/mus/disconnected_app_handler.cc
index 49df2bf579f207230e93add68cacde25c9ba79d5..e0b460d35121c79f06183647299e134c0ad1e054 100644
--- a/ash/mus/disconnected_app_handler.cc
+++ b/ash/mus/disconnected_app_handler.cc
@@ -4,7 +4,7 @@
#include "ash/mus/disconnected_app_handler.h"
-#include "ash/mus/bridge/wm_window_mus.h"
+#include "ash/aura/wm_window_aura.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ui/aura/window.h"
@@ -13,13 +13,14 @@ namespace mus {
namespace {
bool IsContainer(aura::Window* window) {
- return WmWindowMus::Get(window)->IsContainer();
+ return WmWindowAura::Get(window)->GetShellWindowId() !=
+ kShellWindowId_Invalid;
}
} // namespace
DisconnectedAppHandler::DisconnectedAppHandler(aura::Window* root_window) {
- WmWindowMus* root = WmWindowMus::Get(root_window);
+ ash::WmWindowAura* root = ash::WmWindowAura::Get(root_window);
for (int shell_window_id = kShellWindowId_Min;
shell_window_id < kShellWindowId_Max; ++shell_window_id) {
// kShellWindowId_VirtualKeyboardContainer is lazily created.
@@ -35,7 +36,7 @@ DisconnectedAppHandler::DisconnectedAppHandler(aura::Window* root_window) {
continue;
#endif
- WmWindowMus* container = WmWindowMus::AsWmWindowMus(
+ ash::WmWindowAura* container = static_cast<ash::WmWindowAura*>(
root->GetChildByShellWindowId(shell_window_id));
Add(container->aura_window());
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/frame/detached_title_area_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698