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

Side by Side Diff: ash/system/status_area_widget.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/ime/tray_ime.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/status_area_widget.h" 5 #include "ash/system/status_area_widget.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 delete system_tray_; 344 delete system_tray_;
345 system_tray_ = NULL; 345 system_tray_ = NULL;
346 } 346 }
347 347
348 bool StatusAreaWidget::ShouldShowLauncher() const { 348 bool StatusAreaWidget::ShouldShowLauncher() const {
349 if ((system_tray_ && system_tray_->HasSystemBubble()) || 349 if ((system_tray_ && system_tray_->HasSystemBubble()) ||
350 (web_notification_tray_ && 350 (web_notification_tray_ &&
351 web_notification_tray_->IsMessageCenterBubbleVisible())) 351 web_notification_tray_->IsMessageCenterBubbleVisible()))
352 return true; 352 return true;
353 353
354 if (!Shell::GetInstance()->shelf()->IsVisible()) 354 if (!RootWindowController::ForLauncher(GetNativeView())->shelf()->IsVisible())
355 return false; 355 return false;
356 356
357 // If the launcher is currently visible, don't hide the launcher if the mouse 357 // If the launcher is currently visible, don't hide the launcher if the mouse
358 // is in any of the notification bubbles. 358 // is in any of the notification bubbles.
359 return (system_tray_ && system_tray_->IsMouseInNotificationBubble()) || 359 return (system_tray_ && system_tray_->IsMouseInNotificationBubble()) ||
360 (web_notification_tray_ && 360 (web_notification_tray_ &&
361 web_notification_tray_->IsMouseInNotificationBubble()); 361 web_notification_tray_->IsMouseInNotificationBubble());
362 } 362 }
363 363
364 bool StatusAreaWidget::IsMessageBubbleShown() const { 364 bool StatusAreaWidget::IsMessageBubbleShown() const {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 return; 422 return;
423 login_status_ = login_status; 423 login_status_ = login_status;
424 if (system_tray_) 424 if (system_tray_)
425 system_tray_->UpdateAfterLoginStatusChange(login_status); 425 system_tray_->UpdateAfterLoginStatusChange(login_status);
426 if (web_notification_tray_) 426 if (web_notification_tray_)
427 web_notification_tray_->UpdateAfterLoginStatusChange(login_status); 427 web_notification_tray_->UpdateAfterLoginStatusChange(login_status);
428 } 428 }
429 429
430 } // namespace internal 430 } // namespace internal
431 } // namespace ash 431 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/ime/tray_ime.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698