| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef APP_GFX_FONT_UTIL_H_ |
| 6 #define APP_GFX_FONT_UTIL_H_ |
| 7 |
| 8 #include "base/gfx/size.h" |
| 9 |
| 10 namespace gfx { |
| 11 |
| 12 class Font; |
| 13 |
| 14 // Returns the preferred size of the contents view of a window based on |
| 15 // its localized size data and the given font. The width in cols is held in a |
| 16 // localized string resource identified by |col_resource_id|, the height in the |
| 17 // same fashion. |
| 18 int GetLocalizedContentsWidthForFont(int col_resource_id, |
| 19 const gfx::Font& font); |
| 20 int GetLocalizedContentsHeightForFont(int row_resource_id, |
| 21 const gfx::Font& font); |
| 22 gfx::Size GetLocalizedContentsSizeForFont(int col_resource_id, |
| 23 int row_resource_id, |
| 24 const gfx::Font& font); |
| 25 |
| 26 } // namespace gfx |
| 27 |
| 28 #endif // APP_GFX_FONT_UTIL_H_ |
| 29 |
| OLD | NEW |