Commit f9aa1565 authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Convert DeviceChooserContentView (and child) to use LayoutManager.

Also does other misc. cleanup.

Bug: 1005568
Change-Id: I0f6203636ae60937ddf35b01fa985d0bb415853f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837079
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702597}
parent a1c3e6a1
......@@ -40,8 +40,7 @@ class DeviceChooserContentView : public views::View,
// views::View:
gfx::Size GetMinimumSize() const override;
void Layout() override;
gfx::Size CalculatePreferredSize() const override;
void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
// ui::TableModel:
int RowCount() override;
......@@ -84,10 +83,6 @@ class DeviceChooserContentView : public views::View,
public:
explicit BluetoothStatusContainer(views::ButtonListener* listener);
// view::Views:
gfx::Size CalculatePreferredSize() const override;
void Layout() override;
void ShowScanningLabelAndThrobber();
void ShowReScanButton(bool enabled);
......@@ -96,9 +91,6 @@ class DeviceChooserContentView : public views::View,
views::Label* scanning_label() { return scanning_label_; }
private:
int GetThrobberLabelSpacing() const;
void CenterVertically(views::View* view);
views::LabelButton* re_scan_button_;
views::Throbber* throbber_;
views::Label* scanning_label_;
......
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