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

Unified Diff: ui/views/test/child_modal_window.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/views/layout/layout_manager.cc ('k') | ui/views/test/test_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/child_modal_window.cc
diff --git a/ui/views/test/child_modal_window.cc b/ui/views/test/child_modal_window.cc
index 2292fd61f7aed1d534174ec9e6764bf9c3d73568..fc19ddfd31fab1f4cd1d79bd43a14897d66c05f7 100644
--- a/ui/views/test/child_modal_window.cc
+++ b/ui/views/test/child_modal_window.cc
@@ -61,7 +61,7 @@ class ChildModalWindow : public WidgetDelegateView {
private:
// Overridden from View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
// Overridden from WidgetDelegate:
virtual View* GetContentsView() OVERRIDE;
@@ -87,7 +87,7 @@ void ChildModalWindow::OnPaint(gfx::Canvas* canvas) {
canvas->FillRect(GetLocalBounds(), kChildColor);
}
-gfx::Size ChildModalWindow::GetPreferredSize() {
+gfx::Size ChildModalWindow::GetPreferredSize() const {
return gfx::Size(kChildWindowWidth, kChildWindowHeight);
}
« no previous file with comments | « ui/views/layout/layout_manager.cc ('k') | ui/views/test/test_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698