| Index: ash/common/system/tray/wm_system_tray_notifier.cc
|
| diff --git a/ash/common/system/tray/wm_system_tray_notifier.cc b/ash/common/system/tray/wm_system_tray_notifier.cc
|
| index 2137e92628f5030d40591ffbac14e1859c91824e..50d4566688b1edc04c733b72a2e845ec22e497f8 100644
|
| --- a/ash/common/system/tray/wm_system_tray_notifier.cc
|
| +++ b/ash/common/system/tray/wm_system_tray_notifier.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "ash/common/system/tray/wm_system_tray_notifier.h"
|
|
|
| +#include "ash/common/system/date/clock_observer.h"
|
| #include "ash/common/system/update/update_observer.h"
|
|
|
| namespace ash {
|
| @@ -12,6 +13,14 @@ WmSystemTrayNotifier::WmSystemTrayNotifier() {}
|
|
|
| WmSystemTrayNotifier::~WmSystemTrayNotifier() {}
|
|
|
| +void WmSystemTrayNotifier::AddClockObserver(ClockObserver* observer) {
|
| + clock_observers_.AddObserver(observer);
|
| +}
|
| +
|
| +void WmSystemTrayNotifier::RemoveClockObserver(ClockObserver* observer) {
|
| + clock_observers_.RemoveObserver(observer);
|
| +}
|
| +
|
| void WmSystemTrayNotifier::AddUpdateObserver(UpdateObserver* observer) {
|
| update_observers_.AddObserver(observer);
|
| }
|
| @@ -20,6 +29,25 @@ void WmSystemTrayNotifier::RemoveUpdateObserver(UpdateObserver* observer) {
|
| update_observers_.RemoveObserver(observer);
|
| }
|
|
|
| +void WmSystemTrayNotifier::NotifyRefreshClock() {
|
| + FOR_EACH_OBSERVER(ClockObserver, clock_observers_, Refresh());
|
| +}
|
| +
|
| +void WmSystemTrayNotifier::NotifyDateFormatChanged() {
|
| + FOR_EACH_OBSERVER(ClockObserver, clock_observers_, OnDateFormatChanged());
|
| +}
|
| +
|
| +void WmSystemTrayNotifier::NotifySystemClockTimeUpdated() {
|
| + FOR_EACH_OBSERVER(ClockObserver, clock_observers_,
|
| + OnSystemClockTimeUpdated());
|
| +}
|
| +
|
| +void WmSystemTrayNotifier::NotifySystemClockCanSetTimeChanged(
|
| + bool can_set_time) {
|
| + FOR_EACH_OBSERVER(ClockObserver, clock_observers_,
|
| + OnSystemClockCanSetTimeChanged(can_set_time));
|
| +}
|
| +
|
| void WmSystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) {
|
| FOR_EACH_OBSERVER(UpdateObserver, update_observers_,
|
| OnUpdateRecommended(info));
|
|
|