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

Unified Diff: chrome/browser/ui/views/infobars/infobar_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/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index bd70505b71c9b8fee9580a172535a2a42e7a27a5..cd5da729fc2dd5f3a44d56c1e75a7e5fa3da9f37 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -304,7 +304,7 @@ void InfoBarView::ButtonPressed(views::Button* sender,
}
}
-int InfoBarView::ContentMinimumWidth() {
+int InfoBarView::ContentMinimumWidth() const {
return 0;
}
@@ -403,7 +403,7 @@ void InfoBarView::GetAccessibleState(ui::AXViewState* state) {
state->keyboard_shortcut = base::ASCIIToUTF16("Alt+Shift+A");
}
-gfx::Size InfoBarView::GetPreferredSize() {
+gfx::Size InfoBarView::GetPreferredSize() const {
return gfx::Size(
kEdgeItemPadding + (icon_ ? (icon_->width() + kIconToLabelSpacing) : 0) +
ContentMinimumWidth() + kBeforeCloseButtonSpacing +
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.h ('k') | chrome/browser/ui/views/infobars/translate_message_infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698