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

Unified Diff: chrome/browser/ui/views/fullscreen_exit_bubble_views.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/fullscreen_exit_bubble_views.cc
diff --git a/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc b/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc
index 53e5e37efda130919d434ed384791494f5dc06fe..a664f5cf394c5372f79563afec4e4d0203915f1d 100644
--- a/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc
+++ b/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc
@@ -48,7 +48,7 @@ class ButtonView : public views::View {
virtual ~ButtonView();
// Returns an empty size when the view is not visible.
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
views::LabelButton* accept_button() const { return accept_button_; }
views::LabelButton* deny_button() const { return deny_button_; }
@@ -81,7 +81,7 @@ ButtonView::ButtonView(views::ButtonListener* listener,
ButtonView::~ButtonView() {
}
-gfx::Size ButtonView::GetPreferredSize() {
+gfx::Size ButtonView::GetPreferredSize() const {
return visible() ? views::View::GetPreferredSize() : gfx::Size();
}

Powered by Google App Engine
This is Rietveld 408576698