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

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

Issue 6321006: Add "sidebar" section to extension manifest:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 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";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const char* kPageActionPopup = "popup"; 45 const char* kPageActionPopup = "popup";
46 const char* kPageActionPopupHeight = "height"; 46 const char* kPageActionPopupHeight = "height";
47 const char* kPageActionPopupPath = "path"; 47 const char* kPageActionPopupPath = "path";
48 const char* kPageActions = "page_actions"; 48 const char* kPageActions = "page_actions";
49 const char* kPermissions = "permissions"; 49 const char* kPermissions = "permissions";
50 const char* kPlugins = "plugins"; 50 const char* kPlugins = "plugins";
51 const char* kPluginsPath = "path"; 51 const char* kPluginsPath = "path";
52 const char* kPluginsPublic = "public"; 52 const char* kPluginsPublic = "public";
53 const char* kPublicKey = "key"; 53 const char* kPublicKey = "key";
54 const char* kRunAt = "run_at"; 54 const char* kRunAt = "run_at";
55 const char* kSidebar = "sidebar";
56 const char* kSidebarDefaultIcon = "default_icon";
57 const char* kSidebarDefaultTitle = "default_title";
58 const char* kSidebarDefaultUrl = "default_url";
55 const char* kSignature = "signature"; 59 const char* kSignature = "signature";
56 const char* kTheme = "theme"; 60 const char* kTheme = "theme";
57 const char* kThemeColors = "colors"; 61 const char* kThemeColors = "colors";
58 const char* kThemeDisplayProperties = "properties"; 62 const char* kThemeDisplayProperties = "properties";
59 const char* kThemeImages = "images"; 63 const char* kThemeImages = "images";
60 const char* kThemeTints = "tints"; 64 const char* kThemeTints = "tints";
61 const char* kToolstripPath = "path"; 65 const char* kToolstripPath = "path";
62 const char* kToolstrips = "toolstrips"; 66 const char* kToolstrips = "toolstrips";
63 const char* kTts = "tts"; 67 const char* kTts = "tts";
64 const char* kTtsGenderFemale = "female"; 68 const char* kTtsGenderFemale = "female";
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 const char* kInvalidPermissionScheme = 222 const char* kInvalidPermissionScheme =
219 "Invalid scheme for 'permissions[*]'."; 223 "Invalid scheme for 'permissions[*]'.";
220 const char* kInvalidPlugins = 224 const char* kInvalidPlugins =
221 "Invalid value for 'plugins'."; 225 "Invalid value for 'plugins'.";
222 const char* kInvalidPluginsPath = 226 const char* kInvalidPluginsPath =
223 "Invalid value for 'plugins[*].path'."; 227 "Invalid value for 'plugins[*].path'.";
224 const char* kInvalidPluginsPublic = 228 const char* kInvalidPluginsPublic =
225 "Invalid value for 'plugins[*].public'."; 229 "Invalid value for 'plugins[*].public'.";
226 const char* kInvalidRunAt = 230 const char* kInvalidRunAt =
227 "Invalid value for 'content_scripts[*].run_at'."; 231 "Invalid value for 'content_scripts[*].run_at'.";
232 extern const char* kInvalidSidebar =
233 "Invalid value for 'sidebar'.";
234 extern const char* kInvalidSidebarDefaultIconPath =
235 "Invalid value for 'sidebar.default_icon'.";
236 extern const char* kInvalidSidebarDefaultTitle =
237 "Invalid value for 'sidebar.default_title'.";
238 extern const char* kInvalidSidebarDefaultUrl =
239 "Invalid value for 'sidebar.default_url'.";
228 const char* kInvalidSignature = 240 const char* kInvalidSignature =
229 "Value 'signature' is missing or invalid."; 241 "Value 'signature' is missing or invalid.";
230 const char* kInvalidTheme = 242 const char* kInvalidTheme =
231 "Invalid value for 'theme'."; 243 "Invalid value for 'theme'.";
232 const char* kInvalidThemeColors = 244 const char* kInvalidThemeColors =
233 "Invalid value for theme colors - colors must be integers"; 245 "Invalid value for theme colors - colors must be integers";
234 const char* kInvalidThemeImages = 246 const char* kInvalidThemeImages =
235 "Invalid value for theme images - images must be strings."; 247 "Invalid value for theme images - images must be strings.";
236 const char* kInvalidThemeImagesMissing = 248 const char* kInvalidThemeImagesMissing =
237 "An image specified in the theme is missing."; 249 "An image specified in the theme is missing.";
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 const char* kManifestUnreadable = 293 const char* kManifestUnreadable =
282 "Manifest file is missing or unreadable."; 294 "Manifest file is missing or unreadable.";
283 const char* kMissingFile = 295 const char* kMissingFile =
284 "At least one js or css file is required for 'content_scripts[*]'."; 296 "At least one js or css file is required for 'content_scripts[*]'.";
285 const char* kMultipleOverrides = 297 const char* kMultipleOverrides =
286 "An extension cannot override more than one page."; 298 "An extension cannot override more than one page.";
287 const char* kOneUISurfaceOnly = 299 const char* kOneUISurfaceOnly =
288 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; 300 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
289 const char* kReservedMessageFound = 301 const char* kReservedMessageFound =
290 "Reserved key * found in message catalog."; 302 "Reserved key * found in message catalog.";
303 const char* kSidebarExperimental =
304 "You must request the 'experimental' permission in order to use the"
305 " Sidebar API.";
291 const char* kThemesCannotContainExtensions = 306 const char* kThemesCannotContainExtensions =
292 "A theme cannot contain extensions code."; 307 "A theme cannot contain extensions code.";
293 #if defined(OS_CHROMEOS) 308 #if defined(OS_CHROMEOS)
294 const char* kIllegalPlugins = 309 const char* kIllegalPlugins =
295 "Extensions cannot install plugins on Chrome OS"; 310 "Extensions cannot install plugins on Chrome OS";
296 #endif 311 #endif
297 } // namespace extension_manifest_errors 312 } // namespace extension_manifest_errors
298 313
299 namespace extension_urls { 314 namespace extension_urls {
300 const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore"; 315 const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore";
(...skipping 10 matching lines...) Expand all
311 // The file to write our decoded message catalogs to, relative to the 326 // The file to write our decoded message catalogs to, relative to the
312 // extension_path. 327 // extension_path.
313 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; 328 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS";
314 } 329 }
315 330
316 namespace extension_misc { 331 namespace extension_misc {
317 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; 332 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno";
318 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; 333 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb";
319 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; 334 const char* kAppsPromoHistogram = "Extensions.AppsPromo";
320 } 335 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698