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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
index f9eabf6a06dc519c57e64c491f898976bd855199..9aa465cce8a6fc14a1328704d9c8183834668e0a 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -153,7 +153,7 @@ class ExtensionInstallDialogView : public views::DialogDelegateView,
virtual ui::ModalType GetModalType() const OVERRIDE;
virtual base::string16 GetWindowTitle() const OVERRIDE;
virtual void Layout() OVERRIDE;
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) OVERRIDE;
@@ -343,7 +343,7 @@ class ExpandableContainerView : public views::View,
virtual ~DetailsView() {}
// views::View:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
void AddDetail(const base::string16& detail);
@@ -1085,7 +1085,7 @@ void ExtensionInstallDialogView::Layout() {
DialogDelegateView::Layout();
}
-gfx::Size ExtensionInstallDialogView::GetPreferredSize() {
+gfx::Size ExtensionInstallDialogView::GetPreferredSize() const {
return dialog_size_;
}
@@ -1172,7 +1172,7 @@ void ExpandableContainerView::DetailsView::AddDetail(
layout_->AddView(detail_label);
}
-gfx::Size ExpandableContainerView::DetailsView::GetPreferredSize() {
+gfx::Size ExpandableContainerView::DetailsView::GetPreferredSize() const {
gfx::Size size = views::View::GetPreferredSize();
return gfx::Size(size.width(), size.height() * state_);
}

Powered by Google App Engine
This is Rietveld 408576698