Index: extensions/common/constants.h |
diff --git a/extensions/common/constants.h b/extensions/common/constants.h |
index 3dde500ab35891661f2d81228d3750a225c3efa5..3e9f17b9ef4811ae5ba5c1ececcde4a13f0c25f6 100644 |
--- a/extensions/common/constants.h |
+++ b/extensions/common/constants.h |
@@ -7,6 +7,7 @@ |
#include "base/basictypes.h" |
#include "base/files/file_path.h" |
+#include "ui/base/layout.h" |
namespace extensions { |
@@ -128,9 +129,19 @@ enum ExtensionIcons { |
extern const int kExtensionIconSizes[]; |
extern const size_t kNumExtensionIconSizes; |
-// List of sizes for extension icons that can be defined in the manifest. |
-extern const int kExtensionActionIconSizes[]; |
-extern const size_t kNumExtensionActionIconSizes; |
+struct IconRepresentationInfo { |
+ // Size in pixels. |
+ const int size; |
+ // Size as a string that will be used to retrieve representation value from |
+ // ExtensionAction SetIcon function arguments. |
+ const char* const size_string; |
+ // Scale factor for which the representation should be used. |
+ const ui::ScaleFactor scale; |
+}; |
+ |
+// The icon representations for extension actions. |
+extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
+const size_t kNumExtensionActionIconSizes = 2u; |
} // namespace extension_misc |