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

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

Issue 9812008: Polish the keybinding implementation a bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const char kPlatformApp[] = "platform_app"; 91 const char kPlatformApp[] = "platform_app";
92 const char kPlugins[] = "plugins"; 92 const char kPlugins[] = "plugins";
93 const char kPluginsPath[] = "path"; 93 const char kPluginsPath[] = "path";
94 const char kPluginsPublic[] = "public"; 94 const char kPluginsPublic[] = "public";
95 const char kPublicKey[] = "key"; 95 const char kPublicKey[] = "key";
96 const char kRequirements[] = "requirements"; 96 const char kRequirements[] = "requirements";
97 const char kRunAt[] = "run_at"; 97 const char kRunAt[] = "run_at";
98 const char kShiftKey[] = "shiftKey"; 98 const char kShiftKey[] = "shiftKey";
99 const char kShortcutKey[] = "shortcutKey"; 99 const char kShortcutKey[] = "shortcutKey";
100 const char kSignature[] = "signature"; 100 const char kSignature[] = "signature";
101 const char kSuggestedKey[] = "suggested_key";
101 const char kTheme[] = "theme"; 102 const char kTheme[] = "theme";
102 const char kThemeColors[] = "colors"; 103 const char kThemeColors[] = "colors";
103 const char kThemeDisplayProperties[] = "properties"; 104 const char kThemeDisplayProperties[] = "properties";
104 const char kThemeImages[] = "images"; 105 const char kThemeImages[] = "images";
105 const char kThemeTints[] = "tints"; 106 const char kThemeTints[] = "tints";
106 const char kTtsEngine[] = "tts_engine"; 107 const char kTtsEngine[] = "tts_engine";
107 const char kTtsGenderFemale[] = "female"; 108 const char kTtsGenderFemale[] = "female";
108 const char kTtsGenderMale[] = "male"; 109 const char kTtsGenderMale[] = "male";
109 const char kTtsVoices[] = "voices"; 110 const char kTtsVoices[] = "voices";
110 const char kTtsVoicesEventTypeEnd[] = "end"; 111 const char kTtsVoicesEventTypeEnd[] = "end";
111 const char kTtsVoicesEventTypeError[] = "error"; 112 const char kTtsVoicesEventTypeError[] = "error";
112 const char kTtsVoicesEventTypeMarker[] = "marker"; 113 const char kTtsVoicesEventTypeMarker[] = "marker";
113 const char kTtsVoicesEventTypeSentence[] = "sentence"; 114 const char kTtsVoicesEventTypeSentence[] = "sentence";
114 const char kTtsVoicesEventTypeStart[] = "start"; 115 const char kTtsVoicesEventTypeStart[] = "start";
115 const char kTtsVoicesEventTypeWord[] = "word"; 116 const char kTtsVoicesEventTypeWord[] = "word";
116 const char kTtsVoicesEventTypes[] = "event_types"; 117 const char kTtsVoicesEventTypes[] = "event_types";
117 const char kTtsVoicesGender[] = "gender"; 118 const char kTtsVoicesGender[] = "gender";
118 const char kTtsVoicesLang[] = "lang"; 119 const char kTtsVoicesLang[] = "lang";
119 const char kTtsVoicesVoiceName[] = "voice_name"; 120 const char kTtsVoicesVoiceName[] = "voice_name";
120 const char kType[] = "type"; 121 const char kType[] = "type";
121 const char kUpdateURL[] = "update_url"; 122 const char kUpdateURL[] = "update_url";
122 const char kVersion[] = "version"; 123 const char kVersion[] = "version";
123 const char kWebAccessibleResources[] = "web_accessible_resources"; 124 const char kWebAccessibleResources[] = "web_accessible_resources";
124 const char kWebURLs[] = "app.urls"; 125 const char kWebURLs[] = "app.urls";
125 } // namespace extension_manifest_keys 126 } // namespace extension_manifest_keys
126 127
127 namespace extension_manifest_values { 128 namespace extension_manifest_values {
128 const char kBrowserActionKeybindingEvent[] = "browserAction"; 129 const char kBrowserActionKeybindingEvent[] = "_execute_browser_action";
129 const char kIncognitoSplit[] = "split"; 130 const char kIncognitoSplit[] = "split";
130 const char kIncognitoSpanning[] = "spanning"; 131 const char kIncognitoSpanning[] = "spanning";
131 const char kIntentDispositionWindow[] = "window"; 132 const char kIntentDispositionWindow[] = "window";
132 const char kIntentDispositionInline[] = "inline"; 133 const char kIntentDispositionInline[] = "inline";
133 const char kIsolatedStorage[] = "storage"; 134 const char kIsolatedStorage[] = "storage";
135 const char kKeybindingPlatformChromeOs[] = "chromeos";
136 const char kKeybindingPlatformLinux[] = "linux";
137 const char kKeybindingPlatformMac[] = "mac";
138 const char kKeybindingPlatformWin[] = "windows";
134 const char kRunAtDocumentStart[] = "document_start"; 139 const char kRunAtDocumentStart[] = "document_start";
135 const char kRunAtDocumentEnd[] = "document_end"; 140 const char kRunAtDocumentEnd[] = "document_end";
136 const char kRunAtDocumentIdle[] = "document_idle"; 141 const char kRunAtDocumentIdle[] = "document_idle";
137 const char kPageActionKeybindingEvent[] = "pageAction"; 142 const char kPageActionKeybindingEvent[] = "_execute_page_action";
138 const char kPageActionTypeTab[] = "tab"; 143 const char kPageActionTypeTab[] = "tab";
139 const char kPageActionTypePermanent[] = "permanent"; 144 const char kPageActionTypePermanent[] = "permanent";
140 const char kLaunchContainerPanel[] = "panel"; 145 const char kLaunchContainerPanel[] = "panel";
141 const char kLaunchContainerShell[] = "shell"; 146 const char kLaunchContainerShell[] = "shell";
142 const char kLaunchContainerTab[] = "tab"; 147 const char kLaunchContainerTab[] = "tab";
143 const char kLaunchContainerWindow[] = "window"; 148 const char kLaunchContainerWindow[] = "window";
144 } // namespace extension_manifest_values 149 } // namespace extension_manifest_values
145 150
146 // Extension-related error messages. Some of these are simple patterns, where a 151 // Extension-related error messages. Some of these are simple patterns, where a
147 // '*' is replaced at runtime with a specific value. This is used instead of 152 // '*' is replaced at runtime with a specific value. This is used instead of
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 "Invalid value for 'app.isolation'."; 292 "Invalid value for 'app.isolation'.";
288 const char kInvalidIsolationValue[] = 293 const char kInvalidIsolationValue[] =
289 "Invalid value for 'app.isolation[*]'."; 294 "Invalid value for 'app.isolation[*]'.";
290 const char kInvalidJs[] = 295 const char kInvalidJs[] =
291 "Invalid value for 'content_scripts[*].js[*]'."; 296 "Invalid value for 'content_scripts[*].js[*]'.";
292 const char kInvalidJsList[] = 297 const char kInvalidJsList[] =
293 "Required value 'content_scripts[*].js' is invalid."; 298 "Required value 'content_scripts[*].js' is invalid.";
294 const char kInvalidKey[] = 299 const char kInvalidKey[] =
295 "Value 'key' is missing or invalid."; 300 "Value 'key' is missing or invalid.";
296 const char kInvalidKeyBinding[] = 301 const char kInvalidKeyBinding[] =
297 "Invalid value for 'commands[*].key':"; 302 "Invalid value for 'commands[*].*': *.";
303 const char kInvalidKeyBindingMissingPlatform[] =
304 "Platform not specified in 'commands[*].*': *.";
298 const char kInvalidKeyBindingDescription[] = 305 const char kInvalidKeyBindingDescription[] =
299 "Invalid value for 'commands[*].description'."; 306 "Invalid value for 'commands[*].description'.";
300 const char kInvalidKeyBindingDictionary[] = 307 const char kInvalidKeyBindingDictionary[] =
301 "Contents of 'commands[*]' invalid."; 308 "Contents of 'commands[*]' invalid.";
302 const char kInvalidLaunchContainer[] = 309 const char kInvalidLaunchContainer[] =
303 "Invalid value for 'app.launch.container'."; 310 "Invalid value for 'app.launch.container'.";
304 const char kInvalidLaunchContainerForNonPlatform[] = 311 const char kInvalidLaunchContainerForNonPlatform[] =
305 "'app.launch.container' = 'shell' can only be used with platform_app."; 312 "'app.launch.container' = 'shell' can only be used with platform_app.";
306 const char kInvalidLaunchContainerForPlatform[] = 313 const char kInvalidLaunchContainerForPlatform[] =
307 "platform_app requires 'app.launch.container' == 'shell'."; 314 "platform_app requires 'app.launch.container' == 'shell'.";
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 551 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
545 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; 552 const char kAppsPromoHistogram[] = "Extensions.AppsPromo";
546 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; 553 const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
547 #if defined(OS_CHROMEOS) 554 #if defined(OS_CHROMEOS)
548 const char kAccessExtensionPath[] = 555 const char kAccessExtensionPath[] =
549 "/usr/share/chromeos-assets/accessibility/extensions"; 556 "/usr/share/chromeos-assets/accessibility/extensions";
550 const char kChromeVoxDirectoryName[] = "access_chromevox"; 557 const char kChromeVoxDirectoryName[] = "access_chromevox";
551 #endif 558 #endif
552 559
553 } 560 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698