Commit 6a77e6af authored by Peter Kasting's avatar Peter Kasting Committed by Chromium LUCI CQ

Add metadata to classes in c/b/ui/views/desktop_capture.

Bug: 1159562
Change-Id: I4f81a69f44b0e0cc9efb4f75b4adbce97d7e5dc8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2630289
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarAllen Bauer <kylixrd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843776}
parent 25a9714b
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "ui/accessibility/ax_enums.mojom.h" #include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h" #include "ui/accessibility/ax_node_data.h"
#include "ui/base/resource/resource_bundle.h" #include "ui/base/resource/resource_bundle.h"
#include "ui/views/view_utils.h"
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ui/aura/window.h" #include "ui/aura/window.h"
...@@ -54,8 +55,7 @@ gfx::ImageSkia LoadDefaultIcon(aura::Window* window) { ...@@ -54,8 +55,7 @@ gfx::ImageSkia LoadDefaultIcon(aura::Window* window) {
#endif #endif
DesktopMediaSourceView* AsDesktopMediaSourceView(views::View* view) { DesktopMediaSourceView* AsDesktopMediaSourceView(views::View* view) {
DCHECK_EQ(DesktopMediaSourceView::kDesktopMediaSourceViewClassName, DCHECK(views::IsViewClass<DesktopMediaSourceView>(view));
view->GetClassName());
return static_cast<DesktopMediaSourceView*>(view); return static_cast<DesktopMediaSourceView*>(view);
} }
...@@ -192,7 +192,7 @@ void DesktopMediaListView::OnSourceRemoved(size_t index) { ...@@ -192,7 +192,7 @@ void DesktopMediaListView::OnSourceRemoved(size_t index) {
DesktopMediaSourceView* view = AsDesktopMediaSourceView(children()[index]); DesktopMediaSourceView* view = AsDesktopMediaSourceView(children()[index]);
DCHECK(view); DCHECK(view);
bool was_selected = view->is_selected(); bool was_selected = view->GetSelected();
RemoveChildView(view); RemoveChildView(view);
delete view; delete view;
...@@ -239,7 +239,7 @@ void DesktopMediaListView::SetStyle(DesktopMediaSourceViewStyle* style) { ...@@ -239,7 +239,7 @@ void DesktopMediaListView::SetStyle(DesktopMediaSourceViewStyle* style) {
DesktopMediaSourceView* DesktopMediaListView::GetSelectedView() { DesktopMediaSourceView* DesktopMediaListView::GetSelectedView() {
const auto i = std::find_if( const auto i = std::find_if(
children().cbegin(), children().cend(), children().cbegin(), children().cend(),
[](View* v) { return AsDesktopMediaSourceView(v)->is_selected(); }); [](View* v) { return AsDesktopMediaSourceView(v)->GetSelected(); });
return (i == children().cend()) ? nullptr : AsDesktopMediaSourceView(*i); return (i == children().cend()) ? nullptr : AsDesktopMediaSourceView(*i);
} }
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "ui/views/controls/scroll_view.h" #include "ui/views/controls/scroll_view.h"
#include "ui/views/controls/tabbed_pane/tabbed_pane.h" #include "ui/views/controls/tabbed_pane/tabbed_pane.h"
#include "ui/views/layout/box_layout.h" #include "ui/views/layout/box_layout.h"
#include "ui/views/metadata/metadata_impl_macros.h"
#include "ui/views/widget/widget.h" #include "ui/views/widget/widget.h"
#if defined(USE_AURA) #if defined(USE_AURA)
...@@ -310,10 +311,6 @@ gfx::Size DesktopMediaPickerDialogView::CalculatePreferredSize() const { ...@@ -310,10 +311,6 @@ gfx::Size DesktopMediaPickerDialogView::CalculatePreferredSize() const {
return gfx::Size(kDialogViewWidth, GetHeightForWidth(kDialogViewWidth)); return gfx::Size(kDialogViewWidth, GetHeightForWidth(kDialogViewWidth));
} }
const char* DesktopMediaPickerDialogView::GetClassName() const {
return "DesktopMediaPickerDialogView";
}
ui::ModalType DesktopMediaPickerDialogView::GetModalType() const { ui::ModalType DesktopMediaPickerDialogView::GetModalType() const {
return modality_; return modality_;
} }
...@@ -449,6 +446,9 @@ void DesktopMediaPickerDialogView::OnSourceListLayoutChanged() { ...@@ -449,6 +446,9 @@ void DesktopMediaPickerDialogView::OnSourceListLayoutChanged() {
GetWidget()->CenterWindow(new_size); GetWidget()->CenterWindow(new_size);
} }
BEGIN_METADATA(DesktopMediaPickerDialogView, views::DialogDelegateView)
END_METADATA
constexpr bool DesktopMediaPickerViews::kScreenAudioShareSupportedOnPlatform; constexpr bool DesktopMediaPickerViews::kScreenAudioShareSupportedOnPlatform;
DesktopMediaPickerViews::DesktopMediaPickerViews() : dialog_(nullptr) {} DesktopMediaPickerViews::DesktopMediaPickerViews() : dialog_(nullptr) {}
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
#ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ #define CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_
#include "base/macros.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chrome/browser/media/webrtc/desktop_media_picker.h" #include "chrome/browser/media/webrtc/desktop_media_picker.h"
#include "chrome/browser/ui/views/desktop_capture/desktop_media_list_controller.h" #include "chrome/browser/ui/views/desktop_capture/desktop_media_list_controller.h"
#include "ui/views/controls/label.h" #include "ui/views/controls/label.h"
#include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h"
#include "ui/views/metadata/metadata_header_macros.h"
#include "ui/views/window/dialog_delegate.h" #include "ui/views/window/dialog_delegate.h"
namespace views { namespace views {
...@@ -26,10 +26,14 @@ class DesktopMediaPickerViews; ...@@ -26,10 +26,14 @@ class DesktopMediaPickerViews;
class DesktopMediaPickerDialogView : public views::DialogDelegateView, class DesktopMediaPickerDialogView : public views::DialogDelegateView,
public views::TabbedPaneListener { public views::TabbedPaneListener {
public: public:
METADATA_HEADER(DesktopMediaPickerDialogView);
DesktopMediaPickerDialogView( DesktopMediaPickerDialogView(
const DesktopMediaPicker::Params& params, const DesktopMediaPicker::Params& params,
DesktopMediaPickerViews* parent, DesktopMediaPickerViews* parent,
std::vector<std::unique_ptr<DesktopMediaList>> source_lists); std::vector<std::unique_ptr<DesktopMediaList>> source_lists);
DesktopMediaPickerDialogView(const DesktopMediaPickerDialogView&) = delete;
DesktopMediaPickerDialogView& operator=(const DesktopMediaPickerDialogView&) =
delete;
~DesktopMediaPickerDialogView() override; ~DesktopMediaPickerDialogView() override;
// Called by parent (DesktopMediaPickerViews) when it's destroyed. // Called by parent (DesktopMediaPickerViews) when it's destroyed.
...@@ -47,7 +51,6 @@ class DesktopMediaPickerDialogView : public views::DialogDelegateView, ...@@ -47,7 +51,6 @@ class DesktopMediaPickerDialogView : public views::DialogDelegateView,
// views::DialogDelegateView: // views::DialogDelegateView:
gfx::Size CalculatePreferredSize() const override; gfx::Size CalculatePreferredSize() const override;
const char* GetClassName() const override;
ui::ModalType GetModalType() const override; ui::ModalType GetModalType() const override;
base::string16 GetWindowTitle() const override; base::string16 GetWindowTitle() const override;
bool IsDialogButtonEnabled(ui::DialogButton button) const override; bool IsDialogButtonEnabled(ui::DialogButton button) const override;
...@@ -76,8 +79,6 @@ class DesktopMediaPickerDialogView : public views::DialogDelegateView, ...@@ -76,8 +79,6 @@ class DesktopMediaPickerDialogView : public views::DialogDelegateView,
std::vector<content::DesktopMediaID::Type> source_types_; std::vector<content::DesktopMediaID::Type> source_types_;
base::Optional<content::DesktopMediaID> accepted_source_; base::Optional<content::DesktopMediaID> accepted_source_;
DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerDialogView);
}; };
// Implementation of DesktopMediaPicker for Views. // Implementation of DesktopMediaPicker for Views.
...@@ -94,6 +95,8 @@ class DesktopMediaPickerViews : public DesktopMediaPicker { ...@@ -94,6 +95,8 @@ class DesktopMediaPickerViews : public DesktopMediaPicker {
#endif #endif
DesktopMediaPickerViews(); DesktopMediaPickerViews();
DesktopMediaPickerViews(const DesktopMediaPickerViews&) = delete;
DesktopMediaPickerViews& operator=(const DesktopMediaPickerViews&) = delete;
~DesktopMediaPickerViews() override; ~DesktopMediaPickerViews() override;
void NotifyDialogResult(content::DesktopMediaID source); void NotifyDialogResult(content::DesktopMediaID source);
...@@ -116,8 +119,6 @@ class DesktopMediaPickerViews : public DesktopMediaPicker { ...@@ -116,8 +119,6 @@ class DesktopMediaPickerViews : public DesktopMediaPicker {
// When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed
// asynchronously by closing the widget. // asynchronously by closing the widget.
DesktopMediaPickerDialogView* dialog_; DesktopMediaPickerDialogView* dialog_;
DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews);
}; };
#endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include "ui/views/controls/focus_ring.h" #include "ui/views/controls/focus_ring.h"
#include "ui/views/controls/image_view.h" #include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h" #include "ui/views/controls/label.h"
#include "ui/views/metadata/metadata_impl_macros.h"
#include "ui/views/view_utils.h"
using content::DesktopMediaID; using content::DesktopMediaID;
...@@ -43,7 +45,6 @@ DesktopMediaSourceView::DesktopMediaSourceView( ...@@ -43,7 +45,6 @@ DesktopMediaSourceView::DesktopMediaSourceView(
DesktopMediaSourceViewStyle style) DesktopMediaSourceViewStyle style)
: parent_(parent), : parent_(parent),
source_id_(source_id), source_id_(source_id),
style_(style),
selected_(false) { selected_(false) {
AddChildView(icon_view_); AddChildView(icon_view_);
AddChildView(image_view_); AddChildView(image_view_);
...@@ -51,15 +52,12 @@ DesktopMediaSourceView::DesktopMediaSourceView( ...@@ -51,15 +52,12 @@ DesktopMediaSourceView::DesktopMediaSourceView(
icon_view_->SetCanProcessEventsWithinSubtree(false); icon_view_->SetCanProcessEventsWithinSubtree(false);
image_view_->SetCanProcessEventsWithinSubtree(false); image_view_->SetCanProcessEventsWithinSubtree(false);
SetFocusBehavior(FocusBehavior::ALWAYS); SetFocusBehavior(FocusBehavior::ALWAYS);
SetStyle(style_); SetStyle(style);
views::FocusRing::Install(this); views::FocusRing::Install(this);
} }
DesktopMediaSourceView::~DesktopMediaSourceView() {} DesktopMediaSourceView::~DesktopMediaSourceView() {}
const char DesktopMediaSourceView::kDesktopMediaSourceViewClassName[] =
"DesktopMediaPicker_DesktopMediaSourceView";
void DesktopMediaSourceView::SetName(const base::string16& name) { void DesktopMediaSourceView::SetName(const base::string16& name) {
label_->SetText(name); label_->SetText(name);
} }
...@@ -83,8 +81,7 @@ void DesktopMediaSourceView::SetSelected(bool selected) { ...@@ -83,8 +81,7 @@ void DesktopMediaSourceView::SetSelected(bool selected) {
parent()->GetViewsInGroup(GetGroup(), &neighbours); parent()->GetViewsInGroup(GetGroup(), &neighbours);
for (auto i(neighbours.begin()); i != neighbours.end(); ++i) { for (auto i(neighbours.begin()); i != neighbours.end(); ++i) {
if (*i != this) { if (*i != this) {
DCHECK_EQ((*i)->GetClassName(), DCHECK(views::IsViewClass<DesktopMediaSourceView>(*i));
DesktopMediaSourceView::kDesktopMediaSourceViewClassName);
DesktopMediaSourceView* source_view = DesktopMediaSourceView* source_view =
static_cast<DesktopMediaSourceView*>(*i); static_cast<DesktopMediaSourceView*>(*i);
source_view->SetSelected(false); source_view->SetSelected(false);
...@@ -103,20 +100,19 @@ void DesktopMediaSourceView::SetSelected(bool selected) { ...@@ -103,20 +100,19 @@ void DesktopMediaSourceView::SetSelected(bool selected) {
gfx::Font::Weight::NORMAL)); gfx::Font::Weight::NORMAL));
} }
SchedulePaint(); OnPropertyChanged(&selected_, views::kPropertyEffectsPaint);
} }
const char* DesktopMediaSourceView::GetClassName() const { void DesktopMediaSourceView::SetStyle(DesktopMediaSourceViewStyle style) {
return DesktopMediaSourceView::kDesktopMediaSourceViewClassName; image_view_->SetBoundsRect(style.image_rect);
icon_view_->SetBoundsRect(style.icon_rect);
icon_view_->SetImageSize(style.icon_rect.size());
label_->SetBoundsRect(style.label_rect);
label_->SetHorizontalAlignment(style.text_alignment);
} }
void DesktopMediaSourceView::SetStyle(DesktopMediaSourceViewStyle style) { bool DesktopMediaSourceView::GetSelected() const {
style_ = style; return selected_;
image_view_->SetBoundsRect(style_.image_rect);
icon_view_->SetBoundsRect(style_.icon_rect);
icon_view_->SetImageSize(style_.icon_rect.size());
label_->SetBoundsRect(style_.label_rect);
label_->SetHorizontalAlignment(style_.text_alignment);
} }
views::View* DesktopMediaSourceView::GetSelectedViewForGroup(int group) { views::View* DesktopMediaSourceView::GetSelectedViewForGroup(int group) {
...@@ -126,8 +122,7 @@ views::View* DesktopMediaSourceView::GetSelectedViewForGroup(int group) { ...@@ -126,8 +122,7 @@ views::View* DesktopMediaSourceView::GetSelectedViewForGroup(int group) {
return nullptr; return nullptr;
for (auto i(neighbours.begin()); i != neighbours.end(); ++i) { for (auto i(neighbours.begin()); i != neighbours.end(); ++i) {
DCHECK_EQ((*i)->GetClassName(), DCHECK(views::IsViewClass<DesktopMediaSourceView>(*i));
DesktopMediaSourceView::kDesktopMediaSourceViewClassName);
DesktopMediaSourceView* source_view = DesktopMediaSourceView* source_view =
static_cast<DesktopMediaSourceView*>(*i); static_cast<DesktopMediaSourceView*>(*i);
if (source_view->selected_) if (source_view->selected_)
...@@ -164,3 +159,7 @@ void DesktopMediaSourceView::GetAccessibleNodeData(ui::AXNodeData* node_data) { ...@@ -164,3 +159,7 @@ void DesktopMediaSourceView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ax::mojom::Role::kButton; node_data->role = ax::mojom::Role::kButton;
node_data->SetName(label_->GetText()); node_data->SetName(label_->GetText());
} }
BEGIN_METADATA(DesktopMediaSourceView, views::View)
ADD_PROPERTY_METADATA(bool, Selected)
END_METADATA
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "ui/views/controls/focus_ring.h" #include "ui/views/controls/focus_ring.h"
#include "ui/views/controls/image_view.h" #include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h" #include "ui/views/controls/label.h"
#include "ui/views/metadata/metadata_header_macros.h"
#include "ui/views/view.h" #include "ui/views/view.h"
namespace views { namespace views {
...@@ -53,9 +54,12 @@ struct DesktopMediaSourceViewStyle { ...@@ -53,9 +54,12 @@ struct DesktopMediaSourceViewStyle {
// source as a thumbnail with the title under it. // source as a thumbnail with the title under it.
class DesktopMediaSourceView : public views::View { class DesktopMediaSourceView : public views::View {
public: public:
METADATA_HEADER(DesktopMediaSourceView);
DesktopMediaSourceView(DesktopMediaListView* parent, DesktopMediaSourceView(DesktopMediaListView* parent,
content::DesktopMediaID source_id, content::DesktopMediaID source_id,
DesktopMediaSourceViewStyle style); DesktopMediaSourceViewStyle style);
DesktopMediaSourceView(const DesktopMediaSourceView&) = delete;
DesktopMediaSourceView& operator=(const DesktopMediaSourceView&) = delete;
~DesktopMediaSourceView() override; ~DesktopMediaSourceView() override;
// Used to update the style when the number of available items changes. // Used to update the style when the number of available items changes.
...@@ -70,10 +74,9 @@ class DesktopMediaSourceView : public views::View { ...@@ -70,10 +74,9 @@ class DesktopMediaSourceView : public views::View {
const content::DesktopMediaID& source_id() const { return source_id_; } const content::DesktopMediaID& source_id() const { return source_id_; }
// Returns true if the source is selected. // Returns true if the source is selected.
bool is_selected() const { return selected_; } bool GetSelected() const;
// views::View interface. // views::View interface.
const char* GetClassName() const override;
views::View* GetSelectedViewForGroup(int group) override; views::View* GetSelectedViewForGroup(int group) override;
bool IsGroupFocusTraversable() const override; bool IsGroupFocusTraversable() const override;
void OnFocus() override; void OnFocus() override;
...@@ -81,28 +84,20 @@ class DesktopMediaSourceView : public views::View { ...@@ -81,28 +84,20 @@ class DesktopMediaSourceView : public views::View {
void OnGestureEvent(ui::GestureEvent* event) override; void OnGestureEvent(ui::GestureEvent* event) override;
void GetAccessibleNodeData(ui::AXNodeData* node_data) override; void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
static const char kDesktopMediaSourceViewClassName[];
private: private:
// Updates selection state of the element. If |selected| is true then also // Updates selection state of the element. If |selected| is true then also
// calls SetSelected(false) for the source view that was selected before that // calls SetSelected(false) for the source view that was selected before that
// (if any). // (if any).
void SetSelected(bool selected); void SetSelected(bool selected);
// Updates hover state of the element, and the appearance.
void SetHovered(bool hovered);
DesktopMediaListView* parent_; DesktopMediaListView* parent_;
content::DesktopMediaID source_id_; content::DesktopMediaID source_id_;
DesktopMediaSourceViewStyle style_;
views::ImageView* icon_view_ = new views::ImageView; views::ImageView* icon_view_ = new views::ImageView;
views::ImageView* image_view_ = new views::ImageView; views::ImageView* image_view_ = new views::ImageView;
views::Label* label_ = new views::Label; views::Label* label_ = new views::Label;
bool selected_; bool selected_;
DISALLOW_COPY_AND_ASSIGN(DesktopMediaSourceView);
}; };
#endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_SOURCE_VIEW_H_ #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_SOURCE_VIEW_H_
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "ui/views/controls/table/table_view.h" #include "ui/views/controls/table/table_view.h"
#include "ui/views/controls/table/table_view_observer.h" #include "ui/views/controls/table/table_view_observer.h"
#include "ui/views/layout/fill_layout.h" #include "ui/views/layout/fill_layout.h"
#include "ui/views/metadata/metadata_impl_macros.h"
#include "ui/views/view.h" #include "ui/views/view.h"
namespace { namespace {
...@@ -147,10 +148,6 @@ DesktopMediaTabList::~DesktopMediaTabList() { ...@@ -147,10 +148,6 @@ DesktopMediaTabList::~DesktopMediaTabList() {
child_->SetModel(nullptr); child_->SetModel(nullptr);
} }
const char* DesktopMediaTabList::GetClassName() const {
return "DesktopMediaTabList";
}
gfx::Size DesktopMediaTabList::CalculatePreferredSize() const { gfx::Size DesktopMediaTabList::CalculatePreferredSize() const {
// The picker should have a fixed height of 10 rows. // The picker should have a fixed height of 10 rows.
return gfx::Size(0, child_->GetRowHeight() * 10); return gfx::Size(0, child_->GetRowHeight() * 10);
...@@ -176,3 +173,6 @@ DesktopMediaListController::SourceListListener* ...@@ -176,3 +173,6 @@ DesktopMediaListController::SourceListListener*
DesktopMediaTabList::GetSourceListListener() { DesktopMediaTabList::GetSourceListListener() {
return model_.get(); return model_.get();
} }
BEGIN_METADATA(DesktopMediaTabList, DesktopMediaListController::ListView)
END_METADATA
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_TAB_LIST_H_ #define CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_TAB_LIST_H_
#include "chrome/browser/ui/views/desktop_capture/desktop_media_list_controller.h" #include "chrome/browser/ui/views/desktop_capture/desktop_media_list_controller.h"
#include "ui/views/metadata/metadata_header_macros.h"
namespace views { namespace views {
class TableView; class TableView;
...@@ -37,12 +38,14 @@ class TabListViewObserver; ...@@ -37,12 +38,14 @@ class TabListViewObserver;
// TableView // TableView
class DesktopMediaTabList : public DesktopMediaListController::ListView { class DesktopMediaTabList : public DesktopMediaListController::ListView {
public: public:
METADATA_HEADER(DesktopMediaTabList);
DesktopMediaTabList(DesktopMediaListController* controller, DesktopMediaTabList(DesktopMediaListController* controller,
const base::string16& accessible_name); const base::string16& accessible_name);
DesktopMediaTabList(const DesktopMediaTabList&) = delete;
DesktopMediaTabList& operator=(const DesktopMediaTabList&) = delete;
~DesktopMediaTabList() override; ~DesktopMediaTabList() override;
// views::View: // views::View:
const char* GetClassName() const override;
gfx::Size CalculatePreferredSize() const override; gfx::Size CalculatePreferredSize() const override;
int GetHeightForWidth(int width) const override; int GetHeightForWidth(int width) const override;
...@@ -54,9 +57,6 @@ class DesktopMediaTabList : public DesktopMediaListController::ListView { ...@@ -54,9 +57,6 @@ class DesktopMediaTabList : public DesktopMediaListController::ListView {
private: private:
friend class DesktopMediaPickerViewsTestApi; friend class DesktopMediaPickerViewsTestApi;
DesktopMediaTabList(const DesktopMediaTabList&) = delete;
DesktopMediaTabList operator=(const DesktopMediaTabList&) = delete;
DesktopMediaListController* controller_; DesktopMediaListController* controller_;
std::unique_ptr<TabListModel> model_; std::unique_ptr<TabListModel> model_;
std::unique_ptr<TabListViewObserver> view_observer_; std::unique_ptr<TabListViewObserver> view_observer_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment