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