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

Unified Diff: chrome/common/extensions/extension_constants.cc

Issue 10843014: Generalize ExtensionIconSet to store icon paths for custom size sets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_icon_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_constants.cc
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index 0af3674c880fa5a71d8ad2632cb9397bcb462093..5875ce343c54685fce4d845786096c9cbca0bdc9 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -145,4 +145,17 @@ const char kAppNotificationsIncognitoError[] =
"This API is not accessible by 'split' mode "
"extensions in incognito windows.";
+const int kExtensionIconSizes[] = {
+ EXTENSION_ICON_GIGANTOR, // 512
+ EXTENSION_ICON_EXTRA_LARGE, // 256
+ EXTENSION_ICON_LARGE, // 128
+ EXTENSION_ICON_MEDIUM, // 48
+ EXTENSION_ICON_SMALL, // 32
+ EXTENSION_ICON_SMALLISH, // 24
+ EXTENSION_ICON_BITTY // 16
+};
+
+const size_t kNumExtensionIconSizes =
+ arraysize(kExtensionIconSizes);
+
} // namespace extension_misc
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_icon_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698