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

Unified Diff: ui/views/window/native_frame_view.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/window/native_frame_view.h ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/native_frame_view.cc
diff --git a/ui/views/window/native_frame_view.cc b/ui/views/window/native_frame_view.cc
index cabc7c04000b4cbd46e5dea8c3aab61c72510839..44cc42f0bb2e4404fde4d36ea569f9d41cfbcb06 100644
--- a/ui/views/window/native_frame_view.cc
+++ b/ui/views/window/native_frame_view.cc
@@ -70,7 +70,7 @@ void NativeFrameView::UpdateWindowTitle() {
// Nothing to do.
}
-gfx::Size NativeFrameView::GetPreferredSize() {
+gfx::Size NativeFrameView::GetPreferredSize() const {
gfx::Size client_preferred_size = frame_->client_view()->GetPreferredSize();
#if defined(OS_WIN)
// Returns the client size. On Windows, this is the expected behavior for
@@ -84,7 +84,7 @@ gfx::Size NativeFrameView::GetPreferredSize() {
#endif
}
-gfx::Size NativeFrameView::GetMinimumSize() {
+gfx::Size NativeFrameView::GetMinimumSize() const {
return frame_->client_view()->GetMinimumSize();
}
« no previous file with comments | « ui/views/window/native_frame_view.h ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698