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

Side by Side Diff: ash/system/audio/tray_audio_delegate.h

Issue 620673002: Flip the left/right speaker when the device is in yoga mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_
6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ 6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_
7 7
8 namespace ash { 8 namespace ash {
9 namespace system { 9 namespace system {
10 10
(...skipping 22 matching lines...) Expand all
33 virtual bool HasAlternativeSources() = 0; 33 virtual bool HasAlternativeSources() = 0;
34 34
35 // Returns whether the output volume is muted. 35 // Returns whether the output volume is muted.
36 virtual bool IsOutputAudioMuted() = 0; 36 virtual bool IsOutputAudioMuted() = 0;
37 37
38 // Sets the mute state of the output device. 38 // Sets the mute state of the output device.
39 virtual void SetOutputAudioIsMuted(bool is_muted) = 0; 39 virtual void SetOutputAudioIsMuted(bool is_muted) = 0;
40 40
41 // Sets the volume level of the output device in the range 0%-100% 41 // Sets the volume level of the output device in the range 0%-100%
42 virtual void SetOutputVolumeLevel(int level) = 0; 42 virtual void SetOutputVolumeLevel(int level) = 0;
43
44 // Swaps the left and right channel of the the primary active output device.
45 // Swap the left and right channel if |swap| is true; otherwise, swap the left
46 // and right channel back to the normal mode.
47 virtual void SwapLeftRight(bool swap) = 0;
oshima 2014/09/30 22:29:53 It'd be better to have something like: (assuming t
jennyz 2014/10/01 00:22:59 Done.
43 }; 48 };
44 49
45 } // namespace system 50 } // namespace system
46 } // namespace ash 51 } // namespace ash
47 52
48 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_ 53 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698