| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/views/layout_manager.h" | 5 #include "chrome/views/layout_manager.h" |
| 6 | 6 |
| 7 #include "chrome/views/view.h" | 7 #include "chrome/views/view.h" |
| 8 | 8 |
| 9 namespace ChromeViews { | 9 namespace ChromeViews { |
| 10 | 10 |
| 11 int LayoutManager::GetPreferredHeightForWidth(View* host, int width) { | 11 int LayoutManager::GetPreferredHeightForWidth(View* host, int width) { |
| 12 CSize pref; | 12 return GetPreferredSize(host).height(); |
| 13 GetPreferredSize(host, &pref); | |
| 14 return pref.cy; | |
| 15 } | 13 } |
| 16 | 14 |
| 17 } // namespace | 15 } // namespace |
| 18 | 16 |
| OLD | NEW |