OLD | NEW |
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 18 matching lines...) Expand all Loading... |
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 // views::View: | 37 // views::View: |
38 void Layout() override; | 38 void Layout() override; |
| 39 gfx::Size GetPreferredSize() const override; |
39 | 40 |
40 // ui::TableModel: | 41 // ui::TableModel: |
41 int RowCount() override; | 42 int RowCount() override; |
42 base::string16 GetText(int row, int column_id) override; | 43 base::string16 GetText(int row, int column_id) override; |
43 void SetObserver(ui::TableModelObserver* observer) override; | 44 void SetObserver(ui::TableModelObserver* observer) override; |
44 gfx::ImageSkia GetIcon(int row) override; | 45 gfx::ImageSkia GetIcon(int row) override; |
45 | 46 |
46 // ChooserController::View: | 47 // ChooserController::View: |
47 void OnOptionsInitialized() override; | 48 void OnOptionsInitialized() override; |
48 void OnOptionAdded(size_t index) override; | 49 void OnOptionAdded(size_t index) override; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 base::string16 help_text_; | 88 base::string16 help_text_; |
88 base::string16 help_and_scanning_text_; | 89 base::string16 help_and_scanning_text_; |
89 base::string16 help_and_re_scan_text_; | 90 base::string16 help_and_re_scan_text_; |
90 gfx::Range help_text_range_; | 91 gfx::Range help_text_range_; |
91 gfx::Range re_scan_text_range_; | 92 gfx::Range re_scan_text_range_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(DeviceChooserContentView); | 94 DISALLOW_COPY_AND_ASSIGN(DeviceChooserContentView); |
94 }; | 95 }; |
95 | 96 |
96 #endif // CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_DEVICE_CHOOSER_CONTENT_VIEW_H_ |
OLD | NEW |