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

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

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced/merged, resolved conflicts. Created 8 years, 4 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
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."
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698