#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/views/device_chooser_content_view.h"
#include <string>
#include "base/functional/bind.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/strcat.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/image_button_factory.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/controls/table/table_view.h"
#include "ui/views/controls/throbber.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/widget/widget.h"
DeviceChooserContentView::DeviceChooserContentView(
views::TableViewObserver* table_view_observer,
std::unique_ptr<permissions::ChooserController> chooser_controller)
: … { … }
DeviceChooserContentView::~DeviceChooserContentView() { … }
gfx::Size DeviceChooserContentView::GetMinimumSize() const { … }
size_t DeviceChooserContentView::RowCount() { … }
std::u16string DeviceChooserContentView::GetText(size_t row, int column_id) { … }
void DeviceChooserContentView::SetObserver(ui::TableModelObserver* observer) { … }
ui::ImageModel DeviceChooserContentView::GetIcon(size_t row) { … }
void DeviceChooserContentView::OnOptionsInitialized() { … }
void DeviceChooserContentView::OnOptionAdded(size_t index) { … }
void DeviceChooserContentView::OnOptionRemoved(size_t index) { … }
void DeviceChooserContentView::OnOptionUpdated(size_t index) { … }
void DeviceChooserContentView::OnAdapterEnabledChanged(bool enabled) { … }
void DeviceChooserContentView::OnAdapterAuthorizationChanged(bool authorized) { … }
void DeviceChooserContentView::OnRefreshStateChanged(bool refreshing) { … }
std::u16string DeviceChooserContentView::GetWindowTitle() const { … }
std::unique_ptr<views::View> DeviceChooserContentView::CreateExtraView() { … }
bool DeviceChooserContentView::IsDialogButtonEnabled(
ui::mojom::DialogButton button) const { … }
void DeviceChooserContentView::Accept() { … }
void DeviceChooserContentView::Cancel() { … }
void DeviceChooserContentView::Close() { … }
void DeviceChooserContentView::UpdateTableView() { … }
void DeviceChooserContentView::SelectAllCheckboxChanged() { … }
void DeviceChooserContentView::ShowThrobber() { … }
void DeviceChooserContentView::HideThrobber() { … }
void DeviceChooserContentView::ShowReScanButton(bool enabled) { … }
views::LabelButton* DeviceChooserContentView::ReScanButtonForTesting() { … }
views::Throbber* DeviceChooserContentView::ThrobberForTesting() { … }
views::Label* DeviceChooserContentView::ThrobberLabelForTesting() { … }
BEGIN_METADATA(…)