Index: chrome/common/extensions/api/app_runtime.json |
diff --git a/chrome/common/extensions/api/app_runtime.json b/chrome/common/extensions/api/app_runtime.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..69ffe9e85f39d6adc5df865f40e10d36ce625ccd |
--- /dev/null |
+++ b/chrome/common/extensions/api/app_runtime.json |
@@ -0,0 +1,52 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[ |
+ { |
+ "namespace":"app.runtime", |
asargent_no_longer_on_chrome
2012/08/10 00:09:10
nit: can you put this in an IDL instead of a .json
|
+ "events": [ |
+ { |
+ "name": "onLaunched", |
+ "type": "function", |
+ "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": "A WebIntents intent object.", |
+ "properties": { |
+ "action": { |
+ "type": "string", |
+ "description": "The WebIntent being invoked." |
+ }, |
+ "type": { |
+ "type": "string", |
+ "description": "The MIME type of the data." |
+ }, |
+ "data": { |
+ "type": "any", |
+ "description": "Data associated with the intent." |
+ }, |
+ "postResult": { |
+ "type": "function", |
+ "description": "Null callback to be compatible with WebIntents." |
+ }, |
+ "postFailure": { |
+ "type": "function", |
+ "description": "Null callback to be compatible with WebIntents." |
+ } |
+ } |
+ } |
+ } |
+ } |
+ ] |
+ } |
+ ] |
+ } |
+] |