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

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, 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_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 kKeybindingPlatformLinux[] = "linux";
134 const char kKeybindingPlatformMac[] = "mac";
135 const char kKeybindingPlatformWin[] = "windows";
131 const char kRunAtDocumentStart[] = "document_start"; 136 const char kRunAtDocumentStart[] = "document_start";
132 const char kRunAtDocumentEnd[] = "document_end"; 137 const char kRunAtDocumentEnd[] = "document_end";
133 const char kRunAtDocumentIdle[] = "document_idle"; 138 const char kRunAtDocumentIdle[] = "document_idle";
134 const char kPageActionKeybindingEvent[] = "pageAction"; 139 const char kPageActionKeybindingEvent[] = "_execute_page_action";
135 const char kPageActionTypeTab[] = "tab"; 140 const char kPageActionTypeTab[] = "tab";
136 const char kPageActionTypePermanent[] = "permanent"; 141 const char kPageActionTypePermanent[] = "permanent";
137 const char kLaunchContainerPanel[] = "panel"; 142 const char kLaunchContainerPanel[] = "panel";
138 const char kLaunchContainerShell[] = "shell"; 143 const char kLaunchContainerShell[] = "shell";
139 const char kLaunchContainerTab[] = "tab"; 144 const char kLaunchContainerTab[] = "tab";
140 const char kLaunchContainerWindow[] = "window"; 145 const char kLaunchContainerWindow[] = "window";
141 } // namespace extension_manifest_values 146 } // namespace extension_manifest_values
142 147
143 // Extension-related error messages. Some of these are simple patterns, where a 148 // 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 149 // '*' 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
284 "Invalid value for 'app.isolation'."; 289 "Invalid value for 'app.isolation'.";
285 const char kInvalidIsolationValue[] = 290 const char kInvalidIsolationValue[] =
286 "Invalid value for 'app.isolation[*]'."; 291 "Invalid value for 'app.isolation[*]'.";
287 const char kInvalidJs[] = 292 const char kInvalidJs[] =
288 "Invalid value for 'content_scripts[*].js[*]'."; 293 "Invalid value for 'content_scripts[*].js[*]'.";
289 const char kInvalidJsList[] = 294 const char kInvalidJsList[] =
290 "Required value 'content_scripts[*].js' is invalid."; 295 "Required value 'content_scripts[*].js' is invalid.";
291 const char kInvalidKey[] = 296 const char kInvalidKey[] =
292 "Value 'key' is missing or invalid."; 297 "Value 'key' is missing or invalid.";
293 const char kInvalidKeyBinding[] = 298 const char kInvalidKeyBinding[] =
294 "Invalid value for 'commands[*].key':"; 299 "Invalid value for 'commands[*].*': *.";
295 const char kInvalidKeyBindingDescription[] = 300 const char kInvalidKeyBindingDescription[] =
296 "Invalid value for 'commands[*].description'."; 301 "Invalid value for 'commands[*].description'.";
297 const char kInvalidKeyBindingDictionary[] = 302 const char kInvalidKeyBindingDictionary[] =
298 "Contents of 'commands[*]' invalid."; 303 "Contents of 'commands[*]' invalid.";
304 const char kInvalidKeyBindingMissingPlatform[] =
305 "Platform not specified in 'commands[*].*': *.";
Aaron Boodman 2012/03/26 21:44:57 Can you be more specific with this error. Somethin
299 const char kInvalidLaunchContainer[] = 306 const char kInvalidLaunchContainer[] =
300 "Invalid value for 'app.launch.container'."; 307 "Invalid value for 'app.launch.container'.";
301 const char kInvalidLaunchContainerForNonPlatform[] = 308 const char kInvalidLaunchContainerForNonPlatform[] =
302 "'app.launch.container' = 'shell' can only be used with platform_app."; 309 "'app.launch.container' = 'shell' can only be used with platform_app.";
303 const char kInvalidLaunchContainerForPlatform[] = 310 const char kInvalidLaunchContainerForPlatform[] =
304 "platform_app requires 'app.launch.container' == 'shell'."; 311 "platform_app requires 'app.launch.container' == 'shell'.";
305 const char kInvalidLaunchValue[] = 312 const char kInvalidLaunchValue[] =
306 "Invalid value for '*'."; 313 "Invalid value for '*'.";
307 const char kInvalidLaunchValueContainer[] = 314 const char kInvalidLaunchValueContainer[] =
308 "Invalid container type for '*'."; 315 "Invalid container type for '*'.";
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; 462 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
456 const char kPermissionNotAllowed[] = 463 const char kPermissionNotAllowed[] =
457 "Access to permission '*' denied."; 464 "Access to permission '*' denied.";
458 const char kReservedMessageFound[] = 465 const char kReservedMessageFound[] =
459 "Reserved key * found in message catalog."; 466 "Reserved key * found in message catalog.";
460 #if defined(OS_CHROMEOS) 467 #if defined(OS_CHROMEOS)
461 const char kIllegalPlugins[] = 468 const char kIllegalPlugins[] =
462 "Extensions cannot install plugins on Chrome OS"; 469 "Extensions cannot install plugins on Chrome OS";
463 #endif 470 #endif
464 } // namespace extension_manifest_errors 471 } // namespace extension_manifest_errors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698