| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |