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

Side by Side Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 23829002: Checkpoint in changes to match push (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ready for review Created 7 years, 3 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
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:typed_data'; 6 import 'dart:typed_data';
7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; 7 import 'dart:_js_helper' show Creates, Returns, JSName, Null;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 import 'dart:_interceptors' show Interceptor, JSExtendableArray; 9 import 'dart:_interceptors' show Interceptor, JSExtendableArray;
10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 @DocsEditable() 637 @DocsEditable()
638 final ObjectStore objectStore; 638 final ObjectStore objectStore;
639 639
640 @DomName('IDBIndex.unique') 640 @DomName('IDBIndex.unique')
641 @DocsEditable() 641 @DocsEditable()
642 final bool unique; 642 final bool unique;
643 643
644 @JSName('count') 644 @JSName('count')
645 @DomName('IDBIndex.count') 645 @DomName('IDBIndex.count')
646 @DocsEditable() 646 @DocsEditable()
647 Request _count([key_OR_range]) native; 647 Request _count(Object key) native;
648 648
649 @JSName('get') 649 @JSName('get')
650 @DomName('IDBIndex.get') 650 @DomName('IDBIndex.get')
651 @DocsEditable() 651 @DocsEditable()
652 @Returns('Request') 652 @Returns('Request')
653 @Creates('Request') 653 @Creates('Request')
654 @annotation_Creates_SerializedScriptValue 654 @annotation_Creates_SerializedScriptValue
655 Request _get(key) native; 655 Request _get(Object key) native;
656 656
657 @JSName('getKey') 657 @JSName('getKey')
658 @DomName('IDBIndex.getKey') 658 @DomName('IDBIndex.getKey')
659 @DocsEditable() 659 @DocsEditable()
660 @Returns('Request') 660 @Returns('Request')
661 @Creates('Request') 661 @Creates('Request')
662 @annotation_Creates_SerializedScriptValue 662 @annotation_Creates_SerializedScriptValue
663 @Creates('ObjectStore') 663 @Creates('ObjectStore')
664 Request _getKey(key) native; 664 Request _getKey(Object key) native;
665 665
666 @JSName('openCursor') 666 @JSName('openCursor')
667 @DomName('IDBIndex.openCursor') 667 @DomName('IDBIndex.openCursor')
668 @DocsEditable() 668 @DocsEditable()
669 @Returns('Request') 669 @Returns('Request')
670 @Creates('Request') 670 @Creates('Request')
671 @Creates('Cursor') 671 @Creates('Cursor')
672 Request _openCursor([key_OR_range, String direction]) native; 672 Request _openCursor(Object key, String direction) native;
673 673
674 @JSName('openKeyCursor') 674 @JSName('openKeyCursor')
675 @DomName('IDBIndex.openKeyCursor') 675 @DomName('IDBIndex.openKeyCursor')
676 @DocsEditable() 676 @DocsEditable()
677 @Returns('Request') 677 @Returns('Request')
678 @Creates('Request') 678 @Creates('Request')
679 @Creates('Cursor') 679 @Creates('Cursor')
680 Request _openKeyCursor([key_OR_range, String direction]) native; 680 Request _openKeyCursor(Object key, String direction) native;
681 681
682 } 682 }
683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
684 // for details. All rights reserved. Use of this source code is governed by a 684 // for details. All rights reserved. Use of this source code is governed by a
685 // BSD-style license that can be found in the LICENSE file. 685 // BSD-style license that can be found in the LICENSE file.
686 686
687 687
688 @DomName('IDBKeyRange') 688 @DomName('IDBKeyRange')
689 @Unstable() 689 @Unstable()
690 class KeyRange extends Interceptor native "IDBKeyRange" { 690 class KeyRange extends Interceptor native "IDBKeyRange" {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 Request _add_2(value) native; 940 Request _add_2(value) native;
941 941
942 @JSName('clear') 942 @JSName('clear')
943 @DomName('IDBObjectStore.clear') 943 @DomName('IDBObjectStore.clear')
944 @DocsEditable() 944 @DocsEditable()
945 Request _clear() native; 945 Request _clear() native;
946 946
947 @JSName('count') 947 @JSName('count')
948 @DomName('IDBObjectStore.count') 948 @DomName('IDBObjectStore.count')
949 @DocsEditable() 949 @DocsEditable()
950 Request _count([key_OR_range]) native; 950 Request _count(Object key) native;
951 951
952 @DomName('IDBObjectStore.createIndex') 952 @DomName('IDBObjectStore.createIndex')
953 @DocsEditable() 953 @DocsEditable()
954 Index _createIndex(String name, keyPath, [Map options]) { 954 Index _createIndex(String name, keyPath, [Map options]) {
955 if ((keyPath is List<String> || keyPath == null) && options == null) { 955 if ((keyPath is List<String> || keyPath == null) && options == null) {
956 List keyPath_1 = convertDartToNative_StringArray(keyPath); 956 List keyPath_1 = convertDartToNative_StringArray(keyPath);
957 return _createIndex_1(name, keyPath_1); 957 return _createIndex_1(name, keyPath_1);
958 } 958 }
959 if (options != null && (keyPath is List<String> || keyPath == null)) { 959 if (options != null && (keyPath is List<String> || keyPath == null)) {
960 List keyPath_2 = convertDartToNative_StringArray(keyPath); 960 List keyPath_2 = convertDartToNative_StringArray(keyPath);
(...skipping 22 matching lines...) Expand all
983 @DocsEditable() 983 @DocsEditable()
984 Index _createIndex_3(name, String keyPath) native; 984 Index _createIndex_3(name, String keyPath) native;
985 @JSName('createIndex') 985 @JSName('createIndex')
986 @DomName('IDBObjectStore.createIndex') 986 @DomName('IDBObjectStore.createIndex')
987 @DocsEditable() 987 @DocsEditable()
988 Index _createIndex_4(name, String keyPath, options) native; 988 Index _createIndex_4(name, String keyPath, options) native;
989 989
990 @JSName('delete') 990 @JSName('delete')
991 @DomName('IDBObjectStore.delete') 991 @DomName('IDBObjectStore.delete')
992 @DocsEditable() 992 @DocsEditable()
993 Request _delete(key_OR_keyRange) native; 993 Request _delete(Object key) native;
994 994
995 @DomName('IDBObjectStore.deleteIndex') 995 @DomName('IDBObjectStore.deleteIndex')
996 @DocsEditable() 996 @DocsEditable()
997 void deleteIndex(String name) native; 997 void deleteIndex(String name) native;
998 998
999 @JSName('get') 999 @JSName('get')
1000 @DomName('IDBObjectStore.get') 1000 @DomName('IDBObjectStore.get')
1001 @DocsEditable() 1001 @DocsEditable()
1002 @Returns('Request') 1002 @Returns('Request')
1003 @Creates('Request') 1003 @Creates('Request')
1004 @annotation_Creates_SerializedScriptValue 1004 @annotation_Creates_SerializedScriptValue
1005 Request _get(key) native; 1005 Request _get(Object key) native;
1006 1006
1007 @DomName('IDBObjectStore.index') 1007 @DomName('IDBObjectStore.index')
1008 @DocsEditable() 1008 @DocsEditable()
1009 Index index(String name) native; 1009 Index index(String name) native;
1010 1010
1011 @JSName('openCursor') 1011 @JSName('openCursor')
1012 @DomName('IDBObjectStore.openCursor') 1012 @DomName('IDBObjectStore.openCursor')
1013 @DocsEditable() 1013 @DocsEditable()
1014 @Returns('Request') 1014 @Returns('Request')
1015 @Creates('Request') 1015 @Creates('Request')
1016 @Creates('Cursor') 1016 @Creates('Cursor')
1017 Request _openCursor([key_OR_range, String direction]) native; 1017 Request _openCursor(Object key, [String direction]) native;
1018 1018
1019 @DomName('IDBObjectStore.put') 1019 @DomName('IDBObjectStore.put')
1020 @DocsEditable() 1020 @DocsEditable()
1021 @Returns('Request') 1021 @Returns('Request')
1022 @Creates('Request') 1022 @Creates('Request')
1023 @_annotation_Creates_IDBKey 1023 @_annotation_Creates_IDBKey
1024 Request _put(/*any*/ value, [/*any*/ key]) { 1024 Request _put(/*any*/ value, [/*any*/ key]) {
1025 if (key != null) { 1025 if (key != null) {
1026 var value_1 = convertDartToNative_SerializedScriptValue(value); 1026 var value_1 = convertDartToNative_SerializedScriptValue(value);
1027 var key_2 = convertDartToNative_SerializedScriptValue(key); 1027 var key_2 = convertDartToNative_SerializedScriptValue(key);
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1270 // for details. All rights reserved. Use of this source code is governed by a 1270 // for details. All rights reserved. Use of this source code is governed by a
1271 // BSD-style license that can be found in the LICENSE file. 1271 // BSD-style license that can be found in the LICENSE file.
1272 1272
1273 1273
1274 @DocsEditable() 1274 @DocsEditable()
1275 @DomName('IDBAny') 1275 @DomName('IDBAny')
1276 @deprecated // nonstandard 1276 @deprecated // nonstandard
1277 abstract class _IDBAny extends Interceptor native "IDBAny" { 1277 abstract class _IDBAny extends Interceptor native "IDBAny" {
1278 } 1278 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698