| 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
| 8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
| 9 | 9 |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 132 // for details. All rights reserved. Use of this source code is governed by a | 132 // for details. All rights reserved. Use of this source code is governed by a |
| 133 // BSD-style license that can be found in the LICENSE file. | 133 // BSD-style license that can be found in the LICENSE file. |
| 134 | 134 |
| 135 | 135 |
| 136 | 136 |
| 137 @DocsEditable | 137 @DocsEditable |
| 138 @DomName('IDBCursor') | 138 @DomName('IDBCursor') |
| 139 class Cursor native "*IDBCursor" { | 139 class Cursor native "*IDBCursor" { |
| 140 | 140 |
| 141 @DocsEditable @DomName('IDBCursor.direction') | 141 @DocsEditable |
| 142 @DomName('IDBCursor.direction') |
| 142 final String direction; | 143 final String direction; |
| 143 | 144 |
| 144 @DocsEditable @DomName('IDBCursor.key') @_annotation_Creates_IDBKey @_annotati
on_Returns_IDBKey | 145 @DocsEditable |
| 146 @DomName('IDBCursor.key') |
| 147 @_annotation_Creates_IDBKey |
| 148 @_annotation_Returns_IDBKey |
| 145 final Object key; | 149 final Object key; |
| 146 | 150 |
| 147 @DocsEditable @DomName('IDBCursor.primaryKey') | 151 @DocsEditable |
| 152 @DomName('IDBCursor.primaryKey') |
| 148 final Object primaryKey; | 153 final Object primaryKey; |
| 149 | 154 |
| 150 @DocsEditable @DomName('IDBCursor.source') | 155 @DocsEditable |
| 156 @DomName('IDBCursor.source') |
| 151 final dynamic source; | 157 final dynamic source; |
| 152 | 158 |
| 153 @DocsEditable @DomName('IDBCursor.advance') | 159 @DocsEditable |
| 160 @DomName('IDBCursor.advance') |
| 154 void advance(int count) native; | 161 void advance(int count) native; |
| 155 | 162 |
| 156 void continueFunction([/*IDBKey*/ key]) { | 163 void continueFunction([/*IDBKey*/ key]) { |
| 157 if (?key) { | 164 if (?key) { |
| 158 var key_1 = _convertDartToNative_IDBKey(key); | 165 var key_1 = _convertDartToNative_IDBKey(key); |
| 159 _continueFunction_1(key_1); | 166 _continueFunction_1(key_1); |
| 160 return; | 167 return; |
| 161 } | 168 } |
| 162 _continueFunction_2(); | 169 _continueFunction_2(); |
| 163 return; | 170 return; |
| 164 } | 171 } |
| 165 @JSName('continue') | 172 @JSName('continue') |
| 166 @DocsEditable @DomName('IDBCursor.continue') | 173 @DocsEditable |
| 174 @DomName('IDBCursor.continue') |
| 167 void _continueFunction_1(key) native; | 175 void _continueFunction_1(key) native; |
| 168 @JSName('continue') | 176 @JSName('continue') |
| 169 @DocsEditable @DomName('IDBCursor.continue') | 177 @DocsEditable |
| 178 @DomName('IDBCursor.continue') |
| 170 void _continueFunction_2() native; | 179 void _continueFunction_2() native; |
| 171 | 180 |
| 172 @DocsEditable @DomName('IDBCursor.delete') | 181 @DocsEditable |
| 182 @DomName('IDBCursor.delete') |
| 173 Request delete() native; | 183 Request delete() native; |
| 174 | 184 |
| 175 Request update(/*any*/ value) { | 185 Request update(/*any*/ value) { |
| 176 var value_1 = convertDartToNative_SerializedScriptValue(value); | 186 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 177 return _update_1(value_1); | 187 return _update_1(value_1); |
| 178 } | 188 } |
| 179 @JSName('update') | 189 @JSName('update') |
| 180 @DocsEditable @DomName('IDBCursor.update') | 190 @DocsEditable |
| 191 @DomName('IDBCursor.update') |
| 181 Request _update_1(value) native; | 192 Request _update_1(value) native; |
| 182 } | 193 } |
| 183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 184 // for details. All rights reserved. Use of this source code is governed by a | 195 // for details. All rights reserved. Use of this source code is governed by a |
| 185 // BSD-style license that can be found in the LICENSE file. | 196 // BSD-style license that can be found in the LICENSE file. |
| 186 | 197 |
| 187 | 198 |
| 188 | 199 |
| 189 @DocsEditable | 200 @DocsEditable |
| 190 @DomName('IDBCursorWithValue') | 201 @DomName('IDBCursorWithValue') |
| 191 class CursorWithValue extends Cursor native "*IDBCursorWithValue" { | 202 class CursorWithValue extends Cursor native "*IDBCursorWithValue" { |
| 192 | 203 |
| 193 @DocsEditable @DomName('IDBCursorWithValue.value') @annotation_Creates_Seriali
zedScriptValue @annotation_Returns_SerializedScriptValue | 204 @DocsEditable |
| 205 @DomName('IDBCursorWithValue.value') |
| 206 @annotation_Creates_SerializedScriptValue |
| 207 @annotation_Returns_SerializedScriptValue |
| 194 final Object value; | 208 final Object value; |
| 195 } | 209 } |
| 196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 197 // for details. All rights reserved. Use of this source code is governed by a | 211 // for details. All rights reserved. Use of this source code is governed by a |
| 198 // BSD-style license that can be found in the LICENSE file. | 212 // BSD-style license that can be found in the LICENSE file. |
| 199 | 213 |
| 200 | 214 |
| 201 @DocsEditable | 215 @DocsEditable |
| 202 @DomName('IDBDatabase') | 216 @DomName('IDBDatabase') |
| 203 @SupportedBrowser(SupportedBrowser.CHROME) | 217 @SupportedBrowser(SupportedBrowser.CHROME) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 228 | 242 |
| 229 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 243 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 230 | 244 |
| 231 static const EventStreamProvider<UpgradeNeededEvent> versionChangeEvent = cons
t EventStreamProvider<UpgradeNeededEvent>('versionchange'); | 245 static const EventStreamProvider<UpgradeNeededEvent> versionChangeEvent = cons
t EventStreamProvider<UpgradeNeededEvent>('versionchange'); |
| 232 | 246 |
| 233 @DocsEditable | 247 @DocsEditable |
| 234 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 248 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 235 DatabaseEvents get on => | 249 DatabaseEvents get on => |
| 236 new DatabaseEvents(this); | 250 new DatabaseEvents(this); |
| 237 | 251 |
| 238 @DocsEditable @DomName('IDBDatabase.name') | 252 @DocsEditable |
| 253 @DomName('IDBDatabase.name') |
| 239 final String name; | 254 final String name; |
| 240 | 255 |
| 241 @DocsEditable @DomName('IDBDatabase.objectStoreNames') | 256 @DocsEditable |
| 242 @Returns('DomStringList') @Creates('DomStringList') | 257 @DomName('IDBDatabase.objectStoreNames') |
| 258 @Returns('DomStringList') |
| 259 @Creates('DomStringList') |
| 243 final List<String> objectStoreNames; | 260 final List<String> objectStoreNames; |
| 244 | 261 |
| 245 @DocsEditable @DomName('IDBDatabase.version') | 262 @DocsEditable |
| 263 @DomName('IDBDatabase.version') |
| 246 final dynamic version; | 264 final dynamic version; |
| 247 | 265 |
| 248 @JSName('addEventListener') | 266 @JSName('addEventListener') |
| 249 @DocsEditable @DomName('IDBDatabase.addEventListener') | 267 @DocsEditable |
| 268 @DomName('IDBDatabase.addEventListener') |
| 250 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 269 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 251 | 270 |
| 252 @DocsEditable @DomName('IDBDatabase.close') | 271 @DocsEditable |
| 272 @DomName('IDBDatabase.close') |
| 253 void close() native; | 273 void close() native; |
| 254 | 274 |
| 255 ObjectStore createObjectStore(String name, [Map options]) { | 275 ObjectStore createObjectStore(String name, [Map options]) { |
| 256 if (?options) { | 276 if (?options) { |
| 257 var options_1 = convertDartToNative_Dictionary(options); | 277 var options_1 = convertDartToNative_Dictionary(options); |
| 258 return _createObjectStore_1(name, options_1); | 278 return _createObjectStore_1(name, options_1); |
| 259 } | 279 } |
| 260 return _createObjectStore_2(name); | 280 return _createObjectStore_2(name); |
| 261 } | 281 } |
| 262 @JSName('createObjectStore') | 282 @JSName('createObjectStore') |
| 263 @DocsEditable @DomName('IDBDatabase.createObjectStore') | 283 @DocsEditable |
| 284 @DomName('IDBDatabase.createObjectStore') |
| 264 ObjectStore _createObjectStore_1(name, options) native; | 285 ObjectStore _createObjectStore_1(name, options) native; |
| 265 @JSName('createObjectStore') | 286 @JSName('createObjectStore') |
| 266 @DocsEditable @DomName('IDBDatabase.createObjectStore') | 287 @DocsEditable |
| 288 @DomName('IDBDatabase.createObjectStore') |
| 267 ObjectStore _createObjectStore_2(name) native; | 289 ObjectStore _createObjectStore_2(name) native; |
| 268 | 290 |
| 269 @DocsEditable @DomName('IDBDatabase.deleteObjectStore') | 291 @DocsEditable |
| 292 @DomName('IDBDatabase.deleteObjectStore') |
| 270 void deleteObjectStore(String name) native; | 293 void deleteObjectStore(String name) native; |
| 271 | 294 |
| 272 @JSName('dispatchEvent') | 295 @JSName('dispatchEvent') |
| 273 @DocsEditable @DomName('IDBDatabase.dispatchEvent') | 296 @DocsEditable |
| 297 @DomName('IDBDatabase.dispatchEvent') |
| 274 bool $dom_dispatchEvent(Event evt) native; | 298 bool $dom_dispatchEvent(Event evt) native; |
| 275 | 299 |
| 276 @JSName('removeEventListener') | 300 @JSName('removeEventListener') |
| 277 @DocsEditable @DomName('IDBDatabase.removeEventListener') | 301 @DocsEditable |
| 302 @DomName('IDBDatabase.removeEventListener') |
| 278 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 303 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 279 | 304 |
| 280 Stream<Event> get onAbort => abortEvent.forTarget(this); | 305 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 281 | 306 |
| 282 Stream<Event> get onError => errorEvent.forTarget(this); | 307 Stream<Event> get onError => errorEvent.forTarget(this); |
| 283 | 308 |
| 284 Stream<UpgradeNeededEvent> get onVersionChange => versionChangeEvent.forTarget
(this); | 309 Stream<UpgradeNeededEvent> get onVersionChange => versionChangeEvent.forTarget
(this); |
| 285 } | 310 } |
| 286 | 311 |
| 287 @DocsEditable | 312 @DocsEditable |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 'window.mozIndexedDB)'); | 345 'window.mozIndexedDB)'); |
| 321 } | 346 } |
| 322 | 347 |
| 323 | 348 |
| 324 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { | 349 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { |
| 325 var first_1 = _convertDartToNative_IDBKey(first); | 350 var first_1 = _convertDartToNative_IDBKey(first); |
| 326 var second_2 = _convertDartToNative_IDBKey(second); | 351 var second_2 = _convertDartToNative_IDBKey(second); |
| 327 return _cmp_1(first_1, second_2); | 352 return _cmp_1(first_1, second_2); |
| 328 } | 353 } |
| 329 @JSName('cmp') | 354 @JSName('cmp') |
| 330 @DocsEditable @DomName('IDBFactory.cmp') | 355 @DocsEditable |
| 356 @DomName('IDBFactory.cmp') |
| 331 int _cmp_1(first, second) native; | 357 int _cmp_1(first, second) native; |
| 332 | 358 |
| 333 @DocsEditable @DomName('IDBFactory.deleteDatabase') | 359 @DocsEditable |
| 360 @DomName('IDBFactory.deleteDatabase') |
| 334 VersionChangeRequest deleteDatabase(String name) native; | 361 VersionChangeRequest deleteDatabase(String name) native; |
| 335 | 362 |
| 336 @DocsEditable @DomName('IDBFactory.open') @Returns('Request') @Creates('Reques
t') @Creates('Database') | 363 @DocsEditable |
| 364 @DomName('IDBFactory.open') |
| 365 @Returns('Request') |
| 366 @Creates('Request') |
| 367 @Creates('Database') |
| 337 OpenDBRequest open(String name, [int version]) native; | 368 OpenDBRequest open(String name, [int version]) native; |
| 338 | 369 |
| 339 @DocsEditable @DomName('IDBFactory.webkitGetDatabaseNames') | 370 @DocsEditable |
| 371 @DomName('IDBFactory.webkitGetDatabaseNames') |
| 340 Request webkitGetDatabaseNames() native; | 372 Request webkitGetDatabaseNames() native; |
| 341 | 373 |
| 342 } | 374 } |
| 343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 344 // for details. All rights reserved. Use of this source code is governed by a | 376 // for details. All rights reserved. Use of this source code is governed by a |
| 345 // BSD-style license that can be found in the LICENSE file. | 377 // BSD-style license that can be found in the LICENSE file. |
| 346 | 378 |
| 347 | 379 |
| 348 | 380 |
| 349 @DocsEditable | 381 @DocsEditable |
| 350 @DomName('IDBIndex') | 382 @DomName('IDBIndex') |
| 351 class Index native "*IDBIndex" { | 383 class Index native "*IDBIndex" { |
| 352 | 384 |
| 353 @DocsEditable @DomName('IDBIndex.keyPath') | 385 @DocsEditable |
| 386 @DomName('IDBIndex.keyPath') |
| 354 final dynamic keyPath; | 387 final dynamic keyPath; |
| 355 | 388 |
| 356 @DocsEditable @DomName('IDBIndex.multiEntry') | 389 @DocsEditable |
| 390 @DomName('IDBIndex.multiEntry') |
| 357 final bool multiEntry; | 391 final bool multiEntry; |
| 358 | 392 |
| 359 @DocsEditable @DomName('IDBIndex.name') | 393 @DocsEditable |
| 394 @DomName('IDBIndex.name') |
| 360 final String name; | 395 final String name; |
| 361 | 396 |
| 362 @DocsEditable @DomName('IDBIndex.objectStore') | 397 @DocsEditable |
| 398 @DomName('IDBIndex.objectStore') |
| 363 final ObjectStore objectStore; | 399 final ObjectStore objectStore; |
| 364 | 400 |
| 365 @DocsEditable @DomName('IDBIndex.unique') | 401 @DocsEditable |
| 402 @DomName('IDBIndex.unique') |
| 366 final bool unique; | 403 final bool unique; |
| 367 | 404 |
| 368 Request count([key_OR_range]) { | 405 Request count([key_OR_range]) { |
| 369 if (!?key_OR_range) { | 406 if (!?key_OR_range) { |
| 370 return _count_1(); | 407 return _count_1(); |
| 371 } | 408 } |
| 372 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 409 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 373 return _count_2(key_OR_range); | 410 return _count_2(key_OR_range); |
| 374 } | 411 } |
| 375 if (?key_OR_range) { | 412 if (?key_OR_range) { |
| 376 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 413 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| 377 return _count_3(key_1); | 414 return _count_3(key_1); |
| 378 } | 415 } |
| 379 throw new ArgumentError("Incorrect number or type of arguments"); | 416 throw new ArgumentError("Incorrect number or type of arguments"); |
| 380 } | 417 } |
| 381 @JSName('count') | 418 @JSName('count') |
| 382 @DocsEditable @DomName('IDBIndex.count') | 419 @DocsEditable |
| 420 @DomName('IDBIndex.count') |
| 383 Request _count_1() native; | 421 Request _count_1() native; |
| 384 @JSName('count') | 422 @JSName('count') |
| 385 @DocsEditable @DomName('IDBIndex.count') | 423 @DocsEditable |
| 424 @DomName('IDBIndex.count') |
| 386 Request _count_2(KeyRange range) native; | 425 Request _count_2(KeyRange range) native; |
| 387 @JSName('count') | 426 @JSName('count') |
| 388 @DocsEditable @DomName('IDBIndex.count') | 427 @DocsEditable |
| 428 @DomName('IDBIndex.count') |
| 389 Request _count_3(key) native; | 429 Request _count_3(key) native; |
| 390 | 430 |
| 391 Request get(key) { | 431 Request get(key) { |
| 392 if ((key is KeyRange || key == null)) { | 432 if ((key is KeyRange || key == null)) { |
| 393 return _get_1(key); | 433 return _get_1(key); |
| 394 } | 434 } |
| 395 if (?key) { | 435 if (?key) { |
| 396 var key_1 = _convertDartToNative_IDBKey(key); | 436 var key_1 = _convertDartToNative_IDBKey(key); |
| 397 return _get_2(key_1); | 437 return _get_2(key_1); |
| 398 } | 438 } |
| 399 throw new ArgumentError("Incorrect number or type of arguments"); | 439 throw new ArgumentError("Incorrect number or type of arguments"); |
| 400 } | 440 } |
| 401 @JSName('get') | 441 @JSName('get') |
| 402 @DocsEditable @DomName('IDBIndex.get') @Returns('Request') @Creates('Request')
@annotation_Creates_SerializedScriptValue | 442 @DocsEditable |
| 443 @DomName('IDBIndex.get') |
| 444 @Returns('Request') |
| 445 @Creates('Request') |
| 446 @annotation_Creates_SerializedScriptValue |
| 403 Request _get_1(KeyRange key) native; | 447 Request _get_1(KeyRange key) native; |
| 404 @JSName('get') | 448 @JSName('get') |
| 405 @DocsEditable @DomName('IDBIndex.get') @Returns('Request') @Creates('Request')
@annotation_Creates_SerializedScriptValue | 449 @DocsEditable |
| 450 @DomName('IDBIndex.get') |
| 451 @Returns('Request') |
| 452 @Creates('Request') |
| 453 @annotation_Creates_SerializedScriptValue |
| 406 Request _get_2(key) native; | 454 Request _get_2(key) native; |
| 407 | 455 |
| 408 Request getKey(key) { | 456 Request getKey(key) { |
| 409 if ((key is KeyRange || key == null)) { | 457 if ((key is KeyRange || key == null)) { |
| 410 return _getKey_1(key); | 458 return _getKey_1(key); |
| 411 } | 459 } |
| 412 if (?key) { | 460 if (?key) { |
| 413 var key_1 = _convertDartToNative_IDBKey(key); | 461 var key_1 = _convertDartToNative_IDBKey(key); |
| 414 return _getKey_2(key_1); | 462 return _getKey_2(key_1); |
| 415 } | 463 } |
| 416 throw new ArgumentError("Incorrect number or type of arguments"); | 464 throw new ArgumentError("Incorrect number or type of arguments"); |
| 417 } | 465 } |
| 418 @JSName('getKey') | 466 @JSName('getKey') |
| 419 @DocsEditable @DomName('IDBIndex.getKey') @Returns('Request') @Creates('Reques
t') @annotation_Creates_SerializedScriptValue @Creates('ObjectStore') | 467 @DocsEditable |
| 468 @DomName('IDBIndex.getKey') |
| 469 @Returns('Request') |
| 470 @Creates('Request') |
| 471 @annotation_Creates_SerializedScriptValue |
| 472 @Creates('ObjectStore') |
| 420 Request _getKey_1(KeyRange key) native; | 473 Request _getKey_1(KeyRange key) native; |
| 421 @JSName('getKey') | 474 @JSName('getKey') |
| 422 @DocsEditable @DomName('IDBIndex.getKey') @Returns('Request') @Creates('Reques
t') @annotation_Creates_SerializedScriptValue @Creates('ObjectStore') | 475 @DocsEditable |
| 476 @DomName('IDBIndex.getKey') |
| 477 @Returns('Request') |
| 478 @Creates('Request') |
| 479 @annotation_Creates_SerializedScriptValue |
| 480 @Creates('ObjectStore') |
| 423 Request _getKey_2(key) native; | 481 Request _getKey_2(key) native; |
| 424 | 482 |
| 425 Request openCursor([key_OR_range, String direction]) { | 483 Request openCursor([key_OR_range, String direction]) { |
| 426 if (!?key_OR_range && | 484 if (!?key_OR_range && |
| 427 !?direction) { | 485 !?direction) { |
| 428 return _openCursor_1(); | 486 return _openCursor_1(); |
| 429 } | 487 } |
| 430 if ((key_OR_range is KeyRange || key_OR_range == null) && | 488 if ((key_OR_range is KeyRange || key_OR_range == null) && |
| 431 !?direction) { | 489 !?direction) { |
| 432 return _openCursor_2(key_OR_range); | 490 return _openCursor_2(key_OR_range); |
| 433 } | 491 } |
| 434 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 492 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 435 return _openCursor_3(key_OR_range, direction); | 493 return _openCursor_3(key_OR_range, direction); |
| 436 } | 494 } |
| 437 if (?key_OR_range && | 495 if (?key_OR_range && |
| 438 !?direction) { | 496 !?direction) { |
| 439 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 497 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| 440 return _openCursor_4(key_1); | 498 return _openCursor_4(key_1); |
| 441 } | 499 } |
| 442 if (?key_OR_range) { | 500 if (?key_OR_range) { |
| 443 var key_2 = _convertDartToNative_IDBKey(key_OR_range); | 501 var key_2 = _convertDartToNative_IDBKey(key_OR_range); |
| 444 return _openCursor_5(key_2, direction); | 502 return _openCursor_5(key_2, direction); |
| 445 } | 503 } |
| 446 throw new ArgumentError("Incorrect number or type of arguments"); | 504 throw new ArgumentError("Incorrect number or type of arguments"); |
| 447 } | 505 } |
| 448 @JSName('openCursor') | 506 @JSName('openCursor') |
| 449 @DocsEditable @DomName('IDBIndex.openCursor') @Returns('Request') @Creates('Re
quest') @Creates('Cursor') | 507 @DocsEditable |
| 508 @DomName('IDBIndex.openCursor') |
| 509 @Returns('Request') |
| 510 @Creates('Request') |
| 511 @Creates('Cursor') |
| 450 Request _openCursor_1() native; | 512 Request _openCursor_1() native; |
| 451 @JSName('openCursor') | 513 @JSName('openCursor') |
| 452 @DocsEditable @DomName('IDBIndex.openCursor') @Returns('Request') @Creates('Re
quest') @Creates('Cursor') | 514 @DocsEditable |
| 515 @DomName('IDBIndex.openCursor') |
| 516 @Returns('Request') |
| 517 @Creates('Request') |
| 518 @Creates('Cursor') |
| 453 Request _openCursor_2(KeyRange range) native; | 519 Request _openCursor_2(KeyRange range) native; |
| 454 @JSName('openCursor') | 520 @JSName('openCursor') |
| 455 @DocsEditable @DomName('IDBIndex.openCursor') @Returns('Request') @Creates('Re
quest') @Creates('Cursor') | 521 @DocsEditable |
| 522 @DomName('IDBIndex.openCursor') |
| 523 @Returns('Request') |
| 524 @Creates('Request') |
| 525 @Creates('Cursor') |
| 456 Request _openCursor_3(KeyRange range, direction) native; | 526 Request _openCursor_3(KeyRange range, direction) native; |
| 457 @JSName('openCursor') | 527 @JSName('openCursor') |
| 458 @DocsEditable @DomName('IDBIndex.openCursor') @Returns('Request') @Creates('Re
quest') @Creates('Cursor') | 528 @DocsEditable |
| 529 @DomName('IDBIndex.openCursor') |
| 530 @Returns('Request') |
| 531 @Creates('Request') |
| 532 @Creates('Cursor') |
| 459 Request _openCursor_4(key) native; | 533 Request _openCursor_4(key) native; |
| 460 @JSName('openCursor') | 534 @JSName('openCursor') |
| 461 @DocsEditable @DomName('IDBIndex.openCursor') @Returns('Request') @Creates('Re
quest') @Creates('Cursor') | 535 @DocsEditable |
| 536 @DomName('IDBIndex.openCursor') |
| 537 @Returns('Request') |
| 538 @Creates('Request') |
| 539 @Creates('Cursor') |
| 462 Request _openCursor_5(key, direction) native; | 540 Request _openCursor_5(key, direction) native; |
| 463 | 541 |
| 464 Request openKeyCursor([key_OR_range, String direction]) { | 542 Request openKeyCursor([key_OR_range, String direction]) { |
| 465 if (!?key_OR_range && | 543 if (!?key_OR_range && |
| 466 !?direction) { | 544 !?direction) { |
| 467 return _openKeyCursor_1(); | 545 return _openKeyCursor_1(); |
| 468 } | 546 } |
| 469 if ((key_OR_range is KeyRange || key_OR_range == null) && | 547 if ((key_OR_range is KeyRange || key_OR_range == null) && |
| 470 !?direction) { | 548 !?direction) { |
| 471 return _openKeyCursor_2(key_OR_range); | 549 return _openKeyCursor_2(key_OR_range); |
| 472 } | 550 } |
| 473 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 551 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 474 return _openKeyCursor_3(key_OR_range, direction); | 552 return _openKeyCursor_3(key_OR_range, direction); |
| 475 } | 553 } |
| 476 if (?key_OR_range && | 554 if (?key_OR_range && |
| 477 !?direction) { | 555 !?direction) { |
| 478 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 556 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| 479 return _openKeyCursor_4(key_1); | 557 return _openKeyCursor_4(key_1); |
| 480 } | 558 } |
| 481 if (?key_OR_range) { | 559 if (?key_OR_range) { |
| 482 var key_2 = _convertDartToNative_IDBKey(key_OR_range); | 560 var key_2 = _convertDartToNative_IDBKey(key_OR_range); |
| 483 return _openKeyCursor_5(key_2, direction); | 561 return _openKeyCursor_5(key_2, direction); |
| 484 } | 562 } |
| 485 throw new ArgumentError("Incorrect number or type of arguments"); | 563 throw new ArgumentError("Incorrect number or type of arguments"); |
| 486 } | 564 } |
| 487 @JSName('openKeyCursor') | 565 @JSName('openKeyCursor') |
| 488 @DocsEditable @DomName('IDBIndex.openKeyCursor') @Returns('Request') @Creates(
'Request') @Creates('Cursor') | 566 @DocsEditable |
| 567 @DomName('IDBIndex.openKeyCursor') |
| 568 @Returns('Request') |
| 569 @Creates('Request') |
| 570 @Creates('Cursor') |
| 489 Request _openKeyCursor_1() native; | 571 Request _openKeyCursor_1() native; |
| 490 @JSName('openKeyCursor') | 572 @JSName('openKeyCursor') |
| 491 @DocsEditable @DomName('IDBIndex.openKeyCursor') @Returns('Request') @Creates(
'Request') @Creates('Cursor') | 573 @DocsEditable |
| 574 @DomName('IDBIndex.openKeyCursor') |
| 575 @Returns('Request') |
| 576 @Creates('Request') |
| 577 @Creates('Cursor') |
| 492 Request _openKeyCursor_2(KeyRange range) native; | 578 Request _openKeyCursor_2(KeyRange range) native; |
| 493 @JSName('openKeyCursor') | 579 @JSName('openKeyCursor') |
| 494 @DocsEditable @DomName('IDBIndex.openKeyCursor') @Returns('Request') @Creates(
'Request') @Creates('Cursor') | 580 @DocsEditable |
| 581 @DomName('IDBIndex.openKeyCursor') |
| 582 @Returns('Request') |
| 583 @Creates('Request') |
| 584 @Creates('Cursor') |
| 495 Request _openKeyCursor_3(KeyRange range, direction) native; | 585 Request _openKeyCursor_3(KeyRange range, direction) native; |
| 496 @JSName('openKeyCursor') | 586 @JSName('openKeyCursor') |
| 497 @DocsEditable @DomName('IDBIndex.openKeyCursor') @Returns('Request') @Creates(
'Request') @Creates('Cursor') | 587 @DocsEditable |
| 588 @DomName('IDBIndex.openKeyCursor') |
| 589 @Returns('Request') |
| 590 @Creates('Request') |
| 591 @Creates('Cursor') |
| 498 Request _openKeyCursor_4(key) native; | 592 Request _openKeyCursor_4(key) native; |
| 499 @JSName('openKeyCursor') | 593 @JSName('openKeyCursor') |
| 500 @DocsEditable @DomName('IDBIndex.openKeyCursor') @Returns('Request') @Creates(
'Request') @Creates('Cursor') | 594 @DocsEditable |
| 595 @DomName('IDBIndex.openKeyCursor') |
| 596 @Returns('Request') |
| 597 @Creates('Request') |
| 598 @Creates('Cursor') |
| 501 Request _openKeyCursor_5(key, direction) native; | 599 Request _openKeyCursor_5(key, direction) native; |
| 502 } | 600 } |
| 503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 504 // for details. All rights reserved. Use of this source code is governed by a | 602 // for details. All rights reserved. Use of this source code is governed by a |
| 505 // BSD-style license that can be found in the LICENSE file. | 603 // BSD-style license that can be found in the LICENSE file. |
| 506 | 604 |
| 507 | 605 |
| 508 | 606 |
| 509 @DocsEditable | 607 @DocsEditable |
| 510 @DomName('IDBKey') | 608 @DomName('IDBKey') |
| (...skipping 21 matching lines...) Expand all Loading... |
| 532 | 630 |
| 533 @DomName('KeyRange.bound') | 631 @DomName('KeyRange.bound') |
| 534 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, | 632 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, |
| 535 [bool lowerOpen = false, bool upperOpen = false]) => | 633 [bool lowerOpen = false, bool upperOpen = false]) => |
| 536 _KeyRangeFactoryProvider.createKeyRange_bound( | 634 _KeyRangeFactoryProvider.createKeyRange_bound( |
| 537 lower, upper, lowerOpen, upperOpen); | 635 lower, upper, lowerOpen, upperOpen); |
| 538 | 636 |
| 539 | 637 |
| 540 dynamic get lower => _convertNativeToDart_IDBKey(this._lower); | 638 dynamic get lower => _convertNativeToDart_IDBKey(this._lower); |
| 541 @JSName('lower') | 639 @JSName('lower') |
| 542 @DocsEditable @DomName('IDBKeyRange.lower') | 640 @DocsEditable |
| 641 @DomName('IDBKeyRange.lower') |
| 543 final dynamic _lower; | 642 final dynamic _lower; |
| 544 | 643 |
| 545 @DocsEditable @DomName('IDBKeyRange.lowerOpen') | 644 @DocsEditable |
| 645 @DomName('IDBKeyRange.lowerOpen') |
| 546 final bool lowerOpen; | 646 final bool lowerOpen; |
| 547 | 647 |
| 548 dynamic get upper => _convertNativeToDart_IDBKey(this._upper); | 648 dynamic get upper => _convertNativeToDart_IDBKey(this._upper); |
| 549 @JSName('upper') | 649 @JSName('upper') |
| 550 @DocsEditable @DomName('IDBKeyRange.upper') | 650 @DocsEditable |
| 651 @DomName('IDBKeyRange.upper') |
| 551 final dynamic _upper; | 652 final dynamic _upper; |
| 552 | 653 |
| 553 @DocsEditable @DomName('IDBKeyRange.upperOpen') | 654 @DocsEditable |
| 655 @DomName('IDBKeyRange.upperOpen') |
| 554 final bool upperOpen; | 656 final bool upperOpen; |
| 555 | 657 |
| 556 static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bo
ol upperOpen]) { | 658 static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bo
ol upperOpen]) { |
| 557 if (?upperOpen) { | 659 if (?upperOpen) { |
| 558 var lower_1 = _convertDartToNative_IDBKey(lower); | 660 var lower_1 = _convertDartToNative_IDBKey(lower); |
| 559 var upper_2 = _convertDartToNative_IDBKey(upper); | 661 var upper_2 = _convertDartToNative_IDBKey(upper); |
| 560 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); | 662 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); |
| 561 } | 663 } |
| 562 if (?lowerOpen) { | 664 if (?lowerOpen) { |
| 563 var lower_3 = _convertDartToNative_IDBKey(lower); | 665 var lower_3 = _convertDartToNative_IDBKey(lower); |
| 564 var upper_4 = _convertDartToNative_IDBKey(upper); | 666 var upper_4 = _convertDartToNative_IDBKey(upper); |
| 565 return _bound__2(lower_3, upper_4, lowerOpen); | 667 return _bound__2(lower_3, upper_4, lowerOpen); |
| 566 } | 668 } |
| 567 var lower_5 = _convertDartToNative_IDBKey(lower); | 669 var lower_5 = _convertDartToNative_IDBKey(lower); |
| 568 var upper_6 = _convertDartToNative_IDBKey(upper); | 670 var upper_6 = _convertDartToNative_IDBKey(upper); |
| 569 return _bound__3(lower_5, upper_6); | 671 return _bound__3(lower_5, upper_6); |
| 570 } | 672 } |
| 571 @JSName('bound') | 673 @JSName('bound') |
| 572 @DocsEditable @DomName('IDBKeyRange.bound') | 674 @DocsEditable |
| 675 @DomName('IDBKeyRange.bound') |
| 573 static KeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native; | 676 static KeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native; |
| 574 @JSName('bound') | 677 @JSName('bound') |
| 575 @DocsEditable @DomName('IDBKeyRange.bound') | 678 @DocsEditable |
| 679 @DomName('IDBKeyRange.bound') |
| 576 static KeyRange _bound__2(lower, upper, lowerOpen) native; | 680 static KeyRange _bound__2(lower, upper, lowerOpen) native; |
| 577 @JSName('bound') | 681 @JSName('bound') |
| 578 @DocsEditable @DomName('IDBKeyRange.bound') | 682 @DocsEditable |
| 683 @DomName('IDBKeyRange.bound') |
| 579 static KeyRange _bound__3(lower, upper) native; | 684 static KeyRange _bound__3(lower, upper) native; |
| 580 | 685 |
| 581 static KeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { | 686 static KeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { |
| 582 if (?open) { | 687 if (?open) { |
| 583 var bound_1 = _convertDartToNative_IDBKey(bound); | 688 var bound_1 = _convertDartToNative_IDBKey(bound); |
| 584 return _lowerBound__1(bound_1, open); | 689 return _lowerBound__1(bound_1, open); |
| 585 } | 690 } |
| 586 var bound_2 = _convertDartToNative_IDBKey(bound); | 691 var bound_2 = _convertDartToNative_IDBKey(bound); |
| 587 return _lowerBound__2(bound_2); | 692 return _lowerBound__2(bound_2); |
| 588 } | 693 } |
| 589 @JSName('lowerBound') | 694 @JSName('lowerBound') |
| 590 @DocsEditable @DomName('IDBKeyRange.lowerBound') | 695 @DocsEditable |
| 696 @DomName('IDBKeyRange.lowerBound') |
| 591 static KeyRange _lowerBound__1(bound, open) native; | 697 static KeyRange _lowerBound__1(bound, open) native; |
| 592 @JSName('lowerBound') | 698 @JSName('lowerBound') |
| 593 @DocsEditable @DomName('IDBKeyRange.lowerBound') | 699 @DocsEditable |
| 700 @DomName('IDBKeyRange.lowerBound') |
| 594 static KeyRange _lowerBound__2(bound) native; | 701 static KeyRange _lowerBound__2(bound) native; |
| 595 | 702 |
| 596 static KeyRange only_(/*IDBKey*/ value) { | 703 static KeyRange only_(/*IDBKey*/ value) { |
| 597 var value_1 = _convertDartToNative_IDBKey(value); | 704 var value_1 = _convertDartToNative_IDBKey(value); |
| 598 return _only__1(value_1); | 705 return _only__1(value_1); |
| 599 } | 706 } |
| 600 @JSName('only') | 707 @JSName('only') |
| 601 @DocsEditable @DomName('IDBKeyRange.only') | 708 @DocsEditable |
| 709 @DomName('IDBKeyRange.only') |
| 602 static KeyRange _only__1(value) native; | 710 static KeyRange _only__1(value) native; |
| 603 | 711 |
| 604 static KeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { | 712 static KeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { |
| 605 if (?open) { | 713 if (?open) { |
| 606 var bound_1 = _convertDartToNative_IDBKey(bound); | 714 var bound_1 = _convertDartToNative_IDBKey(bound); |
| 607 return _upperBound__1(bound_1, open); | 715 return _upperBound__1(bound_1, open); |
| 608 } | 716 } |
| 609 var bound_2 = _convertDartToNative_IDBKey(bound); | 717 var bound_2 = _convertDartToNative_IDBKey(bound); |
| 610 return _upperBound__2(bound_2); | 718 return _upperBound__2(bound_2); |
| 611 } | 719 } |
| 612 @JSName('upperBound') | 720 @JSName('upperBound') |
| 613 @DocsEditable @DomName('IDBKeyRange.upperBound') | 721 @DocsEditable |
| 722 @DomName('IDBKeyRange.upperBound') |
| 614 static KeyRange _upperBound__1(bound, open) native; | 723 static KeyRange _upperBound__1(bound, open) native; |
| 615 @JSName('upperBound') | 724 @JSName('upperBound') |
| 616 @DocsEditable @DomName('IDBKeyRange.upperBound') | 725 @DocsEditable |
| 726 @DomName('IDBKeyRange.upperBound') |
| 617 static KeyRange _upperBound__2(bound) native; | 727 static KeyRange _upperBound__2(bound) native; |
| 618 | 728 |
| 619 } | 729 } |
| 620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 621 // for details. All rights reserved. Use of this source code is governed by a | 731 // for details. All rights reserved. Use of this source code is governed by a |
| 622 // BSD-style license that can be found in the LICENSE file. | 732 // BSD-style license that can be found in the LICENSE file. |
| 623 | 733 |
| 624 | 734 |
| 625 | 735 |
| 626 @DocsEditable | 736 @DocsEditable |
| 627 @DomName('IDBObjectStore') | 737 @DomName('IDBObjectStore') |
| 628 class ObjectStore native "*IDBObjectStore" { | 738 class ObjectStore native "*IDBObjectStore" { |
| 629 | 739 |
| 630 @DocsEditable @DomName('IDBObjectStore.autoIncrement') | 740 @DocsEditable |
| 741 @DomName('IDBObjectStore.autoIncrement') |
| 631 final bool autoIncrement; | 742 final bool autoIncrement; |
| 632 | 743 |
| 633 @DocsEditable @DomName('IDBObjectStore.indexNames') | 744 @DocsEditable |
| 634 @Returns('DomStringList') @Creates('DomStringList') | 745 @DomName('IDBObjectStore.indexNames') |
| 746 @Returns('DomStringList') |
| 747 @Creates('DomStringList') |
| 635 final List<String> indexNames; | 748 final List<String> indexNames; |
| 636 | 749 |
| 637 @DocsEditable @DomName('IDBObjectStore.keyPath') | 750 @DocsEditable |
| 751 @DomName('IDBObjectStore.keyPath') |
| 638 final dynamic keyPath; | 752 final dynamic keyPath; |
| 639 | 753 |
| 640 @DocsEditable @DomName('IDBObjectStore.name') | 754 @DocsEditable |
| 755 @DomName('IDBObjectStore.name') |
| 641 final String name; | 756 final String name; |
| 642 | 757 |
| 643 @DocsEditable @DomName('IDBObjectStore.transaction') | 758 @DocsEditable |
| 759 @DomName('IDBObjectStore.transaction') |
| 644 final Transaction transaction; | 760 final Transaction transaction; |
| 645 | 761 |
| 646 Request add(/*any*/ value, [/*IDBKey*/ key]) { | 762 Request add(/*any*/ value, [/*IDBKey*/ key]) { |
| 647 if (?key) { | 763 if (?key) { |
| 648 var value_1 = convertDartToNative_SerializedScriptValue(value); | 764 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 649 var key_2 = _convertDartToNative_IDBKey(key); | 765 var key_2 = _convertDartToNative_IDBKey(key); |
| 650 return _add_1(value_1, key_2); | 766 return _add_1(value_1, key_2); |
| 651 } | 767 } |
| 652 var value_3 = convertDartToNative_SerializedScriptValue(value); | 768 var value_3 = convertDartToNative_SerializedScriptValue(value); |
| 653 return _add_2(value_3); | 769 return _add_2(value_3); |
| 654 } | 770 } |
| 655 @JSName('add') | 771 @JSName('add') |
| 656 @DocsEditable @DomName('IDBObjectStore.add') @Returns('Request') @Creates('Req
uest') @_annotation_Creates_IDBKey | 772 @DocsEditable |
| 773 @DomName('IDBObjectStore.add') |
| 774 @Returns('Request') |
| 775 @Creates('Request') |
| 776 @_annotation_Creates_IDBKey |
| 657 Request _add_1(value, key) native; | 777 Request _add_1(value, key) native; |
| 658 @JSName('add') | 778 @JSName('add') |
| 659 @DocsEditable @DomName('IDBObjectStore.add') @Returns('Request') @Creates('Req
uest') @_annotation_Creates_IDBKey | 779 @DocsEditable |
| 780 @DomName('IDBObjectStore.add') |
| 781 @Returns('Request') |
| 782 @Creates('Request') |
| 783 @_annotation_Creates_IDBKey |
| 660 Request _add_2(value) native; | 784 Request _add_2(value) native; |
| 661 | 785 |
| 662 @DocsEditable @DomName('IDBObjectStore.clear') | 786 @DocsEditable |
| 787 @DomName('IDBObjectStore.clear') |
| 663 Request clear() native; | 788 Request clear() native; |
| 664 | 789 |
| 665 Request count([key_OR_range]) { | 790 Request count([key_OR_range]) { |
| 666 if (!?key_OR_range) { | 791 if (!?key_OR_range) { |
| 667 return _count_1(); | 792 return _count_1(); |
| 668 } | 793 } |
| 669 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 794 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 670 return _count_2(key_OR_range); | 795 return _count_2(key_OR_range); |
| 671 } | 796 } |
| 672 if (?key_OR_range) { | 797 if (?key_OR_range) { |
| 673 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 798 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| 674 return _count_3(key_1); | 799 return _count_3(key_1); |
| 675 } | 800 } |
| 676 throw new ArgumentError("Incorrect number or type of arguments"); | 801 throw new ArgumentError("Incorrect number or type of arguments"); |
| 677 } | 802 } |
| 678 @JSName('count') | 803 @JSName('count') |
| 679 @DocsEditable @DomName('IDBObjectStore.count') | 804 @DocsEditable |
| 805 @DomName('IDBObjectStore.count') |
| 680 Request _count_1() native; | 806 Request _count_1() native; |
| 681 @JSName('count') | 807 @JSName('count') |
| 682 @DocsEditable @DomName('IDBObjectStore.count') | 808 @DocsEditable |
| 809 @DomName('IDBObjectStore.count') |
| 683 Request _count_2(KeyRange range) native; | 810 Request _count_2(KeyRange range) native; |
| 684 @JSName('count') | 811 @JSName('count') |
| 685 @DocsEditable @DomName('IDBObjectStore.count') | 812 @DocsEditable |
| 813 @DomName('IDBObjectStore.count') |
| 686 Request _count_3(key) native; | 814 Request _count_3(key) native; |
| 687 | 815 |
| 688 Index createIndex(String name, keyPath, [Map options]) { | 816 Index createIndex(String name, keyPath, [Map options]) { |
| 689 if ((keyPath is List<String> || keyPath == null) && | 817 if ((keyPath is List<String> || keyPath == null) && |
| 690 !?options) { | 818 !?options) { |
| 691 return _createIndex_1(name, keyPath); | 819 return _createIndex_1(name, keyPath); |
| 692 } | 820 } |
| 693 if ((keyPath is List<String> || keyPath == null)) { | 821 if ((keyPath is List<String> || keyPath == null)) { |
| 694 var options_1 = convertDartToNative_Dictionary(options); | 822 var options_1 = convertDartToNative_Dictionary(options); |
| 695 return _createIndex_2(name, keyPath, options_1); | 823 return _createIndex_2(name, keyPath, options_1); |
| 696 } | 824 } |
| 697 if ((keyPath is String || keyPath == null) && | 825 if ((keyPath is String || keyPath == null) && |
| 698 !?options) { | 826 !?options) { |
| 699 return _createIndex_3(name, keyPath); | 827 return _createIndex_3(name, keyPath); |
| 700 } | 828 } |
| 701 if ((keyPath is String || keyPath == null)) { | 829 if ((keyPath is String || keyPath == null)) { |
| 702 var options_2 = convertDartToNative_Dictionary(options); | 830 var options_2 = convertDartToNative_Dictionary(options); |
| 703 return _createIndex_4(name, keyPath, options_2); | 831 return _createIndex_4(name, keyPath, options_2); |
| 704 } | 832 } |
| 705 throw new ArgumentError("Incorrect number or type of arguments"); | 833 throw new ArgumentError("Incorrect number or type of arguments"); |
| 706 } | 834 } |
| 707 @JSName('createIndex') | 835 @JSName('createIndex') |
| 708 @DocsEditable @DomName('IDBObjectStore.createIndex') | 836 @DocsEditable |
| 837 @DomName('IDBObjectStore.createIndex') |
| 709 Index _createIndex_1(name, List<String> keyPath) native; | 838 Index _createIndex_1(name, List<String> keyPath) native; |
| 710 @JSName('createIndex') | 839 @JSName('createIndex') |
| 711 @DocsEditable @DomName('IDBObjectStore.createIndex') | 840 @DocsEditable |
| 841 @DomName('IDBObjectStore.createIndex') |
| 712 Index _createIndex_2(name, List<String> keyPath, options) native; | 842 Index _createIndex_2(name, List<String> keyPath, options) native; |
| 713 @JSName('createIndex') | 843 @JSName('createIndex') |
| 714 @DocsEditable @DomName('IDBObjectStore.createIndex') | 844 @DocsEditable |
| 845 @DomName('IDBObjectStore.createIndex') |
| 715 Index _createIndex_3(name, String keyPath) native; | 846 Index _createIndex_3(name, String keyPath) native; |
| 716 @JSName('createIndex') | 847 @JSName('createIndex') |
| 717 @DocsEditable @DomName('IDBObjectStore.createIndex') | 848 @DocsEditable |
| 849 @DomName('IDBObjectStore.createIndex') |
| 718 Index _createIndex_4(name, String keyPath, options) native; | 850 Index _createIndex_4(name, String keyPath, options) native; |
| 719 | 851 |
| 720 Request delete(key_OR_keyRange) { | 852 Request delete(key_OR_keyRange) { |
| 721 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { | 853 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { |
| 722 return _delete_1(key_OR_keyRange); | 854 return _delete_1(key_OR_keyRange); |
| 723 } | 855 } |
| 724 if (?key_OR_keyRange) { | 856 if (?key_OR_keyRange) { |
| 725 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); | 857 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); |
| 726 return _delete_2(key_1); | 858 return _delete_2(key_1); |
| 727 } | 859 } |
| 728 throw new ArgumentError("Incorrect number or type of arguments"); | 860 throw new ArgumentError("Incorrect number or type of arguments"); |
| 729 } | 861 } |
| 730 @JSName('delete') | 862 @JSName('delete') |
| 731 @DocsEditable @DomName('IDBObjectStore.delete') | 863 @DocsEditable |
| 864 @DomName('IDBObjectStore.delete') |
| 732 Request _delete_1(KeyRange keyRange) native; | 865 Request _delete_1(KeyRange keyRange) native; |
| 733 @JSName('delete') | 866 @JSName('delete') |
| 734 @DocsEditable @DomName('IDBObjectStore.delete') | 867 @DocsEditable |
| 868 @DomName('IDBObjectStore.delete') |
| 735 Request _delete_2(key) native; | 869 Request _delete_2(key) native; |
| 736 | 870 |
| 737 @DocsEditable @DomName('IDBObjectStore.deleteIndex') | 871 @DocsEditable |
| 872 @DomName('IDBObjectStore.deleteIndex') |
| 738 void deleteIndex(String name) native; | 873 void deleteIndex(String name) native; |
| 739 | 874 |
| 740 Request getObject(key) { | 875 Request getObject(key) { |
| 741 if ((key is KeyRange || key == null)) { | 876 if ((key is KeyRange || key == null)) { |
| 742 return _getObject_1(key); | 877 return _getObject_1(key); |
| 743 } | 878 } |
| 744 if (?key) { | 879 if (?key) { |
| 745 var key_1 = _convertDartToNative_IDBKey(key); | 880 var key_1 = _convertDartToNative_IDBKey(key); |
| 746 return _getObject_2(key_1); | 881 return _getObject_2(key_1); |
| 747 } | 882 } |
| 748 throw new ArgumentError("Incorrect number or type of arguments"); | 883 throw new ArgumentError("Incorrect number or type of arguments"); |
| 749 } | 884 } |
| 750 @JSName('get') | 885 @JSName('get') |
| 751 @DocsEditable @DomName('IDBObjectStore.get') @Returns('Request') @Creates('Req
uest') @annotation_Creates_SerializedScriptValue | 886 @DocsEditable |
| 887 @DomName('IDBObjectStore.get') |
| 888 @Returns('Request') |
| 889 @Creates('Request') |
| 890 @annotation_Creates_SerializedScriptValue |
| 752 Request _getObject_1(KeyRange key) native; | 891 Request _getObject_1(KeyRange key) native; |
| 753 @JSName('get') | 892 @JSName('get') |
| 754 @DocsEditable @DomName('IDBObjectStore.get') @Returns('Request') @Creates('Req
uest') @annotation_Creates_SerializedScriptValue | 893 @DocsEditable |
| 894 @DomName('IDBObjectStore.get') |
| 895 @Returns('Request') |
| 896 @Creates('Request') |
| 897 @annotation_Creates_SerializedScriptValue |
| 755 Request _getObject_2(key) native; | 898 Request _getObject_2(key) native; |
| 756 | 899 |
| 757 @DocsEditable @DomName('IDBObjectStore.index') | 900 @DocsEditable |
| 901 @DomName('IDBObjectStore.index') |
| 758 Index index(String name) native; | 902 Index index(String name) native; |
| 759 | 903 |
| 760 Request openCursor([key_OR_range, String direction]) { | 904 Request openCursor([key_OR_range, String direction]) { |
| 761 if (!?key_OR_range && | 905 if (!?key_OR_range && |
| 762 !?direction) { | 906 !?direction) { |
| 763 return _openCursor_1(); | 907 return _openCursor_1(); |
| 764 } | 908 } |
| 765 if ((key_OR_range is KeyRange || key_OR_range == null) && | 909 if ((key_OR_range is KeyRange || key_OR_range == null) && |
| 766 !?direction) { | 910 !?direction) { |
| 767 return _openCursor_2(key_OR_range); | 911 return _openCursor_2(key_OR_range); |
| 768 } | 912 } |
| 769 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 913 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 770 return _openCursor_3(key_OR_range, direction); | 914 return _openCursor_3(key_OR_range, direction); |
| 771 } | 915 } |
| 772 if (?key_OR_range && | 916 if (?key_OR_range && |
| 773 !?direction) { | 917 !?direction) { |
| 774 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 918 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| 775 return _openCursor_4(key_1); | 919 return _openCursor_4(key_1); |
| 776 } | 920 } |
| 777 if (?key_OR_range) { | 921 if (?key_OR_range) { |
| 778 var key_2 = _convertDartToNative_IDBKey(key_OR_range); | 922 var key_2 = _convertDartToNative_IDBKey(key_OR_range); |
| 779 return _openCursor_5(key_2, direction); | 923 return _openCursor_5(key_2, direction); |
| 780 } | 924 } |
| 781 throw new ArgumentError("Incorrect number or type of arguments"); | 925 throw new ArgumentError("Incorrect number or type of arguments"); |
| 782 } | 926 } |
| 783 @JSName('openCursor') | 927 @JSName('openCursor') |
| 784 @DocsEditable @DomName('IDBObjectStore.openCursor') @Returns('Request') @Creat
es('Request') @Creates('Cursor') | 928 @DocsEditable |
| 929 @DomName('IDBObjectStore.openCursor') |
| 930 @Returns('Request') |
| 931 @Creates('Request') |
| 932 @Creates('Cursor') |
| 785 Request _openCursor_1() native; | 933 Request _openCursor_1() native; |
| 786 @JSName('openCursor') | 934 @JSName('openCursor') |
| 787 @DocsEditable @DomName('IDBObjectStore.openCursor') @Returns('Request') @Creat
es('Request') @Creates('Cursor') | 935 @DocsEditable |
| 936 @DomName('IDBObjectStore.openCursor') |
| 937 @Returns('Request') |
| 938 @Creates('Request') |
| 939 @Creates('Cursor') |
| 788 Request _openCursor_2(KeyRange range) native; | 940 Request _openCursor_2(KeyRange range) native; |
| 789 @JSName('openCursor') | 941 @JSName('openCursor') |
| 790 @DocsEditable @DomName('IDBObjectStore.openCursor') @Returns('Request') @Creat
es('Request') @Creates('Cursor') | 942 @DocsEditable |
| 943 @DomName('IDBObjectStore.openCursor') |
| 944 @Returns('Request') |
| 945 @Creates('Request') |
| 946 @Creates('Cursor') |
| 791 Request _openCursor_3(KeyRange range, direction) native; | 947 Request _openCursor_3(KeyRange range, direction) native; |
| 792 @JSName('openCursor') | 948 @JSName('openCursor') |
| 793 @DocsEditable @DomName('IDBObjectStore.openCursor') @Returns('Request') @Creat
es('Request') @Creates('Cursor') | 949 @DocsEditable |
| 950 @DomName('IDBObjectStore.openCursor') |
| 951 @Returns('Request') |
| 952 @Creates('Request') |
| 953 @Creates('Cursor') |
| 794 Request _openCursor_4(key) native; | 954 Request _openCursor_4(key) native; |
| 795 @JSName('openCursor') | 955 @JSName('openCursor') |
| 796 @DocsEditable @DomName('IDBObjectStore.openCursor') @Returns('Request') @Creat
es('Request') @Creates('Cursor') | 956 @DocsEditable |
| 957 @DomName('IDBObjectStore.openCursor') |
| 958 @Returns('Request') |
| 959 @Creates('Request') |
| 960 @Creates('Cursor') |
| 797 Request _openCursor_5(key, direction) native; | 961 Request _openCursor_5(key, direction) native; |
| 798 | 962 |
| 799 Request put(/*any*/ value, [/*IDBKey*/ key]) { | 963 Request put(/*any*/ value, [/*IDBKey*/ key]) { |
| 800 if (?key) { | 964 if (?key) { |
| 801 var value_1 = convertDartToNative_SerializedScriptValue(value); | 965 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 802 var key_2 = _convertDartToNative_IDBKey(key); | 966 var key_2 = _convertDartToNative_IDBKey(key); |
| 803 return _put_1(value_1, key_2); | 967 return _put_1(value_1, key_2); |
| 804 } | 968 } |
| 805 var value_3 = convertDartToNative_SerializedScriptValue(value); | 969 var value_3 = convertDartToNative_SerializedScriptValue(value); |
| 806 return _put_2(value_3); | 970 return _put_2(value_3); |
| 807 } | 971 } |
| 808 @JSName('put') | 972 @JSName('put') |
| 809 @DocsEditable @DomName('IDBObjectStore.put') @Returns('Request') @Creates('Req
uest') @_annotation_Creates_IDBKey | 973 @DocsEditable |
| 974 @DomName('IDBObjectStore.put') |
| 975 @Returns('Request') |
| 976 @Creates('Request') |
| 977 @_annotation_Creates_IDBKey |
| 810 Request _put_1(value, key) native; | 978 Request _put_1(value, key) native; |
| 811 @JSName('put') | 979 @JSName('put') |
| 812 @DocsEditable @DomName('IDBObjectStore.put') @Returns('Request') @Creates('Req
uest') @_annotation_Creates_IDBKey | 980 @DocsEditable |
| 981 @DomName('IDBObjectStore.put') |
| 982 @Returns('Request') |
| 983 @Creates('Request') |
| 984 @_annotation_Creates_IDBKey |
| 813 Request _put_2(value) native; | 985 Request _put_2(value) native; |
| 814 } | 986 } |
| 815 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 816 // for details. All rights reserved. Use of this source code is governed by a | 988 // for details. All rights reserved. Use of this source code is governed by a |
| 817 // BSD-style license that can be found in the LICENSE file. | 989 // BSD-style license that can be found in the LICENSE file. |
| 818 | 990 |
| 819 | 991 |
| 820 | 992 |
| 821 @DocsEditable | 993 @DocsEditable |
| 822 @DomName('IDBOpenDBRequest') | 994 @DomName('IDBOpenDBRequest') |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 | 1031 |
| 860 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 1032 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 861 | 1033 |
| 862 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); | 1034 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); |
| 863 | 1035 |
| 864 @DocsEditable | 1036 @DocsEditable |
| 865 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 1037 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 866 RequestEvents get on => | 1038 RequestEvents get on => |
| 867 new RequestEvents(this); | 1039 new RequestEvents(this); |
| 868 | 1040 |
| 869 @DocsEditable @DomName('IDBRequest.error') | 1041 @DocsEditable |
| 1042 @DomName('IDBRequest.error') |
| 870 final DomError error; | 1043 final DomError error; |
| 871 | 1044 |
| 872 @DocsEditable @DomName('IDBRequest.readyState') | 1045 @DocsEditable |
| 1046 @DomName('IDBRequest.readyState') |
| 873 final String readyState; | 1047 final String readyState; |
| 874 | 1048 |
| 875 dynamic get result => _convertNativeToDart_IDBAny(this._result); | 1049 dynamic get result => _convertNativeToDart_IDBAny(this._result); |
| 876 @JSName('result') | 1050 @JSName('result') |
| 877 @DocsEditable @DomName('IDBRequest.result') @Creates('Null') | 1051 @DocsEditable |
| 1052 @DomName('IDBRequest.result') |
| 1053 @Creates('Null') |
| 878 final dynamic _result; | 1054 final dynamic _result; |
| 879 | 1055 |
| 880 @DocsEditable @DomName('IDBRequest.source') @Creates('Null') | 1056 @DocsEditable |
| 1057 @DomName('IDBRequest.source') |
| 1058 @Creates('Null') |
| 881 final dynamic source; | 1059 final dynamic source; |
| 882 | 1060 |
| 883 @DocsEditable @DomName('IDBRequest.transaction') | 1061 @DocsEditable |
| 1062 @DomName('IDBRequest.transaction') |
| 884 final Transaction transaction; | 1063 final Transaction transaction; |
| 885 | 1064 |
| 886 @DocsEditable @DomName('IDBRequest.webkitErrorMessage') | 1065 @DocsEditable |
| 1066 @DomName('IDBRequest.webkitErrorMessage') |
| 887 final String webkitErrorMessage; | 1067 final String webkitErrorMessage; |
| 888 | 1068 |
| 889 @JSName('addEventListener') | 1069 @JSName('addEventListener') |
| 890 @DocsEditable @DomName('IDBRequest.addEventListener') | 1070 @DocsEditable |
| 1071 @DomName('IDBRequest.addEventListener') |
| 891 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 1072 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 892 | 1073 |
| 893 @JSName('dispatchEvent') | 1074 @JSName('dispatchEvent') |
| 894 @DocsEditable @DomName('IDBRequest.dispatchEvent') | 1075 @DocsEditable |
| 1076 @DomName('IDBRequest.dispatchEvent') |
| 895 bool $dom_dispatchEvent(Event evt) native; | 1077 bool $dom_dispatchEvent(Event evt) native; |
| 896 | 1078 |
| 897 @JSName('removeEventListener') | 1079 @JSName('removeEventListener') |
| 898 @DocsEditable @DomName('IDBRequest.removeEventListener') | 1080 @DocsEditable |
| 1081 @DomName('IDBRequest.removeEventListener') |
| 899 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 1082 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 900 | 1083 |
| 901 Stream<Event> get onError => errorEvent.forTarget(this); | 1084 Stream<Event> get onError => errorEvent.forTarget(this); |
| 902 | 1085 |
| 903 Stream<Event> get onSuccess => successEvent.forTarget(this); | 1086 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| 904 } | 1087 } |
| 905 | 1088 |
| 906 @DocsEditable | 1089 @DocsEditable |
| 907 class RequestEvents extends Events { | 1090 class RequestEvents extends Events { |
| 908 @DocsEditable | 1091 @DocsEditable |
| (...skipping 19 matching lines...) Expand all Loading... |
| 928 | 1111 |
| 929 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 1112 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 930 | 1113 |
| 931 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 1114 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 932 | 1115 |
| 933 @DocsEditable | 1116 @DocsEditable |
| 934 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 1117 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 935 TransactionEvents get on => | 1118 TransactionEvents get on => |
| 936 new TransactionEvents(this); | 1119 new TransactionEvents(this); |
| 937 | 1120 |
| 938 @DocsEditable @DomName('IDBTransaction.db') | 1121 @DocsEditable |
| 1122 @DomName('IDBTransaction.db') |
| 939 final Database db; | 1123 final Database db; |
| 940 | 1124 |
| 941 @DocsEditable @DomName('IDBTransaction.error') | 1125 @DocsEditable |
| 1126 @DomName('IDBTransaction.error') |
| 942 final DomError error; | 1127 final DomError error; |
| 943 | 1128 |
| 944 @DocsEditable @DomName('IDBTransaction.mode') | 1129 @DocsEditable |
| 1130 @DomName('IDBTransaction.mode') |
| 945 final String mode; | 1131 final String mode; |
| 946 | 1132 |
| 947 @DocsEditable @DomName('IDBTransaction.webkitErrorMessage') | 1133 @DocsEditable |
| 1134 @DomName('IDBTransaction.webkitErrorMessage') |
| 948 final String webkitErrorMessage; | 1135 final String webkitErrorMessage; |
| 949 | 1136 |
| 950 @DocsEditable @DomName('IDBTransaction.abort') | 1137 @DocsEditable |
| 1138 @DomName('IDBTransaction.abort') |
| 951 void abort() native; | 1139 void abort() native; |
| 952 | 1140 |
| 953 @JSName('addEventListener') | 1141 @JSName('addEventListener') |
| 954 @DocsEditable @DomName('IDBTransaction.addEventListener') | 1142 @DocsEditable |
| 1143 @DomName('IDBTransaction.addEventListener') |
| 955 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 1144 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 956 | 1145 |
| 957 @JSName('dispatchEvent') | 1146 @JSName('dispatchEvent') |
| 958 @DocsEditable @DomName('IDBTransaction.dispatchEvent') | 1147 @DocsEditable |
| 1148 @DomName('IDBTransaction.dispatchEvent') |
| 959 bool $dom_dispatchEvent(Event evt) native; | 1149 bool $dom_dispatchEvent(Event evt) native; |
| 960 | 1150 |
| 961 @DocsEditable @DomName('IDBTransaction.objectStore') | 1151 @DocsEditable |
| 1152 @DomName('IDBTransaction.objectStore') |
| 962 ObjectStore objectStore(String name) native; | 1153 ObjectStore objectStore(String name) native; |
| 963 | 1154 |
| 964 @JSName('removeEventListener') | 1155 @JSName('removeEventListener') |
| 965 @DocsEditable @DomName('IDBTransaction.removeEventListener') | 1156 @DocsEditable |
| 1157 @DomName('IDBTransaction.removeEventListener') |
| 966 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 1158 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 967 | 1159 |
| 968 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1160 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 969 | 1161 |
| 970 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1162 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 971 | 1163 |
| 972 Stream<Event> get onError => errorEvent.forTarget(this); | 1164 Stream<Event> get onError => errorEvent.forTarget(this); |
| 973 } | 1165 } |
| 974 | 1166 |
| 975 @DocsEditable | 1167 @DocsEditable |
| (...skipping 13 matching lines...) Expand all Loading... |
| 989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 990 // for details. All rights reserved. Use of this source code is governed by a | 1182 // for details. All rights reserved. Use of this source code is governed by a |
| 991 // BSD-style license that can be found in the LICENSE file. | 1183 // BSD-style license that can be found in the LICENSE file. |
| 992 | 1184 |
| 993 | 1185 |
| 994 | 1186 |
| 995 @DocsEditable | 1187 @DocsEditable |
| 996 @DomName('IDBVersionChangeEvent') | 1188 @DomName('IDBVersionChangeEvent') |
| 997 class UpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { | 1189 class UpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { |
| 998 | 1190 |
| 999 @DocsEditable @DomName('IDBUpgradeNeededEvent.newVersion') | 1191 @DocsEditable |
| 1192 @DomName('IDBUpgradeNeededEvent.newVersion') |
| 1000 final int newVersion; | 1193 final int newVersion; |
| 1001 | 1194 |
| 1002 @DocsEditable @DomName('IDBUpgradeNeededEvent.oldVersion') | 1195 @DocsEditable |
| 1196 @DomName('IDBUpgradeNeededEvent.oldVersion') |
| 1003 final int oldVersion; | 1197 final int oldVersion; |
| 1004 } | 1198 } |
| 1005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1006 // for details. All rights reserved. Use of this source code is governed by a | 1200 // for details. All rights reserved. Use of this source code is governed by a |
| 1007 // BSD-style license that can be found in the LICENSE file. | 1201 // BSD-style license that can be found in the LICENSE file. |
| 1008 | 1202 |
| 1009 | 1203 |
| 1010 | 1204 |
| 1011 @DocsEditable | 1205 @DocsEditable |
| 1012 @DomName('IDBVersionChangeEvent') | 1206 @DomName('IDBVersionChangeEvent') |
| 1013 class VersionChangeEvent extends Event native "*IDBVersionChangeEvent" { | 1207 class VersionChangeEvent extends Event native "*IDBVersionChangeEvent" { |
| 1014 | 1208 |
| 1015 @DocsEditable @DomName('IDBVersionChangeEvent.version') | 1209 @DocsEditable |
| 1210 @DomName('IDBVersionChangeEvent.version') |
| 1016 final String version; | 1211 final String version; |
| 1017 } | 1212 } |
| 1018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1019 // for details. All rights reserved. Use of this source code is governed by a | 1214 // for details. All rights reserved. Use of this source code is governed by a |
| 1020 // BSD-style license that can be found in the LICENSE file. | 1215 // BSD-style license that can be found in the LICENSE file. |
| 1021 | 1216 |
| 1022 | 1217 |
| 1023 | 1218 |
| 1024 @DocsEditable | 1219 @DocsEditable |
| 1025 @DomName('IDBVersionChangeRequest') | 1220 @DomName('IDBVersionChangeRequest') |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1047 // for details. All rights reserved. Use of this source code is governed by a | 1242 // for details. All rights reserved. Use of this source code is governed by a |
| 1048 // BSD-style license that can be found in the LICENSE file. | 1243 // BSD-style license that can be found in the LICENSE file. |
| 1049 | 1244 |
| 1050 | 1245 |
| 1051 | 1246 |
| 1052 @DocsEditable | 1247 @DocsEditable |
| 1053 @DomName('IDBAny') | 1248 @DomName('IDBAny') |
| 1054 class _Any native "*IDBAny" { | 1249 class _Any native "*IDBAny" { |
| 1055 } | 1250 } |
| OLD | NEW |