| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 wchar_t* kAllFrames = L"all_frames"; | 9 const wchar_t* kAllFrames = L"all_frames"; |
| 10 const wchar_t* kBackground = L"background_page"; | 10 const wchar_t* kBackground = L"background_page"; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const wchar_t* kToolstripPath = L"path"; | 55 const wchar_t* kToolstripPath = L"path"; |
| 56 const wchar_t* kToolstrips = L"toolstrips"; | 56 const wchar_t* kToolstrips = L"toolstrips"; |
| 57 const wchar_t* kType = L"type"; | 57 const wchar_t* kType = L"type"; |
| 58 const wchar_t* kVersion = L"version"; | 58 const wchar_t* kVersion = L"version"; |
| 59 const wchar_t* kUpdateURL = L"update_url"; | 59 const wchar_t* kUpdateURL = L"update_url"; |
| 60 const wchar_t* kOptionsPage = L"options_page"; | 60 const wchar_t* kOptionsPage = L"options_page"; |
| 61 const wchar_t* kWebContent = L"web_content"; | 61 const wchar_t* kWebContent = L"web_content"; |
| 62 const wchar_t* kWebContentEnabled = L"web_content.enabled"; | 62 const wchar_t* kWebContentEnabled = L"web_content.enabled"; |
| 63 const wchar_t* kWebOrigin = L"web_content.origin"; | 63 const wchar_t* kWebOrigin = L"web_content.origin"; |
| 64 const wchar_t* kWebPaths = L"web_content.paths"; | 64 const wchar_t* kWebPaths = L"web_content.paths"; |
| 65 const wchar_t* kOmniboxKeyword = L"omnibox_keyword"; |
| 65 } // namespace extension_manifest_keys | 66 } // namespace extension_manifest_keys |
| 66 | 67 |
| 67 namespace extension_manifest_values { | 68 namespace extension_manifest_values { |
| 68 const char* kRunAtDocumentStart = "document_start"; | 69 const char* kRunAtDocumentStart = "document_start"; |
| 69 const char* kRunAtDocumentEnd = "document_end"; | 70 const char* kRunAtDocumentEnd = "document_end"; |
| 70 const char* kRunAtDocumentIdle = "document_idle"; | 71 const char* kRunAtDocumentIdle = "document_idle"; |
| 71 const char* kPageActionTypeTab = "tab"; | 72 const char* kPageActionTypeTab = "tab"; |
| 72 const char* kPageActionTypePermanent = "permanent"; | 73 const char* kPageActionTypePermanent = "permanent"; |
| 73 const char* kLaunchContainerPanel = "panel"; | 74 const char* kLaunchContainerPanel = "panel"; |
| 74 const char* kLaunchContainerTab = "tab"; | 75 const char* kLaunchContainerTab = "tab"; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 "Messages file is missing for locale."; | 238 "Messages file is missing for locale."; |
| 238 const char* kInvalidOptionsPage = | 239 const char* kInvalidOptionsPage = |
| 239 "Invalid value for 'options_page'."; | 240 "Invalid value for 'options_page'."; |
| 240 const char* kReservedMessageFound = | 241 const char* kReservedMessageFound = |
| 241 "Reserved key * found in message catalog."; | 242 "Reserved key * found in message catalog."; |
| 242 const char* kCannotAccessPage = "Cannot access contents of url \"*\". " | 243 const char* kCannotAccessPage = "Cannot access contents of url \"*\". " |
| 243 "Extension manifest must request permission to access this host."; | 244 "Extension manifest must request permission to access this host."; |
| 244 const char* kCannotScriptGallery = "The extensions gallery cannot be scripted."; | 245 const char* kCannotScriptGallery = "The extensions gallery cannot be scripted."; |
| 245 const char* kWebContentMustBeEnabled = "The 'web_content.enabled' property " | 246 const char* kWebContentMustBeEnabled = "The 'web_content.enabled' property " |
| 246 "must be set to true in order to use any other web content features."; | 247 "must be set to true in order to use any other web content features."; |
| 248 const char* kInvalidOmniboxKeyword = |
| 249 "Invalid value for 'omnibox_keyword'."; |
| 250 const char* kOmniboxExperimental = |
| 251 "You must request the 'experimental' permission in order to use the" |
| 252 " omnibox API."; |
| 247 } // namespace extension_manifest_errors | 253 } // namespace extension_manifest_errors |
| 248 | 254 |
| 249 namespace extension_urls { | 255 namespace extension_urls { |
| 250 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; | 256 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; |
| 251 const char* kGalleryDownloadPrefix = | 257 const char* kGalleryDownloadPrefix = |
| 252 "https://clients2.googleusercontent.com/crx/download"; | 258 "https://clients2.googleusercontent.com/crx/download"; |
| 253 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; | 259 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; |
| 254 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; | 260 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; |
| 255 } | 261 } |
| 256 | 262 |
| 257 namespace extension_filenames { | 263 namespace extension_filenames { |
| 258 const char* kTempExtensionName = "CRX_INSTALL"; | 264 const char* kTempExtensionName = "CRX_INSTALL"; |
| 259 | 265 |
| 260 // The file to write our decoded images to, relative to the extension_path. | 266 // The file to write our decoded images to, relative to the extension_path. |
| 261 const char* kDecodedImagesFilename = "DECODED_IMAGES"; | 267 const char* kDecodedImagesFilename = "DECODED_IMAGES"; |
| 262 | 268 |
| 263 // The file to write our decoded message catalogs to, relative to the | 269 // The file to write our decoded message catalogs to, relative to the |
| 264 // extension_path. | 270 // extension_path. |
| 265 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; | 271 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; |
| 266 } | 272 } |
| OLD | NEW |