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

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

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

Powered by Google App Engine
This is Rietveld 408576698