blob: 1b1e7985ddd204c79cb2d08ae447a7ae660ca743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
#define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
// Keys used in JSON representation of extensions.
namespace extension_manifest_keys {
extern const wchar_t* kAllFrames;
extern const wchar_t* kBackground;
extern const wchar_t* kBrowserAction;
extern const wchar_t* kMinimumChromeVersion;
extern const wchar_t* kChromeURLOverrides;
extern const wchar_t* kContentScripts;
extern const wchar_t* kConvertedFromUserScript;
extern const wchar_t* kCss;
extern const wchar_t* kCurrentLocale;
extern const wchar_t* kDefaultLocale;
extern const wchar_t* kDescription;
extern const wchar_t* kExcludeGlobs;
extern const wchar_t* kIcons;
extern const wchar_t* kIncludeGlobs;
extern const wchar_t* kLaunch;
extern const wchar_t* kLaunchContainer;
extern const wchar_t* kLaunchFullscreen;
extern const wchar_t* kLaunchLocalPath;
extern const wchar_t* kLaunchWebURL;
extern const wchar_t* kJs;
extern const wchar_t* kMatches;
extern const wchar_t* kName;
extern const wchar_t* kPageActionId;
extern const wchar_t* kPageAction;
extern const wchar_t* kPageActions;
extern const wchar_t* kPageActionIcons;
extern const wchar_t* kPageActionDefaultIcon;
extern const wchar_t* kPageActionDefaultPopup;
extern const wchar_t* kPageActionDefaultTitle;
extern const wchar_t* kPageActionPopup;
extern const wchar_t* kPageActionPopupHeight;
extern const wchar_t* kPageActionPopupPath;
extern const wchar_t* kPermissions;
extern const wchar_t* kPlugins;
extern const wchar_t* kPluginsPath;
extern const wchar_t* kPluginsPublic;
extern const wchar_t* kPublicKey;
extern const wchar_t* kSignature;
extern const wchar_t* kRunAt;
extern const wchar_t* kTheme;
extern const wchar_t* kThemeImages;
extern const wchar_t* kThemeColors;
extern const wchar_t* kThemeTints;
extern const wchar_t* kThemeDisplayProperties;
extern const wchar_t* kToolstripMoleHeight;
extern const wchar_t* kToolstripMolePath;
extern const wchar_t* kToolstripPath;
extern const wchar_t* kToolstrips;
extern const wchar_t* kType;
extern const wchar_t* kVersion;
extern const wchar_t* kUpdateURL;
extern const wchar_t* kOptionsPage;
extern const wchar_t* kWebContent;
extern const wchar_t* kWebContentEnabled;
extern const wchar_t* kWebLaunchUrl;
extern const wchar_t* kWebOrigin;
extern const wchar_t* kWebPaths;
} // namespace extension_manifest_keys
// Some values expected in manifests.
namespace extension_manifest_values {
extern const char* kRunAtDocumentStart;
extern const char* kRunAtDocumentEnd;
extern const char* kRunAtDocumentIdle;
extern const char* kPageActionTypeTab;
extern const char* kPageActionTypePermanent;
extern const char* kLaunchContainerPanel;
extern const char* kLaunchContainerTab;
extern const char* kLaunchContainerWindow;
} // namespace extension_manifest_values
// Error messages returned from Extension::InitFromValue().
namespace extension_manifest_errors {
extern const char* kAppsNotEnabled;
extern const char* kChromeVersionTooLow;
extern const char* kInvalidAllFrames;
extern const char* kInvalidBackground;
extern const char* kInvalidBrowserAction;
extern const char* kInvalidChromeURLOverrides;
extern const char* kInvalidContentScript;
extern const char* kInvalidContentScriptsList;
extern const char* kInvalidCss;
extern const char* kInvalidCssList;
extern const char* kInvalidDescription;
extern const char* kInvalidIcons;
extern const char* kInvalidIconPath;
extern const char* kInvalidGlobList;
extern const char* kInvalidGlob;
extern const char* kInvalidJs;
extern const char* kInvalidJsList;
extern const char* kInvalidKey;
extern const char* kInvalidLaunchContainer;
extern const char* kInvalidLaunchFullscreen;
extern const char* kInvalidLaunchLocalPath;
extern const char* kInvalidLaunchWebURL;
extern const char* kInvalidManifest;
extern const char* kInvalidMatchCount;
extern const char* kInvalidMatch;
extern const char* kInvalidMatches;
extern const char* kInvalidMinimumChromeVersion;
extern const char* kInvalidName;
extern const char* kInvalidPlugins;
extern const char* kInvalidPluginsPath;
extern const char* kInvalidPluginsPublic;
extern const char* kInvalidRunAt;
extern const char* kInvalidSignature;
extern const char* kInvalidToolstrip;
extern const char* kInvalidToolstrips;
extern const char* kInvalidVersion;
extern const char* kInvalidPageAction;
extern const char* kInvalidPageActionName;
extern const char* kInvalidPageActionsList;
extern const char* kInvalidPageActionsListSize;
extern const char* kInvalidPageActionIconPath;
extern const char* kInvalidPageActionId;
extern const char* kInvalidPageActionDefaultTitle;
extern const char* kInvalidPageActionOldAndNewKeys;
extern const char* kInvalidPageActionPopup;
extern const char* kInvalidPageActionPopupHeight;
extern const char* kInvalidPageActionPopupPath;
extern const char* kInvalidPageActionTypeValue;
extern const char* kInvalidPermissions;
extern const char* kInvalidPermission;
extern const char* kInvalidPermissionScheme;
extern const char* kInvalidZipHash;
extern const char* kInvalidTheme;
extern const char* kInvalidThemeImagesMissing;
extern const char* kInvalidThemeImages;
extern const char* kInvalidThemeColors;
extern const char* kInvalidThemeTints;
extern const char* kInvalidWebContentEnabled;
extern const char* kInvalidWebOrigin;
extern const char* kInvalidWebPaths;
extern const char* kInvalidWebPath;
extern const char* kOneUISurfaceOnly;
extern const char* kThemesCannotContainExtensions;
extern const char* kManifestParseError;
extern const char* kManifestUnreadable;
extern const char* kMissingFile;
extern const char* kMultipleOverrides;
extern const char* kInvalidUpdateURL;
extern const char* kInvalidDefaultLocale;
extern const char* kLaunchContainerWithoutURL;
extern const char* kLaunchPathAndURLAreExclusive;
extern const char* kLocalesNoDefaultLocaleSpecified;
extern const char* kLocalesNoDefaultMessages;
extern const char* kLocalesNoValidLocaleNamesListed;
extern const char* kLocalesTreeMissing;
extern const char* kLocalesMessagesFileMissing;
extern const char* kInvalidOptionsPage;
extern const char* kReservedMessageFound;
extern const char* kCannotAccessPage;
extern const char* kCannotScriptGallery;
extern const char* kWebContentMustBeEnabled;
} // namespace extension_manifest_errors
namespace extension_urls {
// The greatest common prefixes of the main extensions gallery's browse and
// download URLs.
extern const char* kGalleryBrowsePrefix;
extern const char* kGalleryDownloadPrefix;
// Same thing for the "minigallery". The minigallery is the temporary static
// themes gallery that we put up when we launched themes.
extern const char* kMiniGalleryBrowsePrefix;
extern const char* kMiniGalleryDownloadPrefix;
} // namespace extension_urls
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
|