| Index: dart/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| ===================================================================
|
| --- dart/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart (revision 29785)
|
| +++ dart/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart (working copy)
|
| @@ -151,20 +151,44 @@
|
| // To suppress missing implicit constructor warnings.
|
| factory Database._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + /**
|
| + * Static factory designed to expose `abort` events to event
|
| + * handlers that are not necessarily instances of [Database].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBDatabase.abortEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort');
|
|
|
| + /**
|
| + * Static factory designed to expose `close` events to event
|
| + * handlers that are not necessarily instances of [Database].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBDatabase.closeEvent')
|
| @DocsEditable()
|
| // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540
|
| @Experimental()
|
| static const EventStreamProvider<Event> closeEvent = const EventStreamProvider<Event>('close');
|
|
|
| + /**
|
| + * Static factory designed to expose `error` events to event
|
| + * handlers that are not necessarily instances of [Database].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBDatabase.errorEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| + /**
|
| + * Static factory designed to expose `versionchange` events to event
|
| + * handlers that are not necessarily instances of [Database].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBDatabase.versionchangeEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = const EventStreamProvider<VersionChangeEvent>('versionchange');
|
| @@ -236,20 +260,24 @@
|
| @DocsEditable()
|
| void removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBDatabase_removeEventListener_Callback";
|
|
|
| + /// Stream of `abort` events handled by this [Database].
|
| @DomName('IDBDatabase.onabort')
|
| @DocsEditable()
|
| Stream<Event> get onAbort => abortEvent.forTarget(this);
|
|
|
| + /// Stream of `close` events handled by this [Database].
|
| @DomName('IDBDatabase.onclose')
|
| @DocsEditable()
|
| // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540
|
| @Experimental()
|
| Stream<Event> get onClose => closeEvent.forTarget(this);
|
|
|
| + /// Stream of `error` events handled by this [Database].
|
| @DomName('IDBDatabase.onerror')
|
| @DocsEditable()
|
| Stream<Event> get onError => errorEvent.forTarget(this);
|
|
|
| + /// Stream of `versionchange` events handled by this [Database].
|
| @DomName('IDBDatabase.onversionchange')
|
| @DocsEditable()
|
| Stream<VersionChangeEvent> get onVersionChange => versionChangeEvent.forTarget(this);
|
| @@ -841,18 +869,32 @@
|
| // To suppress missing implicit constructor warnings.
|
| factory OpenDBRequest._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + /**
|
| + * Static factory designed to expose `blocked` events to event
|
| + * handlers that are not necessarily instances of [OpenDBRequest].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBOpenDBRequest.blockedEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> blockedEvent = const EventStreamProvider<Event>('blocked');
|
|
|
| + /**
|
| + * Static factory designed to expose `upgradeneeded` events to event
|
| + * handlers that are not necessarily instances of [OpenDBRequest].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBOpenDBRequest.upgradeneededEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = const EventStreamProvider<VersionChangeEvent>('upgradeneeded');
|
|
|
| + /// Stream of `blocked` events handled by this [OpenDBRequest].
|
| @DomName('IDBOpenDBRequest.onblocked')
|
| @DocsEditable()
|
| Stream<Event> get onBlocked => blockedEvent.forTarget(this);
|
|
|
| + /// Stream of `upgradeneeded` events handled by this [OpenDBRequest].
|
| @DomName('IDBOpenDBRequest.onupgradeneeded')
|
| @DocsEditable()
|
| Stream<VersionChangeEvent> get onUpgradeNeeded => upgradeNeededEvent.forTarget(this);
|
| @@ -872,10 +914,22 @@
|
| // To suppress missing implicit constructor warnings.
|
| factory Request._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + /**
|
| + * Static factory designed to expose `error` events to event
|
| + * handlers that are not necessarily instances of [Request].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBRequest.errorEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| + /**
|
| + * Static factory designed to expose `success` events to event
|
| + * handlers that are not necessarily instances of [Request].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBRequest.successEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> successEvent = const EventStreamProvider<Event>('success');
|
| @@ -912,10 +966,12 @@
|
| @DocsEditable()
|
| void removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBRequest_removeEventListener_Callback";
|
|
|
| + /// Stream of `error` events handled by this [Request].
|
| @DomName('IDBRequest.onerror')
|
| @DocsEditable()
|
| Stream<Event> get onError => errorEvent.forTarget(this);
|
|
|
| + /// Stream of `success` events handled by this [Request].
|
| @DomName('IDBRequest.onsuccess')
|
| @DocsEditable()
|
| Stream<Event> get onSuccess => successEvent.forTarget(this);
|
| @@ -961,14 +1017,32 @@
|
| // To suppress missing implicit constructor warnings.
|
| factory Transaction._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + /**
|
| + * Static factory designed to expose `abort` events to event
|
| + * handlers that are not necessarily instances of [Transaction].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBTransaction.abortEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort');
|
|
|
| + /**
|
| + * Static factory designed to expose `complete` events to event
|
| + * handlers that are not necessarily instances of [Transaction].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBTransaction.completeEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> completeEvent = const EventStreamProvider<Event>('complete');
|
|
|
| + /**
|
| + * Static factory designed to expose `error` events to event
|
| + * handlers that are not necessarily instances of [Transaction].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('IDBTransaction.errorEvent')
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
| @@ -1005,14 +1079,17 @@
|
| @DocsEditable()
|
| void removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBTransaction_removeEventListener_Callback";
|
|
|
| + /// Stream of `abort` events handled by this [Transaction].
|
| @DomName('IDBTransaction.onabort')
|
| @DocsEditable()
|
| Stream<Event> get onAbort => abortEvent.forTarget(this);
|
|
|
| + /// Stream of `complete` events handled by this [Transaction].
|
| @DomName('IDBTransaction.oncomplete')
|
| @DocsEditable()
|
| Stream<Event> get onComplete => completeEvent.forTarget(this);
|
|
|
| + /// Stream of `error` events handled by this [Transaction].
|
| @DomName('IDBTransaction.onerror')
|
| @DocsEditable()
|
| Stream<Event> get onError => errorEvent.forTarget(this);
|
|
|