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

Side by Side Diff: extensions/common/manifest_constants.cc

Issue 2618493002: Chrome app manifest support for action handlers. (Closed)
Patch Set: Address comments Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "extensions/common/manifest_constants.h" 6 #include "extensions/common/manifest_constants.h"
7 7
8 namespace extensions { 8 namespace extensions {
9 9
10 namespace manifest_keys { 10 namespace manifest_keys {
11 11
12 const char kAboutPage[] = "about_page"; 12 const char kAboutPage[] = "about_page";
13 const char kActionHandlers[] = "action_handlers";
13 const char kAllFrames[] = "all_frames"; 14 const char kAllFrames[] = "all_frames";
14 const char kAltKey[] = "altKey"; 15 const char kAltKey[] = "altKey";
15 const char kApp[] = "app"; 16 const char kApp[] = "app";
16 const char kAppIconColor[] = "app.icon_color"; 17 const char kAppIconColor[] = "app.icon_color";
17 const char kAutomation[] = "automation"; 18 const char kAutomation[] = "automation";
18 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; 19 const char kBackgroundAllowJsAccess[] = "background.allow_js_access";
19 const char kBackgroundPage[] = "background.page"; 20 const char kBackgroundPage[] = "background.page";
20 const char kBackgroundPageLegacy[] = "background_page"; 21 const char kBackgroundPageLegacy[] = "background_page";
21 const char kBackgroundPersistent[] = "background.persistent"; 22 const char kBackgroundPersistent[] = "background.persistent";
22 const char kBackgroundScripts[] = "background.scripts"; 23 const char kBackgroundScripts[] = "background.scripts";
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "The sign-in page cannot be scripted."; 292 "The sign-in page cannot be scripted.";
292 const char kChromeVersionTooLow[] = 293 const char kChromeVersionTooLow[] =
293 "This extension requires * version * or greater."; 294 "This extension requires * version * or greater.";
294 const char kDisabledByPolicy[] = 295 const char kDisabledByPolicy[] =
295 "This extension has been disabled by your administrator."; 296 "This extension has been disabled by your administrator.";
296 const char kExpectString[] = "Expect string value."; 297 const char kExpectString[] = "Expect string value.";
297 const char kFileNotFound[] = "File not found: *."; 298 const char kFileNotFound[] = "File not found: *.";
298 const char kInvalidAboutPage[] = "Invalid value for 'about_page'."; 299 const char kInvalidAboutPage[] = "Invalid value for 'about_page'.";
299 const char kInvalidAboutPageExpectRelativePath[] = 300 const char kInvalidAboutPageExpectRelativePath[] =
300 "Invalid value for 'about_page'. Value must be a relative path."; 301 "Invalid value for 'about_page'. Value must be a relative path.";
302 const char kInvalidActionHandlersActionType[] =
303 "Invalid entry in 'action_handlers': \"*\".";
304 const char kInvalidActionHandlersType[] =
305 "Invalid value for 'action_handlers'. Value must be a list of strings.";
301 const char kInvalidAllFrames[] = 306 const char kInvalidAllFrames[] =
302 "Invalid value for 'content_scripts[*].all_frames'."; 307 "Invalid value for 'content_scripts[*].all_frames'.";
303 const char kInvalidAppIconColor[] = "Invalid value for app.icon_color."; 308 const char kInvalidAppIconColor[] = "Invalid value for app.icon_color.";
304 const char kInvalidBackground[] = 309 const char kInvalidBackground[] =
305 "Invalid value for 'background_page'."; 310 "Invalid value for 'background_page'.";
306 const char kInvalidBackgroundAllowJsAccess[] = 311 const char kInvalidBackgroundAllowJsAccess[] =
307 "Invalid value for 'background.allow_js_access'."; 312 "Invalid value for 'background.allow_js_access'.";
308 const char kInvalidBackgroundCombination[] = 313 const char kInvalidBackgroundCombination[] =
309 "The background.page and background.scripts properties cannot be used at " 314 "The background.page and background.scripts properties cannot be used at "
310 "the same time."; 315 "the same time.";
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 "'file_system_provider_capabilities' section to be specified in the " 745 "'file_system_provider_capabilities' section to be specified in the "
741 "manifest."; 746 "manifest.";
742 const char kInvalidFileSystemProviderMissingPermission[] = 747 const char kInvalidFileSystemProviderMissingPermission[] =
743 "The 'file_system_provider_capabilities' section requires the " 748 "The 'file_system_provider_capabilities' section requires the "
744 "'fileSystemProvider' permission to be specified in the manifest."; 749 "'fileSystemProvider' permission to be specified in the manifest.";
745 #endif 750 #endif
746 751
747 } // namespace manifest_errors 752 } // namespace manifest_errors
748 753
749 } // namespace extensions 754 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698