#include "chrome/browser/ui/views/media_preview/mic_preview/mic_view_controller.h"
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/media_preview/media_view.h"
#include "chrome/grit/generated_resources.h"
#include "components/vector_icons/vector_icons.h"
#include "media/audio/audio_device_description.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/simple_combobox_model.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/layout/box_layout.h"
namespace {
const ui::ImageModel GetMicImageModel() { … }
std::vector<ui::SimpleComboboxModel::Item> GetComboboxItems(
const std::vector<media::AudioDeviceDescription>& audio_source_infos) { … }
}
MicViewController::MicViewController(
MediaView& base_view,
bool needs_borders,
ui::SimpleComboboxModel& combobox_model,
bool allow_device_selection,
MediaViewControllerBase::SourceChangeCallback callback,
media_preview_metrics::Context metrics_context)
: … { … }
MicViewController::~MicViewController() = default;
MediaView& MicViewController::GetLiveFeedContainer() { … }
void MicViewController::UpdateAudioSourceInfos(
const std::vector<media::AudioDeviceDescription>& audio_source_infos) { … }