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

Side by Side Diff: chrome/views/layout_manager.cc

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698