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

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

Issue 23075012: Update NetworkStateNotifier to use message_center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Track deafult_network and reset did_show_out_of_credits on any change Created 7 years, 4 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 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 #include "ash/system/chromeos/network/network_state_notifier.h" 8 #include "ash/system/chromeos/network/network_state_notifier.h"
9 #endif 9 #endif
10 10
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 281
282 void SystemTrayNotifier::NotifyUserUpdate() { 282 void SystemTrayNotifier::NotifyUserUpdate() {
283 FOR_EACH_OBSERVER(UserObserver, 283 FOR_EACH_OBSERVER(UserObserver,
284 user_observers_, 284 user_observers_,
285 OnUserUpdate()); 285 OnUserUpdate());
286 } 286 }
287 287
288 #if defined(OS_CHROMEOS) 288 #if defined(OS_CHROMEOS)
289 289
290 void SystemTrayNotifier::NotifySetNetworkMessage(
291 NetworkTrayDelegate* delegate,
292 NetworkObserver::MessageType message_type,
293 NetworkObserver::NetworkType network_type,
294 const base::string16& title,
295 const base::string16& message,
296 const std::vector<base::string16>& links) {
297 FOR_EACH_OBSERVER(NetworkObserver,
298 network_observers_,
299 SetNetworkMessage(
300 delegate,
301 message_type,
302 network_type,
303 title,
304 message,
305 links));
306 }
307
308 void SystemTrayNotifier::NotifyClearNetworkMessage(
309 NetworkObserver::MessageType message_type) {
310 FOR_EACH_OBSERVER(NetworkObserver,
311 network_observers_,
312 ClearNetworkMessage(message_type));
313 }
314
315 void SystemTrayNotifier::NotifyRequestToggleWifi() { 290 void SystemTrayNotifier::NotifyRequestToggleWifi() {
316 FOR_EACH_OBSERVER(NetworkObserver, 291 FOR_EACH_OBSERVER(NetworkObserver,
317 network_observers_, 292 network_observers_,
318 RequestToggleWifi()); 293 RequestToggleWifi());
319 } 294 }
320 295
321 void SystemTrayNotifier::NotifyEnterpriseDomainChanged() { 296 void SystemTrayNotifier::NotifyEnterpriseDomainChanged() {
322 FOR_EACH_OBSERVER(EnterpriseDomainObserver, enterprise_domain_observers_, 297 FOR_EACH_OBSERVER(EnterpriseDomainObserver, enterprise_domain_observers_,
323 OnEnterpriseDomainChanged()); 298 OnEnterpriseDomainChanged());
324 } 299 }
(...skipping 18 matching lines...) Expand all
343 } 318 }
344 319
345 void SystemTrayNotifier::NotifyScreenShareStop() { 320 void SystemTrayNotifier::NotifyScreenShareStop() {
346 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_, 321 FOR_EACH_OBSERVER(ScreenShareObserver, screen_share_observers_,
347 OnScreenShareStop()); 322 OnScreenShareStop());
348 } 323 }
349 324
350 #endif // OS_CHROMEOS 325 #endif // OS_CHROMEOS
351 326
352 } // namespace ash 327 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | chrome/browser/chromeos/status/data_promo_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698