OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/extensions/extension_manifest_constants.h" | 5 #include "chrome/common/extensions/extension_manifest_constants.h" |
6 | 6 |
7 namespace extension_manifest_keys { | 7 namespace extension_manifest_keys { |
8 | 8 |
9 const char kAllFrames[] = "all_frames"; | 9 const char kAllFrames[] = "all_frames"; |
10 const char kAltKey[] = "altKey"; | 10 const char kAltKey[] = "altKey"; |
(...skipping 15 matching lines...) Expand all Loading... |
26 const char kCtrlKey[] = "ctrlKey"; | 26 const char kCtrlKey[] = "ctrlKey"; |
27 const char kCurrentLocale[] = "current_locale"; | 27 const char kCurrentLocale[] = "current_locale"; |
28 const char kDefaultLocale[] = "default_locale"; | 28 const char kDefaultLocale[] = "default_locale"; |
29 const char kDescription[] = "description"; | 29 const char kDescription[] = "description"; |
30 const char kDevToolsPage[] = "devtools_page"; | 30 const char kDevToolsPage[] = "devtools_page"; |
31 const char kDisplayInLauncher[] = "display_in_launcher"; | 31 const char kDisplayInLauncher[] = "display_in_launcher"; |
32 const char kDisplayInNewTabPage[] = "display_in_new_tab_page"; | 32 const char kDisplayInNewTabPage[] = "display_in_new_tab_page"; |
33 const char kEventName[] = "event_name"; | 33 const char kEventName[] = "event_name"; |
34 const char kExcludeGlobs[] = "exclude_globs"; | 34 const char kExcludeGlobs[] = "exclude_globs"; |
35 const char kExcludeMatches[] = "exclude_matches"; | 35 const char kExcludeMatches[] = "exclude_matches"; |
| 36 const char kExport[] = "export"; |
36 const char kFileAccessList[] = "file_access"; | 37 const char kFileAccessList[] = "file_access"; |
37 const char kFileFilters[] = "file_filters"; | 38 const char kFileFilters[] = "file_filters"; |
38 const char kFileBrowserHandlers[] = "file_browser_handlers"; | 39 const char kFileBrowserHandlers[] = "file_browser_handlers"; |
39 const char kMediaGalleriesHandlers[] = "media_galleries_handlers"; | 40 const char kMediaGalleriesHandlers[] = "media_galleries_handlers"; |
40 const char kFileHandlers[] = "file_handlers"; | 41 const char kFileHandlers[] = "file_handlers"; |
41 const char kFileHandlerTitle[] = "title"; | 42 const char kFileHandlerTitle[] = "title"; |
42 const char kFileHandlerTypes[] = "types"; | 43 const char kFileHandlerTypes[] = "types"; |
43 const char kHomepageURL[] = "homepage_url"; | 44 const char kHomepageURL[] = "homepage_url"; |
44 const char kIcons[] = "icons"; | 45 const char kIcons[] = "icons"; |
45 const char kId[] = "id"; | 46 const char kId[] = "id"; |
| 47 const char kImport[] = "import"; |
46 const char kIncognito[] = "incognito"; | 48 const char kIncognito[] = "incognito"; |
47 const char kIncludeGlobs[] = "include_globs"; | 49 const char kIncludeGlobs[] = "include_globs"; |
48 const char kInputComponents[] = "input_components"; | 50 const char kInputComponents[] = "input_components"; |
49 const char kIntentDisposition[] = "disposition"; | 51 const char kIntentDisposition[] = "disposition"; |
50 const char kIntentHref[] = "href"; | 52 const char kIntentHref[] = "href"; |
51 const char kIntentPath[] = "path"; | 53 const char kIntentPath[] = "path"; |
52 const char kIntents[] = "intents"; | 54 const char kIntents[] = "intents"; |
53 const char kIntentTitle[] = "title"; | 55 const char kIntentTitle[] = "title"; |
54 const char kIntentType[] = "type"; | 56 const char kIntentType[] = "type"; |
55 const char kIsolation[] = "app.isolation"; | 57 const char kIsolation[] = "app.isolation"; |
56 const char kJs[] = "js"; | 58 const char kJs[] = "js"; |
57 const char kKey[] = "key"; | 59 const char kKey[] = "key"; |
58 const char kKeycode[] = "keyCode"; | 60 const char kKeycode[] = "keyCode"; |
59 const char kKioskEnabled[] = "kiosk_enabled"; | 61 const char kKioskEnabled[] = "kiosk_enabled"; |
60 const char kLanguage[] = "language"; | 62 const char kLanguage[] = "language"; |
61 const char kLaunch[] = "app.launch"; | 63 const char kLaunch[] = "app.launch"; |
62 const char kLaunchContainer[] = "app.launch.container"; | 64 const char kLaunchContainer[] = "app.launch.container"; |
63 const char kLaunchHeight[] = "app.launch.height"; | 65 const char kLaunchHeight[] = "app.launch.height"; |
64 const char kLaunchLocalPath[] = "app.launch.local_path"; | 66 const char kLaunchLocalPath[] = "app.launch.local_path"; |
65 const char kLaunchWebURL[] = "app.launch.web_url"; | 67 const char kLaunchWebURL[] = "app.launch.web_url"; |
66 const char kLaunchMaxHeight[] = "app.launch.max_height"; | 68 const char kLaunchMaxHeight[] = "app.launch.max_height"; |
67 const char kLaunchMaxWidth[] = "app.launch.max_width"; | 69 const char kLaunchMaxWidth[] = "app.launch.max_width"; |
68 const char kLaunchMinHeight[] = "app.launch.min_height"; | 70 const char kLaunchMinHeight[] = "app.launch.min_height"; |
69 const char kLaunchMinWidth[] = "app.launch.min_width"; | 71 const char kLaunchMinWidth[] = "app.launch.min_width"; |
70 const char kLaunchWidth[] = "app.launch.width"; | 72 const char kLaunchWidth[] = "app.launch.width"; |
71 const char kLayouts[] = "layouts"; | 73 const char kLayouts[] = "layouts"; |
72 const char kManifestVersion[] = "manifest_version"; | 74 const char kManifestVersion[] = "manifest_version"; |
73 const char kMatches[] = "matches"; | 75 const char kMatches[] = "matches"; |
74 const char kMinimumChromeVersion[] = "minimum_chrome_version"; | 76 const char kMinimumChromeVersion[] = "minimum_chrome_version"; |
| 77 const char kMinimumVersion[] = "minimum_version"; |
75 const char kMIMETypes[] = "mime_types"; | 78 const char kMIMETypes[] = "mime_types"; |
76 const char kMimeTypesHandler[] = "mime_types_handler"; | 79 const char kMimeTypesHandler[] = "mime_types_handler"; |
77 const char kName[] = "name"; | 80 const char kName[] = "name"; |
78 const char kNaClModules[] = "nacl_modules"; | 81 const char kNaClModules[] = "nacl_modules"; |
79 const char kNaClModulesMIMEType[] = "mime_type"; | 82 const char kNaClModulesMIMEType[] = "mime_type"; |
80 const char kNaClModulesPath[] = "path"; | 83 const char kNaClModulesPath[] = "path"; |
81 const char kOAuth2[] = "oauth2"; | 84 const char kOAuth2[] = "oauth2"; |
82 const char kOAuth2ClientId[] = "oauth2.client_id"; | 85 const char kOAuth2ClientId[] = "oauth2.client_id"; |
83 const char kOAuth2Scopes[] = "oauth2.scopes"; | 86 const char kOAuth2Scopes[] = "oauth2.scopes"; |
84 const char kOfflineEnabled[] = "offline_enabled"; | 87 const char kOfflineEnabled[] = "offline_enabled"; |
(...skipping 13 matching lines...) Expand all Loading... |
98 const char kPageLauncher[] = "page_launcher"; | 101 const char kPageLauncher[] = "page_launcher"; |
99 const char kPermissions[] = "permissions"; | 102 const char kPermissions[] = "permissions"; |
100 const char kPlatformAppBackground[] = "app.background"; | 103 const char kPlatformAppBackground[] = "app.background"; |
101 const char kPlatformAppBackgroundPage[] = "app.background.page"; | 104 const char kPlatformAppBackgroundPage[] = "app.background.page"; |
102 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; | 105 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; |
103 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy"; | 106 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy"; |
104 const char kPlugins[] = "plugins"; | 107 const char kPlugins[] = "plugins"; |
105 const char kPluginsPath[] = "path"; | 108 const char kPluginsPath[] = "path"; |
106 const char kPluginsPublic[] = "public"; | 109 const char kPluginsPublic[] = "public"; |
107 const char kPublicKey[] = "key"; | 110 const char kPublicKey[] = "key"; |
| 111 const char kResources[] = "resources"; |
108 const char kRequirements[] = "requirements"; | 112 const char kRequirements[] = "requirements"; |
109 const char kRunAt[] = "run_at"; | 113 const char kRunAt[] = "run_at"; |
110 const char kSandboxedPages[] = "sandbox.pages"; | 114 const char kSandboxedPages[] = "sandbox.pages"; |
111 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; | 115 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; |
112 const char kScriptBadge[] = "script_badge"; | 116 const char kScriptBadge[] = "script_badge"; |
113 const char kShiftKey[] = "shiftKey"; | 117 const char kShiftKey[] = "shiftKey"; |
114 const char kShortcutKey[] = "shortcutKey"; | 118 const char kShortcutKey[] = "shortcutKey"; |
115 const char kSignature[] = "signature"; | 119 const char kSignature[] = "signature"; |
116 const char kSuggestedKey[] = "suggested_key"; | 120 const char kSuggestedKey[] = "suggested_key"; |
117 const char kSystemIndicator[] = "system_indicator"; | 121 const char kSystemIndicator[] = "system_indicator"; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 const char kInvalidDevToolsPage[] = | 253 const char kInvalidDevToolsPage[] = |
250 "Invalid value for 'devtools_page'."; | 254 "Invalid value for 'devtools_page'."; |
251 const char kInvalidDisplayInLauncher[] = | 255 const char kInvalidDisplayInLauncher[] = |
252 "Invalid value for 'display_in_launcher'."; | 256 "Invalid value for 'display_in_launcher'."; |
253 const char kInvalidDisplayInNewTabPage[] = | 257 const char kInvalidDisplayInNewTabPage[] = |
254 "Invalid value for 'display_in_new_tab_page'."; | 258 "Invalid value for 'display_in_new_tab_page'."; |
255 const char kInvalidExcludeMatch[] = | 259 const char kInvalidExcludeMatch[] = |
256 "Invalid value for 'content_scripts[*].exclude_matches[*]': *"; | 260 "Invalid value for 'content_scripts[*].exclude_matches[*]': *"; |
257 const char kInvalidExcludeMatches[] = | 261 const char kInvalidExcludeMatches[] = |
258 "Invalid value for 'content_scripts[*].exclude_matches'."; | 262 "Invalid value for 'content_scripts[*].exclude_matches'."; |
| 263 const char kInvalidExport[] = |
| 264 "Invalid value for 'export'."; |
| 265 const char kInvalidExportPermissions[] = |
| 266 "Permissions are not allowed for extensions that export resources."; |
| 267 const char kInvalidExportResources[] = |
| 268 "Invalid value for 'export.resources'."; |
| 269 const char kInvalidExportResourcesString[] = |
| 270 "Invalid value for 'export.resources[*]'."; |
259 const char kInvalidFileAccessList[] = | 271 const char kInvalidFileAccessList[] = |
260 "Invalid value for 'file_access'."; | 272 "Invalid value for 'file_access'."; |
261 const char kInvalidFileAccessValue[] = | 273 const char kInvalidFileAccessValue[] = |
262 "Invalid value for 'file_access[*]'."; | 274 "Invalid value for 'file_access[*]'."; |
263 const char kInvalidFileBrowserHandler[] = | 275 const char kInvalidFileBrowserHandler[] = |
264 "Invalid value for 'file_browser_handlers'."; | 276 "Invalid value for 'file_browser_handlers'."; |
265 const char kInvalidMediaGalleriesHandler[] = | 277 const char kInvalidMediaGalleriesHandler[] = |
266 "Invalid value for 'media_galleries_handlers'."; | 278 "Invalid value for 'media_galleries_handlers'."; |
267 const char kInvalidFileFiltersList[] = | 279 const char kInvalidFileFiltersList[] = |
268 "Invalid value for 'file_filters'."; | 280 "Invalid value for 'file_filters'."; |
(...skipping 10 matching lines...) Expand all Loading... |
279 const char kInvalidGlob[] = | 291 const char kInvalidGlob[] = |
280 "Invalid value for 'content_scripts[*].*[*]'."; | 292 "Invalid value for 'content_scripts[*].*[*]'."; |
281 const char kInvalidGlobList[] = | 293 const char kInvalidGlobList[] = |
282 "Invalid value for 'content_scripts[*].*'."; | 294 "Invalid value for 'content_scripts[*].*'."; |
283 const char kInvalidHomepageURL[] = | 295 const char kInvalidHomepageURL[] = |
284 "Invalid value for homepage url: '[*]'."; | 296 "Invalid value for homepage url: '[*]'."; |
285 const char kInvalidIconPath[] = | 297 const char kInvalidIconPath[] = |
286 "Invalid value for 'icons[\"*\"]'."; | 298 "Invalid value for 'icons[\"*\"]'."; |
287 const char kInvalidIcons[] = | 299 const char kInvalidIcons[] = |
288 "Invalid value for 'icons'."; | 300 "Invalid value for 'icons'."; |
| 301 const char kInvalidImport[] = |
| 302 "Invalid value for 'import'."; |
| 303 const char kInvalidImportAndExport[] = |
| 304 "Simultaneous 'import' and 'export' are not allowed."; |
| 305 const char kInvalidImportId[] = |
| 306 "Invalid value for 'import[*].id'."; |
| 307 const char kInvalidImportVersion[] = |
| 308 "Invalid value for 'import[*].minimum_version'."; |
289 const char kInvalidIncognitoBehavior[] = | 309 const char kInvalidIncognitoBehavior[] = |
290 "Invalid value for 'incognito'."; | 310 "Invalid value for 'incognito'."; |
291 const char kInvalidIncognitoModeForPlatformApp[] = | 311 const char kInvalidIncognitoModeForPlatformApp[] = |
292 "Invalid value for 'incognito'. Packaged apps must use split incognito " | 312 "Invalid value for 'incognito'. Packaged apps must use split incognito " |
293 "mode."; | 313 "mode."; |
294 const char kInvalidInputComponents[] = | 314 const char kInvalidInputComponents[] = |
295 "Invalid value for 'input_components'"; | 315 "Invalid value for 'input_components'"; |
296 const char kInvalidInputComponentDescription[] = | 316 const char kInvalidInputComponentDescription[] = |
297 "Invalid value for 'input_components[*].description"; | 317 "Invalid value for 'input_components[*].description"; |
298 const char kInvalidInputComponentLayoutName[] = | 318 const char kInvalidInputComponentLayoutName[] = |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 const char kScriptBadgeTitleIgnored[] = | 582 const char kScriptBadgeTitleIgnored[] = |
563 "default_title specified in script_badge manifest section will not be " | 583 "default_title specified in script_badge manifest section will not be " |
564 "used."; | 584 "used."; |
565 const char kWebRequestConflictsWithLazyBackground[] = | 585 const char kWebRequestConflictsWithLazyBackground[] = |
566 "The 'webRequest' API cannot be used with event pages."; | 586 "The 'webRequest' API cannot be used with event pages."; |
567 #if defined(OS_CHROMEOS) | 587 #if defined(OS_CHROMEOS) |
568 const char kIllegalPlugins[] = | 588 const char kIllegalPlugins[] = |
569 "Extensions cannot install plugins on Chrome OS"; | 589 "Extensions cannot install plugins on Chrome OS"; |
570 #endif | 590 #endif |
571 } // namespace extension_manifest_errors | 591 } // namespace extension_manifest_errors |
OLD | NEW |