OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ |
6 #define UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ |
7 | 7 |
8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 | 10 |
| 11 #define BORDER_IMAGES(x) x ## _TOP_LEFT, x ## _TOP, x ## _TOP_RIGHT, \ |
| 12 x ## _LEFT, x ## _CENTER, x ## _RIGHT, \ |
| 13 x ## _BOTTOM_LEFT, x ## _BOTTOM, x ## _BOTTOM_RIGHT, |
| 14 |
11 namespace gfx { | 15 namespace gfx { |
12 class Canvas; | 16 class Canvas; |
13 class Rect; | 17 class Rect; |
14 } | 18 } |
15 | 19 |
16 namespace views { | 20 namespace views { |
17 | 21 |
18 // BorderImages stores and paints the nine images comprising a button border. | 22 // BorderImages stores and paints the nine images comprising a button border. |
19 // TODO(msw): Merge common "nine-box" code with BubbleBorder, ImagePainter, etc. | 23 // TODO(msw): Merge common "nine-box" code with BubbleBorder, ImagePainter, etc. |
20 // TODO(msw): Stitch border image assets together and use ImagePainter. | 24 // TODO(msw): Stitch border image assets together and use ImagePainter. |
(...skipping 17 matching lines...) Expand all Loading... |
38 gfx::ImageSkia center; | 42 gfx::ImageSkia center; |
39 gfx::ImageSkia right; | 43 gfx::ImageSkia right; |
40 gfx::ImageSkia bottom_left; | 44 gfx::ImageSkia bottom_left; |
41 gfx::ImageSkia bottom; | 45 gfx::ImageSkia bottom; |
42 gfx::ImageSkia bottom_right; | 46 gfx::ImageSkia bottom_right; |
43 }; | 47 }; |
44 | 48 |
45 } // namespace views | 49 } // namespace views |
46 | 50 |
47 #endif // UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ | 51 #endif // UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ |
OLD | NEW |