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

Unified Diff: third_party/chrome/idl/app_runtime.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « third_party/chrome/idl/app_current_window_internal.idl ('k') | third_party/chrome/idl/app_window.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/app_runtime.idl
diff --git a/third_party/chrome/idl/app_runtime.idl b/third_party/chrome/idl/app_runtime.idl
new file mode 100644
index 0000000000000000000000000000000000000000..e63dc5b471b367726ce0b03b23f5c8841cfdf899
--- /dev/null
+++ b/third_party/chrome/idl/app_runtime.idl
@@ -0,0 +1,72 @@
+// 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 {
+
+ callback NullCallback = void ();
+
+ // A WebIntents intent object. Deprecated.
+ [nodoc] dictionary Intent {
+ // The WebIntent being invoked.
+ DOMString action;
+
+ // The MIME type of the data.
+ DOMString type;
+
+ // Data associated with the intent.
+ any data;
+
+ // Callback to be compatible with WebIntents.
+ NullCallback postResult;
+
+ // Callback to be compatible with WebIntents.
+ NullCallback postFailure;
+ };
+
+ [inline_doc] dictionary LaunchItem {
+ // FileEntry for the file.
+ [instanceOf=FileEntry] object entry;
+
+ // The MIME type of the file.
+ DOMString type;
+ };
+
+ // Optional data for the launch.
+ [inline_doc] dictionary LaunchData {
+ [nodoc] Intent intent;
+
+ // The id of the file handler that the app is being invoked with.
+ DOMString? id;
+
+ LaunchItem[]? items;
+ };
+
+ interface Events {
+ // Fired when an app is launched from the launcher or in response to a web
+ // intent.
+ static void onLaunched(optional LaunchData launchData);
+
+ // Fired at Chrome startup to apps that were running when Chrome last shut
+ // down.
+ static void onRestarted();
+ };
+
+ dictionary IntentResponse {
+ // Identifies the intent.
+ long intentId;
+
+ // Was this intent successful? (i.e., postSuccess vs postFailure).
+ boolean success;
+
+ // Data associated with the intent response.
+ any data;
+ };
+
+ interface Functions {
+ // postIntentResponse is an internal method to responds to an intent
+ // previously sent to a packaged app. This is identified by intentId, and
+ // should only be invoked at most once per intentId.
+ [nodoc] static void postIntentResponse(IntentResponse intentResponse);
+ };
+};
« no previous file with comments | « third_party/chrome/idl/app_current_window_internal.idl ('k') | third_party/chrome/idl/app_window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698