| OLD | NEW |
| 1 library indexed_db; | 1 library 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8 // for details. All rights reserved. Use of this source code is governed by a | 8 // for details. All rights reserved. Use of this source code is governed by a |
| 9 // BSD-style license that can be found in the LICENSE file. | 9 // BSD-style license that can be found in the LICENSE file. |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 [bool lowerOpen = false, bool upperOpen = false]) => | 33 [bool lowerOpen = false, bool upperOpen = false]) => |
| 34 KeyRange.bound_(lower, upper, lowerOpen, upperOpen); | 34 KeyRange.bound_(lower, upper, lowerOpen, upperOpen); |
| 35 } | 35 } |
| 36 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 36 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 37 // for details. All rights reserved. Use of this source code is governed by a | 37 // for details. All rights reserved. Use of this source code is governed by a |
| 38 // BSD-style license that can be found in the LICENSE file. | 38 // BSD-style license that can be found in the LICENSE file. |
| 39 | 39 |
| 40 // WARNING: Do not edit - generated code. | 40 // WARNING: Do not edit - generated code. |
| 41 | 41 |
| 42 | 42 |
| 43 @DocsEditable |
| 43 @DomName('IDBCursor') | 44 @DomName('IDBCursor') |
| 44 class Cursor extends NativeFieldWrapperClass1 { | 45 class Cursor extends NativeFieldWrapperClass1 { |
| 45 Cursor.internal(); | 46 Cursor.internal(); |
| 46 | 47 |
| 48 @DocsEditable |
| 47 @DomName('IDBCursor.direction') | 49 @DomName('IDBCursor.direction') |
| 48 String get direction native "IDBCursor_direction_Getter"; | 50 String get direction native "IDBCursor_direction_Getter"; |
| 49 | 51 |
| 52 @DocsEditable |
| 50 @DomName('IDBCursor.key') | 53 @DomName('IDBCursor.key') |
| 51 Object get key native "IDBCursor_key_Getter"; | 54 Object get key native "IDBCursor_key_Getter"; |
| 52 | 55 |
| 56 @DocsEditable |
| 53 @DomName('IDBCursor.primaryKey') | 57 @DomName('IDBCursor.primaryKey') |
| 54 Object get primaryKey native "IDBCursor_primaryKey_Getter"; | 58 Object get primaryKey native "IDBCursor_primaryKey_Getter"; |
| 55 | 59 |
| 60 @DocsEditable |
| 56 @DomName('IDBCursor.source') | 61 @DomName('IDBCursor.source') |
| 57 dynamic get source native "IDBCursor_source_Getter"; | 62 dynamic get source native "IDBCursor_source_Getter"; |
| 58 | 63 |
| 64 @DocsEditable |
| 59 @DomName('IDBCursor.advance') | 65 @DomName('IDBCursor.advance') |
| 60 void advance(int count) native "IDBCursor_advance_Callback"; | 66 void advance(int count) native "IDBCursor_advance_Callback"; |
| 61 | 67 |
| 62 void continueFunction([/*IDBKey*/ key]) { | 68 void continueFunction([/*IDBKey*/ key]) { |
| 63 if (?key) { | 69 if (?key) { |
| 64 _continue_1(key); | 70 _continue_1(key); |
| 65 return; | 71 return; |
| 66 } | 72 } |
| 67 _continue_2(); | 73 _continue_2(); |
| 68 } | 74 } |
| 69 | 75 |
| 76 @DocsEditable |
| 70 @DomName('IDBCursor.continue_1') | 77 @DomName('IDBCursor.continue_1') |
| 71 void _continue_1(key) native "IDBCursor_continue_1_Callback"; | 78 void _continue_1(key) native "IDBCursor_continue_1_Callback"; |
| 72 | 79 |
| 80 @DocsEditable |
| 73 @DomName('IDBCursor.continue_2') | 81 @DomName('IDBCursor.continue_2') |
| 74 void _continue_2() native "IDBCursor_continue_2_Callback"; | 82 void _continue_2() native "IDBCursor_continue_2_Callback"; |
| 75 | 83 |
| 84 @DocsEditable |
| 76 @DomName('IDBCursor.delete') | 85 @DomName('IDBCursor.delete') |
| 77 Request delete() native "IDBCursor_delete_Callback"; | 86 Request delete() native "IDBCursor_delete_Callback"; |
| 78 | 87 |
| 88 @DocsEditable |
| 79 @DomName('IDBCursor.update') | 89 @DomName('IDBCursor.update') |
| 80 Request update(Object value) native "IDBCursor_update_Callback"; | 90 Request update(Object value) native "IDBCursor_update_Callback"; |
| 81 | 91 |
| 82 } | 92 } |
| 83 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 93 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 84 // for details. All rights reserved. Use of this source code is governed by a | 94 // for details. All rights reserved. Use of this source code is governed by a |
| 85 // BSD-style license that can be found in the LICENSE file. | 95 // BSD-style license that can be found in the LICENSE file. |
| 86 | 96 |
| 87 // WARNING: Do not edit - generated code. | 97 // WARNING: Do not edit - generated code. |
| 88 | 98 |
| 89 | 99 |
| 100 @DocsEditable |
| 90 @DomName('IDBCursorWithValue') | 101 @DomName('IDBCursorWithValue') |
| 91 class CursorWithValue extends Cursor { | 102 class CursorWithValue extends Cursor { |
| 92 CursorWithValue.internal() : super.internal(); | 103 CursorWithValue.internal() : super.internal(); |
| 93 | 104 |
| 105 @DocsEditable |
| 94 @DomName('IDBCursorWithValue.value') | 106 @DomName('IDBCursorWithValue.value') |
| 95 Object get value native "IDBCursorWithValue_value_Getter"; | 107 Object get value native "IDBCursorWithValue_value_Getter"; |
| 96 | 108 |
| 97 } | 109 } |
| 98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 99 // for details. All rights reserved. Use of this source code is governed by a | 111 // for details. All rights reserved. Use of this source code is governed by a |
| 100 // BSD-style license that can be found in the LICENSE file. | 112 // BSD-style license that can be found in the LICENSE file. |
| 101 | 113 |
| 102 // WARNING: Do not edit - generated code. | 114 // WARNING: Do not edit - generated code. |
| 103 | 115 |
| 104 | 116 |
| 117 @DocsEditable |
| 105 @DomName('IDBDatabase') | 118 @DomName('IDBDatabase') |
| 106 @SupportedBrowser(SupportedBrowser.CHROME) | 119 @SupportedBrowser(SupportedBrowser.CHROME) |
| 107 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') | 120 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') |
| 108 @SupportedBrowser(SupportedBrowser.IE, '10') | 121 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 109 @Experimental() | 122 @Experimental() |
| 110 class Database extends EventTarget { | 123 class Database extends EventTarget { |
| 111 Database.internal() : super.internal(); | 124 Database.internal() : super.internal(); |
| 112 | 125 |
| 113 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | 126 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
| 114 | 127 |
| 115 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 128 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 116 | 129 |
| 117 static const EventStreamProvider<UpgradeNeededEvent> versionChangeEvent = cons
t EventStreamProvider<UpgradeNeededEvent>('versionchange'); | 130 static const EventStreamProvider<UpgradeNeededEvent> versionChangeEvent = cons
t EventStreamProvider<UpgradeNeededEvent>('versionchange'); |
| 118 | 131 |
| 119 /// @docsEditable true | 132 @DocsEditable |
| 120 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 133 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 121 DatabaseEvents get on => | 134 DatabaseEvents get on => |
| 122 new DatabaseEvents(this); | 135 new DatabaseEvents(this); |
| 123 | 136 |
| 137 @DocsEditable |
| 124 @DomName('IDBDatabase.name') | 138 @DomName('IDBDatabase.name') |
| 125 String get name native "IDBDatabase_name_Getter"; | 139 String get name native "IDBDatabase_name_Getter"; |
| 126 | 140 |
| 141 @DocsEditable |
| 127 @DomName('IDBDatabase.objectStoreNames') | 142 @DomName('IDBDatabase.objectStoreNames') |
| 128 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter"
; | 143 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter"
; |
| 129 | 144 |
| 145 @DocsEditable |
| 130 @DomName('IDBDatabase.version') | 146 @DomName('IDBDatabase.version') |
| 131 dynamic get version native "IDBDatabase_version_Getter"; | 147 dynamic get version native "IDBDatabase_version_Getter"; |
| 132 | 148 |
| 149 @DocsEditable |
| 133 @DomName('IDBDatabase.addEventListener') | 150 @DomName('IDBDatabase.addEventListener') |
| 134 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBDatabase_addEventListener_Callback"; | 151 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBDatabase_addEventListener_Callback"; |
| 135 | 152 |
| 153 @DocsEditable |
| 136 @DomName('IDBDatabase.close') | 154 @DomName('IDBDatabase.close') |
| 137 void close() native "IDBDatabase_close_Callback"; | 155 void close() native "IDBDatabase_close_Callback"; |
| 138 | 156 |
| 157 @DocsEditable |
| 139 @DomName('IDBDatabase.createObjectStore') | 158 @DomName('IDBDatabase.createObjectStore') |
| 140 ObjectStore createObjectStore(String name, [Map options]) native "IDBDatabase_
createObjectStore_Callback"; | 159 ObjectStore createObjectStore(String name, [Map options]) native "IDBDatabase_
createObjectStore_Callback"; |
| 141 | 160 |
| 161 @DocsEditable |
| 142 @DomName('IDBDatabase.deleteObjectStore') | 162 @DomName('IDBDatabase.deleteObjectStore') |
| 143 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call
back"; | 163 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call
back"; |
| 144 | 164 |
| 165 @DocsEditable |
| 145 @DomName('IDBDatabase.dispatchEvent') | 166 @DomName('IDBDatabase.dispatchEvent') |
| 146 bool $dom_dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback"
; | 167 bool $dom_dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback"
; |
| 147 | 168 |
| 169 @DocsEditable |
| 148 @DomName('IDBDatabase.removeEventListener') | 170 @DomName('IDBDatabase.removeEventListener') |
| 149 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBDatabase_removeEventListener_Callback"; | 171 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBDatabase_removeEventListener_Callback"; |
| 150 | 172 |
| 151 Transaction transaction(storeName_OR_storeNames, String mode) { | 173 Transaction transaction(storeName_OR_storeNames, String mode) { |
| 152 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n
ull) && (mode is String || mode == null)) { | 174 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n
ull) && (mode is String || mode == null)) { |
| 153 return _transaction_1(storeName_OR_storeNames, mode); | 175 return _transaction_1(storeName_OR_storeNames, mode); |
| 154 } | 176 } |
| 155 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n
ull) && (mode is String || mode == null)) { | 177 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n
ull) && (mode is String || mode == null)) { |
| 156 return _transaction_2(storeName_OR_storeNames, mode); | 178 return _transaction_2(storeName_OR_storeNames, mode); |
| 157 } | 179 } |
| 158 if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) &
& (mode is String || mode == null)) { | 180 if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) &
& (mode is String || mode == null)) { |
| 159 return _transaction_3(storeName_OR_storeNames, mode); | 181 return _transaction_3(storeName_OR_storeNames, mode); |
| 160 } | 182 } |
| 161 throw new ArgumentError("Incorrect number or type of arguments"); | 183 throw new ArgumentError("Incorrect number or type of arguments"); |
| 162 } | 184 } |
| 163 | 185 |
| 186 @DocsEditable |
| 164 @DomName('IDBDatabase.transaction_1') | 187 @DomName('IDBDatabase.transaction_1') |
| 165 Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_
transaction_1_Callback"; | 188 Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_
transaction_1_Callback"; |
| 166 | 189 |
| 190 @DocsEditable |
| 167 @DomName('IDBDatabase.transaction_2') | 191 @DomName('IDBDatabase.transaction_2') |
| 168 Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_
transaction_2_Callback"; | 192 Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_
transaction_2_Callback"; |
| 169 | 193 |
| 194 @DocsEditable |
| 170 @DomName('IDBDatabase.transaction_3') | 195 @DomName('IDBDatabase.transaction_3') |
| 171 Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_
transaction_3_Callback"; | 196 Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_
transaction_3_Callback"; |
| 172 | 197 |
| 173 Stream<Event> get onAbort => abortEvent.forTarget(this); | 198 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 174 | 199 |
| 175 Stream<Event> get onError => errorEvent.forTarget(this); | 200 Stream<Event> get onError => errorEvent.forTarget(this); |
| 176 | 201 |
| 177 Stream<UpgradeNeededEvent> get onVersionChange => versionChangeEvent.forTarget
(this); | 202 Stream<UpgradeNeededEvent> get onVersionChange => versionChangeEvent.forTarget
(this); |
| 178 | 203 |
| 179 } | 204 } |
| 180 | 205 |
| 181 /// @docsEditable true | 206 @DocsEditable |
| 182 class DatabaseEvents extends Events { | 207 class DatabaseEvents extends Events { |
| 183 /// @docsEditable true | 208 @DocsEditable |
| 184 DatabaseEvents(EventTarget _ptr) : super(_ptr); | 209 DatabaseEvents(EventTarget _ptr) : super(_ptr); |
| 185 | 210 |
| 186 /// @docsEditable true | 211 @DocsEditable |
| 187 EventListenerList get abort => this['abort']; | 212 EventListenerList get abort => this['abort']; |
| 188 | 213 |
| 189 /// @docsEditable true | 214 @DocsEditable |
| 190 EventListenerList get error => this['error']; | 215 EventListenerList get error => this['error']; |
| 191 | 216 |
| 192 /// @docsEditable true | 217 @DocsEditable |
| 193 EventListenerList get versionChange => this['versionchange']; | 218 EventListenerList get versionChange => this['versionchange']; |
| 194 } | 219 } |
| 195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 196 // for details. All rights reserved. Use of this source code is governed by a | 221 // for details. All rights reserved. Use of this source code is governed by a |
| 197 // BSD-style license that can be found in the LICENSE file. | 222 // BSD-style license that can be found in the LICENSE file. |
| 198 | 223 |
| 199 | 224 |
| 225 @DocsEditable |
| 200 @DomName('IDBFactory') | 226 @DomName('IDBFactory') |
| 201 @SupportedBrowser(SupportedBrowser.CHROME) | 227 @SupportedBrowser(SupportedBrowser.CHROME) |
| 202 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') | 228 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') |
| 203 @SupportedBrowser(SupportedBrowser.IE, '10') | 229 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 204 @Experimental() | 230 @Experimental() |
| 205 class IdbFactory extends NativeFieldWrapperClass1 { | 231 class IdbFactory extends NativeFieldWrapperClass1 { |
| 206 /** | 232 /** |
| 207 * Checks to see if Indexed DB is supported on the current platform. | 233 * Checks to see if Indexed DB is supported on the current platform. |
| 208 */ | 234 */ |
| 209 static bool get supported { | 235 static bool get supported { |
| 210 return true; | 236 return true; |
| 211 } | 237 } |
| 212 | 238 |
| 213 IdbFactory.internal(); | 239 IdbFactory.internal(); |
| 214 | 240 |
| 241 @DocsEditable |
| 215 @DomName('IDBFactory.cmp') | 242 @DomName('IDBFactory.cmp') |
| 216 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) native "IDBFactory_cmp_Callback"; | 243 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) native "IDBFactory_cmp_Callback"; |
| 217 | 244 |
| 245 @DocsEditable |
| 218 @DomName('IDBFactory.deleteDatabase') | 246 @DomName('IDBFactory.deleteDatabase') |
| 219 VersionChangeRequest deleteDatabase(String name) native "IDBFactory_deleteData
base_Callback"; | 247 VersionChangeRequest deleteDatabase(String name) native "IDBFactory_deleteData
base_Callback"; |
| 220 | 248 |
| 221 OpenDBRequest open(String name, [int version]) { | 249 OpenDBRequest open(String name, [int version]) { |
| 222 if (?version) { | 250 if (?version) { |
| 223 return _open_1(name, version); | 251 return _open_1(name, version); |
| 224 } | 252 } |
| 225 return _open_2(name); | 253 return _open_2(name); |
| 226 } | 254 } |
| 227 | 255 |
| 256 @DocsEditable |
| 228 @DomName('IDBFactory.open_1') | 257 @DomName('IDBFactory.open_1') |
| 229 OpenDBRequest _open_1(name, version) native "IDBFactory_open_1_Callback"; | 258 OpenDBRequest _open_1(name, version) native "IDBFactory_open_1_Callback"; |
| 230 | 259 |
| 260 @DocsEditable |
| 231 @DomName('IDBFactory.open_2') | 261 @DomName('IDBFactory.open_2') |
| 232 OpenDBRequest _open_2(name) native "IDBFactory_open_2_Callback"; | 262 OpenDBRequest _open_2(name) native "IDBFactory_open_2_Callback"; |
| 233 | 263 |
| 264 @DocsEditable |
| 234 @DomName('IDBFactory.webkitGetDatabaseNames') | 265 @DomName('IDBFactory.webkitGetDatabaseNames') |
| 235 Request webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Cal
lback"; | 266 Request webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Cal
lback"; |
| 236 | 267 |
| 237 } | 268 } |
| 238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 239 // for details. All rights reserved. Use of this source code is governed by a | 270 // for details. All rights reserved. Use of this source code is governed by a |
| 240 // BSD-style license that can be found in the LICENSE file. | 271 // BSD-style license that can be found in the LICENSE file. |
| 241 | 272 |
| 242 // WARNING: Do not edit - generated code. | 273 // WARNING: Do not edit - generated code. |
| 243 | 274 |
| 244 | 275 |
| 276 @DocsEditable |
| 245 @DomName('IDBIndex') | 277 @DomName('IDBIndex') |
| 246 class Index extends NativeFieldWrapperClass1 { | 278 class Index extends NativeFieldWrapperClass1 { |
| 247 Index.internal(); | 279 Index.internal(); |
| 248 | 280 |
| 281 @DocsEditable |
| 249 @DomName('IDBIndex.keyPath') | 282 @DomName('IDBIndex.keyPath') |
| 250 dynamic get keyPath native "IDBIndex_keyPath_Getter"; | 283 dynamic get keyPath native "IDBIndex_keyPath_Getter"; |
| 251 | 284 |
| 285 @DocsEditable |
| 252 @DomName('IDBIndex.multiEntry') | 286 @DomName('IDBIndex.multiEntry') |
| 253 bool get multiEntry native "IDBIndex_multiEntry_Getter"; | 287 bool get multiEntry native "IDBIndex_multiEntry_Getter"; |
| 254 | 288 |
| 289 @DocsEditable |
| 255 @DomName('IDBIndex.name') | 290 @DomName('IDBIndex.name') |
| 256 String get name native "IDBIndex_name_Getter"; | 291 String get name native "IDBIndex_name_Getter"; |
| 257 | 292 |
| 293 @DocsEditable |
| 258 @DomName('IDBIndex.objectStore') | 294 @DomName('IDBIndex.objectStore') |
| 259 ObjectStore get objectStore native "IDBIndex_objectStore_Getter"; | 295 ObjectStore get objectStore native "IDBIndex_objectStore_Getter"; |
| 260 | 296 |
| 297 @DocsEditable |
| 261 @DomName('IDBIndex.unique') | 298 @DomName('IDBIndex.unique') |
| 262 bool get unique native "IDBIndex_unique_Getter"; | 299 bool get unique native "IDBIndex_unique_Getter"; |
| 263 | 300 |
| 264 Request count([key_OR_range]) { | 301 Request count([key_OR_range]) { |
| 265 if (!?key_OR_range) { | 302 if (!?key_OR_range) { |
| 266 return _count_1(); | 303 return _count_1(); |
| 267 } | 304 } |
| 268 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 305 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 269 return _count_2(key_OR_range); | 306 return _count_2(key_OR_range); |
| 270 } | 307 } |
| 271 if (?key_OR_range) { | 308 if (?key_OR_range) { |
| 272 return _count_3(key_OR_range); | 309 return _count_3(key_OR_range); |
| 273 } | 310 } |
| 274 throw new ArgumentError("Incorrect number or type of arguments"); | 311 throw new ArgumentError("Incorrect number or type of arguments"); |
| 275 } | 312 } |
| 276 | 313 |
| 314 @DocsEditable |
| 277 @DomName('IDBIndex.count_1') | 315 @DomName('IDBIndex.count_1') |
| 278 Request _count_1() native "IDBIndex_count_1_Callback"; | 316 Request _count_1() native "IDBIndex_count_1_Callback"; |
| 279 | 317 |
| 318 @DocsEditable |
| 280 @DomName('IDBIndex.count_2') | 319 @DomName('IDBIndex.count_2') |
| 281 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; | 320 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; |
| 282 | 321 |
| 322 @DocsEditable |
| 283 @DomName('IDBIndex.count_3') | 323 @DomName('IDBIndex.count_3') |
| 284 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; | 324 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; |
| 285 | 325 |
| 286 Request get(key) { | 326 Request get(key) { |
| 287 if ((key is KeyRange || key == null)) { | 327 if ((key is KeyRange || key == null)) { |
| 288 return _get_1(key); | 328 return _get_1(key); |
| 289 } | 329 } |
| 290 if (?key) { | 330 if (?key) { |
| 291 return _get_2(key); | 331 return _get_2(key); |
| 292 } | 332 } |
| 293 throw new ArgumentError("Incorrect number or type of arguments"); | 333 throw new ArgumentError("Incorrect number or type of arguments"); |
| 294 } | 334 } |
| 295 | 335 |
| 336 @DocsEditable |
| 296 @DomName('IDBIndex.get_1') | 337 @DomName('IDBIndex.get_1') |
| 297 Request _get_1(key) native "IDBIndex_get_1_Callback"; | 338 Request _get_1(key) native "IDBIndex_get_1_Callback"; |
| 298 | 339 |
| 340 @DocsEditable |
| 299 @DomName('IDBIndex.get_2') | 341 @DomName('IDBIndex.get_2') |
| 300 Request _get_2(key) native "IDBIndex_get_2_Callback"; | 342 Request _get_2(key) native "IDBIndex_get_2_Callback"; |
| 301 | 343 |
| 302 Request getKey(key) { | 344 Request getKey(key) { |
| 303 if ((key is KeyRange || key == null)) { | 345 if ((key is KeyRange || key == null)) { |
| 304 return _getKey_1(key); | 346 return _getKey_1(key); |
| 305 } | 347 } |
| 306 if (?key) { | 348 if (?key) { |
| 307 return _getKey_2(key); | 349 return _getKey_2(key); |
| 308 } | 350 } |
| 309 throw new ArgumentError("Incorrect number or type of arguments"); | 351 throw new ArgumentError("Incorrect number or type of arguments"); |
| 310 } | 352 } |
| 311 | 353 |
| 354 @DocsEditable |
| 312 @DomName('IDBIndex.getKey_1') | 355 @DomName('IDBIndex.getKey_1') |
| 313 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; | 356 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; |
| 314 | 357 |
| 358 @DocsEditable |
| 315 @DomName('IDBIndex.getKey_2') | 359 @DomName('IDBIndex.getKey_2') |
| 316 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; | 360 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; |
| 317 | 361 |
| 318 Request openCursor([key_OR_range, String direction]) { | 362 Request openCursor([key_OR_range, String direction]) { |
| 319 if (!?key_OR_range && !?direction) { | 363 if (!?key_OR_range && !?direction) { |
| 320 return _openCursor_1(); | 364 return _openCursor_1(); |
| 321 } | 365 } |
| 322 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 366 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 323 return _openCursor_2(key_OR_range); | 367 return _openCursor_2(key_OR_range); |
| 324 } | 368 } |
| 325 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 369 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 326 return _openCursor_3(key_OR_range, direction); | 370 return _openCursor_3(key_OR_range, direction); |
| 327 } | 371 } |
| 328 if (?key_OR_range && !?direction) { | 372 if (?key_OR_range && !?direction) { |
| 329 return _openCursor_4(key_OR_range); | 373 return _openCursor_4(key_OR_range); |
| 330 } | 374 } |
| 331 if (?key_OR_range && (direction is String || direction == null)) { | 375 if (?key_OR_range && (direction is String || direction == null)) { |
| 332 return _openCursor_5(key_OR_range, direction); | 376 return _openCursor_5(key_OR_range, direction); |
| 333 } | 377 } |
| 334 throw new ArgumentError("Incorrect number or type of arguments"); | 378 throw new ArgumentError("Incorrect number or type of arguments"); |
| 335 } | 379 } |
| 336 | 380 |
| 381 @DocsEditable |
| 337 @DomName('IDBIndex.openCursor_1') | 382 @DomName('IDBIndex.openCursor_1') |
| 338 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; | 383 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; |
| 339 | 384 |
| 385 @DocsEditable |
| 340 @DomName('IDBIndex.openCursor_2') | 386 @DomName('IDBIndex.openCursor_2') |
| 341 Request _openCursor_2(key_OR_range) native "IDBIndex_openCursor_2_Callback"; | 387 Request _openCursor_2(key_OR_range) native "IDBIndex_openCursor_2_Callback"; |
| 342 | 388 |
| 389 @DocsEditable |
| 343 @DomName('IDBIndex.openCursor_3') | 390 @DomName('IDBIndex.openCursor_3') |
| 344 Request _openCursor_3(key_OR_range, direction) native "IDBIndex_openCursor_3_C
allback"; | 391 Request _openCursor_3(key_OR_range, direction) native "IDBIndex_openCursor_3_C
allback"; |
| 345 | 392 |
| 393 @DocsEditable |
| 346 @DomName('IDBIndex.openCursor_4') | 394 @DomName('IDBIndex.openCursor_4') |
| 347 Request _openCursor_4(key_OR_range) native "IDBIndex_openCursor_4_Callback"; | 395 Request _openCursor_4(key_OR_range) native "IDBIndex_openCursor_4_Callback"; |
| 348 | 396 |
| 397 @DocsEditable |
| 349 @DomName('IDBIndex.openCursor_5') | 398 @DomName('IDBIndex.openCursor_5') |
| 350 Request _openCursor_5(key_OR_range, direction) native "IDBIndex_openCursor_5_C
allback"; | 399 Request _openCursor_5(key_OR_range, direction) native "IDBIndex_openCursor_5_C
allback"; |
| 351 | 400 |
| 352 Request openKeyCursor([key_OR_range, String direction]) { | 401 Request openKeyCursor([key_OR_range, String direction]) { |
| 353 if (!?key_OR_range && !?direction) { | 402 if (!?key_OR_range && !?direction) { |
| 354 return _openKeyCursor_1(); | 403 return _openKeyCursor_1(); |
| 355 } | 404 } |
| 356 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 405 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 357 return _openKeyCursor_2(key_OR_range); | 406 return _openKeyCursor_2(key_OR_range); |
| 358 } | 407 } |
| 359 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 408 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 360 return _openKeyCursor_3(key_OR_range, direction); | 409 return _openKeyCursor_3(key_OR_range, direction); |
| 361 } | 410 } |
| 362 if (?key_OR_range && !?direction) { | 411 if (?key_OR_range && !?direction) { |
| 363 return _openKeyCursor_4(key_OR_range); | 412 return _openKeyCursor_4(key_OR_range); |
| 364 } | 413 } |
| 365 if (?key_OR_range && (direction is String || direction == null)) { | 414 if (?key_OR_range && (direction is String || direction == null)) { |
| 366 return _openKeyCursor_5(key_OR_range, direction); | 415 return _openKeyCursor_5(key_OR_range, direction); |
| 367 } | 416 } |
| 368 throw new ArgumentError("Incorrect number or type of arguments"); | 417 throw new ArgumentError("Incorrect number or type of arguments"); |
| 369 } | 418 } |
| 370 | 419 |
| 420 @DocsEditable |
| 371 @DomName('IDBIndex.openKeyCursor_1') | 421 @DomName('IDBIndex.openKeyCursor_1') |
| 372 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; | 422 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; |
| 373 | 423 |
| 424 @DocsEditable |
| 374 @DomName('IDBIndex.openKeyCursor_2') | 425 @DomName('IDBIndex.openKeyCursor_2') |
| 375 Request _openKeyCursor_2(key_OR_range) native "IDBIndex_openKeyCursor_2_Callba
ck"; | 426 Request _openKeyCursor_2(key_OR_range) native "IDBIndex_openKeyCursor_2_Callba
ck"; |
| 376 | 427 |
| 428 @DocsEditable |
| 377 @DomName('IDBIndex.openKeyCursor_3') | 429 @DomName('IDBIndex.openKeyCursor_3') |
| 378 Request _openKeyCursor_3(key_OR_range, direction) native "IDBIndex_openKeyCurs
or_3_Callback"; | 430 Request _openKeyCursor_3(key_OR_range, direction) native "IDBIndex_openKeyCurs
or_3_Callback"; |
| 379 | 431 |
| 432 @DocsEditable |
| 380 @DomName('IDBIndex.openKeyCursor_4') | 433 @DomName('IDBIndex.openKeyCursor_4') |
| 381 Request _openKeyCursor_4(key_OR_range) native "IDBIndex_openKeyCursor_4_Callba
ck"; | 434 Request _openKeyCursor_4(key_OR_range) native "IDBIndex_openKeyCursor_4_Callba
ck"; |
| 382 | 435 |
| 436 @DocsEditable |
| 383 @DomName('IDBIndex.openKeyCursor_5') | 437 @DomName('IDBIndex.openKeyCursor_5') |
| 384 Request _openKeyCursor_5(key_OR_range, direction) native "IDBIndex_openKeyCurs
or_5_Callback"; | 438 Request _openKeyCursor_5(key_OR_range, direction) native "IDBIndex_openKeyCurs
or_5_Callback"; |
| 385 | 439 |
| 386 } | 440 } |
| 387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 441 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 388 // for details. All rights reserved. Use of this source code is governed by a | 442 // for details. All rights reserved. Use of this source code is governed by a |
| 389 // BSD-style license that can be found in the LICENSE file. | 443 // BSD-style license that can be found in the LICENSE file. |
| 390 | 444 |
| 391 // WARNING: Do not edit - generated code. | 445 // WARNING: Do not edit - generated code. |
| 392 | 446 |
| 393 | 447 |
| 448 @DocsEditable |
| 394 @DomName('IDBKey') | 449 @DomName('IDBKey') |
| 395 class Key extends NativeFieldWrapperClass1 { | 450 class Key extends NativeFieldWrapperClass1 { |
| 396 Key.internal(); | 451 Key.internal(); |
| 397 | 452 |
| 398 } | 453 } |
| 399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 400 // for details. All rights reserved. Use of this source code is governed by a | 455 // for details. All rights reserved. Use of this source code is governed by a |
| 401 // BSD-style license that can be found in the LICENSE file. | 456 // BSD-style license that can be found in the LICENSE file. |
| 402 | 457 |
| 403 | 458 |
| 459 @DocsEditable |
| 404 @DomName('IDBKeyRange') | 460 @DomName('IDBKeyRange') |
| 405 class KeyRange extends NativeFieldWrapperClass1 { | 461 class KeyRange extends NativeFieldWrapperClass1 { |
| 406 @DomName('IDBKeyRange.only') | 462 @DomName('IDBKeyRange.only') |
| 407 factory KeyRange.only(/*Key*/ value) => | 463 factory KeyRange.only(/*Key*/ value) => |
| 408 _KeyRangeFactoryProvider.createKeyRange_only(value); | 464 _KeyRangeFactoryProvider.createKeyRange_only(value); |
| 409 | 465 |
| 410 @DomName('IDBKeyRange.lowerBound') | 466 @DomName('IDBKeyRange.lowerBound') |
| 411 factory KeyRange.lowerBound(/*Key*/ bound, [bool open = false]) => | 467 factory KeyRange.lowerBound(/*Key*/ bound, [bool open = false]) => |
| 412 _KeyRangeFactoryProvider.createKeyRange_lowerBound(bound, open); | 468 _KeyRangeFactoryProvider.createKeyRange_lowerBound(bound, open); |
| 413 | 469 |
| 414 @DomName('IDBKeyRange.upperBound') | 470 @DomName('IDBKeyRange.upperBound') |
| 415 factory KeyRange.upperBound(/*Key*/ bound, [bool open = false]) => | 471 factory KeyRange.upperBound(/*Key*/ bound, [bool open = false]) => |
| 416 _KeyRangeFactoryProvider.createKeyRange_upperBound(bound, open); | 472 _KeyRangeFactoryProvider.createKeyRange_upperBound(bound, open); |
| 417 | 473 |
| 418 @DomName('KeyRange.bound') | 474 @DomName('KeyRange.bound') |
| 419 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, | 475 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, |
| 420 [bool lowerOpen = false, bool upperOpen = false]) => | 476 [bool lowerOpen = false, bool upperOpen = false]) => |
| 421 _KeyRangeFactoryProvider.createKeyRange_bound( | 477 _KeyRangeFactoryProvider.createKeyRange_bound( |
| 422 lower, upper, lowerOpen, upperOpen); | 478 lower, upper, lowerOpen, upperOpen); |
| 423 | 479 |
| 424 KeyRange.internal(); | 480 KeyRange.internal(); |
| 425 | 481 |
| 482 @DocsEditable |
| 426 @DomName('IDBKeyRange.lower') | 483 @DomName('IDBKeyRange.lower') |
| 427 dynamic get lower native "IDBKeyRange_lower_Getter"; | 484 dynamic get lower native "IDBKeyRange_lower_Getter"; |
| 428 | 485 |
| 486 @DocsEditable |
| 429 @DomName('IDBKeyRange.lowerOpen') | 487 @DomName('IDBKeyRange.lowerOpen') |
| 430 bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter"; | 488 bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter"; |
| 431 | 489 |
| 490 @DocsEditable |
| 432 @DomName('IDBKeyRange.upper') | 491 @DomName('IDBKeyRange.upper') |
| 433 dynamic get upper native "IDBKeyRange_upper_Getter"; | 492 dynamic get upper native "IDBKeyRange_upper_Getter"; |
| 434 | 493 |
| 494 @DocsEditable |
| 435 @DomName('IDBKeyRange.upperOpen') | 495 @DomName('IDBKeyRange.upperOpen') |
| 436 bool get upperOpen native "IDBKeyRange_upperOpen_Getter"; | 496 bool get upperOpen native "IDBKeyRange_upperOpen_Getter"; |
| 437 | 497 |
| 438 static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bo
ol upperOpen]) { | 498 static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bo
ol upperOpen]) { |
| 439 if (?upperOpen) { | 499 if (?upperOpen) { |
| 440 return _bound_1(lower, upper, lowerOpen, upperOpen); | 500 return _bound_1(lower, upper, lowerOpen, upperOpen); |
| 441 } | 501 } |
| 442 if (?lowerOpen) { | 502 if (?lowerOpen) { |
| 443 return _bound_2(lower, upper, lowerOpen); | 503 return _bound_2(lower, upper, lowerOpen); |
| 444 } | 504 } |
| 445 return _bound_3(lower, upper); | 505 return _bound_3(lower, upper); |
| 446 } | 506 } |
| 447 | 507 |
| 508 @DocsEditable |
| 448 @DomName('IDBKeyRange.bound_1') | 509 @DomName('IDBKeyRange.bound_1') |
| 449 static KeyRange _bound_1(lower, upper, lowerOpen, upperOpen) native "IDBKeyRan
ge_bound_1_Callback"; | 510 static KeyRange _bound_1(lower, upper, lowerOpen, upperOpen) native "IDBKeyRan
ge_bound_1_Callback"; |
| 450 | 511 |
| 512 @DocsEditable |
| 451 @DomName('IDBKeyRange.bound_2') | 513 @DomName('IDBKeyRange.bound_2') |
| 452 static KeyRange _bound_2(lower, upper, lowerOpen) native "IDBKeyRange_bound_2_
Callback"; | 514 static KeyRange _bound_2(lower, upper, lowerOpen) native "IDBKeyRange_bound_2_
Callback"; |
| 453 | 515 |
| 516 @DocsEditable |
| 454 @DomName('IDBKeyRange.bound_3') | 517 @DomName('IDBKeyRange.bound_3') |
| 455 static KeyRange _bound_3(lower, upper) native "IDBKeyRange_bound_3_Callback"; | 518 static KeyRange _bound_3(lower, upper) native "IDBKeyRange_bound_3_Callback"; |
| 456 | 519 |
| 457 static KeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { | 520 static KeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { |
| 458 if (?open) { | 521 if (?open) { |
| 459 return _lowerBound_1(bound, open); | 522 return _lowerBound_1(bound, open); |
| 460 } | 523 } |
| 461 return _lowerBound_2(bound); | 524 return _lowerBound_2(bound); |
| 462 } | 525 } |
| 463 | 526 |
| 527 @DocsEditable |
| 464 @DomName('IDBKeyRange.lowerBound_1') | 528 @DomName('IDBKeyRange.lowerBound_1') |
| 465 static KeyRange _lowerBound_1(bound, open) native "IDBKeyRange_lowerBound_1_Ca
llback"; | 529 static KeyRange _lowerBound_1(bound, open) native "IDBKeyRange_lowerBound_1_Ca
llback"; |
| 466 | 530 |
| 531 @DocsEditable |
| 467 @DomName('IDBKeyRange.lowerBound_2') | 532 @DomName('IDBKeyRange.lowerBound_2') |
| 468 static KeyRange _lowerBound_2(bound) native "IDBKeyRange_lowerBound_2_Callback
"; | 533 static KeyRange _lowerBound_2(bound) native "IDBKeyRange_lowerBound_2_Callback
"; |
| 469 | 534 |
| 535 @DocsEditable |
| 470 @DomName('IDBKeyRange.only_') | 536 @DomName('IDBKeyRange.only_') |
| 471 static KeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback"; | 537 static KeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback"; |
| 472 | 538 |
| 473 static KeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { | 539 static KeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { |
| 474 if (?open) { | 540 if (?open) { |
| 475 return _upperBound_1(bound, open); | 541 return _upperBound_1(bound, open); |
| 476 } | 542 } |
| 477 return _upperBound_2(bound); | 543 return _upperBound_2(bound); |
| 478 } | 544 } |
| 479 | 545 |
| 546 @DocsEditable |
| 480 @DomName('IDBKeyRange.upperBound_1') | 547 @DomName('IDBKeyRange.upperBound_1') |
| 481 static KeyRange _upperBound_1(bound, open) native "IDBKeyRange_upperBound_1_Ca
llback"; | 548 static KeyRange _upperBound_1(bound, open) native "IDBKeyRange_upperBound_1_Ca
llback"; |
| 482 | 549 |
| 550 @DocsEditable |
| 483 @DomName('IDBKeyRange.upperBound_2') | 551 @DomName('IDBKeyRange.upperBound_2') |
| 484 static KeyRange _upperBound_2(bound) native "IDBKeyRange_upperBound_2_Callback
"; | 552 static KeyRange _upperBound_2(bound) native "IDBKeyRange_upperBound_2_Callback
"; |
| 485 | 553 |
| 486 } | 554 } |
| 487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 488 // for details. All rights reserved. Use of this source code is governed by a | 556 // for details. All rights reserved. Use of this source code is governed by a |
| 489 // BSD-style license that can be found in the LICENSE file. | 557 // BSD-style license that can be found in the LICENSE file. |
| 490 | 558 |
| 491 // WARNING: Do not edit - generated code. | 559 // WARNING: Do not edit - generated code. |
| 492 | 560 |
| 493 | 561 |
| 562 @DocsEditable |
| 494 @DomName('IDBObjectStore') | 563 @DomName('IDBObjectStore') |
| 495 class ObjectStore extends NativeFieldWrapperClass1 { | 564 class ObjectStore extends NativeFieldWrapperClass1 { |
| 496 ObjectStore.internal(); | 565 ObjectStore.internal(); |
| 497 | 566 |
| 567 @DocsEditable |
| 498 @DomName('IDBObjectStore.autoIncrement') | 568 @DomName('IDBObjectStore.autoIncrement') |
| 499 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter"; | 569 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter"; |
| 500 | 570 |
| 571 @DocsEditable |
| 501 @DomName('IDBObjectStore.indexNames') | 572 @DomName('IDBObjectStore.indexNames') |
| 502 List<String> get indexNames native "IDBObjectStore_indexNames_Getter"; | 573 List<String> get indexNames native "IDBObjectStore_indexNames_Getter"; |
| 503 | 574 |
| 575 @DocsEditable |
| 504 @DomName('IDBObjectStore.keyPath') | 576 @DomName('IDBObjectStore.keyPath') |
| 505 dynamic get keyPath native "IDBObjectStore_keyPath_Getter"; | 577 dynamic get keyPath native "IDBObjectStore_keyPath_Getter"; |
| 506 | 578 |
| 579 @DocsEditable |
| 507 @DomName('IDBObjectStore.name') | 580 @DomName('IDBObjectStore.name') |
| 508 String get name native "IDBObjectStore_name_Getter"; | 581 String get name native "IDBObjectStore_name_Getter"; |
| 509 | 582 |
| 583 @DocsEditable |
| 510 @DomName('IDBObjectStore.transaction') | 584 @DomName('IDBObjectStore.transaction') |
| 511 Transaction get transaction native "IDBObjectStore_transaction_Getter"; | 585 Transaction get transaction native "IDBObjectStore_transaction_Getter"; |
| 512 | 586 |
| 513 Request add(Object value, [/*IDBKey*/ key]) { | 587 Request add(Object value, [/*IDBKey*/ key]) { |
| 514 if (?key) { | 588 if (?key) { |
| 515 return _add_1(value, key); | 589 return _add_1(value, key); |
| 516 } | 590 } |
| 517 return _add_2(value); | 591 return _add_2(value); |
| 518 } | 592 } |
| 519 | 593 |
| 594 @DocsEditable |
| 520 @DomName('IDBObjectStore.add_1') | 595 @DomName('IDBObjectStore.add_1') |
| 521 Request _add_1(value, key) native "IDBObjectStore_add_1_Callback"; | 596 Request _add_1(value, key) native "IDBObjectStore_add_1_Callback"; |
| 522 | 597 |
| 598 @DocsEditable |
| 523 @DomName('IDBObjectStore.add_2') | 599 @DomName('IDBObjectStore.add_2') |
| 524 Request _add_2(value) native "IDBObjectStore_add_2_Callback"; | 600 Request _add_2(value) native "IDBObjectStore_add_2_Callback"; |
| 525 | 601 |
| 602 @DocsEditable |
| 526 @DomName('IDBObjectStore.clear') | 603 @DomName('IDBObjectStore.clear') |
| 527 Request clear() native "IDBObjectStore_clear_Callback"; | 604 Request clear() native "IDBObjectStore_clear_Callback"; |
| 528 | 605 |
| 529 Request count([key_OR_range]) { | 606 Request count([key_OR_range]) { |
| 530 if (!?key_OR_range) { | 607 if (!?key_OR_range) { |
| 531 return _count_1(); | 608 return _count_1(); |
| 532 } | 609 } |
| 533 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 610 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 534 return _count_2(key_OR_range); | 611 return _count_2(key_OR_range); |
| 535 } | 612 } |
| 536 if (?key_OR_range) { | 613 if (?key_OR_range) { |
| 537 return _count_3(key_OR_range); | 614 return _count_3(key_OR_range); |
| 538 } | 615 } |
| 539 throw new ArgumentError("Incorrect number or type of arguments"); | 616 throw new ArgumentError("Incorrect number or type of arguments"); |
| 540 } | 617 } |
| 541 | 618 |
| 619 @DocsEditable |
| 542 @DomName('IDBObjectStore.count_1') | 620 @DomName('IDBObjectStore.count_1') |
| 543 Request _count_1() native "IDBObjectStore_count_1_Callback"; | 621 Request _count_1() native "IDBObjectStore_count_1_Callback"; |
| 544 | 622 |
| 623 @DocsEditable |
| 545 @DomName('IDBObjectStore.count_2') | 624 @DomName('IDBObjectStore.count_2') |
| 546 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; | 625 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; |
| 547 | 626 |
| 627 @DocsEditable |
| 548 @DomName('IDBObjectStore.count_3') | 628 @DomName('IDBObjectStore.count_3') |
| 549 Request _count_3(key_OR_range) native "IDBObjectStore_count_3_Callback"; | 629 Request _count_3(key_OR_range) native "IDBObjectStore_count_3_Callback"; |
| 550 | 630 |
| 551 Index createIndex(String name, keyPath, [Map options]) { | 631 Index createIndex(String name, keyPath, [Map options]) { |
| 552 if ((name is String || name == null) && (keyPath is List<String> || keyPath
== null) && (options is Map || options == null)) { | 632 if ((name is String || name == null) && (keyPath is List<String> || keyPath
== null) && (options is Map || options == null)) { |
| 553 return _createIndex_1(name, keyPath, options); | 633 return _createIndex_1(name, keyPath, options); |
| 554 } | 634 } |
| 555 if ((name is String || name == null) && (keyPath is String || keyPath == nul
l) && (options is Map || options == null)) { | 635 if ((name is String || name == null) && (keyPath is String || keyPath == nul
l) && (options is Map || options == null)) { |
| 556 return _createIndex_2(name, keyPath, options); | 636 return _createIndex_2(name, keyPath, options); |
| 557 } | 637 } |
| 558 throw new ArgumentError("Incorrect number or type of arguments"); | 638 throw new ArgumentError("Incorrect number or type of arguments"); |
| 559 } | 639 } |
| 560 | 640 |
| 641 @DocsEditable |
| 561 @DomName('IDBObjectStore.createIndex_1') | 642 @DomName('IDBObjectStore.createIndex_1') |
| 562 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde
x_1_Callback"; | 643 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde
x_1_Callback"; |
| 563 | 644 |
| 645 @DocsEditable |
| 564 @DomName('IDBObjectStore.createIndex_2') | 646 @DomName('IDBObjectStore.createIndex_2') |
| 565 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde
x_2_Callback"; | 647 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde
x_2_Callback"; |
| 566 | 648 |
| 567 Request delete(key_OR_keyRange) { | 649 Request delete(key_OR_keyRange) { |
| 568 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { | 650 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { |
| 569 return _delete_1(key_OR_keyRange); | 651 return _delete_1(key_OR_keyRange); |
| 570 } | 652 } |
| 571 if (?key_OR_keyRange) { | 653 if (?key_OR_keyRange) { |
| 572 return _delete_2(key_OR_keyRange); | 654 return _delete_2(key_OR_keyRange); |
| 573 } | 655 } |
| 574 throw new ArgumentError("Incorrect number or type of arguments"); | 656 throw new ArgumentError("Incorrect number or type of arguments"); |
| 575 } | 657 } |
| 576 | 658 |
| 659 @DocsEditable |
| 577 @DomName('IDBObjectStore.delete_1') | 660 @DomName('IDBObjectStore.delete_1') |
| 578 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; | 661 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; |
| 579 | 662 |
| 663 @DocsEditable |
| 580 @DomName('IDBObjectStore.delete_2') | 664 @DomName('IDBObjectStore.delete_2') |
| 581 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; | 665 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; |
| 582 | 666 |
| 667 @DocsEditable |
| 583 @DomName('IDBObjectStore.deleteIndex') | 668 @DomName('IDBObjectStore.deleteIndex') |
| 584 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; | 669 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; |
| 585 | 670 |
| 586 Request getObject(key) { | 671 Request getObject(key) { |
| 587 if ((key is KeyRange || key == null)) { | 672 if ((key is KeyRange || key == null)) { |
| 588 return _get_1(key); | 673 return _get_1(key); |
| 589 } | 674 } |
| 590 if (?key) { | 675 if (?key) { |
| 591 return _get_2(key); | 676 return _get_2(key); |
| 592 } | 677 } |
| 593 throw new ArgumentError("Incorrect number or type of arguments"); | 678 throw new ArgumentError("Incorrect number or type of arguments"); |
| 594 } | 679 } |
| 595 | 680 |
| 681 @DocsEditable |
| 596 @DomName('IDBObjectStore.get_1') | 682 @DomName('IDBObjectStore.get_1') |
| 597 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; | 683 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; |
| 598 | 684 |
| 685 @DocsEditable |
| 599 @DomName('IDBObjectStore.get_2') | 686 @DomName('IDBObjectStore.get_2') |
| 600 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; | 687 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; |
| 601 | 688 |
| 689 @DocsEditable |
| 602 @DomName('IDBObjectStore.index') | 690 @DomName('IDBObjectStore.index') |
| 603 Index index(String name) native "IDBObjectStore_index_Callback"; | 691 Index index(String name) native "IDBObjectStore_index_Callback"; |
| 604 | 692 |
| 605 Request openCursor([key_OR_range, String direction]) { | 693 Request openCursor([key_OR_range, String direction]) { |
| 606 if (!?key_OR_range && !?direction) { | 694 if (!?key_OR_range && !?direction) { |
| 607 return _openCursor_1(); | 695 return _openCursor_1(); |
| 608 } | 696 } |
| 609 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 697 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 610 return _openCursor_2(key_OR_range); | 698 return _openCursor_2(key_OR_range); |
| 611 } | 699 } |
| 612 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 700 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 613 return _openCursor_3(key_OR_range, direction); | 701 return _openCursor_3(key_OR_range, direction); |
| 614 } | 702 } |
| 615 if (?key_OR_range && !?direction) { | 703 if (?key_OR_range && !?direction) { |
| 616 return _openCursor_4(key_OR_range); | 704 return _openCursor_4(key_OR_range); |
| 617 } | 705 } |
| 618 if (?key_OR_range && (direction is String || direction == null)) { | 706 if (?key_OR_range && (direction is String || direction == null)) { |
| 619 return _openCursor_5(key_OR_range, direction); | 707 return _openCursor_5(key_OR_range, direction); |
| 620 } | 708 } |
| 621 throw new ArgumentError("Incorrect number or type of arguments"); | 709 throw new ArgumentError("Incorrect number or type of arguments"); |
| 622 } | 710 } |
| 623 | 711 |
| 712 @DocsEditable |
| 624 @DomName('IDBObjectStore.openCursor_1') | 713 @DomName('IDBObjectStore.openCursor_1') |
| 625 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; | 714 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; |
| 626 | 715 |
| 716 @DocsEditable |
| 627 @DomName('IDBObjectStore.openCursor_2') | 717 @DomName('IDBObjectStore.openCursor_2') |
| 628 Request _openCursor_2(key_OR_range) native "IDBObjectStore_openCursor_2_Callba
ck"; | 718 Request _openCursor_2(key_OR_range) native "IDBObjectStore_openCursor_2_Callba
ck"; |
| 629 | 719 |
| 720 @DocsEditable |
| 630 @DomName('IDBObjectStore.openCursor_3') | 721 @DomName('IDBObjectStore.openCursor_3') |
| 631 Request _openCursor_3(key_OR_range, direction) native "IDBObjectStore_openCurs
or_3_Callback"; | 722 Request _openCursor_3(key_OR_range, direction) native "IDBObjectStore_openCurs
or_3_Callback"; |
| 632 | 723 |
| 724 @DocsEditable |
| 633 @DomName('IDBObjectStore.openCursor_4') | 725 @DomName('IDBObjectStore.openCursor_4') |
| 634 Request _openCursor_4(key_OR_range) native "IDBObjectStore_openCursor_4_Callba
ck"; | 726 Request _openCursor_4(key_OR_range) native "IDBObjectStore_openCursor_4_Callba
ck"; |
| 635 | 727 |
| 728 @DocsEditable |
| 636 @DomName('IDBObjectStore.openCursor_5') | 729 @DomName('IDBObjectStore.openCursor_5') |
| 637 Request _openCursor_5(key_OR_range, direction) native "IDBObjectStore_openCurs
or_5_Callback"; | 730 Request _openCursor_5(key_OR_range, direction) native "IDBObjectStore_openCurs
or_5_Callback"; |
| 638 | 731 |
| 639 Request put(Object value, [/*IDBKey*/ key]) { | 732 Request put(Object value, [/*IDBKey*/ key]) { |
| 640 if (?key) { | 733 if (?key) { |
| 641 return _put_1(value, key); | 734 return _put_1(value, key); |
| 642 } | 735 } |
| 643 return _put_2(value); | 736 return _put_2(value); |
| 644 } | 737 } |
| 645 | 738 |
| 739 @DocsEditable |
| 646 @DomName('IDBObjectStore.put_1') | 740 @DomName('IDBObjectStore.put_1') |
| 647 Request _put_1(value, key) native "IDBObjectStore_put_1_Callback"; | 741 Request _put_1(value, key) native "IDBObjectStore_put_1_Callback"; |
| 648 | 742 |
| 743 @DocsEditable |
| 649 @DomName('IDBObjectStore.put_2') | 744 @DomName('IDBObjectStore.put_2') |
| 650 Request _put_2(value) native "IDBObjectStore_put_2_Callback"; | 745 Request _put_2(value) native "IDBObjectStore_put_2_Callback"; |
| 651 | 746 |
| 652 } | 747 } |
| 653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 654 // for details. All rights reserved. Use of this source code is governed by a | 749 // for details. All rights reserved. Use of this source code is governed by a |
| 655 // BSD-style license that can be found in the LICENSE file. | 750 // BSD-style license that can be found in the LICENSE file. |
| 656 | 751 |
| 657 // WARNING: Do not edit - generated code. | 752 // WARNING: Do not edit - generated code. |
| 658 | 753 |
| 659 | 754 |
| 755 @DocsEditable |
| 660 @DomName('IDBOpenDBRequest') | 756 @DomName('IDBOpenDBRequest') |
| 661 class OpenDBRequest extends Request implements EventTarget { | 757 class OpenDBRequest extends Request implements EventTarget { |
| 662 OpenDBRequest.internal() : super.internal(); | 758 OpenDBRequest.internal() : super.internal(); |
| 663 | 759 |
| 664 static const EventStreamProvider<Event> blockedEvent = const EventStreamProvid
er<Event>('blocked'); | 760 static const EventStreamProvider<Event> blockedEvent = const EventStreamProvid
er<Event>('blocked'); |
| 665 | 761 |
| 666 static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = cons
t EventStreamProvider<VersionChangeEvent>('upgradeneeded'); | 762 static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = cons
t EventStreamProvider<VersionChangeEvent>('upgradeneeded'); |
| 667 | 763 |
| 668 /// @docsEditable true | 764 @DocsEditable |
| 669 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 765 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 670 OpenDBRequestEvents get on => | 766 OpenDBRequestEvents get on => |
| 671 new OpenDBRequestEvents(this); | 767 new OpenDBRequestEvents(this); |
| 672 | 768 |
| 673 Stream<Event> get onBlocked => blockedEvent.forTarget(this); | 769 Stream<Event> get onBlocked => blockedEvent.forTarget(this); |
| 674 | 770 |
| 675 Stream<VersionChangeEvent> get onUpgradeNeeded => upgradeNeededEvent.forTarget
(this); | 771 Stream<VersionChangeEvent> get onUpgradeNeeded => upgradeNeededEvent.forTarget
(this); |
| 676 | 772 |
| 677 } | 773 } |
| 678 | 774 |
| 679 /// @docsEditable true | 775 @DocsEditable |
| 680 class OpenDBRequestEvents extends RequestEvents { | 776 class OpenDBRequestEvents extends RequestEvents { |
| 681 /// @docsEditable true | 777 @DocsEditable |
| 682 OpenDBRequestEvents(EventTarget _ptr) : super(_ptr); | 778 OpenDBRequestEvents(EventTarget _ptr) : super(_ptr); |
| 683 | 779 |
| 684 /// @docsEditable true | 780 @DocsEditable |
| 685 EventListenerList get blocked => this['blocked']; | 781 EventListenerList get blocked => this['blocked']; |
| 686 | 782 |
| 687 /// @docsEditable true | 783 @DocsEditable |
| 688 EventListenerList get upgradeNeeded => this['upgradeneeded']; | 784 EventListenerList get upgradeNeeded => this['upgradeneeded']; |
| 689 } | 785 } |
| 690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 691 // for details. All rights reserved. Use of this source code is governed by a | 787 // for details. All rights reserved. Use of this source code is governed by a |
| 692 // BSD-style license that can be found in the LICENSE file. | 788 // BSD-style license that can be found in the LICENSE file. |
| 693 | 789 |
| 694 // WARNING: Do not edit - generated code. | 790 // WARNING: Do not edit - generated code. |
| 695 | 791 |
| 696 | 792 |
| 793 @DocsEditable |
| 697 @DomName('IDBRequest') | 794 @DomName('IDBRequest') |
| 698 class Request extends EventTarget { | 795 class Request extends EventTarget { |
| 699 Request.internal() : super.internal(); | 796 Request.internal() : super.internal(); |
| 700 | 797 |
| 701 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 798 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 702 | 799 |
| 703 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); | 800 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); |
| 704 | 801 |
| 705 /// @docsEditable true | 802 @DocsEditable |
| 706 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 803 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 707 RequestEvents get on => | 804 RequestEvents get on => |
| 708 new RequestEvents(this); | 805 new RequestEvents(this); |
| 709 | 806 |
| 807 @DocsEditable |
| 710 @DomName('IDBRequest.error') | 808 @DomName('IDBRequest.error') |
| 711 DomError get error native "IDBRequest_error_Getter"; | 809 DomError get error native "IDBRequest_error_Getter"; |
| 712 | 810 |
| 811 @DocsEditable |
| 713 @DomName('IDBRequest.readyState') | 812 @DomName('IDBRequest.readyState') |
| 714 String get readyState native "IDBRequest_readyState_Getter"; | 813 String get readyState native "IDBRequest_readyState_Getter"; |
| 715 | 814 |
| 815 @DocsEditable |
| 716 @DomName('IDBRequest.result') | 816 @DomName('IDBRequest.result') |
| 717 dynamic get result native "IDBRequest_result_Getter"; | 817 dynamic get result native "IDBRequest_result_Getter"; |
| 718 | 818 |
| 819 @DocsEditable |
| 719 @DomName('IDBRequest.source') | 820 @DomName('IDBRequest.source') |
| 720 dynamic get source native "IDBRequest_source_Getter"; | 821 dynamic get source native "IDBRequest_source_Getter"; |
| 721 | 822 |
| 823 @DocsEditable |
| 722 @DomName('IDBRequest.transaction') | 824 @DomName('IDBRequest.transaction') |
| 723 Transaction get transaction native "IDBRequest_transaction_Getter"; | 825 Transaction get transaction native "IDBRequest_transaction_Getter"; |
| 724 | 826 |
| 827 @DocsEditable |
| 725 @DomName('IDBRequest.webkitErrorMessage') | 828 @DomName('IDBRequest.webkitErrorMessage') |
| 726 String get webkitErrorMessage native "IDBRequest_webkitErrorMessage_Getter"; | 829 String get webkitErrorMessage native "IDBRequest_webkitErrorMessage_Getter"; |
| 727 | 830 |
| 831 @DocsEditable |
| 728 @DomName('IDBRequest.addEventListener') | 832 @DomName('IDBRequest.addEventListener') |
| 729 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBRequest_addEventListener_Callback"; | 833 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBRequest_addEventListener_Callback"; |
| 730 | 834 |
| 835 @DocsEditable |
| 731 @DomName('IDBRequest.dispatchEvent') | 836 @DomName('IDBRequest.dispatchEvent') |
| 732 bool $dom_dispatchEvent(Event evt) native "IDBRequest_dispatchEvent_Callback"; | 837 bool $dom_dispatchEvent(Event evt) native "IDBRequest_dispatchEvent_Callback"; |
| 733 | 838 |
| 839 @DocsEditable |
| 734 @DomName('IDBRequest.removeEventListener') | 840 @DomName('IDBRequest.removeEventListener') |
| 735 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBRequest_removeEventListener_Callback"; | 841 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBRequest_removeEventListener_Callback"; |
| 736 | 842 |
| 737 Stream<Event> get onError => errorEvent.forTarget(this); | 843 Stream<Event> get onError => errorEvent.forTarget(this); |
| 738 | 844 |
| 739 Stream<Event> get onSuccess => successEvent.forTarget(this); | 845 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| 740 | 846 |
| 741 } | 847 } |
| 742 | 848 |
| 743 /// @docsEditable true | 849 @DocsEditable |
| 744 class RequestEvents extends Events { | 850 class RequestEvents extends Events { |
| 745 /// @docsEditable true | 851 @DocsEditable |
| 746 RequestEvents(EventTarget _ptr) : super(_ptr); | 852 RequestEvents(EventTarget _ptr) : super(_ptr); |
| 747 | 853 |
| 748 /// @docsEditable true | 854 @DocsEditable |
| 749 EventListenerList get error => this['error']; | 855 EventListenerList get error => this['error']; |
| 750 | 856 |
| 751 /// @docsEditable true | 857 @DocsEditable |
| 752 EventListenerList get success => this['success']; | 858 EventListenerList get success => this['success']; |
| 753 } | 859 } |
| 754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 755 // for details. All rights reserved. Use of this source code is governed by a | 861 // for details. All rights reserved. Use of this source code is governed by a |
| 756 // BSD-style license that can be found in the LICENSE file. | 862 // BSD-style license that can be found in the LICENSE file. |
| 757 | 863 |
| 758 // WARNING: Do not edit - generated code. | 864 // WARNING: Do not edit - generated code. |
| 759 | 865 |
| 760 | 866 |
| 867 @DocsEditable |
| 761 @DomName('IDBTransaction') | 868 @DomName('IDBTransaction') |
| 762 class Transaction extends EventTarget { | 869 class Transaction extends EventTarget { |
| 763 Transaction.internal() : super.internal(); | 870 Transaction.internal() : super.internal(); |
| 764 | 871 |
| 765 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | 872 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
| 766 | 873 |
| 767 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 874 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 768 | 875 |
| 769 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 876 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 770 | 877 |
| 771 /// @docsEditable true | 878 @DocsEditable |
| 772 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 879 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 773 TransactionEvents get on => | 880 TransactionEvents get on => |
| 774 new TransactionEvents(this); | 881 new TransactionEvents(this); |
| 775 | 882 |
| 883 @DocsEditable |
| 776 @DomName('IDBTransaction.db') | 884 @DomName('IDBTransaction.db') |
| 777 Database get db native "IDBTransaction_db_Getter"; | 885 Database get db native "IDBTransaction_db_Getter"; |
| 778 | 886 |
| 887 @DocsEditable |
| 779 @DomName('IDBTransaction.error') | 888 @DomName('IDBTransaction.error') |
| 780 DomError get error native "IDBTransaction_error_Getter"; | 889 DomError get error native "IDBTransaction_error_Getter"; |
| 781 | 890 |
| 891 @DocsEditable |
| 782 @DomName('IDBTransaction.mode') | 892 @DomName('IDBTransaction.mode') |
| 783 String get mode native "IDBTransaction_mode_Getter"; | 893 String get mode native "IDBTransaction_mode_Getter"; |
| 784 | 894 |
| 895 @DocsEditable |
| 785 @DomName('IDBTransaction.webkitErrorMessage') | 896 @DomName('IDBTransaction.webkitErrorMessage') |
| 786 String get webkitErrorMessage native "IDBTransaction_webkitErrorMessage_Getter
"; | 897 String get webkitErrorMessage native "IDBTransaction_webkitErrorMessage_Getter
"; |
| 787 | 898 |
| 899 @DocsEditable |
| 788 @DomName('IDBTransaction.abort') | 900 @DomName('IDBTransaction.abort') |
| 789 void abort() native "IDBTransaction_abort_Callback"; | 901 void abort() native "IDBTransaction_abort_Callback"; |
| 790 | 902 |
| 903 @DocsEditable |
| 791 @DomName('IDBTransaction.addEventListener') | 904 @DomName('IDBTransaction.addEventListener') |
| 792 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBTransaction_addEventListener_Callback"; | 905 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBTransaction_addEventListener_Callback"; |
| 793 | 906 |
| 907 @DocsEditable |
| 794 @DomName('IDBTransaction.dispatchEvent') | 908 @DomName('IDBTransaction.dispatchEvent') |
| 795 bool $dom_dispatchEvent(Event evt) native "IDBTransaction_dispatchEvent_Callba
ck"; | 909 bool $dom_dispatchEvent(Event evt) native "IDBTransaction_dispatchEvent_Callba
ck"; |
| 796 | 910 |
| 911 @DocsEditable |
| 797 @DomName('IDBTransaction.objectStore') | 912 @DomName('IDBTransaction.objectStore') |
| 798 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba
ck"; | 913 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba
ck"; |
| 799 | 914 |
| 915 @DocsEditable |
| 800 @DomName('IDBTransaction.removeEventListener') | 916 @DomName('IDBTransaction.removeEventListener') |
| 801 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBTransaction_removeEventListener_Callback"; | 917 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBTransaction_removeEventListener_Callback"; |
| 802 | 918 |
| 803 Stream<Event> get onAbort => abortEvent.forTarget(this); | 919 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 804 | 920 |
| 805 Stream<Event> get onComplete => completeEvent.forTarget(this); | 921 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 806 | 922 |
| 807 Stream<Event> get onError => errorEvent.forTarget(this); | 923 Stream<Event> get onError => errorEvent.forTarget(this); |
| 808 | 924 |
| 809 } | 925 } |
| 810 | 926 |
| 811 /// @docsEditable true | 927 @DocsEditable |
| 812 class TransactionEvents extends Events { | 928 class TransactionEvents extends Events { |
| 813 /// @docsEditable true | 929 @DocsEditable |
| 814 TransactionEvents(EventTarget _ptr) : super(_ptr); | 930 TransactionEvents(EventTarget _ptr) : super(_ptr); |
| 815 | 931 |
| 816 /// @docsEditable true | 932 @DocsEditable |
| 817 EventListenerList get abort => this['abort']; | 933 EventListenerList get abort => this['abort']; |
| 818 | 934 |
| 819 /// @docsEditable true | 935 @DocsEditable |
| 820 EventListenerList get complete => this['complete']; | 936 EventListenerList get complete => this['complete']; |
| 821 | 937 |
| 822 /// @docsEditable true | 938 @DocsEditable |
| 823 EventListenerList get error => this['error']; | 939 EventListenerList get error => this['error']; |
| 824 } | 940 } |
| 825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 826 // for details. All rights reserved. Use of this source code is governed by a | 942 // for details. All rights reserved. Use of this source code is governed by a |
| 827 // BSD-style license that can be found in the LICENSE file. | 943 // BSD-style license that can be found in the LICENSE file. |
| 828 | 944 |
| 829 // WARNING: Do not edit - generated code. | 945 // WARNING: Do not edit - generated code. |
| 830 | 946 |
| 831 | 947 |
| 948 @DocsEditable |
| 832 @DomName('IDBVersionChangeEvent') | 949 @DomName('IDBVersionChangeEvent') |
| 833 class UpgradeNeededEvent extends Event { | 950 class UpgradeNeededEvent extends Event { |
| 834 UpgradeNeededEvent.internal() : super.internal(); | 951 UpgradeNeededEvent.internal() : super.internal(); |
| 835 | 952 |
| 953 @DocsEditable |
| 836 @DomName('IDBUpgradeNeededEvent.newVersion') | 954 @DomName('IDBUpgradeNeededEvent.newVersion') |
| 837 int get newVersion native "IDBUpgradeNeededEvent_newVersion_Getter"; | 955 int get newVersion native "IDBUpgradeNeededEvent_newVersion_Getter"; |
| 838 | 956 |
| 957 @DocsEditable |
| 839 @DomName('IDBUpgradeNeededEvent.oldVersion') | 958 @DomName('IDBUpgradeNeededEvent.oldVersion') |
| 840 int get oldVersion native "IDBUpgradeNeededEvent_oldVersion_Getter"; | 959 int get oldVersion native "IDBUpgradeNeededEvent_oldVersion_Getter"; |
| 841 | 960 |
| 842 } | 961 } |
| 843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 844 // for details. All rights reserved. Use of this source code is governed by a | 963 // for details. All rights reserved. Use of this source code is governed by a |
| 845 // BSD-style license that can be found in the LICENSE file. | 964 // BSD-style license that can be found in the LICENSE file. |
| 846 | 965 |
| 847 // WARNING: Do not edit - generated code. | 966 // WARNING: Do not edit - generated code. |
| 848 | 967 |
| 849 | 968 |
| 969 @DocsEditable |
| 850 @DomName('IDBVersionChangeEvent') | 970 @DomName('IDBVersionChangeEvent') |
| 851 class VersionChangeEvent extends Event { | 971 class VersionChangeEvent extends Event { |
| 852 VersionChangeEvent.internal() : super.internal(); | 972 VersionChangeEvent.internal() : super.internal(); |
| 853 | 973 |
| 974 @DocsEditable |
| 854 @DomName('IDBVersionChangeEvent.version') | 975 @DomName('IDBVersionChangeEvent.version') |
| 855 String get version native "IDBVersionChangeEvent_version_Getter"; | 976 String get version native "IDBVersionChangeEvent_version_Getter"; |
| 856 | 977 |
| 857 } | 978 } |
| 858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 979 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 859 // for details. All rights reserved. Use of this source code is governed by a | 980 // for details. All rights reserved. Use of this source code is governed by a |
| 860 // BSD-style license that can be found in the LICENSE file. | 981 // BSD-style license that can be found in the LICENSE file. |
| 861 | 982 |
| 862 // WARNING: Do not edit - generated code. | 983 // WARNING: Do not edit - generated code. |
| 863 | 984 |
| 864 | 985 |
| 986 @DocsEditable |
| 865 @DomName('IDBVersionChangeRequest') | 987 @DomName('IDBVersionChangeRequest') |
| 866 class VersionChangeRequest extends Request implements EventTarget { | 988 class VersionChangeRequest extends Request implements EventTarget { |
| 867 VersionChangeRequest.internal() : super.internal(); | 989 VersionChangeRequest.internal() : super.internal(); |
| 868 | 990 |
| 869 static const EventStreamProvider<Event> blockedEvent = const EventStreamProvid
er<Event>('blocked'); | 991 static const EventStreamProvider<Event> blockedEvent = const EventStreamProvid
er<Event>('blocked'); |
| 870 | 992 |
| 871 /// @docsEditable true | 993 @DocsEditable |
| 872 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 994 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 873 VersionChangeRequestEvents get on => | 995 VersionChangeRequestEvents get on => |
| 874 new VersionChangeRequestEvents(this); | 996 new VersionChangeRequestEvents(this); |
| 875 | 997 |
| 876 Stream<Event> get onBlocked => blockedEvent.forTarget(this); | 998 Stream<Event> get onBlocked => blockedEvent.forTarget(this); |
| 877 | 999 |
| 878 } | 1000 } |
| 879 | 1001 |
| 880 /// @docsEditable true | 1002 @DocsEditable |
| 881 class VersionChangeRequestEvents extends RequestEvents { | 1003 class VersionChangeRequestEvents extends RequestEvents { |
| 882 /// @docsEditable true | 1004 @DocsEditable |
| 883 VersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); | 1005 VersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); |
| 884 | 1006 |
| 885 /// @docsEditable true | 1007 @DocsEditable |
| 886 EventListenerList get blocked => this['blocked']; | 1008 EventListenerList get blocked => this['blocked']; |
| 887 } | 1009 } |
| 888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 889 // for details. All rights reserved. Use of this source code is governed by a | 1011 // for details. All rights reserved. Use of this source code is governed by a |
| 890 // BSD-style license that can be found in the LICENSE file. | 1012 // BSD-style license that can be found in the LICENSE file. |
| 891 | 1013 |
| 892 // WARNING: Do not edit - generated code. | 1014 // WARNING: Do not edit - generated code. |
| 893 | 1015 |
| 894 | 1016 |
| 1017 @DocsEditable |
| 895 @DomName('IDBAny') | 1018 @DomName('IDBAny') |
| 896 class _Any extends NativeFieldWrapperClass1 { | 1019 class _Any extends NativeFieldWrapperClass1 { |
| 897 _Any.internal(); | 1020 _Any.internal(); |
| 898 | 1021 |
| 899 } | 1022 } |
| OLD | NEW |