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

Unified Diff: ash/wm/aura/wm_globals_aura.cc

Issue 2024993002: Makes RootWindowController window creation in terms of common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 4 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/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_window_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/aura/wm_globals_aura.cc
diff --git a/ash/wm/aura/wm_globals_aura.cc b/ash/wm/aura/wm_globals_aura.cc
index b245f7278dca8b886bcf7ff293a3ff0e5bb54f13..33561c862e55b4899de10009ce6c8d7c61e1621d 100644
--- a/ash/wm/aura/wm_globals_aura.cc
+++ b/ash/wm/aura/wm_globals_aura.cc
@@ -40,6 +40,12 @@ WmGlobalsAura::~WmGlobalsAura() {
Shell::GetInstance()->RemoveShellObserver(this);
}
+WmWindow* WmGlobalsAura::NewContainerWindow() {
+ aura::Window* aura_window = new aura::Window(nullptr);
+ aura_window->Init(ui::LAYER_NOT_DRAWN);
+ return WmWindowAura::Get(aura_window);
+}
+
WmWindow* WmGlobalsAura::GetFocusedWindow() {
return WmWindowAura::Get(
aura::client::GetFocusClient(Shell::GetPrimaryRootWindow())
« no previous file with comments | « ash/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_window_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698