| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_constants.h" | 5 #include "chrome/common/extensions/extension_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* kApp = "app"; | 10 const char* kApp = "app"; |
| 11 const char* kBackground = "background_page"; | 11 const char* kBackground = "background_page"; |
| 12 const char* kBrowserAction = "browser_action"; | 12 const char* kBrowserAction = "browser_action"; |
| 13 const char* kChromeURLOverrides = "chrome_url_overrides"; | 13 const char* kChromeURLOverrides = "chrome_url_overrides"; |
| 14 const char* kContentScripts = "content_scripts"; | 14 const char* kContentScripts = "content_scripts"; |
| 15 const char* kConvertedFromUserScript = "converted_from_user_script"; | 15 const char* kConvertedFromUserScript = "converted_from_user_script"; |
| 16 const char* kCss = "css"; | 16 const char* kCss = "css"; |
| 17 const char* kCurrentLocale = "current_locale"; | 17 const char* kCurrentLocale = "current_locale"; |
| 18 const char* kDefaultLocale = "default_locale"; | 18 const char* kDefaultLocale = "default_locale"; |
| 19 const char* kDescription = "description"; | 19 const char* kDescription = "description"; |
| 20 const char* kDevToolsPage = "devtools_page"; | 20 const char* kDevToolsPage = "devtools_page"; |
| 21 const char* kExcludeGlobs = "exclude_globs"; | 21 const char* kExcludeGlobs = "exclude_globs"; |
| 22 const char* kIcons = "icons"; | 22 const char* kIcons = "icons"; |
| 23 const char* kIncognito = "incognito"; |
| 23 const char* kIncludeGlobs = "include_globs"; | 24 const char* kIncludeGlobs = "include_globs"; |
| 24 const char* kJs = "js"; | 25 const char* kJs = "js"; |
| 25 const char* kLaunch = "app.launch"; | 26 const char* kLaunch = "app.launch"; |
| 26 const char* kLaunchContainer = "app.launch.container"; | 27 const char* kLaunchContainer = "app.launch.container"; |
| 27 const char* kLaunchHeight = "app.launch.height"; | 28 const char* kLaunchHeight = "app.launch.height"; |
| 28 const char* kLaunchLocalPath = "app.launch.local_path"; | 29 const char* kLaunchLocalPath = "app.launch.local_path"; |
| 29 const char* kLaunchWebURL = "app.launch.web_url"; | 30 const char* kLaunchWebURL = "app.launch.web_url"; |
| 30 const char* kLaunchWidth = "app.launch.width"; | 31 const char* kLaunchWidth = "app.launch.width"; |
| 31 const char* kMatches = "matches"; | 32 const char* kMatches = "matches"; |
| 32 const char* kMinimumChromeVersion = "minimum_chrome_version"; | 33 const char* kMinimumChromeVersion = "minimum_chrome_version"; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 57 const char* kThemeTints = "tints"; | 58 const char* kThemeTints = "tints"; |
| 58 const char* kToolstripPath = "path"; | 59 const char* kToolstripPath = "path"; |
| 59 const char* kToolstrips = "toolstrips"; | 60 const char* kToolstrips = "toolstrips"; |
| 60 const char* kType = "type"; | 61 const char* kType = "type"; |
| 61 const char* kUpdateURL = "update_url"; | 62 const char* kUpdateURL = "update_url"; |
| 62 const char* kVersion = "version"; | 63 const char* kVersion = "version"; |
| 63 const char* kWebURLs = "app.urls"; | 64 const char* kWebURLs = "app.urls"; |
| 64 } // namespace extension_manifest_keys | 65 } // namespace extension_manifest_keys |
| 65 | 66 |
| 66 namespace extension_manifest_values { | 67 namespace extension_manifest_values { |
| 68 const char* kIncognitoSplit = "split"; |
| 69 const char* kIncognitoSpanning = "spanning"; |
| 67 const char* kRunAtDocumentStart = "document_start"; | 70 const char* kRunAtDocumentStart = "document_start"; |
| 68 const char* kRunAtDocumentEnd = "document_end"; | 71 const char* kRunAtDocumentEnd = "document_end"; |
| 69 const char* kRunAtDocumentIdle = "document_idle"; | 72 const char* kRunAtDocumentIdle = "document_idle"; |
| 70 const char* kPageActionTypeTab = "tab"; | 73 const char* kPageActionTypeTab = "tab"; |
| 71 const char* kPageActionTypePermanent = "permanent"; | 74 const char* kPageActionTypePermanent = "permanent"; |
| 72 const char* kLaunchContainerPanel = "panel"; | 75 const char* kLaunchContainerPanel = "panel"; |
| 73 const char* kLaunchContainerTab = "tab"; | 76 const char* kLaunchContainerTab = "tab"; |
| 74 const char* kLaunchContainerWindow = "window"; | 77 const char* kLaunchContainerWindow = "window"; |
| 75 } // namespace extension_manifest_values | 78 } // namespace extension_manifest_values |
| 76 | 79 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const char* kInvalidDevToolsPage = | 121 const char* kInvalidDevToolsPage = |
| 119 "Invalid value for 'devtools_page'."; | 122 "Invalid value for 'devtools_page'."; |
| 120 const char* kInvalidGlob = | 123 const char* kInvalidGlob = |
| 121 "Invalid value for 'content_scripts[*].*[*]'."; | 124 "Invalid value for 'content_scripts[*].*[*]'."; |
| 122 const char* kInvalidGlobList = | 125 const char* kInvalidGlobList = |
| 123 "Invalid value for 'content_scripts[*].*'."; | 126 "Invalid value for 'content_scripts[*].*'."; |
| 124 const char* kInvalidIconPath = | 127 const char* kInvalidIconPath = |
| 125 "Invalid value for 'icons[\"*\"]'."; | 128 "Invalid value for 'icons[\"*\"]'."; |
| 126 const char* kInvalidIcons = | 129 const char* kInvalidIcons = |
| 127 "Invalid value for 'icons'."; | 130 "Invalid value for 'icons'."; |
| 131 const char* kInvalidIncognitoBehavior = |
| 132 "Invalid value for 'incognito'."; |
| 128 const char* kInvalidJs = | 133 const char* kInvalidJs = |
| 129 "Invalid value for 'content_scripts[*].js[*]'."; | 134 "Invalid value for 'content_scripts[*].js[*]'."; |
| 130 const char* kInvalidJsList = | 135 const char* kInvalidJsList = |
| 131 "Required value 'content_scripts[*].js' is invalid."; | 136 "Required value 'content_scripts[*].js' is invalid."; |
| 132 const char* kInvalidKey = | 137 const char* kInvalidKey = |
| 133 "Value 'key' is missing or invalid."; | 138 "Value 'key' is missing or invalid."; |
| 134 const char* kInvalidLaunchContainer = | 139 const char* kInvalidLaunchContainer = |
| 135 "Invalid value for 'app.launch.container'."; | 140 "Invalid value for 'app.launch.container'."; |
| 136 const char* kInvalidLaunchHeight = | 141 const char* kInvalidLaunchHeight = |
| 137 "Invalid value for 'app.launch.height'."; | 142 "Invalid value for 'app.launch.height'."; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 291 |
| 287 // The file to write our decoded message catalogs to, relative to the | 292 // The file to write our decoded message catalogs to, relative to the |
| 288 // extension_path. | 293 // extension_path. |
| 289 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; | 294 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; |
| 290 } | 295 } |
| 291 | 296 |
| 292 namespace extension_misc { | 297 namespace extension_misc { |
| 293 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; | 298 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; |
| 294 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; | 299 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; |
| 295 } | 300 } |
| OLD | NEW |