Index: ui/gfx/gtk_util.h |
diff --git a/ui/gfx/gtk_util.h b/ui/gfx/gtk_util.h |
index 5b802af1e619aa116ac7c5a2cfbf6f5a22831b88..33a69287c17bc37836c115fe4a2782a8522544dc 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_API GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap); |
UI_API 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(); |