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

Unified Diff: chrome/common/extensions/api/experimental_app.json

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows tests fixed Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental_app.json
diff --git a/chrome/common/extensions/api/experimental_app.json b/chrome/common/extensions/api/experimental_app.json
index a169fe5e699fba0189b0329fe44cf3445a7d2a6f..0eeb43a97988f0a72bddc66cb26e7a1523ace8c5 100644
--- a/chrome/common/extensions/api/experimental_app.json
+++ b/chrome/common/extensions/api/experimental_app.json
@@ -83,7 +83,47 @@
"nodoc": true,
"name": "onLaunched",
"type": "function",
- "description": "Fired when the app is launched."
+ "description": "Fired when the app is launched.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "launchData",
+ "description": "Optional data for the launch.",
+ "optional": true,
+ "properties": {
+ "intent": {
+ "type": "object",
+ "description": "File being opened in the form of a WebIntents intent object.",
+ "properties": {
+ "action": {
+ "type": "string",
+ "description": "The WebIntent being invoked."
+ },
+ "type": {
+ "type": "string",
+ "description": "The MIME type of the file being opened."
+ },
+ "data": {
+ "type": "object",
+ "isInstanceOf": "FileEntry",
+ "description": "A FileEntry for the file being opened.",
+ "additionalProperties": {
+ "type": "any"
+ }
+ },
+ "postResult": {
+ "type": "function",
+ "description": "Null callback to be compatible with WebIntents."
+ },
+ "postFailure": {
+ "type": "function",
+ "description": "Null callback to be compatible with WebIntents."
+ }
+ }
+ }
+ }
+ }
+ ]
}
]
}
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698