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

Side by Side Diff: app/gfx/font_util.h

Issue 279004: Made sync code build and pass unit tests on OS X. (Closed)
Patch Set: Fixed uninitialized var error. Created 11 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
OLDNEW
(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
OLDNEW
« no previous file with comments | « app/app.gyp ('k') | app/gfx/font_util.cc » ('j') | chrome/chrome.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698