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

Unified Diff: ash/root_window_controller.cc

Issue 11017079: Remove Shell::shelf()|status_area_widget()|launcher() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/root_window_controller.h ('k') | ash/screen_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 8640429b1f1f4e844de375f8c2eff692bc8cf86d..800db1dd5eb88297f85a0ad2fc67b1fd0d842e4e 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -161,6 +161,15 @@ RootWindowController::~RootWindowController() {
root_window_.reset();
}
+// static
+internal::RootWindowController*
+RootWindowController::ForLauncher(aura::Window* window) {
+ if (Shell::IsLauncherPerDisplayEnabled())
+ return GetRootWindowController(window->GetRootWindow());
+ else
+ return Shell::GetPrimaryRootWindowController();
+}
+
void RootWindowController::Shutdown() {
CloseChildWindows();
if (Shell::GetActiveRootWindow() == root_window_.get()) {
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/screen_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698