Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 527003: Revert 35602 - Add a "minimum_chrome_version" key to the manifest.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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";
11 const wchar_t* kBrowserAction = L"browser_action"; 11 const wchar_t* kBrowserAction = L"browser_action";
12 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; 12 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides";
13 const wchar_t* kContentScripts = L"content_scripts"; 13 const wchar_t* kContentScripts = L"content_scripts";
14 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script"; 14 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script";
15 const wchar_t* kCss = L"css"; 15 const wchar_t* kCss = L"css";
16 const wchar_t* kCurrentLocale = L"current_locale"; 16 const wchar_t* kCurrentLocale = L"current_locale";
17 const wchar_t* kDefaultLocale = L"default_locale"; 17 const wchar_t* kDefaultLocale = L"default_locale";
18 const wchar_t* kDescription = L"description"; 18 const wchar_t* kDescription = L"description";
19 const wchar_t* kIcons = L"icons"; 19 const wchar_t* kIcons = L"icons";
20 const wchar_t* kJs = L"js"; 20 const wchar_t* kJs = L"js";
21 const wchar_t* kMatches = L"matches"; 21 const wchar_t* kMatches = L"matches";
22 const wchar_t* kMinimumChromeVersion = L"minimum_chrome_version";
23 const wchar_t* kIncludeGlobs = L"include_globs"; 22 const wchar_t* kIncludeGlobs = L"include_globs";
24 const wchar_t* kExcludeGlobs = L"exclude_globs"; 23 const wchar_t* kExcludeGlobs = L"exclude_globs";
25 const wchar_t* kName = L"name"; 24 const wchar_t* kName = L"name";
26 const wchar_t* kPageActionId = L"id"; 25 const wchar_t* kPageActionId = L"id";
27 const wchar_t* kPageAction = L"page_action"; 26 const wchar_t* kPageAction = L"page_action";
28 const wchar_t* kPageActions = L"page_actions"; 27 const wchar_t* kPageActions = L"page_actions";
29 const wchar_t* kPageActionIcons = L"icons"; 28 const wchar_t* kPageActionIcons = L"icons";
30 const wchar_t* kPageActionDefaultIcon = L"default_icon"; 29 const wchar_t* kPageActionDefaultIcon = L"default_icon";
31 const wchar_t* kPageActionDefaultTitle = L"default_title"; 30 const wchar_t* kPageActionDefaultTitle = L"default_title";
32 const wchar_t* kPageActionPopup = L"popup"; 31 const wchar_t* kPageActionPopup = L"popup";
(...skipping 28 matching lines...) Expand all
61 const char* kRunAtDocumentIdle = "document_idle"; 60 const char* kRunAtDocumentIdle = "document_idle";
62 const char* kPageActionTypeTab = "tab"; 61 const char* kPageActionTypeTab = "tab";
63 const char* kPageActionTypePermanent = "permanent"; 62 const char* kPageActionTypePermanent = "permanent";
64 } // namespace extension_manifest_values 63 } // namespace extension_manifest_values
65 64
66 // Extension-related error messages. Some of these are simple patterns, where a 65 // Extension-related error messages. Some of these are simple patterns, where a
67 // '*' is replaced at runtime with a specific value. This is used instead of 66 // '*' is replaced at runtime with a specific value. This is used instead of
68 // printf because we want to unit test them and scanf is hard to make 67 // printf because we want to unit test them and scanf is hard to make
69 // cross-platform. 68 // cross-platform.
70 namespace extension_manifest_errors { 69 namespace extension_manifest_errors {
71 const char* kChromeVersionTooLow =
72 "This extension requires * version * or greater.";
73 const char* kInvalidAllFrames = 70 const char* kInvalidAllFrames =
74 "Invalid value for 'content_scripts[*].all_frames'."; 71 "Invalid value for 'content_scripts[*].all_frames'.";
75 const char* kInvalidBrowserAction = 72 const char* kInvalidBrowserAction =
76 "Invalid value for 'browser_action'."; 73 "Invalid value for 'browser_action'.";
77 const char* kInvalidChromeURLOverrides = 74 const char* kInvalidChromeURLOverrides =
78 "Invalid value for 'chrome_url_overrides'."; 75 "Invalid value for 'chrome_url_overrides'.";
79 const char* kInvalidContentScript = 76 const char* kInvalidContentScript =
80 "Invalid value for 'content_scripts[*]'."; 77 "Invalid value for 'content_scripts[*]'.";
81 const char* kInvalidContentScriptsList = 78 const char* kInvalidContentScriptsList =
82 "Invalid value for 'content_scripts'."; 79 "Invalid value for 'content_scripts'.";
83 const char* kInvalidCss = 80 const char* kInvalidCss =
84 "Invalid value for 'content_scripts[*].css[*]'."; 81 "Invalid value for 'content_scripts[*].css[*]'.";
85 const char* kInvalidCssList = 82 const char* kInvalidCssList =
86 "Required value 'content_scripts[*].css' is invalid."; 83 "Required value 'content_scripts[*].css is invalid.";
87 const char* kInvalidDescription = 84 const char* kInvalidDescription =
88 "Invalid value for 'description'."; 85 "Invalid value for 'description'.";
89 const char* kInvalidGlobList = 86 const char* kInvalidGlobList =
90 "Invalid value for 'content_scripts[*].*'."; 87 "Invalid value for 'content_scripts[*].*'.";
91 const char* kInvalidGlob = 88 const char* kInvalidGlob =
92 "Invalid value for 'content_scripts[*].*[*]'."; 89 "Invalid value for 'content_scripts[*].*[*]'.";
93 const char* kInvalidIcons = 90 const char* kInvalidIcons =
94 "Invalid value for 'icons'."; 91 "Invalid value for 'icons'.";
95 const char* kInvalidIconPath = 92 const char* kInvalidIconPath =
96 "Invalid value for 'icons[\"*\"]'."; 93 "Invalid value for 'icons[\"*\"]'.";
97 const char* kInvalidJs = 94 const char* kInvalidJs =
98 "Invalid value for 'content_scripts[*].js[*]'."; 95 "Invalid value for 'content_scripts[*].js[*]'.";
99 const char* kInvalidJsList = 96 const char* kInvalidJsList =
100 "Required value 'content_scripts[*].js' is invalid."; 97 "Required value 'content_scripts[*].js is invalid.";
101 const char* kInvalidKey = 98 const char* kInvalidKey =
102 "Value 'key' is missing or invalid."; 99 "Value 'key' is missing or invalid.";
103 const char* kInvalidManifest = 100 const char* kInvalidManifest =
104 "Manifest file is invalid."; 101 "Manifest file is invalid.";
105 const char* kInvalidMatchCount = 102 const char* kInvalidMatchCount =
106 "Invalid value for 'content_scripts[*].matches'. There must be at least" 103 "Invalid value for 'content_scripts[*].matches. There must be at least one "
107 "one match specified."; 104 "match specified.";
108 const char* kInvalidMatch = 105 const char* kInvalidMatch =
109 "Invalid value for 'content_scripts[*].matches[*]'."; 106 "Invalid value for 'content_scripts[*].matches[*]'.";
110 const char* kInvalidMatches = 107 const char* kInvalidMatches =
111 "Required value 'content_scripts[*].matches' is missing or invalid."; 108 "Required value 'content_scripts[*].matches' is missing or invalid.";
112 const char* kInvalidMinimumChromeVersion =
113 "Invalid value for 'minimum_chrome_version'.";
114 const char* kInvalidName = 109 const char* kInvalidName =
115 "Required value 'name' is missing or invalid."; 110 "Required value 'name' is missing or invalid.";
116 const char* kInvalidPageAction = 111 const char* kInvalidPageAction =
117 "Invalid value for 'page_action'."; 112 "Invalid value for 'page_action'.";
118 const char* kInvalidPageActionName = 113 const char* kInvalidPageActionName =
119 "Invalid value for 'page_action.name'."; 114 "Invalid value for 'page_action.name'.";
120 const char* kInvalidPageActionIconPath = 115 const char* kInvalidPageActionIconPath =
121 "Invalid value for 'page_action.default_icon'."; 116 "Invalid value for 'page_action.default_icon'.";
122 const char* kInvalidPageActionsList = 117 const char* kInvalidPageActionsList =
123 "Invalid value for 'page_actions'."; 118 "Invalid value for 'page_actions'.";
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 "Invalid value for 'options_page'."; 200 "Invalid value for 'options_page'.";
206 } // namespace extension_manifest_errors 201 } // namespace extension_manifest_errors
207 202
208 namespace extension_urls { 203 namespace extension_urls {
209 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; 204 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions";
210 const char* kGalleryDownloadPrefix = 205 const char* kGalleryDownloadPrefix =
211 "https://clients2.googleusercontent.com/crx/download"; 206 "https://clients2.googleusercontent.com/crx/download";
212 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; 207 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/";
213 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; 208 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/";
214 } 209 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698