#include "chrome/browser/ui/views/desktop_capture/desktop_media_list_controller.h"
#include "base/command_line.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "build/config/chromebox_for_meetings/buildflags.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_delegated_source_list_view.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_list_view.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_tab_list.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/metadata/metadata_impl_macros.h"
namespace {
bool ShouldAutoAcceptThisTabCapture() { … }
}
BEGIN_METADATA(…)
END_METADATA
DesktopMediaListController::DesktopMediaListController(
DesktopMediaPickerDialogView* parent,
std::unique_ptr<DesktopMediaList> media_list)
: … { … }
DesktopMediaListController::~DesktopMediaListController() = default;
std::unique_ptr<views::View> DesktopMediaListController::CreateView(
DesktopMediaSourceViewStyle generic_style,
DesktopMediaSourceViewStyle single_style,
const std::u16string& accessible_name,
DesktopMediaList::Type type) { … }
std::unique_ptr<views::View> DesktopMediaListController::CreateTabListView(
const std::u16string& accessible_name) { … }
void DesktopMediaListController::StartUpdating(
content::DesktopMediaID dialog_window_id) { … }
void DesktopMediaListController::StartUpdatingInternal() { … }
void DesktopMediaListController::FocusView() { … }
void DesktopMediaListController::ShowDelegatedList() { … }
void DesktopMediaListController::HideView() { … }
bool DesktopMediaListController::SupportsReselectButton() const { … }
void DesktopMediaListController::SetCanReselect(bool can_reselect) { … }
void DesktopMediaListController::OnReselectRequested() { … }
std::optional<content::DesktopMediaID>
DesktopMediaListController::GetSelection() const { … }
void DesktopMediaListController::ClearSelection() { … }
void DesktopMediaListController::OnSourceListLayoutChanged() { … }
void DesktopMediaListController::OnSourceSelectionChanged() { … }
void DesktopMediaListController::AcceptSource() { … }
void DesktopMediaListController::AcceptSpecificSource(
content::DesktopMediaID source) { … }
void DesktopMediaListController::Reject() { … }
size_t DesktopMediaListController::GetSourceCount() const { … }
const DesktopMediaList::Source& DesktopMediaListController::GetSource(
size_t index) const { … }
void DesktopMediaListController::SetThumbnailSize(const gfx::Size& size) { … }
void DesktopMediaListController::SetPreviewedSource(
const std::optional<content::DesktopMediaID>& id) { … }
base::WeakPtr<DesktopMediaListController>
DesktopMediaListController::GetWeakPtr() { … }
void DesktopMediaListController::OnSourceAdded(int index) { … }
void DesktopMediaListController::OnSourceRemoved(int index) { … }
void DesktopMediaListController::OnSourceMoved(int old_index, int new_index) { … }
void DesktopMediaListController::OnSourceNameChanged(int index) { … }
void DesktopMediaListController::OnSourceThumbnailChanged(int index) { … }
void DesktopMediaListController::OnSourcePreviewChanged(size_t index) { … }
void DesktopMediaListController::OnDelegatedSourceListSelection() { … }
void DesktopMediaListController::OnDelegatedSourceListDismissed() { … }
void DesktopMediaListController::OnViewIsDeleting(views::View* view) { … }
bool DesktopMediaListController::ShouldAutoAccept(
const DesktopMediaList::Source& source) const { … }
bool DesktopMediaListController::ShouldAutoReject(
const DesktopMediaList::Source& source) const { … }