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

Side by Side Diff: ash/system/win/audio/tray_audio_delegate_win.h

Issue 2075813002: Remove ash_shell audio system tray item on Windows. (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/win/OWNERS ('k') | ash/system/win/audio/tray_audio_delegate_win.cc » ('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_WIN_AUDIO_TRAY_AUDIO_DELEGATE_WIN_H_
6 #define ASH_SYSTEM_WIN_AUDIO_TRAY_AUDIO_DELEGATE_WIN_H_
7
8 #include <audioclient.h>
9 #include <mmdeviceapi.h>
10
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"
15
16 namespace ash {
17 namespace system {
18
19 class ASH_EXPORT TrayAudioDelegateWin : public TrayAudioDelegate {
20 public:
21 ~TrayAudioDelegateWin() override {}
22
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;
35
36 private:
37 base::win::ScopedComPtr<ISimpleAudioVolume> CreateDefaultVolumeControl();
38 };
39
40 } // namespace system
41 } // namespace ash
42
43 #endif // ASH_SYSTEM_WIN_AUDIO_TRAY_AUDIO_DELEGATE_WIN_H_
OLDNEW
« no previous file with comments | « ash/system/win/OWNERS ('k') | ash/system/win/audio/tray_audio_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698