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

Unified Diff: chrome/browser/ui/views/apps/glass_app_window_frame_view_win.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/apps/glass_app_window_frame_view_win.cc
diff --git a/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc b/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
index 68d94dc1b516eb256d3a5f1e92d270284a778c36..f93f53bf048547537aeb63da734a1692c67308e7 100644
--- a/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
+++ b/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
@@ -97,7 +97,7 @@ void GlassAppWindowFrameViewWin::GetWindowMask(const gfx::Size& size,
// We got nothing to say about no window mask.
}
-gfx::Size GlassAppWindowFrameViewWin::GetPreferredSize() {
+gfx::Size GlassAppWindowFrameViewWin::GetPreferredSize() const {
gfx::Size pref = widget_->client_view()->GetPreferredSize();
gfx::Rect bounds(0, 0, pref.width(), pref.height());
return widget_->non_client_view()
@@ -109,7 +109,7 @@ const char* GlassAppWindowFrameViewWin::GetClassName() const {
return kViewClassName;
}
-gfx::Size GlassAppWindowFrameViewWin::GetMinimumSize() {
+gfx::Size GlassAppWindowFrameViewWin::GetMinimumSize() const {
gfx::Size min_size = widget_->client_view()->GetMinimumSize();
gfx::Rect client_bounds = GetBoundsForClientView();
min_size.Enlarge(0, client_bounds.y());

Powered by Google App Engine
This is Rietveld 408576698