diff options
Diffstat (limited to 'views/window/window.h')
-rw-r--r-- | views/window/window.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/window/window.h b/views/window/window.h index becb8d0..f2f9e34 100644 --- a/views/window/window.h +++ b/views/window/window.h @@ -43,6 +43,16 @@ class Window { static gfx::Size GetLocalizedContentsSize(int col_resource_id, int row_resource_id); + // These versions of GetLocalizedContents allow a font to be specified + // other than the default UI font. + static int GetLocalizedContentsWidthForFont(int col_resource_id, + const gfx::Font& font); + static int GetLocalizedContentsHeightForFont(int row_resource_id, + const gfx::Font& font); + static gfx::Size GetLocalizedContentsSizeForFont(int col_resource_id, + int row_resource_id, + const gfx::Font& font); + // Closes all windows that aren't identified as "app windows" via // IsAppWindow. Called during application shutdown when the last "app window" // is closed. |