OLD | NEW |
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 Loading... |
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 |
OLD | NEW |