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

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

Issue 9969068: ash: Animate changes in the uber tray. (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_image_item.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 9fd438a6e630ebe8d6fc7d6a9a309a1efc7b1893..88f586d82bd07eb337ef59f738a10a66852702ff 100644
--- a/ash/system/tray/system_tray_item.h
+++ b/ash/system/tray/system_tray_item.h
@@ -24,6 +24,10 @@ class ASH_EXPORT SystemTrayItem {
// Returns a view to be displayed in the system tray. If this returns NULL,
// then this item is not displayed in the tray.
+ // NOTE: The returned view should almost always be a TrayItemView, which
+ // automatically resizes the widget when the size of the view changes, and
+ // adds animation when the visibility of the view changes. If a view wants to
+ // avoid these behaviour, then it should not be a TrayItemView.
virtual views::View* CreateTrayView(user::LoginStatus status) = 0;
// Returns a view for the item to be displayed in the list. This view can be
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_image_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698