diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-26 07:09:36 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-26 07:09:36 +0000 |
commit | 12e54045b113f6aca10188b012b1ea529cec6bf2 (patch) | |
tree | fe3df5477fdf7c7dd0fe6a5f83c8a87b3f5d155b /chrome/common/extensions/api/experimental_app.json | |
parent | 7dc1be3f8b949012bb88a49faf0f81f0be363f06 (diff) | |
download | chromium_src-12e54045b113f6aca10188b012b1ea529cec6bf2.zip chromium_src-12e54045b113f6aca10188b012b1ea529cec6bf2.tar.gz chromium_src-12e54045b113f6aca10188b012b1ea529cec6bf2.tar.bz2 |
Pass command line arguments onto platform apps which provide the right intent.
Any command line arguments which are file names are passed through in
launchData.intent
BUG=None
TEST=New tests added
Review URL: https://chromiumcodereview.appspot.com/10332071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/experimental_app.json')
-rw-r--r-- | chrome/common/extensions/api/experimental_app.json | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/experimental_app.json b/chrome/common/extensions/api/experimental_app.json index a169fe5..0eeb43a 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." + } + } + } + } + } + ] } ] } |