#include "chrome/browser/ui/views/media_preview/camera_preview/camera_view_controller.h"
#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "chrome/grit/generated_resources.h"
#include "media/capture/video/video_capture_device_info.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/simple_combobox_model.h"
namespace {
std::vector<ui::SimpleComboboxModel::Item> GetComboboxItems(
const std::vector<media::VideoCaptureDeviceInfo>& video_source_infos) { … }
}
CameraViewController::CameraViewController(
MediaView& base_view,
bool needs_borders,
ui::SimpleComboboxModel& combobox_model,
bool allow_device_selection,
MediaViewControllerBase::SourceChangeCallback callback,
media_preview_metrics::Context metrics_context)
: … { … }
CameraViewController::~CameraViewController() = default;
MediaView& CameraViewController::GetLiveFeedContainer() { … }
void CameraViewController::UpdateVideoSourceInfos(
const std::vector<media::VideoCaptureDeviceInfo>& video_source_infos) { … }