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

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

Issue 8849010: Add 'web_accessible_resource" keyword for version 2 extension manifests. This makes extension res... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 "Invalid value for 'tts_engine.voices[*].lang'."; 378 "Invalid value for 'tts_engine.voices[*].lang'.";
378 const char kInvalidTtsVoicesVoiceName[] = 379 const char kInvalidTtsVoicesVoiceName[] =
379 "Invalid value for 'tts_engine.voices[*].voice_name'."; 380 "Invalid value for 'tts_engine.voices[*].voice_name'.";
380 const char kInvalidUpdateURL[] = 381 const char kInvalidUpdateURL[] =
381 "Invalid value for update url: '[*]'."; 382 "Invalid value for update url: '[*]'.";
382 const char kInvalidURLPatternError[] = 383 const char kInvalidURLPatternError[] =
383 "Invalid url pattern '*'"; 384 "Invalid url pattern '*'";
384 const char kInvalidVersion[] = 385 const char kInvalidVersion[] =
385 "Required value 'version' is missing or invalid. It must be between 1-4 " 386 "Required value 'version' is missing or invalid. It must be between 1-4 "
386 "dot-separated integers each between 0 and 65536."; 387 "dot-separated integers each between 0 and 65536.";
388 const char kInvalidWebAccessibleResourcesList[] =
389 "Invalid value for 'web_accessible_resources'.";
390 const char kInvalidWebAccessibleResource[] =
391 "Invalid value for 'web_accessible_resources[*]'.";
387 const char kInvalidWebURL[] = 392 const char kInvalidWebURL[] =
388 "Invalid value for 'app.urls[*]': *"; 393 "Invalid value for 'app.urls[*]': *";
389 const char kInvalidWebURLs[] = 394 const char kInvalidWebURLs[] =
390 "Invalid value for 'app.urls'."; 395 "Invalid value for 'app.urls'.";
391 const char kInvalidZipHash[] = 396 const char kInvalidZipHash[] =
392 "Required key 'zip_hash' is missing or invalid."; 397 "Required key 'zip_hash' is missing or invalid.";
393 const char kLaunchPathAndExtentAreExclusive[] = 398 const char kLaunchPathAndExtentAreExclusive[] =
394 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; 399 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
395 const char kLaunchPathAndURLAreExclusive[] = 400 const char kLaunchPathAndURLAreExclusive[] =
396 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " 401 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot "
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 494 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
490 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; 495 const char kAppsPromoHistogram[] = "Extensions.AppsPromo";
491 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; 496 const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
492 #if defined(OS_CHROMEOS) 497 #if defined(OS_CHROMEOS)
493 const char kAccessExtensionPath[] = 498 const char kAccessExtensionPath[] =
494 "/usr/share/chromeos-assets/accessibility/extensions"; 499 "/usr/share/chromeos-assets/accessibility/extensions";
495 const char kChromeVoxDirectoryName[] = "access_chromevox"; 500 const char kChromeVoxDirectoryName[] = "access_chromevox";
496 #endif 501 #endif
497 502
498 } 503 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_manifests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698