| OLD | NEW |
| 1 library dart.dom.indexed_db; | 1 library dart.dom.indexed_db; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 import 'dart:typed_data'; | 6 import 'dart:typed_data'; |
| 7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; | 7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; |
| 8 import 'dart:_foreign_helper' show JS; | 8 import 'dart:_foreign_helper' show JS; |
| 9 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10 // for details. All rights reserved. Use of this source code is governed by a | 10 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 final String direction; | 164 final String direction; |
| 165 | 165 |
| 166 @DomName('IDBCursor.key') | 166 @DomName('IDBCursor.key') |
| 167 @DocsEditable | 167 @DocsEditable |
| 168 @_annotation_Creates_IDBKey | 168 @_annotation_Creates_IDBKey |
| 169 @_annotation_Returns_IDBKey | 169 @_annotation_Returns_IDBKey |
| 170 final Object key; | 170 final Object key; |
| 171 | 171 |
| 172 @DomName('IDBCursor.primaryKey') | 172 @DomName('IDBCursor.primaryKey') |
| 173 @DocsEditable | 173 @DocsEditable |
| 174 @_annotation_Creates_IDBKey |
| 175 @_annotation_Returns_IDBKey |
| 174 final Object primaryKey; | 176 final Object primaryKey; |
| 175 | 177 |
| 176 @DomName('IDBCursor.source') | 178 @DomName('IDBCursor.source') |
| 177 @DocsEditable | 179 @DocsEditable |
| 180 @Creates('Null') |
| 181 @Returns('ObjectStore|Index|Null') |
| 178 final dynamic source; | 182 final dynamic source; |
| 179 | 183 |
| 180 @DomName('IDBCursor.advance') | 184 @DomName('IDBCursor.advance') |
| 181 @DocsEditable | 185 @DocsEditable |
| 182 void advance(int count) native; | 186 void advance(int count) native; |
| 183 | 187 |
| 184 @JSName('delete') | 188 @JSName('delete') |
| 185 @DomName('IDBCursor.delete') | 189 @DomName('IDBCursor.delete') |
| 186 @DocsEditable | 190 @DocsEditable |
| 187 Request $dom_delete() native; | 191 Request $dom_delete() native; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 final String name; | 288 final String name; |
| 285 | 289 |
| 286 @DomName('IDBDatabase.objectStoreNames') | 290 @DomName('IDBDatabase.objectStoreNames') |
| 287 @DocsEditable | 291 @DocsEditable |
| 288 @Returns('DomStringList') | 292 @Returns('DomStringList') |
| 289 @Creates('DomStringList') | 293 @Creates('DomStringList') |
| 290 final List<String> objectStoreNames; | 294 final List<String> objectStoreNames; |
| 291 | 295 |
| 292 @DomName('IDBDatabase.version') | 296 @DomName('IDBDatabase.version') |
| 293 @DocsEditable | 297 @DocsEditable |
| 298 @Creates('int|String|Null') |
| 299 @Returns('int|String|Null') |
| 294 final dynamic version; | 300 final dynamic version; |
| 295 | 301 |
| 296 @JSName('addEventListener') | 302 @JSName('addEventListener') |
| 297 @DomName('IDBDatabase.addEventListener') | 303 @DomName('IDBDatabase.addEventListener') |
| 298 @DocsEditable | 304 @DocsEditable |
| 299 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 305 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 300 | 306 |
| 301 @DomName('IDBDatabase.close') | 307 @DomName('IDBDatabase.close') |
| 302 @DocsEditable | 308 @DocsEditable |
| 303 void close() native; | 309 void close() native; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 request = $dom_openKeyCursor(key_OR_range); | 587 request = $dom_openKeyCursor(key_OR_range); |
| 582 } else { | 588 } else { |
| 583 request = $dom_openKeyCursor(key_OR_range, direction); | 589 request = $dom_openKeyCursor(key_OR_range, direction); |
| 584 } | 590 } |
| 585 return ObjectStore._cursorStreamFromResult(request, autoAdvance); | 591 return ObjectStore._cursorStreamFromResult(request, autoAdvance); |
| 586 } | 592 } |
| 587 | 593 |
| 588 | 594 |
| 589 @DomName('IDBIndex.keyPath') | 595 @DomName('IDBIndex.keyPath') |
| 590 @DocsEditable | 596 @DocsEditable |
| 597 @annotation_Creates_SerializedScriptValue |
| 591 final dynamic keyPath; | 598 final dynamic keyPath; |
| 592 | 599 |
| 593 @DomName('IDBIndex.multiEntry') | 600 @DomName('IDBIndex.multiEntry') |
| 594 @DocsEditable | 601 @DocsEditable |
| 595 final bool multiEntry; | 602 final bool multiEntry; |
| 596 | 603 |
| 597 @DomName('IDBIndex.name') | 604 @DomName('IDBIndex.name') |
| 598 @DocsEditable | 605 @DocsEditable |
| 599 final String name; | 606 final String name; |
| 600 | 607 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 | 674 |
| 668 @DomName('KeyRange.bound') | 675 @DomName('KeyRange.bound') |
| 669 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, | 676 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, |
| 670 [bool lowerOpen = false, bool upperOpen = false]) => | 677 [bool lowerOpen = false, bool upperOpen = false]) => |
| 671 _KeyRangeFactoryProvider.createKeyRange_bound( | 678 _KeyRangeFactoryProvider.createKeyRange_bound( |
| 672 lower, upper, lowerOpen, upperOpen); | 679 lower, upper, lowerOpen, upperOpen); |
| 673 | 680 |
| 674 | 681 |
| 675 @DomName('IDBKeyRange.lower') | 682 @DomName('IDBKeyRange.lower') |
| 676 @DocsEditable | 683 @DocsEditable |
| 684 @annotation_Creates_SerializedScriptValue |
| 677 final Object lower; | 685 final Object lower; |
| 678 | 686 |
| 679 @DomName('IDBKeyRange.lowerOpen') | 687 @DomName('IDBKeyRange.lowerOpen') |
| 680 @DocsEditable | 688 @DocsEditable |
| 681 final bool lowerOpen; | 689 final bool lowerOpen; |
| 682 | 690 |
| 683 @DomName('IDBKeyRange.upper') | 691 @DomName('IDBKeyRange.upper') |
| 684 @DocsEditable | 692 @DocsEditable |
| 693 @annotation_Creates_SerializedScriptValue |
| 685 final Object upper; | 694 final Object upper; |
| 686 | 695 |
| 687 @DomName('IDBKeyRange.upperOpen') | 696 @DomName('IDBKeyRange.upperOpen') |
| 688 @DocsEditable | 697 @DocsEditable |
| 689 final bool upperOpen; | 698 final bool upperOpen; |
| 690 | 699 |
| 691 @JSName('bound') | 700 @JSName('bound') |
| 692 @DomName('IDBKeyRange.bound') | 701 @DomName('IDBKeyRange.bound') |
| 693 @DocsEditable | 702 @DocsEditable |
| 694 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) native; | 703 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) native; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 final bool autoIncrement; | 864 final bool autoIncrement; |
| 856 | 865 |
| 857 @DomName('IDBObjectStore.indexNames') | 866 @DomName('IDBObjectStore.indexNames') |
| 858 @DocsEditable | 867 @DocsEditable |
| 859 @Returns('DomStringList') | 868 @Returns('DomStringList') |
| 860 @Creates('DomStringList') | 869 @Creates('DomStringList') |
| 861 final List<String> indexNames; | 870 final List<String> indexNames; |
| 862 | 871 |
| 863 @DomName('IDBObjectStore.keyPath') | 872 @DomName('IDBObjectStore.keyPath') |
| 864 @DocsEditable | 873 @DocsEditable |
| 874 @annotation_Creates_SerializedScriptValue |
| 865 final dynamic keyPath; | 875 final dynamic keyPath; |
| 866 | 876 |
| 867 @DomName('IDBObjectStore.name') | 877 @DomName('IDBObjectStore.name') |
| 868 @DocsEditable | 878 @DocsEditable |
| 869 final String name; | 879 final String name; |
| 870 | 880 |
| 871 @DomName('IDBObjectStore.transaction') | 881 @DomName('IDBObjectStore.transaction') |
| 872 @DocsEditable | 882 @DocsEditable |
| 873 final Transaction transaction; | 883 final Transaction transaction; |
| 874 | 884 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 // BSD-style license that can be found in the LICENSE file. | 1252 // BSD-style license that can be found in the LICENSE file. |
| 1243 | 1253 |
| 1244 | 1254 |
| 1245 @DocsEditable | 1255 @DocsEditable |
| 1246 @DomName('IDBVersionChangeEvent') | 1256 @DomName('IDBVersionChangeEvent') |
| 1247 @Unstable | 1257 @Unstable |
| 1248 class VersionChangeEvent extends Event native "IDBVersionChangeEvent" { | 1258 class VersionChangeEvent extends Event native "IDBVersionChangeEvent" { |
| 1249 | 1259 |
| 1250 @DomName('IDBVersionChangeEvent.newVersion') | 1260 @DomName('IDBVersionChangeEvent.newVersion') |
| 1251 @DocsEditable | 1261 @DocsEditable |
| 1262 @Creates('int|String|Null') |
| 1263 @Returns('int|String|Null') |
| 1252 final dynamic newVersion; | 1264 final dynamic newVersion; |
| 1253 | 1265 |
| 1254 @DomName('IDBVersionChangeEvent.oldVersion') | 1266 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1255 @DocsEditable | 1267 @DocsEditable |
| 1268 @Creates('int|String|Null') |
| 1269 @Returns('int|String|Null') |
| 1256 final dynamic oldVersion; | 1270 final dynamic oldVersion; |
| 1257 } | 1271 } |
| 1258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1259 // for details. All rights reserved. Use of this source code is governed by a | 1273 // for details. All rights reserved. Use of this source code is governed by a |
| 1260 // BSD-style license that can be found in the LICENSE file. | 1274 // BSD-style license that can be found in the LICENSE file. |
| 1261 | 1275 |
| 1262 | 1276 |
| 1263 @DocsEditable | 1277 @DocsEditable |
| 1264 @DomName('IDBAny') | 1278 @DomName('IDBAny') |
| 1265 @deprecated // nonstandard | 1279 @deprecated // nonstandard |
| 1266 abstract class _IDBAny native "IDBAny" { | 1280 abstract class _IDBAny native "IDBAny" { |
| 1267 } | 1281 } |
| OLD | NEW |