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

Unified Diff: chrome/views/controls/table/table_view.cc

Issue 62064: UI font localization part 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/views/controls/menu/menu.cc ('k') | chrome/views/controls/tree/tree_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/controls/table/table_view.cc
===================================================================
--- chrome/views/controls/table/table_view.cc (revision 13518)
+++ chrome/views/controls/table/table_view.cc (working copy)
@@ -12,6 +12,7 @@
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/favicon_size.h"
#include "chrome/common/gfx/icon_util.h"
+#include "chrome/common/l10n_util_win.h"
#include "chrome/common/resource_bundle.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/hwnd_view.h"
@@ -823,6 +824,7 @@
if (table_type_ == CHECK_BOX_AND_TEXT)
list_view_style |= LVS_EX_CHECKBOXES;
ListView_SetExtendedListViewStyleEx(list_view_, 0, list_view_style);
+ l10n_util::AdjustUIFontForWindow(list_view_);
// Add the columns.
for (std::vector<int>::iterator i = visible_columns_.begin();
@@ -1203,6 +1205,7 @@
// with a bool like we do with colors?
if (custom_cell_font_)
DeleteObject(custom_cell_font_);
+ l10n_util::AdjustUIFont(&logfont);
custom_cell_font_ = CreateFontIndirect(&logfont);
SelectObject(draw_info->nmcd.hdc, custom_cell_font_);
draw_info->clrText = foreground.color_is_set
« no previous file with comments | « chrome/views/controls/menu/menu.cc ('k') | chrome/views/controls/tree/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698