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