Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: chrome/browser/ui/views/infobars/infobar_button_border.cc

Issue 11341049: views: Rename IDR_INFOBARBUTTON_<POSITION>_<STATE> to IDR_INFOBARBUTTON_<STATE>_<POSITION>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/infobars/infobar_button_border.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_button_border.cc b/chrome/browser/ui/views/infobars/infobar_button_border.cc
index 075f9f535932f08204a2d669facb82363d1cda48..317e53aa06d40b8863984758ac683f1b0d0c49b8 100644
--- a/chrome/browser/ui/views/infobars/infobar_button_border.cc
+++ b/chrome/browser/ui/views/infobars/infobar_button_border.cc
@@ -9,15 +9,21 @@
#include "ui/views/controls/button/border_images.h"
#define BORDER_IMAGES(x, y) \
msw 2012/10/30 22:47:06 Remove this and expose/use BORDER_IMAGES(IDR_INFOB
tfarina 2012/10/30 22:53:56 Done.
- x ## _TOP_LEFT_ ## y, x ## _TOP_ ## y, x ## _TOP_RIGHT_ ## y, \
- x ## _LEFT_ ## y, x ## _CENTER_ ## y, x ## _RIGHT_ ## y, \
- x ## _BOTTOM_LEFT_ ## y, x ## _BOTTOM_ ## y, x ## _BOTTOM_RIGHT_ ## y,
+ x ## _ ## y ## _TOP_LEFT, \
+ x ## _ ## y ## _TOP, \
+ x ## _ ## y ## _TOP_RIGHT, \
+ x ## _ ## y ## _LEFT, \
+ x ## _ ## y ## _CENTER, \
+ x ## _ ## y ## _RIGHT, \
+ x ## _ ## y ## _BOTTOM_LEFT, \
+ x ## _ ## y ## _BOTTOM, \
+ x ## _ ## y ## _BOTTOM_RIGHT,
namespace {
-const int kNormalImageSet[] = { BORDER_IMAGES(IDR_INFOBARBUTTON, N) };
-const int kHotImageSet[] = { BORDER_IMAGES(IDR_INFOBARBUTTON, H) };
-const int kPushedImageSet[] = { BORDER_IMAGES(IDR_INFOBARBUTTON, P) };
+const int kNormalImageSet[] = { BORDER_IMAGES(IDR_INFOBARBUTTON, NORMAL) };
+const int kHotImageSet[] = { BORDER_IMAGES(IDR_INFOBARBUTTON, HOVER) };
+const int kPushedImageSet[] = { BORDER_IMAGES(IDR_INFOBARBUTTON, PRESSED) };
} // namespace
« chrome/app/theme/theme_resources.grd ('K') | « chrome/app/theme/theme_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698