OLD | NEW |
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 #include "ash/system/win/audio/tray_audio_delegate_win.h" | 5 #include "ash/system/win/audio/tray_audio_delegate_win.h" |
6 | 6 |
7 #include <audiopolicy.h> | 7 #include <audiopolicy.h> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "grit/ash_resources.h" | |
11 #include "grit/ash_strings.h" | |
12 #include "media/audio/win/core_audio_util_win.h" | 10 #include "media/audio/win/core_audio_util_win.h" |
13 | 11 |
14 using base::win::ScopedComPtr; | 12 using base::win::ScopedComPtr; |
15 | 13 |
16 namespace { | 14 namespace { |
17 | 15 |
18 // Volume value which should be considered as muted in range [0, 100]. | 16 // Volume value which should be considered as muted in range [0, 100]. |
19 const int kMuteThresholdPercent = 1; | 17 const int kMuteThresholdPercent = 1; |
20 | 18 |
21 // Lowest volume which is considered to be audible in the range [0, 100]. | 19 // Lowest volume which is considered to be audible in the range [0, 100]. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 106 } |
109 | 107 |
110 session_manager->GetSimpleAudioVolume(NULL, FALSE, | 108 session_manager->GetSimpleAudioVolume(NULL, FALSE, |
111 volume_control.Receive()); | 109 volume_control.Receive()); |
112 | 110 |
113 return volume_control; | 111 return volume_control; |
114 } | 112 } |
115 | 113 |
116 } // namespace system | 114 } // namespace system |
117 } // namespace ash | 115 } // namespace ash |
OLD | NEW |