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

Unified Diff: ui/gfx/font.h

Issue 8392017: Change string16 to std::string in the gfx::Font() interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add 'UTF-8' everywhere in the comments Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/print_settings_initializer.cc ('k') | ui/gfx/font.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font.h
diff --git a/ui/gfx/font.h b/ui/gfx/font.h
index cdb9542e85dcfc26635442dbef3d6edb92ae83be..8ded147efe25ffb5e92a9634b9ea344f289a635f 100644
--- a/ui/gfx/font.h
+++ b/ui/gfx/font.h
@@ -43,8 +43,8 @@ class UI_EXPORT Font {
// object takes ownership of the PlatformFont object.
explicit Font(PlatformFont* platform_font);
- // Creates a font with the specified name and size in pixels.
- Font(const string16& font_name, int font_size);
+ // Creates a font with the specified name in UTF-8 and size in pixels.
+ Font(const std::string& font_name, int font_size);
~Font();
@@ -85,8 +85,8 @@ class UI_EXPORT Font {
// Returns the style of the font.
int GetStyle() const;
- // Returns the font name.
- string16 GetFontName() const;
+ // Returns the font name in UTF-8.
+ std::string GetFontName() const;
// Returns the font size in pixels.
int GetFontSize() const;
« no previous file with comments | « printing/print_settings_initializer.cc ('k') | ui/gfx/font.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698