#include "chrome/browser/ui/views/desktop_capture/desktop_media_source_view.h"
#include "chrome/browser/media/webrtc/desktop_media_list.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/rounded_corner_image_view.h"
#include "chrome/grit/generated_resources.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/canvas.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/controls/focus_ring.h"
#include "ui/views/controls/highlight_path_generator.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/view_utils.h"
namespace {
constexpr int kCornerRadius = …;
}
DesktopMediaID;
DesktopMediaSourceViewStyle::DesktopMediaSourceViewStyle(
const DesktopMediaSourceViewStyle& style) = default;
DesktopMediaSourceViewStyle::DesktopMediaSourceViewStyle(
int columns,
const gfx::Size& item_size,
const gfx::Rect& icon_rect,
const gfx::Rect& label_rect,
gfx::HorizontalAlignment text_alignment,
const gfx::Rect& image_rect)
: … { … }
DesktopMediaSourceView::DesktopMediaSourceView(
DesktopMediaListView* parent,
DesktopMediaID source_id,
DesktopMediaSourceViewStyle style)
: … { … }
DesktopMediaSourceView::~DesktopMediaSourceView() { … }
void DesktopMediaSourceView::SetName(const std::u16string& name) { … }
void DesktopMediaSourceView::SetThumbnail(const gfx::ImageSkia& thumbnail) { … }
void DesktopMediaSourceView::SetIcon(const gfx::ImageSkia& icon) { … }
void DesktopMediaSourceView::SetSelected(bool selected) { … }
void DesktopMediaSourceView::SetStyle(DesktopMediaSourceViewStyle style) { … }
bool DesktopMediaSourceView::GetSelected() const { … }
void DesktopMediaSourceView::ClearSelection() { … }
views::View* DesktopMediaSourceView::GetSelectedViewForGroup(int group) { … }
bool DesktopMediaSourceView::IsGroupFocusTraversable() const { … }
void DesktopMediaSourceView::OnFocus() { … }
bool DesktopMediaSourceView::OnMousePressed(const ui::MouseEvent& event) { … }
void DesktopMediaSourceView::OnGestureEvent(ui::GestureEvent* event) { … }
void DesktopMediaSourceView::OnLabelTextChanged() { … }
void DesktopMediaSourceView::UpdateAccessibleName() { … }
BEGIN_METADATA(…)