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

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

Issue 1262723003: Add a hashCode that delegates to JS for everything that defines == (Closed) Base URL: git@github.com:dart-lang/sdk.git@integration
Patch Set: Created 5 years, 4 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
« 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 /** 1 /**
2 * A client-side key-value store with support for indexes. 2 * A client-side key-value store with support for indexes.
3 * 3 *
4 * Many browsers support IndexedDB—a web standard for 4 * Many browsers support IndexedDB—a web standard for
5 * an indexed database. 5 * an indexed database.
6 * By storing data on the client in an IndexedDB, 6 * By storing data on the client in an IndexedDB,
7 * a web app gets some advantages, such as faster performance and persistence. 7 * a web app gets some advantages, such as faster performance and persistence.
8 * To find out which browsers support IndexedDB, 8 * To find out which browsers support IndexedDB,
9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb)
10 * 10 *
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 js.JsObject blink_jsObject = null; 173 js.JsObject blink_jsObject = null;
174 174
175 factory Cursor._internalWrap() { 175 factory Cursor._internalWrap() {
176 return new Cursor.internal_(); 176 return new Cursor.internal_();
177 } 177 }
178 178
179 Cursor.internal_() { } 179 Cursor.internal_() { }
180 180
181 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 181 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
182 int get hashCode => unwrap_jso(this).hashCode;
182 183
183 @DomName('IDBCursor.direction') 184 @DomName('IDBCursor.direction')
184 @DocsEditable() 185 @DocsEditable()
185 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra p_jso(this)); 186 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra p_jso(this));
186 187
187 @DomName('IDBCursor.key') 188 @DomName('IDBCursor.key')
188 @DocsEditable() 189 @DocsEditable()
189 Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this)) ; 190 Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this)) ;
190 191
191 @DomName('IDBCursor.primaryKey') 192 @DomName('IDBCursor.primaryKey')
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 533
533 js.JsObject blink_jsObject = null; 534 js.JsObject blink_jsObject = null;
534 535
535 factory IdbFactory._internalWrap() { 536 factory IdbFactory._internalWrap() {
536 return new IdbFactory.internal_(); 537 return new IdbFactory.internal_();
537 } 538 }
538 539
539 IdbFactory.internal_() { } 540 IdbFactory.internal_() { }
540 541
541 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 542 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
543 int get hashCode => unwrap_jso(this).hashCode;
542 544
543 @DomName('IDBFactory.cmp') 545 @DomName('IDBFactory.cmp')
544 @DocsEditable() 546 @DocsEditable()
545 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca llback_2_(unwrap_jso(this), first, second); 547 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca llback_2_(unwrap_jso(this), first, second);
546 548
547 @DomName('IDBFactory.deleteDatabase') 549 @DomName('IDBFactory.deleteDatabase')
548 @DocsEditable() 550 @DocsEditable()
549 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance. deleteDatabase_Callback_1_(unwrap_jso(this), name); 551 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance. deleteDatabase_Callback_1_(unwrap_jso(this), name);
550 552
551 OpenDBRequest _open(String name, [int version]) { 553 OpenDBRequest _open(String name, [int version]) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 686
685 js.JsObject blink_jsObject = null; 687 js.JsObject blink_jsObject = null;
686 688
687 factory Index._internalWrap() { 689 factory Index._internalWrap() {
688 return new Index.internal_(); 690 return new Index.internal_();
689 } 691 }
690 692
691 Index.internal_() { } 693 Index.internal_() { }
692 694
693 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 695 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
696 int get hashCode => unwrap_jso(this).hashCode;
694 697
695 @DomName('IDBIndex.keyPath') 698 @DomName('IDBIndex.keyPath')
696 @DocsEditable() 699 @DocsEditable()
697 Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso (this)); 700 Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso (this));
698 701
699 @DomName('IDBIndex.multiEntry') 702 @DomName('IDBIndex.multiEntry')
700 @DocsEditable() 703 @DocsEditable()
701 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(unwrap _jso(this)); 704 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(unwrap _jso(this));
702 705
703 @DomName('IDBIndex.name') 706 @DomName('IDBIndex.name')
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 777
775 js.JsObject blink_jsObject = null; 778 js.JsObject blink_jsObject = null;
776 779
777 factory KeyRange._internalWrap() { 780 factory KeyRange._internalWrap() {
778 return new KeyRange.internal_(); 781 return new KeyRange.internal_();
779 } 782 }
780 783
781 KeyRange.internal_() { } 784 KeyRange.internal_() { }
782 785
783 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 786 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
787 int get hashCode => unwrap_jso(this).hashCode;
784 788
785 @DomName('IDBKeyRange.lower') 789 @DomName('IDBKeyRange.lower')
786 @DocsEditable() 790 @DocsEditable()
787 Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso( this)); 791 Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso( this));
788 792
789 @DomName('IDBKeyRange.lowerOpen') 793 @DomName('IDBKeyRange.lowerOpen')
790 @DocsEditable() 794 @DocsEditable()
791 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(unwra p_jso(this)); 795 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(unwra p_jso(this));
792 796
793 @DomName('IDBKeyRange.upper') 797 @DomName('IDBKeyRange.upper')
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 976
973 js.JsObject blink_jsObject = null; 977 js.JsObject blink_jsObject = null;
974 978
975 factory ObjectStore._internalWrap() { 979 factory ObjectStore._internalWrap() {
976 return new ObjectStore.internal_(); 980 return new ObjectStore.internal_();
977 } 981 }
978 982
979 ObjectStore.internal_() { } 983 ObjectStore.internal_() { }
980 984
981 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 985 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
986 int get hashCode => unwrap_jso(this).hashCode;
982 987
983 @DomName('IDBObjectStore.autoIncrement') 988 @DomName('IDBObjectStore.autoIncrement')
984 @DocsEditable() 989 @DocsEditable()
985 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge tter_(unwrap_jso(this)); 990 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge tter_(unwrap_jso(this));
986 991
987 @DomName('IDBObjectStore.indexNames') 992 @DomName('IDBObjectStore.indexNames')
988 @DocsEditable() 993 @DocsEditable()
989 List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_ Getter_(unwrap_jso(this)); 994 List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_ Getter_(unwrap_jso(this));
990 995
991 @DomName('IDBObjectStore.keyPath') 996 @DomName('IDBObjectStore.keyPath')
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 1391
1387 @DomName('IDBVersionChangeEvent.newVersion') 1392 @DomName('IDBVersionChangeEvent.newVersion')
1388 @DocsEditable() 1393 @DocsEditable()
1389 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge tter_(unwrap_jso(this)); 1394 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge tter_(unwrap_jso(this));
1390 1395
1391 @DomName('IDBVersionChangeEvent.oldVersion') 1396 @DomName('IDBVersionChangeEvent.oldVersion')
1392 @DocsEditable() 1397 @DocsEditable()
1393 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge tter_(unwrap_jso(this)); 1398 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge tter_(unwrap_jso(this));
1394 1399
1395 } 1400 }
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