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

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: 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 4e6580a12bfb61ba8479ea20e943ca2d7d5e30bd..044844ec6c6cf4def340e792426b020b62f4f60d 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -698,7 +698,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 {
stevenjb 2012/12/10 20:29:38 nit: extra ' ' before else
oshima 2012/12/10 20:33:12 Done.
+ GetPrimaryRootWindowController()->CreateLauncher();
+ }
}
void Shell::ShowLauncher() {
@@ -781,16 +788,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