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/chromeos/audio/audio_detailed_view.h" | 5 #include "ash/common/system/chromeos/audio/audio_detailed_view.h" |
6 | 6 |
7 #include "ash/common/system/tray/fixed_sized_scroll_view.h" | 7 #include "ash/common/system/tray/fixed_sized_scroll_view.h" |
8 #include "ash/common/system/tray/hover_highlight_view.h" | 8 #include "ash/common/system/tray/hover_highlight_view.h" |
9 #include "ash/common/system/tray/tray_constants.h" | 9 #include "ash/common/system/tray/tray_constants.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chromeos/audio/cras_audio_handler.h" | 11 #include "chromeos/audio/cras_audio_handler.h" |
12 #include "grit/ash_strings.h" | 12 #include "grit/ash_strings.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
15 #include "ui/views/border.h" | 15 #include "ui/views/border.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 if (iter == device_map_.end()) | 162 if (iter == device_map_.end()) |
163 return; | 163 return; |
164 chromeos::AudioDevice device = iter->second; | 164 chromeos::AudioDevice device = iter->second; |
165 CrasAudioHandler::Get()->SwitchToDevice(device, true, | 165 CrasAudioHandler::Get()->SwitchToDevice(device, true, |
166 CrasAudioHandler::ACTIVATE_BY_USER); | 166 CrasAudioHandler::ACTIVATE_BY_USER); |
167 } | 167 } |
168 } | 168 } |
169 | 169 |
170 } // namespace tray | 170 } // namespace tray |
171 } // namespace ash | 171 } // namespace ash |
OLD | NEW |