| Index: tools/dom/src/chrome/app_runtime.dart
|
| diff --git a/tools/dom/src/chrome/app_runtime.dart b/tools/dom/src/chrome/app_runtime.dart
|
| index 15d32e2c7ef5066f50266dff1c628d6f74ba802a..89ad482674b925c429a1e100b22bee2e58f420e4 100644
|
| --- a/tools/dom/src/chrome/app_runtime.dart
|
| +++ b/tools/dom/src/chrome/app_runtime.dart
|
| @@ -10,48 +10,6 @@ part of chrome;
|
| * Types
|
| */
|
|
|
| -class AppRuntimeIntent extends ChromeObject {
|
| - /*
|
| - * Private constructor
|
| - */
|
| - AppRuntimeIntent._proxy(_jsObject) : super._proxy(_jsObject);
|
| -
|
| - /*
|
| - * Public accessors
|
| - */
|
| - /// The WebIntent being invoked.
|
| - String get action => JS('String', '#.action', this._jsObject);
|
| -
|
| - void set action(String action) {
|
| - JS('void', '#.action = #', this._jsObject, action);
|
| - }
|
| -
|
| - /// The MIME type of the data.
|
| - String get type => JS('String', '#.type', this._jsObject);
|
| -
|
| - void set type(String type) {
|
| - JS('void', '#.type = #', this._jsObject, type);
|
| - }
|
| -
|
| - /// Data associated with the intent.
|
| - Object get data => JS('Object', '#.data', this._jsObject);
|
| -
|
| - void set data(Object data) {
|
| - JS('void', '#.data = #', this._jsObject, convertArgument(data));
|
| - }
|
| -
|
| -
|
| - /*
|
| - * Methods
|
| - */
|
| - /// Callback to be compatible with WebIntents.
|
| - void postResult() => JS('void', '#.postResult()', this._jsObject);
|
| -
|
| - /// Callback to be compatible with WebIntents.
|
| - void postFailure() => JS('void', '#.postFailure()', this._jsObject);
|
| -
|
| -}
|
| -
|
| class AppRuntimeLaunchItem extends ChromeObject {
|
| /*
|
| * Public constructor
|
| @@ -91,9 +49,7 @@ class AppRuntimeLaunchData extends ChromeObject {
|
| /*
|
| * Public constructor
|
| */
|
| - AppRuntimeLaunchData({AppRuntimeIntent intent, String id, List<AppRuntimeLaunchItem> items}) {
|
| - if (?intent)
|
| - this.intent = intent;
|
| + AppRuntimeLaunchData({String id, List<AppRuntimeLaunchItem> items}) {
|
| if (?id)
|
| this.id = id;
|
| if (?items)
|
| @@ -108,12 +64,6 @@ class AppRuntimeLaunchData extends ChromeObject {
|
| /*
|
| * Public accessors
|
| */
|
| - AppRuntimeIntent get intent => new AppRuntimeIntent._proxy(JS('', '#.intent', this._jsObject));
|
| -
|
| - void set intent(AppRuntimeIntent intent) {
|
| - JS('void', '#.intent = #', this._jsObject, convertArgument(intent));
|
| - }
|
| -
|
| /// The id of the file handler that the app is being invoked with.
|
| String get id => JS('String', '#.id', this._jsObject);
|
|
|
| @@ -135,56 +85,11 @@ class AppRuntimeLaunchData extends ChromeObject {
|
|
|
| }
|
|
|
| -class AppRuntimeIntentResponse extends ChromeObject {
|
| - /*
|
| - * Public constructor
|
| - */
|
| - AppRuntimeIntentResponse({int intentId, bool success, Object data}) {
|
| - if (?intentId)
|
| - this.intentId = intentId;
|
| - if (?success)
|
| - this.success = success;
|
| - if (?data)
|
| - this.data = data;
|
| - }
|
| -
|
| - /*
|
| - * Private constructor
|
| - */
|
| - AppRuntimeIntentResponse._proxy(_jsObject) : super._proxy(_jsObject);
|
| -
|
| - /*
|
| - * Public accessors
|
| - */
|
| - /// Identifies the intent.
|
| - int get intentId => JS('int', '#.intentId', this._jsObject);
|
| -
|
| - void set intentId(int intentId) {
|
| - JS('void', '#.intentId = #', this._jsObject, intentId);
|
| - }
|
| -
|
| - /// Was this intent successful? (i.e., postSuccess vs postFailure).
|
| - bool get success => JS('bool', '#.success', this._jsObject);
|
| -
|
| - void set success(bool success) {
|
| - JS('void', '#.success = #', this._jsObject, success);
|
| - }
|
| -
|
| - /// Data associated with the intent response.
|
| - Object get data => JS('Object', '#.data', this._jsObject);
|
| -
|
| - void set data(Object data) {
|
| - JS('void', '#.data = #', this._jsObject, convertArgument(data));
|
| - }
|
| -
|
| -}
|
| -
|
| /**
|
| * Events
|
| */
|
|
|
| -/// Fired when an app is launched from the launcher or in response to a web
|
| -/// intent.
|
| +/// Fired when an app is launched from the launcher.
|
| class Event_app_runtime_onLaunched extends Event {
|
| void addListener(void callback(AppRuntimeLaunchData launchData)) {
|
| void __proxy_callback(launchData) {
|
| @@ -243,15 +148,6 @@ class API_app_runtime {
|
| */
|
| Event_app_runtime_onLaunched onLaunched;
|
| Event_app_runtime_onRestarted onRestarted;
|
| -
|
| - /*
|
| - * 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.
|
| - void postIntentResponse(AppRuntimeIntentResponse intentResponse) => JS('void', '#.postIntentResponse(#)', this._jsObject, convertArgument(intentResponse));
|
| -
|
| API_app_runtime(this._jsObject) {
|
| onLaunched = new Event_app_runtime_onLaunched(JS('', '#.onLaunched', this._jsObject));
|
| onRestarted = new Event_app_runtime_onRestarted(JS('', '#.onRestarted', this._jsObject));
|
|
|