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

Unified Diff: views/controls/button/text_button.cc

Issue 6121004: Remove wstring from gfx. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « gfx/platform_font_win.cc ('k') | views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/text_button.cc
===================================================================
--- views/controls/button/text_button.cc (revision 71043)
+++ views/controls/button/text_button.cc (working copy)
@@ -360,7 +360,7 @@
text_bounds.y(), text_bounds.width(), text_bounds.height(),
draw_string_flags);
#else
- canvas->DrawStringInt(UTF16ToWideHack(text_),
+ canvas->DrawStringInt(text_,
font_,
text_color,
text_bounds.x(),
@@ -371,11 +371,11 @@
#endif
} else if (has_text_halo_) {
canvas->AsCanvasSkia()->DrawStringWithHalo(
- UTF16ToWideHack(text_), font_, text_color, text_halo_color_,
+ text_, font_, text_color, text_halo_color_,
text_bounds.x(), text_bounds.y(), text_bounds.width(),
text_bounds.height(), draw_string_flags);
} else {
- canvas->DrawStringInt(UTF16ToWideHack(text_),
+ canvas->DrawStringInt(text_,
font_,
text_color,
text_bounds.x(),
« no previous file with comments | « gfx/platform_font_win.cc ('k') | views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698