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

Unified Diff: ash/system/tray_update.h

Issue 10291004: ash: Show a nagging reminder for available updates. (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 | « no previous file | 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 3d04340aa24336455374b25c6a54e4edc40ee466..ad99ee377b2401760f5d223f8023a9b71e28bc1c 100644
--- a/ash/system/tray_update.h
+++ b/ash/system/tray_update.h
@@ -7,6 +7,7 @@
#pragma once
#include "ash/system/tray/tray_image_item.h"
+#include "base/memory/scoped_ptr.h"
namespace views {
class View;
@@ -23,6 +24,10 @@ class ASH_EXPORT UpdateObserver {
namespace internal {
+namespace tray {
+class UpdateNagger;
+}
+
class TrayUpdate : public TrayImageItem,
public UpdateObserver {
public:
@@ -33,11 +38,16 @@ class TrayUpdate : public TrayImageItem,
// Overridden from TrayImageItem.
virtual bool GetInitialVisibility() OVERRIDE;
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
- virtual void DestroyDefaultView() OVERRIDE;
+ virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
+ virtual void DestroyDetailedView() OVERRIDE;
// Overridden from UpdateObserver.
virtual void OnUpdateRecommended() 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_;
+
DISALLOW_COPY_AND_ASSIGN(TrayUpdate);
};
« no previous file with comments | « no previous file | ash/system/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698