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

Unified Diff: ui/views/test/test_views.h

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/views/test/child_modal_window.cc ('k') | ui/views/test/test_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_views.h
diff --git a/ui/views/test/test_views.h b/ui/views/test/test_views.h
index 7501a810045612fef61e65b955e11a1934779b8b..7d0cabf6c8ae1d5dc5104bf89eecfe88a2217ca9 100644
--- a/ui/views/test/test_views.h
+++ b/ui/views/test/test_views.h
@@ -15,7 +15,7 @@ class StaticSizedView : public View {
explicit StaticSizedView(const gfx::Size& size);
virtual ~StaticSizedView();
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
private:
gfx::Size size_;
@@ -29,7 +29,7 @@ class ProportionallySizedView : public View {
explicit ProportionallySizedView(int factor);
virtual ~ProportionallySizedView();
- virtual int GetHeightForWidth(int w) OVERRIDE;
+ virtual int GetHeightForWidth(int w) const OVERRIDE;
private:
// The multiplicative factor between width and height, i.e.
« no previous file with comments | « ui/views/test/child_modal_window.cc ('k') | ui/views/test/test_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698