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.
5 #ifndef ASH_SYSTEM_WIN_AUDIO_TRAY_AUDIO_DELEGATE_WIN_H_
6 #define ASH_SYSTEM_WIN_AUDIO_TRAY_AUDIO_DELEGATE_WIN_H_
8 #include <audioclient.h>
9 #include <mmdeviceapi.h>
11 #include "ash/ash_export.h"
12 #include "ash/system/audio/tray_audio_delegate.h"
13 #include "base/compiler_specific.h"
14 #include "base/win/scoped_comptr.h"
19 class ASH_EXPORT TrayAudioDelegateWin
: public TrayAudioDelegate
{
21 ~TrayAudioDelegateWin() override
{}
23 // Overridden from TrayAudioDelegate.
24 void AdjustOutputVolumeToAudibleLevel() override
;
25 int GetOutputDefaultVolumeMuteLevel() override
;
26 int GetOutputVolumeLevel() override
;
27 int GetActiveOutputDeviceIconId() override
;
28 bool HasAlternativeSources() override
;
29 bool IsOutputAudioMuted() override
;
30 void SetOutputAudioIsMuted(bool is_muted
) override
;
31 void SetOutputVolumeLevel(int level
) override
;
32 void SetInternalSpeakerChannelMode(AudioChannelMode mode
) override
;
33 void SetActiveHDMIOutoutRediscoveringIfNecessary(
34 bool force_rediscovering
) override
;
37 base::win::ScopedComPtr
<ISimpleAudioVolume
> CreateDefaultVolumeControl();
43 #endif // ASH_SYSTEM_WIN_AUDIO_TRAY_AUDIO_DELEGATE_WIN_H_