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

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

Issue 350943003: Support global keyboard commands on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address various comments. Created 6 years, 5 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 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 "extensions/common/switches.h" 5 #include "extensions/common/switches.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const char kExtensionProcess[] = "extension-process"; 49 const char kExtensionProcess[] = "extension-process";
50 50
51 // Enables extensions running scripts on chrome:// URLs. 51 // Enables extensions running scripts on chrome:// URLs.
52 // Extensions still need to explicitly request access to chrome:// URLs in the 52 // Extensions still need to explicitly request access to chrome:// URLs in the
53 // manifest. 53 // manifest.
54 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; 54 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls";
55 55
56 // Whether to force developer mode extensions highlighting. 56 // Whether to force developer mode extensions highlighting.
57 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; 57 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting";
58 58
59 // Enables setting global commands through the Extensions Commands API.
60 const char kGlobalCommands[] = "global-commands";
61
62 // Notify the user and require consent for extensions running scripts. 59 // Notify the user and require consent for extensions running scripts.
63 // Appending --scripts-require-action=1 has the same effect as 60 // Appending --scripts-require-action=1 has the same effect as
64 // --enable-scripts-require-action (see below). 61 // --enable-scripts-require-action (see below).
65 const char kScriptsRequireAction[] = "scripts-require-action"; 62 const char kScriptsRequireAction[] = "scripts-require-action";
66 // FeatureSwitch and about_flags don't play nice. Feature switch expects either 63 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
67 // --enable-<feature> or --<feature>=1, but about_flags expects the command 64 // --enable-<feature> or --<feature>=1, but about_flags expects the command
68 // line argument to enable it (or a selection). Hack this in, so enabling it 65 // line argument to enable it (or a selection). Hack this in, so enabling it
69 // in about_flags enables the feature. Appending this flag has the same effect 66 // in about_flags enables the feature. Appending this flag has the same effect
70 // as --scripts-require-action=1. 67 // as --scripts-require-action=1.
71 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; 68 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action";
72 69
73 // Makes component extensions appear in chrome://settings/extensions. 70 // Makes component extensions appear in chrome://settings/extensions.
74 const char kShowComponentExtensionOptions[] = 71 const char kShowComponentExtensionOptions[] =
75 "show-component-extension-options"; 72 "show-component-extension-options";
76 73
77 // Adds the given extension ID to all the permission whitelists. 74 // Adds the given extension ID to all the permission whitelists.
78 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; 75 const char kWhitelistedExtensionID[] = "whitelisted-extension-id";
79 76
80 } // namespace switches 77 } // namespace switches
81 78
82 } // namespace extensions 79 } // namespace extensions
OLDNEW
« chrome/common/extensions/command.cc ('K') | « extensions/common/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698