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

Unified Diff: extensions/common/constants.h

Issue 222663002: 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 | « chrome/renderer/extensions/extension_helper.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.h
diff --git a/extensions/common/constants.h b/extensions/common/constants.h
index f55e5177b08e4bf0e3b526f40b6661ae7bad20e2..f13de46d2d5ad7f8a898824ff3a068f8da0792bf 100644
--- a/extensions/common/constants.h
+++ b/extensions/common/constants.h
@@ -5,6 +5,7 @@
#ifndef EXTENSIONS_COMMON_CONSTANTS_H_
#define EXTENSIONS_COMMON_CONSTANTS_H_
+#include "base/basictypes.h"
#include "base/files/file_path.h"
namespace extensions {
@@ -88,4 +89,43 @@ extern const char kRulesStoreName[];
} // namespace extensions
+namespace extension_misc {
+
+// Matches chrome.windows.WINDOW_ID_NONE.
+const int kUnknownWindowId = -1;
+
+// Matches chrome.windows.WINDOW_ID_CURRENT.
+const int kCurrentWindowId = -2;
+
+// Note: this structure is an ASN.1 which encodes the algorithm used
+// with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447).
+// It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL }
+const uint8 kSignatureAlgorithm[15] = {0x30, 0x0d, 0x06, 0x09, 0x2a,
+ 0x86, 0x48, 0x86, 0xf7, 0x0d,
+ 0x01, 0x01, 0x05, 0x05, 0x00};
+
+// NOTE: If you change this list, you should also change kExtensionIconSizes
+// in cc file.
+enum ExtensionIcons {
+ 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_ACTION = 19,
+ EXTENSION_ICON_BITTY = 16,
+ EXTENSION_ICON_INVALID = 0,
+};
+
+// List of sizes for extension icons that can be defined in the manifest.
+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;
+
+} // namespace extension_misc
+
#endif // EXTENSIONS_COMMON_CONSTANTS_H_
« no previous file with comments | « chrome/renderer/extensions/extension_helper.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698