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

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

Issue 11887006: Changed @domName annotation in comment to full fledge @DomName annotation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged and stuff.' Created 7 years, 11 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 indexed_db; 1 library indexed_db;
2 2
3 import 'dart:html'; 3 import 'dart:html';
4 import 'dart:html_common'; 4 import 'dart:html_common';
5 import 'dart:nativewrappers'; 5 import 'dart:nativewrappers';
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 21 matching lines...) Expand all
32 [bool lowerOpen = false, bool upperOpen = false]) => 32 [bool lowerOpen = false, bool upperOpen = false]) =>
33 KeyRange.bound_(lower, upper, lowerOpen, upperOpen); 33 KeyRange.bound_(lower, upper, lowerOpen, upperOpen);
34 } 34 }
35 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 35 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
36 // for details. All rights reserved. Use of this source code is governed by a 36 // for details. All rights reserved. Use of this source code is governed by a
37 // BSD-style license that can be found in the LICENSE file. 37 // BSD-style license that can be found in the LICENSE file.
38 38
39 // WARNING: Do not edit - generated code. 39 // WARNING: Do not edit - generated code.
40 40
41 41
42 /// @domName IDBCursor 42 @DomName("IDBCursor")
43 class Cursor extends NativeFieldWrapperClass1 { 43 class Cursor extends NativeFieldWrapperClass1 {
44 Cursor.internal(); 44 Cursor.internal();
45 45
46 46 @DomName("IDBCursor.direction")
47 /** @domName IDBCursor.direction */
48 String get direction native "IDBCursor_direction_Getter"; 47 String get direction native "IDBCursor_direction_Getter";
49 48
50 49 @DomName("IDBCursor.key")
51 /** @domName IDBCursor.key */
52 Object get key native "IDBCursor_key_Getter"; 50 Object get key native "IDBCursor_key_Getter";
53 51
54 52 @DomName("IDBCursor.primaryKey")
55 /** @domName IDBCursor.primaryKey */
56 Object get primaryKey native "IDBCursor_primaryKey_Getter"; 53 Object get primaryKey native "IDBCursor_primaryKey_Getter";
57 54
58 55 @DomName("IDBCursor.source")
59 /** @domName IDBCursor.source */
60 dynamic get source native "IDBCursor_source_Getter"; 56 dynamic get source native "IDBCursor_source_Getter";
61 57
62 58 @DomName("IDBCursor.advance")
63 /** @domName IDBCursor.advance */
64 void advance(int count) native "IDBCursor_advance_Callback"; 59 void advance(int count) native "IDBCursor_advance_Callback";
65 60
66 void continueFunction([/*IDBKey*/ key]) { 61 void continueFunction([/*IDBKey*/ key]) {
67 if (?key) { 62 if (?key) {
68 _continue_1(key); 63 _continue_1(key);
69 return; 64 return;
70 } 65 }
71 _continue_2(); 66 _continue_2();
72 } 67 }
73 68
74 69 @DomName("IDBCursor.continue_1")
75 /** @domName IDBCursor.continue_1 */
76 void _continue_1(key) native "IDBCursor_continue_1_Callback"; 70 void _continue_1(key) native "IDBCursor_continue_1_Callback";
77 71
78 72 @DomName("IDBCursor.continue_2")
79 /** @domName IDBCursor.continue_2 */
80 void _continue_2() native "IDBCursor_continue_2_Callback"; 73 void _continue_2() native "IDBCursor_continue_2_Callback";
81 74
82 75 @DomName("IDBCursor.delete")
83 /** @domName IDBCursor.delete */
84 Request delete() native "IDBCursor_delete_Callback"; 76 Request delete() native "IDBCursor_delete_Callback";
85 77
86 78 @DomName("IDBCursor.update")
87 /** @domName IDBCursor.update */
88 Request update(Object value) native "IDBCursor_update_Callback"; 79 Request update(Object value) native "IDBCursor_update_Callback";
89 80
90 } 81 }
91 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 82 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
92 // for details. All rights reserved. Use of this source code is governed by a 83 // for details. All rights reserved. Use of this source code is governed by a
93 // BSD-style license that can be found in the LICENSE file. 84 // BSD-style license that can be found in the LICENSE file.
94 85
95 // WARNING: Do not edit - generated code. 86 // WARNING: Do not edit - generated code.
96 87
97 88
98 /// @domName IDBCursorWithValue 89 @DomName("IDBCursorWithValue")
99 class CursorWithValue extends Cursor { 90 class CursorWithValue extends Cursor {
100 CursorWithValue.internal() : super.internal(); 91 CursorWithValue.internal() : super.internal();
101 92
102 93 @DomName("IDBCursorWithValue.value")
103 /** @domName IDBCursorWithValue.value */
104 Object get value native "IDBCursorWithValue_value_Getter"; 94 Object get value native "IDBCursorWithValue_value_Getter";
105 95
106 } 96 }
107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 97 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
108 // for details. All rights reserved. Use of this source code is governed by a 98 // for details. All rights reserved. Use of this source code is governed by a
109 // BSD-style license that can be found in the LICENSE file. 99 // BSD-style license that can be found in the LICENSE file.
110 100
111 // WARNING: Do not edit - generated code. 101 // WARNING: Do not edit - generated code.
112 102
113 103
114 /// @domName IDBDatabase 104 @DomName("IDBDatabase")
115 @SupportedBrowser(SupportedBrowser.CHROME) 105 @SupportedBrowser(SupportedBrowser.CHROME)
116 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') 106 @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
117 @SupportedBrowser(SupportedBrowser.IE, '10') 107 @SupportedBrowser(SupportedBrowser.IE, '10')
118 @Experimental() 108 @Experimental()
119 class Database extends EventTarget { 109 class Database extends EventTarget {
120 Database.internal() : super.internal(); 110 Database.internal() : super.internal();
121 111
122 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 112 /// @docsEditable true
113 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent")
123 DatabaseEvents get on => 114 DatabaseEvents get on =>
124 new DatabaseEvents(this); 115 new DatabaseEvents(this);
125 116
126 117 @DomName("IDBDatabase.name")
127 /** @domName IDBDatabase.name */
128 String get name native "IDBDatabase_name_Getter"; 118 String get name native "IDBDatabase_name_Getter";
129 119
130 120 @DomName("IDBDatabase.objectStoreNames")
131 /** @domName IDBDatabase.objectStoreNames */
132 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter" ; 121 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter" ;
133 122
134 123 @DomName("IDBDatabase.version")
135 /** @domName IDBDatabase.version */
136 dynamic get version native "IDBDatabase_version_Getter"; 124 dynamic get version native "IDBDatabase_version_Getter";
137 125
138 126 @DomName("IDBDatabase.addEventListener")
139 /** @domName IDBDatabase.addEventListener */
140 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "IDBDatabase_addEventListener_Callback"; 127 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "IDBDatabase_addEventListener_Callback";
141 128
142 129 @DomName("IDBDatabase.close")
143 /** @domName IDBDatabase.close */
144 void close() native "IDBDatabase_close_Callback"; 130 void close() native "IDBDatabase_close_Callback";
145 131
146 132 @DomName("IDBDatabase.createObjectStore")
147 /** @domName IDBDatabase.createObjectStore */
148 ObjectStore createObjectStore(String name, [Map options]) native "IDBDatabase_ createObjectStore_Callback"; 133 ObjectStore createObjectStore(String name, [Map options]) native "IDBDatabase_ createObjectStore_Callback";
149 134
150 135 @DomName("IDBDatabase.deleteObjectStore")
151 /** @domName IDBDatabase.deleteObjectStore */
152 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call back"; 136 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call back";
153 137
154 138 @DomName("IDBDatabase.dispatchEvent")
155 /** @domName IDBDatabase.dispatchEvent */
156 bool $dom_dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback" ; 139 bool $dom_dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback" ;
157 140
158 141 @DomName("IDBDatabase.removeEventListener")
159 /** @domName IDBDatabase.removeEventListener */
160 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "IDBDatabase_removeEventListener_Callback"; 142 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "IDBDatabase_removeEventListener_Callback";
161 143
162 Transaction transaction(storeName_OR_storeNames, /*DOMString*/ mode) { 144 Transaction transaction(storeName_OR_storeNames, /*DOMString*/ mode) {
163 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n ull) && (mode is String || mode == null)) { 145 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n ull) && (mode is String || mode == null)) {
164 return _transaction_1(storeName_OR_storeNames, mode); 146 return _transaction_1(storeName_OR_storeNames, mode);
165 } 147 }
166 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n ull) && (mode is String || mode == null)) { 148 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n ull) && (mode is String || mode == null)) {
167 return _transaction_2(storeName_OR_storeNames, mode); 149 return _transaction_2(storeName_OR_storeNames, mode);
168 } 150 }
169 if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) & & (mode is String || mode == null)) { 151 if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) & & (mode is String || mode == null)) {
170 return _transaction_3(storeName_OR_storeNames, mode); 152 return _transaction_3(storeName_OR_storeNames, mode);
171 } 153 }
172 throw new ArgumentError("Incorrect number or type of arguments"); 154 throw new ArgumentError("Incorrect number or type of arguments");
173 } 155 }
174 156
175 157 @DomName("IDBDatabase.transaction_1")
176 /** @domName IDBDatabase.transaction_1 */
177 Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_ transaction_1_Callback"; 158 Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_ transaction_1_Callback";
178 159
179 160 @DomName("IDBDatabase.transaction_2")
180 /** @domName IDBDatabase.transaction_2 */
181 Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_ transaction_2_Callback"; 161 Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_ transaction_2_Callback";
182 162
183 163 @DomName("IDBDatabase.transaction_3")
184 /** @domName IDBDatabase.transaction_3 */
185 Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_ transaction_3_Callback"; 164 Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_ transaction_3_Callback";
186 165
187 } 166 }
188 167
189 /// @docsEditable true 168 /// @docsEditable true
190 class DatabaseEvents extends Events { 169 class DatabaseEvents extends Events {
191 /// @docsEditable true 170 /// @docsEditable true
192 DatabaseEvents(EventTarget _ptr) : super(_ptr); 171 DatabaseEvents(EventTarget _ptr) : super(_ptr);
193 172
194 /// @docsEditable true 173 /// @docsEditable true
195 EventListenerList get abort => this['abort']; 174 EventListenerList get abort => this['abort'];
196 175
197 /// @docsEditable true 176 /// @docsEditable true
198 EventListenerList get error => this['error']; 177 EventListenerList get error => this['error'];
199 178
200 /// @docsEditable true 179 /// @docsEditable true
201 EventListenerList get versionChange => this['versionchange']; 180 EventListenerList get versionChange => this['versionchange'];
202 } 181 }
203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
204 // for details. All rights reserved. Use of this source code is governed by a 183 // for details. All rights reserved. Use of this source code is governed by a
205 // BSD-style license that can be found in the LICENSE file. 184 // BSD-style license that can be found in the LICENSE file.
206 185
207 186
208 /// @domName IDBFactory 187
188 @DomName("IDBFactory")
209 @SupportedBrowser(SupportedBrowser.CHROME) 189 @SupportedBrowser(SupportedBrowser.CHROME)
210 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') 190 @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
211 @SupportedBrowser(SupportedBrowser.IE, '10') 191 @SupportedBrowser(SupportedBrowser.IE, '10')
212 @Experimental() 192 @Experimental()
213 class IdbFactory extends NativeFieldWrapperClass1 { 193 class IdbFactory extends NativeFieldWrapperClass1 {
214 /** 194 /**
215 * Checks to see if Indexed DB is supported on the current platform. 195 * Checks to see if Indexed DB is supported on the current platform.
216 */ 196 */
217 static bool get supported { 197 static bool get supported {
218 return true; 198 return true;
219 } 199 }
220 200
221 IdbFactory.internal(); 201 IdbFactory.internal();
222 202
223 203 @DomName("IDBFactory.cmp")
224 /** @domName IDBFactory.cmp */
225 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) native "IDBFactory_cmp_Callback"; 204 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) native "IDBFactory_cmp_Callback";
226 205
227 206 @DomName("IDBFactory.deleteDatabase")
228 /** @domName IDBFactory.deleteDatabase */
229 VersionChangeRequest deleteDatabase(String name) native "IDBFactory_deleteData base_Callback"; 207 VersionChangeRequest deleteDatabase(String name) native "IDBFactory_deleteData base_Callback";
230 208
231 OpenDBRequest open(/*DOMString*/ name, [/*long long*/ version]) { 209 OpenDBRequest open(/*DOMString*/ name, [/*long long*/ version]) {
232 if (?version) { 210 if (?version) {
233 return _open_1(name, version); 211 return _open_1(name, version);
234 } 212 }
235 return _open_2(name); 213 return _open_2(name);
236 } 214 }
237 215
238 216 @DomName("IDBFactory.open_1")
239 /** @domName IDBFactory.open_1 */
240 OpenDBRequest _open_1(name, version) native "IDBFactory_open_1_Callback"; 217 OpenDBRequest _open_1(name, version) native "IDBFactory_open_1_Callback";
241 218
242 219 @DomName("IDBFactory.open_2")
243 /** @domName IDBFactory.open_2 */
244 OpenDBRequest _open_2(name) native "IDBFactory_open_2_Callback"; 220 OpenDBRequest _open_2(name) native "IDBFactory_open_2_Callback";
245 221
246 222 @DomName("IDBFactory.webkitGetDatabaseNames")
247 /** @domName IDBFactory.webkitGetDatabaseNames */
248 Request webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Cal lback"; 223 Request webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Cal lback";
249 224
250 } 225 }
251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
252 // for details. All rights reserved. Use of this source code is governed by a 227 // for details. All rights reserved. Use of this source code is governed by a
253 // BSD-style license that can be found in the LICENSE file. 228 // BSD-style license that can be found in the LICENSE file.
254 229
255 // WARNING: Do not edit - generated code. 230 // WARNING: Do not edit - generated code.
256 231
257 232
258 /// @domName IDBIndex 233 @DomName("IDBIndex")
259 class Index extends NativeFieldWrapperClass1 { 234 class Index extends NativeFieldWrapperClass1 {
260 Index.internal(); 235 Index.internal();
261 236
262 237 @DomName("IDBIndex.keyPath")
263 /** @domName IDBIndex.keyPath */
264 dynamic get keyPath native "IDBIndex_keyPath_Getter"; 238 dynamic get keyPath native "IDBIndex_keyPath_Getter";
265 239
266 240 @DomName("IDBIndex.multiEntry")
267 /** @domName IDBIndex.multiEntry */
268 bool get multiEntry native "IDBIndex_multiEntry_Getter"; 241 bool get multiEntry native "IDBIndex_multiEntry_Getter";
269 242
270 243 @DomName("IDBIndex.name")
271 /** @domName IDBIndex.name */
272 String get name native "IDBIndex_name_Getter"; 244 String get name native "IDBIndex_name_Getter";
273 245
274 246 @DomName("IDBIndex.objectStore")
275 /** @domName IDBIndex.objectStore */
276 ObjectStore get objectStore native "IDBIndex_objectStore_Getter"; 247 ObjectStore get objectStore native "IDBIndex_objectStore_Getter";
277 248
278 249 @DomName("IDBIndex.unique")
279 /** @domName IDBIndex.unique */
280 bool get unique native "IDBIndex_unique_Getter"; 250 bool get unique native "IDBIndex_unique_Getter";
281 251
282 Request count([key_OR_range]) { 252 Request count([key_OR_range]) {
283 if (!?key_OR_range) { 253 if (!?key_OR_range) {
284 return _count_1(); 254 return _count_1();
285 } 255 }
286 if ((key_OR_range is KeyRange || key_OR_range == null)) { 256 if ((key_OR_range is KeyRange || key_OR_range == null)) {
287 return _count_2(key_OR_range); 257 return _count_2(key_OR_range);
288 } 258 }
289 if (?key_OR_range) { 259 if (?key_OR_range) {
290 return _count_3(key_OR_range); 260 return _count_3(key_OR_range);
291 } 261 }
292 throw new ArgumentError("Incorrect number or type of arguments"); 262 throw new ArgumentError("Incorrect number or type of arguments");
293 } 263 }
294 264
295 265 @DomName("IDBIndex.count_1")
296 /** @domName IDBIndex.count_1 */
297 Request _count_1() native "IDBIndex_count_1_Callback"; 266 Request _count_1() native "IDBIndex_count_1_Callback";
298 267
299 268 @DomName("IDBIndex.count_2")
300 /** @domName IDBIndex.count_2 */
301 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; 269 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback";
302 270
303 271 @DomName("IDBIndex.count_3")
304 /** @domName IDBIndex.count_3 */
305 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; 272 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback";
306 273
307 Request get(key) { 274 Request get(key) {
308 if ((key is KeyRange || key == null)) { 275 if ((key is KeyRange || key == null)) {
309 return _get_1(key); 276 return _get_1(key);
310 } 277 }
311 if (?key) { 278 if (?key) {
312 return _get_2(key); 279 return _get_2(key);
313 } 280 }
314 throw new ArgumentError("Incorrect number or type of arguments"); 281 throw new ArgumentError("Incorrect number or type of arguments");
315 } 282 }
316 283
317 284 @DomName("IDBIndex.get_1")
318 /** @domName IDBIndex.get_1 */
319 Request _get_1(key) native "IDBIndex_get_1_Callback"; 285 Request _get_1(key) native "IDBIndex_get_1_Callback";
320 286
321 287 @DomName("IDBIndex.get_2")
322 /** @domName IDBIndex.get_2 */
323 Request _get_2(key) native "IDBIndex_get_2_Callback"; 288 Request _get_2(key) native "IDBIndex_get_2_Callback";
324 289
325 Request getKey(key) { 290 Request getKey(key) {
326 if ((key is KeyRange || key == null)) { 291 if ((key is KeyRange || key == null)) {
327 return _getKey_1(key); 292 return _getKey_1(key);
328 } 293 }
329 if (?key) { 294 if (?key) {
330 return _getKey_2(key); 295 return _getKey_2(key);
331 } 296 }
332 throw new ArgumentError("Incorrect number or type of arguments"); 297 throw new ArgumentError("Incorrect number or type of arguments");
333 } 298 }
334 299
335 300 @DomName("IDBIndex.getKey_1")
336 /** @domName IDBIndex.getKey_1 */
337 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; 301 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback";
338 302
339 303 @DomName("IDBIndex.getKey_2")
340 /** @domName IDBIndex.getKey_2 */
341 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; 304 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback";
342 305
343 Request openCursor([key_OR_range, /*DOMString*/ direction]) { 306 Request openCursor([key_OR_range, /*DOMString*/ direction]) {
344 if (!?key_OR_range && !?direction) { 307 if (!?key_OR_range && !?direction) {
345 return _openCursor_1(); 308 return _openCursor_1();
346 } 309 }
347 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { 310 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) {
348 return _openCursor_2(key_OR_range); 311 return _openCursor_2(key_OR_range);
349 } 312 }
350 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri ng || direction == null)) { 313 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri ng || direction == null)) {
351 return _openCursor_3(key_OR_range, direction); 314 return _openCursor_3(key_OR_range, direction);
352 } 315 }
353 if (?key_OR_range && !?direction) { 316 if (?key_OR_range && !?direction) {
354 return _openCursor_4(key_OR_range); 317 return _openCursor_4(key_OR_range);
355 } 318 }
356 if (?key_OR_range && (direction is String || direction == null)) { 319 if (?key_OR_range && (direction is String || direction == null)) {
357 return _openCursor_5(key_OR_range, direction); 320 return _openCursor_5(key_OR_range, direction);
358 } 321 }
359 throw new ArgumentError("Incorrect number or type of arguments"); 322 throw new ArgumentError("Incorrect number or type of arguments");
360 } 323 }
361 324
362 325 @DomName("IDBIndex.openCursor_1")
363 /** @domName IDBIndex.openCursor_1 */
364 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; 326 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback";
365 327
366 328 @DomName("IDBIndex.openCursor_2")
367 /** @domName IDBIndex.openCursor_2 */
368 Request _openCursor_2(key_OR_range) native "IDBIndex_openCursor_2_Callback"; 329 Request _openCursor_2(key_OR_range) native "IDBIndex_openCursor_2_Callback";
369 330
370 331 @DomName("IDBIndex.openCursor_3")
371 /** @domName IDBIndex.openCursor_3 */
372 Request _openCursor_3(key_OR_range, direction) native "IDBIndex_openCursor_3_C allback"; 332 Request _openCursor_3(key_OR_range, direction) native "IDBIndex_openCursor_3_C allback";
373 333
374 334 @DomName("IDBIndex.openCursor_4")
375 /** @domName IDBIndex.openCursor_4 */
376 Request _openCursor_4(key_OR_range) native "IDBIndex_openCursor_4_Callback"; 335 Request _openCursor_4(key_OR_range) native "IDBIndex_openCursor_4_Callback";
377 336
378 337 @DomName("IDBIndex.openCursor_5")
379 /** @domName IDBIndex.openCursor_5 */
380 Request _openCursor_5(key_OR_range, direction) native "IDBIndex_openCursor_5_C allback"; 338 Request _openCursor_5(key_OR_range, direction) native "IDBIndex_openCursor_5_C allback";
381 339
382 Request openKeyCursor([key_OR_range, /*DOMString*/ direction]) { 340 Request openKeyCursor([key_OR_range, /*DOMString*/ direction]) {
383 if (!?key_OR_range && !?direction) { 341 if (!?key_OR_range && !?direction) {
384 return _openKeyCursor_1(); 342 return _openKeyCursor_1();
385 } 343 }
386 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { 344 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) {
387 return _openKeyCursor_2(key_OR_range); 345 return _openKeyCursor_2(key_OR_range);
388 } 346 }
389 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri ng || direction == null)) { 347 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri ng || direction == null)) {
390 return _openKeyCursor_3(key_OR_range, direction); 348 return _openKeyCursor_3(key_OR_range, direction);
391 } 349 }
392 if (?key_OR_range && !?direction) { 350 if (?key_OR_range && !?direction) {
393 return _openKeyCursor_4(key_OR_range); 351 return _openKeyCursor_4(key_OR_range);
394 } 352 }
395 if (?key_OR_range && (direction is String || direction == null)) { 353 if (?key_OR_range && (direction is String || direction == null)) {
396 return _openKeyCursor_5(key_OR_range, direction); 354 return _openKeyCursor_5(key_OR_range, direction);
397 } 355 }
398 throw new ArgumentError("Incorrect number or type of arguments"); 356 throw new ArgumentError("Incorrect number or type of arguments");
399 } 357 }
400 358
401 359 @DomName("IDBIndex.openKeyCursor_1")
402 /** @domName IDBIndex.openKeyCursor_1 */
403 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; 360 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback";
404 361
405 362 @DomName("IDBIndex.openKeyCursor_2")
406 /** @domName IDBIndex.openKeyCursor_2 */
407 Request _openKeyCursor_2(key_OR_range) native "IDBIndex_openKeyCursor_2_Callba ck"; 363 Request _openKeyCursor_2(key_OR_range) native "IDBIndex_openKeyCursor_2_Callba ck";
408 364
409 365 @DomName("IDBIndex.openKeyCursor_3")
410 /** @domName IDBIndex.openKeyCursor_3 */
411 Request _openKeyCursor_3(key_OR_range, direction) native "IDBIndex_openKeyCurs or_3_Callback"; 366 Request _openKeyCursor_3(key_OR_range, direction) native "IDBIndex_openKeyCurs or_3_Callback";
412 367
413 368 @DomName("IDBIndex.openKeyCursor_4")
414 /** @domName IDBIndex.openKeyCursor_4 */
415 Request _openKeyCursor_4(key_OR_range) native "IDBIndex_openKeyCursor_4_Callba ck"; 369 Request _openKeyCursor_4(key_OR_range) native "IDBIndex_openKeyCursor_4_Callba ck";
416 370
417 371 @DomName("IDBIndex.openKeyCursor_5")
418 /** @domName IDBIndex.openKeyCursor_5 */
419 Request _openKeyCursor_5(key_OR_range, direction) native "IDBIndex_openKeyCurs or_5_Callback"; 372 Request _openKeyCursor_5(key_OR_range, direction) native "IDBIndex_openKeyCurs or_5_Callback";
420 373
421 } 374 }
422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
423 // for details. All rights reserved. Use of this source code is governed by a 376 // for details. All rights reserved. Use of this source code is governed by a
424 // BSD-style license that can be found in the LICENSE file. 377 // BSD-style license that can be found in the LICENSE file.
425 378
426 // WARNING: Do not edit - generated code. 379 // WARNING: Do not edit - generated code.
427 380
428 381
429 /// @domName IDBKey 382 @DomName("IDBKey")
430 class Key extends NativeFieldWrapperClass1 { 383 class Key extends NativeFieldWrapperClass1 {
431 Key.internal(); 384 Key.internal();
432 385
433 } 386 }
434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
435 // for details. All rights reserved. Use of this source code is governed by a 388 // for details. All rights reserved. Use of this source code is governed by a
436 // BSD-style license that can be found in the LICENSE file. 389 // BSD-style license that can be found in the LICENSE file.
437 390
438 391
439 /// @domName IDBKeyRange 392 @DomName("IDBKeyRange")
440 class KeyRange extends NativeFieldWrapperClass1 { 393 class KeyRange extends NativeFieldWrapperClass1 {
441 /** 394 @DomName("IDBKeyRange.only")
442 * @domName IDBKeyRange.only
443 */
444 factory KeyRange.only(/*Key*/ value) => 395 factory KeyRange.only(/*Key*/ value) =>
445 _KeyRangeFactoryProvider.createKeyRange_only(value); 396 _KeyRangeFactoryProvider.createKeyRange_only(value);
446 397
447 /** 398 @DomName("IDBKeyRange.lowerBound")
448 * @domName IDBKeyRange.lowerBound
449 */
450 factory KeyRange.lowerBound(/*Key*/ bound, [bool open = false]) => 399 factory KeyRange.lowerBound(/*Key*/ bound, [bool open = false]) =>
451 _KeyRangeFactoryProvider.createKeyRange_lowerBound(bound, open); 400 _KeyRangeFactoryProvider.createKeyRange_lowerBound(bound, open);
452 401
453 /** 402 @DomName("IDBKeyRange.upperBound")
454 * @domName IDBKeyRange.upperBound
455 */
456 factory KeyRange.upperBound(/*Key*/ bound, [bool open = false]) => 403 factory KeyRange.upperBound(/*Key*/ bound, [bool open = false]) =>
457 _KeyRangeFactoryProvider.createKeyRange_upperBound(bound, open); 404 _KeyRangeFactoryProvider.createKeyRange_upperBound(bound, open);
458 405
459 /** 406 @DomName("KeyRange.bound")
460 * @domName KeyRange.bound
461 */
462 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, 407 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper,
463 [bool lowerOpen = false, bool upperOpen = false]) => 408 [bool lowerOpen = false, bool upperOpen = false]) =>
464 _KeyRangeFactoryProvider.createKeyRange_bound( 409 _KeyRangeFactoryProvider.createKeyRange_bound(
465 lower, upper, lowerOpen, upperOpen); 410 lower, upper, lowerOpen, upperOpen);
466 411
467 KeyRange.internal(); 412 KeyRange.internal();
468 413
469 414 @DomName("IDBKeyRange.lower")
470 /** @domName IDBKeyRange.lower */
471 dynamic get lower native "IDBKeyRange_lower_Getter"; 415 dynamic get lower native "IDBKeyRange_lower_Getter";
472 416
473 417 @DomName("IDBKeyRange.lowerOpen")
474 /** @domName IDBKeyRange.lowerOpen */
475 bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter"; 418 bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter";
476 419
477 420 @DomName("IDBKeyRange.upper")
478 /** @domName IDBKeyRange.upper */
479 dynamic get upper native "IDBKeyRange_upper_Getter"; 421 dynamic get upper native "IDBKeyRange_upper_Getter";
480 422
481 423 @DomName("IDBKeyRange.upperOpen")
482 /** @domName IDBKeyRange.upperOpen */
483 bool get upperOpen native "IDBKeyRange_upperOpen_Getter"; 424 bool get upperOpen native "IDBKeyRange_upperOpen_Getter";
484 425
485 static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [/*boolean*/ lowerO pen, /*boolean*/ upperOpen]) { 426 static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [/*boolean*/ lowerO pen, /*boolean*/ upperOpen]) {
486 if (?upperOpen) { 427 if (?upperOpen) {
487 return _bound_1(lower, upper, lowerOpen, upperOpen); 428 return _bound_1(lower, upper, lowerOpen, upperOpen);
488 } 429 }
489 if (?lowerOpen) { 430 if (?lowerOpen) {
490 return _bound_2(lower, upper, lowerOpen); 431 return _bound_2(lower, upper, lowerOpen);
491 } 432 }
492 return _bound_3(lower, upper); 433 return _bound_3(lower, upper);
493 } 434 }
494 435
495 436 @DomName("IDBKeyRange.bound_1")
496 /** @domName IDBKeyRange.bound_1 */
497 static KeyRange _bound_1(lower, upper, lowerOpen, upperOpen) native "IDBKeyRan ge_bound_1_Callback"; 437 static KeyRange _bound_1(lower, upper, lowerOpen, upperOpen) native "IDBKeyRan ge_bound_1_Callback";
498 438
499 439 @DomName("IDBKeyRange.bound_2")
500 /** @domName IDBKeyRange.bound_2 */
501 static KeyRange _bound_2(lower, upper, lowerOpen) native "IDBKeyRange_bound_2_ Callback"; 440 static KeyRange _bound_2(lower, upper, lowerOpen) native "IDBKeyRange_bound_2_ Callback";
502 441
503 442 @DomName("IDBKeyRange.bound_3")
504 /** @domName IDBKeyRange.bound_3 */
505 static KeyRange _bound_3(lower, upper) native "IDBKeyRange_bound_3_Callback"; 443 static KeyRange _bound_3(lower, upper) native "IDBKeyRange_bound_3_Callback";
506 444
507 static KeyRange lowerBound_(/*IDBKey*/ bound, [/*boolean*/ open]) { 445 static KeyRange lowerBound_(/*IDBKey*/ bound, [/*boolean*/ open]) {
508 if (?open) { 446 if (?open) {
509 return _lowerBound_1(bound, open); 447 return _lowerBound_1(bound, open);
510 } 448 }
511 return _lowerBound_2(bound); 449 return _lowerBound_2(bound);
512 } 450 }
513 451
514 452 @DomName("IDBKeyRange.lowerBound_1")
515 /** @domName IDBKeyRange.lowerBound_1 */
516 static KeyRange _lowerBound_1(bound, open) native "IDBKeyRange_lowerBound_1_Ca llback"; 453 static KeyRange _lowerBound_1(bound, open) native "IDBKeyRange_lowerBound_1_Ca llback";
517 454
518 455 @DomName("IDBKeyRange.lowerBound_2")
519 /** @domName IDBKeyRange.lowerBound_2 */
520 static KeyRange _lowerBound_2(bound) native "IDBKeyRange_lowerBound_2_Callback "; 456 static KeyRange _lowerBound_2(bound) native "IDBKeyRange_lowerBound_2_Callback ";
521 457
522 458 @DomName("IDBKeyRange.only_")
523 /** @domName IDBKeyRange.only_ */
524 static KeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback"; 459 static KeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback";
525 460
526 static KeyRange upperBound_(/*IDBKey*/ bound, [/*boolean*/ open]) { 461 static KeyRange upperBound_(/*IDBKey*/ bound, [/*boolean*/ open]) {
527 if (?open) { 462 if (?open) {
528 return _upperBound_1(bound, open); 463 return _upperBound_1(bound, open);
529 } 464 }
530 return _upperBound_2(bound); 465 return _upperBound_2(bound);
531 } 466 }
532 467
533 468 @DomName("IDBKeyRange.upperBound_1")
534 /** @domName IDBKeyRange.upperBound_1 */
535 static KeyRange _upperBound_1(bound, open) native "IDBKeyRange_upperBound_1_Ca llback"; 469 static KeyRange _upperBound_1(bound, open) native "IDBKeyRange_upperBound_1_Ca llback";
536 470
537 471 @DomName("IDBKeyRange.upperBound_2")
538 /** @domName IDBKeyRange.upperBound_2 */
539 static KeyRange _upperBound_2(bound) native "IDBKeyRange_upperBound_2_Callback "; 472 static KeyRange _upperBound_2(bound) native "IDBKeyRange_upperBound_2_Callback ";
540 473
541 } 474 }
542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
543 // for details. All rights reserved. Use of this source code is governed by a 476 // for details. All rights reserved. Use of this source code is governed by a
544 // BSD-style license that can be found in the LICENSE file. 477 // BSD-style license that can be found in the LICENSE file.
545 478
546 // WARNING: Do not edit - generated code. 479 // WARNING: Do not edit - generated code.
547 480
548 481
549 /// @domName IDBObjectStore 482 @DomName("IDBObjectStore")
550 class ObjectStore extends NativeFieldWrapperClass1 { 483 class ObjectStore extends NativeFieldWrapperClass1 {
551 ObjectStore.internal(); 484 ObjectStore.internal();
552 485
553 486 @DomName("IDBObjectStore.autoIncrement")
554 /** @domName IDBObjectStore.autoIncrement */
555 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter"; 487 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter";
556 488
557 489 @DomName("IDBObjectStore.indexNames")
558 /** @domName IDBObjectStore.indexNames */
559 List<String> get indexNames native "IDBObjectStore_indexNames_Getter"; 490 List<String> get indexNames native "IDBObjectStore_indexNames_Getter";
560 491
561 492 @DomName("IDBObjectStore.keyPath")
562 /** @domName IDBObjectStore.keyPath */
563 dynamic get keyPath native "IDBObjectStore_keyPath_Getter"; 493 dynamic get keyPath native "IDBObjectStore_keyPath_Getter";
564 494
565 495 @DomName("IDBObjectStore.name")
566 /** @domName IDBObjectStore.name */
567 String get name native "IDBObjectStore_name_Getter"; 496 String get name native "IDBObjectStore_name_Getter";
568 497
569 498 @DomName("IDBObjectStore.transaction")
570 /** @domName IDBObjectStore.transaction */
571 Transaction get transaction native "IDBObjectStore_transaction_Getter"; 499 Transaction get transaction native "IDBObjectStore_transaction_Getter";
572 500
573 Request add(/*any*/ value, [/*IDBKey*/ key]) { 501 Request add(/*any*/ value, [/*IDBKey*/ key]) {
574 if (?key) { 502 if (?key) {
575 return _add_1(value, key); 503 return _add_1(value, key);
576 } 504 }
577 return _add_2(value); 505 return _add_2(value);
578 } 506 }
579 507
580 508 @DomName("IDBObjectStore.add_1")
581 /** @domName IDBObjectStore.add_1 */
582 Request _add_1(value, key) native "IDBObjectStore_add_1_Callback"; 509 Request _add_1(value, key) native "IDBObjectStore_add_1_Callback";
583 510
584 511 @DomName("IDBObjectStore.add_2")
585 /** @domName IDBObjectStore.add_2 */
586 Request _add_2(value) native "IDBObjectStore_add_2_Callback"; 512 Request _add_2(value) native "IDBObjectStore_add_2_Callback";
587 513
588 514 @DomName("IDBObjectStore.clear")
589 /** @domName IDBObjectStore.clear */
590 Request clear() native "IDBObjectStore_clear_Callback"; 515 Request clear() native "IDBObjectStore_clear_Callback";
591 516
592 Request count([key_OR_range]) { 517 Request count([key_OR_range]) {
593 if (!?key_OR_range) { 518 if (!?key_OR_range) {
594 return _count_1(); 519 return _count_1();
595 } 520 }
596 if ((key_OR_range is KeyRange || key_OR_range == null)) { 521 if ((key_OR_range is KeyRange || key_OR_range == null)) {
597 return _count_2(key_OR_range); 522 return _count_2(key_OR_range);
598 } 523 }
599 if (?key_OR_range) { 524 if (?key_OR_range) {
600 return _count_3(key_OR_range); 525 return _count_3(key_OR_range);
601 } 526 }
602 throw new ArgumentError("Incorrect number or type of arguments"); 527 throw new ArgumentError("Incorrect number or type of arguments");
603 } 528 }
604 529
605 530 @DomName("IDBObjectStore.count_1")
606 /** @domName IDBObjectStore.count_1 */
607 Request _count_1() native "IDBObjectStore_count_1_Callback"; 531 Request _count_1() native "IDBObjectStore_count_1_Callback";
608 532
609 533 @DomName("IDBObjectStore.count_2")
610 /** @domName IDBObjectStore.count_2 */
611 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; 534 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback";
612 535
613 536 @DomName("IDBObjectStore.count_3")
614 /** @domName IDBObjectStore.count_3 */
615 Request _count_3(key_OR_range) native "IDBObjectStore_count_3_Callback"; 537 Request _count_3(key_OR_range) native "IDBObjectStore_count_3_Callback";
616 538
617 Index createIndex(/*DOMString*/ name, keyPath, [/*Dictionary*/ options]) { 539 Index createIndex(/*DOMString*/ name, keyPath, [/*Dictionary*/ options]) {
618 if ((name is String || name == null) && (keyPath is List<String> || keyPath == null) && (options is Map || options == null)) { 540 if ((name is String || name == null) && (keyPath is List<String> || keyPath == null) && (options is Map || options == null)) {
619 return _createIndex_1(name, keyPath, options); 541 return _createIndex_1(name, keyPath, options);
620 } 542 }
621 if ((name is String || name == null) && (keyPath is String || keyPath == nul l) && (options is Map || options == null)) { 543 if ((name is String || name == null) && (keyPath is String || keyPath == nul l) && (options is Map || options == null)) {
622 return _createIndex_2(name, keyPath, options); 544 return _createIndex_2(name, keyPath, options);
623 } 545 }
624 throw new ArgumentError("Incorrect number or type of arguments"); 546 throw new ArgumentError("Incorrect number or type of arguments");
625 } 547 }
626 548
627 549 @DomName("IDBObjectStore.createIndex_1")
628 /** @domName IDBObjectStore.createIndex_1 */
629 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde x_1_Callback"; 550 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde x_1_Callback";
630 551
631 552 @DomName("IDBObjectStore.createIndex_2")
632 /** @domName IDBObjectStore.createIndex_2 */
633 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde x_2_Callback"; 553 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde x_2_Callback";
634 554
635 Request delete(key_OR_keyRange) { 555 Request delete(key_OR_keyRange) {
636 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { 556 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) {
637 return _delete_1(key_OR_keyRange); 557 return _delete_1(key_OR_keyRange);
638 } 558 }
639 if (?key_OR_keyRange) { 559 if (?key_OR_keyRange) {
640 return _delete_2(key_OR_keyRange); 560 return _delete_2(key_OR_keyRange);
641 } 561 }
642 throw new ArgumentError("Incorrect number or type of arguments"); 562 throw new ArgumentError("Incorrect number or type of arguments");
643 } 563 }
644 564
645 565 @DomName("IDBObjectStore.delete_1")
646 /** @domName IDBObjectStore.delete_1 */
647 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; 566 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback";
648 567
649 568 @DomName("IDBObjectStore.delete_2")
650 /** @domName IDBObjectStore.delete_2 */
651 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; 569 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback";
652 570
653 571 @DomName("IDBObjectStore.deleteIndex")
654 /** @domName IDBObjectStore.deleteIndex */
655 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; 572 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback";
656 573
657 Request getObject(key) { 574 Request getObject(key) {
658 if ((key is KeyRange || key == null)) { 575 if ((key is KeyRange || key == null)) {
659 return _get_1(key); 576 return _get_1(key);
660 } 577 }
661 if (?key) { 578 if (?key) {
662 return _get_2(key); 579 return _get_2(key);
663 } 580 }
664 throw new ArgumentError("Incorrect number or type of arguments"); 581 throw new ArgumentError("Incorrect number or type of arguments");
665 } 582 }
666 583
667 584 @DomName("IDBObjectStore.get_1")
668 /** @domName IDBObjectStore.get_1 */
669 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; 585 Request _get_1(key) native "IDBObjectStore_get_1_Callback";
670 586
671 587 @DomName("IDBObjectStore.get_2")
672 /** @domName IDBObjectStore.get_2 */
673 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; 588 Request _get_2(key) native "IDBObjectStore_get_2_Callback";
674 589
675 590 @DomName("IDBObjectStore.index")
676 /** @domName IDBObjectStore.index */
677 Index index(String name) native "IDBObjectStore_index_Callback"; 591 Index index(String name) native "IDBObjectStore_index_Callback";
678 592
679 Request openCursor([key_OR_range, /*DOMString*/ direction]) { 593 Request openCursor([key_OR_range, /*DOMString*/ direction]) {
680 if (!?key_OR_range && !?direction) { 594 if (!?key_OR_range && !?direction) {
681 return _openCursor_1(); 595 return _openCursor_1();
682 } 596 }
683 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { 597 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) {
684 return _openCursor_2(key_OR_range); 598 return _openCursor_2(key_OR_range);
685 } 599 }
686 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri ng || direction == null)) { 600 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri ng || direction == null)) {
687 return _openCursor_3(key_OR_range, direction); 601 return _openCursor_3(key_OR_range, direction);
688 } 602 }
689 if (?key_OR_range && !?direction) { 603 if (?key_OR_range && !?direction) {
690 return _openCursor_4(key_OR_range); 604 return _openCursor_4(key_OR_range);
691 } 605 }
692 if (?key_OR_range && (direction is String || direction == null)) { 606 if (?key_OR_range && (direction is String || direction == null)) {
693 return _openCursor_5(key_OR_range, direction); 607 return _openCursor_5(key_OR_range, direction);
694 } 608 }
695 throw new ArgumentError("Incorrect number or type of arguments"); 609 throw new ArgumentError("Incorrect number or type of arguments");
696 } 610 }
697 611
698 612 @DomName("IDBObjectStore.openCursor_1")
699 /** @domName IDBObjectStore.openCursor_1 */
700 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; 613 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback";
701 614
702 615 @DomName("IDBObjectStore.openCursor_2")
703 /** @domName IDBObjectStore.openCursor_2 */
704 Request _openCursor_2(key_OR_range) native "IDBObjectStore_openCursor_2_Callba ck"; 616 Request _openCursor_2(key_OR_range) native "IDBObjectStore_openCursor_2_Callba ck";
705 617
706 618 @DomName("IDBObjectStore.openCursor_3")
707 /** @domName IDBObjectStore.openCursor_3 */
708 Request _openCursor_3(key_OR_range, direction) native "IDBObjectStore_openCurs or_3_Callback"; 619 Request _openCursor_3(key_OR_range, direction) native "IDBObjectStore_openCurs or_3_Callback";
709 620
710 621 @DomName("IDBObjectStore.openCursor_4")
711 /** @domName IDBObjectStore.openCursor_4 */
712 Request _openCursor_4(key_OR_range) native "IDBObjectStore_openCursor_4_Callba ck"; 622 Request _openCursor_4(key_OR_range) native "IDBObjectStore_openCursor_4_Callba ck";
713 623
714 624 @DomName("IDBObjectStore.openCursor_5")
715 /** @domName IDBObjectStore.openCursor_5 */
716 Request _openCursor_5(key_OR_range, direction) native "IDBObjectStore_openCurs or_5_Callback"; 625 Request _openCursor_5(key_OR_range, direction) native "IDBObjectStore_openCurs or_5_Callback";
717 626
718 Request put(/*any*/ value, [/*IDBKey*/ key]) { 627 Request put(/*any*/ value, [/*IDBKey*/ key]) {
719 if (?key) { 628 if (?key) {
720 return _put_1(value, key); 629 return _put_1(value, key);
721 } 630 }
722 return _put_2(value); 631 return _put_2(value);
723 } 632 }
724 633
725 634 @DomName("IDBObjectStore.put_1")
726 /** @domName IDBObjectStore.put_1 */
727 Request _put_1(value, key) native "IDBObjectStore_put_1_Callback"; 635 Request _put_1(value, key) native "IDBObjectStore_put_1_Callback";
728 636
729 637 @DomName("IDBObjectStore.put_2")
730 /** @domName IDBObjectStore.put_2 */
731 Request _put_2(value) native "IDBObjectStore_put_2_Callback"; 638 Request _put_2(value) native "IDBObjectStore_put_2_Callback";
732 639
733 } 640 }
734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
735 // for details. All rights reserved. Use of this source code is governed by a 642 // for details. All rights reserved. Use of this source code is governed by a
736 // BSD-style license that can be found in the LICENSE file. 643 // BSD-style license that can be found in the LICENSE file.
737 644
738 // WARNING: Do not edit - generated code. 645 // WARNING: Do not edit - generated code.
739 646
740 647
741 /// @domName IDBOpenDBRequest 648 @DomName("IDBOpenDBRequest")
742 class OpenDBRequest extends Request implements EventTarget { 649 class OpenDBRequest extends Request implements EventTarget {
743 OpenDBRequest.internal() : super.internal(); 650 OpenDBRequest.internal() : super.internal();
744 651
745 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 652 /// @docsEditable true
653 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent")
746 OpenDBRequestEvents get on => 654 OpenDBRequestEvents get on =>
747 new OpenDBRequestEvents(this); 655 new OpenDBRequestEvents(this);
748 656
749 } 657 }
750 658
751 /// @docsEditable true 659 /// @docsEditable true
752 class OpenDBRequestEvents extends RequestEvents { 660 class OpenDBRequestEvents extends RequestEvents {
753 /// @docsEditable true 661 /// @docsEditable true
754 OpenDBRequestEvents(EventTarget _ptr) : super(_ptr); 662 OpenDBRequestEvents(EventTarget _ptr) : super(_ptr);
755 663
756 /// @docsEditable true 664 /// @docsEditable true
757 EventListenerList get blocked => this['blocked']; 665 EventListenerList get blocked => this['blocked'];
758 666
759 /// @docsEditable true 667 /// @docsEditable true
760 EventListenerList get upgradeNeeded => this['upgradeneeded']; 668 EventListenerList get upgradeNeeded => this['upgradeneeded'];
761 } 669 }
762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
763 // for details. All rights reserved. Use of this source code is governed by a 671 // for details. All rights reserved. Use of this source code is governed by a
764 // BSD-style license that can be found in the LICENSE file. 672 // BSD-style license that can be found in the LICENSE file.
765 673
766 // WARNING: Do not edit - generated code. 674 // WARNING: Do not edit - generated code.
767 675
768 676
769 /// @domName IDBRequest 677 @DomName("IDBRequest")
770 class Request extends EventTarget { 678 class Request extends EventTarget {
771 Request.internal() : super.internal(); 679 Request.internal() : super.internal();
772 680
773 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 681 /// @docsEditable true
682 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent")
774 RequestEvents get on => 683 RequestEvents get on =>
775 new RequestEvents(this); 684 new RequestEvents(this);
776 685
777 686 @DomName("IDBRequest.error")
778 /** @domName IDBRequest.error */
779 DomError get error native "IDBRequest_error_Getter"; 687 DomError get error native "IDBRequest_error_Getter";
780 688
781 689 @DomName("IDBRequest.readyState")
782 /** @domName IDBRequest.readyState */
783 String get readyState native "IDBRequest_readyState_Getter"; 690 String get readyState native "IDBRequest_readyState_Getter";
784 691
785 692 @DomName("IDBRequest.result")
786 /** @domName IDBRequest.result */
787 dynamic get result native "IDBRequest_result_Getter"; 693 dynamic get result native "IDBRequest_result_Getter";
788 694
789 695 @DomName("IDBRequest.source")
790 /** @domName IDBRequest.source */
791 dynamic get source native "IDBRequest_source_Getter"; 696 dynamic get source native "IDBRequest_source_Getter";
792 697
793 698 @DomName("IDBRequest.transaction")
794 /** @domName IDBRequest.transaction */
795 Transaction get transaction native "IDBRequest_transaction_Getter"; 699 Transaction get transaction native "IDBRequest_transaction_Getter";
796 700
797 701 @DomName("IDBRequest.webkitErrorMessage")
798 /** @domName IDBRequest.webkitErrorMessage */
799 String get webkitErrorMessage native "IDBRequest_webkitErrorMessage_Getter"; 702 String get webkitErrorMessage native "IDBRequest_webkitErrorMessage_Getter";
800 703
801 704 @DomName("IDBRequest.addEventListener")
802 /** @domName IDBRequest.addEventListener */
803 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "IDBRequest_addEventListener_Callback"; 705 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "IDBRequest_addEventListener_Callback";
804 706
805 707 @DomName("IDBRequest.dispatchEvent")
806 /** @domName IDBRequest.dispatchEvent */
807 bool $dom_dispatchEvent(Event evt) native "IDBRequest_dispatchEvent_Callback"; 708 bool $dom_dispatchEvent(Event evt) native "IDBRequest_dispatchEvent_Callback";
808 709
809 710 @DomName("IDBRequest.removeEventListener")
810 /** @domName IDBRequest.removeEventListener */
811 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "IDBRequest_removeEventListener_Callback"; 711 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "IDBRequest_removeEventListener_Callback";
812 712
813 } 713 }
814 714
815 /// @docsEditable true 715 /// @docsEditable true
816 class RequestEvents extends Events { 716 class RequestEvents extends Events {
817 /// @docsEditable true 717 /// @docsEditable true
818 RequestEvents(EventTarget _ptr) : super(_ptr); 718 RequestEvents(EventTarget _ptr) : super(_ptr);
819 719
820 /// @docsEditable true 720 /// @docsEditable true
821 EventListenerList get error => this['error']; 721 EventListenerList get error => this['error'];
822 722
823 /// @docsEditable true 723 /// @docsEditable true
824 EventListenerList get success => this['success']; 724 EventListenerList get success => this['success'];
825 } 725 }
826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
827 // for details. All rights reserved. Use of this source code is governed by a 727 // for details. All rights reserved. Use of this source code is governed by a
828 // BSD-style license that can be found in the LICENSE file. 728 // BSD-style license that can be found in the LICENSE file.
829 729
830 // WARNING: Do not edit - generated code. 730 // WARNING: Do not edit - generated code.
831 731
832 732
833 /// @domName IDBTransaction 733 @DomName("IDBTransaction")
834 class Transaction extends EventTarget { 734 class Transaction extends EventTarget {
835 Transaction.internal() : super.internal(); 735 Transaction.internal() : super.internal();
836 736
837 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 737 /// @docsEditable true
738 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent")
838 TransactionEvents get on => 739 TransactionEvents get on =>
839 new TransactionEvents(this); 740 new TransactionEvents(this);
840 741
841 742 @DomName("IDBTransaction.db")
842 /** @domName IDBTransaction.db */
843 Database get db native "IDBTransaction_db_Getter"; 743 Database get db native "IDBTransaction_db_Getter";
844 744
845 745 @DomName("IDBTransaction.error")
846 /** @domName IDBTransaction.error */
847 DomError get error native "IDBTransaction_error_Getter"; 746 DomError get error native "IDBTransaction_error_Getter";
848 747
849 748 @DomName("IDBTransaction.mode")
850 /** @domName IDBTransaction.mode */
851 String get mode native "IDBTransaction_mode_Getter"; 749 String get mode native "IDBTransaction_mode_Getter";
852 750
853 751 @DomName("IDBTransaction.webkitErrorMessage")
854 /** @domName IDBTransaction.webkitErrorMessage */
855 String get webkitErrorMessage native "IDBTransaction_webkitErrorMessage_Getter "; 752 String get webkitErrorMessage native "IDBTransaction_webkitErrorMessage_Getter ";
856 753
857 754 @DomName("IDBTransaction.abort")
858 /** @domName IDBTransaction.abort */
859 void abort() native "IDBTransaction_abort_Callback"; 755 void abort() native "IDBTransaction_abort_Callback";
860 756
861 757 @DomName("IDBTransaction.addEventListener")
862 /** @domName IDBTransaction.addEventListener */
863 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "IDBTransaction_addEventListener_Callback"; 758 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "IDBTransaction_addEventListener_Callback";
864 759
865 760 @DomName("IDBTransaction.dispatchEvent")
866 /** @domName IDBTransaction.dispatchEvent */
867 bool $dom_dispatchEvent(Event evt) native "IDBTransaction_dispatchEvent_Callba ck"; 761 bool $dom_dispatchEvent(Event evt) native "IDBTransaction_dispatchEvent_Callba ck";
868 762
869 763 @DomName("IDBTransaction.objectStore")
870 /** @domName IDBTransaction.objectStore */
871 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba ck"; 764 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba ck";
872 765
873 766 @DomName("IDBTransaction.removeEventListener")
874 /** @domName IDBTransaction.removeEventListener */
875 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "IDBTransaction_removeEventListener_Callback"; 767 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "IDBTransaction_removeEventListener_Callback";
876 768
877 } 769 }
878 770
879 /// @docsEditable true 771 /// @docsEditable true
880 class TransactionEvents extends Events { 772 class TransactionEvents extends Events {
881 /// @docsEditable true 773 /// @docsEditable true
882 TransactionEvents(EventTarget _ptr) : super(_ptr); 774 TransactionEvents(EventTarget _ptr) : super(_ptr);
883 775
884 /// @docsEditable true 776 /// @docsEditable true
885 EventListenerList get abort => this['abort']; 777 EventListenerList get abort => this['abort'];
886 778
887 /// @docsEditable true 779 /// @docsEditable true
888 EventListenerList get complete => this['complete']; 780 EventListenerList get complete => this['complete'];
889 781
890 /// @docsEditable true 782 /// @docsEditable true
891 EventListenerList get error => this['error']; 783 EventListenerList get error => this['error'];
892 } 784 }
893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
894 // for details. All rights reserved. Use of this source code is governed by a 786 // for details. All rights reserved. Use of this source code is governed by a
895 // BSD-style license that can be found in the LICENSE file. 787 // BSD-style license that can be found in the LICENSE file.
896 788
897 // WARNING: Do not edit - generated code. 789 // WARNING: Do not edit - generated code.
898 790
899 791
900 /// @domName IDBVersionChangeEvent 792 @DomName("IDBVersionChangeEvent")
901 class UpgradeNeededEvent extends Event { 793 class UpgradeNeededEvent extends Event {
902 UpgradeNeededEvent.internal() : super.internal(); 794 UpgradeNeededEvent.internal() : super.internal();
903 795
904 796 @DomName("IDBUpgradeNeededEvent.newVersion")
905 /** @domName IDBUpgradeNeededEvent.newVersion */
906 int get newVersion native "IDBUpgradeNeededEvent_newVersion_Getter"; 797 int get newVersion native "IDBUpgradeNeededEvent_newVersion_Getter";
907 798
908 799 @DomName("IDBUpgradeNeededEvent.oldVersion")
909 /** @domName IDBUpgradeNeededEvent.oldVersion */
910 int get oldVersion native "IDBUpgradeNeededEvent_oldVersion_Getter"; 800 int get oldVersion native "IDBUpgradeNeededEvent_oldVersion_Getter";
911 801
912 } 802 }
913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
914 // for details. All rights reserved. Use of this source code is governed by a 804 // for details. All rights reserved. Use of this source code is governed by a
915 // BSD-style license that can be found in the LICENSE file. 805 // BSD-style license that can be found in the LICENSE file.
916 806
917 // WARNING: Do not edit - generated code. 807 // WARNING: Do not edit - generated code.
918 808
919 809
920 /// @domName IDBVersionChangeEvent 810 @DomName("IDBVersionChangeEvent")
921 class VersionChangeEvent extends Event { 811 class VersionChangeEvent extends Event {
922 VersionChangeEvent.internal() : super.internal(); 812 VersionChangeEvent.internal() : super.internal();
923 813
924 814 @DomName("IDBVersionChangeEvent.version")
925 /** @domName IDBVersionChangeEvent.version */
926 String get version native "IDBVersionChangeEvent_version_Getter"; 815 String get version native "IDBVersionChangeEvent_version_Getter";
927 816
928 } 817 }
929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
930 // for details. All rights reserved. Use of this source code is governed by a 819 // for details. All rights reserved. Use of this source code is governed by a
931 // BSD-style license that can be found in the LICENSE file. 820 // BSD-style license that can be found in the LICENSE file.
932 821
933 // WARNING: Do not edit - generated code. 822 // WARNING: Do not edit - generated code.
934 823
935 824
936 /// @domName IDBVersionChangeRequest 825 @DomName("IDBVersionChangeRequest")
937 class VersionChangeRequest extends Request implements EventTarget { 826 class VersionChangeRequest extends Request implements EventTarget {
938 VersionChangeRequest.internal() : super.internal(); 827 VersionChangeRequest.internal() : super.internal();
939 828
940 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 829 /// @docsEditable true
830 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent")
941 VersionChangeRequestEvents get on => 831 VersionChangeRequestEvents get on =>
942 new VersionChangeRequestEvents(this); 832 new VersionChangeRequestEvents(this);
943 833
944 } 834 }
945 835
946 /// @docsEditable true 836 /// @docsEditable true
947 class VersionChangeRequestEvents extends RequestEvents { 837 class VersionChangeRequestEvents extends RequestEvents {
948 /// @docsEditable true 838 /// @docsEditable true
949 VersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); 839 VersionChangeRequestEvents(EventTarget _ptr) : super(_ptr);
950 840
951 /// @docsEditable true 841 /// @docsEditable true
952 EventListenerList get blocked => this['blocked']; 842 EventListenerList get blocked => this['blocked'];
953 } 843 }
954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
955 // for details. All rights reserved. Use of this source code is governed by a 845 // for details. All rights reserved. Use of this source code is governed by a
956 // BSD-style license that can be found in the LICENSE file. 846 // BSD-style license that can be found in the LICENSE file.
957 847
958 // WARNING: Do not edit - generated code. 848 // WARNING: Do not edit - generated code.
959 849
960 850
961 /// @domName IDBAny 851 @DomName("IDBAny")
962 class _Any extends NativeFieldWrapperClass1 { 852 class _Any extends NativeFieldWrapperClass1 {
963 _Any.internal(); 853 _Any.internal();
964 854
965 } 855 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698