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

Unified Diff: ash/system/tray_update.h

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.cc ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray_update.h
diff --git a/ash/system/tray_update.h b/ash/system/tray_update.h
index 25dd0ec4714706dcf2c21d675d8f9813fc839cbb..3937c3c18f3ee354b3785845eb137839b790390f 100644
--- a/ash/system/tray_update.h
+++ b/ash/system/tray_update.h
@@ -6,6 +6,7 @@
#define ASH_SYSTEM_TRAY_UPDATE_H_
#include "ash/system/tray/tray_image_item.h"
+#include "ash/system/user/update_observer.h"
#include "base/memory/scoped_ptr.h"
namespace views {
@@ -14,13 +15,6 @@ class View;
namespace ash {
-class ASH_EXPORT UpdateObserver {
- public:
- virtual ~UpdateObserver() {}
-
- virtual void OnUpdateRecommended() = 0;
-};
-
namespace internal {
namespace tray {
@@ -41,12 +35,14 @@ class TrayUpdate : public TrayImageItem,
virtual void DestroyDetailedView() OVERRIDE;
// Overridden from UpdateObserver.
- virtual void OnUpdateRecommended() OVERRIDE;
+ virtual void OnUpdateRecommended(UpdateSeverity severity) OVERRIDE;
// Used to nag the user in case the tray has been hidden too long with an
// unseen update notification.
scoped_ptr<tray::UpdateNagger> nagger_;
+ UpdateObserver::UpdateSeverity severity_;
+
DISALLOW_COPY_AND_ASSIGN(TrayUpdate);
};
« no previous file with comments | « ash/system/tray/tray_image_item.cc ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698