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

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

Issue 2084533008: mash: Migrate tray audio and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 6 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/audio/tray_audio.cc ('k') | ash/system/audio/volume_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_
6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_
7
8 namespace ash {
9 namespace system {
10
11 class ASH_EXPORT TrayAudioDelegate {
12 public:
13
14 enum { kNoAudioDeviceIcon = -1 };
15 enum AudioChannelMode {
16 NORMAL,
17 LEFT_RIGHT_SWAPPED,
18 };
19
20 virtual ~TrayAudioDelegate() {}
21
22 // Sets the volume level of the output device to the minimum level which is
23 // deemed to be audible.
24 virtual void AdjustOutputVolumeToAudibleLevel() = 0;
25
26 // Gets the default level in the range 0%-100% at which the output device
27 // should be muted.
28 virtual int GetOutputDefaultVolumeMuteLevel() = 0;
29
30 // Gets the icon to use for the active output device.
31 virtual int GetActiveOutputDeviceIconId() = 0;
32
33 // Returns the volume level of the output device in the range 0%-100%.
34 virtual int GetOutputVolumeLevel() = 0;
35
36 // Returns true if the device has alternative inputs or outputs.
37 virtual bool HasAlternativeSources() = 0;
38
39 // Returns whether the output volume is muted.
40 virtual bool IsOutputAudioMuted() = 0;
41
42 // Sets the mute state of the output device.
43 virtual void SetOutputAudioIsMuted(bool is_muted) = 0;
44
45 // Sets the volume level of the output device in the range 0%-100%
46 virtual void SetOutputVolumeLevel(int level) = 0;
47
48 // Sets the internal speaker's channel mode.
49 virtual void SetInternalSpeakerChannelMode(AudioChannelMode mode) = 0;
50
51 // If necessary, sets the starting point for re-discovering the active HDMI
52 // output device caused by device entering/exiting docking mode, HDMI display
53 // changing resolution, or chromeos device suspend/resume. If
54 // |force_rediscovering| is true, it will force to set the starting point for
55 // re-discovering the active HDMI output device again if it has been in the
56 // middle of rediscovering the HDMI active output device.
57 virtual void SetActiveHDMIOutoutRediscoveringIfNecessary(
58 bool force_rediscovering) = 0;
59 };
60
61 } // namespace system
62 } // namespace ash
63
64 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/audio/tray_audio.cc ('k') | ash/system/audio/volume_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698