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

Unified Diff: ui/message_center/views/message_center_bubble.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
« no previous file with comments | « ui/message_center/views/bounded_label.cc ('k') | ui/message_center/views/message_center_button_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_center_bubble.cc
diff --git a/ui/message_center/views/message_center_bubble.cc b/ui/message_center/views/message_center_bubble.cc
index cc9345ff99b1135e843e113a86dce1ebc857d291..7189d2749005db82ec521658dfb9d44254ac0795 100644
--- a/ui/message_center/views/message_center_bubble.cc
+++ b/ui/message_center/views/message_center_bubble.cc
@@ -20,7 +20,7 @@ class ContentsView : public views::View {
virtual ~ContentsView();
// Overridden from views::View:
- virtual int GetHeightForWidth(int width) OVERRIDE;
+ virtual int GetHeightForWidth(int width) const OVERRIDE;
protected:
// Overridden from views::View:
@@ -41,7 +41,7 @@ ContentsView::ContentsView(MessageCenterBubble* bubble, views::View* contents)
ContentsView::~ContentsView() {
}
-int ContentsView::GetHeightForWidth(int width) {
+int ContentsView::GetHeightForWidth(int width) const {
DCHECK_EQ(1, child_count());
int contents_width = std::max(width - GetInsets().width(), 0);
int contents_height = child_at(0)->GetHeightForWidth(contents_width);
« no previous file with comments | « ui/message_center/views/bounded_label.cc ('k') | ui/message_center/views/message_center_button_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698