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

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

Issue 7917006: Extension loading extracts intents from Manifest data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed includes for moved headers Created 9 years, 3 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) 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 20 matching lines...) Expand all
31 const char* kExcludeGlobs = "exclude_globs"; 31 const char* kExcludeGlobs = "exclude_globs";
32 const char* kExcludeMatches = "exclude_matches"; 32 const char* kExcludeMatches = "exclude_matches";
33 const char* kFileFilters = "file_filters"; 33 const char* kFileFilters = "file_filters";
34 const char* kFileBrowserHandlers = "file_browser_handlers"; 34 const char* kFileBrowserHandlers = "file_browser_handlers";
35 const char* kHomepageURL = "homepage_url"; 35 const char* kHomepageURL = "homepage_url";
36 const char* kIcons = "icons"; 36 const char* kIcons = "icons";
37 const char* kId = "id"; 37 const char* kId = "id";
38 const char* kIncognito = "incognito"; 38 const char* kIncognito = "incognito";
39 const char* kIncludeGlobs = "include_globs"; 39 const char* kIncludeGlobs = "include_globs";
40 const char* kInputComponents = "input_components"; 40 const char* kInputComponents = "input_components";
41 const char* kIntents = "intents";
42 const char* kIntentType = "type";
43 const char* kIntentPath = "path";
44 const char* kIntentTitle = "title";
45 const char* kIntentDisposition = "disposition";
41 const char* kIsolation = "app.isolation"; 46 const char* kIsolation = "app.isolation";
42 const char* kJs = "js"; 47 const char* kJs = "js";
43 const char* kKeycode = "keyCode"; 48 const char* kKeycode = "keyCode";
44 const char* kLanguage = "language"; 49 const char* kLanguage = "language";
45 const char* kLaunch = "app.launch"; 50 const char* kLaunch = "app.launch";
46 const char* kLaunchContainer = "app.launch.container"; 51 const char* kLaunchContainer = "app.launch.container";
47 const char* kLaunchHeight = "app.launch.height"; 52 const char* kLaunchHeight = "app.launch.height";
48 const char* kLaunchLocalPath = "app.launch.local_path"; 53 const char* kLaunchLocalPath = "app.launch.local_path";
49 const char* kLaunchWebURL = "app.launch.web_url"; 54 const char* kLaunchWebURL = "app.launch.web_url";
50 const char* kLaunchWidth = "app.launch.width"; 55 const char* kLaunchWidth = "app.launch.width";
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const char* kTtsVoicesVoiceName = "voice_name"; 111 const char* kTtsVoicesVoiceName = "voice_name";
107 const char* kType = "type"; 112 const char* kType = "type";
108 const char* kUpdateURL = "update_url"; 113 const char* kUpdateURL = "update_url";
109 const char* kVersion = "version"; 114 const char* kVersion = "version";
110 const char* kWebURLs = "app.urls"; 115 const char* kWebURLs = "app.urls";
111 } // namespace extension_manifest_keys 116 } // namespace extension_manifest_keys
112 117
113 namespace extension_manifest_values { 118 namespace extension_manifest_values {
114 const char* kIncognitoSplit = "split"; 119 const char* kIncognitoSplit = "split";
115 const char* kIncognitoSpanning = "spanning"; 120 const char* kIncognitoSpanning = "spanning";
121 const char* kIntentDispositionWindow = "window";
122 const char* kIntentDispositionInline = "inline";
116 const char* kIsolatedStorage = "storage"; 123 const char* kIsolatedStorage = "storage";
117 const char* kRunAtDocumentStart = "document_start"; 124 const char* kRunAtDocumentStart = "document_start";
118 const char* kRunAtDocumentEnd = "document_end"; 125 const char* kRunAtDocumentEnd = "document_end";
119 const char* kRunAtDocumentIdle = "document_idle"; 126 const char* kRunAtDocumentIdle = "document_idle";
120 const char* kPageActionTypeTab = "tab"; 127 const char* kPageActionTypeTab = "tab";
121 const char* kPageActionTypePermanent = "permanent"; 128 const char* kPageActionTypePermanent = "permanent";
122 const char* kLaunchContainerPanel = "panel"; 129 const char* kLaunchContainerPanel = "panel";
123 const char* kLaunchContainerTab = "tab"; 130 const char* kLaunchContainerTab = "tab";
124 const char* kLaunchContainerWindow = "window"; 131 const char* kLaunchContainerWindow = "window";
125 } // namespace extension_manifest_values 132 } // namespace extension_manifest_values
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 const char* kInvalidInputComponentLayouts = 226 const char* kInvalidInputComponentLayouts =
220 "Invalid value for 'input_conponents[*].layouts"; 227 "Invalid value for 'input_conponents[*].layouts";
221 const char* kInvalidInputComponentName = 228 const char* kInvalidInputComponentName =
222 "Invalid value for 'input_conponents[*].name"; 229 "Invalid value for 'input_conponents[*].name";
223 const char* kInvalidInputComponentShortcutKey = 230 const char* kInvalidInputComponentShortcutKey =
224 "Invalid value for 'input_conponents[*].shortcutKey"; 231 "Invalid value for 'input_conponents[*].shortcutKey";
225 const char* kInvalidInputComponentShortcutKeycode = 232 const char* kInvalidInputComponentShortcutKeycode =
226 "Invalid value for 'input_conponents[*].shortcutKey.keyCode"; 233 "Invalid value for 'input_conponents[*].shortcutKey.keyCode";
227 const char* kInvalidInputComponentType = 234 const char* kInvalidInputComponentType =
228 "Invalid value for 'input_conponents[*].type"; 235 "Invalid value for 'input_conponents[*].type";
236 const char* kInvalidIntent =
237 "Invalid value for intents[*]";
238 const char* kInvalidIntentDisposition =
239 "Invalid value for intents[*].disposition";
240 const char* kInvalidIntentPath =
241 "Invalid value for intents[*].path";
242 const char* kInvalidIntents =
243 "Invalid value for intents";
244 const char* kInvalidIntentType =
245 "Invalid value for intents[*].type";
246 const char* kInvalidIntentTitle =
247 "Invalid value for intents[*].title";
229 const char* kInvalidIsolation = 248 const char* kInvalidIsolation =
230 "Invalid value for 'app.isolation'."; 249 "Invalid value for 'app.isolation'.";
231 const char* kInvalidIsolationValue = 250 const char* kInvalidIsolationValue =
232 "Invalid value for 'app.isolation[*]'."; 251 "Invalid value for 'app.isolation[*]'.";
233 const char* kInvalidJs = 252 const char* kInvalidJs =
234 "Invalid value for 'content_scripts[*].js[*]'."; 253 "Invalid value for 'content_scripts[*].js[*]'.";
235 const char* kInvalidJsList = 254 const char* kInvalidJsList =
236 "Required value 'content_scripts[*].js' is invalid."; 255 "Required value 'content_scripts[*].js' is invalid.";
237 const char* kInvalidKey = 256 const char* kInvalidKey =
238 "Value 'key' is missing or invalid."; 257 "Value 'key' is missing or invalid.";
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng"; 498 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng";
480 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; 499 const char* kAppsPromoHistogram = "Extensions.AppsPromo";
481 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; 500 const char* kAppLaunchHistogram = "Extensions.AppLaunch";
482 #if defined(OS_CHROMEOS) 501 #if defined(OS_CHROMEOS)
483 const char* kAccessExtensionPath = 502 const char* kAccessExtensionPath =
484 "/usr/share/chromeos-assets/accessibility/extensions"; 503 "/usr/share/chromeos-assets/accessibility/extensions";
485 const char* kChromeVoxDirectoryName = "access_chromevox"; 504 const char* kChromeVoxDirectoryName = "access_chromevox";
486 #endif 505 #endif
487 506
488 } 507 }
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