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

Unified Diff: ash/system/tray/system_tray_item.h

Issue 10200006: ash: Refresh the tray items, instead of recreating them, when login status changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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/system/tray/system_tray.cc ('k') | ash/system/tray/tray_empty.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_item.h
diff --git a/ash/system/tray/system_tray_item.h b/ash/system/tray/system_tray_item.h
index 88f586d82bd07eb337ef59f738a10a66852702ff..5e8e4aaebfdd26423b784bd6cae894a0757210ae 100644
--- a/ash/system/tray/system_tray_item.h
+++ b/ash/system/tray/system_tray_item.h
@@ -44,6 +44,11 @@ class ASH_EXPORT SystemTrayItem {
virtual void DestroyDefaultView() = 0;
virtual void DestroyDetailedView() = 0;
+ // Updates the tray view (if applicable) when the user's login status changes.
+ // It is not necessary the update the default or detailed view, since the
+ // default/detailed popup is closed when login status changes.
+ virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) = 0;
+
// Pops up the detailed view for this item. An item can request to show its
// detailed view using this function (e.g. from an observer callback when
// something, e.g. volume, network availability etc. changes). If
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_empty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698