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

Unified Diff: ash/popup_message.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 | « ash/ime/mode_indicator_view.cc ('k') | ash/shelf/overflow_bubble_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/popup_message.cc
diff --git a/ash/popup_message.cc b/ash/popup_message.cc
index f3217890a9e7b3e935d22e4bbaaf243b1a895ef6..b83ba9115703127291eed913ca5cea9edfbe7ed0 100644
--- a/ash/popup_message.cc
+++ b/ash/popup_message.cc
@@ -54,7 +54,7 @@ class PopupMessage::MessageBubble : public views::BubbleDelegateView {
private:
// views::View overrides:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
// Each component (width/height) can force a size override for that component
// if not 0.
@@ -163,7 +163,7 @@ void PopupMessage::MessageBubble::Close() {
GetWidget()->Close();
}
-gfx::Size PopupMessage::MessageBubble::GetPreferredSize() {
+gfx::Size PopupMessage::MessageBubble::GetPreferredSize() const {
gfx::Size pref_size = views::BubbleDelegateView::GetPreferredSize();
// Override the size with either the provided size or adjust it to not
// violate our minimum / maximum sizes.
« no previous file with comments | « ash/ime/mode_indicator_view.cc ('k') | ash/shelf/overflow_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698