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

Unified Diff: ash/common/system/tray/wm_system_tray_notifier.h

Issue 2064953002: mash: Migrate tray date view to //ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trayviews
Patch Set: review feedback Created 4 years, 6 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/common/system/tray/system_tray_delegate.cc ('k') | ash/common/system/tray/wm_system_tray_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/wm_system_tray_notifier.h
diff --git a/ash/common/system/tray/wm_system_tray_notifier.h b/ash/common/system/tray/wm_system_tray_notifier.h
index 9931f968f743cc0d56ad776b8a68ce9307a76116..95b5527ff929fd3665e495a72df34927558735a9 100644
--- a/ash/common/system/tray/wm_system_tray_notifier.h
+++ b/ash/common/system/tray/wm_system_tray_notifier.h
@@ -11,6 +11,7 @@
namespace ash {
+class ClockObserver;
struct UpdateInfo;
class UpdateObserver;
@@ -24,12 +25,21 @@ class ASH_EXPORT WmSystemTrayNotifier {
WmSystemTrayNotifier();
~WmSystemTrayNotifier();
+ void AddClockObserver(ClockObserver* observer);
+ void RemoveClockObserver(ClockObserver* observer);
+
void AddUpdateObserver(UpdateObserver* observer);
void RemoveUpdateObserver(UpdateObserver* observer);
+ void NotifyRefreshClock();
+ void NotifyDateFormatChanged();
+ void NotifySystemClockTimeUpdated();
+ void NotifySystemClockCanSetTimeChanged(bool can_set_time);
+
void NotifyUpdateRecommended(const UpdateInfo& info);
private:
+ base::ObserverList<ClockObserver> clock_observers_;
base::ObserverList<UpdateObserver> update_observers_;
DISALLOW_COPY_AND_ASSIGN(WmSystemTrayNotifier);
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/common/system/tray/wm_system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698