Index: base/gfx/gtk_util.h |
diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h |
index 40a7855505c7461903b5e94d9c1eb3b8773a89ae..02b138572d9624fbebd7ce53c3e8739dd434a991 100755 |
--- a/base/gfx/gtk_util.h |
+++ b/base/gfx/gtk_util.h |
@@ -7,8 +7,10 @@ |
#include <vector> |
+typedef struct _GdkColor GdkColor; |
typedef struct _GdkPixbuf GdkPixbuf; |
typedef struct _GdkRegion GdkRegion; |
+typedef struct _GtkWidget GtkWidget; |
class SkBitmap; |
// Define a macro for creating GdkColors from RGB values. This is a macro to |
@@ -28,6 +30,11 @@ void SubtractRectanglesFromRegion(GdkRegion* region, |
// operation, all of the pixels must be copied and their order swapped. |
GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap); |
+// Create a GtkBin with |child| as its child widget. This bin will paint a |
+// border of color |color| with the sizes specified in pixels. |
+GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, |
+ int top, int bottom, int left, int right); |
Evan Martin
2009/03/13 16:33:29
I'm a little skeptical we'll use this too often.
|
+ |
} // namespace gfx |
#endif // BASE_GFX_GTK_UTIL_H_ |