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

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

Issue 569783002: Migrate to Chrome 37 IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 @DomName('IDBDatabase.createObjectStore') 233 @DomName('IDBDatabase.createObjectStore')
234 @DocsEditable() 234 @DocsEditable()
235 ObjectStore _createObjectStore(String name, [Map options]) => _blink.BlinkIDBD atabase.createObjectStore_Callback_DOMString_Dictionary(this, name, options); 235 ObjectStore _createObjectStore(String name, [Map options]) => _blink.BlinkIDBD atabase.createObjectStore_Callback_DOMString_Dictionary(this, name, options);
236 236
237 @DomName('IDBDatabase.deleteObjectStore') 237 @DomName('IDBDatabase.deleteObjectStore')
238 @DocsEditable() 238 @DocsEditable()
239 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.deleteObjectSto re_Callback_DOMString(this, name); 239 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.deleteObjectSto re_Callback_DOMString(this, name);
240 240
241 Transaction transaction(storeName_OR_storeNames, String mode) { 241 Transaction transaction(storeName_OR_storeNames, String mode) {
242 if ((mode is String || mode == null) && (storeName_OR_storeNames is DomStrin gList || storeName_OR_storeNames == null)) { 242 if ((mode is String || mode == null) && (storeName_OR_storeNames is String | | storeName_OR_storeNames == null)) {
243 return _blink.BlinkIDBDatabase.transaction_Callback_DOMStringList_DOMStrin g(this, storeName_OR_storeNames, mode); 243 return _blink.BlinkIDBDatabase.transaction_Callback_DOMString_DOMString(th is, storeName_OR_storeNames, mode);
244 } 244 }
245 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str ing> || storeName_OR_storeNames == null)) { 245 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str ing> || storeName_OR_storeNames == null)) {
246 return _blink.BlinkIDBDatabase.transaction_Callback_SEQ_DOMString_SEQ_DOMS tring(this, storeName_OR_storeNames, mode); 246 return _blink.BlinkIDBDatabase.transaction_Callback_SEQ_DOMString_SEQ_DOMS tring(this, storeName_OR_storeNames, mode);
247 } 247 }
248 if ((mode is String || mode == null) && (storeName_OR_storeNames is String | | storeName_OR_storeNames == null)) { 248 if ((mode is String || mode == null) && (storeName_OR_storeNames is DomStrin gList || storeName_OR_storeNames == null)) {
249 return _blink.BlinkIDBDatabase.transaction_Callback_DOMString_DOMString(th is, storeName_OR_storeNames, mode); 249 return _blink.BlinkIDBDatabase.transaction_Callback_DOMStringList_DOMStrin g(this, storeName_OR_storeNames, mode);
250 } 250 }
251 throw new ArgumentError("Incorrect number or type of arguments"); 251 throw new ArgumentError("Incorrect number or type of arguments");
252 } 252 }
253 253
254 @DomName('IDBDatabase.transactionList') 254 @DomName('IDBDatabase.transactionList')
255 @DocsEditable() 255 @DocsEditable()
256 Transaction transactionList(List<String> storeNames, String mode) => _blink.Bl inkIDBDatabase.transaction_Callback_SEQ_DOMString_SEQ_DOMString(this, storeNames , mode); 256 Transaction transactionList(List<String> storeNames, String mode) => _blink.Bl inkIDBDatabase.transaction_Callback_SEQ_DOMString_SEQ_DOMString(this, storeNames , mode);
257 257
258 @DomName('IDBDatabase.transactionStore') 258 @DomName('IDBDatabase.transactionStore')
259 @DocsEditable() 259 @DocsEditable()
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 782
783 @DomName('IDBObjectStore.clear') 783 @DomName('IDBObjectStore.clear')
784 @DocsEditable() 784 @DocsEditable()
785 Request _clear() => _blink.BlinkIDBObjectStore.clear_Callback(this); 785 Request _clear() => _blink.BlinkIDBObjectStore.clear_Callback(this);
786 786
787 @DomName('IDBObjectStore.count') 787 @DomName('IDBObjectStore.count')
788 @DocsEditable() 788 @DocsEditable()
789 Request _count(Object key) => _blink.BlinkIDBObjectStore.count_Callback_Script Value(this, key); 789 Request _count(Object key) => _blink.BlinkIDBObjectStore.count_Callback_Script Value(this, key);
790 790
791 Index _createIndex(String name, keyPath, [Map options]) { 791 Index _createIndex(String name, keyPath, [Map options]) {
792 if ((options is Map || options == null) && (keyPath is String || keyPath == null) && (name is String || name == null)) {
793 return _blink.BlinkIDBObjectStore.createIndex_Callback_DOMString_DOMString _Dictionary(this, name, keyPath, options);
794 }
792 if ((options is Map || options == null) && (keyPath is List<String> || keyPa th == null) && (name is String || name == null)) { 795 if ((options is Map || options == null) && (keyPath is List<String> || keyPa th == null) && (name is String || name == null)) {
793 return _blink.BlinkIDBObjectStore.createIndex_Callback_DOMString_SEQ_DOMSt ring_SEQ_Dictionary(this, name, keyPath, options); 796 return _blink.BlinkIDBObjectStore.createIndex_Callback_DOMString_SEQ_DOMSt ring_SEQ_Dictionary(this, name, keyPath, options);
794 } 797 }
795 if ((options is Map || options == null) && (keyPath is String || keyPath == null) && (name is String || name == null)) {
796 return _blink.BlinkIDBObjectStore.createIndex_Callback_DOMString_DOMString _Dictionary(this, name, keyPath, options);
797 }
798 throw new ArgumentError("Incorrect number or type of arguments"); 798 throw new ArgumentError("Incorrect number or type of arguments");
799 } 799 }
800 800
801 @DomName('IDBObjectStore.delete') 801 @DomName('IDBObjectStore.delete')
802 @DocsEditable() 802 @DocsEditable()
803 Request _delete(Object key) => _blink.BlinkIDBObjectStore.delete_Callback_Scri ptValue(this, key); 803 Request _delete(Object key) => _blink.BlinkIDBObjectStore.delete_Callback_Scri ptValue(this, key);
804 804
805 @DomName('IDBObjectStore.deleteIndex') 805 @DomName('IDBObjectStore.deleteIndex')
806 @DocsEditable() 806 @DocsEditable()
807 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.deleteIndex_Callba ck_DOMString(this, name); 807 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.deleteIndex_Callba ck_DOMString(this, name);
808 808
809 @DomName('IDBObjectStore.get') 809 @DomName('IDBObjectStore.get')
810 @DocsEditable() 810 @DocsEditable()
811 Request _get(Object key) => _blink.BlinkIDBObjectStore.get_Callback_ScriptValu e(this, key); 811 Request _get(Object key) => _blink.BlinkIDBObjectStore.get_Callback_ScriptValu e(this, key);
812 812
813 @DomName('IDBObjectStore.index') 813 @DomName('IDBObjectStore.index')
814 @DocsEditable() 814 @DocsEditable()
815 Index index(String name) => _blink.BlinkIDBObjectStore.index_Callback_DOMStrin g(this, name); 815 Index index(String name) => _blink.BlinkIDBObjectStore.index_Callback_DOMStrin g(this, name);
816 816
817 @DomName('IDBObjectStore.openCursor') 817 @DomName('IDBObjectStore.openCursor')
818 @DocsEditable() 818 @DocsEditable()
819 Request _openCursor(Object key, [String direction]) => _blink.BlinkIDBObjectSt ore.openCursor_Callback_ScriptValue_DOMString(this, key, direction); 819 Request _openCursor(Object range, [String direction]) => _blink.BlinkIDBObject Store.openCursor_Callback_ScriptValue_DOMString(this, range, direction);
820 820
821 @DomName('IDBObjectStore.openKeyCursor') 821 @DomName('IDBObjectStore.openKeyCursor')
822 @DocsEditable() 822 @DocsEditable()
823 @Experimental() // untriaged 823 @Experimental() // untriaged
824 Request openKeyCursor(Object range, String direction) => _blink.BlinkIDBObject Store.openKeyCursor_Callback_ScriptValue_DOMString(this, range, direction); 824 Request openKeyCursor(Object range, String direction) => _blink.BlinkIDBObject Store.openKeyCursor_Callback_ScriptValue_DOMString(this, range, direction);
825 825
826 @DomName('IDBObjectStore.put') 826 @DomName('IDBObjectStore.put')
827 @DocsEditable() 827 @DocsEditable()
828 Request _put(Object value, [Object key]) => _blink.BlinkIDBObjectStore.put_Cal lback_ScriptValue_ScriptValue(this, value, key); 828 Request _put(Object value, [Object key]) => _blink.BlinkIDBObjectStore.put_Cal lback_ScriptValue_ScriptValue(this, value, key);
829 829
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 @Experimental() // untriaged 1090 @Experimental() // untriaged
1091 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.dataLoss_Getter(this) ; 1091 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.dataLoss_Getter(this) ;
1092 1092
1093 @DomName('IDBVersionChangeEvent.dataLossMessage') 1093 @DomName('IDBVersionChangeEvent.dataLossMessage')
1094 @DocsEditable() 1094 @DocsEditable()
1095 @Experimental() // untriaged 1095 @Experimental() // untriaged
1096 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.dataLossMessag e_Getter(this); 1096 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.dataLossMessag e_Getter(this);
1097 1097
1098 @DomName('IDBVersionChangeEvent.newVersion') 1098 @DomName('IDBVersionChangeEvent.newVersion')
1099 @DocsEditable() 1099 @DocsEditable()
1100 Object get newVersion => _blink.BlinkIDBVersionChangeEvent.newVersion_Getter(t his); 1100 int get newVersion => _blink.BlinkIDBVersionChangeEvent.newVersion_Getter(this );
1101 1101
1102 @DomName('IDBVersionChangeEvent.oldVersion') 1102 @DomName('IDBVersionChangeEvent.oldVersion')
1103 @DocsEditable() 1103 @DocsEditable()
1104 Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.oldVersion_Getter(t his); 1104 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.oldVersion_Getter(this );
1105 1105
1106 } 1106 }
OLDNEW
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698