Index: ui/base/nine_image_painter_factory.h |
diff --git a/ui/base/nine_image_painter_factory.h b/ui/base/nine_image_painter_factory.h |
index 8a622839f4f3fd95b3c217fe24485e2bc6753136..d09f95c8428bd4192715e06c954f72c8ed04c55c 100644 |
--- a/ui/base/nine_image_painter_factory.h |
+++ b/ui/base/nine_image_painter_factory.h |
@@ -23,6 +23,17 @@ |
x ## _LEFT, EMPTY_IMAGE, x ## _RIGHT, \ |
x ## _BOTTOM_LEFT, x ## _BOTTOM, x ## _BOTTOM_RIGHT, } |
+// A macro to define arrays of IDR constants used with CreateImageGridPainter |
+// where it can only be streched horizontally. |
+#define IMAGE_GRID_HORIZONTAL(x) { x ## _LEFT, x ## _CENTER, x ## _RIGHT, \ |
+ EMPTY_IMAGE, EMPTY_IMAGE, EMPTY_IMAGE, \ |
+ EMPTY_IMAGE, EMPTY_IMAGE, EMPTY_IMAGE} |
+ |
+// A macro to define arrays of IDR constants used with CreateImageGridPainter |
+// where it can only be streched vertically. |
+#define IMAGE_GRID_VERTICAL(x) { x ## _TOP, EMPTY_IMAGE, EMPTY_IMAGE, \ |
+ x ## _CENTER, EMPTY_IMAGE, EMPTY_IMAGE, \ |
+ x ## _BOTTOM, EMPTY_IMAGE, EMPTY_IMAGE} |
namespace gfx { |
class NineImagePainter; |