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

Unified Diff: ash/aura/wm_shell_aura.cc

Issue 2320273002: Refactors DimWindow and moves to ash/common (Closed)
Patch Set: feedback and member initializer ordering Created 4 years, 3 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/aura/wm_shell_aura.h ('k') | ash/aura/wm_window_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 0cbc2f2aed82bb0525b2177d088a2caea6efc641..be492d97ca14c1e426c2fb36b2a344158b251e46 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -75,9 +75,11 @@ void WmShellAura::Shutdown() {
WmShell::Shutdown();
}
-WmWindow* WmShellAura::NewContainerWindow() {
+WmWindow* WmShellAura::NewWindow(ui::wm::WindowType window_type,
+ ui::LayerType layer_type) {
aura::Window* aura_window = new aura::Window(nullptr);
- aura_window->Init(ui::LAYER_NOT_DRAWN);
+ aura_window->SetType(window_type);
+ aura_window->Init(layer_type);
return WmWindowAura::Get(aura_window);
}
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/aura/wm_window_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698