Chromium Code Reviews| 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, | |
| 11 namespace gfx { | 14 namespace gfx { |
|
msw
2012/10/30 22:59:47
nit: add a blank line above.
tfarina
2012/10/30 23:44:19
Done.
| |
| 12 class Canvas; | 15 class Canvas; |
| 13 class Rect; | 16 class Rect; |
| 14 } | 17 } |
| 15 | 18 |
| 16 namespace views { | 19 namespace views { |
| 17 | 20 |
| 18 // BorderImages stores and paints the nine images comprising a button border. | 21 // BorderImages stores and paints the nine images comprising a button border. |
| 19 // TODO(msw): Merge common "nine-box" code with BubbleBorder, ImagePainter, etc. | 22 // TODO(msw): Merge common "nine-box" code with BubbleBorder, ImagePainter, etc. |
| 20 // TODO(msw): Stitch border image assets together and use ImagePainter. | 23 // TODO(msw): Stitch border image assets together and use ImagePainter. |
| 21 struct VIEWS_EXPORT BorderImages { | 24 struct VIEWS_EXPORT BorderImages { |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 38 gfx::ImageSkia center; | 41 gfx::ImageSkia center; |
| 39 gfx::ImageSkia right; | 42 gfx::ImageSkia right; |
| 40 gfx::ImageSkia bottom_left; | 43 gfx::ImageSkia bottom_left; |
| 41 gfx::ImageSkia bottom; | 44 gfx::ImageSkia bottom; |
| 42 gfx::ImageSkia bottom_right; | 45 gfx::ImageSkia bottom_right; |
| 43 }; | 46 }; |
| 44 | 47 |
| 45 } // namespace views | 48 } // namespace views |
| 46 | 49 |
| 47 #endif // UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ | 50 #endif // UI_VIEWS_CONTROLS_BUTTON_BORDER_IMAGES_H_ |
| OLD | NEW |