| Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| index 2bb99f41440d846d8b2676d06d48d6f70788f76e..1a045c2dc5634f2dcbccf08c1a511ada1466aef3 100644
|
| --- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| +++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| @@ -138,26 +138,26 @@ const _annotation_Returns_IDBKey = const Returns(_idbKey);
|
| @DomName('IDBCursor')
|
| class Cursor native "*IDBCursor" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursor.direction')
|
| + @DocsEditable
|
| final String direction;
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursor.key')
|
| + @DocsEditable
|
| @_annotation_Creates_IDBKey
|
| @_annotation_Returns_IDBKey
|
| final Object key;
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursor.primaryKey')
|
| + @DocsEditable
|
| final Object primaryKey;
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursor.source')
|
| + @DocsEditable
|
| final dynamic source;
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursor.advance')
|
| + @DocsEditable
|
| void advance(int count) native;
|
|
|
| void continueFunction([/*IDBKey*/ key]) {
|
| @@ -170,16 +170,16 @@ class Cursor native "*IDBCursor" {
|
| return;
|
| }
|
| @JSName('continue')
|
| - @DocsEditable
|
| @DomName('IDBCursor.continue')
|
| + @DocsEditable
|
| void _continueFunction_1(key) native;
|
| @JSName('continue')
|
| - @DocsEditable
|
| @DomName('IDBCursor.continue')
|
| + @DocsEditable
|
| void _continueFunction_2() native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursor.delete')
|
| + @DocsEditable
|
| Request delete() native;
|
|
|
| Request update(/*any*/ value) {
|
| @@ -187,8 +187,8 @@ class Cursor native "*IDBCursor" {
|
| return _update_1(value_1);
|
| }
|
| @JSName('update')
|
| - @DocsEditable
|
| @DomName('IDBCursor.update')
|
| + @DocsEditable
|
| Request _update_1(value) native;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -201,8 +201,8 @@ class Cursor native "*IDBCursor" {
|
| @DomName('IDBCursorWithValue')
|
| class CursorWithValue extends Cursor native "*IDBCursorWithValue" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBCursorWithValue.value')
|
| + @DocsEditable
|
| @annotation_Creates_SerializedScriptValue
|
| @annotation_Returns_SerializedScriptValue
|
| final Object value;
|
| @@ -212,7 +212,6 @@ class CursorWithValue extends Cursor native "*IDBCursorWithValue" {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -@DocsEditable
|
| @DomName('IDBDatabase')
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
|
| @@ -238,16 +237,16 @@ class Database extends EventTarget native "*IDBDatabase" {
|
| Transaction _transaction(stores, mode) native;
|
|
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.abort')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort');
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.error')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.versionchange')
|
| + @DocsEditable
|
| static const EventStreamProvider<UpgradeNeededEvent> versionChangeEvent = const EventStreamProvider<UpgradeNeededEvent>('versionchange');
|
|
|
| @DocsEditable
|
| @@ -255,27 +254,27 @@ class Database extends EventTarget native "*IDBDatabase" {
|
| DatabaseEvents get on =>
|
| new DatabaseEvents(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.name')
|
| + @DocsEditable
|
| final String name;
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.objectStoreNames')
|
| + @DocsEditable
|
| @Returns('DomStringList')
|
| @Creates('DomStringList')
|
| final List<String> objectStoreNames;
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.version')
|
| + @DocsEditable
|
| final dynamic version;
|
|
|
| @JSName('addEventListener')
|
| - @DocsEditable
|
| @DomName('IDBDatabase.addEventListener')
|
| + @DocsEditable
|
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.close')
|
| + @DocsEditable
|
| void close() native;
|
|
|
| ObjectStore createObjectStore(String name, [Map options]) {
|
| @@ -286,38 +285,38 @@ class Database extends EventTarget native "*IDBDatabase" {
|
| return _createObjectStore_2(name);
|
| }
|
| @JSName('createObjectStore')
|
| - @DocsEditable
|
| @DomName('IDBDatabase.createObjectStore')
|
| + @DocsEditable
|
| ObjectStore _createObjectStore_1(name, options) native;
|
| @JSName('createObjectStore')
|
| - @DocsEditable
|
| @DomName('IDBDatabase.createObjectStore')
|
| + @DocsEditable
|
| ObjectStore _createObjectStore_2(name) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.deleteObjectStore')
|
| + @DocsEditable
|
| void deleteObjectStore(String name) native;
|
|
|
| @JSName('dispatchEvent')
|
| - @DocsEditable
|
| @DomName('IDBDatabase.dispatchEvent')
|
| + @DocsEditable
|
| bool $dom_dispatchEvent(Event evt) native;
|
|
|
| @JSName('removeEventListener')
|
| - @DocsEditable
|
| @DomName('IDBDatabase.removeEventListener')
|
| + @DocsEditable
|
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.abort')
|
| + @DocsEditable
|
| Stream<Event> get onAbort => abortEvent.forTarget(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.error')
|
| + @DocsEditable
|
| Stream<Event> get onError => errorEvent.forTarget(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBDatabase.versionchange')
|
| + @DocsEditable
|
| Stream<UpgradeNeededEvent> get onVersionChange => versionChangeEvent.forTarget(this);
|
| }
|
|
|
| @@ -340,7 +339,6 @@ class DatabaseEvents extends Events {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -@DocsEditable
|
| @DomName('IDBFactory')
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
|
| @@ -364,23 +362,23 @@ class IdbFactory native "*IDBFactory" {
|
| return _cmp_1(first_1, second_2);
|
| }
|
| @JSName('cmp')
|
| - @DocsEditable
|
| @DomName('IDBFactory.cmp')
|
| + @DocsEditable
|
| int _cmp_1(first, second) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBFactory.deleteDatabase')
|
| + @DocsEditable
|
| VersionChangeRequest deleteDatabase(String name) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBFactory.open')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Database')
|
| OpenDBRequest open(String name, [int version]) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBFactory.webkitGetDatabaseNames')
|
| + @DocsEditable
|
| Request webkitGetDatabaseNames() native;
|
|
|
| }
|
| @@ -394,24 +392,24 @@ class IdbFactory native "*IDBFactory" {
|
| @DomName('IDBIndex')
|
| class Index native "*IDBIndex" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBIndex.keyPath')
|
| + @DocsEditable
|
| final dynamic keyPath;
|
|
|
| - @DocsEditable
|
| @DomName('IDBIndex.multiEntry')
|
| + @DocsEditable
|
| final bool multiEntry;
|
|
|
| - @DocsEditable
|
| @DomName('IDBIndex.name')
|
| + @DocsEditable
|
| final String name;
|
|
|
| - @DocsEditable
|
| @DomName('IDBIndex.objectStore')
|
| + @DocsEditable
|
| final ObjectStore objectStore;
|
|
|
| - @DocsEditable
|
| @DomName('IDBIndex.unique')
|
| + @DocsEditable
|
| final bool unique;
|
|
|
| Request count([key_OR_range]) {
|
| @@ -428,16 +426,16 @@ class Index native "*IDBIndex" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('count')
|
| - @DocsEditable
|
| @DomName('IDBIndex.count')
|
| + @DocsEditable
|
| Request _count_1() native;
|
| @JSName('count')
|
| - @DocsEditable
|
| @DomName('IDBIndex.count')
|
| + @DocsEditable
|
| Request _count_2(KeyRange range) native;
|
| @JSName('count')
|
| - @DocsEditable
|
| @DomName('IDBIndex.count')
|
| + @DocsEditable
|
| Request _count_3(key) native;
|
|
|
| Request get(key) {
|
| @@ -451,15 +449,15 @@ class Index native "*IDBIndex" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('get')
|
| - @DocsEditable
|
| @DomName('IDBIndex.get')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @annotation_Creates_SerializedScriptValue
|
| Request _get_1(KeyRange key) native;
|
| @JSName('get')
|
| - @DocsEditable
|
| @DomName('IDBIndex.get')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @annotation_Creates_SerializedScriptValue
|
| @@ -476,16 +474,16 @@ class Index native "*IDBIndex" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('getKey')
|
| - @DocsEditable
|
| @DomName('IDBIndex.getKey')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @annotation_Creates_SerializedScriptValue
|
| @Creates('ObjectStore')
|
| Request _getKey_1(KeyRange key) native;
|
| @JSName('getKey')
|
| - @DocsEditable
|
| @DomName('IDBIndex.getKey')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @annotation_Creates_SerializedScriptValue
|
| @@ -516,36 +514,36 @@ class Index native "*IDBIndex" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_1() native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_2(KeyRange range) native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_3(KeyRange range, direction) native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_4(key) native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| @@ -575,36 +573,36 @@ class Index native "*IDBIndex" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('openKeyCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openKeyCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openKeyCursor_1() native;
|
| @JSName('openKeyCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openKeyCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openKeyCursor_2(KeyRange range) native;
|
| @JSName('openKeyCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openKeyCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openKeyCursor_3(KeyRange range, direction) native;
|
| @JSName('openKeyCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openKeyCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openKeyCursor_4(key) native;
|
| @JSName('openKeyCursor')
|
| - @DocsEditable
|
| @DomName('IDBIndex.openKeyCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| @@ -625,7 +623,6 @@ class Key native "*IDBKey" {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -@DocsEditable
|
| @DomName('IDBKeyRange')
|
| class KeyRange native "*IDBKeyRange" {
|
| @DomName('IDBKeyRange.only')
|
| @@ -649,22 +646,22 @@ class KeyRange native "*IDBKeyRange" {
|
|
|
| dynamic get lower => _convertNativeToDart_IDBKey(this._lower);
|
| @JSName('lower')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.lower')
|
| + @DocsEditable
|
| final dynamic _lower;
|
|
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.lowerOpen')
|
| + @DocsEditable
|
| final bool lowerOpen;
|
|
|
| dynamic get upper => _convertNativeToDart_IDBKey(this._upper);
|
| @JSName('upper')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.upper')
|
| + @DocsEditable
|
| final dynamic _upper;
|
|
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.upperOpen')
|
| + @DocsEditable
|
| final bool upperOpen;
|
|
|
| static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) {
|
| @@ -683,16 +680,16 @@ class KeyRange native "*IDBKeyRange" {
|
| return _bound__3(lower_5, upper_6);
|
| }
|
| @JSName('bound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.bound')
|
| + @DocsEditable
|
| static KeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native;
|
| @JSName('bound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.bound')
|
| + @DocsEditable
|
| static KeyRange _bound__2(lower, upper, lowerOpen) native;
|
| @JSName('bound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.bound')
|
| + @DocsEditable
|
| static KeyRange _bound__3(lower, upper) native;
|
|
|
| static KeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) {
|
| @@ -704,12 +701,12 @@ class KeyRange native "*IDBKeyRange" {
|
| return _lowerBound__2(bound_2);
|
| }
|
| @JSName('lowerBound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.lowerBound')
|
| + @DocsEditable
|
| static KeyRange _lowerBound__1(bound, open) native;
|
| @JSName('lowerBound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.lowerBound')
|
| + @DocsEditable
|
| static KeyRange _lowerBound__2(bound) native;
|
|
|
| static KeyRange only_(/*IDBKey*/ value) {
|
| @@ -717,8 +714,8 @@ class KeyRange native "*IDBKeyRange" {
|
| return _only__1(value_1);
|
| }
|
| @JSName('only')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.only')
|
| + @DocsEditable
|
| static KeyRange _only__1(value) native;
|
|
|
| static KeyRange upperBound_(/*IDBKey*/ bound, [bool open]) {
|
| @@ -730,12 +727,12 @@ class KeyRange native "*IDBKeyRange" {
|
| return _upperBound__2(bound_2);
|
| }
|
| @JSName('upperBound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.upperBound')
|
| + @DocsEditable
|
| static KeyRange _upperBound__1(bound, open) native;
|
| @JSName('upperBound')
|
| - @DocsEditable
|
| @DomName('IDBKeyRange.upperBound')
|
| + @DocsEditable
|
| static KeyRange _upperBound__2(bound) native;
|
|
|
| }
|
| @@ -749,26 +746,26 @@ class KeyRange native "*IDBKeyRange" {
|
| @DomName('IDBObjectStore')
|
| class ObjectStore native "*IDBObjectStore" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.autoIncrement')
|
| + @DocsEditable
|
| final bool autoIncrement;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.indexNames')
|
| + @DocsEditable
|
| @Returns('DomStringList')
|
| @Creates('DomStringList')
|
| final List<String> indexNames;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.keyPath')
|
| + @DocsEditable
|
| final dynamic keyPath;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.name')
|
| + @DocsEditable
|
| final String name;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.transaction')
|
| + @DocsEditable
|
| final Transaction transaction;
|
|
|
| Request add(/*any*/ value, [/*IDBKey*/ key]) {
|
| @@ -781,22 +778,22 @@ class ObjectStore native "*IDBObjectStore" {
|
| return _add_2(value_3);
|
| }
|
| @JSName('add')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.add')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @_annotation_Creates_IDBKey
|
| Request _add_1(value, key) native;
|
| @JSName('add')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.add')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @_annotation_Creates_IDBKey
|
| Request _add_2(value) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.clear')
|
| + @DocsEditable
|
| Request clear() native;
|
|
|
| Request count([key_OR_range]) {
|
| @@ -813,16 +810,16 @@ class ObjectStore native "*IDBObjectStore" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('count')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.count')
|
| + @DocsEditable
|
| Request _count_1() native;
|
| @JSName('count')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.count')
|
| + @DocsEditable
|
| Request _count_2(KeyRange range) native;
|
| @JSName('count')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.count')
|
| + @DocsEditable
|
| Request _count_3(key) native;
|
|
|
| Index createIndex(String name, keyPath, [Map options]) {
|
| @@ -845,20 +842,20 @@ class ObjectStore native "*IDBObjectStore" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('createIndex')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.createIndex')
|
| + @DocsEditable
|
| Index _createIndex_1(name, List<String> keyPath) native;
|
| @JSName('createIndex')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.createIndex')
|
| + @DocsEditable
|
| Index _createIndex_2(name, List<String> keyPath, options) native;
|
| @JSName('createIndex')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.createIndex')
|
| + @DocsEditable
|
| Index _createIndex_3(name, String keyPath) native;
|
| @JSName('createIndex')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.createIndex')
|
| + @DocsEditable
|
| Index _createIndex_4(name, String keyPath, options) native;
|
|
|
| Request delete(key_OR_keyRange) {
|
| @@ -872,16 +869,16 @@ class ObjectStore native "*IDBObjectStore" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('delete')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.delete')
|
| + @DocsEditable
|
| Request _delete_1(KeyRange keyRange) native;
|
| @JSName('delete')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.delete')
|
| + @DocsEditable
|
| Request _delete_2(key) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.deleteIndex')
|
| + @DocsEditable
|
| void deleteIndex(String name) native;
|
|
|
| Request getObject(key) {
|
| @@ -895,22 +892,22 @@ class ObjectStore native "*IDBObjectStore" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('get')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.get')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @annotation_Creates_SerializedScriptValue
|
| Request _getObject_1(KeyRange key) native;
|
| @JSName('get')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.get')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @annotation_Creates_SerializedScriptValue
|
| Request _getObject_2(key) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.index')
|
| + @DocsEditable
|
| Index index(String name) native;
|
|
|
| Request openCursor([key_OR_range, String direction]) {
|
| @@ -937,36 +934,36 @@ class ObjectStore native "*IDBObjectStore" {
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_1() native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_2(KeyRange range) native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_3(KeyRange range, direction) native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| Request _openCursor_4(key) native;
|
| @JSName('openCursor')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.openCursor')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @Creates('Cursor')
|
| @@ -982,15 +979,15 @@ class ObjectStore native "*IDBObjectStore" {
|
| return _put_2(value_3);
|
| }
|
| @JSName('put')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.put')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @_annotation_Creates_IDBKey
|
| Request _put_1(value, key) native;
|
| @JSName('put')
|
| - @DocsEditable
|
| @DomName('IDBObjectStore.put')
|
| + @DocsEditable
|
| @Returns('Request')
|
| @Creates('Request')
|
| @_annotation_Creates_IDBKey
|
| @@ -1006,12 +1003,12 @@ class ObjectStore native "*IDBObjectStore" {
|
| @DomName('IDBOpenDBRequest')
|
| class OpenDBRequest extends Request implements EventTarget native "*IDBOpenDBRequest" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBOpenDBRequest.blocked')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> blockedEvent = const EventStreamProvider<Event>('blocked');
|
|
|
| - @DocsEditable
|
| @DomName('IDBOpenDBRequest.upgradeneeded')
|
| + @DocsEditable
|
| static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = const EventStreamProvider<VersionChangeEvent>('upgradeneeded');
|
|
|
| @DocsEditable
|
| @@ -1019,12 +1016,12 @@ class OpenDBRequest extends Request implements EventTarget native "*IDBOpenDBReq
|
| OpenDBRequestEvents get on =>
|
| new OpenDBRequestEvents(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBOpenDBRequest.blocked')
|
| + @DocsEditable
|
| Stream<Event> get onBlocked => blockedEvent.forTarget(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBOpenDBRequest.upgradeneeded')
|
| + @DocsEditable
|
| Stream<VersionChangeEvent> get onUpgradeNeeded => upgradeNeededEvent.forTarget(this);
|
| }
|
|
|
| @@ -1049,12 +1046,12 @@ class OpenDBRequestEvents extends RequestEvents {
|
| @DomName('IDBRequest')
|
| class Request extends EventTarget native "*IDBRequest" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.error')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.success')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> successEvent = const EventStreamProvider<Event>('success');
|
|
|
| @DocsEditable
|
| @@ -1062,55 +1059,55 @@ class Request extends EventTarget native "*IDBRequest" {
|
| RequestEvents get on =>
|
| new RequestEvents(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.error')
|
| + @DocsEditable
|
| final DomError error;
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.readyState')
|
| + @DocsEditable
|
| final String readyState;
|
|
|
| dynamic get result => _convertNativeToDart_IDBAny(this._result);
|
| @JSName('result')
|
| - @DocsEditable
|
| @DomName('IDBRequest.result')
|
| + @DocsEditable
|
| @Creates('Null')
|
| final dynamic _result;
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.source')
|
| + @DocsEditable
|
| @Creates('Null')
|
| final dynamic source;
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.transaction')
|
| + @DocsEditable
|
| final Transaction transaction;
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.webkitErrorMessage')
|
| + @DocsEditable
|
| final String webkitErrorMessage;
|
|
|
| @JSName('addEventListener')
|
| - @DocsEditable
|
| @DomName('IDBRequest.addEventListener')
|
| + @DocsEditable
|
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| @JSName('dispatchEvent')
|
| - @DocsEditable
|
| @DomName('IDBRequest.dispatchEvent')
|
| + @DocsEditable
|
| bool $dom_dispatchEvent(Event evt) native;
|
|
|
| @JSName('removeEventListener')
|
| - @DocsEditable
|
| @DomName('IDBRequest.removeEventListener')
|
| + @DocsEditable
|
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.error')
|
| + @DocsEditable
|
| Stream<Event> get onError => errorEvent.forTarget(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBRequest.success')
|
| + @DocsEditable
|
| Stream<Event> get onSuccess => successEvent.forTarget(this);
|
| }
|
|
|
| @@ -1135,16 +1132,16 @@ class RequestEvents extends Events {
|
| @DomName('IDBTransaction')
|
| class Transaction extends EventTarget native "*IDBTransaction" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.abort')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort');
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.complete')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> completeEvent = const EventStreamProvider<Event>('complete');
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.error')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| @DocsEditable
|
| @@ -1152,55 +1149,55 @@ class Transaction extends EventTarget native "*IDBTransaction" {
|
| TransactionEvents get on =>
|
| new TransactionEvents(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.db')
|
| + @DocsEditable
|
| final Database db;
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.error')
|
| + @DocsEditable
|
| final DomError error;
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.mode')
|
| + @DocsEditable
|
| final String mode;
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.webkitErrorMessage')
|
| + @DocsEditable
|
| final String webkitErrorMessage;
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.abort')
|
| + @DocsEditable
|
| void abort() native;
|
|
|
| @JSName('addEventListener')
|
| - @DocsEditable
|
| @DomName('IDBTransaction.addEventListener')
|
| + @DocsEditable
|
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| @JSName('dispatchEvent')
|
| - @DocsEditable
|
| @DomName('IDBTransaction.dispatchEvent')
|
| + @DocsEditable
|
| bool $dom_dispatchEvent(Event evt) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.objectStore')
|
| + @DocsEditable
|
| ObjectStore objectStore(String name) native;
|
|
|
| @JSName('removeEventListener')
|
| - @DocsEditable
|
| @DomName('IDBTransaction.removeEventListener')
|
| + @DocsEditable
|
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.abort')
|
| + @DocsEditable
|
| Stream<Event> get onAbort => abortEvent.forTarget(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.complete')
|
| + @DocsEditable
|
| Stream<Event> get onComplete => completeEvent.forTarget(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBTransaction.error')
|
| + @DocsEditable
|
| Stream<Event> get onError => errorEvent.forTarget(this);
|
| }
|
|
|
| @@ -1228,12 +1225,12 @@ class TransactionEvents extends Events {
|
| @DomName('IDBVersionChangeEvent')
|
| class UpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBUpgradeNeededEvent.newVersion')
|
| + @DocsEditable
|
| final int newVersion;
|
|
|
| - @DocsEditable
|
| @DomName('IDBUpgradeNeededEvent.oldVersion')
|
| + @DocsEditable
|
| final int oldVersion;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -1246,8 +1243,8 @@ class UpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" {
|
| @DomName('IDBVersionChangeEvent')
|
| class VersionChangeEvent extends Event native "*IDBVersionChangeEvent" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBVersionChangeEvent.version')
|
| + @DocsEditable
|
| final String version;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -1260,8 +1257,8 @@ class VersionChangeEvent extends Event native "*IDBVersionChangeEvent" {
|
| @DomName('IDBVersionChangeRequest')
|
| class VersionChangeRequest extends Request implements EventTarget native "*IDBVersionChangeRequest" {
|
|
|
| - @DocsEditable
|
| @DomName('IDBVersionChangeRequest.blocked')
|
| + @DocsEditable
|
| static const EventStreamProvider<Event> blockedEvent = const EventStreamProvider<Event>('blocked');
|
|
|
| @DocsEditable
|
| @@ -1269,8 +1266,8 @@ class VersionChangeRequest extends Request implements EventTarget native "*IDBVe
|
| VersionChangeRequestEvents get on =>
|
| new VersionChangeRequestEvents(this);
|
|
|
| - @DocsEditable
|
| @DomName('IDBVersionChangeRequest.blocked')
|
| + @DocsEditable
|
| Stream<Event> get onBlocked => blockedEvent.forTarget(this);
|
| }
|
|
|
|
|