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

Unified Diff: ui/gfx/font.h

Issue 10406014: Add a ScopedPangoFontDescription helper class and use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/browser/ui/gtk/gtk_util.cc ('k') | ui/gfx/pango_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font.h
===================================================================
--- ui/gfx/font.h (revision 137485)
+++ ui/gfx/font.h (working copy)
@@ -39,7 +39,7 @@
// Creates a font from the specified native font.
explicit Font(NativeFont native_font);
- // Construct a Font object with the specified PlatformFont object. The Font
+ // Constructs a Font object with the specified PlatformFont object. The Font
// object takes ownership of the PlatformFont object.
explicit Font(PlatformFont* platform_font);
@@ -97,7 +97,8 @@
// destroyed by the caller.
// Mac: The object is owned by the system and should not be released.
// Gtk: This handle is created on demand, and must be freed by calling
- // pango_font_description_free() when the caller is done using it.
+ // pango_font_description_free() when the caller is done using it or
+ // by using ScopedPangoFontDescription.
NativeFont GetNativeFont() const;
// Raw access to the underlying platform font implementation. Can be
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | ui/gfx/pango_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698