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

Unified Diff: ash/mus/root_window_controller.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/root_window_controller.h ('k') | ash/mus/test/ash_test_impl_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_window_controller.cc
diff --git a/ash/mus/root_window_controller.cc b/ash/mus/root_window_controller.cc
index 438e0cd8d34a00f907e8ee43eabad9e824fe111b..599f77265d7e0d0ac95e51ca7e11dddd2495c7fa 100644
--- a/ash/mus/root_window_controller.cc
+++ b/ash/mus/root_window_controller.cc
@@ -13,6 +13,7 @@
#include <utility>
#include <vector>
+#include "ash/aura/wm_window_aura.h"
#include "ash/common/shelf/shelf_layout_manager.h"
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/wm/container_finder.h"
@@ -20,7 +21,6 @@
#include "ash/common/wm/panels/panel_layout_manager.h"
#include "ash/common/wm/root_window_layout_manager.h"
#include "ash/mus/bridge/wm_shell_mus.h"
-#include "ash/mus/bridge/wm_window_mus.h"
#include "ash/mus/non_client_frame_controller.h"
#include "ash/mus/property_util.h"
#include "ash/mus/screen_mus.h"
@@ -161,23 +161,23 @@ aura::Window* RootWindowController::NewTopLevelWindow(
if (container_window) {
container_window->AddChild(window);
} else {
- WmWindowMus* root = WmWindowMus::Get(this->root());
+ WmWindowAura* root = WmWindowAura::Get(this->root());
gfx::Point origin =
root->ConvertPointToTarget(root->GetRootWindow(), gfx::Point());
origin += display_.bounds().OffsetFromOrigin();
gfx::Rect bounds_in_screen(origin, bounds.size());
- static_cast<WmWindowMus*>(
- ash::wm::GetDefaultParent(WmWindowMus::Get(context),
- WmWindowMus::Get(window), bounds_in_screen))
+ static_cast<WmWindowAura*>(
+ ash::wm::GetDefaultParent(WmWindowAura::Get(context),
+ WmWindowAura::Get(window), bounds_in_screen))
->aura_window()
->AddChild(window);
}
return window;
}
-WmWindowMus* RootWindowController::GetWindowByShellWindowId(int id) {
- return WmWindowMus::AsWmWindowMus(
- WmWindowMus::Get(root())->GetChildByShellWindowId(id));
+ash::WmWindowAura* RootWindowController::GetWindowByShellWindowId(int id) {
+ return static_cast<WmWindowAura*>(
+ WmWindowAura::Get(root())->GetChildByShellWindowId(id));
}
void RootWindowController::SetWorkAreaInests(const gfx::Insets& insets) {
« no previous file with comments | « ash/mus/root_window_controller.h ('k') | ash/mus/test/ash_test_impl_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698