| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 const char kTtsVoicesEventTypeSentence[] = "sentence"; | 105 const char kTtsVoicesEventTypeSentence[] = "sentence"; |
| 106 const char kTtsVoicesEventTypeStart[] = "start"; | 106 const char kTtsVoicesEventTypeStart[] = "start"; |
| 107 const char kTtsVoicesEventTypeWord[] = "word"; | 107 const char kTtsVoicesEventTypeWord[] = "word"; |
| 108 const char kTtsVoicesEventTypes[] = "event_types"; | 108 const char kTtsVoicesEventTypes[] = "event_types"; |
| 109 const char kTtsVoicesGender[] = "gender"; | 109 const char kTtsVoicesGender[] = "gender"; |
| 110 const char kTtsVoicesLang[] = "lang"; | 110 const char kTtsVoicesLang[] = "lang"; |
| 111 const char kTtsVoicesVoiceName[] = "voice_name"; | 111 const char kTtsVoicesVoiceName[] = "voice_name"; |
| 112 const char kType[] = "type"; | 112 const char kType[] = "type"; |
| 113 const char kUpdateURL[] = "update_url"; | 113 const char kUpdateURL[] = "update_url"; |
| 114 const char kVersion[] = "version"; | 114 const char kVersion[] = "version"; |
| 115 const char kWebAccessibleResources[] = "web_accessible_resources"; |
| 115 const char kWebURLs[] = "app.urls"; | 116 const char kWebURLs[] = "app.urls"; |
| 116 } // namespace extension_manifest_keys | 117 } // namespace extension_manifest_keys |
| 117 | 118 |
| 118 namespace extension_manifest_values { | 119 namespace extension_manifest_values { |
| 119 const char kIncognitoSplit[] = "split"; | 120 const char kIncognitoSplit[] = "split"; |
| 120 const char kIncognitoSpanning[] = "spanning"; | 121 const char kIncognitoSpanning[] = "spanning"; |
| 121 const char kIntentDispositionWindow[] = "window"; | 122 const char kIntentDispositionWindow[] = "window"; |
| 122 const char kIntentDispositionInline[] = "inline"; | 123 const char kIntentDispositionInline[] = "inline"; |
| 123 const char kIsolatedStorage[] = "storage"; | 124 const char kIsolatedStorage[] = "storage"; |
| 124 const char kRunAtDocumentStart[] = "document_start"; | 125 const char kRunAtDocumentStart[] = "document_start"; |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 "Invalid value for 'tts_engine.voices[*].lang'."; | 381 "Invalid value for 'tts_engine.voices[*].lang'."; |
| 381 const char kInvalidTtsVoicesVoiceName[] = | 382 const char kInvalidTtsVoicesVoiceName[] = |
| 382 "Invalid value for 'tts_engine.voices[*].voice_name'."; | 383 "Invalid value for 'tts_engine.voices[*].voice_name'."; |
| 383 const char kInvalidUpdateURL[] = | 384 const char kInvalidUpdateURL[] = |
| 384 "Invalid value for update url: '[*]'."; | 385 "Invalid value for update url: '[*]'."; |
| 385 const char kInvalidURLPatternError[] = | 386 const char kInvalidURLPatternError[] = |
| 386 "Invalid url pattern '*'"; | 387 "Invalid url pattern '*'"; |
| 387 const char kInvalidVersion[] = | 388 const char kInvalidVersion[] = |
| 388 "Required value 'version' is missing or invalid. It must be between 1-4 " | 389 "Required value 'version' is missing or invalid. It must be between 1-4 " |
| 389 "dot-separated integers each between 0 and 65536."; | 390 "dot-separated integers each between 0 and 65536."; |
| 391 const char kInvalidWebAccessibleResourcesList[] = |
| 392 "Invalid value for 'web_accessible_resources'."; |
| 393 const char kInvalidWebAccessibleResource[] = |
| 394 "Invalid value for 'web_accessible_resources[*]'."; |
| 390 const char kInvalidWebURL[] = | 395 const char kInvalidWebURL[] = |
| 391 "Invalid value for 'app.urls[*]': *"; | 396 "Invalid value for 'app.urls[*]': *"; |
| 392 const char kInvalidWebURLs[] = | 397 const char kInvalidWebURLs[] = |
| 393 "Invalid value for 'app.urls'."; | 398 "Invalid value for 'app.urls'."; |
| 394 const char kInvalidZipHash[] = | 399 const char kInvalidZipHash[] = |
| 395 "Required key 'zip_hash' is missing or invalid."; | 400 "Required key 'zip_hash' is missing or invalid."; |
| 396 const char kLaunchPathAndExtentAreExclusive[] = | 401 const char kLaunchPathAndExtentAreExclusive[] = |
| 397 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; | 402 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; |
| 398 const char kLaunchPathAndURLAreExclusive[] = | 403 const char kLaunchPathAndURLAreExclusive[] = |
| 399 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " | 404 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; | 492 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; |
| 488 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; | 493 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; |
| 489 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; | 494 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; |
| 490 #if defined(OS_CHROMEOS) | 495 #if defined(OS_CHROMEOS) |
| 491 const char kAccessExtensionPath[] = | 496 const char kAccessExtensionPath[] = |
| 492 "/usr/share/chromeos-assets/accessibility/extensions"; | 497 "/usr/share/chromeos-assets/accessibility/extensions"; |
| 493 const char kChromeVoxDirectoryName[] = "access_chromevox"; | 498 const char kChromeVoxDirectoryName[] = "access_chromevox"; |
| 494 #endif | 499 #endif |
| 495 | 500 |
| 496 } | 501 } |
| OLD | NEW |