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

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

Issue 271114: Add concept of an options page to Extensions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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* kBackground = L"background_page"; 9 const wchar_t* kBackground = L"background_page";
10 const wchar_t* kBrowserAction = L"browser_action"; 10 const wchar_t* kBrowserAction = L"browser_action";
(...skipping 28 matching lines...) Expand all
39 const wchar_t* kThemeColors = L"colors"; 39 const wchar_t* kThemeColors = L"colors";
40 const wchar_t* kThemeTints = L"tints"; 40 const wchar_t* kThemeTints = L"tints";
41 const wchar_t* kThemeDisplayProperties = L"properties"; 41 const wchar_t* kThemeDisplayProperties = L"properties";
42 const wchar_t* kToolstripMoleHeight = L"mole_height"; 42 const wchar_t* kToolstripMoleHeight = L"mole_height";
43 const wchar_t* kToolstripMolePath = L"mole"; 43 const wchar_t* kToolstripMolePath = L"mole";
44 const wchar_t* kToolstripPath = L"path"; 44 const wchar_t* kToolstripPath = L"path";
45 const wchar_t* kToolstrips = L"toolstrips"; 45 const wchar_t* kToolstrips = L"toolstrips";
46 const wchar_t* kType = L"type"; 46 const wchar_t* kType = L"type";
47 const wchar_t* kVersion = L"version"; 47 const wchar_t* kVersion = L"version";
48 const wchar_t* kUpdateURL = L"update_url"; 48 const wchar_t* kUpdateURL = L"update_url";
49 const wchar_t* kOptionsPage = L"options_page";
49 } // namespace extension_manifest_keys 50 } // namespace extension_manifest_keys
50 51
51 namespace extension_manifest_values { 52 namespace extension_manifest_values {
52 const char* kRunAtDocumentStart = "document_start"; 53 const char* kRunAtDocumentStart = "document_start";
53 const char* kRunAtDocumentEnd = "document_end"; 54 const char* kRunAtDocumentEnd = "document_end";
54 const char* kPageActionTypeTab = "tab"; 55 const char* kPageActionTypeTab = "tab";
55 const char* kPageActionTypePermanent = "permanent"; 56 const char* kPageActionTypePermanent = "permanent";
56 } // namespace extension_manifest_values 57 } // namespace extension_manifest_values
57 58
58 // Extension-related error messages. Some of these are simple patterns, where a 59 // Extension-related error messages. Some of these are simple patterns, where a
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 "Invalid value for 'plugins'."; 127 "Invalid value for 'plugins'.";
127 const char* kInvalidPluginsPath = 128 const char* kInvalidPluginsPath =
128 "Invalid value for 'plugins[*].path'."; 129 "Invalid value for 'plugins[*].path'.";
129 const char* kInvalidPluginsPublic = 130 const char* kInvalidPluginsPublic =
130 "Invalid value for 'plugins[*].public'."; 131 "Invalid value for 'plugins[*].public'.";
131 const char* kInvalidPrivacyBlacklists = 132 const char* kInvalidPrivacyBlacklists =
132 "Invalid value for 'privacy_blacklists'."; 133 "Invalid value for 'privacy_blacklists'.";
133 const char* kInvalidPrivacyBlacklistsPath = 134 const char* kInvalidPrivacyBlacklistsPath =
134 "Invalid value for 'privacy_blacklists[*]'."; 135 "Invalid value for 'privacy_blacklists[*]'.";
135 const char* kInvalidBackground = 136 const char* kInvalidBackground =
136 "Invalid value for 'background'."; 137 "Invalid value for 'background_page'.";
137 const char* kInvalidRunAt = 138 const char* kInvalidRunAt =
138 "Invalid value for 'content_scripts[*].run_at'."; 139 "Invalid value for 'content_scripts[*].run_at'.";
139 const char* kInvalidSignature = 140 const char* kInvalidSignature =
140 "Value 'signature' is missing or invalid."; 141 "Value 'signature' is missing or invalid.";
141 const char* kInvalidToolstrip = 142 const char* kInvalidToolstrip =
142 "Invalid value for 'toolstrips[*]'"; 143 "Invalid value for 'toolstrips[*]'";
143 const char* kInvalidToolstrips = 144 const char* kInvalidToolstrips =
144 "Invalid value for 'toolstrips'."; 145 "Invalid value for 'toolstrips'.";
145 const char* kInvalidVersion = 146 const char* kInvalidVersion =
146 "Required value 'version' is missing or invalid. It must be between 1-4 " 147 "Required value 'version' is missing or invalid. It must be between 1-4 "
(...skipping 21 matching lines...) Expand all
168 const char* kInvalidDefaultLocale = 169 const char* kInvalidDefaultLocale =
169 "Invalid value for default locale - locale name must be a string."; 170 "Invalid value for default locale - locale name must be a string.";
170 const char* kOneUISurfaceOnly = 171 const char* kOneUISurfaceOnly =
171 "An extension cannot have both a page action and a browser action."; 172 "An extension cannot have both a page action and a browser action.";
172 const char* kThemesCannotContainExtensions = 173 const char* kThemesCannotContainExtensions =
173 "A theme cannot contain extensions code."; 174 "A theme cannot contain extensions code.";
174 const char* kLocalesNoDefaultLocaleSpecified = 175 const char* kLocalesNoDefaultLocaleSpecified =
175 "Localization used, but default_locale wasn't specified in the manifest."; 176 "Localization used, but default_locale wasn't specified in the manifest.";
176 const char* kLocalesNoValidLocaleNamesListed = 177 const char* kLocalesNoValidLocaleNamesListed =
177 "No valid locale name could be found in _locales directory."; 178 "No valid locale name could be found in _locales directory.";
179 const char* kInvalidOptionsPage =
180 "Invalid value for 'options_page'.";
178 } // namespace extension_manifest_errors 181 } // namespace extension_manifest_errors
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