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

Unified Diff: extensions/common/constants.cc

Issue 224943004: Revert "Revert 261654 "Move some extension constants out of //chrome."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « extensions/common/constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.cc
diff --git a/extensions/common/constants.cc b/extensions/common/constants.cc
index dced3101be935ac5588e2fa22afc136dd453c6b9..c55c4e1e772f120f31f465f7746614d8a696236f 100644
--- a/extensions/common/constants.cc
+++ b/extensions/common/constants.cc
@@ -50,3 +50,28 @@ const char kStateStoreName[] = "Extension State";
const char kRulesStoreName[] = "Extension Rules";
} // namespace extensions
+
+namespace extension_misc {
+
+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
+ // Additional 2x resources to load.
+ 2 * EXTENSION_ICON_MEDIUM, // 96
+ 2 * EXTENSION_ICON_SMALL // 64
+};
+
+const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes);
+
+const int kExtensionActionIconSizes[] = {EXTENSION_ICON_ACTION, // 19,
+ 2 * EXTENSION_ICON_ACTION // 38
+};
+
+const size_t kNumExtensionActionIconSizes =
+ arraysize(kExtensionActionIconSizes);
+
+} // namespace extension_misc
« no previous file with comments | « extensions/common/constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698