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

Unified Diff: ash/shell.cc

Issue 11476033: [Launcher per display] Removed Shell::status_area_widget(), system_tray() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 8 years 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/shell.h ('k') | ash/system/chromeos/network/network_state_list_detailed_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index ba58f5dbf4cface476077125d719b02221ac9b2d..a6e4ee08df9a184183df565917034b0442f54700 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -670,7 +670,14 @@ void Shell::OnLockStateChanged(bool locked) {
}
void Shell::CreateLauncher() {
- GetPrimaryRootWindowController()->CreateLauncher();
+ if (IsLauncherPerDisplayEnabled()) {
+ RootWindowControllerList controllers = GetAllRootWindowControllers();
+ for (RootWindowControllerList::iterator iter = controllers.begin();
+ iter != controllers.end(); ++iter)
+ (*iter)->CreateLauncher();
+ } else {
+ GetPrimaryRootWindowController()->CreateLauncher();
+ }
}
void Shell::ShowLauncher() {
@@ -753,16 +760,12 @@ WebNotificationTray* Shell::GetWebNotificationTray() {
web_notification_tray();
}
-internal::StatusAreaWidget* Shell::status_area_widget() {
- return GetPrimaryRootWindowController()->status_area_widget();
+bool Shell::HasPrimaryStatusArea() {
+ return !!GetPrimaryRootWindowController()->status_area_widget();
}
-SystemTray* Shell::system_tray() {
- // We assume in throughout the code that this will not return NULL. If code
- // triggers this for valid reasons, it should test status_area_widget first.
- internal::StatusAreaWidget* status_area = status_area_widget();
- CHECK(status_area);
- return status_area->system_tray();
+SystemTray* Shell::GetPrimarySystemTray() {
+ return GetPrimaryRootWindowController()->GetSystemTray();
}
void Shell::InitRootWindowForSecondaryDisplay(aura::RootWindow* root) {
« no previous file with comments | « ash/shell.h ('k') | ash/system/chromeos/network/network_state_list_detailed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698