Index: ui/gfx/gtk_util.h |
diff --git a/ui/gfx/gtk_util.h b/ui/gfx/gtk_util.h |
index 1f72c016ffd4ff8cbf42c4ebd3a4d2a4fcddc551..743816503b6a07d118f7d76897a12122994d538d 100644 |
--- a/ui/gfx/gtk_util.h |
+++ b/ui/gfx/gtk_util.h |
@@ -19,6 +19,8 @@ typedef struct _GdkPixbuf GdkPixbuf; |
typedef struct _GdkRegion GdkRegion; |
typedef struct _GdkCursor GdkCursor; |
+typedef struct _PangoContext PangoContext; |
+ |
class CommandLine; |
class SkBitmap; |
@@ -40,6 +42,9 @@ UI_EXPORT GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap); |
UI_EXPORT void SubtractRectanglesFromRegion(GdkRegion* region, |
const std::vector<Rect>& cutouts); |
+// Creates and returns a PangoContext. The caller owns the context. |
+PangoContext* GetPangoContext(); |
+ |
// Returns the resolution (DPI) used by pango. A negative values means the |
// resolution hasn't been set. |
double GetPangoResolution(); |