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

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: 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
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index cabeb973f633b968ad71029048afd95c1e4e87ee..242936121813bf2403a96baab40b983c905b5397 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -164,6 +164,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') | ash/screen_ash.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698