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

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

Issue 12964003: Allowing renaming on DOM members on a per-method basis (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8 // for details. All rights reserved. Use of this source code is governed by a 8 // for details. All rights reserved. Use of this source code is governed by a
9 // BSD-style license that can be found in the LICENSE file. 9 // BSD-style license that can be found in the LICENSE file.
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Object get primaryKey native "IDBCursor_primaryKey_Getter"; 73 Object get primaryKey native "IDBCursor_primaryKey_Getter";
74 74
75 @DomName('IDBCursor.source') 75 @DomName('IDBCursor.source')
76 @DocsEditable 76 @DocsEditable
77 dynamic get source native "IDBCursor_source_Getter"; 77 dynamic get source native "IDBCursor_source_Getter";
78 78
79 @DomName('IDBCursor.advance') 79 @DomName('IDBCursor.advance')
80 @DocsEditable 80 @DocsEditable
81 void advance(int count) native "IDBCursor_advance_Callback"; 81 void advance(int count) native "IDBCursor_advance_Callback";
82 82
83 @DomName('IDBCursor.delete')
84 @DocsEditable
85 Request $dom_delete() native "IDBCursor_delete_Callback";
86
83 void next([Object key]) { 87 void next([Object key]) {
84 if (?key) { 88 if (?key) {
85 _continue_1(key); 89 _continue_1(key);
86 return; 90 return;
87 } 91 }
88 _continue_2(); 92 _continue_2();
89 return; 93 return;
90 } 94 }
91 95
92 @DomName('IDBCursor._continue_1') 96 @DomName('IDBCursor._continue_1')
93 @DocsEditable 97 @DocsEditable
94 void _continue_1(key) native "IDBCursor__continue_1_Callback"; 98 void _continue_1(key) native "IDBCursor__continue_1_Callback";
95 99
96 @DomName('IDBCursor._continue_2') 100 @DomName('IDBCursor._continue_2')
97 @DocsEditable 101 @DocsEditable
98 void _continue_2() native "IDBCursor__continue_2_Callback"; 102 void _continue_2() native "IDBCursor__continue_2_Callback";
99 103
100 @DomName('IDBCursor.delete')
101 @DocsEditable
102 Request $dom_delete() native "IDBCursor_delete_Callback";
103
104 @DomName('IDBCursor.update') 104 @DomName('IDBCursor.update')
105 @DocsEditable 105 @DocsEditable
106 Request $dom_update(Object value) native "IDBCursor_update_Callback"; 106 Request $dom_update(Object value) native "IDBCursor_update_Callback";
107 107
108 } 108 }
109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
110 // for details. All rights reserved. Use of this source code is governed by a 110 // for details. All rights reserved. Use of this source code is governed by a
111 // BSD-style license that can be found in the LICENSE file. 111 // BSD-style license that can be found in the LICENSE file.
112 112
113 // WARNING: Do not edit - generated code. 113 // WARNING: Do not edit - generated code.
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 request = $dom_put(value, key); 794 request = $dom_put(value, key);
795 } else { 795 } else {
796 request = $dom_put(value); 796 request = $dom_put(value);
797 } 797 }
798 return _completeRequest(request); 798 return _completeRequest(request);
799 } catch (e, stacktrace) { 799 } catch (e, stacktrace) {
800 return new Future.immediateError(e, stacktrace); 800 return new Future.immediateError(e, stacktrace);
801 } 801 }
802 } 802 }
803 803
804 @DomName('IDBObjectStore.getObject') 804 @DomName('IDBObjectStore.get')
805 Future getObject(key) { 805 Future getObject(key) {
806 try { 806 try {
807 var request = $dom_getObject(key); 807 var request = $dom_get(key);
808 808
809 return _completeRequest(request); 809 return _completeRequest(request);
810 } catch (e, stacktrace) { 810 } catch (e, stacktrace) {
811 return new Future.immediateError(e, stacktrace); 811 return new Future.immediateError(e, stacktrace);
812 } 812 }
813 } 813 }
814 814
815 /** 815 /**
816 * Creates a stream of cursors over the records in this object store. 816 * Creates a stream of cursors over the records in this object store.
817 * 817 *
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 Request _delete_1(key_OR_keyRange) native "IDBObjectStore__delete_1_Callback"; 968 Request _delete_1(key_OR_keyRange) native "IDBObjectStore__delete_1_Callback";
969 969
970 @DomName('IDBObjectStore._delete_2') 970 @DomName('IDBObjectStore._delete_2')
971 @DocsEditable 971 @DocsEditable
972 Request _delete_2(key_OR_keyRange) native "IDBObjectStore__delete_2_Callback"; 972 Request _delete_2(key_OR_keyRange) native "IDBObjectStore__delete_2_Callback";
973 973
974 @DomName('IDBObjectStore.deleteIndex') 974 @DomName('IDBObjectStore.deleteIndex')
975 @DocsEditable 975 @DocsEditable
976 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; 976 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback";
977 977
978 Request $dom_getObject(key) { 978 Request $dom_get(key) {
979 if ((key is KeyRange || key == null)) { 979 if ((key is KeyRange || key == null)) {
980 return _get_1(key); 980 return _get_1(key);
981 } 981 }
982 if (?key) { 982 if (?key) {
983 return _get_2(key); 983 return _get_2(key);
984 } 984 }
985 throw new ArgumentError("Incorrect number or type of arguments"); 985 throw new ArgumentError("Incorrect number or type of arguments");
986 } 986 }
987 987
988 @DomName('IDBObjectStore._get_1') 988 @DomName('IDBObjectStore._get_1')
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 1304
1305 // WARNING: Do not edit - generated code. 1305 // WARNING: Do not edit - generated code.
1306 1306
1307 1307
1308 @DocsEditable 1308 @DocsEditable
1309 @DomName('IDBAny') 1309 @DomName('IDBAny')
1310 class _IDBAny extends NativeFieldWrapperClass1 { 1310 class _IDBAny extends NativeFieldWrapperClass1 {
1311 _IDBAny.internal(); 1311 _IDBAny.internal();
1312 1312
1313 } 1313 }
OLDNEW
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tests/html/canvasrenderingcontext2d_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698