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

Side by Side 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: Rebase to 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/window/native_frame_view.h" 5 #include "ui/views/window/native_frame_view.h"
6 6
7 #include "ui/views/widget/native_widget.h" 7 #include "ui/views/widget/native_widget.h"
8 #include "ui/views/widget/widget.h" 8 #include "ui/views/widget/widget.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 void NativeFrameView::UpdateWindowTitle() { 62 void NativeFrameView::UpdateWindowTitle() {
63 // Nothing to do. 63 // Nothing to do.
64 } 64 }
65 65
66 // Returns the client size. On Windows, this is the expected behavior for 66 // Returns the client size. On Windows, this is the expected behavior for
67 // native frames (see |NativeWidgetWin::WidgetSizeIsClientSize()|), while other 67 // native frames (see |NativeWidgetWin::WidgetSizeIsClientSize()|), while other
68 // platforms currently always return client bounds from 68 // platforms currently always return client bounds from
69 // |GetWindowBoundsForClientBounds()|. 69 // |GetWindowBoundsForClientBounds()|.
70 gfx::Size NativeFrameView::GetPreferredSize() { 70 gfx::Size NativeFrameView::GetPreferredSize() const {
71 return frame_->client_view()->GetPreferredSize(); 71 return frame_->client_view()->GetPreferredSize();
72 } 72 }
73 73
74 gfx::Size NativeFrameView::GetMinimumSize() { 74 gfx::Size NativeFrameView::GetMinimumSize() const {
75 return frame_->client_view()->GetMinimumSize(); 75 return frame_->client_view()->GetMinimumSize();
76 } 76 }
77 77
78 gfx::Size NativeFrameView::GetMaximumSize() { 78 gfx::Size NativeFrameView::GetMaximumSize() {
79 return frame_->client_view()->GetMaximumSize(); 79 return frame_->client_view()->GetMaximumSize();
80 } 80 }
81 81
82 } // namespace views 82 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698