| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #else | 81 #else |
| 82 return frame_->non_client_view()->GetWindowBoundsForClientBounds( | 82 return frame_->non_client_view()->GetWindowBoundsForClientBounds( |
| 83 gfx::Rect(client_preferred_size)).size(); | 83 gfx::Rect(client_preferred_size)).size(); |
| 84 #endif | 84 #endif |
| 85 } | 85 } |
| 86 | 86 |
| 87 gfx::Size NativeFrameView::GetMinimumSize() const { | 87 gfx::Size NativeFrameView::GetMinimumSize() const { |
| 88 return frame_->client_view()->GetMinimumSize(); | 88 return frame_->client_view()->GetMinimumSize(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 gfx::Size NativeFrameView::GetMaximumSize() { | 91 gfx::Size NativeFrameView::GetMaximumSize() const { |
| 92 return frame_->client_view()->GetMaximumSize(); | 92 return frame_->client_view()->GetMaximumSize(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 const char* NativeFrameView::GetClassName() const { | 95 const char* NativeFrameView::GetClassName() const { |
| 96 return kViewClassName; | 96 return kViewClassName; |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace views | 99 } // namespace views |
| OLD | NEW |