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

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

Issue 1268593002: Fix the UI issue for showing output muted in ash tray after the device wakes up with hdmi output re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 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
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | chrome/browser/policy/policy_browsertest.cc » ('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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 accessibility_observers_, 194 accessibility_observers_,
195 OnAccessibilityModeChanged(notify)); 195 OnAccessibilityModeChanged(notify));
196 } 196 }
197 197
198 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64_t node_id, 198 void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64_t node_id,
199 double volume) { 199 double volume) {
200 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, 200 FOR_EACH_OBSERVER(AudioObserver, audio_observers_,
201 OnOutputNodeVolumeChanged(node_id, volume)); 201 OnOutputNodeVolumeChanged(node_id, volume));
202 } 202 }
203 203
204 void SystemTrayNotifier::NotifyAudioOutputMuteChanged(bool mute_on) { 204 void SystemTrayNotifier::NotifyAudioOutputMuteChanged(bool mute_on,
205 bool system_adjust) {
205 FOR_EACH_OBSERVER(AudioObserver, audio_observers_, 206 FOR_EACH_OBSERVER(AudioObserver, audio_observers_,
206 OnOutputMuteChanged(mute_on)); 207 OnOutputMuteChanged(mute_on, system_adjust));
207 } 208 }
208 209
209 void SystemTrayNotifier::NotifyAudioNodesChanged() { 210 void SystemTrayNotifier::NotifyAudioNodesChanged() {
210 FOR_EACH_OBSERVER( 211 FOR_EACH_OBSERVER(
211 AudioObserver, 212 AudioObserver,
212 audio_observers_, 213 audio_observers_,
213 OnAudioNodesChanged()); 214 OnAudioNodesChanged());
214 } 215 }
215 216
216 void SystemTrayNotifier::NotifyAudioActiveOutputNodeChanged() { 217 void SystemTrayNotifier::NotifyAudioActiveOutputNodeChanged() {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( 386 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged(
386 bool suppressed) { 387 bool suppressed) {
387 FOR_EACH_OBSERVER(VirtualKeyboardObserver, 388 FOR_EACH_OBSERVER(VirtualKeyboardObserver,
388 virtual_keyboard_observers_, 389 virtual_keyboard_observers_,
389 OnKeyboardSuppressionChanged(suppressed)); 390 OnKeyboardSuppressionChanged(suppressed));
390 } 391 }
391 392
392 #endif // OS_CHROMEOS 393 #endif // OS_CHROMEOS
393 394
394 } // namespace ash 395 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698