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

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

Issue 11415025: A11y: Introduce High Contrast Mode and Screen Magnifier to ubar tray. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase @170134 Created 8 years 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
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/tray/test_system_tray_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 void SystemTrayNotifier::AddVpnObserver(NetworkObserver* observer) { 75 void SystemTrayNotifier::AddVpnObserver(NetworkObserver* observer) {
76 vpn_observers_.AddObserver(observer); 76 vpn_observers_.AddObserver(observer);
77 } 77 }
78 78
79 void SystemTrayNotifier::AddSmsObserver(SmsObserver* observer) { 79 void SystemTrayNotifier::AddSmsObserver(SmsObserver* observer) {
80 sms_observers_.AddObserver(observer); 80 sms_observers_.AddObserver(observer);
81 } 81 }
82 #endif 82 #endif
83 83
84 void SystemTrayNotifier::NotifyAccessibilityModeChanged( 84 void SystemTrayNotifier::NotifyAccessibilityModeChanged() {
85 bool spoken_feedback_enabled) {
86 FOR_EACH_OBSERVER( 85 FOR_EACH_OBSERVER(
87 AccessibilityObserver, 86 AccessibilityObserver,
88 accessibility_observers_, 87 accessibility_observers_,
89 OnAccessibilityModeChanged(spoken_feedback_enabled)); 88 OnAccessibilityModeChanged());
90 } 89 }
91 90
92 void SystemTrayNotifier::NotifyVolumeChanged(float level) { 91 void SystemTrayNotifier::NotifyVolumeChanged(float level) {
93 FOR_EACH_OBSERVER(AudioObserver, 92 FOR_EACH_OBSERVER(AudioObserver,
94 audio_observers_, 93 audio_observers_,
95 OnVolumeChanged(level)); 94 OnVolumeChanged(level));
96 } 95 }
97 96
98 void SystemTrayNotifier::NotifyMuteToggled() { 97 void SystemTrayNotifier::NotifyMuteToggled() {
99 FOR_EACH_OBSERVER(AudioObserver, 98 FOR_EACH_OBSERVER(AudioObserver,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 233 }
235 234
236 void SystemTrayNotifier::NotifyAddSmsMessage( 235 void SystemTrayNotifier::NotifyAddSmsMessage(
237 const base::DictionaryValue& message) { 236 const base::DictionaryValue& message) {
238 FOR_EACH_OBSERVER(SmsObserver, sms_observers_, AddMessage(message)); 237 FOR_EACH_OBSERVER(SmsObserver, sms_observers_, AddMessage(message));
239 } 238 }
240 239
241 #endif // OS_CHROMEOS 240 #endif // OS_CHROMEOS
242 241
243 } // namespace ash 242 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/tray/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698