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

Side by Side Diff: chrome/common/extensions/extension_manifest_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, 8 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_manifest_constants.h" 5 #include "chrome/common/extensions/extension_manifest_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 kAltKey[] = "altKey"; 10 const char kAltKey[] = "altKey";
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const char kPlatformApp[] = "platform_app"; 88 const char kPlatformApp[] = "platform_app";
89 const char kPlugins[] = "plugins"; 89 const char kPlugins[] = "plugins";
90 const char kPluginsPath[] = "path"; 90 const char kPluginsPath[] = "path";
91 const char kPluginsPublic[] = "public"; 91 const char kPluginsPublic[] = "public";
92 const char kPublicKey[] = "key"; 92 const char kPublicKey[] = "key";
93 const char kRequirements[] = "requirements"; 93 const char kRequirements[] = "requirements";
94 const char kRunAt[] = "run_at"; 94 const char kRunAt[] = "run_at";
95 const char kShiftKey[] = "shiftKey"; 95 const char kShiftKey[] = "shiftKey";
96 const char kShortcutKey[] = "shortcutKey"; 96 const char kShortcutKey[] = "shortcutKey";
97 const char kSignature[] = "signature"; 97 const char kSignature[] = "signature";
98 const char kSuggestedKey[] = "suggested_key";
98 const char kTheme[] = "theme"; 99 const char kTheme[] = "theme";
99 const char kThemeColors[] = "colors"; 100 const char kThemeColors[] = "colors";
100 const char kThemeDisplayProperties[] = "properties"; 101 const char kThemeDisplayProperties[] = "properties";
101 const char kThemeImages[] = "images"; 102 const char kThemeImages[] = "images";
102 const char kThemeTints[] = "tints"; 103 const char kThemeTints[] = "tints";
103 const char kTtsEngine[] = "tts_engine"; 104 const char kTtsEngine[] = "tts_engine";
104 const char kTtsGenderFemale[] = "female"; 105 const char kTtsGenderFemale[] = "female";
105 const char kTtsGenderMale[] = "male"; 106 const char kTtsGenderMale[] = "male";
106 const char kTtsVoices[] = "voices"; 107 const char kTtsVoices[] = "voices";
107 const char kTtsVoicesEventTypeEnd[] = "end"; 108 const char kTtsVoicesEventTypeEnd[] = "end";
108 const char kTtsVoicesEventTypeError[] = "error"; 109 const char kTtsVoicesEventTypeError[] = "error";
109 const char kTtsVoicesEventTypeMarker[] = "marker"; 110 const char kTtsVoicesEventTypeMarker[] = "marker";
110 const char kTtsVoicesEventTypeSentence[] = "sentence"; 111 const char kTtsVoicesEventTypeSentence[] = "sentence";
111 const char kTtsVoicesEventTypeStart[] = "start"; 112 const char kTtsVoicesEventTypeStart[] = "start";
112 const char kTtsVoicesEventTypeWord[] = "word"; 113 const char kTtsVoicesEventTypeWord[] = "word";
113 const char kTtsVoicesEventTypes[] = "event_types"; 114 const char kTtsVoicesEventTypes[] = "event_types";
114 const char kTtsVoicesGender[] = "gender"; 115 const char kTtsVoicesGender[] = "gender";
115 const char kTtsVoicesLang[] = "lang"; 116 const char kTtsVoicesLang[] = "lang";
116 const char kTtsVoicesVoiceName[] = "voice_name"; 117 const char kTtsVoicesVoiceName[] = "voice_name";
117 const char kType[] = "type"; 118 const char kType[] = "type";
118 const char kUpdateURL[] = "update_url"; 119 const char kUpdateURL[] = "update_url";
119 const char kVersion[] = "version"; 120 const char kVersion[] = "version";
120 const char kWebAccessibleResources[] = "web_accessible_resources"; 121 const char kWebAccessibleResources[] = "web_accessible_resources";
121 const char kWebURLs[] = "app.urls"; 122 const char kWebURLs[] = "app.urls";
122 } // namespace extension_manifest_keys 123 } // namespace extension_manifest_keys
123 124
124 namespace extension_manifest_values { 125 namespace extension_manifest_values {
125 const char kBrowserActionKeybindingEvent[] = "browserAction"; 126 const char kBrowserActionKeybindingEvent[] = "_execute_browser_action";
126 const char kIncognitoSplit[] = "split"; 127 const char kIncognitoSplit[] = "split";
127 const char kIncognitoSpanning[] = "spanning"; 128 const char kIncognitoSpanning[] = "spanning";
128 const char kIntentDispositionWindow[] = "window"; 129 const char kIntentDispositionWindow[] = "window";
129 const char kIntentDispositionInline[] = "inline"; 130 const char kIntentDispositionInline[] = "inline";
130 const char kIsolatedStorage[] = "storage"; 131 const char kIsolatedStorage[] = "storage";
132 const char kKeybindingPlatformChromeOs[] = "chromeos";
133 const char kKeybindingPlatformDefault[] = "default";
134 const char kKeybindingPlatformLinux[] = "linux";
135 const char kKeybindingPlatformMac[] = "mac";
136 const char kKeybindingPlatformWin[] = "windows";
131 const char kRunAtDocumentStart[] = "document_start"; 137 const char kRunAtDocumentStart[] = "document_start";
132 const char kRunAtDocumentEnd[] = "document_end"; 138 const char kRunAtDocumentEnd[] = "document_end";
133 const char kRunAtDocumentIdle[] = "document_idle"; 139 const char kRunAtDocumentIdle[] = "document_idle";
134 const char kPageActionKeybindingEvent[] = "pageAction"; 140 const char kPageActionKeybindingEvent[] = "_execute_page_action";
135 const char kPageActionTypeTab[] = "tab"; 141 const char kPageActionTypeTab[] = "tab";
136 const char kPageActionTypePermanent[] = "permanent"; 142 const char kPageActionTypePermanent[] = "permanent";
137 const char kLaunchContainerPanel[] = "panel"; 143 const char kLaunchContainerPanel[] = "panel";
138 const char kLaunchContainerShell[] = "shell"; 144 const char kLaunchContainerShell[] = "shell";
139 const char kLaunchContainerTab[] = "tab"; 145 const char kLaunchContainerTab[] = "tab";
140 const char kLaunchContainerWindow[] = "window"; 146 const char kLaunchContainerWindow[] = "window";
141 } // namespace extension_manifest_values 147 } // namespace extension_manifest_values
142 148
143 // Extension-related error messages. Some of these are simple patterns, where a 149 // Extension-related error messages. Some of these are simple patterns, where a
144 // '*' is replaced at runtime with a specific value. This is used instead of 150 // '*' is replaced at runtime with a specific value. This is used instead of
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 "Invalid value for 'app.isolation'."; 291 "Invalid value for 'app.isolation'.";
286 const char kInvalidIsolationValue[] = 292 const char kInvalidIsolationValue[] =
287 "Invalid value for 'app.isolation[*]'."; 293 "Invalid value for 'app.isolation[*]'.";
288 const char kInvalidJs[] = 294 const char kInvalidJs[] =
289 "Invalid value for 'content_scripts[*].js[*]'."; 295 "Invalid value for 'content_scripts[*].js[*]'.";
290 const char kInvalidJsList[] = 296 const char kInvalidJsList[] =
291 "Required value 'content_scripts[*].js' is invalid."; 297 "Required value 'content_scripts[*].js' is invalid.";
292 const char kInvalidKey[] = 298 const char kInvalidKey[] =
293 "Value 'key' is missing or invalid."; 299 "Value 'key' is missing or invalid.";
294 const char kInvalidKeyBinding[] = 300 const char kInvalidKeyBinding[] =
295 "Invalid value for 'commands[*].key':"; 301 "Invalid value for 'commands[*].*': *.";
296 const char kInvalidKeyBindingDescription[] = 302 const char kInvalidKeyBindingDescription[] =
297 "Invalid value for 'commands[*].description'."; 303 "Invalid value for 'commands[*].description'.";
298 const char kInvalidKeyBindingDictionary[] = 304 const char kInvalidKeyBindingDictionary[] =
299 "Contents of 'commands[*]' invalid."; 305 "Contents of 'commands[*]' invalid.";
306 const char kInvalidKeyBindingMissingPlatform[] =
307 "Could not find key specification for 'command[*].*': Either specify a key "
308 "for '*', or specify a default key.";
309 const char kInvalidKeyBindingUnknownPlatform[] =
310 "Unknown platform for 'command[*]': *. Valid values are: 'windows', 'mac'"
311 " 'chromeos', 'linux' and 'default'.";
300 const char kInvalidLaunchContainer[] = 312 const char kInvalidLaunchContainer[] =
301 "Invalid value for 'app.launch.container'."; 313 "Invalid value for 'app.launch.container'.";
302 const char kInvalidLaunchContainerForNonPlatform[] = 314 const char kInvalidLaunchContainerForNonPlatform[] =
303 "'app.launch.container' = 'shell' can only be used with platform_app."; 315 "'app.launch.container' = 'shell' can only be used with platform_app.";
304 const char kInvalidLaunchContainerForPlatform[] = 316 const char kInvalidLaunchContainerForPlatform[] =
305 "platform_app requires 'app.launch.container' == 'shell'."; 317 "platform_app requires 'app.launch.container' == 'shell'.";
306 const char kInvalidLaunchValue[] = 318 const char kInvalidLaunchValue[] =
307 "Invalid value for '*'."; 319 "Invalid value for '*'.";
308 const char kInvalidLaunchValueContainer[] = 320 const char kInvalidLaunchValueContainer[] =
309 "Invalid container type for '*'."; 321 "Invalid container type for '*'.";
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 "Loading platform_app extension type is turned off by default. " 472 "Loading platform_app extension type is turned off by default. "
461 "You can enable this type with the --enable-platform-apps " 473 "You can enable this type with the --enable-platform-apps "
462 "command-line flag."; 474 "command-line flag.";
463 const char kReservedMessageFound[] = 475 const char kReservedMessageFound[] =
464 "Reserved key * found in message catalog."; 476 "Reserved key * found in message catalog.";
465 #if defined(OS_CHROMEOS) 477 #if defined(OS_CHROMEOS)
466 const char kIllegalPlugins[] = 478 const char kIllegalPlugins[] =
467 "Extensions cannot install plugins on Chrome OS"; 479 "Extensions cannot install plugins on Chrome OS";
468 #endif 480 #endif
469 } // namespace extension_manifest_errors 481 } // namespace extension_manifest_errors
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_manifest_constants.h ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698