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

Unified Diff: views/controls/textfield/gtk_views_entry.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 | « views/controls/menu/menu_item_view_gtk.cc ('k') | views/controls/textfield/gtk_views_textview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/gtk_views_entry.cc
===================================================================
--- views/controls/textfield/gtk_views_entry.cc (revision 71043)
+++ views/controls/textfield/gtk_views_entry.cc (working copy)
@@ -45,7 +45,7 @@
gfx::Font font = host->textfield()->font();
const string16 text = host->textfield()->text_to_display_when_empty();
canvas.DrawStringInt(
- UTF16ToWide(text), font,
+ text, font,
gfx::GdkColorToSkColor(widget->style->text[GTK_STATE_INSENSITIVE]),
insets.left(), insets.top(),
widget->allocation.width - insets.width(), font.GetHeight());
« no previous file with comments | « views/controls/menu/menu_item_view_gtk.cc ('k') | views/controls/textfield/gtk_views_textview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698