summaryrefslogtreecommitdiffstats
path: root/chrome/views/layout_manager.cc
blob: b22faeffea586970c5e1d543ed4be6e07bd69a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/views/layout_manager.h"

#include "chrome/views/view.h"

namespace ChromeViews {

int LayoutManager::GetPreferredHeightForWidth(View* host, int width) {
  CSize pref;
  GetPreferredSize(host, &pref);
  return pref.cy;
}

}  // namespace