| 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:nativewrappers'; | 6 import 'dart:nativewrappers'; |
| 7 import 'dart:_blink' as _blink; | 7 import 'dart:_blink' as _blink; |
| 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9 // for details. All rights reserved. Use of this source code is governed by a | 9 // for details. All rights reserved. Use of this source code is governed by a |
| 10 // BSD-style license that can be found in the LICENSE file. | 10 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 static KeyRange createKeyRange_upperBound( | 28 static KeyRange createKeyRange_upperBound( |
| 29 /*IDBKey*/ bound, [bool open = false]) => | 29 /*IDBKey*/ bound, [bool open = false]) => |
| 30 KeyRange.upperBound_(bound, open); | 30 KeyRange.upperBound_(bound, open); |
| 31 | 31 |
| 32 static KeyRange createKeyRange_bound( | 32 static KeyRange createKeyRange_bound( |
| 33 /*IDBKey*/ lower, /*IDBKey*/ upper, | 33 /*IDBKey*/ lower, /*IDBKey*/ upper, |
| 34 [bool lowerOpen = false, bool upperOpen = false]) => | 34 [bool lowerOpen = false, bool upperOpen = false]) => |
| 35 KeyRange.bound_(lower, upper, lowerOpen, upperOpen); | 35 KeyRange.bound_(lower, upper, lowerOpen, upperOpen); |
| 36 } | 36 } |
| 37 // FIXME: Can we make this private? | 37 // FIXME: Can we make this private? |
| 38 const indexed_dbBlinkMap = const { | 38 final indexed_dbBlinkMap = { |
| 39 'IDBCursor': Cursor, | 39 'IDBCursor': () => Cursor, |
| 40 'IDBCursorWithValue': CursorWithValue, | 40 'IDBCursorWithValue': () => CursorWithValue, |
| 41 'IDBDatabase': Database, | 41 'IDBDatabase': () => Database, |
| 42 'IDBFactory': IdbFactory, | 42 'IDBFactory': () => IdbFactory, |
| 43 'IDBIndex': Index, | 43 'IDBIndex': () => Index, |
| 44 'IDBKeyRange': KeyRange, | 44 'IDBKeyRange': () => KeyRange, |
| 45 'IDBObjectStore': ObjectStore, | 45 'IDBObjectStore': () => ObjectStore, |
| 46 'IDBOpenDBRequest': OpenDBRequest, | 46 'IDBOpenDBRequest': () => OpenDBRequest, |
| 47 'IDBRequest': Request, | 47 'IDBRequest': () => Request, |
| 48 'IDBTransaction': Transaction, | 48 'IDBTransaction': () => Transaction, |
| 49 'IDBVersionChangeEvent': VersionChangeEvent, | 49 'IDBVersionChangeEvent': () => VersionChangeEvent, |
| 50 | 50 |
| 51 }; | 51 }; |
| 52 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 52 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 53 // for details. All rights reserved. Use of this source code is governed by a | 53 // for details. All rights reserved. Use of this source code is governed by a |
| 54 // BSD-style license that can be found in the LICENSE file. | 54 // BSD-style license that can be found in the LICENSE file. |
| 55 | 55 |
| 56 | 56 |
| 57 @DomName('IDBCursor') | 57 @DomName('IDBCursor') |
| 58 @Unstable() | 58 @Unstable() |
| 59 class Cursor extends NativeFieldWrapperClass2 { | 59 class Cursor extends NativeFieldWrapperClass2 { |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1073 |
| 1074 @DomName('IDBVersionChangeEvent.newVersion') | 1074 @DomName('IDBVersionChangeEvent.newVersion') |
| 1075 @DocsEditable() | 1075 @DocsEditable() |
| 1076 Object get newVersion => _blink.BlinkIDBVersionChangeEvent.$newVersion_Getter(
this); | 1076 Object get newVersion => _blink.BlinkIDBVersionChangeEvent.$newVersion_Getter(
this); |
| 1077 | 1077 |
| 1078 @DomName('IDBVersionChangeEvent.oldVersion') | 1078 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1079 @DocsEditable() | 1079 @DocsEditable() |
| 1080 Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.$oldVersion_Getter(
this); | 1080 Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.$oldVersion_Getter(
this); |
| 1081 | 1081 |
| 1082 } | 1082 } |
| OLD | NEW |