| 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 7 | 7 |
| 8 // Keys used in JSON representation of extensions. | 8 // Keys used in JSON representation of extensions. |
| 9 namespace extension_manifest_keys { | 9 namespace extension_manifest_keys { |
| 10 extern const wchar_t* kBackground; | 10 extern const wchar_t* kBackground; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 extern const wchar_t* kType; | 47 extern const wchar_t* kType; |
| 48 extern const wchar_t* kVersion; | 48 extern const wchar_t* kVersion; |
| 49 extern const wchar_t* kUpdateURL; | 49 extern const wchar_t* kUpdateURL; |
| 50 extern const wchar_t* kOptionsPage; | 50 extern const wchar_t* kOptionsPage; |
| 51 } // namespace extension_manifest_keys | 51 } // namespace extension_manifest_keys |
| 52 | 52 |
| 53 // Some values expected in manifests. | 53 // Some values expected in manifests. |
| 54 namespace extension_manifest_values { | 54 namespace extension_manifest_values { |
| 55 extern const char* kRunAtDocumentStart; | 55 extern const char* kRunAtDocumentStart; |
| 56 extern const char* kRunAtDocumentEnd; | 56 extern const char* kRunAtDocumentEnd; |
| 57 extern const char* kRunAtDocumentIdle; |
| 57 extern const char* kPageActionTypeTab; | 58 extern const char* kPageActionTypeTab; |
| 58 extern const char* kPageActionTypePermanent; | 59 extern const char* kPageActionTypePermanent; |
| 59 } // namespace extension_manifest_values | 60 } // namespace extension_manifest_values |
| 60 | 61 |
| 61 // Error messages returned from Extension::InitFromValue(). | 62 // Error messages returned from Extension::InitFromValue(). |
| 62 namespace extension_manifest_errors { | 63 namespace extension_manifest_errors { |
| 63 extern const char* kInvalidBrowserAction; | 64 extern const char* kInvalidBrowserAction; |
| 64 extern const char* kInvalidChromeURLOverrides; | 65 extern const char* kInvalidChromeURLOverrides; |
| 65 extern const char* kInvalidContentScript; | 66 extern const char* kInvalidContentScript; |
| 66 extern const char* kInvalidContentScriptsList; | 67 extern const char* kInvalidContentScriptsList; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 extern const char* kManifestUnreadable; | 116 extern const char* kManifestUnreadable; |
| 116 extern const char* kMissingFile; | 117 extern const char* kMissingFile; |
| 117 extern const char* kInvalidUpdateURL; | 118 extern const char* kInvalidUpdateURL; |
| 118 extern const char* kInvalidDefaultLocale; | 119 extern const char* kInvalidDefaultLocale; |
| 119 extern const char* kLocalesNoDefaultLocaleSpecified; | 120 extern const char* kLocalesNoDefaultLocaleSpecified; |
| 120 extern const char* kLocalesNoValidLocaleNamesListed; | 121 extern const char* kLocalesNoValidLocaleNamesListed; |
| 121 extern const char* kInvalidOptionsPage; | 122 extern const char* kInvalidOptionsPage; |
| 122 } // namespace extension_manifest_errors | 123 } // namespace extension_manifest_errors |
| 123 | 124 |
| 124 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 125 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |