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

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

Issue 2692113002: harmony: fix sizing on webusb chooser dialog (Closed)
Patch Set: move GetPreferredSize override Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/device_chooser_content_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/device_chooser_content_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698