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

Unified Diff: ash/system/tray/tray_image_item.cc

Issue 10915214: ash: Update system update notification behaviour. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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/tray_image_item.h ('k') | ash/system/tray_update.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_image_item.cc
diff --git a/ash/system/tray/tray_image_item.cc b/ash/system/tray/tray_image_item.cc
index fbef4205e933dc9c3e375f2a0a906186ef3ad51e..65939c0f118c5da02067c6cf56b81dc4238d2394 100644
--- a/ash/system/tray/tray_image_item.cc
+++ b/ash/system/tray/tray_image_item.cc
@@ -25,6 +25,14 @@ views::View* TrayImageItem::tray_view() {
return tray_view_;
}
+void TrayImageItem::SetImageFromResourceId(int resource_id) {
+ resource_id_ = resource_id;
+ if (!tray_view_)
+ return;
+ tray_view_->image_view()->SetImage(ui::ResourceBundle::GetSharedInstance().
+ GetImageNamed(resource_id_).ToImageSkia());
+}
+
views::View* TrayImageItem::CreateTrayView(user::LoginStatus status) {
CHECK(tray_view_ == NULL);
tray_view_ = new TrayItemView;
« no previous file with comments | « ash/system/tray/tray_image_item.h ('k') | ash/system/tray_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698