Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: chrome/browser/ui/views/device_chooser_content_view.h

Issue 2654323002: harmony: convert device chooser (Closed)
Patch Set: fix dialog width Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 class DeviceChooserContentView : public views::View, 27 class DeviceChooserContentView : public views::View,
28 public ui::TableModel, 28 public ui::TableModel,
29 public ChooserController::View, 29 public ChooserController::View,
30 public views::StyledLabelListener { 30 public views::StyledLabelListener {
31 public: 31 public:
32 DeviceChooserContentView( 32 DeviceChooserContentView(
33 views::TableViewObserver* table_view_observer, 33 views::TableViewObserver* table_view_observer,
34 std::unique_ptr<ChooserController> chooser_controller); 34 std::unique_ptr<ChooserController> chooser_controller);
35 ~DeviceChooserContentView() override; 35 ~DeviceChooserContentView() override;
36 36
37 void SetPreferredSize(gfx::Size size);
Peter Kasting 2017/02/01 02:39:25 Nit: const ref This can just be named/inlined as
38
37 // views::View: 39 // views::View:
38 gfx::Size GetPreferredSize() const override; 40 gfx::Size GetPreferredSize() const override;
39 void Layout() override; 41 void Layout() override;
40 42
41 // ui::TableModel: 43 // ui::TableModel:
42 int RowCount() override; 44 int RowCount() override;
43 base::string16 GetText(int row, int column_id) override; 45 base::string16 GetText(int row, int column_id) override;
44 void SetObserver(ui::TableModelObserver* observer) override; 46 void SetObserver(ui::TableModelObserver* observer) override;
45 gfx::ImageSkia GetIcon(int row) override; 47 gfx::ImageSkia GetIcon(int row) override;
46 48
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 views::TableView* table_view_ = nullptr; // Weak. 85 views::TableView* table_view_ = nullptr; // Weak.
84 views::View* table_parent_ = nullptr; // Weak. 86 views::View* table_parent_ = nullptr; // Weak.
85 views::StyledLabel* turn_adapter_off_help_ = nullptr; // Weak. 87 views::StyledLabel* turn_adapter_off_help_ = nullptr; // Weak.
86 views::Throbber* throbber_ = nullptr; // Weak. 88 views::Throbber* throbber_ = nullptr; // Weak.
87 std::unique_ptr<views::StyledLabel> footnote_link_; 89 std::unique_ptr<views::StyledLabel> footnote_link_;
88 base::string16 help_text_; 90 base::string16 help_text_;
89 base::string16 help_and_scanning_text_; 91 base::string16 help_and_scanning_text_;
90 base::string16 help_and_re_scan_text_; 92 base::string16 help_and_re_scan_text_;
91 gfx::Range help_text_range_; 93 gfx::Range help_text_range_;
92 gfx::Range re_scan_text_range_; 94 gfx::Range re_scan_text_range_;
95 gfx::Size preferred_size_;
93 96
94 DISALLOW_COPY_AND_ASSIGN(DeviceChooserContentView); 97 DISALLOW_COPY_AND_ASSIGN(DeviceChooserContentView);
95 }; 98 };
96 99
97 #endif // CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_ 100 #endif // CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698