OLD | NEW |
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 Loading... |
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 kSuggestedKeyMac[] = "suggested_key_mac"; |
| 102 const char kSuggestedKeyOther[] = "suggested_key_other"; |
| 103 const char kSuggestedKeyWin[] = "suggested_key_win"; |
101 const char kTheme[] = "theme"; | 104 const char kTheme[] = "theme"; |
102 const char kThemeColors[] = "colors"; | 105 const char kThemeColors[] = "colors"; |
103 const char kThemeDisplayProperties[] = "properties"; | 106 const char kThemeDisplayProperties[] = "properties"; |
104 const char kThemeImages[] = "images"; | 107 const char kThemeImages[] = "images"; |
105 const char kThemeTints[] = "tints"; | 108 const char kThemeTints[] = "tints"; |
106 const char kTtsEngine[] = "tts_engine"; | 109 const char kTtsEngine[] = "tts_engine"; |
107 const char kTtsGenderFemale[] = "female"; | 110 const char kTtsGenderFemale[] = "female"; |
108 const char kTtsGenderMale[] = "male"; | 111 const char kTtsGenderMale[] = "male"; |
109 const char kTtsVoices[] = "voices"; | 112 const char kTtsVoices[] = "voices"; |
110 const char kTtsVoicesEventTypeEnd[] = "end"; | 113 const char kTtsVoicesEventTypeEnd[] = "end"; |
111 const char kTtsVoicesEventTypeError[] = "error"; | 114 const char kTtsVoicesEventTypeError[] = "error"; |
112 const char kTtsVoicesEventTypeMarker[] = "marker"; | 115 const char kTtsVoicesEventTypeMarker[] = "marker"; |
113 const char kTtsVoicesEventTypeSentence[] = "sentence"; | 116 const char kTtsVoicesEventTypeSentence[] = "sentence"; |
114 const char kTtsVoicesEventTypeStart[] = "start"; | 117 const char kTtsVoicesEventTypeStart[] = "start"; |
115 const char kTtsVoicesEventTypeWord[] = "word"; | 118 const char kTtsVoicesEventTypeWord[] = "word"; |
116 const char kTtsVoicesEventTypes[] = "event_types"; | 119 const char kTtsVoicesEventTypes[] = "event_types"; |
117 const char kTtsVoicesGender[] = "gender"; | 120 const char kTtsVoicesGender[] = "gender"; |
118 const char kTtsVoicesLang[] = "lang"; | 121 const char kTtsVoicesLang[] = "lang"; |
119 const char kTtsVoicesVoiceName[] = "voice_name"; | 122 const char kTtsVoicesVoiceName[] = "voice_name"; |
120 const char kType[] = "type"; | 123 const char kType[] = "type"; |
121 const char kUpdateURL[] = "update_url"; | 124 const char kUpdateURL[] = "update_url"; |
122 const char kVersion[] = "version"; | 125 const char kVersion[] = "version"; |
123 const char kWebAccessibleResources[] = "web_accessible_resources"; | 126 const char kWebAccessibleResources[] = "web_accessible_resources"; |
124 const char kWebURLs[] = "app.urls"; | 127 const char kWebURLs[] = "app.urls"; |
125 } // namespace extension_manifest_keys | 128 } // namespace extension_manifest_keys |
126 | 129 |
127 namespace extension_manifest_values { | 130 namespace extension_manifest_values { |
128 const char kBrowserActionKeybindingEvent[] = "browserAction"; | 131 const char kBrowserActionKeybindingEvent[] = "_execute_browser_action"; |
129 const char kIncognitoSplit[] = "split"; | 132 const char kIncognitoSplit[] = "split"; |
130 const char kIncognitoSpanning[] = "spanning"; | 133 const char kIncognitoSpanning[] = "spanning"; |
131 const char kIntentDispositionWindow[] = "window"; | 134 const char kIntentDispositionWindow[] = "window"; |
132 const char kIntentDispositionInline[] = "inline"; | 135 const char kIntentDispositionInline[] = "inline"; |
133 const char kIsolatedStorage[] = "storage"; | 136 const char kIsolatedStorage[] = "storage"; |
134 const char kRunAtDocumentStart[] = "document_start"; | 137 const char kRunAtDocumentStart[] = "document_start"; |
135 const char kRunAtDocumentEnd[] = "document_end"; | 138 const char kRunAtDocumentEnd[] = "document_end"; |
136 const char kRunAtDocumentIdle[] = "document_idle"; | 139 const char kRunAtDocumentIdle[] = "document_idle"; |
137 const char kPageActionKeybindingEvent[] = "pageAction"; | 140 const char kPageActionKeybindingEvent[] = "_execute_page_action"; |
138 const char kPageActionTypeTab[] = "tab"; | 141 const char kPageActionTypeTab[] = "tab"; |
139 const char kPageActionTypePermanent[] = "permanent"; | 142 const char kPageActionTypePermanent[] = "permanent"; |
140 const char kLaunchContainerPanel[] = "panel"; | 143 const char kLaunchContainerPanel[] = "panel"; |
141 const char kLaunchContainerShell[] = "shell"; | 144 const char kLaunchContainerShell[] = "shell"; |
142 const char kLaunchContainerTab[] = "tab"; | 145 const char kLaunchContainerTab[] = "tab"; |
143 const char kLaunchContainerWindow[] = "window"; | 146 const char kLaunchContainerWindow[] = "window"; |
144 } // namespace extension_manifest_values | 147 } // namespace extension_manifest_values |
145 | 148 |
146 // 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 |
147 // '*' 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 "Invalid value for 'app.isolation'."; | 290 "Invalid value for 'app.isolation'."; |
288 const char kInvalidIsolationValue[] = | 291 const char kInvalidIsolationValue[] = |
289 "Invalid value for 'app.isolation[*]'."; | 292 "Invalid value for 'app.isolation[*]'."; |
290 const char kInvalidJs[] = | 293 const char kInvalidJs[] = |
291 "Invalid value for 'content_scripts[*].js[*]'."; | 294 "Invalid value for 'content_scripts[*].js[*]'."; |
292 const char kInvalidJsList[] = | 295 const char kInvalidJsList[] = |
293 "Required value 'content_scripts[*].js' is invalid."; | 296 "Required value 'content_scripts[*].js' is invalid."; |
294 const char kInvalidKey[] = | 297 const char kInvalidKey[] = |
295 "Value 'key' is missing or invalid."; | 298 "Value 'key' is missing or invalid."; |
296 const char kInvalidKeyBinding[] = | 299 const char kInvalidKeyBinding[] = |
297 "Invalid value for 'commands[*].key':"; | 300 "Invalid value for 'commands[*].*': *."; |
298 const char kInvalidKeyBindingDescription[] = | 301 const char kInvalidKeyBindingDescription[] = |
299 "Invalid value for 'commands[*].description'."; | 302 "Invalid value for 'commands[*].description'."; |
300 const char kInvalidKeyBindingDictionary[] = | 303 const char kInvalidKeyBindingDictionary[] = |
301 "Contents of 'commands[*]' invalid."; | 304 "Contents of 'commands[*]' invalid."; |
302 const char kInvalidLaunchContainer[] = | 305 const char kInvalidLaunchContainer[] = |
303 "Invalid value for 'app.launch.container'."; | 306 "Invalid value for 'app.launch.container'."; |
304 const char kInvalidLaunchContainerForNonPlatform[] = | 307 const char kInvalidLaunchContainerForNonPlatform[] = |
305 "'app.launch.container' = 'shell' can only be used with platform_app."; | 308 "'app.launch.container' = 'shell' can only be used with platform_app."; |
306 const char kInvalidLaunchContainerForPlatform[] = | 309 const char kInvalidLaunchContainerForPlatform[] = |
307 "platform_app requires 'app.launch.container' == 'shell'."; | 310 "platform_app requires 'app.launch.container' == 'shell'."; |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; | 547 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; |
545 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; | 548 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; |
546 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; | 549 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; |
547 #if defined(OS_CHROMEOS) | 550 #if defined(OS_CHROMEOS) |
548 const char kAccessExtensionPath[] = | 551 const char kAccessExtensionPath[] = |
549 "/usr/share/chromeos-assets/accessibility/extensions"; | 552 "/usr/share/chromeos-assets/accessibility/extensions"; |
550 const char kChromeVoxDirectoryName[] = "access_chromevox"; | 553 const char kChromeVoxDirectoryName[] = "access_chromevox"; |
551 #endif | 554 #endif |
552 | 555 |
553 } | 556 } |
OLD | NEW |