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

Side by Side Diff: ash/system/tray/system_tray_notifier.cc

Issue 12564007: Hook up system clock update dbus signal to chrome and ash tray ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests by adding MockSystemClockClient. Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/tray/system_tray_notifier.h" 5 #include "ash/system/tray/system_tray_notifier.h"
6 6
7 namespace ash { 7 namespace ash {
8 8
9 SystemTrayNotifier::SystemTrayNotifier() { 9 SystemTrayNotifier::SystemTrayNotifier() {
10 } 10 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void SystemTrayNotifier::NotifyRefreshClock() { 221 void SystemTrayNotifier::NotifyRefreshClock() {
222 FOR_EACH_OBSERVER(ClockObserver, clock_observers_, Refresh()); 222 FOR_EACH_OBSERVER(ClockObserver, clock_observers_, Refresh());
223 } 223 }
224 224
225 void SystemTrayNotifier::NotifyDateFormatChanged() { 225 void SystemTrayNotifier::NotifyDateFormatChanged() {
226 FOR_EACH_OBSERVER(ClockObserver, 226 FOR_EACH_OBSERVER(ClockObserver,
227 clock_observers_, 227 clock_observers_,
228 OnDateFormatChanged()); 228 OnDateFormatChanged());
229 } 229 }
230 230
231 void SystemTrayNotifier::NotifySystemClockTimeUpdated() {
232 FOR_EACH_OBSERVER(ClockObserver,
233 clock_observers_,
234 OnSystemClockTimeUpdated());
235 }
236
231 void SystemTrayNotifier::NotifyRefreshDrive(DriveOperationStatusList& list) { 237 void SystemTrayNotifier::NotifyRefreshDrive(DriveOperationStatusList& list) {
232 FOR_EACH_OBSERVER(DriveObserver, 238 FOR_EACH_OBSERVER(DriveObserver,
233 drive_observers_, 239 drive_observers_,
234 OnDriveRefresh(list)); 240 OnDriveRefresh(list));
235 } 241 }
236 242
237 void SystemTrayNotifier::NotifyRefreshIME(bool show_message) { 243 void SystemTrayNotifier::NotifyRefreshIME(bool show_message) {
238 FOR_EACH_OBSERVER(IMEObserver, 244 FOR_EACH_OBSERVER(IMEObserver,
239 ime_observers_, 245 ime_observers_,
240 OnIMERefresh(show_message)); 246 OnIMERefresh(show_message));
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 348 }
343 349
344 void SystemTrayNotifier::NotifyEnterpriseDomainChanged() { 350 void SystemTrayNotifier::NotifyEnterpriseDomainChanged() {
345 FOR_EACH_OBSERVER(EnterpriseDomainObserver, enterprise_domain_observers_, 351 FOR_EACH_OBSERVER(EnterpriseDomainObserver, enterprise_domain_observers_,
346 OnEnterpriseDomainChanged()); 352 OnEnterpriseDomainChanged());
347 } 353 }
348 354
349 #endif // OS_CHROMEOS 355 #endif // OS_CHROMEOS
350 356
351 } // namespace ash 357 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698