blob: c8a717afc104f3ebc81dbb5b918f271ea358e34c (
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
|
// 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* kBackground;
extern const wchar_t* kBrowserAction;
extern const wchar_t* kChromeURLOverrides;
extern const wchar_t* kContentScripts;
extern const wchar_t* kConvertedFromUserScript;
extern const wchar_t* kCss;
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* 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* 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* kPrivacyBlacklists;
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;
} // 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;
} // namespace extension_manifest_values
// Error messages returned from Extension::InitFromValue().
namespace extension_manifest_errors {
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* kInvalidManifest;
extern const char* kInvalidMatchCount;
extern const char* kInvalidMatch;
extern const char* kInvalidMatches;
extern const char* kInvalidName;
extern const char* kInvalidPlugins;
extern const char* kInvalidPluginsPath;
extern const char* kInvalidPluginsPublic;
extern const char* kInvalidPrivacyBlacklists;
extern const char* kInvalidPrivacyBlacklistsPath;
extern const char* kInvalidBackground;
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* 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* kOneUISurfaceOnly;
extern const char* kThemesCannotContainExtensions;
extern const char* kManifestParseError;
extern const char* kManifestUnreadable;
extern const char* kMissingFile;
extern const char* kInvalidUpdateURL;
extern const char* kInvalidDefaultLocale;
extern const char* kLocalesNoDefaultLocaleSpecified;
extern const char* kLocalesNoDefaultMessages;
extern const char* kLocalesNoValidLocaleNamesListed;
extern const char* kLocalesTreeMissing;
extern const char* kLocalesMessagesFileMissing;
extern const char* kInvalidOptionsPage;
} // namespace extension_manifest_errors
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
|