Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 319283003: Refactor dart:_blink into classes to improve startup time (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.indexed_db; 1 library dart.dom.indexed_db;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:nativewrappers'; 6 import 'dart:nativewrappers';
7 import 'dart:_blink' as _blink; 7 import 'dart:_blink' as _blink;
8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9 // for details. All rights reserved. Use of this source code is governed by a 9 // for details. All rights reserved. Use of this source code is governed by a
10 // BSD-style license that can be found in the LICENSE file. 10 // BSD-style license that can be found in the LICENSE file.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } catch (e, stacktrace) { 73 } catch (e, stacktrace) {
74 return new Future.error(e, stacktrace); 74 return new Future.error(e, stacktrace);
75 } 75 }
76 } 76 }
77 77
78 // To suppress missing implicit constructor warnings. 78 // To suppress missing implicit constructor warnings.
79 factory Cursor._() { throw new UnsupportedError("Not supported"); } 79 factory Cursor._() { throw new UnsupportedError("Not supported"); }
80 80
81 @DomName('IDBCursor.direction') 81 @DomName('IDBCursor.direction')
82 @DocsEditable() 82 @DocsEditable()
83 String get direction => _blink.Native_IDBCursor_direction_Getter(this); 83 String get direction => _blink.BlinkIDBCursor.$direction_Getter(this);
84 84
85 @DomName('IDBCursor.key') 85 @DomName('IDBCursor.key')
86 @DocsEditable() 86 @DocsEditable()
87 Object get key => _blink.Native_IDBCursor_key_Getter(this); 87 Object get key => _blink.BlinkIDBCursor.$key_Getter(this);
88 88
89 @DomName('IDBCursor.primaryKey') 89 @DomName('IDBCursor.primaryKey')
90 @DocsEditable() 90 @DocsEditable()
91 Object get primaryKey => _blink.Native_IDBCursor_primaryKey_Getter(this); 91 Object get primaryKey => _blink.BlinkIDBCursor.$primaryKey_Getter(this);
92 92
93 @DomName('IDBCursor.source') 93 @DomName('IDBCursor.source')
94 @DocsEditable() 94 @DocsEditable()
95 Object get source => _blink.Native_IDBCursor_source_Getter(this); 95 Object get source => _blink.BlinkIDBCursor.$source_Getter(this);
96 96
97 @DomName('IDBCursor.advance') 97 @DomName('IDBCursor.advance')
98 @DocsEditable() 98 @DocsEditable()
99 void advance(int count) => _blink.Native_IDBCursor_advance_Callback(this, coun t); 99 void advance(int count) => _blink.BlinkIDBCursor.$advance_Callback(this, count );
100 100
101 @DomName('IDBCursor.continuePrimaryKey') 101 @DomName('IDBCursor.continuePrimaryKey')
102 @DocsEditable() 102 @DocsEditable()
103 @Experimental() // untriaged 103 @Experimental() // untriaged
104 void continuePrimaryKey(Object key, Object primaryKey) => _blink.Native_IDBCur sor_continuePrimaryKey_Callback(this, key, primaryKey); 104 void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCurso r.$continuePrimaryKey_Callback(this, key, primaryKey);
105 105
106 @DomName('IDBCursor.delete') 106 @DomName('IDBCursor.delete')
107 @DocsEditable() 107 @DocsEditable()
108 Request _delete() => _blink.Native_IDBCursor_delete_Callback(this); 108 Request _delete() => _blink.BlinkIDBCursor.$delete_Callback(this);
109 109
110 @DomName('IDBCursor.next') 110 @DomName('IDBCursor.next')
111 @DocsEditable() 111 @DocsEditable()
112 @Experimental() // non-standard 112 @Experimental() // non-standard
113 void next([Object key]) => _blink.Native_IDBCursor_next_Callback(this, key); 113 void next([Object key]) => _blink.BlinkIDBCursor.$next_Callback(this, key);
114 114
115 @DomName('IDBCursor.update') 115 @DomName('IDBCursor.update')
116 @DocsEditable() 116 @DocsEditable()
117 Request _update(Object value) => _blink.Native_IDBCursor_update_Callback(this, value); 117 Request _update(Object value) => _blink.BlinkIDBCursor.$update_Callback(this, value);
118 118
119 } 119 }
120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
121 // for details. All rights reserved. Use of this source code is governed by a 121 // for details. All rights reserved. Use of this source code is governed by a
122 // BSD-style license that can be found in the LICENSE file. 122 // BSD-style license that can be found in the LICENSE file.
123 123
124 // WARNING: Do not edit - generated code. 124 // WARNING: Do not edit - generated code.
125 125
126 126
127 @DocsEditable() 127 @DocsEditable()
128 @DomName('IDBCursorWithValue') 128 @DomName('IDBCursorWithValue')
129 @Unstable() 129 @Unstable()
130 class CursorWithValue extends Cursor { 130 class CursorWithValue extends Cursor {
131 // To suppress missing implicit constructor warnings. 131 // To suppress missing implicit constructor warnings.
132 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } 132 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); }
133 133
134 @DomName('IDBCursorWithValue.value') 134 @DomName('IDBCursorWithValue.value')
135 @DocsEditable() 135 @DocsEditable()
136 Object get value => _blink.Native_IDBCursorWithValue_value_Getter(this); 136 Object get value => _blink.BlinkIDBCursorWithValue.$value_Getter(this);
137 137
138 } 138 }
139 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 139 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
140 // for details. All rights reserved. Use of this source code is governed by a 140 // for details. All rights reserved. Use of this source code is governed by a
141 // BSD-style license that can be found in the LICENSE file. 141 // BSD-style license that can be found in the LICENSE file.
142 142
143 143
144 @DocsEditable() 144 @DocsEditable()
145 /** 145 /**
146 * An indexed database object for storing client-side data 146 * An indexed database object for storing client-side data
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 * handlers that are not necessarily instances of [Database]. 209 * handlers that are not necessarily instances of [Database].
210 * 210 *
211 * See [EventStreamProvider] for usage information. 211 * See [EventStreamProvider] for usage information.
212 */ 212 */
213 @DomName('IDBDatabase.versionchangeEvent') 213 @DomName('IDBDatabase.versionchangeEvent')
214 @DocsEditable() 214 @DocsEditable()
215 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons t EventStreamProvider<VersionChangeEvent>('versionchange'); 215 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons t EventStreamProvider<VersionChangeEvent>('versionchange');
216 216
217 @DomName('IDBDatabase.name') 217 @DomName('IDBDatabase.name')
218 @DocsEditable() 218 @DocsEditable()
219 String get name => _blink.Native_IDBDatabase_name_Getter(this); 219 String get name => _blink.BlinkIDBDatabase.$name_Getter(this);
220 220
221 @DomName('IDBDatabase.objectStoreNames') 221 @DomName('IDBDatabase.objectStoreNames')
222 @DocsEditable() 222 @DocsEditable()
223 List<String> get objectStoreNames => _blink.Native_IDBDatabase_objectStoreName s_Getter(this); 223 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.$objectStoreNames _Getter(this);
224 224
225 @DomName('IDBDatabase.version') 225 @DomName('IDBDatabase.version')
226 @DocsEditable() 226 @DocsEditable()
227 Object get version => _blink.Native_IDBDatabase_version_Getter(this); 227 Object get version => _blink.BlinkIDBDatabase.$version_Getter(this);
228 228
229 @DomName('IDBDatabase.close') 229 @DomName('IDBDatabase.close')
230 @DocsEditable() 230 @DocsEditable()
231 void close() => _blink.Native_IDBDatabase_close_Callback(this); 231 void close() => _blink.BlinkIDBDatabase.$close_Callback(this);
232 232
233 @DomName('IDBDatabase.createObjectStore') 233 @DomName('IDBDatabase.createObjectStore')
234 @DocsEditable() 234 @DocsEditable()
235 ObjectStore _createObjectStore(String name, [Map options]) => _blink.Native_ID BDatabase_createObjectStore_Callback(this, name, options); 235 ObjectStore _createObjectStore(String name, [Map options]) => _blink.BlinkIDBD atabase.$createObjectStore_Callback(this, name, options);
236 236
237 @DomName('IDBDatabase.deleteObjectStore') 237 @DomName('IDBDatabase.deleteObjectStore')
238 @DocsEditable() 238 @DocsEditable()
239 void deleteObjectStore(String name) => _blink.Native_IDBDatabase_deleteObjectS tore_Callback(this, name); 239 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.$deleteObjectSt ore_Callback(this, name);
240 240
241 Transaction transaction(storeName_OR_storeNames, String mode) => _blink.Native _IDBDatabase_transaction(this, storeName_OR_storeNames, mode); 241 Transaction transaction(storeName_OR_storeNames, String mode) => _blink.BlinkI DBDatabase.$transaction(this, storeName_OR_storeNames, mode);
242 242
243 @DomName('IDBDatabase.transactionList') 243 @DomName('IDBDatabase.transactionList')
244 @DocsEditable() 244 @DocsEditable()
245 Transaction transactionList(List<String> storeNames, String mode) => _blink.Na tive_IDBDatabase_transactionList_Callback(this, storeNames, mode); 245 Transaction transactionList(List<String> storeNames, String mode) => _blink.Bl inkIDBDatabase.$transactionList_Callback(this, storeNames, mode);
246 246
247 @DomName('IDBDatabase.transactionStore') 247 @DomName('IDBDatabase.transactionStore')
248 @DocsEditable() 248 @DocsEditable()
249 Transaction transactionStore(String storeName, String mode) => _blink.Native_I DBDatabase_transactionStore_Callback(this, storeName, mode); 249 Transaction transactionStore(String storeName, String mode) => _blink.BlinkIDB Database.$transactionStore_Callback(this, storeName, mode);
250 250
251 @DomName('IDBDatabase.transactionStores') 251 @DomName('IDBDatabase.transactionStores')
252 @DocsEditable() 252 @DocsEditable()
253 Transaction transactionStores(List<String> storeNames, String mode) => _blink. Native_IDBDatabase_transactionStores_Callback(this, storeNames, mode); 253 Transaction transactionStores(List<String> storeNames, String mode) => _blink. BlinkIDBDatabase.$transactionStores_Callback(this, storeNames, mode);
254 254
255 /// Stream of `abort` events handled by this [Database]. 255 /// Stream of `abort` events handled by this [Database].
256 @DomName('IDBDatabase.onabort') 256 @DomName('IDBDatabase.onabort')
257 @DocsEditable() 257 @DocsEditable()
258 Stream<Event> get onAbort => abortEvent.forTarget(this); 258 Stream<Event> get onAbort => abortEvent.forTarget(this);
259 259
260 /// Stream of `close` events handled by this [Database]. 260 /// Stream of `close` events handled by this [Database].
261 @DomName('IDBDatabase.onclose') 261 @DomName('IDBDatabase.onclose')
262 @DocsEditable() 262 @DocsEditable()
263 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 263 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 */ 359 */
360 bool get supportsDatabaseNames { 360 bool get supportsDatabaseNames {
361 return true; 361 return true;
362 } 362 }
363 363
364 // To suppress missing implicit constructor warnings. 364 // To suppress missing implicit constructor warnings.
365 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } 365 factory IdbFactory._() { throw new UnsupportedError("Not supported"); }
366 366
367 @DomName('IDBFactory.cmp') 367 @DomName('IDBFactory.cmp')
368 @DocsEditable() 368 @DocsEditable()
369 int cmp(Object first, Object second) => _blink.Native_IDBFactory_cmp_Callback( this, first, second); 369 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.$cmp_Callback(t his, first, second);
370 370
371 @DomName('IDBFactory.deleteDatabase') 371 @DomName('IDBFactory.deleteDatabase')
372 @DocsEditable() 372 @DocsEditable()
373 OpenDBRequest _deleteDatabase(String name) => _blink.Native_IDBFactory_deleteD atabase_Callback(this, name); 373 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.$deleteDa tabase_Callback(this, name);
374 374
375 OpenDBRequest _open(String name, [int version]) => _blink.Native_IDBFactory__o pen(this, name, version); 375 OpenDBRequest _open(String name, [int version]) => _blink.BlinkIDBFactory.$_op en(this, name, version);
376 376
377 @DomName('IDBFactory.webkitGetDatabaseNames') 377 @DomName('IDBFactory.webkitGetDatabaseNames')
378 @DocsEditable() 378 @DocsEditable()
379 @SupportedBrowser(SupportedBrowser.CHROME) 379 @SupportedBrowser(SupportedBrowser.CHROME)
380 @SupportedBrowser(SupportedBrowser.SAFARI) 380 @SupportedBrowser(SupportedBrowser.SAFARI)
381 @Experimental() 381 @Experimental()
382 Request _webkitGetDatabaseNames() => _blink.Native_IDBFactory_webkitGetDatabas eNames_Callback(this); 382 Request _webkitGetDatabaseNames() => _blink.BlinkIDBFactory.$webkitGetDatabase Names_Callback(this);
383 383
384 } 384 }
385 385
386 386
387 /** 387 /**
388 * Ties a request to a completer, so the completer is completed when it succeeds 388 * Ties a request to a completer, so the completer is completed when it succeeds
389 * and errors out when the request errors. 389 * and errors out when the request errors.
390 */ 390 */
391 Future _completeRequest(Request request) { 391 Future _completeRequest(Request request) {
392 var completer = new Completer.sync(); 392 var completer = new Completer.sync();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 request = _openKeyCursor(key_OR_range, direction); 490 request = _openKeyCursor(key_OR_range, direction);
491 } 491 }
492 return ObjectStore._cursorStreamFromResult(request, autoAdvance); 492 return ObjectStore._cursorStreamFromResult(request, autoAdvance);
493 } 493 }
494 494
495 // To suppress missing implicit constructor warnings. 495 // To suppress missing implicit constructor warnings.
496 factory Index._() { throw new UnsupportedError("Not supported"); } 496 factory Index._() { throw new UnsupportedError("Not supported"); }
497 497
498 @DomName('IDBIndex.keyPath') 498 @DomName('IDBIndex.keyPath')
499 @DocsEditable() 499 @DocsEditable()
500 Object get keyPath => _blink.Native_IDBIndex_keyPath_Getter(this); 500 Object get keyPath => _blink.BlinkIDBIndex.$keyPath_Getter(this);
501 501
502 @DomName('IDBIndex.multiEntry') 502 @DomName('IDBIndex.multiEntry')
503 @DocsEditable() 503 @DocsEditable()
504 bool get multiEntry => _blink.Native_IDBIndex_multiEntry_Getter(this); 504 bool get multiEntry => _blink.BlinkIDBIndex.$multiEntry_Getter(this);
505 505
506 @DomName('IDBIndex.name') 506 @DomName('IDBIndex.name')
507 @DocsEditable() 507 @DocsEditable()
508 String get name => _blink.Native_IDBIndex_name_Getter(this); 508 String get name => _blink.BlinkIDBIndex.$name_Getter(this);
509 509
510 @DomName('IDBIndex.objectStore') 510 @DomName('IDBIndex.objectStore')
511 @DocsEditable() 511 @DocsEditable()
512 ObjectStore get objectStore => _blink.Native_IDBIndex_objectStore_Getter(this) ; 512 ObjectStore get objectStore => _blink.BlinkIDBIndex.$objectStore_Getter(this);
513 513
514 @DomName('IDBIndex.unique') 514 @DomName('IDBIndex.unique')
515 @DocsEditable() 515 @DocsEditable()
516 bool get unique => _blink.Native_IDBIndex_unique_Getter(this); 516 bool get unique => _blink.BlinkIDBIndex.$unique_Getter(this);
517 517
518 @DomName('IDBIndex.count') 518 @DomName('IDBIndex.count')
519 @DocsEditable() 519 @DocsEditable()
520 Request _count(Object key) => _blink.Native_IDBIndex_count_Callback(this, key) ; 520 Request _count(Object key) => _blink.BlinkIDBIndex.$count_Callback(this, key);
521 521
522 @DomName('IDBIndex.get') 522 @DomName('IDBIndex.get')
523 @DocsEditable() 523 @DocsEditable()
524 Request _get(Object key) => _blink.Native_IDBIndex_get_Callback(this, key); 524 Request _get(Object key) => _blink.BlinkIDBIndex.$get_Callback(this, key);
525 525
526 @DomName('IDBIndex.getKey') 526 @DomName('IDBIndex.getKey')
527 @DocsEditable() 527 @DocsEditable()
528 Request _getKey(Object key) => _blink.Native_IDBIndex_getKey_Callback(this, ke y); 528 Request _getKey(Object key) => _blink.BlinkIDBIndex.$getKey_Callback(this, key );
529 529
530 @DomName('IDBIndex.openCursor') 530 @DomName('IDBIndex.openCursor')
531 @DocsEditable() 531 @DocsEditable()
532 Request _openCursor(Object key, [String direction]) => _blink.Native_IDBIndex_ openCursor_Callback(this, key, direction); 532 Request _openCursor(Object key, [String direction]) => _blink.BlinkIDBIndex.$o penCursor_Callback(this, key, direction);
533 533
534 @DomName('IDBIndex.openKeyCursor') 534 @DomName('IDBIndex.openKeyCursor')
535 @DocsEditable() 535 @DocsEditable()
536 Request _openKeyCursor(Object key, [String direction]) => _blink.Native_IDBInd ex_openKeyCursor_Callback(this, key, direction); 536 Request _openKeyCursor(Object key, [String direction]) => _blink.BlinkIDBIndex .$openKeyCursor_Callback(this, key, direction);
537 537
538 } 538 }
539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
540 // for details. All rights reserved. Use of this source code is governed by a 540 // for details. All rights reserved. Use of this source code is governed by a
541 // BSD-style license that can be found in the LICENSE file. 541 // BSD-style license that can be found in the LICENSE file.
542 542
543 543
544 @DomName('IDBKeyRange') 544 @DomName('IDBKeyRange')
545 @Unstable() 545 @Unstable()
546 class KeyRange extends NativeFieldWrapperClass2 { 546 class KeyRange extends NativeFieldWrapperClass2 {
(...skipping 13 matching lines...) Expand all
560 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, 560 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper,
561 [bool lowerOpen = false, bool upperOpen = false]) => 561 [bool lowerOpen = false, bool upperOpen = false]) =>
562 _KeyRangeFactoryProvider.createKeyRange_bound( 562 _KeyRangeFactoryProvider.createKeyRange_bound(
563 lower, upper, lowerOpen, upperOpen); 563 lower, upper, lowerOpen, upperOpen);
564 564
565 // To suppress missing implicit constructor warnings. 565 // To suppress missing implicit constructor warnings.
566 factory KeyRange._() { throw new UnsupportedError("Not supported"); } 566 factory KeyRange._() { throw new UnsupportedError("Not supported"); }
567 567
568 @DomName('IDBKeyRange.lower') 568 @DomName('IDBKeyRange.lower')
569 @DocsEditable() 569 @DocsEditable()
570 Object get lower => _blink.Native_IDBKeyRange_lower_Getter(this); 570 Object get lower => _blink.BlinkIDBKeyRange.$lower_Getter(this);
571 571
572 @DomName('IDBKeyRange.lowerOpen') 572 @DomName('IDBKeyRange.lowerOpen')
573 @DocsEditable() 573 @DocsEditable()
574 bool get lowerOpen => _blink.Native_IDBKeyRange_lowerOpen_Getter(this); 574 bool get lowerOpen => _blink.BlinkIDBKeyRange.$lowerOpen_Getter(this);
575 575
576 @DomName('IDBKeyRange.upper') 576 @DomName('IDBKeyRange.upper')
577 @DocsEditable() 577 @DocsEditable()
578 Object get upper => _blink.Native_IDBKeyRange_upper_Getter(this); 578 Object get upper => _blink.BlinkIDBKeyRange.$upper_Getter(this);
579 579
580 @DomName('IDBKeyRange.upperOpen') 580 @DomName('IDBKeyRange.upperOpen')
581 @DocsEditable() 581 @DocsEditable()
582 bool get upperOpen => _blink.Native_IDBKeyRange_upperOpen_Getter(this); 582 bool get upperOpen => _blink.BlinkIDBKeyRange.$upperOpen_Getter(this);
583 583
584 @DomName('IDBKeyRange.bound_') 584 @DomName('IDBKeyRange.bound_')
585 @DocsEditable() 585 @DocsEditable()
586 @Experimental() // non-standard 586 @Experimental() // non-standard
587 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper Open]) => _blink.Native_IDBKeyRange_bound__Callback(lower, upper, lowerOpen, upp erOpen); 587 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper Open]) => _blink.BlinkIDBKeyRange.$bound__Callback(lower, upper, lowerOpen, uppe rOpen);
588 588
589 @DomName('IDBKeyRange.lowerBound_') 589 @DomName('IDBKeyRange.lowerBound_')
590 @DocsEditable() 590 @DocsEditable()
591 @Experimental() // non-standard 591 @Experimental() // non-standard
592 static KeyRange lowerBound_(Object bound, [bool open]) => _blink.Native_IDBKey Range_lowerBound__Callback(bound, open); 592 static KeyRange lowerBound_(Object bound, [bool open]) => _blink.BlinkIDBKeyRa nge.$lowerBound__Callback(bound, open);
593 593
594 @DomName('IDBKeyRange.only_') 594 @DomName('IDBKeyRange.only_')
595 @DocsEditable() 595 @DocsEditable()
596 @Experimental() // non-standard 596 @Experimental() // non-standard
597 static KeyRange only_(Object value) => _blink.Native_IDBKeyRange_only__Callbac k(value); 597 static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.$only__Callback (value);
598 598
599 @DomName('IDBKeyRange.upperBound_') 599 @DomName('IDBKeyRange.upperBound_')
600 @DocsEditable() 600 @DocsEditable()
601 @Experimental() // non-standard 601 @Experimental() // non-standard
602 static KeyRange upperBound_(Object bound, [bool open]) => _blink.Native_IDBKey Range_upperBound__Callback(bound, open); 602 static KeyRange upperBound_(Object bound, [bool open]) => _blink.BlinkIDBKeyRa nge.$upperBound__Callback(bound, open);
603 603
604 } 604 }
605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
606 // for details. All rights reserved. Use of this source code is governed by a 606 // for details. All rights reserved. Use of this source code is governed by a
607 // BSD-style license that can be found in the LICENSE file. 607 // BSD-style license that can be found in the LICENSE file.
608 608
609 609
610 @DomName('IDBObjectStore') 610 @DomName('IDBObjectStore')
611 @Unstable() 611 @Unstable()
612 class ObjectStore extends NativeFieldWrapperClass2 { 612 class ObjectStore extends NativeFieldWrapperClass2 {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 } 735 }
736 736
737 return _createIndex(name, keyPath, options); 737 return _createIndex(name, keyPath, options);
738 } 738 }
739 739
740 // To suppress missing implicit constructor warnings. 740 // To suppress missing implicit constructor warnings.
741 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } 741 factory ObjectStore._() { throw new UnsupportedError("Not supported"); }
742 742
743 @DomName('IDBObjectStore.autoIncrement') 743 @DomName('IDBObjectStore.autoIncrement')
744 @DocsEditable() 744 @DocsEditable()
745 bool get autoIncrement => _blink.Native_IDBObjectStore_autoIncrement_Getter(th is); 745 bool get autoIncrement => _blink.BlinkIDBObjectStore.$autoIncrement_Getter(thi s);
746 746
747 @DomName('IDBObjectStore.indexNames') 747 @DomName('IDBObjectStore.indexNames')
748 @DocsEditable() 748 @DocsEditable()
749 List<String> get indexNames => _blink.Native_IDBObjectStore_indexNames_Getter( this); 749 List<String> get indexNames => _blink.BlinkIDBObjectStore.$indexNames_Getter(t his);
750 750
751 @DomName('IDBObjectStore.keyPath') 751 @DomName('IDBObjectStore.keyPath')
752 @DocsEditable() 752 @DocsEditable()
753 Object get keyPath => _blink.Native_IDBObjectStore_keyPath_Getter(this); 753 Object get keyPath => _blink.BlinkIDBObjectStore.$keyPath_Getter(this);
754 754
755 @DomName('IDBObjectStore.name') 755 @DomName('IDBObjectStore.name')
756 @DocsEditable() 756 @DocsEditable()
757 String get name => _blink.Native_IDBObjectStore_name_Getter(this); 757 String get name => _blink.BlinkIDBObjectStore.$name_Getter(this);
758 758
759 @DomName('IDBObjectStore.transaction') 759 @DomName('IDBObjectStore.transaction')
760 @DocsEditable() 760 @DocsEditable()
761 Transaction get transaction => _blink.Native_IDBObjectStore_transaction_Getter (this); 761 Transaction get transaction => _blink.BlinkIDBObjectStore.$transaction_Getter( this);
762 762
763 @DomName('IDBObjectStore.add') 763 @DomName('IDBObjectStore.add')
764 @DocsEditable() 764 @DocsEditable()
765 Request _add(Object value, [Object key]) => _blink.Native_IDBObjectStore_add_C allback(this, value, key); 765 Request _add(Object value, [Object key]) => _blink.BlinkIDBObjectStore.$add_Ca llback(this, value, key);
766 766
767 @DomName('IDBObjectStore.clear') 767 @DomName('IDBObjectStore.clear')
768 @DocsEditable() 768 @DocsEditable()
769 Request _clear() => _blink.Native_IDBObjectStore_clear_Callback(this); 769 Request _clear() => _blink.BlinkIDBObjectStore.$clear_Callback(this);
770 770
771 @DomName('IDBObjectStore.count') 771 @DomName('IDBObjectStore.count')
772 @DocsEditable() 772 @DocsEditable()
773 Request _count(Object key) => _blink.Native_IDBObjectStore_count_Callback(this , key); 773 Request _count(Object key) => _blink.BlinkIDBObjectStore.$count_Callback(this, key);
774 774
775 Index _createIndex(String name, keyPath, [Map options]) => _blink.Native_IDBOb jectStore__createIndex(this, name, keyPath, options); 775 Index _createIndex(String name, keyPath, [Map options]) => _blink.BlinkIDBObje ctStore.$_createIndex(this, name, keyPath, options);
776 776
777 @DomName('IDBObjectStore.delete') 777 @DomName('IDBObjectStore.delete')
778 @DocsEditable() 778 @DocsEditable()
779 Request _delete(Object key) => _blink.Native_IDBObjectStore_delete_Callback(th is, key); 779 Request _delete(Object key) => _blink.BlinkIDBObjectStore.$delete_Callback(thi s, key);
780 780
781 @DomName('IDBObjectStore.deleteIndex') 781 @DomName('IDBObjectStore.deleteIndex')
782 @DocsEditable() 782 @DocsEditable()
783 void deleteIndex(String name) => _blink.Native_IDBObjectStore_deleteIndex_Call back(this, name); 783 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.$deleteIndex_Callb ack(this, name);
784 784
785 @DomName('IDBObjectStore.get') 785 @DomName('IDBObjectStore.get')
786 @DocsEditable() 786 @DocsEditable()
787 Request _get(Object key) => _blink.Native_IDBObjectStore_get_Callback(this, ke y); 787 Request _get(Object key) => _blink.BlinkIDBObjectStore.$get_Callback(this, key );
788 788
789 @DomName('IDBObjectStore.index') 789 @DomName('IDBObjectStore.index')
790 @DocsEditable() 790 @DocsEditable()
791 Index index(String name) => _blink.Native_IDBObjectStore_index_Callback(this, name); 791 Index index(String name) => _blink.BlinkIDBObjectStore.$index_Callback(this, n ame);
792 792
793 @DomName('IDBObjectStore.openCursor') 793 @DomName('IDBObjectStore.openCursor')
794 @DocsEditable() 794 @DocsEditable()
795 Request _openCursor(Object key, [String direction]) => _blink.Native_IDBObject Store_openCursor_Callback(this, key, direction); 795 Request _openCursor(Object key, [String direction]) => _blink.BlinkIDBObjectSt ore.$openCursor_Callback(this, key, direction);
796 796
797 @DomName('IDBObjectStore.openKeyCursor') 797 @DomName('IDBObjectStore.openKeyCursor')
798 @DocsEditable() 798 @DocsEditable()
799 @Experimental() // untriaged 799 @Experimental() // untriaged
800 Request openKeyCursor(Object range, String direction) => _blink.Native_IDBObje ctStore_openKeyCursor_Callback(this, range, direction); 800 Request openKeyCursor(Object range, String direction) => _blink.BlinkIDBObject Store.$openKeyCursor_Callback(this, range, direction);
801 801
802 @DomName('IDBObjectStore.put') 802 @DomName('IDBObjectStore.put')
803 @DocsEditable() 803 @DocsEditable()
804 Request _put(Object value, [Object key]) => _blink.Native_IDBObjectStore_put_C allback(this, value, key); 804 Request _put(Object value, [Object key]) => _blink.BlinkIDBObjectStore.$put_Ca llback(this, value, key);
805 805
806 806
807 /** 807 /**
808 * Helper for iterating over cursors in a request. 808 * Helper for iterating over cursors in a request.
809 */ 809 */
810 static Stream<Cursor> _cursorStreamFromResult(Request request, 810 static Stream<Cursor> _cursorStreamFromResult(Request request,
811 bool autoAdvance) { 811 bool autoAdvance) {
812 // TODO: need to guarantee that the controller provides the values 812 // TODO: need to guarantee that the controller provides the values
813 // immediately as waiting until the next tick will cause the transaction to 813 // immediately as waiting until the next tick will cause the transaction to
814 // close. 814 // close.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 * handlers that are not necessarily instances of [Request]. 905 * handlers that are not necessarily instances of [Request].
906 * 906 *
907 * See [EventStreamProvider] for usage information. 907 * See [EventStreamProvider] for usage information.
908 */ 908 */
909 @DomName('IDBRequest.successEvent') 909 @DomName('IDBRequest.successEvent')
910 @DocsEditable() 910 @DocsEditable()
911 static const EventStreamProvider<Event> successEvent = const EventStreamProvid er<Event>('success'); 911 static const EventStreamProvider<Event> successEvent = const EventStreamProvid er<Event>('success');
912 912
913 @DomName('IDBRequest.error') 913 @DomName('IDBRequest.error')
914 @DocsEditable() 914 @DocsEditable()
915 DomError get error => _blink.Native_IDBRequest_error_Getter(this); 915 DomError get error => _blink.BlinkIDBRequest.$error_Getter(this);
916 916
917 @DomName('IDBRequest.readyState') 917 @DomName('IDBRequest.readyState')
918 @DocsEditable() 918 @DocsEditable()
919 String get readyState => _blink.Native_IDBRequest_readyState_Getter(this); 919 String get readyState => _blink.BlinkIDBRequest.$readyState_Getter(this);
920 920
921 @DomName('IDBRequest.result') 921 @DomName('IDBRequest.result')
922 @DocsEditable() 922 @DocsEditable()
923 Object get result => _blink.Native_IDBRequest_result_Getter(this); 923 Object get result => _blink.BlinkIDBRequest.$result_Getter(this);
924 924
925 @DomName('IDBRequest.source') 925 @DomName('IDBRequest.source')
926 @DocsEditable() 926 @DocsEditable()
927 Object get source => _blink.Native_IDBRequest_source_Getter(this); 927 Object get source => _blink.BlinkIDBRequest.$source_Getter(this);
928 928
929 @DomName('IDBRequest.transaction') 929 @DomName('IDBRequest.transaction')
930 @DocsEditable() 930 @DocsEditable()
931 Transaction get transaction => _blink.Native_IDBRequest_transaction_Getter(thi s); 931 Transaction get transaction => _blink.BlinkIDBRequest.$transaction_Getter(this );
932 932
933 /// Stream of `error` events handled by this [Request]. 933 /// Stream of `error` events handled by this [Request].
934 @DomName('IDBRequest.onerror') 934 @DomName('IDBRequest.onerror')
935 @DocsEditable() 935 @DocsEditable()
936 Stream<Event> get onError => errorEvent.forTarget(this); 936 Stream<Event> get onError => errorEvent.forTarget(this);
937 937
938 /// Stream of `success` events handled by this [Request]. 938 /// Stream of `success` events handled by this [Request].
939 @DomName('IDBRequest.onsuccess') 939 @DomName('IDBRequest.onsuccess')
940 @DocsEditable() 940 @DocsEditable()
941 Stream<Event> get onSuccess => successEvent.forTarget(this); 941 Stream<Event> get onSuccess => successEvent.forTarget(this);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 * handlers that are not necessarily instances of [Transaction]. 1006 * handlers that are not necessarily instances of [Transaction].
1007 * 1007 *
1008 * See [EventStreamProvider] for usage information. 1008 * See [EventStreamProvider] for usage information.
1009 */ 1009 */
1010 @DomName('IDBTransaction.errorEvent') 1010 @DomName('IDBTransaction.errorEvent')
1011 @DocsEditable() 1011 @DocsEditable()
1012 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 1012 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
1013 1013
1014 @DomName('IDBTransaction.db') 1014 @DomName('IDBTransaction.db')
1015 @DocsEditable() 1015 @DocsEditable()
1016 Database get db => _blink.Native_IDBTransaction_db_Getter(this); 1016 Database get db => _blink.BlinkIDBTransaction.$db_Getter(this);
1017 1017
1018 @DomName('IDBTransaction.error') 1018 @DomName('IDBTransaction.error')
1019 @DocsEditable() 1019 @DocsEditable()
1020 DomError get error => _blink.Native_IDBTransaction_error_Getter(this); 1020 DomError get error => _blink.BlinkIDBTransaction.$error_Getter(this);
1021 1021
1022 @DomName('IDBTransaction.mode') 1022 @DomName('IDBTransaction.mode')
1023 @DocsEditable() 1023 @DocsEditable()
1024 String get mode => _blink.Native_IDBTransaction_mode_Getter(this); 1024 String get mode => _blink.BlinkIDBTransaction.$mode_Getter(this);
1025 1025
1026 @DomName('IDBTransaction.abort') 1026 @DomName('IDBTransaction.abort')
1027 @DocsEditable() 1027 @DocsEditable()
1028 void abort() => _blink.Native_IDBTransaction_abort_Callback(this); 1028 void abort() => _blink.BlinkIDBTransaction.$abort_Callback(this);
1029 1029
1030 @DomName('IDBTransaction.objectStore') 1030 @DomName('IDBTransaction.objectStore')
1031 @DocsEditable() 1031 @DocsEditable()
1032 ObjectStore objectStore(String name) => _blink.Native_IDBTransaction_objectSto re_Callback(this, name); 1032 ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.$objectStor e_Callback(this, name);
1033 1033
1034 /// Stream of `abort` events handled by this [Transaction]. 1034 /// Stream of `abort` events handled by this [Transaction].
1035 @DomName('IDBTransaction.onabort') 1035 @DomName('IDBTransaction.onabort')
1036 @DocsEditable() 1036 @DocsEditable()
1037 Stream<Event> get onAbort => abortEvent.forTarget(this); 1037 Stream<Event> get onAbort => abortEvent.forTarget(this);
1038 1038
1039 /// Stream of `complete` events handled by this [Transaction]. 1039 /// Stream of `complete` events handled by this [Transaction].
1040 @DomName('IDBTransaction.oncomplete') 1040 @DomName('IDBTransaction.oncomplete')
1041 @DocsEditable() 1041 @DocsEditable()
1042 Stream<Event> get onComplete => completeEvent.forTarget(this); 1042 Stream<Event> get onComplete => completeEvent.forTarget(this);
(...skipping 14 matching lines...) Expand all
1057 @DocsEditable() 1057 @DocsEditable()
1058 @DomName('IDBVersionChangeEvent') 1058 @DomName('IDBVersionChangeEvent')
1059 @Unstable() 1059 @Unstable()
1060 class VersionChangeEvent extends Event { 1060 class VersionChangeEvent extends Event {
1061 // To suppress missing implicit constructor warnings. 1061 // To suppress missing implicit constructor warnings.
1062 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported"); } 1062 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported"); }
1063 1063
1064 @DomName('IDBVersionChangeEvent.dataLoss') 1064 @DomName('IDBVersionChangeEvent.dataLoss')
1065 @DocsEditable() 1065 @DocsEditable()
1066 @Experimental() // untriaged 1066 @Experimental() // untriaged
1067 String get dataLoss => _blink.Native_IDBVersionChangeEvent_dataLoss_Getter(thi s); 1067 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.$dataLoss_Getter(this );
1068 1068
1069 @DomName('IDBVersionChangeEvent.dataLossMessage') 1069 @DomName('IDBVersionChangeEvent.dataLossMessage')
1070 @DocsEditable() 1070 @DocsEditable()
1071 @Experimental() // untriaged 1071 @Experimental() // untriaged
1072 String get dataLossMessage => _blink.Native_IDBVersionChangeEvent_dataLossMess age_Getter(this); 1072 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.$dataLossMessa ge_Getter(this);
1073 1073
1074 @DomName('IDBVersionChangeEvent.newVersion') 1074 @DomName('IDBVersionChangeEvent.newVersion')
1075 @DocsEditable() 1075 @DocsEditable()
1076 Object get newVersion => _blink.Native_IDBVersionChangeEvent_newVersion_Getter (this); 1076 Object get newVersion => _blink.BlinkIDBVersionChangeEvent.$newVersion_Getter( this);
1077 1077
1078 @DomName('IDBVersionChangeEvent.oldVersion') 1078 @DomName('IDBVersionChangeEvent.oldVersion')
1079 @DocsEditable() 1079 @DocsEditable()
1080 Object get oldVersion => _blink.Native_IDBVersionChangeEvent_oldVersion_Getter (this); 1080 Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.$oldVersion_Getter( this);
1081 1081
1082 } 1082 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698