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