| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/manifest_constants.h" | 5 #include "extensions/common/manifest_constants.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 namespace manifest_keys { | 9 namespace manifest_keys { |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 const char kWebview[] = "webview"; | 178 const char kWebview[] = "webview"; |
| 179 const char kWebviewAccessibleResources[] = "accessible_resources"; | 179 const char kWebviewAccessibleResources[] = "accessible_resources"; |
| 180 const char kWebviewName[] = "name"; | 180 const char kWebviewName[] = "name"; |
| 181 const char kWebviewPartitions[] = "partitions"; | 181 const char kWebviewPartitions[] = "partitions"; |
| 182 const char kWhitelist[] = "whitelist"; | 182 const char kWhitelist[] = "whitelist"; |
| 183 | 183 |
| 184 } // namespace manifest_keys | 184 } // namespace manifest_keys |
| 185 | 185 |
| 186 namespace manifest_values { | 186 namespace manifest_values { |
| 187 | 187 |
| 188 const char kApiKey[] = "api_key"; |
| 188 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; | 189 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; |
| 189 const char kIncognitoSplit[] = "split"; | 190 const char kIncognitoSplit[] = "split"; |
| 190 const char kIncognitoSpanning[] = "spanning"; | 191 const char kIncognitoSpanning[] = "spanning"; |
| 191 const char kIsolatedStorage[] = "storage"; | 192 const char kIsolatedStorage[] = "storage"; |
| 192 const char kKeybindingPlatformChromeOs[] = "chromeos"; | 193 const char kKeybindingPlatformChromeOs[] = "chromeos"; |
| 193 const char kKeybindingPlatformDefault[] = "default"; | 194 const char kKeybindingPlatformDefault[] = "default"; |
| 194 const char kKeybindingPlatformLinux[] = "linux"; | 195 const char kKeybindingPlatformLinux[] = "linux"; |
| 195 const char kKeybindingPlatformMac[] = "mac"; | 196 const char kKeybindingPlatformMac[] = "mac"; |
| 196 const char kKeybindingPlatformWin[] = "windows"; | 197 const char kKeybindingPlatformWin[] = "windows"; |
| 197 const char kKeyAlt[] = "Alt"; | 198 const char kKeyAlt[] = "Alt"; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 218 const char kKeyShift[] = "Shift"; | 219 const char kKeyShift[] = "Shift"; |
| 219 const char kKeySpace[] = "Space"; | 220 const char kKeySpace[] = "Space"; |
| 220 const char kKeyTab[] = "Tab"; | 221 const char kKeyTab[] = "Tab"; |
| 221 const char kKeyUp[] = "Up"; | 222 const char kKeyUp[] = "Up"; |
| 222 const char kRunAtDocumentStart[] = "document_start"; | 223 const char kRunAtDocumentStart[] = "document_start"; |
| 223 const char kRunAtDocumentEnd[] = "document_end"; | 224 const char kRunAtDocumentEnd[] = "document_end"; |
| 224 const char kRunAtDocumentIdle[] = "document_idle"; | 225 const char kRunAtDocumentIdle[] = "document_idle"; |
| 225 const char kPageActionCommandEvent[] = "_execute_page_action"; | 226 const char kPageActionCommandEvent[] = "_execute_page_action"; |
| 226 const char kPageActionTypeTab[] = "tab"; | 227 const char kPageActionTypeTab[] = "tab"; |
| 227 const char kPageActionTypePermanent[] = "permanent"; | 228 const char kPageActionTypePermanent[] = "permanent"; |
| 228 const char kProjectId[] = "project_id"; | |
| 229 const char kLaunchContainerPanel[] = "panel"; | 229 const char kLaunchContainerPanel[] = "panel"; |
| 230 const char kLaunchContainerTab[] = "tab"; | 230 const char kLaunchContainerTab[] = "tab"; |
| 231 const char kLaunchContainerWindow[] = "window"; | 231 const char kLaunchContainerWindow[] = "window"; |
| 232 | 232 |
| 233 } // namespace manifest_values | 233 } // namespace manifest_values |
| 234 | 234 |
| 235 // Extension-related error messages. Some of these are simple patterns, where a | 235 // Extension-related error messages. Some of these are simple patterns, where a |
| 236 // '*' is replaced at runtime with a specific value. This is used instead of | 236 // '*' is replaced at runtime with a specific value. This is used instead of |
| 237 // printf because we want to unit test them and scanf is hard to make | 237 // printf because we want to unit test them and scanf is hard to make |
| 238 // cross-platform. | 238 // cross-platform. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 "Invalid value for 'content_pack'."; | 314 "Invalid value for 'content_pack'."; |
| 315 const char kInvalidContentPackSites[] = | 315 const char kInvalidContentPackSites[] = |
| 316 "Invalid value for Content Pack sites - files must be strings."; | 316 "Invalid value for Content Pack sites - files must be strings."; |
| 317 const char kInvalidContentScript[] = | 317 const char kInvalidContentScript[] = |
| 318 "Invalid value for 'content_scripts[*]'."; | 318 "Invalid value for 'content_scripts[*]'."; |
| 319 const char kInvalidContentScriptsList[] = | 319 const char kInvalidContentScriptsList[] = |
| 320 "Invalid value for 'content_scripts'."; | 320 "Invalid value for 'content_scripts'."; |
| 321 const char kInvalidContentSecurityPolicy[] = | 321 const char kInvalidContentSecurityPolicy[] = |
| 322 "Invalid value for 'content_security_policy'."; | 322 "Invalid value for 'content_security_policy'."; |
| 323 const char kInvalidCopresenceConfig[] = "Invalid value for 'copresence'."; | 323 const char kInvalidCopresenceConfig[] = "Invalid value for 'copresence'."; |
| 324 const char kInvalidCopresenceProjectId[] = | 324 const char kInvalidCopresenceApiKey[] = |
| 325 "copresence.project_id must not be empty."; | 325 "copresence.api_key must not be empty."; |
| 326 const char kInvalidCSPInsecureValue[] = | 326 const char kInvalidCSPInsecureValue[] = |
| 327 "Ignored insecure CSP value \"*\" in directive '*'."; | 327 "Ignored insecure CSP value \"*\" in directive '*'."; |
| 328 const char kInvalidCSPMissingSecureSrc[] = | 328 const char kInvalidCSPMissingSecureSrc[] = |
| 329 "CSP directive '*' must be specified (either explicitly, or implicitly via" | 329 "CSP directive '*' must be specified (either explicitly, or implicitly via" |
| 330 " 'default-src') and must whitelist only secure resources."; | 330 " 'default-src') and must whitelist only secure resources."; |
| 331 const char kInvalidCss[] = | 331 const char kInvalidCss[] = |
| 332 "Invalid value for 'content_scripts[*].css[*]'."; | 332 "Invalid value for 'content_scripts[*].css[*]'."; |
| 333 const char kInvalidCssList[] = | 333 const char kInvalidCssList[] = |
| 334 "Required value 'content_scripts[*].css' is invalid."; | 334 "Required value 'content_scripts[*].css' is invalid."; |
| 335 const char kInvalidDefaultLocale[] = | 335 const char kInvalidDefaultLocale[] = |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 const char kWebRequestConflictsWithLazyBackground[] = | 690 const char kWebRequestConflictsWithLazyBackground[] = |
| 691 "The 'webRequest' API cannot be used with event pages."; | 691 "The 'webRequest' API cannot be used with event pages."; |
| 692 #if defined(OS_CHROMEOS) | 692 #if defined(OS_CHROMEOS) |
| 693 const char kIllegalPlugins[] = | 693 const char kIllegalPlugins[] = |
| 694 "Extensions cannot install plugins on Chrome OS"; | 694 "Extensions cannot install plugins on Chrome OS"; |
| 695 #endif | 695 #endif |
| 696 | 696 |
| 697 } // namespace manifest_errors | 697 } // namespace manifest_errors |
| 698 | 698 |
| 699 } // namespace extensions | 699 } // namespace extensions |
| OLD | NEW |