OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
4 import 'dart:json'; | 4 import 'dart:json'; |
5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
9 | 9 |
10 // DO NOT EDIT | 10 // DO NOT EDIT |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // TODO(vsm): Plumb this properly. | 44 // TODO(vsm): Plumb this properly. |
45 spawnDomFunction(f) => spawnFunction(f); | 45 spawnDomFunction(f) => spawnFunction(f); |
46 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 46 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
47 // for details. All rights reserved. Use of this source code is governed by a | 47 // for details. All rights reserved. Use of this source code is governed by a |
48 // BSD-style license that can be found in the LICENSE file. | 48 // BSD-style license that can be found in the LICENSE file. |
49 | 49 |
50 | 50 |
51 /// @domName AbstractWorker; @docsEditable true | 51 /// @domName AbstractWorker; @docsEditable true |
52 class AbstractWorker extends EventTarget native "*AbstractWorker" { | 52 class AbstractWorker extends EventTarget native "*AbstractWorker" { |
53 | 53 |
54 /** | 54 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
55 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
56 */ | |
57 AbstractWorkerEvents get on => | 55 AbstractWorkerEvents get on => |
58 new AbstractWorkerEvents(this); | 56 new AbstractWorkerEvents(this); |
59 | 57 |
60 /** @domName AbstractWorker.addEventListener; @docsEditable true */ | 58 /// @domName AbstractWorker.addEventListener; @docsEditable true |
61 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 59 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
62 | 60 |
63 /** @domName AbstractWorker.dispatchEvent; @docsEditable true */ | 61 /// @domName AbstractWorker.dispatchEvent; @docsEditable true |
64 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 62 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
65 | 63 |
66 /** @domName AbstractWorker.removeEventListener; @docsEditable true */ | 64 /// @domName AbstractWorker.removeEventListener; @docsEditable true |
67 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 65 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
68 } | 66 } |
69 | 67 |
70 class AbstractWorkerEvents extends Events { | 68 class AbstractWorkerEvents extends Events { |
71 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); | 69 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); |
72 | 70 |
73 EventListenerList get error => this['error']; | 71 EventListenerList get error => this['error']; |
74 } | 72 } |
75 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
76 // for details. All rights reserved. Use of this source code is governed by a | 74 // for details. All rights reserved. Use of this source code is governed by a |
77 // BSD-style license that can be found in the LICENSE file. | 75 // BSD-style license that can be found in the LICENSE file. |
78 | 76 |
79 | 77 |
80 /// @domName AnalyserNode; @docsEditable true | 78 /// @domName AnalyserNode; @docsEditable true |
81 class AnalyserNode extends AudioNode native "*AnalyserNode" { | 79 class AnalyserNode extends AudioNode native "*AnalyserNode" { |
82 | 80 |
83 /** @domName AnalyserNode.fftSize; @docsEditable true */ | 81 /// @domName AnalyserNode.fftSize; @docsEditable true |
84 int fftSize; | 82 int fftSize; |
85 | 83 |
86 /** @domName AnalyserNode.frequencyBinCount; @docsEditable true */ | 84 /// @domName AnalyserNode.frequencyBinCount; @docsEditable true |
87 final int frequencyBinCount; | 85 final int frequencyBinCount; |
88 | 86 |
89 /** @domName AnalyserNode.maxDecibels; @docsEditable true */ | 87 /// @domName AnalyserNode.maxDecibels; @docsEditable true |
90 num maxDecibels; | 88 num maxDecibels; |
91 | 89 |
92 /** @domName AnalyserNode.minDecibels; @docsEditable true */ | 90 /// @domName AnalyserNode.minDecibels; @docsEditable true |
93 num minDecibels; | 91 num minDecibels; |
94 | 92 |
95 /** @domName AnalyserNode.smoothingTimeConstant; @docsEditable true */ | 93 /// @domName AnalyserNode.smoothingTimeConstant; @docsEditable true |
96 num smoothingTimeConstant; | 94 num smoothingTimeConstant; |
97 | 95 |
98 /** @domName AnalyserNode.getByteFrequencyData; @docsEditable true */ | 96 /// @domName AnalyserNode.getByteFrequencyData; @docsEditable true |
99 void getByteFrequencyData(Uint8Array array) native; | 97 void getByteFrequencyData(Uint8Array array) native; |
100 | 98 |
101 /** @domName AnalyserNode.getByteTimeDomainData; @docsEditable true */ | 99 /// @domName AnalyserNode.getByteTimeDomainData; @docsEditable true |
102 void getByteTimeDomainData(Uint8Array array) native; | 100 void getByteTimeDomainData(Uint8Array array) native; |
103 | 101 |
104 /** @domName AnalyserNode.getFloatFrequencyData; @docsEditable true */ | 102 /// @domName AnalyserNode.getFloatFrequencyData; @docsEditable true |
105 void getFloatFrequencyData(Float32Array array) native; | 103 void getFloatFrequencyData(Float32Array array) native; |
106 } | 104 } |
107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
108 // for details. All rights reserved. Use of this source code is governed by a | 106 // for details. All rights reserved. Use of this source code is governed by a |
109 // BSD-style license that can be found in the LICENSE file. | 107 // BSD-style license that can be found in the LICENSE file. |
110 | 108 |
111 | 109 |
112 /// @domName HTMLAnchorElement; @docsEditable true | 110 /// @domName HTMLAnchorElement; @docsEditable true |
113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen
t" { | 111 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen
t" { |
114 | 112 |
115 factory AnchorElement({String href}) { | 113 factory AnchorElement({String href}) { |
116 var e = document.$dom_createElement("a"); | 114 var e = document.$dom_createElement("a"); |
117 if (href != null) e.href = href; | 115 if (href != null) e.href = href; |
118 return e; | 116 return e; |
119 } | 117 } |
120 | 118 |
121 /** @domName HTMLAnchorElement.charset; @docsEditable true */ | 119 /// @domName HTMLAnchorElement.charset; @docsEditable true |
122 String charset; | 120 String charset; |
123 | 121 |
124 /** @domName HTMLAnchorElement.coords; @docsEditable true */ | 122 /// @domName HTMLAnchorElement.coords; @docsEditable true |
125 String coords; | 123 String coords; |
126 | 124 |
127 /** @domName HTMLAnchorElement.download; @docsEditable true */ | 125 /// @domName HTMLAnchorElement.download; @docsEditable true |
128 String download; | 126 String download; |
129 | 127 |
130 /** @domName HTMLAnchorElement.hash; @docsEditable true */ | 128 /// @domName HTMLAnchorElement.hash; @docsEditable true |
131 String hash; | 129 String hash; |
132 | 130 |
133 /** @domName HTMLAnchorElement.host; @docsEditable true */ | 131 /// @domName HTMLAnchorElement.host; @docsEditable true |
134 String host; | 132 String host; |
135 | 133 |
136 /** @domName HTMLAnchorElement.hostname; @docsEditable true */ | 134 /// @domName HTMLAnchorElement.hostname; @docsEditable true |
137 String hostname; | 135 String hostname; |
138 | 136 |
139 /** @domName HTMLAnchorElement.href; @docsEditable true */ | 137 /// @domName HTMLAnchorElement.href; @docsEditable true |
140 String href; | 138 String href; |
141 | 139 |
142 /** @domName HTMLAnchorElement.hreflang; @docsEditable true */ | 140 /// @domName HTMLAnchorElement.hreflang; @docsEditable true |
143 String hreflang; | 141 String hreflang; |
144 | 142 |
145 /** @domName HTMLAnchorElement.name; @docsEditable true */ | 143 /// @domName HTMLAnchorElement.name; @docsEditable true |
146 String name; | 144 String name; |
147 | 145 |
148 /** @domName HTMLAnchorElement.origin; @docsEditable true */ | 146 /// @domName HTMLAnchorElement.origin; @docsEditable true |
149 final String origin; | 147 final String origin; |
150 | 148 |
151 /** @domName HTMLAnchorElement.pathname; @docsEditable true */ | 149 /// @domName HTMLAnchorElement.pathname; @docsEditable true |
152 String pathname; | 150 String pathname; |
153 | 151 |
154 /** @domName HTMLAnchorElement.ping; @docsEditable true */ | 152 /// @domName HTMLAnchorElement.ping; @docsEditable true |
155 String ping; | 153 String ping; |
156 | 154 |
157 /** @domName HTMLAnchorElement.port; @docsEditable true */ | 155 /// @domName HTMLAnchorElement.port; @docsEditable true |
158 String port; | 156 String port; |
159 | 157 |
160 /** @domName HTMLAnchorElement.protocol; @docsEditable true */ | 158 /// @domName HTMLAnchorElement.protocol; @docsEditable true |
161 String protocol; | 159 String protocol; |
162 | 160 |
163 /** @domName HTMLAnchorElement.rel; @docsEditable true */ | 161 /// @domName HTMLAnchorElement.rel; @docsEditable true |
164 String rel; | 162 String rel; |
165 | 163 |
166 /** @domName HTMLAnchorElement.rev; @docsEditable true */ | 164 /// @domName HTMLAnchorElement.rev; @docsEditable true |
167 String rev; | 165 String rev; |
168 | 166 |
169 /** @domName HTMLAnchorElement.search; @docsEditable true */ | 167 /// @domName HTMLAnchorElement.search; @docsEditable true |
170 String search; | 168 String search; |
171 | 169 |
172 /** @domName HTMLAnchorElement.shape; @docsEditable true */ | 170 /// @domName HTMLAnchorElement.shape; @docsEditable true |
173 String shape; | 171 String shape; |
174 | 172 |
175 /** @domName HTMLAnchorElement.target; @docsEditable true */ | 173 /// @domName HTMLAnchorElement.target; @docsEditable true |
176 String target; | 174 String target; |
177 | 175 |
178 /** @domName HTMLAnchorElement.type; @docsEditable true */ | 176 /// @domName HTMLAnchorElement.type; @docsEditable true |
179 String type; | 177 String type; |
180 | 178 |
181 /** @domName HTMLAnchorElement.toString; @docsEditable true */ | 179 /// @domName HTMLAnchorElement.toString; @docsEditable true |
182 String toString() native; | 180 String toString() native; |
183 } | 181 } |
184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
185 // for details. All rights reserved. Use of this source code is governed by a | 183 // for details. All rights reserved. Use of this source code is governed by a |
186 // BSD-style license that can be found in the LICENSE file. | 184 // BSD-style license that can be found in the LICENSE file. |
187 | 185 |
188 | 186 |
189 /// @domName WebKitAnimation; @docsEditable true | 187 /// @domName WebKitAnimation; @docsEditable true |
190 class Animation native "*WebKitAnimation" { | 188 class Animation native "*WebKitAnimation" { |
191 | 189 |
192 static const int DIRECTION_ALTERNATE = 1; | 190 static const int DIRECTION_ALTERNATE = 1; |
193 | 191 |
194 static const int DIRECTION_NORMAL = 0; | 192 static const int DIRECTION_NORMAL = 0; |
195 | 193 |
196 static const int FILL_BACKWARDS = 1; | 194 static const int FILL_BACKWARDS = 1; |
197 | 195 |
198 static const int FILL_BOTH = 3; | 196 static const int FILL_BOTH = 3; |
199 | 197 |
200 static const int FILL_FORWARDS = 2; | 198 static const int FILL_FORWARDS = 2; |
201 | 199 |
202 static const int FILL_NONE = 0; | 200 static const int FILL_NONE = 0; |
203 | 201 |
204 /** @domName WebKitAnimation.delay; @docsEditable true */ | 202 /// @domName WebKitAnimation.delay; @docsEditable true |
205 final num delay; | 203 final num delay; |
206 | 204 |
207 /** @domName WebKitAnimation.direction; @docsEditable true */ | 205 /// @domName WebKitAnimation.direction; @docsEditable true |
208 final int direction; | 206 final int direction; |
209 | 207 |
210 /** @domName WebKitAnimation.duration; @docsEditable true */ | 208 /// @domName WebKitAnimation.duration; @docsEditable true |
211 final num duration; | 209 final num duration; |
212 | 210 |
213 /** @domName WebKitAnimation.elapsedTime; @docsEditable true */ | 211 /// @domName WebKitAnimation.elapsedTime; @docsEditable true |
214 num elapsedTime; | 212 num elapsedTime; |
215 | 213 |
216 /** @domName WebKitAnimation.ended; @docsEditable true */ | 214 /// @domName WebKitAnimation.ended; @docsEditable true |
217 final bool ended; | 215 final bool ended; |
218 | 216 |
219 /** @domName WebKitAnimation.fillMode; @docsEditable true */ | 217 /// @domName WebKitAnimation.fillMode; @docsEditable true |
220 final int fillMode; | 218 final int fillMode; |
221 | 219 |
222 /** @domName WebKitAnimation.iterationCount; @docsEditable true */ | 220 /// @domName WebKitAnimation.iterationCount; @docsEditable true |
223 final int iterationCount; | 221 final int iterationCount; |
224 | 222 |
225 /** @domName WebKitAnimation.name; @docsEditable true */ | 223 /// @domName WebKitAnimation.name; @docsEditable true |
226 final String name; | 224 final String name; |
227 | 225 |
228 /** @domName WebKitAnimation.paused; @docsEditable true */ | 226 /// @domName WebKitAnimation.paused; @docsEditable true |
229 final bool paused; | 227 final bool paused; |
230 | 228 |
231 /** @domName WebKitAnimation.pause; @docsEditable true */ | 229 /// @domName WebKitAnimation.pause; @docsEditable true |
232 void pause() native; | 230 void pause() native; |
233 | 231 |
234 /** @domName WebKitAnimation.play; @docsEditable true */ | 232 /// @domName WebKitAnimation.play; @docsEditable true |
235 void play() native; | 233 void play() native; |
236 } | 234 } |
237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
238 // for details. All rights reserved. Use of this source code is governed by a | 236 // for details. All rights reserved. Use of this source code is governed by a |
239 // BSD-style license that can be found in the LICENSE file. | 237 // BSD-style license that can be found in the LICENSE file. |
240 | 238 |
241 | 239 |
242 /// @domName WebKitAnimationEvent; @docsEditable true | 240 /// @domName WebKitAnimationEvent; @docsEditable true |
243 class AnimationEvent extends Event native "*WebKitAnimationEvent" { | 241 class AnimationEvent extends Event native "*WebKitAnimationEvent" { |
244 | 242 |
245 /** @domName WebKitAnimationEvent.animationName; @docsEditable true */ | 243 /// @domName WebKitAnimationEvent.animationName; @docsEditable true |
246 final String animationName; | 244 final String animationName; |
247 | 245 |
248 /** @domName WebKitAnimationEvent.elapsedTime; @docsEditable true */ | 246 /// @domName WebKitAnimationEvent.elapsedTime; @docsEditable true |
249 final num elapsedTime; | 247 final num elapsedTime; |
250 } | 248 } |
251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
252 // for details. All rights reserved. Use of this source code is governed by a | 250 // for details. All rights reserved. Use of this source code is governed by a |
253 // BSD-style license that can be found in the LICENSE file. | 251 // BSD-style license that can be found in the LICENSE file. |
254 | 252 |
255 | 253 |
256 /// @domName HTMLAppletElement; @docsEditable true | 254 /// @domName HTMLAppletElement; @docsEditable true |
257 class AppletElement extends Element implements Element native "*HTMLAppletElemen
t" { | 255 class AppletElement extends Element implements Element native "*HTMLAppletElemen
t" { |
258 | 256 |
259 /** @domName HTMLAppletElement.align; @docsEditable true */ | 257 /// @domName HTMLAppletElement.align; @docsEditable true |
260 String align; | 258 String align; |
261 | 259 |
262 /** @domName HTMLAppletElement.alt; @docsEditable true */ | 260 /// @domName HTMLAppletElement.alt; @docsEditable true |
263 String alt; | 261 String alt; |
264 | 262 |
265 /** @domName HTMLAppletElement.archive; @docsEditable true */ | 263 /// @domName HTMLAppletElement.archive; @docsEditable true |
266 String archive; | 264 String archive; |
267 | 265 |
268 /** @domName HTMLAppletElement.code; @docsEditable true */ | 266 /// @domName HTMLAppletElement.code; @docsEditable true |
269 String code; | 267 String code; |
270 | 268 |
271 /** @domName HTMLAppletElement.codeBase; @docsEditable true */ | 269 /// @domName HTMLAppletElement.codeBase; @docsEditable true |
272 String codeBase; | 270 String codeBase; |
273 | 271 |
274 /** @domName HTMLAppletElement.height; @docsEditable true */ | 272 /// @domName HTMLAppletElement.height; @docsEditable true |
275 String height; | 273 String height; |
276 | 274 |
277 /** @domName HTMLAppletElement.hspace; @docsEditable true */ | 275 /// @domName HTMLAppletElement.hspace; @docsEditable true |
278 String hspace; | 276 String hspace; |
279 | 277 |
280 /** @domName HTMLAppletElement.name; @docsEditable true */ | 278 /// @domName HTMLAppletElement.name; @docsEditable true |
281 String name; | 279 String name; |
282 | 280 |
283 /** @domName HTMLAppletElement.object; @docsEditable true */ | 281 /// @domName HTMLAppletElement.object; @docsEditable true |
284 String object; | 282 String object; |
285 | 283 |
286 /** @domName HTMLAppletElement.vspace; @docsEditable true */ | 284 /// @domName HTMLAppletElement.vspace; @docsEditable true |
287 String vspace; | 285 String vspace; |
288 | 286 |
289 /** @domName HTMLAppletElement.width; @docsEditable true */ | 287 /// @domName HTMLAppletElement.width; @docsEditable true |
290 String width; | 288 String width; |
291 } | 289 } |
292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
293 // for details. All rights reserved. Use of this source code is governed by a | 291 // for details. All rights reserved. Use of this source code is governed by a |
294 // BSD-style license that can be found in the LICENSE file. | 292 // BSD-style license that can be found in the LICENSE file. |
295 | 293 |
296 | 294 |
297 /// @domName HTMLAreaElement; @docsEditable true | 295 /// @domName HTMLAreaElement; @docsEditable true |
298 class AreaElement extends Element implements Element native "*HTMLAreaElement" { | 296 class AreaElement extends Element implements Element native "*HTMLAreaElement" { |
299 | 297 |
300 factory AreaElement() => document.$dom_createElement("area"); | 298 factory AreaElement() => document.$dom_createElement("area"); |
301 | 299 |
302 /** @domName HTMLAreaElement.alt; @docsEditable true */ | 300 /// @domName HTMLAreaElement.alt; @docsEditable true |
303 String alt; | 301 String alt; |
304 | 302 |
305 /** @domName HTMLAreaElement.coords; @docsEditable true */ | 303 /// @domName HTMLAreaElement.coords; @docsEditable true |
306 String coords; | 304 String coords; |
307 | 305 |
308 /** @domName HTMLAreaElement.hash; @docsEditable true */ | 306 /// @domName HTMLAreaElement.hash; @docsEditable true |
309 final String hash; | 307 final String hash; |
310 | 308 |
311 /** @domName HTMLAreaElement.host; @docsEditable true */ | 309 /// @domName HTMLAreaElement.host; @docsEditable true |
312 final String host; | 310 final String host; |
313 | 311 |
314 /** @domName HTMLAreaElement.hostname; @docsEditable true */ | 312 /// @domName HTMLAreaElement.hostname; @docsEditable true |
315 final String hostname; | 313 final String hostname; |
316 | 314 |
317 /** @domName HTMLAreaElement.href; @docsEditable true */ | 315 /// @domName HTMLAreaElement.href; @docsEditable true |
318 String href; | 316 String href; |
319 | 317 |
320 /** @domName HTMLAreaElement.noHref; @docsEditable true */ | 318 /// @domName HTMLAreaElement.noHref; @docsEditable true |
321 bool noHref; | 319 bool noHref; |
322 | 320 |
323 /** @domName HTMLAreaElement.pathname; @docsEditable true */ | 321 /// @domName HTMLAreaElement.pathname; @docsEditable true |
324 final String pathname; | 322 final String pathname; |
325 | 323 |
326 /** @domName HTMLAreaElement.ping; @docsEditable true */ | 324 /// @domName HTMLAreaElement.ping; @docsEditable true |
327 String ping; | 325 String ping; |
328 | 326 |
329 /** @domName HTMLAreaElement.port; @docsEditable true */ | 327 /// @domName HTMLAreaElement.port; @docsEditable true |
330 final String port; | 328 final String port; |
331 | 329 |
332 /** @domName HTMLAreaElement.protocol; @docsEditable true */ | 330 /// @domName HTMLAreaElement.protocol; @docsEditable true |
333 final String protocol; | 331 final String protocol; |
334 | 332 |
335 /** @domName HTMLAreaElement.search; @docsEditable true */ | 333 /// @domName HTMLAreaElement.search; @docsEditable true |
336 final String search; | 334 final String search; |
337 | 335 |
338 /** @domName HTMLAreaElement.shape; @docsEditable true */ | 336 /// @domName HTMLAreaElement.shape; @docsEditable true |
339 String shape; | 337 String shape; |
340 | 338 |
341 /** @domName HTMLAreaElement.target; @docsEditable true */ | 339 /// @domName HTMLAreaElement.target; @docsEditable true |
342 String target; | 340 String target; |
343 } | 341 } |
344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
345 // for details. All rights reserved. Use of this source code is governed by a | 343 // for details. All rights reserved. Use of this source code is governed by a |
346 // BSD-style license that can be found in the LICENSE file. | 344 // BSD-style license that can be found in the LICENSE file. |
347 | 345 |
348 | 346 |
349 /// @domName ArrayBuffer; @docsEditable true | 347 /// @domName ArrayBuffer; @docsEditable true |
350 class ArrayBuffer native "*ArrayBuffer" { | 348 class ArrayBuffer native "*ArrayBuffer" { |
351 | 349 |
352 factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuff
er(length); | 350 factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuff
er(length); |
353 | 351 |
354 /** @domName ArrayBuffer.byteLength; @docsEditable true */ | 352 /// @domName ArrayBuffer.byteLength; @docsEditable true |
355 final int byteLength; | 353 final int byteLength; |
356 | 354 |
357 /** @domName ArrayBuffer.slice; @docsEditable true */ | 355 /// @domName ArrayBuffer.slice; @docsEditable true |
358 ArrayBuffer slice(int begin, [int end]) native; | 356 ArrayBuffer slice(int begin, [int end]) native; |
359 } | 357 } |
360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 358 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
361 // for details. All rights reserved. Use of this source code is governed by a | 359 // for details. All rights reserved. Use of this source code is governed by a |
362 // BSD-style license that can be found in the LICENSE file. | 360 // BSD-style license that can be found in the LICENSE file. |
363 | 361 |
364 | 362 |
365 /// @domName ArrayBufferView; @docsEditable true | 363 /// @domName ArrayBufferView; @docsEditable true |
366 class ArrayBufferView native "*ArrayBufferView" { | 364 class ArrayBufferView native "*ArrayBufferView" { |
367 | 365 |
368 /** @domName ArrayBufferView.buffer; @docsEditable true */ | 366 /// @domName ArrayBufferView.buffer; @docsEditable true |
369 final ArrayBuffer buffer; | 367 final ArrayBuffer buffer; |
370 | 368 |
371 /** @domName ArrayBufferView.byteLength; @docsEditable true */ | 369 /// @domName ArrayBufferView.byteLength; @docsEditable true |
372 final int byteLength; | 370 final int byteLength; |
373 | 371 |
374 /** @domName ArrayBufferView.byteOffset; @docsEditable true */ | 372 /// @domName ArrayBufferView.byteOffset; @docsEditable true |
375 final int byteOffset; | 373 final int byteOffset; |
376 } | 374 } |
377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
378 // for details. All rights reserved. Use of this source code is governed by a | 376 // for details. All rights reserved. Use of this source code is governed by a |
379 // BSD-style license that can be found in the LICENSE file. | 377 // BSD-style license that can be found in the LICENSE file. |
380 | 378 |
381 | 379 |
382 /// @domName Attr; @docsEditable true | 380 /// @domName Attr; @docsEditable true |
383 class Attr extends Node native "*Attr" { | 381 class Attr extends Node native "*Attr" { |
384 | 382 |
385 /** @domName Attr.isId; @docsEditable true */ | 383 /// @domName Attr.isId; @docsEditable true |
386 final bool isId; | 384 final bool isId; |
387 | 385 |
388 /** @domName Attr.name; @docsEditable true */ | 386 /// @domName Attr.name; @docsEditable true |
389 final String name; | 387 final String name; |
390 | 388 |
391 /** @domName Attr.ownerElement; @docsEditable true */ | 389 /// @domName Attr.ownerElement; @docsEditable true |
392 final Element ownerElement; | 390 final Element ownerElement; |
393 | 391 |
394 /** @domName Attr.specified; @docsEditable true */ | 392 /// @domName Attr.specified; @docsEditable true |
395 final bool specified; | 393 final bool specified; |
396 | 394 |
397 /** @domName Attr.value; @docsEditable true */ | 395 /// @domName Attr.value; @docsEditable true |
398 String value; | 396 String value; |
399 } | 397 } |
400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
401 // for details. All rights reserved. Use of this source code is governed by a | 399 // for details. All rights reserved. Use of this source code is governed by a |
402 // BSD-style license that can be found in the LICENSE file. | 400 // BSD-style license that can be found in the LICENSE file. |
403 | 401 |
404 | 402 |
405 /// @domName AudioBuffer; @docsEditable true | 403 /// @domName AudioBuffer; @docsEditable true |
406 class AudioBuffer native "*AudioBuffer" { | 404 class AudioBuffer native "*AudioBuffer" { |
407 | 405 |
408 /** @domName AudioBuffer.duration; @docsEditable true */ | 406 /// @domName AudioBuffer.duration; @docsEditable true |
409 final num duration; | 407 final num duration; |
410 | 408 |
411 /** @domName AudioBuffer.gain; @docsEditable true */ | 409 /// @domName AudioBuffer.gain; @docsEditable true |
412 num gain; | 410 num gain; |
413 | 411 |
414 /** @domName AudioBuffer.length; @docsEditable true */ | 412 /// @domName AudioBuffer.length; @docsEditable true |
415 final int length; | 413 final int length; |
416 | 414 |
417 /** @domName AudioBuffer.numberOfChannels; @docsEditable true */ | 415 /// @domName AudioBuffer.numberOfChannels; @docsEditable true |
418 final int numberOfChannels; | 416 final int numberOfChannels; |
419 | 417 |
420 /** @domName AudioBuffer.sampleRate; @docsEditable true */ | 418 /// @domName AudioBuffer.sampleRate; @docsEditable true |
421 final num sampleRate; | 419 final num sampleRate; |
422 | 420 |
423 /** @domName AudioBuffer.getChannelData; @docsEditable true */ | 421 /// @domName AudioBuffer.getChannelData; @docsEditable true |
424 Float32Array getChannelData(int channelIndex) native; | 422 Float32Array getChannelData(int channelIndex) native; |
425 } | 423 } |
426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
427 // for details. All rights reserved. Use of this source code is governed by a | 425 // for details. All rights reserved. Use of this source code is governed by a |
428 // BSD-style license that can be found in the LICENSE file. | 426 // BSD-style license that can be found in the LICENSE file. |
429 | 427 |
430 // WARNING: Do not edit - generated code. | 428 // WARNING: Do not edit - generated code. |
431 | 429 |
432 | 430 |
433 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 431 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 } | 467 } |
470 | 468 |
471 static const int FINISHED_STATE = 3; | 469 static const int FINISHED_STATE = 3; |
472 | 470 |
473 static const int PLAYING_STATE = 2; | 471 static const int PLAYING_STATE = 2; |
474 | 472 |
475 static const int SCHEDULED_STATE = 1; | 473 static const int SCHEDULED_STATE = 1; |
476 | 474 |
477 static const int UNSCHEDULED_STATE = 0; | 475 static const int UNSCHEDULED_STATE = 0; |
478 | 476 |
479 /** @domName AudioBufferSourceNode.buffer; @docsEditable true */ | 477 /// @domName AudioBufferSourceNode.buffer; @docsEditable true |
480 AudioBuffer buffer; | 478 AudioBuffer buffer; |
481 | 479 |
482 /** @domName AudioBufferSourceNode.gain; @docsEditable true */ | 480 /// @domName AudioBufferSourceNode.gain; @docsEditable true |
483 final AudioGain gain; | 481 final AudioGain gain; |
484 | 482 |
485 /** @domName AudioBufferSourceNode.loop; @docsEditable true */ | 483 /// @domName AudioBufferSourceNode.loop; @docsEditable true |
486 bool loop; | 484 bool loop; |
487 | 485 |
488 /** @domName AudioBufferSourceNode.loopEnd; @docsEditable true */ | 486 /// @domName AudioBufferSourceNode.loopEnd; @docsEditable true |
489 num loopEnd; | 487 num loopEnd; |
490 | 488 |
491 /** @domName AudioBufferSourceNode.loopStart; @docsEditable true */ | 489 /// @domName AudioBufferSourceNode.loopStart; @docsEditable true |
492 num loopStart; | 490 num loopStart; |
493 | 491 |
494 /** @domName AudioBufferSourceNode.playbackRate; @docsEditable true */ | 492 /// @domName AudioBufferSourceNode.playbackRate; @docsEditable true |
495 final AudioParam playbackRate; | 493 final AudioParam playbackRate; |
496 | 494 |
497 /** @domName AudioBufferSourceNode.playbackState; @docsEditable true */ | 495 /// @domName AudioBufferSourceNode.playbackState; @docsEditable true |
498 final int playbackState; | 496 final int playbackState; |
499 | 497 |
500 } | 498 } |
501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
502 // for details. All rights reserved. Use of this source code is governed by a | 500 // for details. All rights reserved. Use of this source code is governed by a |
503 // BSD-style license that can be found in the LICENSE file. | 501 // BSD-style license that can be found in the LICENSE file. |
504 | 502 |
505 | 503 |
506 class AudioContext extends EventTarget native "*AudioContext" { | 504 class AudioContext extends EventTarget native "*AudioContext" { |
507 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext(); | 505 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext(); |
508 | 506 |
509 /** | 507 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
510 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
511 */ | |
512 AudioContextEvents get on => | 508 AudioContextEvents get on => |
513 new AudioContextEvents(this); | 509 new AudioContextEvents(this); |
514 | 510 |
515 /** @domName AudioContext.activeSourceCount; @docsEditable true */ | 511 /// @domName AudioContext.activeSourceCount; @docsEditable true |
516 final int activeSourceCount; | 512 final int activeSourceCount; |
517 | 513 |
518 /** @domName AudioContext.currentTime; @docsEditable true */ | 514 /// @domName AudioContext.currentTime; @docsEditable true |
519 final num currentTime; | 515 final num currentTime; |
520 | 516 |
521 /** @domName AudioContext.destination; @docsEditable true */ | 517 /// @domName AudioContext.destination; @docsEditable true |
522 final AudioDestinationNode destination; | 518 final AudioDestinationNode destination; |
523 | 519 |
524 /** @domName AudioContext.listener; @docsEditable true */ | 520 /// @domName AudioContext.listener; @docsEditable true |
525 final AudioListener listener; | 521 final AudioListener listener; |
526 | 522 |
527 /** @domName AudioContext.sampleRate; @docsEditable true */ | 523 /// @domName AudioContext.sampleRate; @docsEditable true |
528 final num sampleRate; | 524 final num sampleRate; |
529 | 525 |
530 /** @domName AudioContext.createAnalyser; @docsEditable true */ | 526 /// @domName AudioContext.createAnalyser; @docsEditable true |
531 AnalyserNode createAnalyser() native; | 527 AnalyserNode createAnalyser() native; |
532 | 528 |
533 /** @domName AudioContext.createBiquadFilter; @docsEditable true */ | 529 /// @domName AudioContext.createBiquadFilter; @docsEditable true |
534 BiquadFilterNode createBiquadFilter() native; | 530 BiquadFilterNode createBiquadFilter() native; |
535 | 531 |
536 /** @domName AudioContext.createBuffer; @docsEditable true */ | 532 /// @domName AudioContext.createBuffer; @docsEditable true |
537 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; | 533 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; |
538 | 534 |
539 /** @domName AudioContext.createBufferSource; @docsEditable true */ | 535 /// @domName AudioContext.createBufferSource; @docsEditable true |
540 AudioBufferSourceNode createBufferSource() native; | 536 AudioBufferSourceNode createBufferSource() native; |
541 | 537 |
542 /** @domName AudioContext.createChannelMerger; @docsEditable true */ | 538 /// @domName AudioContext.createChannelMerger; @docsEditable true |
543 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; | 539 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; |
544 | 540 |
545 /** @domName AudioContext.createChannelSplitter; @docsEditable true */ | 541 /// @domName AudioContext.createChannelSplitter; @docsEditable true |
546 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; | 542 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; |
547 | 543 |
548 /** @domName AudioContext.createConvolver; @docsEditable true */ | 544 /// @domName AudioContext.createConvolver; @docsEditable true |
549 ConvolverNode createConvolver() native; | 545 ConvolverNode createConvolver() native; |
550 | 546 |
551 /** @domName AudioContext.createDelay; @docsEditable true */ | 547 /// @domName AudioContext.createDelay; @docsEditable true |
552 DelayNode createDelay([num maxDelayTime]) native; | 548 DelayNode createDelay([num maxDelayTime]) native; |
553 | 549 |
554 /** @domName AudioContext.createDynamicsCompressor; @docsEditable true */ | 550 /// @domName AudioContext.createDynamicsCompressor; @docsEditable true |
555 DynamicsCompressorNode createDynamicsCompressor() native; | 551 DynamicsCompressorNode createDynamicsCompressor() native; |
556 | 552 |
557 /** @domName AudioContext.createMediaElementSource; @docsEditable true */ | 553 /// @domName AudioContext.createMediaElementSource; @docsEditable true |
558 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | 554 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; |
559 | 555 |
560 /** @domName AudioContext.createMediaStreamSource; @docsEditable true */ | 556 /// @domName AudioContext.createMediaStreamSource; @docsEditable true |
561 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; | 557 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; |
562 | 558 |
563 /** @domName AudioContext.createOscillator; @docsEditable true */ | 559 /// @domName AudioContext.createOscillator; @docsEditable true |
564 OscillatorNode createOscillator() native; | 560 OscillatorNode createOscillator() native; |
565 | 561 |
566 /** @domName AudioContext.createPanner; @docsEditable true */ | 562 /// @domName AudioContext.createPanner; @docsEditable true |
567 PannerNode createPanner() native; | 563 PannerNode createPanner() native; |
568 | 564 |
569 /** @domName AudioContext.createWaveShaper; @docsEditable true */ | 565 /// @domName AudioContext.createWaveShaper; @docsEditable true |
570 WaveShaperNode createWaveShaper() native; | 566 WaveShaperNode createWaveShaper() native; |
571 | 567 |
572 /** @domName AudioContext.createWaveTable; @docsEditable true */ | 568 /// @domName AudioContext.createWaveTable; @docsEditable true |
573 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; | 569 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; |
574 | 570 |
575 /** @domName AudioContext.decodeAudioData; @docsEditable true */ | 571 /// @domName AudioContext.decodeAudioData; @docsEditable true |
576 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; | 572 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; |
577 | 573 |
578 /** @domName AudioContext.startRendering; @docsEditable true */ | 574 /// @domName AudioContext.startRendering; @docsEditable true |
579 void startRendering() native; | 575 void startRendering() native; |
580 | 576 |
581 GainNode createGain() { | 577 GainNode createGain() { |
582 if (JS('bool', '#.createGain !== undefined', this)) { | 578 if (JS('bool', '#.createGain !== undefined', this)) { |
583 return JS('GainNode', '#.createGain()', this); | 579 return JS('GainNode', '#.createGain()', this); |
584 } else { | 580 } else { |
585 return JS('GainNode', '#.createGainNode()', this); | 581 return JS('GainNode', '#.createGainNode()', this); |
586 } | 582 } |
587 } | 583 } |
588 | 584 |
(...skipping 20 matching lines...) Expand all Loading... |
609 EventListenerList get complete => this['complete']; | 605 EventListenerList get complete => this['complete']; |
610 } | 606 } |
611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
612 // for details. All rights reserved. Use of this source code is governed by a | 608 // for details. All rights reserved. Use of this source code is governed by a |
613 // BSD-style license that can be found in the LICENSE file. | 609 // BSD-style license that can be found in the LICENSE file. |
614 | 610 |
615 | 611 |
616 /// @domName AudioDestinationNode; @docsEditable true | 612 /// @domName AudioDestinationNode; @docsEditable true |
617 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { | 613 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { |
618 | 614 |
619 /** @domName AudioDestinationNode.numberOfChannels; @docsEditable true */ | 615 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true |
620 final int numberOfChannels; | 616 final int numberOfChannels; |
621 } | 617 } |
622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
623 // for details. All rights reserved. Use of this source code is governed by a | 619 // for details. All rights reserved. Use of this source code is governed by a |
624 // BSD-style license that can be found in the LICENSE file. | 620 // BSD-style license that can be found in the LICENSE file. |
625 | 621 |
626 | 622 |
627 /// @domName HTMLAudioElement; @docsEditable true | 623 /// @domName HTMLAudioElement; @docsEditable true |
628 class AudioElement extends MediaElement native "*HTMLAudioElement" { | 624 class AudioElement extends MediaElement native "*HTMLAudioElement" { |
629 | 625 |
(...skipping 13 matching lines...) Expand all Loading... |
643 class AudioGain extends AudioParam native "*AudioGain" { | 639 class AudioGain extends AudioParam native "*AudioGain" { |
644 } | 640 } |
645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
646 // for details. All rights reserved. Use of this source code is governed by a | 642 // for details. All rights reserved. Use of this source code is governed by a |
647 // BSD-style license that can be found in the LICENSE file. | 643 // BSD-style license that can be found in the LICENSE file. |
648 | 644 |
649 | 645 |
650 /// @domName AudioListener; @docsEditable true | 646 /// @domName AudioListener; @docsEditable true |
651 class AudioListener native "*AudioListener" { | 647 class AudioListener native "*AudioListener" { |
652 | 648 |
653 /** @domName AudioListener.dopplerFactor; @docsEditable true */ | 649 /// @domName AudioListener.dopplerFactor; @docsEditable true |
654 num dopplerFactor; | 650 num dopplerFactor; |
655 | 651 |
656 /** @domName AudioListener.speedOfSound; @docsEditable true */ | 652 /// @domName AudioListener.speedOfSound; @docsEditable true |
657 num speedOfSound; | 653 num speedOfSound; |
658 | 654 |
659 /** @domName AudioListener.setOrientation; @docsEditable true */ | 655 /// @domName AudioListener.setOrientation; @docsEditable true |
660 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | 656 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; |
661 | 657 |
662 /** @domName AudioListener.setPosition; @docsEditable true */ | 658 /// @domName AudioListener.setPosition; @docsEditable true |
663 void setPosition(num x, num y, num z) native; | 659 void setPosition(num x, num y, num z) native; |
664 | 660 |
665 /** @domName AudioListener.setVelocity; @docsEditable true */ | 661 /// @domName AudioListener.setVelocity; @docsEditable true |
666 void setVelocity(num x, num y, num z) native; | 662 void setVelocity(num x, num y, num z) native; |
667 } | 663 } |
668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
669 // for details. All rights reserved. Use of this source code is governed by a | 665 // for details. All rights reserved. Use of this source code is governed by a |
670 // BSD-style license that can be found in the LICENSE file. | 666 // BSD-style license that can be found in the LICENSE file. |
671 | 667 |
672 | 668 |
673 /// @domName AudioNode; @docsEditable true | 669 /// @domName AudioNode; @docsEditable true |
674 class AudioNode native "*AudioNode" { | 670 class AudioNode native "*AudioNode" { |
675 | 671 |
676 /** @domName AudioNode.context; @docsEditable true */ | 672 /// @domName AudioNode.context; @docsEditable true |
677 final AudioContext context; | 673 final AudioContext context; |
678 | 674 |
679 /** @domName AudioNode.numberOfInputs; @docsEditable true */ | 675 /// @domName AudioNode.numberOfInputs; @docsEditable true |
680 final int numberOfInputs; | 676 final int numberOfInputs; |
681 | 677 |
682 /** @domName AudioNode.numberOfOutputs; @docsEditable true */ | 678 /// @domName AudioNode.numberOfOutputs; @docsEditable true |
683 final int numberOfOutputs; | 679 final int numberOfOutputs; |
684 | 680 |
685 /** @domName AudioNode.connect; @docsEditable true */ | 681 /// @domName AudioNode.connect; @docsEditable true |
686 void connect(destination, int output, [int input]) native; | 682 void connect(destination, int output, [int input]) native; |
687 | 683 |
688 /** @domName AudioNode.disconnect; @docsEditable true */ | 684 /// @domName AudioNode.disconnect; @docsEditable true |
689 void disconnect(int output) native; | 685 void disconnect(int output) native; |
690 } | 686 } |
691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
692 // for details. All rights reserved. Use of this source code is governed by a | 688 // for details. All rights reserved. Use of this source code is governed by a |
693 // BSD-style license that can be found in the LICENSE file. | 689 // BSD-style license that can be found in the LICENSE file. |
694 | 690 |
695 | 691 |
696 /// @domName AudioParam; @docsEditable true | 692 /// @domName AudioParam; @docsEditable true |
697 class AudioParam native "*AudioParam" { | 693 class AudioParam native "*AudioParam" { |
698 | 694 |
699 /** @domName AudioParam.defaultValue; @docsEditable true */ | 695 /// @domName AudioParam.defaultValue; @docsEditable true |
700 final num defaultValue; | 696 final num defaultValue; |
701 | 697 |
702 /** @domName AudioParam.maxValue; @docsEditable true */ | 698 /// @domName AudioParam.maxValue; @docsEditable true |
703 final num maxValue; | 699 final num maxValue; |
704 | 700 |
705 /** @domName AudioParam.minValue; @docsEditable true */ | 701 /// @domName AudioParam.minValue; @docsEditable true |
706 final num minValue; | 702 final num minValue; |
707 | 703 |
708 /** @domName AudioParam.name; @docsEditable true */ | 704 /// @domName AudioParam.name; @docsEditable true |
709 final String name; | 705 final String name; |
710 | 706 |
711 /** @domName AudioParam.units; @docsEditable true */ | 707 /// @domName AudioParam.units; @docsEditable true |
712 final int units; | 708 final int units; |
713 | 709 |
714 /** @domName AudioParam.value; @docsEditable true */ | 710 /// @domName AudioParam.value; @docsEditable true |
715 num value; | 711 num value; |
716 | 712 |
717 /** @domName AudioParam.cancelScheduledValues; @docsEditable true */ | 713 /// @domName AudioParam.cancelScheduledValues; @docsEditable true |
718 void cancelScheduledValues(num startTime) native; | 714 void cancelScheduledValues(num startTime) native; |
719 | 715 |
720 /** @domName AudioParam.exponentialRampToValueAtTime; @docsEditable true */ | 716 /// @domName AudioParam.exponentialRampToValueAtTime; @docsEditable true |
721 void exponentialRampToValueAtTime(num value, num time) native; | 717 void exponentialRampToValueAtTime(num value, num time) native; |
722 | 718 |
723 /** @domName AudioParam.linearRampToValueAtTime; @docsEditable true */ | 719 /// @domName AudioParam.linearRampToValueAtTime; @docsEditable true |
724 void linearRampToValueAtTime(num value, num time) native; | 720 void linearRampToValueAtTime(num value, num time) native; |
725 | 721 |
726 /** @domName AudioParam.setTargetAtTime; @docsEditable true */ | 722 /// @domName AudioParam.setTargetAtTime; @docsEditable true |
727 void setTargetAtTime(num target, num time, num timeConstant) native; | 723 void setTargetAtTime(num target, num time, num timeConstant) native; |
728 | 724 |
729 /** @domName AudioParam.setValueAtTime; @docsEditable true */ | 725 /// @domName AudioParam.setValueAtTime; @docsEditable true |
730 void setValueAtTime(num value, num time) native; | 726 void setValueAtTime(num value, num time) native; |
731 | 727 |
732 /** @domName AudioParam.setValueCurveAtTime; @docsEditable true */ | 728 /// @domName AudioParam.setValueCurveAtTime; @docsEditable true |
733 void setValueCurveAtTime(Float32Array values, num time, num duration) native; | 729 void setValueCurveAtTime(Float32Array values, num time, num duration) native; |
734 } | 730 } |
735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
736 // for details. All rights reserved. Use of this source code is governed by a | 732 // for details. All rights reserved. Use of this source code is governed by a |
737 // BSD-style license that can be found in the LICENSE file. | 733 // BSD-style license that can be found in the LICENSE file. |
738 | 734 |
739 | 735 |
740 /// @domName AudioProcessingEvent; @docsEditable true | 736 /// @domName AudioProcessingEvent; @docsEditable true |
741 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { | 737 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { |
742 | 738 |
743 /** @domName AudioProcessingEvent.inputBuffer; @docsEditable true */ | 739 /// @domName AudioProcessingEvent.inputBuffer; @docsEditable true |
744 final AudioBuffer inputBuffer; | 740 final AudioBuffer inputBuffer; |
745 | 741 |
746 /** @domName AudioProcessingEvent.outputBuffer; @docsEditable true */ | 742 /// @domName AudioProcessingEvent.outputBuffer; @docsEditable true |
747 final AudioBuffer outputBuffer; | 743 final AudioBuffer outputBuffer; |
748 } | 744 } |
749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
750 // for details. All rights reserved. Use of this source code is governed by a | 746 // for details. All rights reserved. Use of this source code is governed by a |
751 // BSD-style license that can be found in the LICENSE file. | 747 // BSD-style license that can be found in the LICENSE file. |
752 | 748 |
753 | 749 |
754 /// @domName AudioSourceNode; @docsEditable true | 750 /// @domName AudioSourceNode; @docsEditable true |
755 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { | 751 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { |
756 } | 752 } |
757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
758 // for details. All rights reserved. Use of this source code is governed by a | 754 // for details. All rights reserved. Use of this source code is governed by a |
759 // BSD-style license that can be found in the LICENSE file. | 755 // BSD-style license that can be found in the LICENSE file. |
760 | 756 |
761 | 757 |
762 /// @domName HTMLBRElement; @docsEditable true | 758 /// @domName HTMLBRElement; @docsEditable true |
763 class BRElement extends Element implements Element native "*HTMLBRElement" { | 759 class BRElement extends Element implements Element native "*HTMLBRElement" { |
764 | 760 |
765 factory BRElement() => document.$dom_createElement("br"); | 761 factory BRElement() => document.$dom_createElement("br"); |
766 | 762 |
767 /** @domName HTMLBRElement.clear; @docsEditable true */ | 763 /// @domName HTMLBRElement.clear; @docsEditable true |
768 String clear; | 764 String clear; |
769 } | 765 } |
770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
771 // for details. All rights reserved. Use of this source code is governed by a | 767 // for details. All rights reserved. Use of this source code is governed by a |
772 // BSD-style license that can be found in the LICENSE file. | 768 // BSD-style license that can be found in the LICENSE file. |
773 | 769 |
774 | 770 |
775 /// @domName BarInfo; @docsEditable true | 771 /// @domName BarInfo; @docsEditable true |
776 class BarInfo native "*BarInfo" { | 772 class BarInfo native "*BarInfo" { |
777 | 773 |
778 /** @domName BarInfo.visible; @docsEditable true */ | 774 /// @domName BarInfo.visible; @docsEditable true |
779 final bool visible; | 775 final bool visible; |
780 } | 776 } |
781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
782 // for details. All rights reserved. Use of this source code is governed by a | 778 // for details. All rights reserved. Use of this source code is governed by a |
783 // BSD-style license that can be found in the LICENSE file. | 779 // BSD-style license that can be found in the LICENSE file. |
784 | 780 |
785 | 781 |
786 /// @domName HTMLBaseElement; @docsEditable true | 782 /// @domName HTMLBaseElement; @docsEditable true |
787 class BaseElement extends Element implements Element native "*HTMLBaseElement" { | 783 class BaseElement extends Element implements Element native "*HTMLBaseElement" { |
788 | 784 |
789 factory BaseElement() => document.$dom_createElement("base"); | 785 factory BaseElement() => document.$dom_createElement("base"); |
790 | 786 |
791 /** @domName HTMLBaseElement.href; @docsEditable true */ | 787 /// @domName HTMLBaseElement.href; @docsEditable true |
792 String href; | 788 String href; |
793 | 789 |
794 /** @domName HTMLBaseElement.target; @docsEditable true */ | 790 /// @domName HTMLBaseElement.target; @docsEditable true |
795 String target; | 791 String target; |
796 } | 792 } |
797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
798 // for details. All rights reserved. Use of this source code is governed by a | 794 // for details. All rights reserved. Use of this source code is governed by a |
799 // BSD-style license that can be found in the LICENSE file. | 795 // BSD-style license that can be found in the LICENSE file. |
800 | 796 |
801 | 797 |
802 /// @domName HTMLBaseFontElement; @docsEditable true | 798 /// @domName HTMLBaseFontElement; @docsEditable true |
803 class BaseFontElement extends Element implements Element native "*HTMLBaseFontEl
ement" { | 799 class BaseFontElement extends Element implements Element native "*HTMLBaseFontEl
ement" { |
804 | 800 |
805 /** @domName HTMLBaseFontElement.color; @docsEditable true */ | 801 /// @domName HTMLBaseFontElement.color; @docsEditable true |
806 String color; | 802 String color; |
807 | 803 |
808 /** @domName HTMLBaseFontElement.face; @docsEditable true */ | 804 /// @domName HTMLBaseFontElement.face; @docsEditable true |
809 String face; | 805 String face; |
810 | 806 |
811 /** @domName HTMLBaseFontElement.size; @docsEditable true */ | 807 /// @domName HTMLBaseFontElement.size; @docsEditable true |
812 int size; | 808 int size; |
813 } | 809 } |
814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
815 // for details. All rights reserved. Use of this source code is governed by a | 811 // for details. All rights reserved. Use of this source code is governed by a |
816 // BSD-style license that can be found in the LICENSE file. | 812 // BSD-style license that can be found in the LICENSE file. |
817 | 813 |
818 | 814 |
819 /// @domName BatteryManager; @docsEditable true | 815 /// @domName BatteryManager; @docsEditable true |
820 class BatteryManager extends EventTarget native "*BatteryManager" { | 816 class BatteryManager extends EventTarget native "*BatteryManager" { |
821 | 817 |
822 /** | 818 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
823 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
824 */ | |
825 BatteryManagerEvents get on => | 819 BatteryManagerEvents get on => |
826 new BatteryManagerEvents(this); | 820 new BatteryManagerEvents(this); |
827 | 821 |
828 /** @domName BatteryManager.charging; @docsEditable true */ | 822 /// @domName BatteryManager.charging; @docsEditable true |
829 final bool charging; | 823 final bool charging; |
830 | 824 |
831 /** @domName BatteryManager.chargingTime; @docsEditable true */ | 825 /// @domName BatteryManager.chargingTime; @docsEditable true |
832 final num chargingTime; | 826 final num chargingTime; |
833 | 827 |
834 /** @domName BatteryManager.dischargingTime; @docsEditable true */ | 828 /// @domName BatteryManager.dischargingTime; @docsEditable true |
835 final num dischargingTime; | 829 final num dischargingTime; |
836 | 830 |
837 /** @domName BatteryManager.level; @docsEditable true */ | 831 /// @domName BatteryManager.level; @docsEditable true |
838 final num level; | 832 final num level; |
839 | 833 |
840 /** @domName BatteryManager.addEventListener; @docsEditable true */ | 834 /// @domName BatteryManager.addEventListener; @docsEditable true |
841 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 835 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
842 | 836 |
843 /** @domName BatteryManager.dispatchEvent; @docsEditable true */ | 837 /// @domName BatteryManager.dispatchEvent; @docsEditable true |
844 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 838 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
845 | 839 |
846 /** @domName BatteryManager.removeEventListener; @docsEditable true */ | 840 /// @domName BatteryManager.removeEventListener; @docsEditable true |
847 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 841 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
848 } | 842 } |
849 | 843 |
850 class BatteryManagerEvents extends Events { | 844 class BatteryManagerEvents extends Events { |
851 BatteryManagerEvents(EventTarget _ptr) : super(_ptr); | 845 BatteryManagerEvents(EventTarget _ptr) : super(_ptr); |
852 | 846 |
853 EventListenerList get chargingChange => this['chargingchange']; | 847 EventListenerList get chargingChange => this['chargingchange']; |
854 | 848 |
855 EventListenerList get chargingTimeChange => this['chargingtimechange']; | 849 EventListenerList get chargingTimeChange => this['chargingtimechange']; |
856 | 850 |
857 EventListenerList get dischargingTimeChange => this['dischargingtimechange']; | 851 EventListenerList get dischargingTimeChange => this['dischargingtimechange']; |
858 | 852 |
859 EventListenerList get levelChange => this['levelchange']; | 853 EventListenerList get levelChange => this['levelchange']; |
860 } | 854 } |
861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
862 // for details. All rights reserved. Use of this source code is governed by a | 856 // for details. All rights reserved. Use of this source code is governed by a |
863 // BSD-style license that can be found in the LICENSE file. | 857 // BSD-style license that can be found in the LICENSE file. |
864 | 858 |
865 | 859 |
866 /// @domName BeforeLoadEvent; @docsEditable true | 860 /// @domName BeforeLoadEvent; @docsEditable true |
867 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { | 861 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { |
868 | 862 |
869 /** @domName BeforeLoadEvent.url; @docsEditable true */ | 863 /// @domName BeforeLoadEvent.url; @docsEditable true |
870 final String url; | 864 final String url; |
871 } | 865 } |
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
873 // for details. All rights reserved. Use of this source code is governed by a | 867 // for details. All rights reserved. Use of this source code is governed by a |
874 // BSD-style license that can be found in the LICENSE file. | 868 // BSD-style license that can be found in the LICENSE file. |
875 | 869 |
876 | 870 |
877 /// @domName BiquadFilterNode; @docsEditable true | 871 /// @domName BiquadFilterNode; @docsEditable true |
878 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" { | 872 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" { |
879 | 873 |
880 static const int ALLPASS = 7; | 874 static const int ALLPASS = 7; |
881 | 875 |
882 static const int BANDPASS = 2; | 876 static const int BANDPASS = 2; |
883 | 877 |
884 static const int HIGHPASS = 1; | 878 static const int HIGHPASS = 1; |
885 | 879 |
886 static const int HIGHSHELF = 4; | 880 static const int HIGHSHELF = 4; |
887 | 881 |
888 static const int LOWPASS = 0; | 882 static const int LOWPASS = 0; |
889 | 883 |
890 static const int LOWSHELF = 3; | 884 static const int LOWSHELF = 3; |
891 | 885 |
892 static const int NOTCH = 6; | 886 static const int NOTCH = 6; |
893 | 887 |
894 static const int PEAKING = 5; | 888 static const int PEAKING = 5; |
895 | 889 |
896 /** @domName BiquadFilterNode.Q; @docsEditable true */ | 890 /// @domName BiquadFilterNode.Q; @docsEditable true |
897 final AudioParam Q; | 891 final AudioParam Q; |
898 | 892 |
899 /** @domName BiquadFilterNode.frequency; @docsEditable true */ | 893 /// @domName BiquadFilterNode.frequency; @docsEditable true |
900 final AudioParam frequency; | 894 final AudioParam frequency; |
901 | 895 |
902 /** @domName BiquadFilterNode.gain; @docsEditable true */ | 896 /// @domName BiquadFilterNode.gain; @docsEditable true |
903 final AudioParam gain; | 897 final AudioParam gain; |
904 | 898 |
905 /** @domName BiquadFilterNode.type; @docsEditable true */ | 899 /// @domName BiquadFilterNode.type; @docsEditable true |
906 int type; | 900 int type; |
907 | 901 |
908 /** @domName BiquadFilterNode.getFrequencyResponse; @docsEditable true */ | 902 /// @domName BiquadFilterNode.getFrequencyResponse; @docsEditable true |
909 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native; | 903 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native; |
910 } | 904 } |
911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
912 // for details. All rights reserved. Use of this source code is governed by a | 906 // for details. All rights reserved. Use of this source code is governed by a |
913 // BSD-style license that can be found in the LICENSE file. | 907 // BSD-style license that can be found in the LICENSE file. |
914 | 908 |
915 | 909 |
916 /// @domName Blob; @docsEditable true | 910 /// @domName Blob; @docsEditable true |
917 class Blob native "*Blob" { | 911 class Blob native "*Blob" { |
918 | 912 |
919 factory Blob(List blobParts, [String type, String endings]) { | 913 factory Blob(List blobParts, [String type, String endings]) { |
920 if (!?type) { | 914 if (!?type) { |
921 return _BlobFactoryProvider.createBlob(blobParts); | 915 return _BlobFactoryProvider.createBlob(blobParts); |
922 } | 916 } |
923 if (!?endings) { | 917 if (!?endings) { |
924 return _BlobFactoryProvider.createBlob(blobParts, type); | 918 return _BlobFactoryProvider.createBlob(blobParts, type); |
925 } | 919 } |
926 return _BlobFactoryProvider.createBlob(blobParts, type, endings); | 920 return _BlobFactoryProvider.createBlob(blobParts, type, endings); |
927 } | 921 } |
928 | 922 |
929 /** @domName Blob.size; @docsEditable true */ | 923 /// @domName Blob.size; @docsEditable true |
930 final int size; | 924 final int size; |
931 | 925 |
932 /** @domName Blob.type; @docsEditable true */ | 926 /// @domName Blob.type; @docsEditable true |
933 final String type; | 927 final String type; |
934 | 928 |
935 /** @domName Blob.slice; @docsEditable true */ | 929 /// @domName Blob.slice; @docsEditable true |
936 Blob slice([int start, int end, String contentType]) native; | 930 Blob slice([int start, int end, String contentType]) native; |
937 } | 931 } |
938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
939 // for details. All rights reserved. Use of this source code is governed by a | 933 // for details. All rights reserved. Use of this source code is governed by a |
940 // BSD-style license that can be found in the LICENSE file. | 934 // BSD-style license that can be found in the LICENSE file. |
941 | 935 |
942 | 936 |
943 /// @domName HTMLBodyElement; @docsEditable true | 937 /// @domName HTMLBodyElement; @docsEditable true |
944 class BodyElement extends Element implements Element native "*HTMLBodyElement" { | 938 class BodyElement extends Element implements Element native "*HTMLBodyElement" { |
945 | 939 |
946 factory BodyElement() => document.$dom_createElement("body"); | 940 factory BodyElement() => document.$dom_createElement("body"); |
947 | 941 |
948 /** | 942 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
949 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
950 */ | |
951 BodyElementEvents get on => | 943 BodyElementEvents get on => |
952 new BodyElementEvents(this); | 944 new BodyElementEvents(this); |
953 | 945 |
954 /** @domName HTMLBodyElement.aLink; @docsEditable true */ | 946 /// @domName HTMLBodyElement.aLink; @docsEditable true |
955 String aLink; | 947 String aLink; |
956 | 948 |
957 /** @domName HTMLBodyElement.background; @docsEditable true */ | 949 /// @domName HTMLBodyElement.background; @docsEditable true |
958 String background; | 950 String background; |
959 | 951 |
960 /** @domName HTMLBodyElement.bgColor; @docsEditable true */ | 952 /// @domName HTMLBodyElement.bgColor; @docsEditable true |
961 String bgColor; | 953 String bgColor; |
962 | 954 |
963 /** @domName HTMLBodyElement.link; @docsEditable true */ | 955 /// @domName HTMLBodyElement.link; @docsEditable true |
964 String link; | 956 String link; |
965 | 957 |
966 /** @domName HTMLBodyElement.vLink; @docsEditable true */ | 958 /// @domName HTMLBodyElement.vLink; @docsEditable true |
967 String vLink; | 959 String vLink; |
968 } | 960 } |
969 | 961 |
970 class BodyElementEvents extends ElementEvents { | 962 class BodyElementEvents extends ElementEvents { |
971 BodyElementEvents(EventTarget _ptr) : super(_ptr); | 963 BodyElementEvents(EventTarget _ptr) : super(_ptr); |
972 | 964 |
973 EventListenerList get beforeUnload => this['beforeunload']; | 965 EventListenerList get beforeUnload => this['beforeunload']; |
974 | 966 |
975 EventListenerList get blur => this['blur']; | 967 EventListenerList get blur => this['blur']; |
976 | 968 |
(...skipping 22 matching lines...) Expand all Loading... |
999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 991 // 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 | 992 // 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. | 993 // BSD-style license that can be found in the LICENSE file. |
1002 | 994 |
1003 | 995 |
1004 /// @domName HTMLButtonElement; @docsEditable true | 996 /// @domName HTMLButtonElement; @docsEditable true |
1005 class ButtonElement extends Element implements Element native "*HTMLButtonElemen
t" { | 997 class ButtonElement extends Element implements Element native "*HTMLButtonElemen
t" { |
1006 | 998 |
1007 factory ButtonElement() => document.$dom_createElement("button"); | 999 factory ButtonElement() => document.$dom_createElement("button"); |
1008 | 1000 |
1009 /** @domName HTMLButtonElement.autofocus; @docsEditable true */ | 1001 /// @domName HTMLButtonElement.autofocus; @docsEditable true |
1010 bool autofocus; | 1002 bool autofocus; |
1011 | 1003 |
1012 /** @domName HTMLButtonElement.disabled; @docsEditable true */ | 1004 /// @domName HTMLButtonElement.disabled; @docsEditable true |
1013 bool disabled; | 1005 bool disabled; |
1014 | 1006 |
1015 /** @domName HTMLButtonElement.form; @docsEditable true */ | 1007 /// @domName HTMLButtonElement.form; @docsEditable true |
1016 final FormElement form; | 1008 final FormElement form; |
1017 | 1009 |
1018 /** @domName HTMLButtonElement.formAction; @docsEditable true */ | 1010 /// @domName HTMLButtonElement.formAction; @docsEditable true |
1019 String formAction; | 1011 String formAction; |
1020 | 1012 |
1021 /** @domName HTMLButtonElement.formEnctype; @docsEditable true */ | 1013 /// @domName HTMLButtonElement.formEnctype; @docsEditable true |
1022 String formEnctype; | 1014 String formEnctype; |
1023 | 1015 |
1024 /** @domName HTMLButtonElement.formMethod; @docsEditable true */ | 1016 /// @domName HTMLButtonElement.formMethod; @docsEditable true |
1025 String formMethod; | 1017 String formMethod; |
1026 | 1018 |
1027 /** @domName HTMLButtonElement.formNoValidate; @docsEditable true */ | 1019 /// @domName HTMLButtonElement.formNoValidate; @docsEditable true |
1028 bool formNoValidate; | 1020 bool formNoValidate; |
1029 | 1021 |
1030 /** @domName HTMLButtonElement.formTarget; @docsEditable true */ | 1022 /// @domName HTMLButtonElement.formTarget; @docsEditable true |
1031 String formTarget; | 1023 String formTarget; |
1032 | 1024 |
1033 /** @domName HTMLButtonElement.labels; @docsEditable true */ | 1025 /// @domName HTMLButtonElement.labels; @docsEditable true |
1034 @Returns('_NodeList') @Creates('_NodeList') | 1026 @Returns('_NodeList') @Creates('_NodeList') |
1035 final List<Node> labels; | 1027 final List<Node> labels; |
1036 | 1028 |
1037 /** @domName HTMLButtonElement.name; @docsEditable true */ | 1029 /// @domName HTMLButtonElement.name; @docsEditable true |
1038 String name; | 1030 String name; |
1039 | 1031 |
1040 /** @domName HTMLButtonElement.type; @docsEditable true */ | 1032 /// @domName HTMLButtonElement.type; @docsEditable true |
1041 String type; | 1033 String type; |
1042 | 1034 |
1043 /** @domName HTMLButtonElement.validationMessage; @docsEditable true */ | 1035 /// @domName HTMLButtonElement.validationMessage; @docsEditable true |
1044 final String validationMessage; | 1036 final String validationMessage; |
1045 | 1037 |
1046 /** @domName HTMLButtonElement.validity; @docsEditable true */ | 1038 /// @domName HTMLButtonElement.validity; @docsEditable true |
1047 final ValidityState validity; | 1039 final ValidityState validity; |
1048 | 1040 |
1049 /** @domName HTMLButtonElement.value; @docsEditable true */ | 1041 /// @domName HTMLButtonElement.value; @docsEditable true |
1050 String value; | 1042 String value; |
1051 | 1043 |
1052 /** @domName HTMLButtonElement.willValidate; @docsEditable true */ | 1044 /// @domName HTMLButtonElement.willValidate; @docsEditable true |
1053 final bool willValidate; | 1045 final bool willValidate; |
1054 | 1046 |
1055 /** @domName HTMLButtonElement.checkValidity; @docsEditable true */ | 1047 /// @domName HTMLButtonElement.checkValidity; @docsEditable true |
1056 bool checkValidity() native; | 1048 bool checkValidity() native; |
1057 | 1049 |
1058 /** @domName HTMLButtonElement.setCustomValidity; @docsEditable true */ | 1050 /// @domName HTMLButtonElement.setCustomValidity; @docsEditable true |
1059 void setCustomValidity(String error) native; | 1051 void setCustomValidity(String error) native; |
1060 } | 1052 } |
1061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1062 // for details. All rights reserved. Use of this source code is governed by a | 1054 // for details. All rights reserved. Use of this source code is governed by a |
1063 // BSD-style license that can be found in the LICENSE file. | 1055 // BSD-style license that can be found in the LICENSE file. |
1064 | 1056 |
1065 | 1057 |
1066 /// @domName CDATASection; @docsEditable true | 1058 /// @domName CDATASection; @docsEditable true |
1067 class CDATASection extends Text native "*CDATASection" { | 1059 class CDATASection extends Text native "*CDATASection" { |
1068 } | 1060 } |
1069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1070 // for details. All rights reserved. Use of this source code is governed by a | 1062 // for details. All rights reserved. Use of this source code is governed by a |
1071 // BSD-style license that can be found in the LICENSE file. | 1063 // BSD-style license that can be found in the LICENSE file. |
1072 | 1064 |
1073 | 1065 |
1074 /// @domName CSSCharsetRule; @docsEditable true | 1066 /// @domName CSSCharsetRule; @docsEditable true |
1075 class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" { | 1067 class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" { |
1076 | 1068 |
1077 /** @domName CSSCharsetRule.encoding; @docsEditable true */ | 1069 /// @domName CSSCharsetRule.encoding; @docsEditable true |
1078 String encoding; | 1070 String encoding; |
1079 } | 1071 } |
1080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1081 // for details. All rights reserved. Use of this source code is governed by a | 1073 // for details. All rights reserved. Use of this source code is governed by a |
1082 // BSD-style license that can be found in the LICENSE file. | 1074 // BSD-style license that can be found in the LICENSE file. |
1083 | 1075 |
1084 | 1076 |
1085 /// @domName CSSFontFaceRule; @docsEditable true | 1077 /// @domName CSSFontFaceRule; @docsEditable true |
1086 class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" { | 1078 class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" { |
1087 | 1079 |
1088 /** @domName CSSFontFaceRule.style; @docsEditable true */ | 1080 /// @domName CSSFontFaceRule.style; @docsEditable true |
1089 final CSSStyleDeclaration style; | 1081 final CSSStyleDeclaration style; |
1090 } | 1082 } |
1091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1092 // for details. All rights reserved. Use of this source code is governed by a | 1084 // for details. All rights reserved. Use of this source code is governed by a |
1093 // BSD-style license that can be found in the LICENSE file. | 1085 // BSD-style license that can be found in the LICENSE file. |
1094 | 1086 |
1095 | 1087 |
1096 /// @domName CSSImportRule; @docsEditable true | 1088 /// @domName CSSImportRule; @docsEditable true |
1097 class CSSImportRule extends CSSRule native "*CSSImportRule" { | 1089 class CSSImportRule extends CSSRule native "*CSSImportRule" { |
1098 | 1090 |
1099 /** @domName CSSImportRule.href; @docsEditable true */ | 1091 /// @domName CSSImportRule.href; @docsEditable true |
1100 final String href; | 1092 final String href; |
1101 | 1093 |
1102 /** @domName CSSImportRule.media; @docsEditable true */ | 1094 /// @domName CSSImportRule.media; @docsEditable true |
1103 final MediaList media; | 1095 final MediaList media; |
1104 | 1096 |
1105 /** @domName CSSImportRule.styleSheet; @docsEditable true */ | 1097 /// @domName CSSImportRule.styleSheet; @docsEditable true |
1106 final CSSStyleSheet styleSheet; | 1098 final CSSStyleSheet styleSheet; |
1107 } | 1099 } |
1108 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1109 // for details. All rights reserved. Use of this source code is governed by a | 1101 // for details. All rights reserved. Use of this source code is governed by a |
1110 // BSD-style license that can be found in the LICENSE file. | 1102 // BSD-style license that can be found in the LICENSE file. |
1111 | 1103 |
1112 | 1104 |
1113 /// @domName WebKitCSSKeyframeRule; @docsEditable true | 1105 /// @domName WebKitCSSKeyframeRule; @docsEditable true |
1114 class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" { | 1106 class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" { |
1115 | 1107 |
1116 /** @domName WebKitCSSKeyframeRule.keyText; @docsEditable true */ | 1108 /// @domName WebKitCSSKeyframeRule.keyText; @docsEditable true |
1117 String keyText; | 1109 String keyText; |
1118 | 1110 |
1119 /** @domName WebKitCSSKeyframeRule.style; @docsEditable true */ | 1111 /// @domName WebKitCSSKeyframeRule.style; @docsEditable true |
1120 final CSSStyleDeclaration style; | 1112 final CSSStyleDeclaration style; |
1121 } | 1113 } |
1122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1123 // for details. All rights reserved. Use of this source code is governed by a | 1115 // for details. All rights reserved. Use of this source code is governed by a |
1124 // BSD-style license that can be found in the LICENSE file. | 1116 // BSD-style license that can be found in the LICENSE file. |
1125 | 1117 |
1126 | 1118 |
1127 /// @domName WebKitCSSKeyframesRule; @docsEditable true | 1119 /// @domName WebKitCSSKeyframesRule; @docsEditable true |
1128 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" { | 1120 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" { |
1129 | 1121 |
1130 /** @domName WebKitCSSKeyframesRule.cssRules; @docsEditable true */ | 1122 /// @domName WebKitCSSKeyframesRule.cssRules; @docsEditable true |
1131 @Returns('_CSSRuleList') @Creates('_CSSRuleList') | 1123 @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
1132 final List<CSSRule> cssRules; | 1124 final List<CSSRule> cssRules; |
1133 | 1125 |
1134 /** @domName WebKitCSSKeyframesRule.name; @docsEditable true */ | 1126 /// @domName WebKitCSSKeyframesRule.name; @docsEditable true |
1135 String name; | 1127 String name; |
1136 | 1128 |
1137 /** @domName WebKitCSSKeyframesRule.deleteRule; @docsEditable true */ | 1129 /// @domName WebKitCSSKeyframesRule.deleteRule; @docsEditable true |
1138 void deleteRule(String key) native; | 1130 void deleteRule(String key) native; |
1139 | 1131 |
1140 /** @domName WebKitCSSKeyframesRule.findRule; @docsEditable true */ | 1132 /// @domName WebKitCSSKeyframesRule.findRule; @docsEditable true |
1141 CSSKeyframeRule findRule(String key) native; | 1133 CSSKeyframeRule findRule(String key) native; |
1142 | 1134 |
1143 /** @domName WebKitCSSKeyframesRule.insertRule; @docsEditable true */ | 1135 /// @domName WebKitCSSKeyframesRule.insertRule; @docsEditable true |
1144 void insertRule(String rule) native; | 1136 void insertRule(String rule) native; |
1145 } | 1137 } |
1146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1147 // for details. All rights reserved. Use of this source code is governed by a | 1139 // for details. All rights reserved. Use of this source code is governed by a |
1148 // BSD-style license that can be found in the LICENSE file. | 1140 // BSD-style license that can be found in the LICENSE file. |
1149 | 1141 |
1150 | 1142 |
1151 /// @domName WebKitCSSMatrix; @docsEditable true | 1143 /// @domName WebKitCSSMatrix; @docsEditable true |
1152 class CSSMatrix native "*WebKitCSSMatrix" { | 1144 class CSSMatrix native "*WebKitCSSMatrix" { |
1153 | 1145 |
1154 factory CSSMatrix([String cssValue]) { | 1146 factory CSSMatrix([String cssValue]) { |
1155 if (!?cssValue) { | 1147 if (!?cssValue) { |
1156 return _CSSMatrixFactoryProvider.createCSSMatrix(); | 1148 return _CSSMatrixFactoryProvider.createCSSMatrix(); |
1157 } | 1149 } |
1158 return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue); | 1150 return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue); |
1159 } | 1151 } |
1160 | 1152 |
1161 /** @domName WebKitCSSMatrix.a; @docsEditable true */ | 1153 /// @domName WebKitCSSMatrix.a; @docsEditable true |
1162 num a; | 1154 num a; |
1163 | 1155 |
1164 /** @domName WebKitCSSMatrix.b; @docsEditable true */ | 1156 /// @domName WebKitCSSMatrix.b; @docsEditable true |
1165 num b; | 1157 num b; |
1166 | 1158 |
1167 /** @domName WebKitCSSMatrix.c; @docsEditable true */ | 1159 /// @domName WebKitCSSMatrix.c; @docsEditable true |
1168 num c; | 1160 num c; |
1169 | 1161 |
1170 /** @domName WebKitCSSMatrix.d; @docsEditable true */ | 1162 /// @domName WebKitCSSMatrix.d; @docsEditable true |
1171 num d; | 1163 num d; |
1172 | 1164 |
1173 /** @domName WebKitCSSMatrix.e; @docsEditable true */ | 1165 /// @domName WebKitCSSMatrix.e; @docsEditable true |
1174 num e; | 1166 num e; |
1175 | 1167 |
1176 /** @domName WebKitCSSMatrix.f; @docsEditable true */ | 1168 /// @domName WebKitCSSMatrix.f; @docsEditable true |
1177 num f; | 1169 num f; |
1178 | 1170 |
1179 /** @domName WebKitCSSMatrix.m11; @docsEditable true */ | 1171 /// @domName WebKitCSSMatrix.m11; @docsEditable true |
1180 num m11; | 1172 num m11; |
1181 | 1173 |
1182 /** @domName WebKitCSSMatrix.m12; @docsEditable true */ | 1174 /// @domName WebKitCSSMatrix.m12; @docsEditable true |
1183 num m12; | 1175 num m12; |
1184 | 1176 |
1185 /** @domName WebKitCSSMatrix.m13; @docsEditable true */ | 1177 /// @domName WebKitCSSMatrix.m13; @docsEditable true |
1186 num m13; | 1178 num m13; |
1187 | 1179 |
1188 /** @domName WebKitCSSMatrix.m14; @docsEditable true */ | 1180 /// @domName WebKitCSSMatrix.m14; @docsEditable true |
1189 num m14; | 1181 num m14; |
1190 | 1182 |
1191 /** @domName WebKitCSSMatrix.m21; @docsEditable true */ | 1183 /// @domName WebKitCSSMatrix.m21; @docsEditable true |
1192 num m21; | 1184 num m21; |
1193 | 1185 |
1194 /** @domName WebKitCSSMatrix.m22; @docsEditable true */ | 1186 /// @domName WebKitCSSMatrix.m22; @docsEditable true |
1195 num m22; | 1187 num m22; |
1196 | 1188 |
1197 /** @domName WebKitCSSMatrix.m23; @docsEditable true */ | 1189 /// @domName WebKitCSSMatrix.m23; @docsEditable true |
1198 num m23; | 1190 num m23; |
1199 | 1191 |
1200 /** @domName WebKitCSSMatrix.m24; @docsEditable true */ | 1192 /// @domName WebKitCSSMatrix.m24; @docsEditable true |
1201 num m24; | 1193 num m24; |
1202 | 1194 |
1203 /** @domName WebKitCSSMatrix.m31; @docsEditable true */ | 1195 /// @domName WebKitCSSMatrix.m31; @docsEditable true |
1204 num m31; | 1196 num m31; |
1205 | 1197 |
1206 /** @domName WebKitCSSMatrix.m32; @docsEditable true */ | 1198 /// @domName WebKitCSSMatrix.m32; @docsEditable true |
1207 num m32; | 1199 num m32; |
1208 | 1200 |
1209 /** @domName WebKitCSSMatrix.m33; @docsEditable true */ | 1201 /// @domName WebKitCSSMatrix.m33; @docsEditable true |
1210 num m33; | 1202 num m33; |
1211 | 1203 |
1212 /** @domName WebKitCSSMatrix.m34; @docsEditable true */ | 1204 /// @domName WebKitCSSMatrix.m34; @docsEditable true |
1213 num m34; | 1205 num m34; |
1214 | 1206 |
1215 /** @domName WebKitCSSMatrix.m41; @docsEditable true */ | 1207 /// @domName WebKitCSSMatrix.m41; @docsEditable true |
1216 num m41; | 1208 num m41; |
1217 | 1209 |
1218 /** @domName WebKitCSSMatrix.m42; @docsEditable true */ | 1210 /// @domName WebKitCSSMatrix.m42; @docsEditable true |
1219 num m42; | 1211 num m42; |
1220 | 1212 |
1221 /** @domName WebKitCSSMatrix.m43; @docsEditable true */ | 1213 /// @domName WebKitCSSMatrix.m43; @docsEditable true |
1222 num m43; | 1214 num m43; |
1223 | 1215 |
1224 /** @domName WebKitCSSMatrix.m44; @docsEditable true */ | 1216 /// @domName WebKitCSSMatrix.m44; @docsEditable true |
1225 num m44; | 1217 num m44; |
1226 | 1218 |
1227 /** @domName WebKitCSSMatrix.inverse; @docsEditable true */ | 1219 /// @domName WebKitCSSMatrix.inverse; @docsEditable true |
1228 CSSMatrix inverse() native; | 1220 CSSMatrix inverse() native; |
1229 | 1221 |
1230 /** @domName WebKitCSSMatrix.multiply; @docsEditable true */ | 1222 /// @domName WebKitCSSMatrix.multiply; @docsEditable true |
1231 CSSMatrix multiply(CSSMatrix secondMatrix) native; | 1223 CSSMatrix multiply(CSSMatrix secondMatrix) native; |
1232 | 1224 |
1233 /** @domName WebKitCSSMatrix.rotate; @docsEditable true */ | 1225 /// @domName WebKitCSSMatrix.rotate; @docsEditable true |
1234 CSSMatrix rotate(num rotX, num rotY, num rotZ) native; | 1226 CSSMatrix rotate(num rotX, num rotY, num rotZ) native; |
1235 | 1227 |
1236 /** @domName WebKitCSSMatrix.rotateAxisAngle; @docsEditable true */ | 1228 /// @domName WebKitCSSMatrix.rotateAxisAngle; @docsEditable true |
1237 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native; | 1229 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native; |
1238 | 1230 |
1239 /** @domName WebKitCSSMatrix.scale; @docsEditable true */ | 1231 /// @domName WebKitCSSMatrix.scale; @docsEditable true |
1240 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native; | 1232 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native; |
1241 | 1233 |
1242 /** @domName WebKitCSSMatrix.setMatrixValue; @docsEditable true */ | 1234 /// @domName WebKitCSSMatrix.setMatrixValue; @docsEditable true |
1243 void setMatrixValue(String string) native; | 1235 void setMatrixValue(String string) native; |
1244 | 1236 |
1245 /** @domName WebKitCSSMatrix.skewX; @docsEditable true */ | 1237 /// @domName WebKitCSSMatrix.skewX; @docsEditable true |
1246 CSSMatrix skewX(num angle) native; | 1238 CSSMatrix skewX(num angle) native; |
1247 | 1239 |
1248 /** @domName WebKitCSSMatrix.skewY; @docsEditable true */ | 1240 /// @domName WebKitCSSMatrix.skewY; @docsEditable true |
1249 CSSMatrix skewY(num angle) native; | 1241 CSSMatrix skewY(num angle) native; |
1250 | 1242 |
1251 /** @domName WebKitCSSMatrix.toString; @docsEditable true */ | 1243 /// @domName WebKitCSSMatrix.toString; @docsEditable true |
1252 String toString() native; | 1244 String toString() native; |
1253 | 1245 |
1254 /** @domName WebKitCSSMatrix.translate; @docsEditable true */ | 1246 /// @domName WebKitCSSMatrix.translate; @docsEditable true |
1255 CSSMatrix translate(num x, num y, num z) native; | 1247 CSSMatrix translate(num x, num y, num z) native; |
1256 } | 1248 } |
1257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1258 // for details. All rights reserved. Use of this source code is governed by a | 1250 // for details. All rights reserved. Use of this source code is governed by a |
1259 // BSD-style license that can be found in the LICENSE file. | 1251 // BSD-style license that can be found in the LICENSE file. |
1260 | 1252 |
1261 | 1253 |
1262 /// @domName CSSMediaRule; @docsEditable true | 1254 /// @domName CSSMediaRule; @docsEditable true |
1263 class CSSMediaRule extends CSSRule native "*CSSMediaRule" { | 1255 class CSSMediaRule extends CSSRule native "*CSSMediaRule" { |
1264 | 1256 |
1265 /** @domName CSSMediaRule.cssRules; @docsEditable true */ | 1257 /// @domName CSSMediaRule.cssRules; @docsEditable true |
1266 @Returns('_CSSRuleList') @Creates('_CSSRuleList') | 1258 @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
1267 final List<CSSRule> cssRules; | 1259 final List<CSSRule> cssRules; |
1268 | 1260 |
1269 /** @domName CSSMediaRule.media; @docsEditable true */ | 1261 /// @domName CSSMediaRule.media; @docsEditable true |
1270 final MediaList media; | 1262 final MediaList media; |
1271 | 1263 |
1272 /** @domName CSSMediaRule.deleteRule; @docsEditable true */ | 1264 /// @domName CSSMediaRule.deleteRule; @docsEditable true |
1273 void deleteRule(int index) native; | 1265 void deleteRule(int index) native; |
1274 | 1266 |
1275 /** @domName CSSMediaRule.insertRule; @docsEditable true */ | 1267 /// @domName CSSMediaRule.insertRule; @docsEditable true |
1276 int insertRule(String rule, int index) native; | 1268 int insertRule(String rule, int index) native; |
1277 } | 1269 } |
1278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1279 // for details. All rights reserved. Use of this source code is governed by a | 1271 // for details. All rights reserved. Use of this source code is governed by a |
1280 // BSD-style license that can be found in the LICENSE file. | 1272 // BSD-style license that can be found in the LICENSE file. |
1281 | 1273 |
1282 | 1274 |
1283 /// @domName CSSPageRule; @docsEditable true | 1275 /// @domName CSSPageRule; @docsEditable true |
1284 class CSSPageRule extends CSSRule native "*CSSPageRule" { | 1276 class CSSPageRule extends CSSRule native "*CSSPageRule" { |
1285 | 1277 |
1286 /** @domName CSSPageRule.selectorText; @docsEditable true */ | 1278 /// @domName CSSPageRule.selectorText; @docsEditable true |
1287 String selectorText; | 1279 String selectorText; |
1288 | 1280 |
1289 /** @domName CSSPageRule.style; @docsEditable true */ | 1281 /// @domName CSSPageRule.style; @docsEditable true |
1290 final CSSStyleDeclaration style; | 1282 final CSSStyleDeclaration style; |
1291 } | 1283 } |
1292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1293 // for details. All rights reserved. Use of this source code is governed by a | 1285 // for details. All rights reserved. Use of this source code is governed by a |
1294 // BSD-style license that can be found in the LICENSE file. | 1286 // BSD-style license that can be found in the LICENSE file. |
1295 | 1287 |
1296 | 1288 |
1297 /// @domName CSSPrimitiveValue; @docsEditable true | 1289 /// @domName CSSPrimitiveValue; @docsEditable true |
1298 class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" { | 1290 class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" { |
1299 | 1291 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1348 static const int CSS_UNKNOWN = 0; | 1340 static const int CSS_UNKNOWN = 0; |
1349 | 1341 |
1350 static const int CSS_URI = 20; | 1342 static const int CSS_URI = 20; |
1351 | 1343 |
1352 static const int CSS_VH = 27; | 1344 static const int CSS_VH = 27; |
1353 | 1345 |
1354 static const int CSS_VMIN = 28; | 1346 static const int CSS_VMIN = 28; |
1355 | 1347 |
1356 static const int CSS_VW = 26; | 1348 static const int CSS_VW = 26; |
1357 | 1349 |
1358 /** @domName CSSPrimitiveValue.primitiveType; @docsEditable true */ | 1350 /// @domName CSSPrimitiveValue.primitiveType; @docsEditable true |
1359 final int primitiveType; | 1351 final int primitiveType; |
1360 | 1352 |
1361 /** @domName CSSPrimitiveValue.getCounterValue; @docsEditable true */ | 1353 /// @domName CSSPrimitiveValue.getCounterValue; @docsEditable true |
1362 Counter getCounterValue() native; | 1354 Counter getCounterValue() native; |
1363 | 1355 |
1364 /** @domName CSSPrimitiveValue.getFloatValue; @docsEditable true */ | 1356 /// @domName CSSPrimitiveValue.getFloatValue; @docsEditable true |
1365 num getFloatValue(int unitType) native; | 1357 num getFloatValue(int unitType) native; |
1366 | 1358 |
1367 /** @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true */ | 1359 /// @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true |
1368 RGBColor getRGBColorValue() native; | 1360 RGBColor getRGBColorValue() native; |
1369 | 1361 |
1370 /** @domName CSSPrimitiveValue.getRectValue; @docsEditable true */ | 1362 /// @domName CSSPrimitiveValue.getRectValue; @docsEditable true |
1371 Rect getRectValue() native; | 1363 Rect getRectValue() native; |
1372 | 1364 |
1373 /** @domName CSSPrimitiveValue.getStringValue; @docsEditable true */ | 1365 /// @domName CSSPrimitiveValue.getStringValue; @docsEditable true |
1374 String getStringValue() native; | 1366 String getStringValue() native; |
1375 | 1367 |
1376 /** @domName CSSPrimitiveValue.setFloatValue; @docsEditable true */ | 1368 /// @domName CSSPrimitiveValue.setFloatValue; @docsEditable true |
1377 void setFloatValue(int unitType, num floatValue) native; | 1369 void setFloatValue(int unitType, num floatValue) native; |
1378 | 1370 |
1379 /** @domName CSSPrimitiveValue.setStringValue; @docsEditable true */ | 1371 /// @domName CSSPrimitiveValue.setStringValue; @docsEditable true |
1380 void setStringValue(int stringType, String stringValue) native; | 1372 void setStringValue(int stringType, String stringValue) native; |
1381 } | 1373 } |
1382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1383 // for details. All rights reserved. Use of this source code is governed by a | 1375 // for details. All rights reserved. Use of this source code is governed by a |
1384 // BSD-style license that can be found in the LICENSE file. | 1376 // BSD-style license that can be found in the LICENSE file. |
1385 | 1377 |
1386 | 1378 |
1387 /// @domName CSSRule; @docsEditable true | 1379 /// @domName CSSRule; @docsEditable true |
1388 class CSSRule native "*CSSRule" { | 1380 class CSSRule native "*CSSRule" { |
1389 | 1381 |
1390 static const int CHARSET_RULE = 2; | 1382 static const int CHARSET_RULE = 2; |
1391 | 1383 |
1392 static const int FONT_FACE_RULE = 5; | 1384 static const int FONT_FACE_RULE = 5; |
1393 | 1385 |
1394 static const int IMPORT_RULE = 3; | 1386 static const int IMPORT_RULE = 3; |
1395 | 1387 |
1396 static const int MEDIA_RULE = 4; | 1388 static const int MEDIA_RULE = 4; |
1397 | 1389 |
1398 static const int PAGE_RULE = 6; | 1390 static const int PAGE_RULE = 6; |
1399 | 1391 |
1400 static const int STYLE_RULE = 1; | 1392 static const int STYLE_RULE = 1; |
1401 | 1393 |
1402 static const int UNKNOWN_RULE = 0; | 1394 static const int UNKNOWN_RULE = 0; |
1403 | 1395 |
1404 static const int WEBKIT_KEYFRAMES_RULE = 7; | 1396 static const int WEBKIT_KEYFRAMES_RULE = 7; |
1405 | 1397 |
1406 static const int WEBKIT_KEYFRAME_RULE = 8; | 1398 static const int WEBKIT_KEYFRAME_RULE = 8; |
1407 | 1399 |
1408 /** @domName CSSRule.cssText; @docsEditable true */ | 1400 /// @domName CSSRule.cssText; @docsEditable true |
1409 String cssText; | 1401 String cssText; |
1410 | 1402 |
1411 /** @domName CSSRule.parentRule; @docsEditable true */ | 1403 /// @domName CSSRule.parentRule; @docsEditable true |
1412 final CSSRule parentRule; | 1404 final CSSRule parentRule; |
1413 | 1405 |
1414 /** @domName CSSRule.parentStyleSheet; @docsEditable true */ | 1406 /// @domName CSSRule.parentStyleSheet; @docsEditable true |
1415 final CSSStyleSheet parentStyleSheet; | 1407 final CSSStyleSheet parentStyleSheet; |
1416 | 1408 |
1417 /** @domName CSSRule.type; @docsEditable true */ | 1409 /// @domName CSSRule.type; @docsEditable true |
1418 final int type; | 1410 final int type; |
1419 } | 1411 } |
1420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1421 // for details. All rights reserved. Use of this source code is governed by a | 1413 // for details. All rights reserved. Use of this source code is governed by a |
1422 // BSD-style license that can be found in the LICENSE file. | 1414 // BSD-style license that can be found in the LICENSE file. |
1423 | 1415 |
1424 | 1416 |
1425 String _cachedBrowserPrefix; | 1417 String _cachedBrowserPrefix; |
1426 | 1418 |
1427 String get _browserPrefix { | 1419 String get _browserPrefix { |
(...skipping 10 matching lines...) Expand all Loading... |
1438 } | 1430 } |
1439 return _cachedBrowserPrefix; | 1431 return _cachedBrowserPrefix; |
1440 } | 1432 } |
1441 | 1433 |
1442 class CSSStyleDeclaration native "*CSSStyleDeclaration" { | 1434 class CSSStyleDeclaration native "*CSSStyleDeclaration" { |
1443 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS
StyleDeclaration(); | 1435 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS
StyleDeclaration(); |
1444 factory CSSStyleDeclaration.css(String css) => | 1436 factory CSSStyleDeclaration.css(String css) => |
1445 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css); | 1437 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css); |
1446 | 1438 |
1447 | 1439 |
1448 /** @domName CSSStyleDeclaration.cssText; @docsEditable true */ | 1440 /// @domName CSSStyleDeclaration.cssText; @docsEditable true |
1449 String cssText; | 1441 String cssText; |
1450 | 1442 |
1451 /** @domName CSSStyleDeclaration.length; @docsEditable true */ | 1443 /// @domName CSSStyleDeclaration.length; @docsEditable true |
1452 final int length; | 1444 final int length; |
1453 | 1445 |
1454 /** @domName CSSStyleDeclaration.parentRule; @docsEditable true */ | 1446 /// @domName CSSStyleDeclaration.parentRule; @docsEditable true |
1455 final CSSRule parentRule; | 1447 final CSSRule parentRule; |
1456 | 1448 |
1457 /** @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true */ | 1449 /// @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true |
1458 CSSValue getPropertyCSSValue(String propertyName) native; | 1450 CSSValue getPropertyCSSValue(String propertyName) native; |
1459 | 1451 |
1460 /** @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true */ | 1452 /// @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true |
1461 String getPropertyPriority(String propertyName) native; | 1453 String getPropertyPriority(String propertyName) native; |
1462 | 1454 |
1463 /** @domName CSSStyleDeclaration.getPropertyShorthand; @docsEditable true */ | 1455 /// @domName CSSStyleDeclaration.getPropertyShorthand; @docsEditable true |
1464 String getPropertyShorthand(String propertyName) native; | 1456 String getPropertyShorthand(String propertyName) native; |
1465 | 1457 |
1466 /** @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true */ | 1458 /// @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true |
1467 String _getPropertyValue(String propertyName) native "getPropertyValue"; | 1459 String _getPropertyValue(String propertyName) native "getPropertyValue"; |
1468 | 1460 |
1469 /** @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true */ | 1461 /// @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true |
1470 bool isPropertyImplicit(String propertyName) native; | 1462 bool isPropertyImplicit(String propertyName) native; |
1471 | 1463 |
1472 /** @domName CSSStyleDeclaration.item; @docsEditable true */ | 1464 /// @domName CSSStyleDeclaration.item; @docsEditable true |
1473 String item(int index) native; | 1465 String item(int index) native; |
1474 | 1466 |
1475 /** @domName CSSStyleDeclaration.removeProperty; @docsEditable true */ | 1467 /// @domName CSSStyleDeclaration.removeProperty; @docsEditable true |
1476 String removeProperty(String propertyName) native; | 1468 String removeProperty(String propertyName) native; |
1477 | 1469 |
1478 | 1470 |
1479 String getPropertyValue(String propertyName) { | 1471 String getPropertyValue(String propertyName) { |
1480 var propValue = _getPropertyValue(propertyName); | 1472 var propValue = _getPropertyValue(propertyName); |
1481 return propValue != null ? propValue : ''; | 1473 return propValue != null ? propValue : ''; |
1482 } | 1474 } |
1483 | 1475 |
1484 void setProperty(String propertyName, String value, [String priority]) { | 1476 void setProperty(String propertyName, String value, [String priority]) { |
1485 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); | 1477 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); |
(...skipping 3155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4641 } | 4633 } |
4642 } | 4634 } |
4643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4644 // for details. All rights reserved. Use of this source code is governed by a | 4636 // for details. All rights reserved. Use of this source code is governed by a |
4645 // BSD-style license that can be found in the LICENSE file. | 4637 // BSD-style license that can be found in the LICENSE file. |
4646 | 4638 |
4647 | 4639 |
4648 /// @domName CSSStyleRule; @docsEditable true | 4640 /// @domName CSSStyleRule; @docsEditable true |
4649 class CSSStyleRule extends CSSRule native "*CSSStyleRule" { | 4641 class CSSStyleRule extends CSSRule native "*CSSStyleRule" { |
4650 | 4642 |
4651 /** @domName CSSStyleRule.selectorText; @docsEditable true */ | 4643 /// @domName CSSStyleRule.selectorText; @docsEditable true |
4652 String selectorText; | 4644 String selectorText; |
4653 | 4645 |
4654 /** @domName CSSStyleRule.style; @docsEditable true */ | 4646 /// @domName CSSStyleRule.style; @docsEditable true |
4655 final CSSStyleDeclaration style; | 4647 final CSSStyleDeclaration style; |
4656 } | 4648 } |
4657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4658 // for details. All rights reserved. Use of this source code is governed by a | 4650 // for details. All rights reserved. Use of this source code is governed by a |
4659 // BSD-style license that can be found in the LICENSE file. | 4651 // BSD-style license that can be found in the LICENSE file. |
4660 | 4652 |
4661 | 4653 |
4662 /// @domName CSSStyleSheet; @docsEditable true | 4654 /// @domName CSSStyleSheet; @docsEditable true |
4663 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" { | 4655 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" { |
4664 | 4656 |
4665 /** @domName CSSStyleSheet.cssRules; @docsEditable true */ | 4657 /// @domName CSSStyleSheet.cssRules; @docsEditable true |
4666 @Returns('_CSSRuleList') @Creates('_CSSRuleList') | 4658 @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
4667 final List<CSSRule> cssRules; | 4659 final List<CSSRule> cssRules; |
4668 | 4660 |
4669 /** @domName CSSStyleSheet.ownerRule; @docsEditable true */ | 4661 /// @domName CSSStyleSheet.ownerRule; @docsEditable true |
4670 final CSSRule ownerRule; | 4662 final CSSRule ownerRule; |
4671 | 4663 |
4672 /** @domName CSSStyleSheet.rules; @docsEditable true */ | 4664 /// @domName CSSStyleSheet.rules; @docsEditable true |
4673 @Returns('_CSSRuleList') @Creates('_CSSRuleList') | 4665 @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
4674 final List<CSSRule> rules; | 4666 final List<CSSRule> rules; |
4675 | 4667 |
4676 /** @domName CSSStyleSheet.addRule; @docsEditable true */ | 4668 /// @domName CSSStyleSheet.addRule; @docsEditable true |
4677 int addRule(String selector, String style, [int index]) native; | 4669 int addRule(String selector, String style, [int index]) native; |
4678 | 4670 |
4679 /** @domName CSSStyleSheet.deleteRule; @docsEditable true */ | 4671 /// @domName CSSStyleSheet.deleteRule; @docsEditable true |
4680 void deleteRule(int index) native; | 4672 void deleteRule(int index) native; |
4681 | 4673 |
4682 /** @domName CSSStyleSheet.insertRule; @docsEditable true */ | 4674 /// @domName CSSStyleSheet.insertRule; @docsEditable true |
4683 int insertRule(String rule, int index) native; | 4675 int insertRule(String rule, int index) native; |
4684 | 4676 |
4685 /** @domName CSSStyleSheet.removeRule; @docsEditable true */ | 4677 /// @domName CSSStyleSheet.removeRule; @docsEditable true |
4686 void removeRule(int index) native; | 4678 void removeRule(int index) native; |
4687 } | 4679 } |
4688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4689 // for details. All rights reserved. Use of this source code is governed by a | 4681 // for details. All rights reserved. Use of this source code is governed by a |
4690 // BSD-style license that can be found in the LICENSE file. | 4682 // BSD-style license that can be found in the LICENSE file. |
4691 | 4683 |
4692 | 4684 |
4693 /// @domName WebKitCSSTransformValue; @docsEditable true | 4685 /// @domName WebKitCSSTransformValue; @docsEditable true |
4694 class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue"
{ | 4686 class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue"
{ |
4695 | 4687 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4728 static const int CSS_TRANSLATE = 1; | 4720 static const int CSS_TRANSLATE = 1; |
4729 | 4721 |
4730 static const int CSS_TRANSLATE3D = 13; | 4722 static const int CSS_TRANSLATE3D = 13; |
4731 | 4723 |
4732 static const int CSS_TRANSLATEX = 2; | 4724 static const int CSS_TRANSLATEX = 2; |
4733 | 4725 |
4734 static const int CSS_TRANSLATEY = 3; | 4726 static const int CSS_TRANSLATEY = 3; |
4735 | 4727 |
4736 static const int CSS_TRANSLATEZ = 12; | 4728 static const int CSS_TRANSLATEZ = 12; |
4737 | 4729 |
4738 /** @domName WebKitCSSTransformValue.operationType; @docsEditable true */ | 4730 /// @domName WebKitCSSTransformValue.operationType; @docsEditable true |
4739 final int operationType; | 4731 final int operationType; |
4740 } | 4732 } |
4741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4742 // for details. All rights reserved. Use of this source code is governed by a | 4734 // for details. All rights reserved. Use of this source code is governed by a |
4743 // BSD-style license that can be found in the LICENSE file. | 4735 // BSD-style license that can be found in the LICENSE file. |
4744 | 4736 |
4745 | 4737 |
4746 /// @domName CSSUnknownRule; @docsEditable true | 4738 /// @domName CSSUnknownRule; @docsEditable true |
4747 class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" { | 4739 class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" { |
4748 } | 4740 } |
4749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4750 // for details. All rights reserved. Use of this source code is governed by a | 4742 // for details. All rights reserved. Use of this source code is governed by a |
4751 // BSD-style license that can be found in the LICENSE file. | 4743 // BSD-style license that can be found in the LICENSE file. |
4752 | 4744 |
4753 | 4745 |
4754 /// @domName CSSValue; @docsEditable true | 4746 /// @domName CSSValue; @docsEditable true |
4755 class CSSValue native "*CSSValue" { | 4747 class CSSValue native "*CSSValue" { |
4756 | 4748 |
4757 static const int CSS_CUSTOM = 3; | 4749 static const int CSS_CUSTOM = 3; |
4758 | 4750 |
4759 static const int CSS_INHERIT = 0; | 4751 static const int CSS_INHERIT = 0; |
4760 | 4752 |
4761 static const int CSS_PRIMITIVE_VALUE = 1; | 4753 static const int CSS_PRIMITIVE_VALUE = 1; |
4762 | 4754 |
4763 static const int CSS_VALUE_LIST = 2; | 4755 static const int CSS_VALUE_LIST = 2; |
4764 | 4756 |
4765 /** @domName CSSValue.cssText; @docsEditable true */ | 4757 /// @domName CSSValue.cssText; @docsEditable true |
4766 String cssText; | 4758 String cssText; |
4767 | 4759 |
4768 /** @domName CSSValue.cssValueType; @docsEditable true */ | 4760 /// @domName CSSValue.cssValueType; @docsEditable true |
4769 final int cssValueType; | 4761 final int cssValueType; |
4770 } | 4762 } |
4771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4772 // for details. All rights reserved. Use of this source code is governed by a | 4764 // for details. All rights reserved. Use of this source code is governed by a |
4773 // BSD-style license that can be found in the LICENSE file. | 4765 // BSD-style license that can be found in the LICENSE file. |
4774 | 4766 |
4775 | 4767 |
4776 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen
t" { | 4768 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen
t" { |
4777 | 4769 |
4778 factory CanvasElement({int width, int height}) { | 4770 factory CanvasElement({int width, int height}) { |
4779 var e = document.$dom_createElement("canvas"); | 4771 var e = document.$dom_createElement("canvas"); |
4780 if (width != null) e.width = width; | 4772 if (width != null) e.width = width; |
4781 if (height != null) e.height = height; | 4773 if (height != null) e.height = height; |
4782 return e; | 4774 return e; |
4783 } | 4775 } |
4784 | 4776 |
4785 /** @domName HTMLCanvasElement.height; @docsEditable true */ | 4777 /// @domName HTMLCanvasElement.height; @docsEditable true |
4786 int height; | 4778 int height; |
4787 | 4779 |
4788 /** @domName HTMLCanvasElement.width; @docsEditable true */ | 4780 /// @domName HTMLCanvasElement.width; @docsEditable true |
4789 int width; | 4781 int width; |
4790 | 4782 |
4791 /** @domName HTMLCanvasElement.toDataURL; @docsEditable true */ | 4783 /// @domName HTMLCanvasElement.toDataURL; @docsEditable true |
4792 String toDataURL(String type, [num quality]) native; | 4784 String toDataURL(String type, [num quality]) native; |
4793 | 4785 |
4794 | 4786 |
4795 CanvasRenderingContext getContext(String contextId) native; | 4787 CanvasRenderingContext getContext(String contextId) native; |
4796 CanvasRenderingContext2D get context2d => getContext('2d'); | 4788 CanvasRenderingContext2D get context2d => getContext('2d'); |
4797 } | 4789 } |
4798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4799 // for details. All rights reserved. Use of this source code is governed by a | 4791 // for details. All rights reserved. Use of this source code is governed by a |
4800 // BSD-style license that can be found in the LICENSE file. | 4792 // BSD-style license that can be found in the LICENSE file. |
4801 | 4793 |
4802 | 4794 |
4803 /// @domName CanvasGradient; @docsEditable true | 4795 /// @domName CanvasGradient; @docsEditable true |
4804 class CanvasGradient native "*CanvasGradient" { | 4796 class CanvasGradient native "*CanvasGradient" { |
4805 | 4797 |
4806 /** @domName CanvasGradient.addColorStop; @docsEditable true */ | 4798 /// @domName CanvasGradient.addColorStop; @docsEditable true |
4807 void addColorStop(num offset, String color) native; | 4799 void addColorStop(num offset, String color) native; |
4808 } | 4800 } |
4809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4810 // for details. All rights reserved. Use of this source code is governed by a | 4802 // for details. All rights reserved. Use of this source code is governed by a |
4811 // BSD-style license that can be found in the LICENSE file. | 4803 // BSD-style license that can be found in the LICENSE file. |
4812 | 4804 |
4813 | 4805 |
4814 /// @domName CanvasPattern; @docsEditable true | 4806 /// @domName CanvasPattern; @docsEditable true |
4815 class CanvasPattern native "*CanvasPattern" { | 4807 class CanvasPattern native "*CanvasPattern" { |
4816 } | 4808 } |
4817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4818 // for details. All rights reserved. Use of this source code is governed by a | 4810 // for details. All rights reserved. Use of this source code is governed by a |
4819 // BSD-style license that can be found in the LICENSE file. | 4811 // BSD-style license that can be found in the LICENSE file. |
4820 | 4812 |
4821 | 4813 |
4822 /// @domName CanvasRenderingContext; @docsEditable true | 4814 /// @domName CanvasRenderingContext; @docsEditable true |
4823 class CanvasRenderingContext native "*CanvasRenderingContext" { | 4815 class CanvasRenderingContext native "*CanvasRenderingContext" { |
4824 | 4816 |
4825 /** @domName CanvasRenderingContext.canvas; @docsEditable true */ | 4817 /// @domName CanvasRenderingContext.canvas; @docsEditable true |
4826 final CanvasElement canvas; | 4818 final CanvasElement canvas; |
4827 } | 4819 } |
4828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4829 // for details. All rights reserved. Use of this source code is governed by a | 4821 // for details. All rights reserved. Use of this source code is governed by a |
4830 // BSD-style license that can be found in the LICENSE file. | 4822 // BSD-style license that can be found in the LICENSE file. |
4831 | 4823 |
4832 | 4824 |
4833 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
deringContext2D" { | 4825 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
deringContext2D" { |
4834 | 4826 |
4835 /** @domName CanvasRenderingContext2D.fillStyle; @docsEditable true */ | 4827 /// @domName CanvasRenderingContext2D.fillStyle; @docsEditable true |
4836 dynamic fillStyle; | 4828 dynamic fillStyle; |
4837 | 4829 |
4838 /** @domName CanvasRenderingContext2D.font; @docsEditable true */ | 4830 /// @domName CanvasRenderingContext2D.font; @docsEditable true |
4839 String font; | 4831 String font; |
4840 | 4832 |
4841 /** @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true */ | 4833 /// @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true |
4842 num globalAlpha; | 4834 num globalAlpha; |
4843 | 4835 |
4844 /** @domName CanvasRenderingContext2D.globalCompositeOperation; @docsEditable
true */ | 4836 /// @domName CanvasRenderingContext2D.globalCompositeOperation; @docsEditable
true |
4845 String globalCompositeOperation; | 4837 String globalCompositeOperation; |
4846 | 4838 |
4847 /** @domName CanvasRenderingContext2D.lineCap; @docsEditable true */ | 4839 /// @domName CanvasRenderingContext2D.lineCap; @docsEditable true |
4848 String lineCap; | 4840 String lineCap; |
4849 | 4841 |
4850 /** @domName CanvasRenderingContext2D.lineDashOffset; @docsEditable true */ | 4842 /// @domName CanvasRenderingContext2D.lineDashOffset; @docsEditable true |
4851 num lineDashOffset; | 4843 num lineDashOffset; |
4852 | 4844 |
4853 /** @domName CanvasRenderingContext2D.lineJoin; @docsEditable true */ | 4845 /// @domName CanvasRenderingContext2D.lineJoin; @docsEditable true |
4854 String lineJoin; | 4846 String lineJoin; |
4855 | 4847 |
4856 /** @domName CanvasRenderingContext2D.lineWidth; @docsEditable true */ | 4848 /// @domName CanvasRenderingContext2D.lineWidth; @docsEditable true |
4857 num lineWidth; | 4849 num lineWidth; |
4858 | 4850 |
4859 /** @domName CanvasRenderingContext2D.miterLimit; @docsEditable true */ | 4851 /// @domName CanvasRenderingContext2D.miterLimit; @docsEditable true |
4860 num miterLimit; | 4852 num miterLimit; |
4861 | 4853 |
4862 /** @domName CanvasRenderingContext2D.shadowBlur; @docsEditable true */ | 4854 /// @domName CanvasRenderingContext2D.shadowBlur; @docsEditable true |
4863 num shadowBlur; | 4855 num shadowBlur; |
4864 | 4856 |
4865 /** @domName CanvasRenderingContext2D.shadowColor; @docsEditable true */ | 4857 /// @domName CanvasRenderingContext2D.shadowColor; @docsEditable true |
4866 String shadowColor; | 4858 String shadowColor; |
4867 | 4859 |
4868 /** @domName CanvasRenderingContext2D.shadowOffsetX; @docsEditable true */ | 4860 /// @domName CanvasRenderingContext2D.shadowOffsetX; @docsEditable true |
4869 num shadowOffsetX; | 4861 num shadowOffsetX; |
4870 | 4862 |
4871 /** @domName CanvasRenderingContext2D.shadowOffsetY; @docsEditable true */ | 4863 /// @domName CanvasRenderingContext2D.shadowOffsetY; @docsEditable true |
4872 num shadowOffsetY; | 4864 num shadowOffsetY; |
4873 | 4865 |
4874 /** @domName CanvasRenderingContext2D.strokeStyle; @docsEditable true */ | 4866 /// @domName CanvasRenderingContext2D.strokeStyle; @docsEditable true |
4875 dynamic strokeStyle; | 4867 dynamic strokeStyle; |
4876 | 4868 |
4877 /** @domName CanvasRenderingContext2D.textAlign; @docsEditable true */ | 4869 /// @domName CanvasRenderingContext2D.textAlign; @docsEditable true |
4878 String textAlign; | 4870 String textAlign; |
4879 | 4871 |
4880 /** @domName CanvasRenderingContext2D.textBaseline; @docsEditable true */ | 4872 /// @domName CanvasRenderingContext2D.textBaseline; @docsEditable true |
4881 String textBaseline; | 4873 String textBaseline; |
4882 | 4874 |
4883 /** @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio; @docsEdita
ble true */ | 4875 /// @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio; @docsEdita
ble true |
4884 final num webkitBackingStorePixelRatio; | 4876 final num webkitBackingStorePixelRatio; |
4885 | 4877 |
4886 /** @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled; @docsEditab
le true */ | 4878 /// @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled; @docsEditab
le true |
4887 bool webkitImageSmoothingEnabled; | 4879 bool webkitImageSmoothingEnabled; |
4888 | 4880 |
4889 /** @domName CanvasRenderingContext2D.webkitLineDash; @docsEditable true */ | 4881 /// @domName CanvasRenderingContext2D.webkitLineDash; @docsEditable true |
4890 List webkitLineDash; | 4882 List webkitLineDash; |
4891 | 4883 |
4892 /** @domName CanvasRenderingContext2D.webkitLineDashOffset; @docsEditable true
*/ | 4884 /// @domName CanvasRenderingContext2D.webkitLineDashOffset; @docsEditable true |
4893 num webkitLineDashOffset; | 4885 num webkitLineDashOffset; |
4894 | 4886 |
4895 /** @domName CanvasRenderingContext2D.arc; @docsEditable true */ | 4887 /// @domName CanvasRenderingContext2D.arc; @docsEditable true |
4896 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | 4888 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; |
4897 | 4889 |
4898 /** @domName CanvasRenderingContext2D.arcTo; @docsEditable true */ | 4890 /// @domName CanvasRenderingContext2D.arcTo; @docsEditable true |
4899 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | 4891 void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
4900 | 4892 |
4901 /** @domName CanvasRenderingContext2D.beginPath; @docsEditable true */ | 4893 /// @domName CanvasRenderingContext2D.beginPath; @docsEditable true |
4902 void beginPath() native; | 4894 void beginPath() native; |
4903 | 4895 |
4904 /** @domName CanvasRenderingContext2D.bezierCurveTo; @docsEditable true */ | 4896 /// @domName CanvasRenderingContext2D.bezierCurveTo; @docsEditable true |
4905 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 4897 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
4906 | 4898 |
4907 /** @domName CanvasRenderingContext2D.clearRect; @docsEditable true */ | 4899 /// @domName CanvasRenderingContext2D.clearRect; @docsEditable true |
4908 void clearRect(num x, num y, num width, num height) native; | 4900 void clearRect(num x, num y, num width, num height) native; |
4909 | 4901 |
4910 /** @domName CanvasRenderingContext2D.clearShadow; @docsEditable true */ | 4902 /// @domName CanvasRenderingContext2D.clearShadow; @docsEditable true |
4911 void clearShadow() native; | 4903 void clearShadow() native; |
4912 | 4904 |
4913 /** @domName CanvasRenderingContext2D.clip; @docsEditable true */ | 4905 /// @domName CanvasRenderingContext2D.clip; @docsEditable true |
4914 void clip() native; | 4906 void clip() native; |
4915 | 4907 |
4916 /** @domName CanvasRenderingContext2D.closePath; @docsEditable true */ | 4908 /// @domName CanvasRenderingContext2D.closePath; @docsEditable true |
4917 void closePath() native; | 4909 void closePath() native; |
4918 | 4910 |
4919 /** @domName CanvasRenderingContext2D.createImageData; @docsEditable true */ | 4911 /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true |
4920 ImageData createImageData(imagedata_OR_sw, [num sh]) { | 4912 ImageData createImageData(imagedata_OR_sw, [num sh]) { |
4921 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw ==
null)) && | 4913 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw ==
null)) && |
4922 !?sh) { | 4914 !?sh) { |
4923 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); | 4915 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); |
4924 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); | 4916 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); |
4925 } | 4917 } |
4926 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null)
)) { | 4918 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null)
)) { |
4927 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); | 4919 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); |
4928 } | 4920 } |
4929 throw new ArgumentError("Incorrect number or type of arguments"); | 4921 throw new ArgumentError("Incorrect number or type of arguments"); |
4930 } | 4922 } |
4931 @Creates('ImageData|=Object') | 4923 @Creates('ImageData|=Object') |
4932 _createImageData_1(imagedata) native "createImageData"; | 4924 _createImageData_1(imagedata) native "createImageData"; |
4933 @Creates('ImageData|=Object') | 4925 @Creates('ImageData|=Object') |
4934 _createImageData_2(num sw, sh) native "createImageData"; | 4926 _createImageData_2(num sw, sh) native "createImageData"; |
4935 | 4927 |
4936 /** @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true
*/ | 4928 /// @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true |
4937 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 4929 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
4938 | 4930 |
4939 /** @domName CanvasRenderingContext2D.createPattern; @docsEditable true */ | 4931 /// @domName CanvasRenderingContext2D.createPattern; @docsEditable true |
4940 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; | 4932 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
4941 | 4933 |
4942 /** @domName CanvasRenderingContext2D.createRadialGradient; @docsEditable true
*/ | 4934 /// @domName CanvasRenderingContext2D.createRadialGradient; @docsEditable true |
4943 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; | 4935 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; |
4944 | 4936 |
4945 /** @domName CanvasRenderingContext2D.drawImage; @docsEditable true */ | 4937 /// @domName CanvasRenderingContext2D.drawImage; @docsEditable true |
4946 void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_
width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; | 4938 void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_
width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; |
4947 | 4939 |
4948 /** @domName CanvasRenderingContext2D.drawImageFromRect; @docsEditable true */ | 4940 /// @domName CanvasRenderingContext2D.drawImageFromRect; @docsEditable true |
4949 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu
m dx, num dy, num dw, num dh, String compositeOperation]) native; | 4941 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu
m dx, num dy, num dw, num dh, String compositeOperation]) native; |
4950 | 4942 |
4951 /** @domName CanvasRenderingContext2D.fill; @docsEditable true */ | 4943 /// @domName CanvasRenderingContext2D.fill; @docsEditable true |
4952 void fill() native; | 4944 void fill() native; |
4953 | 4945 |
4954 /** @domName CanvasRenderingContext2D.fillRect; @docsEditable true */ | 4946 /// @domName CanvasRenderingContext2D.fillRect; @docsEditable true |
4955 void fillRect(num x, num y, num width, num height) native; | 4947 void fillRect(num x, num y, num width, num height) native; |
4956 | 4948 |
4957 /** @domName CanvasRenderingContext2D.fillText; @docsEditable true */ | 4949 /// @domName CanvasRenderingContext2D.fillText; @docsEditable true |
4958 void fillText(String text, num x, num y, [num maxWidth]) native; | 4950 void fillText(String text, num x, num y, [num maxWidth]) native; |
4959 | 4951 |
4960 /** @domName CanvasRenderingContext2D.getImageData; @docsEditable true */ | 4952 /// @domName CanvasRenderingContext2D.getImageData; @docsEditable true |
4961 ImageData getImageData(num sx, num sy, num sw, num sh) { | 4953 ImageData getImageData(num sx, num sy, num sw, num sh) { |
4962 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); | 4954 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
4963 } | 4955 } |
4964 @Creates('ImageData|=Object') | 4956 @Creates('ImageData|=Object') |
4965 _getImageData_1(sx, sy, sw, sh) native "getImageData"; | 4957 _getImageData_1(sx, sy, sw, sh) native "getImageData"; |
4966 | 4958 |
4967 /** @domName CanvasRenderingContext2D.getLineDash; @docsEditable true */ | 4959 /// @domName CanvasRenderingContext2D.getLineDash; @docsEditable true |
4968 List<num> getLineDash() native; | 4960 List<num> getLineDash() native; |
4969 | 4961 |
4970 /** @domName CanvasRenderingContext2D.isPointInPath; @docsEditable true */ | 4962 /// @domName CanvasRenderingContext2D.isPointInPath; @docsEditable true |
4971 bool isPointInPath(num x, num y) native; | 4963 bool isPointInPath(num x, num y) native; |
4972 | 4964 |
4973 /** @domName CanvasRenderingContext2D.lineTo; @docsEditable true */ | 4965 /// @domName CanvasRenderingContext2D.lineTo; @docsEditable true |
4974 void lineTo(num x, num y) native; | 4966 void lineTo(num x, num y) native; |
4975 | 4967 |
4976 /** @domName CanvasRenderingContext2D.measureText; @docsEditable true */ | 4968 /// @domName CanvasRenderingContext2D.measureText; @docsEditable true |
4977 TextMetrics measureText(String text) native; | 4969 TextMetrics measureText(String text) native; |
4978 | 4970 |
4979 /** @domName CanvasRenderingContext2D.moveTo; @docsEditable true */ | 4971 /// @domName CanvasRenderingContext2D.moveTo; @docsEditable true |
4980 void moveTo(num x, num y) native; | 4972 void moveTo(num x, num y) native; |
4981 | 4973 |
4982 /** @domName CanvasRenderingContext2D.putImageData; @docsEditable true */ | 4974 /// @domName CanvasRenderingContext2D.putImageData; @docsEditable true |
4983 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { | 4975 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { |
4984 if (!?dirtyX && | 4976 if (!?dirtyX && |
4985 !?dirtyY && | 4977 !?dirtyY && |
4986 !?dirtyWidth && | 4978 !?dirtyWidth && |
4987 !?dirtyHeight) { | 4979 !?dirtyHeight) { |
4988 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 4980 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
4989 _putImageData_1(imagedata_1, dx, dy); | 4981 _putImageData_1(imagedata_1, dx, dy); |
4990 return; | 4982 return; |
4991 } | 4983 } |
4992 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 4984 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
4993 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight
); | 4985 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight
); |
4994 return; | 4986 return; |
4995 throw new ArgumentError("Incorrect number or type of arguments"); | 4987 throw new ArgumentError("Incorrect number or type of arguments"); |
4996 } | 4988 } |
4997 void _putImageData_1(imagedata, dx, dy) native "putImageData"; | 4989 void _putImageData_1(imagedata, dx, dy) native "putImageData"; |
4998 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native "putImageData"; | 4990 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native "putImageData"; |
4999 | 4991 |
5000 /** @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true */ | 4992 /// @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true |
5001 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 4993 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
5002 | 4994 |
5003 /** @domName CanvasRenderingContext2D.rect; @docsEditable true */ | 4995 /// @domName CanvasRenderingContext2D.rect; @docsEditable true |
5004 void rect(num x, num y, num width, num height) native; | 4996 void rect(num x, num y, num width, num height) native; |
5005 | 4997 |
5006 /** @domName CanvasRenderingContext2D.restore; @docsEditable true */ | 4998 /// @domName CanvasRenderingContext2D.restore; @docsEditable true |
5007 void restore() native; | 4999 void restore() native; |
5008 | 5000 |
5009 /** @domName CanvasRenderingContext2D.rotate; @docsEditable true */ | 5001 /// @domName CanvasRenderingContext2D.rotate; @docsEditable true |
5010 void rotate(num angle) native; | 5002 void rotate(num angle) native; |
5011 | 5003 |
5012 /** @domName CanvasRenderingContext2D.save; @docsEditable true */ | 5004 /// @domName CanvasRenderingContext2D.save; @docsEditable true |
5013 void save() native; | 5005 void save() native; |
5014 | 5006 |
5015 /** @domName CanvasRenderingContext2D.scale; @docsEditable true */ | 5007 /// @domName CanvasRenderingContext2D.scale; @docsEditable true |
5016 void scale(num sx, num sy) native; | 5008 void scale(num sx, num sy) native; |
5017 | 5009 |
5018 /** @domName CanvasRenderingContext2D.setAlpha; @docsEditable true */ | 5010 /// @domName CanvasRenderingContext2D.setAlpha; @docsEditable true |
5019 void setAlpha(num alpha) native; | 5011 void setAlpha(num alpha) native; |
5020 | 5012 |
5021 /** @domName CanvasRenderingContext2D.setCompositeOperation; @docsEditable tru
e */ | 5013 /// @domName CanvasRenderingContext2D.setCompositeOperation; @docsEditable tru
e |
5022 void setCompositeOperation(String compositeOperation) native; | 5014 void setCompositeOperation(String compositeOperation) native; |
5023 | 5015 |
5024 /** @domName CanvasRenderingContext2D.setLineCap; @docsEditable true */ | 5016 /// @domName CanvasRenderingContext2D.setLineCap; @docsEditable true |
5025 void setLineCap(String cap) native; | 5017 void setLineCap(String cap) native; |
5026 | 5018 |
5027 /** @domName CanvasRenderingContext2D.setLineDash; @docsEditable true */ | 5019 /// @domName CanvasRenderingContext2D.setLineDash; @docsEditable true |
5028 void setLineDash(List<num> dash) native; | 5020 void setLineDash(List<num> dash) native; |
5029 | 5021 |
5030 /** @domName CanvasRenderingContext2D.setLineJoin; @docsEditable true */ | 5022 /// @domName CanvasRenderingContext2D.setLineJoin; @docsEditable true |
5031 void setLineJoin(String join) native; | 5023 void setLineJoin(String join) native; |
5032 | 5024 |
5033 /** @domName CanvasRenderingContext2D.setLineWidth; @docsEditable true */ | 5025 /// @domName CanvasRenderingContext2D.setLineWidth; @docsEditable true |
5034 void setLineWidth(num width) native; | 5026 void setLineWidth(num width) native; |
5035 | 5027 |
5036 /** @domName CanvasRenderingContext2D.setMiterLimit; @docsEditable true */ | 5028 /// @domName CanvasRenderingContext2D.setMiterLimit; @docsEditable true |
5037 void setMiterLimit(num limit) native; | 5029 void setMiterLimit(num limit) native; |
5038 | 5030 |
5039 /** @domName CanvasRenderingContext2D.setShadow; @docsEditable true */ | 5031 /// @domName CanvasRenderingContext2D.setShadow; @docsEditable true |
5040 void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r,
num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native; | 5032 void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r,
num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native; |
5041 | 5033 |
5042 /** @domName CanvasRenderingContext2D.setTransform; @docsEditable true */ | 5034 /// @domName CanvasRenderingContext2D.setTransform; @docsEditable true |
5043 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 5035 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
5044 | 5036 |
5045 /** @domName CanvasRenderingContext2D.stroke; @docsEditable true */ | 5037 /// @domName CanvasRenderingContext2D.stroke; @docsEditable true |
5046 void stroke() native; | 5038 void stroke() native; |
5047 | 5039 |
5048 /** @domName CanvasRenderingContext2D.strokeRect; @docsEditable true */ | 5040 /// @domName CanvasRenderingContext2D.strokeRect; @docsEditable true |
5049 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; | 5041 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; |
5050 | 5042 |
5051 /** @domName CanvasRenderingContext2D.strokeText; @docsEditable true */ | 5043 /// @domName CanvasRenderingContext2D.strokeText; @docsEditable true |
5052 void strokeText(String text, num x, num y, [num maxWidth]) native; | 5044 void strokeText(String text, num x, num y, [num maxWidth]) native; |
5053 | 5045 |
5054 /** @domName CanvasRenderingContext2D.transform; @docsEditable true */ | 5046 /// @domName CanvasRenderingContext2D.transform; @docsEditable true |
5055 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 5047 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
5056 | 5048 |
5057 /** @domName CanvasRenderingContext2D.translate; @docsEditable true */ | 5049 /// @domName CanvasRenderingContext2D.translate; @docsEditable true |
5058 void translate(num tx, num ty) native; | 5050 void translate(num tx, num ty) native; |
5059 | 5051 |
5060 /** @domName CanvasRenderingContext2D.webkitGetImageDataHD; @docsEditable true
*/ | 5052 /// @domName CanvasRenderingContext2D.webkitGetImageDataHD; @docsEditable true |
5061 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { | 5053 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { |
5062 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh
)); | 5054 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh
)); |
5063 } | 5055 } |
5064 @Creates('ImageData|=Object') | 5056 @Creates('ImageData|=Object') |
5065 _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD"; | 5057 _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD"; |
5066 | 5058 |
5067 /** @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true
*/ | 5059 /// @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true |
5068 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu
m dirtyY, num dirtyWidth, num dirtyHeight]) { | 5060 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu
m dirtyY, num dirtyWidth, num dirtyHeight]) { |
5069 if (!?dirtyX && | 5061 if (!?dirtyX && |
5070 !?dirtyY && | 5062 !?dirtyY && |
5071 !?dirtyWidth && | 5063 !?dirtyWidth && |
5072 !?dirtyHeight) { | 5064 !?dirtyHeight) { |
5073 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 5065 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
5074 _webkitPutImageDataHD_1(imagedata_1, dx, dy); | 5066 _webkitPutImageDataHD_1(imagedata_1, dx, dy); |
5075 return; | 5067 return; |
5076 } | 5068 } |
5077 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 5069 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5136 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" { | 5128 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" { |
5137 } | 5129 } |
5138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5139 // for details. All rights reserved. Use of this source code is governed by a | 5131 // for details. All rights reserved. Use of this source code is governed by a |
5140 // BSD-style license that can be found in the LICENSE file. | 5132 // BSD-style license that can be found in the LICENSE file. |
5141 | 5133 |
5142 | 5134 |
5143 /// @domName CharacterData; @docsEditable true | 5135 /// @domName CharacterData; @docsEditable true |
5144 class CharacterData extends Node native "*CharacterData" { | 5136 class CharacterData extends Node native "*CharacterData" { |
5145 | 5137 |
5146 /** @domName CharacterData.data; @docsEditable true */ | 5138 /// @domName CharacterData.data; @docsEditable true |
5147 String data; | 5139 String data; |
5148 | 5140 |
5149 /** @domName CharacterData.length; @docsEditable true */ | 5141 /// @domName CharacterData.length; @docsEditable true |
5150 final int length; | 5142 final int length; |
5151 | 5143 |
5152 /** @domName CharacterData.appendData; @docsEditable true */ | 5144 /// @domName CharacterData.appendData; @docsEditable true |
5153 void appendData(String data) native; | 5145 void appendData(String data) native; |
5154 | 5146 |
5155 /** @domName CharacterData.deleteData; @docsEditable true */ | 5147 /// @domName CharacterData.deleteData; @docsEditable true |
5156 void deleteData(int offset, int length) native; | 5148 void deleteData(int offset, int length) native; |
5157 | 5149 |
5158 /** @domName CharacterData.insertData; @docsEditable true */ | 5150 /// @domName CharacterData.insertData; @docsEditable true |
5159 void insertData(int offset, String data) native; | 5151 void insertData(int offset, String data) native; |
5160 | 5152 |
5161 /** @domName CharacterData.remove; @docsEditable true */ | 5153 /// @domName CharacterData.remove; @docsEditable true |
5162 void remove() native; | 5154 void remove() native; |
5163 | 5155 |
5164 /** @domName CharacterData.replaceData; @docsEditable true */ | 5156 /// @domName CharacterData.replaceData; @docsEditable true |
5165 void replaceData(int offset, int length, String data) native; | 5157 void replaceData(int offset, int length, String data) native; |
5166 | 5158 |
5167 /** @domName CharacterData.substringData; @docsEditable true */ | 5159 /// @domName CharacterData.substringData; @docsEditable true |
5168 String substringData(int offset, int length) native; | 5160 String substringData(int offset, int length) native; |
5169 } | 5161 } |
5170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5171 // for details. All rights reserved. Use of this source code is governed by a | 5163 // for details. All rights reserved. Use of this source code is governed by a |
5172 // BSD-style license that can be found in the LICENSE file. | 5164 // BSD-style license that can be found in the LICENSE file. |
5173 | 5165 |
5174 | 5166 |
5175 /// @domName ClientRect; @docsEditable true | 5167 /// @domName ClientRect; @docsEditable true |
5176 class ClientRect native "*ClientRect" { | 5168 class ClientRect native "*ClientRect" { |
5177 | 5169 |
5178 /** @domName ClientRect.bottom; @docsEditable true */ | 5170 /// @domName ClientRect.bottom; @docsEditable true |
5179 final num bottom; | 5171 final num bottom; |
5180 | 5172 |
5181 /** @domName ClientRect.height; @docsEditable true */ | 5173 /// @domName ClientRect.height; @docsEditable true |
5182 final num height; | 5174 final num height; |
5183 | 5175 |
5184 /** @domName ClientRect.left; @docsEditable true */ | 5176 /// @domName ClientRect.left; @docsEditable true |
5185 final num left; | 5177 final num left; |
5186 | 5178 |
5187 /** @domName ClientRect.right; @docsEditable true */ | 5179 /// @domName ClientRect.right; @docsEditable true |
5188 final num right; | 5180 final num right; |
5189 | 5181 |
5190 /** @domName ClientRect.top; @docsEditable true */ | 5182 /// @domName ClientRect.top; @docsEditable true |
5191 final num top; | 5183 final num top; |
5192 | 5184 |
5193 /** @domName ClientRect.width; @docsEditable true */ | 5185 /// @domName ClientRect.width; @docsEditable true |
5194 final num width; | 5186 final num width; |
5195 } | 5187 } |
5196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5197 // for details. All rights reserved. Use of this source code is governed by a | 5189 // for details. All rights reserved. Use of this source code is governed by a |
5198 // BSD-style license that can be found in the LICENSE file. | 5190 // BSD-style license that can be found in the LICENSE file. |
5199 | 5191 |
5200 | 5192 |
5201 /// @domName Clipboard; @docsEditable true | 5193 /// @domName Clipboard; @docsEditable true |
5202 class Clipboard native "*Clipboard" { | 5194 class Clipboard native "*Clipboard" { |
5203 | 5195 |
5204 /** @domName Clipboard.dropEffect; @docsEditable true */ | 5196 /// @domName Clipboard.dropEffect; @docsEditable true |
5205 String dropEffect; | 5197 String dropEffect; |
5206 | 5198 |
5207 /** @domName Clipboard.effectAllowed; @docsEditable true */ | 5199 /// @domName Clipboard.effectAllowed; @docsEditable true |
5208 String effectAllowed; | 5200 String effectAllowed; |
5209 | 5201 |
5210 /** @domName Clipboard.files; @docsEditable true */ | 5202 /// @domName Clipboard.files; @docsEditable true |
5211 @Returns('_FileList') @Creates('_FileList') | 5203 @Returns('_FileList') @Creates('_FileList') |
5212 final List<File> files; | 5204 final List<File> files; |
5213 | 5205 |
5214 /** @domName Clipboard.items; @docsEditable true */ | 5206 /// @domName Clipboard.items; @docsEditable true |
5215 final DataTransferItemList items; | 5207 final DataTransferItemList items; |
5216 | 5208 |
5217 /** @domName Clipboard.types; @docsEditable true */ | 5209 /// @domName Clipboard.types; @docsEditable true |
5218 final List types; | 5210 final List types; |
5219 | 5211 |
5220 /** @domName Clipboard.clearData; @docsEditable true */ | 5212 /// @domName Clipboard.clearData; @docsEditable true |
5221 void clearData([String type]) native; | 5213 void clearData([String type]) native; |
5222 | 5214 |
5223 /** @domName Clipboard.getData; @docsEditable true */ | 5215 /// @domName Clipboard.getData; @docsEditable true |
5224 String getData(String type) native; | 5216 String getData(String type) native; |
5225 | 5217 |
5226 /** @domName Clipboard.setData; @docsEditable true */ | 5218 /// @domName Clipboard.setData; @docsEditable true |
5227 bool setData(String type, String data) native; | 5219 bool setData(String type, String data) native; |
5228 | 5220 |
5229 /** @domName Clipboard.setDragImage; @docsEditable true */ | 5221 /// @domName Clipboard.setDragImage; @docsEditable true |
5230 void setDragImage(ImageElement image, int x, int y) native; | 5222 void setDragImage(ImageElement image, int x, int y) native; |
5231 } | 5223 } |
5232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5233 // for details. All rights reserved. Use of this source code is governed by a | 5225 // for details. All rights reserved. Use of this source code is governed by a |
5234 // BSD-style license that can be found in the LICENSE file. | 5226 // BSD-style license that can be found in the LICENSE file. |
5235 | 5227 |
5236 | 5228 |
5237 /// @domName CloseEvent; @docsEditable true | 5229 /// @domName CloseEvent; @docsEditable true |
5238 class CloseEvent extends Event native "*CloseEvent" { | 5230 class CloseEvent extends Event native "*CloseEvent" { |
5239 | 5231 |
5240 /** @domName CloseEvent.code; @docsEditable true */ | 5232 /// @domName CloseEvent.code; @docsEditable true |
5241 final int code; | 5233 final int code; |
5242 | 5234 |
5243 /** @domName CloseEvent.reason; @docsEditable true */ | 5235 /// @domName CloseEvent.reason; @docsEditable true |
5244 final String reason; | 5236 final String reason; |
5245 | 5237 |
5246 /** @domName CloseEvent.wasClean; @docsEditable true */ | 5238 /// @domName CloseEvent.wasClean; @docsEditable true |
5247 final bool wasClean; | 5239 final bool wasClean; |
5248 } | 5240 } |
5249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5250 // for details. All rights reserved. Use of this source code is governed by a | 5242 // for details. All rights reserved. Use of this source code is governed by a |
5251 // BSD-style license that can be found in the LICENSE file. | 5243 // BSD-style license that can be found in the LICENSE file. |
5252 | 5244 |
5253 | 5245 |
5254 /// @domName Comment; @docsEditable true | 5246 /// @domName Comment; @docsEditable true |
5255 class Comment extends CharacterData native "*Comment" { | 5247 class Comment extends CharacterData native "*Comment" { |
5256 } | 5248 } |
5257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5258 // for details. All rights reserved. Use of this source code is governed by a | 5250 // for details. All rights reserved. Use of this source code is governed by a |
5259 // BSD-style license that can be found in the LICENSE file. | 5251 // BSD-style license that can be found in the LICENSE file. |
5260 | 5252 |
5261 | 5253 |
5262 /// @domName CompositionEvent; @docsEditable true | 5254 /// @domName CompositionEvent; @docsEditable true |
5263 class CompositionEvent extends UIEvent native "*CompositionEvent" { | 5255 class CompositionEvent extends UIEvent native "*CompositionEvent" { |
5264 | 5256 |
5265 /** @domName CompositionEvent.data; @docsEditable true */ | 5257 /// @domName CompositionEvent.data; @docsEditable true |
5266 final String data; | 5258 final String data; |
5267 | 5259 |
5268 /** @domName CompositionEvent.initCompositionEvent; @docsEditable true */ | 5260 /// @domName CompositionEvent.initCompositionEvent; @docsEditable true |
5269 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, LocalWindow viewArg, String dataArg) native; | 5261 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, LocalWindow viewArg, String dataArg) native; |
5270 } | 5262 } |
5271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5272 // for details. All rights reserved. Use of this source code is governed by a | 5264 // for details. All rights reserved. Use of this source code is governed by a |
5273 // BSD-style license that can be found in the LICENSE file. | 5265 // BSD-style license that can be found in the LICENSE file. |
5274 | 5266 |
5275 | 5267 |
5276 class Console | 5268 class Console |
5277 // Console is sometimes a singleton bag-of-properties without a prototype. | 5269 // Console is sometimes a singleton bag-of-properties without a prototype. |
5278 native "=(typeof console == 'undefined' ? {} : console)" { | 5270 native "=(typeof console == 'undefined' ? {} : console)" { |
5279 | 5271 |
5280 /** @domName Console.memory; @docsEditable true */ | 5272 /// @domName Console.memory; @docsEditable true |
5281 final MemoryInfo memory; | 5273 final MemoryInfo memory; |
5282 | 5274 |
5283 /** @domName Console.profiles; @docsEditable true */ | 5275 /// @domName Console.profiles; @docsEditable true |
5284 final List<ScriptProfile> profiles; | 5276 final List<ScriptProfile> profiles; |
5285 | 5277 |
5286 /** @domName Console.assertCondition; @docsEditable true */ | 5278 /// @domName Console.assertCondition; @docsEditable true |
5287 void assertCondition(bool condition, Object arg) native; | 5279 void assertCondition(bool condition, Object arg) native; |
5288 | 5280 |
5289 /** @domName Console.count; @docsEditable true */ | 5281 /// @domName Console.count; @docsEditable true |
5290 void count(Object arg) native; | 5282 void count(Object arg) native; |
5291 | 5283 |
5292 /** @domName Console.debug; @docsEditable true */ | 5284 /// @domName Console.debug; @docsEditable true |
5293 void debug(Object arg) native; | 5285 void debug(Object arg) native; |
5294 | 5286 |
5295 /** @domName Console.dir; @docsEditable true */ | 5287 /// @domName Console.dir; @docsEditable true |
5296 void dir(Object arg) native; | 5288 void dir(Object arg) native; |
5297 | 5289 |
5298 /** @domName Console.dirxml; @docsEditable true */ | 5290 /// @domName Console.dirxml; @docsEditable true |
5299 void dirxml(Object arg) native; | 5291 void dirxml(Object arg) native; |
5300 | 5292 |
5301 /** @domName Console.error; @docsEditable true */ | 5293 /// @domName Console.error; @docsEditable true |
5302 void error(Object arg) native; | 5294 void error(Object arg) native; |
5303 | 5295 |
5304 /** @domName Console.group; @docsEditable true */ | 5296 /// @domName Console.group; @docsEditable true |
5305 void group(Object arg) native; | 5297 void group(Object arg) native; |
5306 | 5298 |
5307 /** @domName Console.groupCollapsed; @docsEditable true */ | 5299 /// @domName Console.groupCollapsed; @docsEditable true |
5308 void groupCollapsed(Object arg) native; | 5300 void groupCollapsed(Object arg) native; |
5309 | 5301 |
5310 /** @domName Console.groupEnd; @docsEditable true */ | 5302 /// @domName Console.groupEnd; @docsEditable true |
5311 void groupEnd() native; | 5303 void groupEnd() native; |
5312 | 5304 |
5313 /** @domName Console.info; @docsEditable true */ | 5305 /// @domName Console.info; @docsEditable true |
5314 void info(Object arg) native; | 5306 void info(Object arg) native; |
5315 | 5307 |
5316 /** @domName Console.log; @docsEditable true */ | 5308 /// @domName Console.log; @docsEditable true |
5317 void log(Object arg) native; | 5309 void log(Object arg) native; |
5318 | 5310 |
5319 /** @domName Console.markTimeline; @docsEditable true */ | 5311 /// @domName Console.markTimeline; @docsEditable true |
5320 void markTimeline(Object arg) native; | 5312 void markTimeline(Object arg) native; |
5321 | 5313 |
5322 /** @domName Console.profile; @docsEditable true */ | 5314 /// @domName Console.profile; @docsEditable true |
5323 void profile(String title) native; | 5315 void profile(String title) native; |
5324 | 5316 |
5325 /** @domName Console.profileEnd; @docsEditable true */ | 5317 /// @domName Console.profileEnd; @docsEditable true |
5326 void profileEnd(String title) native; | 5318 void profileEnd(String title) native; |
5327 | 5319 |
5328 /** @domName Console.time; @docsEditable true */ | 5320 /// @domName Console.time; @docsEditable true |
5329 void time(String title) native; | 5321 void time(String title) native; |
5330 | 5322 |
5331 /** @domName Console.timeEnd; @docsEditable true */ | 5323 /// @domName Console.timeEnd; @docsEditable true |
5332 void timeEnd(String title, Object arg) native; | 5324 void timeEnd(String title, Object arg) native; |
5333 | 5325 |
5334 /** @domName Console.timeStamp; @docsEditable true */ | 5326 /// @domName Console.timeStamp; @docsEditable true |
5335 void timeStamp(Object arg) native; | 5327 void timeStamp(Object arg) native; |
5336 | 5328 |
5337 /** @domName Console.trace; @docsEditable true */ | 5329 /// @domName Console.trace; @docsEditable true |
5338 void trace(Object arg) native; | 5330 void trace(Object arg) native; |
5339 | 5331 |
5340 /** @domName Console.warn; @docsEditable true */ | 5332 /// @domName Console.warn; @docsEditable true |
5341 void warn(Object arg) native; | 5333 void warn(Object arg) native; |
5342 | 5334 |
5343 } | 5335 } |
5344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5345 // for details. All rights reserved. Use of this source code is governed by a | 5337 // for details. All rights reserved. Use of this source code is governed by a |
5346 // BSD-style license that can be found in the LICENSE file. | 5338 // BSD-style license that can be found in the LICENSE file. |
5347 | 5339 |
5348 | 5340 |
5349 /// @domName HTMLContentElement; @docsEditable true | 5341 /// @domName HTMLContentElement; @docsEditable true |
5350 class ContentElement extends Element implements Element native "*HTMLContentElem
ent" { | 5342 class ContentElement extends Element implements Element native "*HTMLContentElem
ent" { |
5351 | 5343 |
5352 factory ContentElement() => document.$dom_createElement("content"); | 5344 factory ContentElement() => document.$dom_createElement("content"); |
5353 | 5345 |
5354 /** @domName HTMLContentElement.resetStyleInheritance; @docsEditable true */ | 5346 /// @domName HTMLContentElement.resetStyleInheritance; @docsEditable true |
5355 bool resetStyleInheritance; | 5347 bool resetStyleInheritance; |
5356 | 5348 |
5357 /** @domName HTMLContentElement.select; @docsEditable true */ | 5349 /// @domName HTMLContentElement.select; @docsEditable true |
5358 String select; | 5350 String select; |
5359 | 5351 |
5360 /** @domName HTMLContentElement.getDistributedNodes; @docsEditable true */ | 5352 /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true |
5361 @Returns('_NodeList') @Creates('_NodeList') | 5353 @Returns('_NodeList') @Creates('_NodeList') |
5362 List<Node> getDistributedNodes() native; | 5354 List<Node> getDistributedNodes() native; |
5363 } | 5355 } |
5364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5365 // for details. All rights reserved. Use of this source code is governed by a | 5357 // for details. All rights reserved. Use of this source code is governed by a |
5366 // BSD-style license that can be found in the LICENSE file. | 5358 // BSD-style license that can be found in the LICENSE file. |
5367 | 5359 |
5368 | 5360 |
5369 /// @domName ConvolverNode; @docsEditable true | 5361 /// @domName ConvolverNode; @docsEditable true |
5370 class ConvolverNode extends AudioNode native "*ConvolverNode" { | 5362 class ConvolverNode extends AudioNode native "*ConvolverNode" { |
5371 | 5363 |
5372 /** @domName ConvolverNode.buffer; @docsEditable true */ | 5364 /// @domName ConvolverNode.buffer; @docsEditable true |
5373 AudioBuffer buffer; | 5365 AudioBuffer buffer; |
5374 | 5366 |
5375 /** @domName ConvolverNode.normalize; @docsEditable true */ | 5367 /// @domName ConvolverNode.normalize; @docsEditable true |
5376 bool normalize; | 5368 bool normalize; |
5377 } | 5369 } |
5378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5379 // for details. All rights reserved. Use of this source code is governed by a | 5371 // for details. All rights reserved. Use of this source code is governed by a |
5380 // BSD-style license that can be found in the LICENSE file. | 5372 // BSD-style license that can be found in the LICENSE file. |
5381 | 5373 |
5382 | 5374 |
5383 /// @domName Coordinates; @docsEditable true | 5375 /// @domName Coordinates; @docsEditable true |
5384 class Coordinates native "*Coordinates" { | 5376 class Coordinates native "*Coordinates" { |
5385 | 5377 |
5386 /** @domName Coordinates.accuracy; @docsEditable true */ | 5378 /// @domName Coordinates.accuracy; @docsEditable true |
5387 final num accuracy; | 5379 final num accuracy; |
5388 | 5380 |
5389 /** @domName Coordinates.altitude; @docsEditable true */ | 5381 /// @domName Coordinates.altitude; @docsEditable true |
5390 final num altitude; | 5382 final num altitude; |
5391 | 5383 |
5392 /** @domName Coordinates.altitudeAccuracy; @docsEditable true */ | 5384 /// @domName Coordinates.altitudeAccuracy; @docsEditable true |
5393 final num altitudeAccuracy; | 5385 final num altitudeAccuracy; |
5394 | 5386 |
5395 /** @domName Coordinates.heading; @docsEditable true */ | 5387 /// @domName Coordinates.heading; @docsEditable true |
5396 final num heading; | 5388 final num heading; |
5397 | 5389 |
5398 /** @domName Coordinates.latitude; @docsEditable true */ | 5390 /// @domName Coordinates.latitude; @docsEditable true |
5399 final num latitude; | 5391 final num latitude; |
5400 | 5392 |
5401 /** @domName Coordinates.longitude; @docsEditable true */ | 5393 /// @domName Coordinates.longitude; @docsEditable true |
5402 final num longitude; | 5394 final num longitude; |
5403 | 5395 |
5404 /** @domName Coordinates.speed; @docsEditable true */ | 5396 /// @domName Coordinates.speed; @docsEditable true |
5405 final num speed; | 5397 final num speed; |
5406 } | 5398 } |
5407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5408 // for details. All rights reserved. Use of this source code is governed by a | 5400 // for details. All rights reserved. Use of this source code is governed by a |
5409 // BSD-style license that can be found in the LICENSE file. | 5401 // BSD-style license that can be found in the LICENSE file. |
5410 | 5402 |
5411 | 5403 |
5412 /// @domName Counter; @docsEditable true | 5404 /// @domName Counter; @docsEditable true |
5413 class Counter native "*Counter" { | 5405 class Counter native "*Counter" { |
5414 | 5406 |
5415 /** @domName Counter.identifier; @docsEditable true */ | 5407 /// @domName Counter.identifier; @docsEditable true |
5416 final String identifier; | 5408 final String identifier; |
5417 | 5409 |
5418 /** @domName Counter.listStyle; @docsEditable true */ | 5410 /// @domName Counter.listStyle; @docsEditable true |
5419 final String listStyle; | 5411 final String listStyle; |
5420 | 5412 |
5421 /** @domName Counter.separator; @docsEditable true */ | 5413 /// @domName Counter.separator; @docsEditable true |
5422 final String separator; | 5414 final String separator; |
5423 } | 5415 } |
5424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5425 // for details. All rights reserved. Use of this source code is governed by a | 5417 // for details. All rights reserved. Use of this source code is governed by a |
5426 // BSD-style license that can be found in the LICENSE file. | 5418 // BSD-style license that can be found in the LICENSE file. |
5427 | 5419 |
5428 | 5420 |
5429 /// @domName Crypto; @docsEditable true | 5421 /// @domName Crypto; @docsEditable true |
5430 class Crypto native "*Crypto" { | 5422 class Crypto native "*Crypto" { |
5431 | 5423 |
5432 /** @domName Crypto.getRandomValues; @docsEditable true */ | 5424 /// @domName Crypto.getRandomValues; @docsEditable true |
5433 void getRandomValues(ArrayBufferView array) native; | 5425 void getRandomValues(ArrayBufferView array) native; |
5434 } | 5426 } |
5435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5436 // for details. All rights reserved. Use of this source code is governed by a | 5428 // for details. All rights reserved. Use of this source code is governed by a |
5437 // BSD-style license that can be found in the LICENSE file. | 5429 // BSD-style license that can be found in the LICENSE file. |
5438 | 5430 |
5439 // WARNING: Do not edit - generated code. | 5431 // WARNING: Do not edit - generated code. |
5440 | 5432 |
5441 | 5433 |
5442 class CustomEvent extends Event native "*CustomEvent" { | 5434 class CustomEvent extends Event native "*CustomEvent" { |
5443 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru
e, | 5435 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru
e, |
5444 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( | 5436 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( |
5445 type, canBubble, cancelable, detail); | 5437 type, canBubble, cancelable, detail); |
5446 | 5438 |
5447 /** @domName CustomEvent.detail; @docsEditable true */ | 5439 /// @domName CustomEvent.detail; @docsEditable true |
5448 final Object detail; | 5440 final Object detail; |
5449 | 5441 |
5450 /** @domName CustomEvent.initCustomEvent; @docsEditable true */ | 5442 /// @domName CustomEvent.initCustomEvent; @docsEditable true |
5451 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native "initCustomEvent"; | 5443 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native "initCustomEvent"; |
5452 | 5444 |
5453 } | 5445 } |
5454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5455 // for details. All rights reserved. Use of this source code is governed by a | 5447 // for details. All rights reserved. Use of this source code is governed by a |
5456 // BSD-style license that can be found in the LICENSE file. | 5448 // BSD-style license that can be found in the LICENSE file. |
5457 | 5449 |
5458 | 5450 |
5459 /// @domName HTMLDListElement; @docsEditable true | 5451 /// @domName HTMLDListElement; @docsEditable true |
5460 class DListElement extends Element implements Element native "*HTMLDListElement"
{ | 5452 class DListElement extends Element implements Element native "*HTMLDListElement"
{ |
5461 | 5453 |
5462 factory DListElement() => document.$dom_createElement("dl"); | 5454 factory DListElement() => document.$dom_createElement("dl"); |
5463 | 5455 |
5464 /** @domName HTMLDListElement.compact; @docsEditable true */ | 5456 /// @domName HTMLDListElement.compact; @docsEditable true |
5465 bool compact; | 5457 bool compact; |
5466 } | 5458 } |
5467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5468 // for details. All rights reserved. Use of this source code is governed by a | 5460 // for details. All rights reserved. Use of this source code is governed by a |
5469 // BSD-style license that can be found in the LICENSE file. | 5461 // BSD-style license that can be found in the LICENSE file. |
5470 | 5462 |
5471 | 5463 |
5472 /// @domName DOMApplicationCache; @docsEditable true | 5464 /// @domName DOMApplicationCache; @docsEditable true |
5473 class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" { | 5465 class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" { |
5474 | 5466 |
5475 /** | 5467 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
5476 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
5477 */ | |
5478 DOMApplicationCacheEvents get on => | 5468 DOMApplicationCacheEvents get on => |
5479 new DOMApplicationCacheEvents(this); | 5469 new DOMApplicationCacheEvents(this); |
5480 | 5470 |
5481 static const int CHECKING = 2; | 5471 static const int CHECKING = 2; |
5482 | 5472 |
5483 static const int DOWNLOADING = 3; | 5473 static const int DOWNLOADING = 3; |
5484 | 5474 |
5485 static const int IDLE = 1; | 5475 static const int IDLE = 1; |
5486 | 5476 |
5487 static const int OBSOLETE = 5; | 5477 static const int OBSOLETE = 5; |
5488 | 5478 |
5489 static const int UNCACHED = 0; | 5479 static const int UNCACHED = 0; |
5490 | 5480 |
5491 static const int UPDATEREADY = 4; | 5481 static const int UPDATEREADY = 4; |
5492 | 5482 |
5493 /** @domName DOMApplicationCache.status; @docsEditable true */ | 5483 /// @domName DOMApplicationCache.status; @docsEditable true |
5494 final int status; | 5484 final int status; |
5495 | 5485 |
5496 /** @domName DOMApplicationCache.abort; @docsEditable true */ | 5486 /// @domName DOMApplicationCache.abort; @docsEditable true |
5497 void abort() native; | 5487 void abort() native; |
5498 | 5488 |
5499 /** @domName DOMApplicationCache.addEventListener; @docsEditable true */ | 5489 /// @domName DOMApplicationCache.addEventListener; @docsEditable true |
5500 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 5490 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
5501 | 5491 |
5502 /** @domName DOMApplicationCache.dispatchEvent; @docsEditable true */ | 5492 /// @domName DOMApplicationCache.dispatchEvent; @docsEditable true |
5503 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 5493 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
5504 | 5494 |
5505 /** @domName DOMApplicationCache.removeEventListener; @docsEditable true */ | 5495 /// @domName DOMApplicationCache.removeEventListener; @docsEditable true |
5506 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 5496 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
5507 | 5497 |
5508 /** @domName DOMApplicationCache.swapCache; @docsEditable true */ | 5498 /// @domName DOMApplicationCache.swapCache; @docsEditable true |
5509 void swapCache() native; | 5499 void swapCache() native; |
5510 | 5500 |
5511 /** @domName DOMApplicationCache.update; @docsEditable true */ | 5501 /// @domName DOMApplicationCache.update; @docsEditable true |
5512 void update() native; | 5502 void update() native; |
5513 } | 5503 } |
5514 | 5504 |
5515 class DOMApplicationCacheEvents extends Events { | 5505 class DOMApplicationCacheEvents extends Events { |
5516 DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr); | 5506 DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr); |
5517 | 5507 |
5518 EventListenerList get cached => this['cached']; | 5508 EventListenerList get cached => this['cached']; |
5519 | 5509 |
5520 EventListenerList get checking => this['checking']; | 5510 EventListenerList get checking => this['checking']; |
5521 | 5511 |
(...skipping 10 matching lines...) Expand all Loading... |
5532 EventListenerList get updateReady => this['updateready']; | 5522 EventListenerList get updateReady => this['updateready']; |
5533 } | 5523 } |
5534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5535 // for details. All rights reserved. Use of this source code is governed by a | 5525 // for details. All rights reserved. Use of this source code is governed by a |
5536 // BSD-style license that can be found in the LICENSE file. | 5526 // BSD-style license that can be found in the LICENSE file. |
5537 | 5527 |
5538 | 5528 |
5539 /// @domName DOMError; @docsEditable true | 5529 /// @domName DOMError; @docsEditable true |
5540 class DOMError native "*DOMError" { | 5530 class DOMError native "*DOMError" { |
5541 | 5531 |
5542 /** @domName DOMError.name; @docsEditable true */ | 5532 /// @domName DOMError.name; @docsEditable true |
5543 final String name; | 5533 final String name; |
5544 } | 5534 } |
5545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5546 // for details. All rights reserved. Use of this source code is governed by a | 5536 // for details. All rights reserved. Use of this source code is governed by a |
5547 // BSD-style license that can be found in the LICENSE file. | 5537 // BSD-style license that can be found in the LICENSE file. |
5548 | 5538 |
5549 | 5539 |
5550 /// @domName DOMException; @docsEditable true | 5540 /// @domName DOMException; @docsEditable true |
5551 class DOMException native "*DOMException" { | 5541 class DOMException native "*DOMException" { |
5552 | 5542 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5593 static const int TIMEOUT_ERR = 23; | 5583 static const int TIMEOUT_ERR = 23; |
5594 | 5584 |
5595 static const int TYPE_MISMATCH_ERR = 17; | 5585 static const int TYPE_MISMATCH_ERR = 17; |
5596 | 5586 |
5597 static const int URL_MISMATCH_ERR = 21; | 5587 static const int URL_MISMATCH_ERR = 21; |
5598 | 5588 |
5599 static const int VALIDATION_ERR = 16; | 5589 static const int VALIDATION_ERR = 16; |
5600 | 5590 |
5601 static const int WRONG_DOCUMENT_ERR = 4; | 5591 static const int WRONG_DOCUMENT_ERR = 4; |
5602 | 5592 |
5603 /** @domName DOMException.code; @docsEditable true */ | 5593 /// @domName DOMException.code; @docsEditable true |
5604 final int code; | 5594 final int code; |
5605 | 5595 |
5606 /** @domName DOMException.message; @docsEditable true */ | 5596 /// @domName DOMException.message; @docsEditable true |
5607 final String message; | 5597 final String message; |
5608 | 5598 |
5609 /** @domName DOMException.name; @docsEditable true */ | 5599 /// @domName DOMException.name; @docsEditable true |
5610 final String name; | 5600 final String name; |
5611 | 5601 |
5612 /** @domName DOMException.toString; @docsEditable true */ | 5602 /// @domName DOMException.toString; @docsEditable true |
5613 String toString() native; | 5603 String toString() native; |
5614 } | 5604 } |
5615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5616 // for details. All rights reserved. Use of this source code is governed by a | 5606 // for details. All rights reserved. Use of this source code is governed by a |
5617 // BSD-style license that can be found in the LICENSE file. | 5607 // BSD-style license that can be found in the LICENSE file. |
5618 | 5608 |
5619 | 5609 |
5620 /// @domName DOMFileSystem; @docsEditable true | 5610 /// @domName DOMFileSystem; @docsEditable true |
5621 class DOMFileSystem native "*DOMFileSystem" { | 5611 class DOMFileSystem native "*DOMFileSystem" { |
5622 | 5612 |
5623 /** @domName DOMFileSystem.name; @docsEditable true */ | 5613 /// @domName DOMFileSystem.name; @docsEditable true |
5624 final String name; | 5614 final String name; |
5625 | 5615 |
5626 /** @domName DOMFileSystem.root; @docsEditable true */ | 5616 /// @domName DOMFileSystem.root; @docsEditable true |
5627 final DirectoryEntry root; | 5617 final DirectoryEntry root; |
5628 } | 5618 } |
5629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5630 // for details. All rights reserved. Use of this source code is governed by a | 5620 // for details. All rights reserved. Use of this source code is governed by a |
5631 // BSD-style license that can be found in the LICENSE file. | 5621 // BSD-style license that can be found in the LICENSE file. |
5632 | 5622 |
5633 | 5623 |
5634 /// @domName DOMFileSystemSync; @docsEditable true | 5624 /// @domName DOMFileSystemSync; @docsEditable true |
5635 class DOMFileSystemSync native "*DOMFileSystemSync" { | 5625 class DOMFileSystemSync native "*DOMFileSystemSync" { |
5636 | 5626 |
5637 /** @domName DOMFileSystemSync.name; @docsEditable true */ | 5627 /// @domName DOMFileSystemSync.name; @docsEditable true |
5638 final String name; | 5628 final String name; |
5639 | 5629 |
5640 /** @domName DOMFileSystemSync.root; @docsEditable true */ | 5630 /// @domName DOMFileSystemSync.root; @docsEditable true |
5641 final DirectoryEntrySync root; | 5631 final DirectoryEntrySync root; |
5642 } | 5632 } |
5643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5644 // for details. All rights reserved. Use of this source code is governed by a | 5634 // for details. All rights reserved. Use of this source code is governed by a |
5645 // BSD-style license that can be found in the LICENSE file. | 5635 // BSD-style license that can be found in the LICENSE file. |
5646 | 5636 |
5647 | 5637 |
5648 /// @domName DOMImplementation; @docsEditable true | 5638 /// @domName DOMImplementation; @docsEditable true |
5649 class DOMImplementation native "*DOMImplementation" { | 5639 class DOMImplementation native "*DOMImplementation" { |
5650 | 5640 |
5651 /** @domName DOMImplementation.createCSSStyleSheet; @docsEditable true */ | 5641 /// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true |
5652 CSSStyleSheet createCSSStyleSheet(String title, String media) native; | 5642 CSSStyleSheet createCSSStyleSheet(String title, String media) native; |
5653 | 5643 |
5654 /** @domName DOMImplementation.createDocument; @docsEditable true */ | 5644 /// @domName DOMImplementation.createDocument; @docsEditable true |
5655 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype) native; | 5645 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype) native; |
5656 | 5646 |
5657 /** @domName DOMImplementation.createDocumentType; @docsEditable true */ | 5647 /// @domName DOMImplementation.createDocumentType; @docsEditable true |
5658 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId) native; | 5648 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId) native; |
5659 | 5649 |
5660 /** @domName DOMImplementation.createHTMLDocument; @docsEditable true */ | 5650 /// @domName DOMImplementation.createHTMLDocument; @docsEditable true |
5661 HtmlDocument createHTMLDocument(String title) native; | 5651 HtmlDocument createHTMLDocument(String title) native; |
5662 | 5652 |
5663 /** @domName DOMImplementation.hasFeature; @docsEditable true */ | 5653 /// @domName DOMImplementation.hasFeature; @docsEditable true |
5664 bool hasFeature(String feature, String version) native; | 5654 bool hasFeature(String feature, String version) native; |
5665 } | 5655 } |
5666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5667 // for details. All rights reserved. Use of this source code is governed by a | 5657 // for details. All rights reserved. Use of this source code is governed by a |
5668 // BSD-style license that can be found in the LICENSE file. | 5658 // BSD-style license that can be found in the LICENSE file. |
5669 | 5659 |
5670 | 5660 |
5671 /// @domName MimeType; @docsEditable true | 5661 /// @domName MimeType; @docsEditable true |
5672 class DOMMimeType native "*MimeType" { | 5662 class DOMMimeType native "*MimeType" { |
5673 | 5663 |
5674 /** @domName MimeType.description; @docsEditable true */ | 5664 /// @domName MimeType.description; @docsEditable true |
5675 final String description; | 5665 final String description; |
5676 | 5666 |
5677 /** @domName MimeType.enabledPlugin; @docsEditable true */ | 5667 /// @domName MimeType.enabledPlugin; @docsEditable true |
5678 final DOMPlugin enabledPlugin; | 5668 final DOMPlugin enabledPlugin; |
5679 | 5669 |
5680 /** @domName MimeType.suffixes; @docsEditable true */ | 5670 /// @domName MimeType.suffixes; @docsEditable true |
5681 final String suffixes; | 5671 final String suffixes; |
5682 | 5672 |
5683 /** @domName MimeType.type; @docsEditable true */ | 5673 /// @domName MimeType.type; @docsEditable true |
5684 final String type; | 5674 final String type; |
5685 } | 5675 } |
5686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5687 // for details. All rights reserved. Use of this source code is governed by a | 5677 // for details. All rights reserved. Use of this source code is governed by a |
5688 // BSD-style license that can be found in the LICENSE file. | 5678 // BSD-style license that can be found in the LICENSE file. |
5689 | 5679 |
5690 | 5680 |
5691 /// @domName MimeTypeArray; @docsEditable true | 5681 /// @domName MimeTypeArray; @docsEditable true |
5692 class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType>
native "*MimeTypeArray" { | 5682 class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType>
native "*MimeTypeArray" { |
5693 | 5683 |
5694 /** @domName MimeTypeArray.length; @docsEditable true */ | 5684 /// @domName MimeTypeArray.length; @docsEditable true |
5695 final int length; | 5685 final int length; |
5696 | 5686 |
5697 DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index); | 5687 DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index); |
5698 | 5688 |
5699 void operator[]=(int index, DOMMimeType value) { | 5689 void operator[]=(int index, DOMMimeType value) { |
5700 throw new UnsupportedError("Cannot assign element of immutable List."); | 5690 throw new UnsupportedError("Cannot assign element of immutable List."); |
5701 } | 5691 } |
5702 // -- start List<DOMMimeType> mixins. | 5692 // -- start List<DOMMimeType> mixins. |
5703 // DOMMimeType is the element type. | 5693 // DOMMimeType is the element type. |
5704 | 5694 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5772 | 5762 |
5773 void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) { | 5763 void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) { |
5774 throw new UnsupportedError("Cannot insertRange on immutable List."); | 5764 throw new UnsupportedError("Cannot insertRange on immutable List."); |
5775 } | 5765 } |
5776 | 5766 |
5777 List<DOMMimeType> getRange(int start, int rangeLength) => | 5767 List<DOMMimeType> getRange(int start, int rangeLength) => |
5778 _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]); | 5768 _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]); |
5779 | 5769 |
5780 // -- end List<DOMMimeType> mixins. | 5770 // -- end List<DOMMimeType> mixins. |
5781 | 5771 |
5782 /** @domName MimeTypeArray.item; @docsEditable true */ | 5772 /// @domName MimeTypeArray.item; @docsEditable true |
5783 DOMMimeType item(int index) native; | 5773 DOMMimeType item(int index) native; |
5784 | 5774 |
5785 /** @domName MimeTypeArray.namedItem; @docsEditable true */ | 5775 /// @domName MimeTypeArray.namedItem; @docsEditable true |
5786 DOMMimeType namedItem(String name) native; | 5776 DOMMimeType namedItem(String name) native; |
5787 } | 5777 } |
5788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5789 // for details. All rights reserved. Use of this source code is governed by a | 5779 // for details. All rights reserved. Use of this source code is governed by a |
5790 // BSD-style license that can be found in the LICENSE file. | 5780 // BSD-style license that can be found in the LICENSE file. |
5791 | 5781 |
5792 | 5782 |
5793 /// @domName DOMParser; @docsEditable true | 5783 /// @domName DOMParser; @docsEditable true |
5794 class DOMParser native "*DOMParser" { | 5784 class DOMParser native "*DOMParser" { |
5795 | 5785 |
5796 factory DOMParser() => _DOMParserFactoryProvider.createDOMParser(); | 5786 factory DOMParser() => _DOMParserFactoryProvider.createDOMParser(); |
5797 | 5787 |
5798 /** @domName DOMParser.parseFromString; @docsEditable true */ | 5788 /// @domName DOMParser.parseFromString; @docsEditable true |
5799 Document parseFromString(String str, String contentType) native; | 5789 Document parseFromString(String str, String contentType) native; |
5800 } | 5790 } |
5801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5791 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5802 // for details. All rights reserved. Use of this source code is governed by a | 5792 // for details. All rights reserved. Use of this source code is governed by a |
5803 // BSD-style license that can be found in the LICENSE file. | 5793 // BSD-style license that can be found in the LICENSE file. |
5804 | 5794 |
5805 | 5795 |
5806 /// @domName Plugin; @docsEditable true | 5796 /// @domName Plugin; @docsEditable true |
5807 class DOMPlugin native "*Plugin" { | 5797 class DOMPlugin native "*Plugin" { |
5808 | 5798 |
5809 /** @domName Plugin.description; @docsEditable true */ | 5799 /// @domName Plugin.description; @docsEditable true |
5810 final String description; | 5800 final String description; |
5811 | 5801 |
5812 /** @domName Plugin.filename; @docsEditable true */ | 5802 /// @domName Plugin.filename; @docsEditable true |
5813 final String filename; | 5803 final String filename; |
5814 | 5804 |
5815 /** @domName Plugin.length; @docsEditable true */ | 5805 /// @domName Plugin.length; @docsEditable true |
5816 final int length; | 5806 final int length; |
5817 | 5807 |
5818 /** @domName Plugin.name; @docsEditable true */ | 5808 /// @domName Plugin.name; @docsEditable true |
5819 final String name; | 5809 final String name; |
5820 | 5810 |
5821 /** @domName Plugin.item; @docsEditable true */ | 5811 /// @domName Plugin.item; @docsEditable true |
5822 DOMMimeType item(int index) native; | 5812 DOMMimeType item(int index) native; |
5823 | 5813 |
5824 /** @domName Plugin.namedItem; @docsEditable true */ | 5814 /// @domName Plugin.namedItem; @docsEditable true |
5825 DOMMimeType namedItem(String name) native; | 5815 DOMMimeType namedItem(String name) native; |
5826 } | 5816 } |
5827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5828 // for details. All rights reserved. Use of this source code is governed by a | 5818 // for details. All rights reserved. Use of this source code is governed by a |
5829 // BSD-style license that can be found in the LICENSE file. | 5819 // BSD-style license that can be found in the LICENSE file. |
5830 | 5820 |
5831 | 5821 |
5832 /// @domName PluginArray; @docsEditable true | 5822 /// @domName PluginArray; @docsEditable true |
5833 class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati
ve "*PluginArray" { | 5823 class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati
ve "*PluginArray" { |
5834 | 5824 |
5835 /** @domName PluginArray.length; @docsEditable true */ | 5825 /// @domName PluginArray.length; @docsEditable true |
5836 final int length; | 5826 final int length; |
5837 | 5827 |
5838 DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index); | 5828 DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index); |
5839 | 5829 |
5840 void operator[]=(int index, DOMPlugin value) { | 5830 void operator[]=(int index, DOMPlugin value) { |
5841 throw new UnsupportedError("Cannot assign element of immutable List."); | 5831 throw new UnsupportedError("Cannot assign element of immutable List."); |
5842 } | 5832 } |
5843 // -- start List<DOMPlugin> mixins. | 5833 // -- start List<DOMPlugin> mixins. |
5844 // DOMPlugin is the element type. | 5834 // DOMPlugin is the element type. |
5845 | 5835 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5913 | 5903 |
5914 void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) { | 5904 void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) { |
5915 throw new UnsupportedError("Cannot insertRange on immutable List."); | 5905 throw new UnsupportedError("Cannot insertRange on immutable List."); |
5916 } | 5906 } |
5917 | 5907 |
5918 List<DOMPlugin> getRange(int start, int rangeLength) => | 5908 List<DOMPlugin> getRange(int start, int rangeLength) => |
5919 _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]); | 5909 _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]); |
5920 | 5910 |
5921 // -- end List<DOMPlugin> mixins. | 5911 // -- end List<DOMPlugin> mixins. |
5922 | 5912 |
5923 /** @domName PluginArray.item; @docsEditable true */ | 5913 /// @domName PluginArray.item; @docsEditable true |
5924 DOMPlugin item(int index) native; | 5914 DOMPlugin item(int index) native; |
5925 | 5915 |
5926 /** @domName PluginArray.namedItem; @docsEditable true */ | 5916 /// @domName PluginArray.namedItem; @docsEditable true |
5927 DOMPlugin namedItem(String name) native; | 5917 DOMPlugin namedItem(String name) native; |
5928 | 5918 |
5929 /** @domName PluginArray.refresh; @docsEditable true */ | 5919 /// @domName PluginArray.refresh; @docsEditable true |
5930 void refresh(bool reload) native; | 5920 void refresh(bool reload) native; |
5931 } | 5921 } |
5932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5933 // for details. All rights reserved. Use of this source code is governed by a | 5923 // for details. All rights reserved. Use of this source code is governed by a |
5934 // BSD-style license that can be found in the LICENSE file. | 5924 // BSD-style license that can be found in the LICENSE file. |
5935 | 5925 |
5936 | 5926 |
5937 /// @domName Selection; @docsEditable true | 5927 /// @domName Selection; @docsEditable true |
5938 class DOMSelection native "*Selection" { | 5928 class DOMSelection native "*Selection" { |
5939 | 5929 |
5940 /** @domName Selection.anchorNode; @docsEditable true */ | 5930 /// @domName Selection.anchorNode; @docsEditable true |
5941 final Node anchorNode; | 5931 final Node anchorNode; |
5942 | 5932 |
5943 /** @domName Selection.anchorOffset; @docsEditable true */ | 5933 /// @domName Selection.anchorOffset; @docsEditable true |
5944 final int anchorOffset; | 5934 final int anchorOffset; |
5945 | 5935 |
5946 /** @domName Selection.baseNode; @docsEditable true */ | 5936 /// @domName Selection.baseNode; @docsEditable true |
5947 final Node baseNode; | 5937 final Node baseNode; |
5948 | 5938 |
5949 /** @domName Selection.baseOffset; @docsEditable true */ | 5939 /// @domName Selection.baseOffset; @docsEditable true |
5950 final int baseOffset; | 5940 final int baseOffset; |
5951 | 5941 |
5952 /** @domName Selection.extentNode; @docsEditable true */ | 5942 /// @domName Selection.extentNode; @docsEditable true |
5953 final Node extentNode; | 5943 final Node extentNode; |
5954 | 5944 |
5955 /** @domName Selection.extentOffset; @docsEditable true */ | 5945 /// @domName Selection.extentOffset; @docsEditable true |
5956 final int extentOffset; | 5946 final int extentOffset; |
5957 | 5947 |
5958 /** @domName Selection.focusNode; @docsEditable true */ | 5948 /// @domName Selection.focusNode; @docsEditable true |
5959 final Node focusNode; | 5949 final Node focusNode; |
5960 | 5950 |
5961 /** @domName Selection.focusOffset; @docsEditable true */ | 5951 /// @domName Selection.focusOffset; @docsEditable true |
5962 final int focusOffset; | 5952 final int focusOffset; |
5963 | 5953 |
5964 /** @domName Selection.isCollapsed; @docsEditable true */ | 5954 /// @domName Selection.isCollapsed; @docsEditable true |
5965 final bool isCollapsed; | 5955 final bool isCollapsed; |
5966 | 5956 |
5967 /** @domName Selection.rangeCount; @docsEditable true */ | 5957 /// @domName Selection.rangeCount; @docsEditable true |
5968 final int rangeCount; | 5958 final int rangeCount; |
5969 | 5959 |
5970 /** @domName Selection.type; @docsEditable true */ | 5960 /// @domName Selection.type; @docsEditable true |
5971 final String type; | 5961 final String type; |
5972 | 5962 |
5973 /** @domName Selection.addRange; @docsEditable true */ | 5963 /// @domName Selection.addRange; @docsEditable true |
5974 void addRange(Range range) native; | 5964 void addRange(Range range) native; |
5975 | 5965 |
5976 /** @domName Selection.collapse; @docsEditable true */ | 5966 /// @domName Selection.collapse; @docsEditable true |
5977 void collapse(Node node, int index) native; | 5967 void collapse(Node node, int index) native; |
5978 | 5968 |
5979 /** @domName Selection.collapseToEnd; @docsEditable true */ | 5969 /// @domName Selection.collapseToEnd; @docsEditable true |
5980 void collapseToEnd() native; | 5970 void collapseToEnd() native; |
5981 | 5971 |
5982 /** @domName Selection.collapseToStart; @docsEditable true */ | 5972 /// @domName Selection.collapseToStart; @docsEditable true |
5983 void collapseToStart() native; | 5973 void collapseToStart() native; |
5984 | 5974 |
5985 /** @domName Selection.containsNode; @docsEditable true */ | 5975 /// @domName Selection.containsNode; @docsEditable true |
5986 bool containsNode(Node node, bool allowPartial) native; | 5976 bool containsNode(Node node, bool allowPartial) native; |
5987 | 5977 |
5988 /** @domName Selection.deleteFromDocument; @docsEditable true */ | 5978 /// @domName Selection.deleteFromDocument; @docsEditable true |
5989 void deleteFromDocument() native; | 5979 void deleteFromDocument() native; |
5990 | 5980 |
5991 /** @domName Selection.empty; @docsEditable true */ | 5981 /// @domName Selection.empty; @docsEditable true |
5992 void empty() native; | 5982 void empty() native; |
5993 | 5983 |
5994 /** @domName Selection.extend; @docsEditable true */ | 5984 /// @domName Selection.extend; @docsEditable true |
5995 void extend(Node node, int offset) native; | 5985 void extend(Node node, int offset) native; |
5996 | 5986 |
5997 /** @domName Selection.getRangeAt; @docsEditable true */ | 5987 /// @domName Selection.getRangeAt; @docsEditable true |
5998 Range getRangeAt(int index) native; | 5988 Range getRangeAt(int index) native; |
5999 | 5989 |
6000 /** @domName Selection.modify; @docsEditable true */ | 5990 /// @domName Selection.modify; @docsEditable true |
6001 void modify(String alter, String direction, String granularity) native; | 5991 void modify(String alter, String direction, String granularity) native; |
6002 | 5992 |
6003 /** @domName Selection.removeAllRanges; @docsEditable true */ | 5993 /// @domName Selection.removeAllRanges; @docsEditable true |
6004 void removeAllRanges() native; | 5994 void removeAllRanges() native; |
6005 | 5995 |
6006 /** @domName Selection.selectAllChildren; @docsEditable true */ | 5996 /// @domName Selection.selectAllChildren; @docsEditable true |
6007 void selectAllChildren(Node node) native; | 5997 void selectAllChildren(Node node) native; |
6008 | 5998 |
6009 /** @domName Selection.setBaseAndExtent; @docsEditable true */ | 5999 /// @domName Selection.setBaseAndExtent; @docsEditable true |
6010 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) native; | 6000 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) native; |
6011 | 6001 |
6012 /** @domName Selection.setPosition; @docsEditable true */ | 6002 /// @domName Selection.setPosition; @docsEditable true |
6013 void setPosition(Node node, int offset) native; | 6003 void setPosition(Node node, int offset) native; |
6014 | 6004 |
6015 /** @domName Selection.toString; @docsEditable true */ | 6005 /// @domName Selection.toString; @docsEditable true |
6016 String toString() native; | 6006 String toString() native; |
6017 } | 6007 } |
6018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6019 // for details. All rights reserved. Use of this source code is governed by a | 6009 // for details. All rights reserved. Use of this source code is governed by a |
6020 // BSD-style license that can be found in the LICENSE file. | 6010 // BSD-style license that can be found in the LICENSE file. |
6021 | 6011 |
6022 | 6012 |
6023 /// @domName DOMSettableTokenList; @docsEditable true | 6013 /// @domName DOMSettableTokenList; @docsEditable true |
6024 class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" { | 6014 class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" { |
6025 | 6015 |
6026 /** @domName DOMSettableTokenList.value; @docsEditable true */ | 6016 /// @domName DOMSettableTokenList.value; @docsEditable true |
6027 String value; | 6017 String value; |
6028 } | 6018 } |
6029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6030 // for details. All rights reserved. Use of this source code is governed by a | 6020 // for details. All rights reserved. Use of this source code is governed by a |
6031 // BSD-style license that can be found in the LICENSE file. | 6021 // BSD-style license that can be found in the LICENSE file. |
6032 | 6022 |
6033 | 6023 |
6034 /// @domName DOMStringMap | 6024 /// @domName DOMStringMap |
6035 abstract class DOMStringMap { | 6025 abstract class DOMStringMap { |
6036 } | 6026 } |
6037 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6038 // for details. All rights reserved. Use of this source code is governed by a | 6028 // for details. All rights reserved. Use of this source code is governed by a |
6039 // BSD-style license that can be found in the LICENSE file. | 6029 // BSD-style license that can be found in the LICENSE file. |
6040 | 6030 |
6041 | 6031 |
6042 /// @domName DOMTokenList; @docsEditable true | 6032 /// @domName DOMTokenList; @docsEditable true |
6043 class DOMTokenList native "*DOMTokenList" { | 6033 class DOMTokenList native "*DOMTokenList" { |
6044 | 6034 |
6045 /** @domName DOMTokenList.length; @docsEditable true */ | 6035 /// @domName DOMTokenList.length; @docsEditable true |
6046 final int length; | 6036 final int length; |
6047 | 6037 |
6048 /** @domName DOMTokenList.contains; @docsEditable true */ | 6038 /// @domName DOMTokenList.contains; @docsEditable true |
6049 bool contains(String token) native; | 6039 bool contains(String token) native; |
6050 | 6040 |
6051 /** @domName DOMTokenList.item; @docsEditable true */ | 6041 /// @domName DOMTokenList.item; @docsEditable true |
6052 String item(int index) native; | 6042 String item(int index) native; |
6053 | 6043 |
6054 /** @domName DOMTokenList.toString; @docsEditable true */ | 6044 /// @domName DOMTokenList.toString; @docsEditable true |
6055 String toString() native; | 6045 String toString() native; |
6056 | 6046 |
6057 /** @domName DOMTokenList.toggle; @docsEditable true */ | 6047 /// @domName DOMTokenList.toggle; @docsEditable true |
6058 bool toggle(String token, [bool force]) native; | 6048 bool toggle(String token, [bool force]) native; |
6059 } | 6049 } |
6060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6050 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6061 // for details. All rights reserved. Use of this source code is governed by a | 6051 // for details. All rights reserved. Use of this source code is governed by a |
6062 // BSD-style license that can be found in the LICENSE file. | 6052 // BSD-style license that can be found in the LICENSE file. |
6063 | 6053 |
6064 | 6054 |
6065 /// @domName HTMLDataListElement; @docsEditable true | 6055 /// @domName HTMLDataListElement; @docsEditable true |
6066 class DataListElement extends Element implements Element native "*HTMLDataListEl
ement" { | 6056 class DataListElement extends Element implements Element native "*HTMLDataListEl
ement" { |
6067 | 6057 |
6068 factory DataListElement() => document.$dom_createElement("datalist"); | 6058 factory DataListElement() => document.$dom_createElement("datalist"); |
6069 | 6059 |
6070 /** @domName HTMLDataListElement.options; @docsEditable true */ | 6060 /// @domName HTMLDataListElement.options; @docsEditable true |
6071 final HTMLCollection options; | 6061 final HTMLCollection options; |
6072 } | 6062 } |
6073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6074 // for details. All rights reserved. Use of this source code is governed by a | 6064 // for details. All rights reserved. Use of this source code is governed by a |
6075 // BSD-style license that can be found in the LICENSE file. | 6065 // BSD-style license that can be found in the LICENSE file. |
6076 | 6066 |
6077 | 6067 |
6078 /// @domName DataTransferItem; @docsEditable true | 6068 /// @domName DataTransferItem; @docsEditable true |
6079 class DataTransferItem native "*DataTransferItem" { | 6069 class DataTransferItem native "*DataTransferItem" { |
6080 | 6070 |
6081 /** @domName DataTransferItem.kind; @docsEditable true */ | 6071 /// @domName DataTransferItem.kind; @docsEditable true |
6082 final String kind; | 6072 final String kind; |
6083 | 6073 |
6084 /** @domName DataTransferItem.type; @docsEditable true */ | 6074 /// @domName DataTransferItem.type; @docsEditable true |
6085 final String type; | 6075 final String type; |
6086 | 6076 |
6087 /** @domName DataTransferItem.getAsFile; @docsEditable true */ | 6077 /// @domName DataTransferItem.getAsFile; @docsEditable true |
6088 Blob getAsFile() native; | 6078 Blob getAsFile() native; |
6089 | 6079 |
6090 /** @domName DataTransferItem.getAsString; @docsEditable true */ | 6080 /// @domName DataTransferItem.getAsString; @docsEditable true |
6091 void getAsString([StringCallback callback]) native; | 6081 void getAsString([StringCallback callback]) native; |
6092 | 6082 |
6093 /** @domName DataTransferItem.webkitGetAsEntry; @docsEditable true */ | 6083 /// @domName DataTransferItem.webkitGetAsEntry; @docsEditable true |
6094 Entry webkitGetAsEntry() native; | 6084 Entry webkitGetAsEntry() native; |
6095 } | 6085 } |
6096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6097 // for details. All rights reserved. Use of this source code is governed by a | 6087 // for details. All rights reserved. Use of this source code is governed by a |
6098 // BSD-style license that can be found in the LICENSE file. | 6088 // BSD-style license that can be found in the LICENSE file. |
6099 | 6089 |
6100 | 6090 |
6101 /// @domName DataTransferItemList; @docsEditable true | 6091 /// @domName DataTransferItemList; @docsEditable true |
6102 class DataTransferItemList native "*DataTransferItemList" { | 6092 class DataTransferItemList native "*DataTransferItemList" { |
6103 | 6093 |
6104 /** @domName DataTransferItemList.length; @docsEditable true */ | 6094 /// @domName DataTransferItemList.length; @docsEditable true |
6105 final int length; | 6095 final int length; |
6106 | 6096 |
6107 /** @domName DataTransferItemList.add; @docsEditable true */ | 6097 /// @domName DataTransferItemList.add; @docsEditable true |
6108 void add(data_OR_file, [String type]) native; | 6098 void add(data_OR_file, [String type]) native; |
6109 | 6099 |
6110 /** @domName DataTransferItemList.clear; @docsEditable true */ | 6100 /// @domName DataTransferItemList.clear; @docsEditable true |
6111 void clear() native; | 6101 void clear() native; |
6112 | 6102 |
6113 /** @domName DataTransferItemList.item; @docsEditable true */ | 6103 /// @domName DataTransferItemList.item; @docsEditable true |
6114 DataTransferItem item(int index) native; | 6104 DataTransferItem item(int index) native; |
6115 } | 6105 } |
6116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6117 // for details. All rights reserved. Use of this source code is governed by a | 6107 // for details. All rights reserved. Use of this source code is governed by a |
6118 // BSD-style license that can be found in the LICENSE file. | 6108 // BSD-style license that can be found in the LICENSE file. |
6119 | 6109 |
6120 | 6110 |
6121 /// @domName DataView; @docsEditable true | 6111 /// @domName DataView; @docsEditable true |
6122 class DataView extends ArrayBufferView native "*DataView" { | 6112 class DataView extends ArrayBufferView native "*DataView" { |
6123 | 6113 |
6124 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { | 6114 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { |
6125 if (!?byteOffset) { | 6115 if (!?byteOffset) { |
6126 return _DataViewFactoryProvider.createDataView(buffer); | 6116 return _DataViewFactoryProvider.createDataView(buffer); |
6127 } | 6117 } |
6128 if (!?byteLength) { | 6118 if (!?byteLength) { |
6129 return _DataViewFactoryProvider.createDataView(buffer, byteOffset); | 6119 return _DataViewFactoryProvider.createDataView(buffer, byteOffset); |
6130 } | 6120 } |
6131 return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLengt
h); | 6121 return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLengt
h); |
6132 } | 6122 } |
6133 | 6123 |
6134 /** @domName DataView.getFloat32; @docsEditable true */ | 6124 /// @domName DataView.getFloat32; @docsEditable true |
6135 num getFloat32(int byteOffset, {bool littleEndian}) native; | 6125 num getFloat32(int byteOffset, {bool littleEndian}) native; |
6136 | 6126 |
6137 /** @domName DataView.getFloat64; @docsEditable true */ | 6127 /// @domName DataView.getFloat64; @docsEditable true |
6138 num getFloat64(int byteOffset, {bool littleEndian}) native; | 6128 num getFloat64(int byteOffset, {bool littleEndian}) native; |
6139 | 6129 |
6140 /** @domName DataView.getInt16; @docsEditable true */ | 6130 /// @domName DataView.getInt16; @docsEditable true |
6141 int getInt16(int byteOffset, {bool littleEndian}) native; | 6131 int getInt16(int byteOffset, {bool littleEndian}) native; |
6142 | 6132 |
6143 /** @domName DataView.getInt32; @docsEditable true */ | 6133 /// @domName DataView.getInt32; @docsEditable true |
6144 int getInt32(int byteOffset, {bool littleEndian}) native; | 6134 int getInt32(int byteOffset, {bool littleEndian}) native; |
6145 | 6135 |
6146 /** @domName DataView.getInt8; @docsEditable true */ | 6136 /// @domName DataView.getInt8; @docsEditable true |
6147 int getInt8(int byteOffset) native; | 6137 int getInt8(int byteOffset) native; |
6148 | 6138 |
6149 /** @domName DataView.getUint16; @docsEditable true */ | 6139 /// @domName DataView.getUint16; @docsEditable true |
6150 int getUint16(int byteOffset, {bool littleEndian}) native; | 6140 int getUint16(int byteOffset, {bool littleEndian}) native; |
6151 | 6141 |
6152 /** @domName DataView.getUint32; @docsEditable true */ | 6142 /// @domName DataView.getUint32; @docsEditable true |
6153 int getUint32(int byteOffset, {bool littleEndian}) native; | 6143 int getUint32(int byteOffset, {bool littleEndian}) native; |
6154 | 6144 |
6155 /** @domName DataView.getUint8; @docsEditable true */ | 6145 /// @domName DataView.getUint8; @docsEditable true |
6156 int getUint8(int byteOffset) native; | 6146 int getUint8(int byteOffset) native; |
6157 | 6147 |
6158 /** @domName DataView.setFloat32; @docsEditable true */ | 6148 /// @domName DataView.setFloat32; @docsEditable true |
6159 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; | 6149 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; |
6160 | 6150 |
6161 /** @domName DataView.setFloat64; @docsEditable true */ | 6151 /// @domName DataView.setFloat64; @docsEditable true |
6162 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; | 6152 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; |
6163 | 6153 |
6164 /** @domName DataView.setInt16; @docsEditable true */ | 6154 /// @domName DataView.setInt16; @docsEditable true |
6165 void setInt16(int byteOffset, int value, {bool littleEndian}) native; | 6155 void setInt16(int byteOffset, int value, {bool littleEndian}) native; |
6166 | 6156 |
6167 /** @domName DataView.setInt32; @docsEditable true */ | 6157 /// @domName DataView.setInt32; @docsEditable true |
6168 void setInt32(int byteOffset, int value, {bool littleEndian}) native; | 6158 void setInt32(int byteOffset, int value, {bool littleEndian}) native; |
6169 | 6159 |
6170 /** @domName DataView.setInt8; @docsEditable true */ | 6160 /// @domName DataView.setInt8; @docsEditable true |
6171 void setInt8(int byteOffset, int value) native; | 6161 void setInt8(int byteOffset, int value) native; |
6172 | 6162 |
6173 /** @domName DataView.setUint16; @docsEditable true */ | 6163 /// @domName DataView.setUint16; @docsEditable true |
6174 void setUint16(int byteOffset, int value, {bool littleEndian}) native; | 6164 void setUint16(int byteOffset, int value, {bool littleEndian}) native; |
6175 | 6165 |
6176 /** @domName DataView.setUint32; @docsEditable true */ | 6166 /// @domName DataView.setUint32; @docsEditable true |
6177 void setUint32(int byteOffset, int value, {bool littleEndian}) native; | 6167 void setUint32(int byteOffset, int value, {bool littleEndian}) native; |
6178 | 6168 |
6179 /** @domName DataView.setUint8; @docsEditable true */ | 6169 /// @domName DataView.setUint8; @docsEditable true |
6180 void setUint8(int byteOffset, int value) native; | 6170 void setUint8(int byteOffset, int value) native; |
6181 } | 6171 } |
6182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6183 // for details. All rights reserved. Use of this source code is governed by a | 6173 // for details. All rights reserved. Use of this source code is governed by a |
6184 // BSD-style license that can be found in the LICENSE file. | 6174 // BSD-style license that can be found in the LICENSE file. |
6185 | 6175 |
6186 | 6176 |
6187 /// @domName Database; @docsEditable true | 6177 /// @domName Database; @docsEditable true |
6188 class Database native "*Database" { | 6178 class Database native "*Database" { |
6189 | 6179 |
6190 /** @domName Database.version; @docsEditable true */ | 6180 /// @domName Database.version; @docsEditable true |
6191 final String version; | 6181 final String version; |
6192 | 6182 |
6193 /** @domName Database.changeVersion; @docsEditable true */ | 6183 /// @domName Database.changeVersion; @docsEditable true |
6194 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; | 6184 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; |
6195 | 6185 |
6196 /** @domName Database.readTransaction; @docsEditable true */ | 6186 /// @domName Database.readTransaction; @docsEditable true |
6197 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; | 6187 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; |
6198 | 6188 |
6199 /** @domName Database.transaction; @docsEditable true */ | 6189 /// @domName Database.transaction; @docsEditable true |
6200 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; | 6190 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; |
6201 } | 6191 } |
6202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6203 // for details. All rights reserved. Use of this source code is governed by a | 6193 // for details. All rights reserved. Use of this source code is governed by a |
6204 // BSD-style license that can be found in the LICENSE file. | 6194 // BSD-style license that can be found in the LICENSE file. |
6205 | 6195 |
6206 // WARNING: Do not edit - generated code. | 6196 // WARNING: Do not edit - generated code. |
6207 | 6197 |
6208 | 6198 |
6209 typedef void DatabaseCallback(database); | 6199 typedef void DatabaseCallback(database); |
6210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6211 // for details. All rights reserved. Use of this source code is governed by a | 6201 // for details. All rights reserved. Use of this source code is governed by a |
6212 // BSD-style license that can be found in the LICENSE file. | 6202 // BSD-style license that can be found in the LICENSE file. |
6213 | 6203 |
6214 | 6204 |
6215 /// @domName DatabaseSync; @docsEditable true | 6205 /// @domName DatabaseSync; @docsEditable true |
6216 class DatabaseSync native "*DatabaseSync" { | 6206 class DatabaseSync native "*DatabaseSync" { |
6217 | 6207 |
6218 /** @domName DatabaseSync.lastErrorMessage; @docsEditable true */ | 6208 /// @domName DatabaseSync.lastErrorMessage; @docsEditable true |
6219 final String lastErrorMessage; | 6209 final String lastErrorMessage; |
6220 | 6210 |
6221 /** @domName DatabaseSync.version; @docsEditable true */ | 6211 /// @domName DatabaseSync.version; @docsEditable true |
6222 final String version; | 6212 final String version; |
6223 | 6213 |
6224 /** @domName DatabaseSync.changeVersion; @docsEditable true */ | 6214 /// @domName DatabaseSync.changeVersion; @docsEditable true |
6225 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback]) native; | 6215 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback]) native; |
6226 | 6216 |
6227 /** @domName DatabaseSync.readTransaction; @docsEditable true */ | 6217 /// @domName DatabaseSync.readTransaction; @docsEditable true |
6228 void readTransaction(SQLTransactionSyncCallback callback) native; | 6218 void readTransaction(SQLTransactionSyncCallback callback) native; |
6229 | 6219 |
6230 /** @domName DatabaseSync.transaction; @docsEditable true */ | 6220 /// @domName DatabaseSync.transaction; @docsEditable true |
6231 void transaction(SQLTransactionSyncCallback callback) native; | 6221 void transaction(SQLTransactionSyncCallback callback) native; |
6232 } | 6222 } |
6233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6234 // for details. All rights reserved. Use of this source code is governed by a | 6224 // for details. All rights reserved. Use of this source code is governed by a |
6235 // BSD-style license that can be found in the LICENSE file. | 6225 // BSD-style license that can be found in the LICENSE file. |
6236 | 6226 |
6237 | 6227 |
6238 /// @domName DedicatedWorkerContext; @docsEditable true | 6228 /// @domName DedicatedWorkerContext; @docsEditable true |
6239 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte
xt" { | 6229 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte
xt" { |
6240 | 6230 |
6241 /** | 6231 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
6242 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
6243 */ | |
6244 DedicatedWorkerContextEvents get on => | 6232 DedicatedWorkerContextEvents get on => |
6245 new DedicatedWorkerContextEvents(this); | 6233 new DedicatedWorkerContextEvents(this); |
6246 | 6234 |
6247 /** @domName DedicatedWorkerContext.postMessage; @docsEditable true */ | 6235 /// @domName DedicatedWorkerContext.postMessage; @docsEditable true |
6248 void postMessage(/*any*/ message, [List messagePorts]) { | 6236 void postMessage(/*any*/ message, [List messagePorts]) { |
6249 if (?messagePorts) { | 6237 if (?messagePorts) { |
6250 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 6238 var message_1 = _convertDartToNative_SerializedScriptValue(message); |
6251 _postMessage_1(message_1, messagePorts); | 6239 _postMessage_1(message_1, messagePorts); |
6252 return; | 6240 return; |
6253 } | 6241 } |
6254 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 6242 var message_2 = _convertDartToNative_SerializedScriptValue(message); |
6255 _postMessage_2(message_2); | 6243 _postMessage_2(message_2); |
6256 return; | 6244 return; |
6257 } | 6245 } |
6258 void _postMessage_1(message, List messagePorts) native "postMessage"; | 6246 void _postMessage_1(message, List messagePorts) native "postMessage"; |
6259 void _postMessage_2(message) native "postMessage"; | 6247 void _postMessage_2(message) native "postMessage"; |
6260 } | 6248 } |
6261 | 6249 |
6262 class DedicatedWorkerContextEvents extends WorkerContextEvents { | 6250 class DedicatedWorkerContextEvents extends WorkerContextEvents { |
6263 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); | 6251 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
6264 | 6252 |
6265 EventListenerList get message => this['message']; | 6253 EventListenerList get message => this['message']; |
6266 } | 6254 } |
6267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6268 // for details. All rights reserved. Use of this source code is governed by a | 6256 // for details. All rights reserved. Use of this source code is governed by a |
6269 // BSD-style license that can be found in the LICENSE file. | 6257 // BSD-style license that can be found in the LICENSE file. |
6270 | 6258 |
6271 | 6259 |
6272 /// @domName DelayNode; @docsEditable true | 6260 /// @domName DelayNode; @docsEditable true |
6273 class DelayNode extends AudioNode native "*DelayNode" { | 6261 class DelayNode extends AudioNode native "*DelayNode" { |
6274 | 6262 |
6275 /** @domName DelayNode.delayTime; @docsEditable true */ | 6263 /// @domName DelayNode.delayTime; @docsEditable true |
6276 final AudioParam delayTime; | 6264 final AudioParam delayTime; |
6277 } | 6265 } |
6278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6279 // for details. All rights reserved. Use of this source code is governed by a | 6267 // for details. All rights reserved. Use of this source code is governed by a |
6280 // BSD-style license that can be found in the LICENSE file. | 6268 // BSD-style license that can be found in the LICENSE file. |
6281 | 6269 |
6282 | 6270 |
6283 /// @domName HTMLDetailsElement; @docsEditable true | 6271 /// @domName HTMLDetailsElement; @docsEditable true |
6284 class DetailsElement extends Element implements Element native "*HTMLDetailsElem
ent" { | 6272 class DetailsElement extends Element implements Element native "*HTMLDetailsElem
ent" { |
6285 | 6273 |
6286 factory DetailsElement() => document.$dom_createElement("details"); | 6274 factory DetailsElement() => document.$dom_createElement("details"); |
6287 | 6275 |
6288 /** @domName HTMLDetailsElement.open; @docsEditable true */ | 6276 /// @domName HTMLDetailsElement.open; @docsEditable true |
6289 bool open; | 6277 bool open; |
6290 } | 6278 } |
6291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6292 // for details. All rights reserved. Use of this source code is governed by a | 6280 // for details. All rights reserved. Use of this source code is governed by a |
6293 // BSD-style license that can be found in the LICENSE file. | 6281 // BSD-style license that can be found in the LICENSE file. |
6294 | 6282 |
6295 | 6283 |
6296 /// @domName DeviceMotionEvent; @docsEditable true | 6284 /// @domName DeviceMotionEvent; @docsEditable true |
6297 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { | 6285 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { |
6298 | 6286 |
6299 /** @domName DeviceMotionEvent.interval; @docsEditable true */ | 6287 /// @domName DeviceMotionEvent.interval; @docsEditable true |
6300 final num interval; | 6288 final num interval; |
6301 } | 6289 } |
6302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6303 // for details. All rights reserved. Use of this source code is governed by a | 6291 // for details. All rights reserved. Use of this source code is governed by a |
6304 // BSD-style license that can be found in the LICENSE file. | 6292 // BSD-style license that can be found in the LICENSE file. |
6305 | 6293 |
6306 | 6294 |
6307 /// @domName DeviceOrientationEvent; @docsEditable true | 6295 /// @domName DeviceOrientationEvent; @docsEditable true |
6308 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { | 6296 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { |
6309 | 6297 |
6310 /** @domName DeviceOrientationEvent.absolute; @docsEditable true */ | 6298 /// @domName DeviceOrientationEvent.absolute; @docsEditable true |
6311 final bool absolute; | 6299 final bool absolute; |
6312 | 6300 |
6313 /** @domName DeviceOrientationEvent.alpha; @docsEditable true */ | 6301 /// @domName DeviceOrientationEvent.alpha; @docsEditable true |
6314 final num alpha; | 6302 final num alpha; |
6315 | 6303 |
6316 /** @domName DeviceOrientationEvent.beta; @docsEditable true */ | 6304 /// @domName DeviceOrientationEvent.beta; @docsEditable true |
6317 final num beta; | 6305 final num beta; |
6318 | 6306 |
6319 /** @domName DeviceOrientationEvent.gamma; @docsEditable true */ | 6307 /// @domName DeviceOrientationEvent.gamma; @docsEditable true |
6320 final num gamma; | 6308 final num gamma; |
6321 | 6309 |
6322 /** @domName DeviceOrientationEvent.initDeviceOrientationEvent; @docsEditable
true */ | 6310 /// @domName DeviceOrientationEvent.initDeviceOrientationEvent; @docsEditable
true |
6323 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; | 6311 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; |
6324 } | 6312 } |
6325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6326 // for details. All rights reserved. Use of this source code is governed by a | 6314 // for details. All rights reserved. Use of this source code is governed by a |
6327 // BSD-style license that can be found in the LICENSE file. | 6315 // BSD-style license that can be found in the LICENSE file. |
6328 | 6316 |
6329 | 6317 |
6330 /// @domName HTMLDirectoryElement; @docsEditable true | 6318 /// @domName HTMLDirectoryElement; @docsEditable true |
6331 class DirectoryElement extends Element implements Element native "*HTMLDirectory
Element" { | 6319 class DirectoryElement extends Element implements Element native "*HTMLDirectory
Element" { |
6332 | 6320 |
6333 /** @domName HTMLDirectoryElement.compact; @docsEditable true */ | 6321 /// @domName HTMLDirectoryElement.compact; @docsEditable true |
6334 bool compact; | 6322 bool compact; |
6335 } | 6323 } |
6336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6337 // for details. All rights reserved. Use of this source code is governed by a | 6325 // for details. All rights reserved. Use of this source code is governed by a |
6338 // BSD-style license that can be found in the LICENSE file. | 6326 // BSD-style license that can be found in the LICENSE file. |
6339 | 6327 |
6340 | 6328 |
6341 /// @domName DirectoryEntry; @docsEditable true | 6329 /// @domName DirectoryEntry; @docsEditable true |
6342 class DirectoryEntry extends Entry native "*DirectoryEntry" { | 6330 class DirectoryEntry extends Entry native "*DirectoryEntry" { |
6343 | 6331 |
6344 /** @domName DirectoryEntry.createReader; @docsEditable true */ | 6332 /// @domName DirectoryEntry.createReader; @docsEditable true |
6345 DirectoryReader createReader() native; | 6333 DirectoryReader createReader() native; |
6346 | 6334 |
6347 /** @domName DirectoryEntry.getDirectory; @docsEditable true */ | 6335 /// @domName DirectoryEntry.getDirectory; @docsEditable true |
6348 void getDirectory(String path, {Map options, EntryCallback successCallback, Er
rorCallback errorCallback}) { | 6336 void getDirectory(String path, {Map options, EntryCallback successCallback, Er
rorCallback errorCallback}) { |
6349 if (?errorCallback) { | 6337 if (?errorCallback) { |
6350 var options_1 = _convertDartToNative_Dictionary(options); | 6338 var options_1 = _convertDartToNative_Dictionary(options); |
6351 _getDirectory_1(path, options_1, successCallback, errorCallback); | 6339 _getDirectory_1(path, options_1, successCallback, errorCallback); |
6352 return; | 6340 return; |
6353 } | 6341 } |
6354 if (?successCallback) { | 6342 if (?successCallback) { |
6355 var options_2 = _convertDartToNative_Dictionary(options); | 6343 var options_2 = _convertDartToNative_Dictionary(options); |
6356 _getDirectory_2(path, options_2, successCallback); | 6344 _getDirectory_2(path, options_2, successCallback); |
6357 return; | 6345 return; |
6358 } | 6346 } |
6359 if (?options) { | 6347 if (?options) { |
6360 var options_3 = _convertDartToNative_Dictionary(options); | 6348 var options_3 = _convertDartToNative_Dictionary(options); |
6361 _getDirectory_3(path, options_3); | 6349 _getDirectory_3(path, options_3); |
6362 return; | 6350 return; |
6363 } | 6351 } |
6364 _getDirectory_4(path); | 6352 _getDirectory_4(path); |
6365 return; | 6353 return; |
6366 } | 6354 } |
6367 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba
ck errorCallback) native "getDirectory"; | 6355 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba
ck errorCallback) native "getDirectory"; |
6368 void _getDirectory_2(path, options, EntryCallback successCallback) native "get
Directory"; | 6356 void _getDirectory_2(path, options, EntryCallback successCallback) native "get
Directory"; |
6369 void _getDirectory_3(path, options) native "getDirectory"; | 6357 void _getDirectory_3(path, options) native "getDirectory"; |
6370 void _getDirectory_4(path) native "getDirectory"; | 6358 void _getDirectory_4(path) native "getDirectory"; |
6371 | 6359 |
6372 /** @domName DirectoryEntry.getFile; @docsEditable true */ | 6360 /// @domName DirectoryEntry.getFile; @docsEditable true |
6373 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa
llback errorCallback}) { | 6361 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa
llback errorCallback}) { |
6374 if (?errorCallback) { | 6362 if (?errorCallback) { |
6375 var options_1 = _convertDartToNative_Dictionary(options); | 6363 var options_1 = _convertDartToNative_Dictionary(options); |
6376 _getFile_1(path, options_1, successCallback, errorCallback); | 6364 _getFile_1(path, options_1, successCallback, errorCallback); |
6377 return; | 6365 return; |
6378 } | 6366 } |
6379 if (?successCallback) { | 6367 if (?successCallback) { |
6380 var options_2 = _convertDartToNative_Dictionary(options); | 6368 var options_2 = _convertDartToNative_Dictionary(options); |
6381 _getFile_2(path, options_2, successCallback); | 6369 _getFile_2(path, options_2, successCallback); |
6382 return; | 6370 return; |
6383 } | 6371 } |
6384 if (?options) { | 6372 if (?options) { |
6385 var options_3 = _convertDartToNative_Dictionary(options); | 6373 var options_3 = _convertDartToNative_Dictionary(options); |
6386 _getFile_3(path, options_3); | 6374 _getFile_3(path, options_3); |
6387 return; | 6375 return; |
6388 } | 6376 } |
6389 _getFile_4(path); | 6377 _getFile_4(path); |
6390 return; | 6378 return; |
6391 } | 6379 } |
6392 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er
rorCallback) native "getFile"; | 6380 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er
rorCallback) native "getFile"; |
6393 void _getFile_2(path, options, EntryCallback successCallback) native "getFile"
; | 6381 void _getFile_2(path, options, EntryCallback successCallback) native "getFile"
; |
6394 void _getFile_3(path, options) native "getFile"; | 6382 void _getFile_3(path, options) native "getFile"; |
6395 void _getFile_4(path) native "getFile"; | 6383 void _getFile_4(path) native "getFile"; |
6396 | 6384 |
6397 /** @domName DirectoryEntry.removeRecursively; @docsEditable true */ | 6385 /// @domName DirectoryEntry.removeRecursively; @docsEditable true |
6398 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; | 6386 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; |
6399 } | 6387 } |
6400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6401 // for details. All rights reserved. Use of this source code is governed by a | 6389 // for details. All rights reserved. Use of this source code is governed by a |
6402 // BSD-style license that can be found in the LICENSE file. | 6390 // BSD-style license that can be found in the LICENSE file. |
6403 | 6391 |
6404 | 6392 |
6405 /// @domName DirectoryEntrySync; @docsEditable true | 6393 /// @domName DirectoryEntrySync; @docsEditable true |
6406 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { | 6394 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { |
6407 | 6395 |
6408 /** @domName DirectoryEntrySync.createReader; @docsEditable true */ | 6396 /// @domName DirectoryEntrySync.createReader; @docsEditable true |
6409 DirectoryReaderSync createReader() native; | 6397 DirectoryReaderSync createReader() native; |
6410 | 6398 |
6411 /** @domName DirectoryEntrySync.getDirectory; @docsEditable true */ | 6399 /// @domName DirectoryEntrySync.getDirectory; @docsEditable true |
6412 DirectoryEntrySync getDirectory(String path, Map flags) { | 6400 DirectoryEntrySync getDirectory(String path, Map flags) { |
6413 var flags_1 = _convertDartToNative_Dictionary(flags); | 6401 var flags_1 = _convertDartToNative_Dictionary(flags); |
6414 return _getDirectory_1(path, flags_1); | 6402 return _getDirectory_1(path, flags_1); |
6415 } | 6403 } |
6416 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; | 6404 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; |
6417 | 6405 |
6418 /** @domName DirectoryEntrySync.getFile; @docsEditable true */ | 6406 /// @domName DirectoryEntrySync.getFile; @docsEditable true |
6419 FileEntrySync getFile(String path, Map flags) { | 6407 FileEntrySync getFile(String path, Map flags) { |
6420 var flags_1 = _convertDartToNative_Dictionary(flags); | 6408 var flags_1 = _convertDartToNative_Dictionary(flags); |
6421 return _getFile_1(path, flags_1); | 6409 return _getFile_1(path, flags_1); |
6422 } | 6410 } |
6423 FileEntrySync _getFile_1(path, flags) native "getFile"; | 6411 FileEntrySync _getFile_1(path, flags) native "getFile"; |
6424 | 6412 |
6425 /** @domName DirectoryEntrySync.removeRecursively; @docsEditable true */ | 6413 /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true |
6426 void removeRecursively() native; | 6414 void removeRecursively() native; |
6427 } | 6415 } |
6428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6429 // for details. All rights reserved. Use of this source code is governed by a | 6417 // for details. All rights reserved. Use of this source code is governed by a |
6430 // BSD-style license that can be found in the LICENSE file. | 6418 // BSD-style license that can be found in the LICENSE file. |
6431 | 6419 |
6432 | 6420 |
6433 /// @domName DirectoryReader; @docsEditable true | 6421 /// @domName DirectoryReader; @docsEditable true |
6434 class DirectoryReader native "*DirectoryReader" { | 6422 class DirectoryReader native "*DirectoryReader" { |
6435 | 6423 |
6436 /** @domName DirectoryReader.readEntries; @docsEditable true */ | 6424 /// @domName DirectoryReader.readEntries; @docsEditable true |
6437 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]) native; | 6425 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]) native; |
6438 } | 6426 } |
6439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6440 // for details. All rights reserved. Use of this source code is governed by a | 6428 // for details. All rights reserved. Use of this source code is governed by a |
6441 // BSD-style license that can be found in the LICENSE file. | 6429 // BSD-style license that can be found in the LICENSE file. |
6442 | 6430 |
6443 | 6431 |
6444 /// @domName DirectoryReaderSync; @docsEditable true | 6432 /// @domName DirectoryReaderSync; @docsEditable true |
6445 class DirectoryReaderSync native "*DirectoryReaderSync" { | 6433 class DirectoryReaderSync native "*DirectoryReaderSync" { |
6446 | 6434 |
6447 /** @domName DirectoryReaderSync.readEntries; @docsEditable true */ | 6435 /// @domName DirectoryReaderSync.readEntries; @docsEditable true |
6448 @Returns('_EntryArraySync') @Creates('_EntryArraySync') | 6436 @Returns('_EntryArraySync') @Creates('_EntryArraySync') |
6449 List<EntrySync> readEntries() native; | 6437 List<EntrySync> readEntries() native; |
6450 } | 6438 } |
6451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6452 // for details. All rights reserved. Use of this source code is governed by a | 6440 // for details. All rights reserved. Use of this source code is governed by a |
6453 // BSD-style license that can be found in the LICENSE file. | 6441 // BSD-style license that can be found in the LICENSE file. |
6454 | 6442 |
6455 | 6443 |
6456 /// @domName HTMLDivElement; @docsEditable true | 6444 /// @domName HTMLDivElement; @docsEditable true |
6457 class DivElement extends Element implements Element native "*HTMLDivElement" { | 6445 class DivElement extends Element implements Element native "*HTMLDivElement" { |
6458 | 6446 |
6459 factory DivElement() => document.$dom_createElement("div"); | 6447 factory DivElement() => document.$dom_createElement("div"); |
6460 } | 6448 } |
6461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6462 // for details. All rights reserved. Use of this source code is governed by a | 6450 // for details. All rights reserved. Use of this source code is governed by a |
6463 // BSD-style license that can be found in the LICENSE file. | 6451 // BSD-style license that can be found in the LICENSE file. |
6464 | 6452 |
6465 | 6453 |
6466 class Document extends Node native "*Document" | 6454 class Document extends Node native "*Document" |
6467 { | 6455 { |
6468 | 6456 |
6469 | 6457 |
6470 /** | 6458 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
6471 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
6472 */ | |
6473 DocumentEvents get on => | 6459 DocumentEvents get on => |
6474 new DocumentEvents(this); | 6460 new DocumentEvents(this); |
6475 | 6461 |
6476 /** @domName Document.body; @docsEditable true */ | 6462 /// @domName Document.body; @docsEditable true |
6477 Element get $dom_body => JS("Element", "#.body", this); | 6463 Element get $dom_body => JS("Element", "#.body", this); |
6478 | 6464 |
6479 /** @domName Document.body; @docsEditable true */ | 6465 /// @domName Document.body; @docsEditable true |
6480 void set $dom_body(Element value) { | 6466 void set $dom_body(Element value) { |
6481 JS("void", "#.body = #", this, value); | 6467 JS("void", "#.body = #", this, value); |
6482 } | 6468 } |
6483 | 6469 |
6484 /** @domName Document.charset; @docsEditable true */ | 6470 /// @domName Document.charset; @docsEditable true |
6485 String charset; | 6471 String charset; |
6486 | 6472 |
6487 /** @domName Document.cookie; @docsEditable true */ | 6473 /// @domName Document.cookie; @docsEditable true |
6488 String cookie; | 6474 String cookie; |
6489 | 6475 |
6490 /** @domName Document.defaultView; @docsEditable true */ | 6476 /// @domName Document.defaultView; @docsEditable true |
6491 Window get window => _convertNativeToDart_Window(this._window); | 6477 Window get window => _convertNativeToDart_Window(this._window); |
6492 dynamic get _window => JS("dynamic", "#.defaultView", this); | 6478 dynamic get _window => JS("dynamic", "#.defaultView", this); |
6493 | 6479 |
6494 /** @domName Document.documentElement; @docsEditable true */ | 6480 /// @domName Document.documentElement; @docsEditable true |
6495 final Element documentElement; | 6481 final Element documentElement; |
6496 | 6482 |
6497 /** @domName Document.domain; @docsEditable true */ | 6483 /// @domName Document.domain; @docsEditable true |
6498 final String domain; | 6484 final String domain; |
6499 | 6485 |
6500 /** @domName Document.head; @docsEditable true */ | 6486 /// @domName Document.head; @docsEditable true |
6501 HeadElement get $dom_head => JS("HeadElement", "#.head", this); | 6487 HeadElement get $dom_head => JS("HeadElement", "#.head", this); |
6502 | 6488 |
6503 /** @domName Document.implementation; @docsEditable true */ | 6489 /// @domName Document.implementation; @docsEditable true |
6504 final DOMImplementation implementation; | 6490 final DOMImplementation implementation; |
6505 | 6491 |
6506 /** @domName Document.lastModified; @docsEditable true */ | 6492 /// @domName Document.lastModified; @docsEditable true |
6507 String get $dom_lastModified => JS("String", "#.lastModified", this); | 6493 String get $dom_lastModified => JS("String", "#.lastModified", this); |
6508 | 6494 |
6509 /** @domName Document.preferredStylesheetSet; @docsEditable true */ | 6495 /// @domName Document.preferredStylesheetSet; @docsEditable true |
6510 final String preferredStylesheetSet; | 6496 final String preferredStylesheetSet; |
6511 | 6497 |
6512 /** @domName Document.readyState; @docsEditable true */ | 6498 /// @domName Document.readyState; @docsEditable true |
6513 final String readyState; | 6499 final String readyState; |
6514 | 6500 |
6515 /** @domName Document.referrer; @docsEditable true */ | 6501 /// @domName Document.referrer; @docsEditable true |
6516 String get $dom_referrer => JS("String", "#.referrer", this); | 6502 String get $dom_referrer => JS("String", "#.referrer", this); |
6517 | 6503 |
6518 /** @domName Document.selectedStylesheetSet; @docsEditable true */ | 6504 /// @domName Document.selectedStylesheetSet; @docsEditable true |
6519 String selectedStylesheetSet; | 6505 String selectedStylesheetSet; |
6520 | 6506 |
6521 /** @domName Document.styleSheets; @docsEditable true */ | 6507 /// @domName Document.styleSheets; @docsEditable true |
6522 List<StyleSheet> get $dom_styleSheets => JS("_StyleSheetList", "#.styleSheets"
, this); | 6508 List<StyleSheet> get $dom_styleSheets => JS("_StyleSheetList", "#.styleSheets"
, this); |
6523 | 6509 |
6524 /** @domName Document.title; @docsEditable true */ | 6510 /// @domName Document.title; @docsEditable true |
6525 String get $dom_title => JS("String", "#.title", this); | 6511 String get $dom_title => JS("String", "#.title", this); |
6526 | 6512 |
6527 /** @domName Document.title; @docsEditable true */ | 6513 /// @domName Document.title; @docsEditable true |
6528 void set $dom_title(String value) { | 6514 void set $dom_title(String value) { |
6529 JS("void", "#.title = #", this, value); | 6515 JS("void", "#.title = #", this, value); |
6530 } | 6516 } |
6531 | 6517 |
6532 /** @domName Document.webkitFullscreenElement; @docsEditable true */ | 6518 /// @domName Document.webkitFullscreenElement; @docsEditable true |
6533 Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenE
lement", this); | 6519 Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenE
lement", this); |
6534 | 6520 |
6535 /** @domName Document.webkitFullscreenEnabled; @docsEditable true */ | 6521 /// @domName Document.webkitFullscreenEnabled; @docsEditable true |
6536 bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled
", this); | 6522 bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled
", this); |
6537 | 6523 |
6538 /** @domName Document.webkitHidden; @docsEditable true */ | 6524 /// @domName Document.webkitHidden; @docsEditable true |
6539 bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this); | 6525 bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this); |
6540 | 6526 |
6541 /** @domName Document.webkitIsFullScreen; @docsEditable true */ | 6527 /// @domName Document.webkitIsFullScreen; @docsEditable true |
6542 bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this); | 6528 bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this); |
6543 | 6529 |
6544 /** @domName Document.webkitPointerLockElement; @docsEditable true */ | 6530 /// @domName Document.webkitPointerLockElement; @docsEditable true |
6545 Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLoc
kElement", this); | 6531 Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLoc
kElement", this); |
6546 | 6532 |
6547 /** @domName Document.webkitVisibilityState; @docsEditable true */ | 6533 /// @domName Document.webkitVisibilityState; @docsEditable true |
6548 String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState
", this); | 6534 String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState
", this); |
6549 | 6535 |
6550 /** @domName Document.caretRangeFromPoint; @docsEditable true */ | 6536 /// @domName Document.caretRangeFromPoint; @docsEditable true |
6551 Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint"; | 6537 Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint"; |
6552 | 6538 |
6553 /** @domName Document.createCDATASection; @docsEditable true */ | 6539 /// @domName Document.createCDATASection; @docsEditable true |
6554 CDATASection createCDATASection(String data) native; | 6540 CDATASection createCDATASection(String data) native; |
6555 | 6541 |
6556 /** @domName Document.createDocumentFragment; @docsEditable true */ | 6542 /// @domName Document.createDocumentFragment; @docsEditable true |
6557 DocumentFragment createDocumentFragment() native; | 6543 DocumentFragment createDocumentFragment() native; |
6558 | 6544 |
6559 /** @domName Document.createElement; @docsEditable true */ | 6545 /// @domName Document.createElement; @docsEditable true |
6560 Element $dom_createElement(String tagName) native "createElement"; | 6546 Element $dom_createElement(String tagName) native "createElement"; |
6561 | 6547 |
6562 /** @domName Document.createElementNS; @docsEditable true */ | 6548 /// @domName Document.createElementNS; @docsEditable true |
6563 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native
"createElementNS"; | 6549 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native
"createElementNS"; |
6564 | 6550 |
6565 /** @domName Document.createEvent; @docsEditable true */ | 6551 /// @domName Document.createEvent; @docsEditable true |
6566 Event $dom_createEvent(String eventType) native "createEvent"; | 6552 Event $dom_createEvent(String eventType) native "createEvent"; |
6567 | 6553 |
6568 /** @domName Document.createRange; @docsEditable true */ | 6554 /// @domName Document.createRange; @docsEditable true |
6569 Range createRange() native; | 6555 Range createRange() native; |
6570 | 6556 |
6571 /** @domName Document.createTextNode; @docsEditable true */ | 6557 /// @domName Document.createTextNode; @docsEditable true |
6572 Text $dom_createTextNode(String data) native "createTextNode"; | 6558 Text $dom_createTextNode(String data) native "createTextNode"; |
6573 | 6559 |
6574 /** @domName Document.createTouch; @docsEditable true */ | 6560 /// @domName Document.createTouch; @docsEditable true |
6575 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { | 6561 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { |
6576 var target_1 = _convertDartToNative_EventTarget(target); | 6562 var target_1 = _convertDartToNative_EventTarget(target); |
6577 return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, s
creenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); | 6563 return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, s
creenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
6578 } | 6564 } |
6579 Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative "createTouch"; | 6565 Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative "createTouch"; |
6580 | 6566 |
6581 /** @domName Document.createTouchList; @docsEditable true */ | 6567 /// @domName Document.createTouchList; @docsEditable true |
6582 TouchList $dom_createTouchList() native "createTouchList"; | 6568 TouchList $dom_createTouchList() native "createTouchList"; |
6583 | 6569 |
6584 /** @domName Document.elementFromPoint; @docsEditable true */ | 6570 /// @domName Document.elementFromPoint; @docsEditable true |
6585 Element $dom_elementFromPoint(int x, int y) native "elementFromPoint"; | 6571 Element $dom_elementFromPoint(int x, int y) native "elementFromPoint"; |
6586 | 6572 |
6587 /** @domName Document.execCommand; @docsEditable true */ | 6573 /// @domName Document.execCommand; @docsEditable true |
6588 bool execCommand(String command, bool userInterface, String value) native; | 6574 bool execCommand(String command, bool userInterface, String value) native; |
6589 | 6575 |
6590 /** @domName Document.getCSSCanvasContext; @docsEditable true */ | 6576 /// @domName Document.getCSSCanvasContext; @docsEditable true |
6591 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height) native; | 6577 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height) native; |
6592 | 6578 |
6593 /** @domName Document.getElementById; @docsEditable true */ | 6579 /// @domName Document.getElementById; @docsEditable true |
6594 Element $dom_getElementById(String elementId) native "getElementById"; | 6580 Element $dom_getElementById(String elementId) native "getElementById"; |
6595 | 6581 |
6596 /** @domName Document.getElementsByClassName; @docsEditable true */ | 6582 /// @domName Document.getElementsByClassName; @docsEditable true |
6597 @Returns('_NodeList') @Creates('_NodeList') | 6583 @Returns('_NodeList') @Creates('_NodeList') |
6598 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl
assName"; | 6584 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl
assName"; |
6599 | 6585 |
6600 /** @domName Document.getElementsByName; @docsEditable true */ | 6586 /// @domName Document.getElementsByName; @docsEditable true |
6601 @Returns('_NodeList') @Creates('_NodeList') | 6587 @Returns('_NodeList') @Creates('_NodeList') |
6602 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam
e"; | 6588 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam
e"; |
6603 | 6589 |
6604 /** @domName Document.getElementsByTagName; @docsEditable true */ | 6590 /// @domName Document.getElementsByTagName; @docsEditable true |
6605 @Returns('_NodeList') @Creates('_NodeList') | 6591 @Returns('_NodeList') @Creates('_NodeList') |
6606 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN
ame"; | 6592 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN
ame"; |
6607 | 6593 |
6608 /** @domName Document.queryCommandEnabled; @docsEditable true */ | 6594 /// @domName Document.queryCommandEnabled; @docsEditable true |
6609 bool queryCommandEnabled(String command) native; | 6595 bool queryCommandEnabled(String command) native; |
6610 | 6596 |
6611 /** @domName Document.queryCommandIndeterm; @docsEditable true */ | 6597 /// @domName Document.queryCommandIndeterm; @docsEditable true |
6612 bool queryCommandIndeterm(String command) native; | 6598 bool queryCommandIndeterm(String command) native; |
6613 | 6599 |
6614 /** @domName Document.queryCommandState; @docsEditable true */ | 6600 /// @domName Document.queryCommandState; @docsEditable true |
6615 bool queryCommandState(String command) native; | 6601 bool queryCommandState(String command) native; |
6616 | 6602 |
6617 /** @domName Document.queryCommandSupported; @docsEditable true */ | 6603 /// @domName Document.queryCommandSupported; @docsEditable true |
6618 bool queryCommandSupported(String command) native; | 6604 bool queryCommandSupported(String command) native; |
6619 | 6605 |
6620 /** @domName Document.queryCommandValue; @docsEditable true */ | 6606 /// @domName Document.queryCommandValue; @docsEditable true |
6621 String queryCommandValue(String command) native; | 6607 String queryCommandValue(String command) native; |
6622 | 6608 |
6623 /** @domName Document.querySelector; @docsEditable true */ | 6609 /// @domName Document.querySelector; @docsEditable true |
6624 Element $dom_querySelector(String selectors) native "querySelector"; | 6610 Element $dom_querySelector(String selectors) native "querySelector"; |
6625 | 6611 |
6626 /** @domName Document.querySelectorAll; @docsEditable true */ | 6612 /// @domName Document.querySelectorAll; @docsEditable true |
6627 @Returns('_NodeList') @Creates('_NodeList') | 6613 @Returns('_NodeList') @Creates('_NodeList') |
6628 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; | 6614 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; |
6629 | 6615 |
6630 /** @domName Document.webkitCancelFullScreen; @docsEditable true */ | 6616 /// @domName Document.webkitCancelFullScreen; @docsEditable true |
6631 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen"; | 6617 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen"; |
6632 | 6618 |
6633 /** @domName Document.webkitExitFullscreen; @docsEditable true */ | 6619 /// @domName Document.webkitExitFullscreen; @docsEditable true |
6634 void $dom_webkitExitFullscreen() native "webkitExitFullscreen"; | 6620 void $dom_webkitExitFullscreen() native "webkitExitFullscreen"; |
6635 | 6621 |
6636 /** @domName Document.webkitExitPointerLock; @docsEditable true */ | 6622 /// @domName Document.webkitExitPointerLock; @docsEditable true |
6637 void $dom_webkitExitPointerLock() native "webkitExitPointerLock"; | 6623 void $dom_webkitExitPointerLock() native "webkitExitPointerLock"; |
6638 | 6624 |
6639 // TODO(jacobr): implement all Element methods not on Document. | 6625 // TODO(jacobr): implement all Element methods not on Document. |
6640 | 6626 |
6641 Element query(String selectors) { | 6627 Element query(String selectors) { |
6642 // It is fine for our RegExp to detect element id query selectors to have | 6628 // It is fine for our RegExp to detect element id query selectors to have |
6643 // false negatives but not false positives. | 6629 // false negatives but not false positives. |
6644 if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) { | 6630 if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) { |
6645 return $dom_getElementById(selectors.substring(1)); | 6631 return $dom_getElementById(selectors.substring(1)); |
6646 } | 6632 } |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7027 throw new UnsupportedError( | 7013 throw new UnsupportedError( |
7028 "WebKit drop zone can't be set for document fragments."); | 7014 "WebKit drop zone can't be set for document fragments."); |
7029 } | 7015 } |
7030 | 7016 |
7031 void set webkitRegionOverflow(String value) { | 7017 void set webkitRegionOverflow(String value) { |
7032 throw new UnsupportedError( | 7018 throw new UnsupportedError( |
7033 "WebKit region overflow can't be set for document fragments."); | 7019 "WebKit region overflow can't be set for document fragments."); |
7034 } | 7020 } |
7035 | 7021 |
7036 | 7022 |
7037 /** | 7023 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
7038 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
7039 */ | |
7040 ElementEvents get on => | 7024 ElementEvents get on => |
7041 new ElementEvents(this); | 7025 new ElementEvents(this); |
7042 | 7026 |
7043 /** @domName DocumentFragment.querySelector; @docsEditable true */ | 7027 /// @domName DocumentFragment.querySelector; @docsEditable true |
7044 Element $dom_querySelector(String selectors) native "querySelector"; | 7028 Element $dom_querySelector(String selectors) native "querySelector"; |
7045 | 7029 |
7046 /** @domName DocumentFragment.querySelectorAll; @docsEditable true */ | 7030 /// @domName DocumentFragment.querySelectorAll; @docsEditable true |
7047 @Returns('_NodeList') @Creates('_NodeList') | 7031 @Returns('_NodeList') @Creates('_NodeList') |
7048 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; | 7032 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; |
7049 | 7033 |
7050 } | 7034 } |
7051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7052 // for details. All rights reserved. Use of this source code is governed by a | 7036 // for details. All rights reserved. Use of this source code is governed by a |
7053 // BSD-style license that can be found in the LICENSE file. | 7037 // BSD-style license that can be found in the LICENSE file. |
7054 | 7038 |
7055 | 7039 |
7056 /// @domName DocumentType; @docsEditable true | 7040 /// @domName DocumentType; @docsEditable true |
7057 class DocumentType extends Node native "*DocumentType" { | 7041 class DocumentType extends Node native "*DocumentType" { |
7058 | 7042 |
7059 /** @domName DocumentType.entities; @docsEditable true */ | 7043 /// @domName DocumentType.entities; @docsEditable true |
7060 final NamedNodeMap entities; | 7044 final NamedNodeMap entities; |
7061 | 7045 |
7062 /** @domName DocumentType.internalSubset; @docsEditable true */ | 7046 /// @domName DocumentType.internalSubset; @docsEditable true |
7063 final String internalSubset; | 7047 final String internalSubset; |
7064 | 7048 |
7065 /** @domName DocumentType.name; @docsEditable true */ | 7049 /// @domName DocumentType.name; @docsEditable true |
7066 final String name; | 7050 final String name; |
7067 | 7051 |
7068 /** @domName DocumentType.notations; @docsEditable true */ | 7052 /// @domName DocumentType.notations; @docsEditable true |
7069 final NamedNodeMap notations; | 7053 final NamedNodeMap notations; |
7070 | 7054 |
7071 /** @domName DocumentType.publicId; @docsEditable true */ | 7055 /// @domName DocumentType.publicId; @docsEditable true |
7072 final String publicId; | 7056 final String publicId; |
7073 | 7057 |
7074 /** @domName DocumentType.systemId; @docsEditable true */ | 7058 /// @domName DocumentType.systemId; @docsEditable true |
7075 final String systemId; | 7059 final String systemId; |
7076 | 7060 |
7077 /** @domName DocumentType.remove; @docsEditable true */ | 7061 /// @domName DocumentType.remove; @docsEditable true |
7078 void remove() native; | 7062 void remove() native; |
7079 } | 7063 } |
7080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7081 // for details. All rights reserved. Use of this source code is governed by a | 7065 // for details. All rights reserved. Use of this source code is governed by a |
7082 // BSD-style license that can be found in the LICENSE file. | 7066 // BSD-style license that can be found in the LICENSE file. |
7083 | 7067 |
7084 | 7068 |
7085 /// @domName DynamicsCompressorNode; @docsEditable true | 7069 /// @domName DynamicsCompressorNode; @docsEditable true |
7086 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode"
{ | 7070 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode"
{ |
7087 | 7071 |
7088 /** @domName DynamicsCompressorNode.attack; @docsEditable true */ | 7072 /// @domName DynamicsCompressorNode.attack; @docsEditable true |
7089 final AudioParam attack; | 7073 final AudioParam attack; |
7090 | 7074 |
7091 /** @domName DynamicsCompressorNode.knee; @docsEditable true */ | 7075 /// @domName DynamicsCompressorNode.knee; @docsEditable true |
7092 final AudioParam knee; | 7076 final AudioParam knee; |
7093 | 7077 |
7094 /** @domName DynamicsCompressorNode.ratio; @docsEditable true */ | 7078 /// @domName DynamicsCompressorNode.ratio; @docsEditable true |
7095 final AudioParam ratio; | 7079 final AudioParam ratio; |
7096 | 7080 |
7097 /** @domName DynamicsCompressorNode.reduction; @docsEditable true */ | 7081 /// @domName DynamicsCompressorNode.reduction; @docsEditable true |
7098 final AudioParam reduction; | 7082 final AudioParam reduction; |
7099 | 7083 |
7100 /** @domName DynamicsCompressorNode.release; @docsEditable true */ | 7084 /// @domName DynamicsCompressorNode.release; @docsEditable true |
7101 final AudioParam release; | 7085 final AudioParam release; |
7102 | 7086 |
7103 /** @domName DynamicsCompressorNode.threshold; @docsEditable true */ | 7087 /// @domName DynamicsCompressorNode.threshold; @docsEditable true |
7104 final AudioParam threshold; | 7088 final AudioParam threshold; |
7105 } | 7089 } |
7106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7107 // for details. All rights reserved. Use of this source code is governed by a | 7091 // for details. All rights reserved. Use of this source code is governed by a |
7108 // BSD-style license that can be found in the LICENSE file. | 7092 // BSD-style license that can be found in the LICENSE file. |
7109 | 7093 |
7110 | 7094 |
7111 /// @domName EXTTextureFilterAnisotropic; @docsEditable true | 7095 /// @domName EXTTextureFilterAnisotropic; @docsEditable true |
7112 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { | 7096 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { |
7113 | 7097 |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7789 break; | 7773 break; |
7790 case 'afterend': | 7774 case 'afterend': |
7791 this.parent.insertBefore(node, this.nextNode); | 7775 this.parent.insertBefore(node, this.nextNode); |
7792 break; | 7776 break; |
7793 default: | 7777 default: |
7794 throw new ArgumentError("Invalid position ${where}"); | 7778 throw new ArgumentError("Invalid position ${where}"); |
7795 } | 7779 } |
7796 } | 7780 } |
7797 | 7781 |
7798 | 7782 |
7799 /** | 7783 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
7800 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
7801 */ | |
7802 ElementEvents get on => | 7784 ElementEvents get on => |
7803 new ElementEvents(this); | 7785 new ElementEvents(this); |
7804 | 7786 |
7805 /** @domName HTMLElement.children; @docsEditable true */ | 7787 /// @domName HTMLElement.children; @docsEditable true |
7806 HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this); | 7788 HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this); |
7807 | 7789 |
7808 /** @domName HTMLElement.contentEditable; @docsEditable true */ | 7790 /// @domName HTMLElement.contentEditable; @docsEditable true |
7809 String contentEditable; | 7791 String contentEditable; |
7810 | 7792 |
7811 /** @domName HTMLElement.dir; @docsEditable true */ | 7793 /// @domName HTMLElement.dir; @docsEditable true |
7812 String dir; | 7794 String dir; |
7813 | 7795 |
7814 /** @domName HTMLElement.draggable; @docsEditable true */ | 7796 /// @domName HTMLElement.draggable; @docsEditable true |
7815 bool draggable; | 7797 bool draggable; |
7816 | 7798 |
7817 /** @domName HTMLElement.hidden; @docsEditable true */ | 7799 /// @domName HTMLElement.hidden; @docsEditable true |
7818 bool hidden; | 7800 bool hidden; |
7819 | 7801 |
7820 /** @domName HTMLElement.id; @docsEditable true */ | 7802 /// @domName HTMLElement.id; @docsEditable true |
7821 String id; | 7803 String id; |
7822 | 7804 |
7823 /** @domName HTMLElement.innerHTML; @docsEditable true */ | 7805 /// @domName HTMLElement.innerHTML; @docsEditable true |
7824 String innerHTML; | 7806 String innerHTML; |
7825 | 7807 |
7826 /** @domName HTMLElement.isContentEditable; @docsEditable true */ | 7808 /// @domName HTMLElement.isContentEditable; @docsEditable true |
7827 final bool isContentEditable; | 7809 final bool isContentEditable; |
7828 | 7810 |
7829 /** @domName HTMLElement.lang; @docsEditable true */ | 7811 /// @domName HTMLElement.lang; @docsEditable true |
7830 String lang; | 7812 String lang; |
7831 | 7813 |
7832 /** @domName HTMLElement.outerHTML; @docsEditable true */ | 7814 /// @domName HTMLElement.outerHTML; @docsEditable true |
7833 final String outerHTML; | 7815 final String outerHTML; |
7834 | 7816 |
7835 /** @domName HTMLElement.spellcheck; @docsEditable true */ | 7817 /// @domName HTMLElement.spellcheck; @docsEditable true |
7836 bool spellcheck; | 7818 bool spellcheck; |
7837 | 7819 |
7838 /** @domName HTMLElement.tabIndex; @docsEditable true */ | 7820 /// @domName HTMLElement.tabIndex; @docsEditable true |
7839 int tabIndex; | 7821 int tabIndex; |
7840 | 7822 |
7841 /** @domName HTMLElement.title; @docsEditable true */ | 7823 /// @domName HTMLElement.title; @docsEditable true |
7842 String title; | 7824 String title; |
7843 | 7825 |
7844 /** @domName HTMLElement.translate; @docsEditable true */ | 7826 /// @domName HTMLElement.translate; @docsEditable true |
7845 bool translate; | 7827 bool translate; |
7846 | 7828 |
7847 /** @domName HTMLElement.webkitdropzone; @docsEditable true */ | 7829 /// @domName HTMLElement.webkitdropzone; @docsEditable true |
7848 String webkitdropzone; | 7830 String webkitdropzone; |
7849 | 7831 |
7850 /** @domName HTMLElement.click; @docsEditable true */ | 7832 /// @domName HTMLElement.click; @docsEditable true |
7851 void click() native; | 7833 void click() native; |
7852 | 7834 |
7853 static const int ALLOW_KEYBOARD_INPUT = 1; | 7835 static const int ALLOW_KEYBOARD_INPUT = 1; |
7854 | 7836 |
7855 /** @domName Element.childElementCount; @docsEditable true */ | 7837 /// @domName Element.childElementCount; @docsEditable true |
7856 int get $dom_childElementCount => JS("int", "#.childElementCount", this); | 7838 int get $dom_childElementCount => JS("int", "#.childElementCount", this); |
7857 | 7839 |
7858 /** @domName Element.className; @docsEditable true */ | 7840 /// @domName Element.className; @docsEditable true |
7859 String get $dom_className => JS("String", "#.className", this); | 7841 String get $dom_className => JS("String", "#.className", this); |
7860 | 7842 |
7861 /** @domName Element.className; @docsEditable true */ | 7843 /// @domName Element.className; @docsEditable true |
7862 void set $dom_className(String value) { | 7844 void set $dom_className(String value) { |
7863 JS("void", "#.className = #", this, value); | 7845 JS("void", "#.className = #", this, value); |
7864 } | 7846 } |
7865 | 7847 |
7866 /** @domName Element.clientHeight; @docsEditable true */ | 7848 /// @domName Element.clientHeight; @docsEditable true |
7867 final int clientHeight; | 7849 final int clientHeight; |
7868 | 7850 |
7869 /** @domName Element.clientLeft; @docsEditable true */ | 7851 /// @domName Element.clientLeft; @docsEditable true |
7870 final int clientLeft; | 7852 final int clientLeft; |
7871 | 7853 |
7872 /** @domName Element.clientTop; @docsEditable true */ | 7854 /// @domName Element.clientTop; @docsEditable true |
7873 final int clientTop; | 7855 final int clientTop; |
7874 | 7856 |
7875 /** @domName Element.clientWidth; @docsEditable true */ | 7857 /// @domName Element.clientWidth; @docsEditable true |
7876 final int clientWidth; | 7858 final int clientWidth; |
7877 | 7859 |
7878 /** @domName Element.dataset; @docsEditable true */ | 7860 /// @domName Element.dataset; @docsEditable true |
7879 final Map<String, String> dataset; | 7861 final Map<String, String> dataset; |
7880 | 7862 |
7881 /** @domName Element.firstElementChild; @docsEditable true */ | 7863 /// @domName Element.firstElementChild; @docsEditable true |
7882 Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", thi
s); | 7864 Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", thi
s); |
7883 | 7865 |
7884 /** @domName Element.lastElementChild; @docsEditable true */ | 7866 /// @domName Element.lastElementChild; @docsEditable true |
7885 Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this)
; | 7867 Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this)
; |
7886 | 7868 |
7887 /** @domName Element.nextElementSibling; @docsEditable true */ | 7869 /// @domName Element.nextElementSibling; @docsEditable true |
7888 final Element nextElementSibling; | 7870 final Element nextElementSibling; |
7889 | 7871 |
7890 /** @domName Element.offsetHeight; @docsEditable true */ | 7872 /// @domName Element.offsetHeight; @docsEditable true |
7891 final int offsetHeight; | 7873 final int offsetHeight; |
7892 | 7874 |
7893 /** @domName Element.offsetLeft; @docsEditable true */ | 7875 /// @domName Element.offsetLeft; @docsEditable true |
7894 final int offsetLeft; | 7876 final int offsetLeft; |
7895 | 7877 |
7896 /** @domName Element.offsetParent; @docsEditable true */ | 7878 /// @domName Element.offsetParent; @docsEditable true |
7897 final Element offsetParent; | 7879 final Element offsetParent; |
7898 | 7880 |
7899 /** @domName Element.offsetTop; @docsEditable true */ | 7881 /// @domName Element.offsetTop; @docsEditable true |
7900 final int offsetTop; | 7882 final int offsetTop; |
7901 | 7883 |
7902 /** @domName Element.offsetWidth; @docsEditable true */ | 7884 /// @domName Element.offsetWidth; @docsEditable true |
7903 final int offsetWidth; | 7885 final int offsetWidth; |
7904 | 7886 |
7905 /** @domName Element.previousElementSibling; @docsEditable true */ | 7887 /// @domName Element.previousElementSibling; @docsEditable true |
7906 final Element previousElementSibling; | 7888 final Element previousElementSibling; |
7907 | 7889 |
7908 /** @domName Element.scrollHeight; @docsEditable true */ | 7890 /// @domName Element.scrollHeight; @docsEditable true |
7909 final int scrollHeight; | 7891 final int scrollHeight; |
7910 | 7892 |
7911 /** @domName Element.scrollLeft; @docsEditable true */ | 7893 /// @domName Element.scrollLeft; @docsEditable true |
7912 int scrollLeft; | 7894 int scrollLeft; |
7913 | 7895 |
7914 /** @domName Element.scrollTop; @docsEditable true */ | 7896 /// @domName Element.scrollTop; @docsEditable true |
7915 int scrollTop; | 7897 int scrollTop; |
7916 | 7898 |
7917 /** @domName Element.scrollWidth; @docsEditable true */ | 7899 /// @domName Element.scrollWidth; @docsEditable true |
7918 final int scrollWidth; | 7900 final int scrollWidth; |
7919 | 7901 |
7920 /** @domName Element.style; @docsEditable true */ | 7902 /// @domName Element.style; @docsEditable true |
7921 final CSSStyleDeclaration style; | 7903 final CSSStyleDeclaration style; |
7922 | 7904 |
7923 /** @domName Element.tagName; @docsEditable true */ | 7905 /// @domName Element.tagName; @docsEditable true |
7924 final String tagName; | 7906 final String tagName; |
7925 | 7907 |
7926 /** @domName Element.blur; @docsEditable true */ | 7908 /// @domName Element.blur; @docsEditable true |
7927 void blur() native; | 7909 void blur() native; |
7928 | 7910 |
7929 /** @domName Element.focus; @docsEditable true */ | 7911 /// @domName Element.focus; @docsEditable true |
7930 void focus() native; | 7912 void focus() native; |
7931 | 7913 |
7932 /** @domName Element.getAttribute; @docsEditable true */ | 7914 /// @domName Element.getAttribute; @docsEditable true |
7933 String $dom_getAttribute(String name) native "getAttribute"; | 7915 String $dom_getAttribute(String name) native "getAttribute"; |
7934 | 7916 |
7935 /** @domName Element.getBoundingClientRect; @docsEditable true */ | 7917 /// @domName Element.getBoundingClientRect; @docsEditable true |
7936 ClientRect getBoundingClientRect() native; | 7918 ClientRect getBoundingClientRect() native; |
7937 | 7919 |
7938 /** @domName Element.getClientRects; @docsEditable true */ | 7920 /// @domName Element.getClientRects; @docsEditable true |
7939 @Returns('_ClientRectList') @Creates('_ClientRectList') | 7921 @Returns('_ClientRectList') @Creates('_ClientRectList') |
7940 List<ClientRect> getClientRects() native; | 7922 List<ClientRect> getClientRects() native; |
7941 | 7923 |
7942 /** @domName Element.getElementsByClassName; @docsEditable true */ | 7924 /// @domName Element.getElementsByClassName; @docsEditable true |
7943 @Returns('_NodeList') @Creates('_NodeList') | 7925 @Returns('_NodeList') @Creates('_NodeList') |
7944 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass
Name"; | 7926 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass
Name"; |
7945 | 7927 |
7946 /** @domName Element.getElementsByTagName; @docsEditable true */ | 7928 /// @domName Element.getElementsByTagName; @docsEditable true |
7947 @Returns('_NodeList') @Creates('_NodeList') | 7929 @Returns('_NodeList') @Creates('_NodeList') |
7948 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName
"; | 7930 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName
"; |
7949 | 7931 |
7950 /** @domName Element.hasAttribute; @docsEditable true */ | 7932 /// @domName Element.hasAttribute; @docsEditable true |
7951 bool $dom_hasAttribute(String name) native "hasAttribute"; | 7933 bool $dom_hasAttribute(String name) native "hasAttribute"; |
7952 | 7934 |
7953 /** @domName Element.querySelector; @docsEditable true */ | 7935 /// @domName Element.querySelector; @docsEditable true |
7954 Element $dom_querySelector(String selectors) native "querySelector"; | 7936 Element $dom_querySelector(String selectors) native "querySelector"; |
7955 | 7937 |
7956 /** @domName Element.querySelectorAll; @docsEditable true */ | 7938 /// @domName Element.querySelectorAll; @docsEditable true |
7957 @Returns('_NodeList') @Creates('_NodeList') | 7939 @Returns('_NodeList') @Creates('_NodeList') |
7958 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; | 7940 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; |
7959 | 7941 |
7960 /** @domName Element.removeAttribute; @docsEditable true */ | 7942 /// @domName Element.removeAttribute; @docsEditable true |
7961 void $dom_removeAttribute(String name) native "removeAttribute"; | 7943 void $dom_removeAttribute(String name) native "removeAttribute"; |
7962 | 7944 |
7963 /** @domName Element.scrollByLines; @docsEditable true */ | 7945 /// @domName Element.scrollByLines; @docsEditable true |
7964 void scrollByLines(int lines) native; | 7946 void scrollByLines(int lines) native; |
7965 | 7947 |
7966 /** @domName Element.scrollByPages; @docsEditable true */ | 7948 /// @domName Element.scrollByPages; @docsEditable true |
7967 void scrollByPages(int pages) native; | 7949 void scrollByPages(int pages) native; |
7968 | 7950 |
7969 /** @domName Element.scrollIntoViewIfNeeded; @docsEditable true */ | 7951 /// @domName Element.scrollIntoViewIfNeeded; @docsEditable true |
7970 void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded"; | 7952 void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded"; |
7971 | 7953 |
7972 /** @domName Element.setAttribute; @docsEditable true */ | 7954 /// @domName Element.setAttribute; @docsEditable true |
7973 void $dom_setAttribute(String name, String value) native "setAttribute"; | 7955 void $dom_setAttribute(String name, String value) native "setAttribute"; |
7974 | 7956 |
7975 /** @domName Element.webkitMatchesSelector; @docsEditable true */ | 7957 /// @domName Element.webkitMatchesSelector; @docsEditable true |
7976 bool matchesSelector(String selectors) native "webkitMatchesSelector"; | 7958 bool matchesSelector(String selectors) native "webkitMatchesSelector"; |
7977 | 7959 |
7978 /** @domName Element.webkitRequestFullScreen; @docsEditable true */ | 7960 /// @domName Element.webkitRequestFullScreen; @docsEditable true |
7979 void webkitRequestFullScreen(int flags) native; | 7961 void webkitRequestFullScreen(int flags) native; |
7980 | 7962 |
7981 /** @domName Element.webkitRequestFullscreen; @docsEditable true */ | 7963 /// @domName Element.webkitRequestFullscreen; @docsEditable true |
7982 void webkitRequestFullscreen() native; | 7964 void webkitRequestFullscreen() native; |
7983 | 7965 |
7984 /** @domName Element.webkitRequestPointerLock; @docsEditable true */ | 7966 /// @domName Element.webkitRequestPointerLock; @docsEditable true |
7985 void webkitRequestPointerLock() native; | 7967 void webkitRequestPointerLock() native; |
7986 | 7968 |
7987 } | 7969 } |
7988 | 7970 |
7989 // Temporary dispatch hook to support WebComponents. | 7971 // Temporary dispatch hook to support WebComponents. |
7990 Function dynamicUnknownElementDispatcher; | 7972 Function dynamicUnknownElementDispatcher; |
7991 | 7973 |
7992 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); | 7974 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
7993 class _ElementFactoryProvider { | 7975 class _ElementFactoryProvider { |
7994 static final _CUSTOM_PARENT_TAG_MAP = const { | 7976 static final _CUSTOM_PARENT_TAG_MAP = const { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8163 } | 8145 } |
8164 } | 8146 } |
8165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8166 // for details. All rights reserved. Use of this source code is governed by a | 8148 // for details. All rights reserved. Use of this source code is governed by a |
8167 // BSD-style license that can be found in the LICENSE file. | 8149 // BSD-style license that can be found in the LICENSE file. |
8168 | 8150 |
8169 | 8151 |
8170 /// @domName ElementTimeControl | 8152 /// @domName ElementTimeControl |
8171 abstract class ElementTimeControl { | 8153 abstract class ElementTimeControl { |
8172 | 8154 |
8173 /** @domName ElementTimeControl.beginElement; @docsEditable true */ | 8155 /// @domName ElementTimeControl.beginElement; @docsEditable true |
8174 void beginElement(); | 8156 void beginElement(); |
8175 | 8157 |
8176 /** @domName ElementTimeControl.beginElementAt; @docsEditable true */ | 8158 /// @domName ElementTimeControl.beginElementAt; @docsEditable true |
8177 void beginElementAt(num offset); | 8159 void beginElementAt(num offset); |
8178 | 8160 |
8179 /** @domName ElementTimeControl.endElement; @docsEditable true */ | 8161 /// @domName ElementTimeControl.endElement; @docsEditable true |
8180 void endElement(); | 8162 void endElement(); |
8181 | 8163 |
8182 /** @domName ElementTimeControl.endElementAt; @docsEditable true */ | 8164 /// @domName ElementTimeControl.endElementAt; @docsEditable true |
8183 void endElementAt(num offset); | 8165 void endElementAt(num offset); |
8184 } | 8166 } |
8185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8186 // for details. All rights reserved. Use of this source code is governed by a | 8168 // for details. All rights reserved. Use of this source code is governed by a |
8187 // BSD-style license that can be found in the LICENSE file. | 8169 // BSD-style license that can be found in the LICENSE file. |
8188 | 8170 |
8189 | 8171 |
8190 /// @domName ElementTraversal | 8172 /// @domName ElementTraversal |
8191 abstract class ElementTraversal { | 8173 abstract class ElementTraversal { |
8192 | 8174 |
(...skipping 10 matching lines...) Expand all Loading... |
8203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8204 // for details. All rights reserved. Use of this source code is governed by a | 8186 // for details. All rights reserved. Use of this source code is governed by a |
8205 // BSD-style license that can be found in the LICENSE file. | 8187 // BSD-style license that can be found in the LICENSE file. |
8206 | 8188 |
8207 | 8189 |
8208 /// @domName HTMLEmbedElement; @docsEditable true | 8190 /// @domName HTMLEmbedElement; @docsEditable true |
8209 class EmbedElement extends Element implements Element native "*HTMLEmbedElement"
{ | 8191 class EmbedElement extends Element implements Element native "*HTMLEmbedElement"
{ |
8210 | 8192 |
8211 factory EmbedElement() => document.$dom_createElement("embed"); | 8193 factory EmbedElement() => document.$dom_createElement("embed"); |
8212 | 8194 |
8213 /** @domName HTMLEmbedElement.align; @docsEditable true */ | 8195 /// @domName HTMLEmbedElement.align; @docsEditable true |
8214 String align; | 8196 String align; |
8215 | 8197 |
8216 /** @domName HTMLEmbedElement.height; @docsEditable true */ | 8198 /// @domName HTMLEmbedElement.height; @docsEditable true |
8217 String height; | 8199 String height; |
8218 | 8200 |
8219 /** @domName HTMLEmbedElement.name; @docsEditable true */ | 8201 /// @domName HTMLEmbedElement.name; @docsEditable true |
8220 String name; | 8202 String name; |
8221 | 8203 |
8222 /** @domName HTMLEmbedElement.src; @docsEditable true */ | 8204 /// @domName HTMLEmbedElement.src; @docsEditable true |
8223 String src; | 8205 String src; |
8224 | 8206 |
8225 /** @domName HTMLEmbedElement.type; @docsEditable true */ | 8207 /// @domName HTMLEmbedElement.type; @docsEditable true |
8226 String type; | 8208 String type; |
8227 | 8209 |
8228 /** @domName HTMLEmbedElement.width; @docsEditable true */ | 8210 /// @domName HTMLEmbedElement.width; @docsEditable true |
8229 String width; | 8211 String width; |
8230 } | 8212 } |
8231 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8232 // for details. All rights reserved. Use of this source code is governed by a | 8214 // for details. All rights reserved. Use of this source code is governed by a |
8233 // BSD-style license that can be found in the LICENSE file. | 8215 // BSD-style license that can be found in the LICENSE file. |
8234 | 8216 |
8235 | 8217 |
8236 /// @domName EntityReference; @docsEditable true | 8218 /// @domName EntityReference; @docsEditable true |
8237 class EntityReference extends Node native "*EntityReference" { | 8219 class EntityReference extends Node native "*EntityReference" { |
8238 } | 8220 } |
8239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8240 // for details. All rights reserved. Use of this source code is governed by a | 8222 // for details. All rights reserved. Use of this source code is governed by a |
8241 // BSD-style license that can be found in the LICENSE file. | 8223 // BSD-style license that can be found in the LICENSE file. |
8242 | 8224 |
8243 // WARNING: Do not edit - generated code. | 8225 // WARNING: Do not edit - generated code. |
8244 | 8226 |
8245 | 8227 |
8246 typedef void EntriesCallback(List<Entry> entries); | 8228 typedef void EntriesCallback(List<Entry> entries); |
8247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8248 // for details. All rights reserved. Use of this source code is governed by a | 8230 // for details. All rights reserved. Use of this source code is governed by a |
8249 // BSD-style license that can be found in the LICENSE file. | 8231 // BSD-style license that can be found in the LICENSE file. |
8250 | 8232 |
8251 | 8233 |
8252 /// @domName Entry; @docsEditable true | 8234 /// @domName Entry; @docsEditable true |
8253 class Entry native "*Entry" { | 8235 class Entry native "*Entry" { |
8254 | 8236 |
8255 /** @domName Entry.filesystem; @docsEditable true */ | 8237 /// @domName Entry.filesystem; @docsEditable true |
8256 final DOMFileSystem filesystem; | 8238 final DOMFileSystem filesystem; |
8257 | 8239 |
8258 /** @domName Entry.fullPath; @docsEditable true */ | 8240 /// @domName Entry.fullPath; @docsEditable true |
8259 final String fullPath; | 8241 final String fullPath; |
8260 | 8242 |
8261 /** @domName Entry.isDirectory; @docsEditable true */ | 8243 /// @domName Entry.isDirectory; @docsEditable true |
8262 final bool isDirectory; | 8244 final bool isDirectory; |
8263 | 8245 |
8264 /** @domName Entry.isFile; @docsEditable true */ | 8246 /// @domName Entry.isFile; @docsEditable true |
8265 final bool isFile; | 8247 final bool isFile; |
8266 | 8248 |
8267 /** @domName Entry.name; @docsEditable true */ | 8249 /// @domName Entry.name; @docsEditable true |
8268 final String name; | 8250 final String name; |
8269 | 8251 |
8270 /** @domName Entry.copyTo; @docsEditable true */ | 8252 /// @domName Entry.copyTo; @docsEditable true |
8271 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; | 8253 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; |
8272 | 8254 |
8273 /** @domName Entry.getMetadata; @docsEditable true */ | 8255 /// @domName Entry.getMetadata; @docsEditable true |
8274 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]) native; | 8256 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]) native; |
8275 | 8257 |
8276 /** @domName Entry.getParent; @docsEditable true */ | 8258 /// @domName Entry.getParent; @docsEditable true |
8277 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n
ative; | 8259 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n
ative; |
8278 | 8260 |
8279 /** @domName Entry.moveTo; @docsEditable true */ | 8261 /// @domName Entry.moveTo; @docsEditable true |
8280 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; | 8262 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; |
8281 | 8263 |
8282 /** @domName Entry.remove; @docsEditable true */ | 8264 /// @domName Entry.remove; @docsEditable true |
8283 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ
e; | 8265 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ
e; |
8284 | 8266 |
8285 /** @domName Entry.toURL; @docsEditable true */ | 8267 /// @domName Entry.toURL; @docsEditable true |
8286 String toURL() native; | 8268 String toURL() native; |
8287 } | 8269 } |
8288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8289 // for details. All rights reserved. Use of this source code is governed by a | 8271 // for details. All rights reserved. Use of this source code is governed by a |
8290 // BSD-style license that can be found in the LICENSE file. | 8272 // BSD-style license that can be found in the LICENSE file. |
8291 | 8273 |
8292 // WARNING: Do not edit - generated code. | 8274 // WARNING: Do not edit - generated code. |
8293 | 8275 |
8294 | 8276 |
8295 typedef void EntryCallback(Entry entry); | 8277 typedef void EntryCallback(Entry entry); |
8296 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8297 // for details. All rights reserved. Use of this source code is governed by a | 8279 // for details. All rights reserved. Use of this source code is governed by a |
8298 // BSD-style license that can be found in the LICENSE file. | 8280 // BSD-style license that can be found in the LICENSE file. |
8299 | 8281 |
8300 | 8282 |
8301 /// @domName EntrySync; @docsEditable true | 8283 /// @domName EntrySync; @docsEditable true |
8302 class EntrySync native "*EntrySync" { | 8284 class EntrySync native "*EntrySync" { |
8303 | 8285 |
8304 /** @domName EntrySync.filesystem; @docsEditable true */ | 8286 /// @domName EntrySync.filesystem; @docsEditable true |
8305 final DOMFileSystemSync filesystem; | 8287 final DOMFileSystemSync filesystem; |
8306 | 8288 |
8307 /** @domName EntrySync.fullPath; @docsEditable true */ | 8289 /// @domName EntrySync.fullPath; @docsEditable true |
8308 final String fullPath; | 8290 final String fullPath; |
8309 | 8291 |
8310 /** @domName EntrySync.isDirectory; @docsEditable true */ | 8292 /// @domName EntrySync.isDirectory; @docsEditable true |
8311 final bool isDirectory; | 8293 final bool isDirectory; |
8312 | 8294 |
8313 /** @domName EntrySync.isFile; @docsEditable true */ | 8295 /// @domName EntrySync.isFile; @docsEditable true |
8314 final bool isFile; | 8296 final bool isFile; |
8315 | 8297 |
8316 /** @domName EntrySync.name; @docsEditable true */ | 8298 /// @domName EntrySync.name; @docsEditable true |
8317 final String name; | 8299 final String name; |
8318 | 8300 |
8319 /** @domName EntrySync.copyTo; @docsEditable true */ | 8301 /// @domName EntrySync.copyTo; @docsEditable true |
8320 EntrySync copyTo(DirectoryEntrySync parent, String name) native; | 8302 EntrySync copyTo(DirectoryEntrySync parent, String name) native; |
8321 | 8303 |
8322 /** @domName EntrySync.getMetadata; @docsEditable true */ | 8304 /// @domName EntrySync.getMetadata; @docsEditable true |
8323 Metadata getMetadata() native; | 8305 Metadata getMetadata() native; |
8324 | 8306 |
8325 /** @domName EntrySync.getParent; @docsEditable true */ | 8307 /// @domName EntrySync.getParent; @docsEditable true |
8326 EntrySync getParent() native; | 8308 EntrySync getParent() native; |
8327 | 8309 |
8328 /** @domName EntrySync.moveTo; @docsEditable true */ | 8310 /// @domName EntrySync.moveTo; @docsEditable true |
8329 EntrySync moveTo(DirectoryEntrySync parent, String name) native; | 8311 EntrySync moveTo(DirectoryEntrySync parent, String name) native; |
8330 | 8312 |
8331 /** @domName EntrySync.remove; @docsEditable true */ | 8313 /// @domName EntrySync.remove; @docsEditable true |
8332 void remove() native; | 8314 void remove() native; |
8333 | 8315 |
8334 /** @domName EntrySync.toURL; @docsEditable true */ | 8316 /// @domName EntrySync.toURL; @docsEditable true |
8335 String toURL() native; | 8317 String toURL() native; |
8336 } | 8318 } |
8337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8338 // for details. All rights reserved. Use of this source code is governed by a | 8320 // for details. All rights reserved. Use of this source code is governed by a |
8339 // BSD-style license that can be found in the LICENSE file. | 8321 // BSD-style license that can be found in the LICENSE file. |
8340 | 8322 |
8341 // WARNING: Do not edit - generated code. | 8323 // WARNING: Do not edit - generated code. |
8342 | 8324 |
8343 | 8325 |
8344 typedef void ErrorCallback(FileError error); | 8326 typedef void ErrorCallback(FileError error); |
8345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8346 // for details. All rights reserved. Use of this source code is governed by a | 8328 // for details. All rights reserved. Use of this source code is governed by a |
8347 // BSD-style license that can be found in the LICENSE file. | 8329 // BSD-style license that can be found in the LICENSE file. |
8348 | 8330 |
8349 | 8331 |
8350 /// @domName ErrorEvent; @docsEditable true | 8332 /// @domName ErrorEvent; @docsEditable true |
8351 class ErrorEvent extends Event native "*ErrorEvent" { | 8333 class ErrorEvent extends Event native "*ErrorEvent" { |
8352 | 8334 |
8353 /** @domName ErrorEvent.filename; @docsEditable true */ | 8335 /// @domName ErrorEvent.filename; @docsEditable true |
8354 final String filename; | 8336 final String filename; |
8355 | 8337 |
8356 /** @domName ErrorEvent.lineno; @docsEditable true */ | 8338 /// @domName ErrorEvent.lineno; @docsEditable true |
8357 final int lineno; | 8339 final int lineno; |
8358 | 8340 |
8359 /** @domName ErrorEvent.message; @docsEditable true */ | 8341 /// @domName ErrorEvent.message; @docsEditable true |
8360 final String message; | 8342 final String message; |
8361 } | 8343 } |
8362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8363 // for details. All rights reserved. Use of this source code is governed by a | 8345 // for details. All rights reserved. Use of this source code is governed by a |
8364 // BSD-style license that can be found in the LICENSE file. | 8346 // BSD-style license that can be found in the LICENSE file. |
8365 | 8347 |
8366 // WARNING: Do not edit - generated code. | 8348 // WARNING: Do not edit - generated code. |
8367 | 8349 |
8368 | 8350 |
8369 class Event native "*Event" { | 8351 class Event native "*Event" { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8409 static const int MOUSEOUT = 8; | 8391 static const int MOUSEOUT = 8; |
8410 | 8392 |
8411 static const int MOUSEOVER = 4; | 8393 static const int MOUSEOVER = 4; |
8412 | 8394 |
8413 static const int MOUSEUP = 2; | 8395 static const int MOUSEUP = 2; |
8414 | 8396 |
8415 static const int NONE = 0; | 8397 static const int NONE = 0; |
8416 | 8398 |
8417 static const int SELECT = 16384; | 8399 static const int SELECT = 16384; |
8418 | 8400 |
8419 /** @domName Event.bubbles; @docsEditable true */ | 8401 /// @domName Event.bubbles; @docsEditable true |
8420 final bool bubbles; | 8402 final bool bubbles; |
8421 | 8403 |
8422 /** @domName Event.cancelBubble; @docsEditable true */ | 8404 /// @domName Event.cancelBubble; @docsEditable true |
8423 bool cancelBubble; | 8405 bool cancelBubble; |
8424 | 8406 |
8425 /** @domName Event.cancelable; @docsEditable true */ | 8407 /// @domName Event.cancelable; @docsEditable true |
8426 final bool cancelable; | 8408 final bool cancelable; |
8427 | 8409 |
8428 /** @domName Event.clipboardData; @docsEditable true */ | 8410 /// @domName Event.clipboardData; @docsEditable true |
8429 final Clipboard clipboardData; | 8411 final Clipboard clipboardData; |
8430 | 8412 |
8431 /** @domName Event.currentTarget; @docsEditable true */ | 8413 /// @domName Event.currentTarget; @docsEditable true |
8432 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren
tTarget); | 8414 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren
tTarget); |
8433 dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this); | 8415 dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this); |
8434 | 8416 |
8435 /** @domName Event.defaultPrevented; @docsEditable true */ | 8417 /// @domName Event.defaultPrevented; @docsEditable true |
8436 final bool defaultPrevented; | 8418 final bool defaultPrevented; |
8437 | 8419 |
8438 /** @domName Event.eventPhase; @docsEditable true */ | 8420 /// @domName Event.eventPhase; @docsEditable true |
8439 final int eventPhase; | 8421 final int eventPhase; |
8440 | 8422 |
8441 /** @domName Event.returnValue; @docsEditable true */ | 8423 /// @domName Event.returnValue; @docsEditable true |
8442 bool returnValue; | 8424 bool returnValue; |
8443 | 8425 |
8444 /** @domName Event.target; @docsEditable true */ | 8426 /// @domName Event.target; @docsEditable true |
8445 EventTarget get target => _convertNativeToDart_EventTarget(this._target); | 8427 EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
8446 dynamic get _target => JS("dynamic", "#.target", this); | 8428 dynamic get _target => JS("dynamic", "#.target", this); |
8447 | 8429 |
8448 /** @domName Event.timeStamp; @docsEditable true */ | 8430 /// @domName Event.timeStamp; @docsEditable true |
8449 final int timeStamp; | 8431 final int timeStamp; |
8450 | 8432 |
8451 /** @domName Event.type; @docsEditable true */ | 8433 /// @domName Event.type; @docsEditable true |
8452 final String type; | 8434 final String type; |
8453 | 8435 |
8454 /** @domName Event.initEvent; @docsEditable true */ | 8436 /// @domName Event.initEvent; @docsEditable true |
8455 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native "initEvent"; | 8437 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native "initEvent"; |
8456 | 8438 |
8457 /** @domName Event.preventDefault; @docsEditable true */ | 8439 /// @domName Event.preventDefault; @docsEditable true |
8458 void preventDefault() native; | 8440 void preventDefault() native; |
8459 | 8441 |
8460 /** @domName Event.stopImmediatePropagation; @docsEditable true */ | 8442 /// @domName Event.stopImmediatePropagation; @docsEditable true |
8461 void stopImmediatePropagation() native; | 8443 void stopImmediatePropagation() native; |
8462 | 8444 |
8463 /** @domName Event.stopPropagation; @docsEditable true */ | 8445 /// @domName Event.stopPropagation; @docsEditable true |
8464 void stopPropagation() native; | 8446 void stopPropagation() native; |
8465 | 8447 |
8466 } | 8448 } |
8467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8468 // for details. All rights reserved. Use of this source code is governed by a | 8450 // for details. All rights reserved. Use of this source code is governed by a |
8469 // BSD-style license that can be found in the LICENSE file. | 8451 // BSD-style license that can be found in the LICENSE file. |
8470 | 8452 |
8471 | 8453 |
8472 /// @domName EventException; @docsEditable true | 8454 /// @domName EventException; @docsEditable true |
8473 class EventException native "*EventException" { | 8455 class EventException native "*EventException" { |
8474 | 8456 |
8475 static const int DISPATCH_REQUEST_ERR = 1; | 8457 static const int DISPATCH_REQUEST_ERR = 1; |
8476 | 8458 |
8477 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; | 8459 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
8478 | 8460 |
8479 /** @domName EventException.code; @docsEditable true */ | 8461 /// @domName EventException.code; @docsEditable true |
8480 final int code; | 8462 final int code; |
8481 | 8463 |
8482 /** @domName EventException.message; @docsEditable true */ | 8464 /// @domName EventException.message; @docsEditable true |
8483 final String message; | 8465 final String message; |
8484 | 8466 |
8485 /** @domName EventException.name; @docsEditable true */ | 8467 /// @domName EventException.name; @docsEditable true |
8486 final String name; | 8468 final String name; |
8487 | 8469 |
8488 /** @domName EventException.toString; @docsEditable true */ | 8470 /// @domName EventException.toString; @docsEditable true |
8489 String toString() native; | 8471 String toString() native; |
8490 } | 8472 } |
8491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8492 // for details. All rights reserved. Use of this source code is governed by a | 8474 // for details. All rights reserved. Use of this source code is governed by a |
8493 // BSD-style license that can be found in the LICENSE file. | 8475 // BSD-style license that can be found in the LICENSE file. |
8494 | 8476 |
8495 | 8477 |
8496 /// @domName EventSource; @docsEditable true | 8478 /// @domName EventSource; @docsEditable true |
8497 class EventSource extends EventTarget native "*EventSource" { | 8479 class EventSource extends EventTarget native "*EventSource" { |
8498 | 8480 |
8499 factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEve
ntSource(scriptUrl); | 8481 factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEve
ntSource(scriptUrl); |
8500 | 8482 |
8501 /** | 8483 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
8502 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
8503 */ | |
8504 EventSourceEvents get on => | 8484 EventSourceEvents get on => |
8505 new EventSourceEvents(this); | 8485 new EventSourceEvents(this); |
8506 | 8486 |
8507 static const int CLOSED = 2; | 8487 static const int CLOSED = 2; |
8508 | 8488 |
8509 static const int CONNECTING = 0; | 8489 static const int CONNECTING = 0; |
8510 | 8490 |
8511 static const int OPEN = 1; | 8491 static const int OPEN = 1; |
8512 | 8492 |
8513 /** @domName EventSource.URL; @docsEditable true */ | 8493 /// @domName EventSource.URL; @docsEditable true |
8514 final String URL; | 8494 final String URL; |
8515 | 8495 |
8516 /** @domName EventSource.readyState; @docsEditable true */ | 8496 /// @domName EventSource.readyState; @docsEditable true |
8517 final int readyState; | 8497 final int readyState; |
8518 | 8498 |
8519 /** @domName EventSource.url; @docsEditable true */ | 8499 /// @domName EventSource.url; @docsEditable true |
8520 final String url; | 8500 final String url; |
8521 | 8501 |
8522 /** @domName EventSource.addEventListener; @docsEditable true */ | 8502 /// @domName EventSource.addEventListener; @docsEditable true |
8523 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 8503 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
8524 | 8504 |
8525 /** @domName EventSource.close; @docsEditable true */ | 8505 /// @domName EventSource.close; @docsEditable true |
8526 void close() native; | 8506 void close() native; |
8527 | 8507 |
8528 /** @domName EventSource.dispatchEvent; @docsEditable true */ | 8508 /// @domName EventSource.dispatchEvent; @docsEditable true |
8529 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 8509 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
8530 | 8510 |
8531 /** @domName EventSource.removeEventListener; @docsEditable true */ | 8511 /// @domName EventSource.removeEventListener; @docsEditable true |
8532 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 8512 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
8533 } | 8513 } |
8534 | 8514 |
8535 class EventSourceEvents extends Events { | 8515 class EventSourceEvents extends Events { |
8536 EventSourceEvents(EventTarget _ptr) : super(_ptr); | 8516 EventSourceEvents(EventTarget _ptr) : super(_ptr); |
8537 | 8517 |
8538 EventListenerList get error => this['error']; | 8518 EventListenerList get error => this['error']; |
8539 | 8519 |
8540 EventListenerList get message => this['message']; | 8520 EventListenerList get message => this['message']; |
8541 | 8521 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8590 _ptr.$dom_removeEventListener(_type, listener, useCapture); | 8570 _ptr.$dom_removeEventListener(_type, listener, useCapture); |
8591 } | 8571 } |
8592 } | 8572 } |
8593 | 8573 |
8594 | 8574 |
8595 class EventTarget native "*EventTarget" { | 8575 class EventTarget native "*EventTarget" { |
8596 | 8576 |
8597 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent */ | 8577 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent */ |
8598 Events get on => new Events(this); | 8578 Events get on => new Events(this); |
8599 | 8579 |
8600 /** @domName EventTarget.addEventListener; @docsEditable true */ | 8580 /// @domName EventTarget.addEventListener; @docsEditable true |
8601 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 8581 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
8602 | 8582 |
8603 /** @domName EventTarget.dispatchEvent; @docsEditable true */ | 8583 /// @domName EventTarget.dispatchEvent; @docsEditable true |
8604 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 8584 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
8605 | 8585 |
8606 /** @domName EventTarget.removeEventListener; @docsEditable true */ | 8586 /// @domName EventTarget.removeEventListener; @docsEditable true |
8607 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 8587 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
8608 | 8588 |
8609 } | 8589 } |
8610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8611 // for details. All rights reserved. Use of this source code is governed by a | 8591 // for details. All rights reserved. Use of this source code is governed by a |
8612 // BSD-style license that can be found in the LICENSE file. | 8592 // BSD-style license that can be found in the LICENSE file. |
8613 | 8593 |
8614 | 8594 |
8615 /// @domName HTMLFieldSetElement; @docsEditable true | 8595 /// @domName HTMLFieldSetElement; @docsEditable true |
8616 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl
ement" { | 8596 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl
ement" { |
8617 | 8597 |
8618 factory FieldSetElement() => document.$dom_createElement("fieldset"); | 8598 factory FieldSetElement() => document.$dom_createElement("fieldset"); |
8619 | 8599 |
8620 /** @domName HTMLFieldSetElement.disabled; @docsEditable true */ | 8600 /// @domName HTMLFieldSetElement.disabled; @docsEditable true |
8621 bool disabled; | 8601 bool disabled; |
8622 | 8602 |
8623 /** @domName HTMLFieldSetElement.elements; @docsEditable true */ | 8603 /// @domName HTMLFieldSetElement.elements; @docsEditable true |
8624 final HTMLCollection elements; | 8604 final HTMLCollection elements; |
8625 | 8605 |
8626 /** @domName HTMLFieldSetElement.form; @docsEditable true */ | 8606 /// @domName HTMLFieldSetElement.form; @docsEditable true |
8627 final FormElement form; | 8607 final FormElement form; |
8628 | 8608 |
8629 /** @domName HTMLFieldSetElement.name; @docsEditable true */ | 8609 /// @domName HTMLFieldSetElement.name; @docsEditable true |
8630 String name; | 8610 String name; |
8631 | 8611 |
8632 /** @domName HTMLFieldSetElement.type; @docsEditable true */ | 8612 /// @domName HTMLFieldSetElement.type; @docsEditable true |
8633 final String type; | 8613 final String type; |
8634 | 8614 |
8635 /** @domName HTMLFieldSetElement.validationMessage; @docsEditable true */ | 8615 /// @domName HTMLFieldSetElement.validationMessage; @docsEditable true |
8636 final String validationMessage; | 8616 final String validationMessage; |
8637 | 8617 |
8638 /** @domName HTMLFieldSetElement.validity; @docsEditable true */ | 8618 /// @domName HTMLFieldSetElement.validity; @docsEditable true |
8639 final ValidityState validity; | 8619 final ValidityState validity; |
8640 | 8620 |
8641 /** @domName HTMLFieldSetElement.willValidate; @docsEditable true */ | 8621 /// @domName HTMLFieldSetElement.willValidate; @docsEditable true |
8642 final bool willValidate; | 8622 final bool willValidate; |
8643 | 8623 |
8644 /** @domName HTMLFieldSetElement.checkValidity; @docsEditable true */ | 8624 /// @domName HTMLFieldSetElement.checkValidity; @docsEditable true |
8645 bool checkValidity() native; | 8625 bool checkValidity() native; |
8646 | 8626 |
8647 /** @domName HTMLFieldSetElement.setCustomValidity; @docsEditable true */ | 8627 /// @domName HTMLFieldSetElement.setCustomValidity; @docsEditable true |
8648 void setCustomValidity(String error) native; | 8628 void setCustomValidity(String error) native; |
8649 } | 8629 } |
8650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8651 // for details. All rights reserved. Use of this source code is governed by a | 8631 // for details. All rights reserved. Use of this source code is governed by a |
8652 // BSD-style license that can be found in the LICENSE file. | 8632 // BSD-style license that can be found in the LICENSE file. |
8653 | 8633 |
8654 | 8634 |
8655 /// @domName File; @docsEditable true | 8635 /// @domName File; @docsEditable true |
8656 class File extends Blob native "*File" { | 8636 class File extends Blob native "*File" { |
8657 | 8637 |
8658 /** @domName File.lastModifiedDate; @docsEditable true */ | 8638 /// @domName File.lastModifiedDate; @docsEditable true |
8659 final Date lastModifiedDate; | 8639 final Date lastModifiedDate; |
8660 | 8640 |
8661 /** @domName File.name; @docsEditable true */ | 8641 /// @domName File.name; @docsEditable true |
8662 final String name; | 8642 final String name; |
8663 | 8643 |
8664 /** @domName File.webkitRelativePath; @docsEditable true */ | 8644 /// @domName File.webkitRelativePath; @docsEditable true |
8665 final String webkitRelativePath; | 8645 final String webkitRelativePath; |
8666 } | 8646 } |
8667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8668 // for details. All rights reserved. Use of this source code is governed by a | 8648 // for details. All rights reserved. Use of this source code is governed by a |
8669 // BSD-style license that can be found in the LICENSE file. | 8649 // BSD-style license that can be found in the LICENSE file. |
8670 | 8650 |
8671 // WARNING: Do not edit - generated code. | 8651 // WARNING: Do not edit - generated code. |
8672 | 8652 |
8673 | 8653 |
8674 typedef void FileCallback(File file); | 8654 typedef void FileCallback(File file); |
8675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8676 // for details. All rights reserved. Use of this source code is governed by a | 8656 // for details. All rights reserved. Use of this source code is governed by a |
8677 // BSD-style license that can be found in the LICENSE file. | 8657 // BSD-style license that can be found in the LICENSE file. |
8678 | 8658 |
8679 | 8659 |
8680 /// @domName FileEntry; @docsEditable true | 8660 /// @domName FileEntry; @docsEditable true |
8681 class FileEntry extends Entry native "*FileEntry" { | 8661 class FileEntry extends Entry native "*FileEntry" { |
8682 | 8662 |
8683 /** @domName FileEntry.createWriter; @docsEditable true */ | 8663 /// @domName FileEntry.createWriter; @docsEditable true |
8684 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]) native; | 8664 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]) native; |
8685 | 8665 |
8686 /** @domName FileEntry.file; @docsEditable true */ | 8666 /// @domName FileEntry.file; @docsEditable true |
8687 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; | 8667 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; |
8688 } | 8668 } |
8689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8690 // for details. All rights reserved. Use of this source code is governed by a | 8670 // for details. All rights reserved. Use of this source code is governed by a |
8691 // BSD-style license that can be found in the LICENSE file. | 8671 // BSD-style license that can be found in the LICENSE file. |
8692 | 8672 |
8693 | 8673 |
8694 /// @domName FileEntrySync; @docsEditable true | 8674 /// @domName FileEntrySync; @docsEditable true |
8695 class FileEntrySync extends EntrySync native "*FileEntrySync" { | 8675 class FileEntrySync extends EntrySync native "*FileEntrySync" { |
8696 | 8676 |
8697 /** @domName FileEntrySync.createWriter; @docsEditable true */ | 8677 /// @domName FileEntrySync.createWriter; @docsEditable true |
8698 FileWriterSync createWriter() native; | 8678 FileWriterSync createWriter() native; |
8699 | 8679 |
8700 /** @domName FileEntrySync.file; @docsEditable true */ | 8680 /// @domName FileEntrySync.file; @docsEditable true |
8701 File file() native; | 8681 File file() native; |
8702 } | 8682 } |
8703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8704 // for details. All rights reserved. Use of this source code is governed by a | 8684 // for details. All rights reserved. Use of this source code is governed by a |
8705 // BSD-style license that can be found in the LICENSE file. | 8685 // BSD-style license that can be found in the LICENSE file. |
8706 | 8686 |
8707 | 8687 |
8708 /// @domName FileError; @docsEditable true | 8688 /// @domName FileError; @docsEditable true |
8709 class FileError native "*FileError" { | 8689 class FileError native "*FileError" { |
8710 | 8690 |
(...skipping 14 matching lines...) Expand all Loading... |
8725 static const int PATH_EXISTS_ERR = 12; | 8705 static const int PATH_EXISTS_ERR = 12; |
8726 | 8706 |
8727 static const int QUOTA_EXCEEDED_ERR = 10; | 8707 static const int QUOTA_EXCEEDED_ERR = 10; |
8728 | 8708 |
8729 static const int SECURITY_ERR = 2; | 8709 static const int SECURITY_ERR = 2; |
8730 | 8710 |
8731 static const int SYNTAX_ERR = 8; | 8711 static const int SYNTAX_ERR = 8; |
8732 | 8712 |
8733 static const int TYPE_MISMATCH_ERR = 11; | 8713 static const int TYPE_MISMATCH_ERR = 11; |
8734 | 8714 |
8735 /** @domName FileError.code; @docsEditable true */ | 8715 /// @domName FileError.code; @docsEditable true |
8736 final int code; | 8716 final int code; |
8737 } | 8717 } |
8738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8739 // for details. All rights reserved. Use of this source code is governed by a | 8719 // for details. All rights reserved. Use of this source code is governed by a |
8740 // BSD-style license that can be found in the LICENSE file. | 8720 // BSD-style license that can be found in the LICENSE file. |
8741 | 8721 |
8742 | 8722 |
8743 /// @domName FileException; @docsEditable true | 8723 /// @domName FileException; @docsEditable true |
8744 class FileException native "*FileException" { | 8724 class FileException native "*FileException" { |
8745 | 8725 |
(...skipping 14 matching lines...) Expand all Loading... |
8760 static const int PATH_EXISTS_ERR = 12; | 8740 static const int PATH_EXISTS_ERR = 12; |
8761 | 8741 |
8762 static const int QUOTA_EXCEEDED_ERR = 10; | 8742 static const int QUOTA_EXCEEDED_ERR = 10; |
8763 | 8743 |
8764 static const int SECURITY_ERR = 2; | 8744 static const int SECURITY_ERR = 2; |
8765 | 8745 |
8766 static const int SYNTAX_ERR = 8; | 8746 static const int SYNTAX_ERR = 8; |
8767 | 8747 |
8768 static const int TYPE_MISMATCH_ERR = 11; | 8748 static const int TYPE_MISMATCH_ERR = 11; |
8769 | 8749 |
8770 /** @domName FileException.code; @docsEditable true */ | 8750 /// @domName FileException.code; @docsEditable true |
8771 final int code; | 8751 final int code; |
8772 | 8752 |
8773 /** @domName FileException.message; @docsEditable true */ | 8753 /// @domName FileException.message; @docsEditable true |
8774 final String message; | 8754 final String message; |
8775 | 8755 |
8776 /** @domName FileException.name; @docsEditable true */ | 8756 /// @domName FileException.name; @docsEditable true |
8777 final String name; | 8757 final String name; |
8778 | 8758 |
8779 /** @domName FileException.toString; @docsEditable true */ | 8759 /// @domName FileException.toString; @docsEditable true |
8780 String toString() native; | 8760 String toString() native; |
8781 } | 8761 } |
8782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8783 // for details. All rights reserved. Use of this source code is governed by a | 8763 // for details. All rights reserved. Use of this source code is governed by a |
8784 // BSD-style license that can be found in the LICENSE file. | 8764 // BSD-style license that can be found in the LICENSE file. |
8785 | 8765 |
8786 | 8766 |
8787 /// @domName FileReader; @docsEditable true | 8767 /// @domName FileReader; @docsEditable true |
8788 class FileReader extends EventTarget native "*FileReader" { | 8768 class FileReader extends EventTarget native "*FileReader" { |
8789 | 8769 |
8790 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); | 8770 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); |
8791 | 8771 |
8792 /** | 8772 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
8793 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
8794 */ | |
8795 FileReaderEvents get on => | 8773 FileReaderEvents get on => |
8796 new FileReaderEvents(this); | 8774 new FileReaderEvents(this); |
8797 | 8775 |
8798 static const int DONE = 2; | 8776 static const int DONE = 2; |
8799 | 8777 |
8800 static const int EMPTY = 0; | 8778 static const int EMPTY = 0; |
8801 | 8779 |
8802 static const int LOADING = 1; | 8780 static const int LOADING = 1; |
8803 | 8781 |
8804 /** @domName FileReader.error; @docsEditable true */ | 8782 /// @domName FileReader.error; @docsEditable true |
8805 final FileError error; | 8783 final FileError error; |
8806 | 8784 |
8807 /** @domName FileReader.readyState; @docsEditable true */ | 8785 /// @domName FileReader.readyState; @docsEditable true |
8808 final int readyState; | 8786 final int readyState; |
8809 | 8787 |
8810 /** @domName FileReader.result; @docsEditable true */ | 8788 /// @domName FileReader.result; @docsEditable true |
8811 @Creates('String|ArrayBuffer|Null') | 8789 @Creates('String|ArrayBuffer|Null') |
8812 final Object result; | 8790 final Object result; |
8813 | 8791 |
8814 /** @domName FileReader.abort; @docsEditable true */ | 8792 /// @domName FileReader.abort; @docsEditable true |
8815 void abort() native; | 8793 void abort() native; |
8816 | 8794 |
8817 /** @domName FileReader.addEventListener; @docsEditable true */ | 8795 /// @domName FileReader.addEventListener; @docsEditable true |
8818 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 8796 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
8819 | 8797 |
8820 /** @domName FileReader.dispatchEvent; @docsEditable true */ | 8798 /// @domName FileReader.dispatchEvent; @docsEditable true |
8821 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 8799 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
8822 | 8800 |
8823 /** @domName FileReader.readAsArrayBuffer; @docsEditable true */ | 8801 /// @domName FileReader.readAsArrayBuffer; @docsEditable true |
8824 void readAsArrayBuffer(Blob blob) native; | 8802 void readAsArrayBuffer(Blob blob) native; |
8825 | 8803 |
8826 /** @domName FileReader.readAsBinaryString; @docsEditable true */ | 8804 /// @domName FileReader.readAsBinaryString; @docsEditable true |
8827 void readAsBinaryString(Blob blob) native; | 8805 void readAsBinaryString(Blob blob) native; |
8828 | 8806 |
8829 /** @domName FileReader.readAsDataURL; @docsEditable true */ | 8807 /// @domName FileReader.readAsDataURL; @docsEditable true |
8830 void readAsDataURL(Blob blob) native; | 8808 void readAsDataURL(Blob blob) native; |
8831 | 8809 |
8832 /** @domName FileReader.readAsText; @docsEditable true */ | 8810 /// @domName FileReader.readAsText; @docsEditable true |
8833 void readAsText(Blob blob, [String encoding]) native; | 8811 void readAsText(Blob blob, [String encoding]) native; |
8834 | 8812 |
8835 /** @domName FileReader.removeEventListener; @docsEditable true */ | 8813 /// @domName FileReader.removeEventListener; @docsEditable true |
8836 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 8814 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
8837 } | 8815 } |
8838 | 8816 |
8839 class FileReaderEvents extends Events { | 8817 class FileReaderEvents extends Events { |
8840 FileReaderEvents(EventTarget _ptr) : super(_ptr); | 8818 FileReaderEvents(EventTarget _ptr) : super(_ptr); |
8841 | 8819 |
8842 EventListenerList get abort => this['abort']; | 8820 EventListenerList get abort => this['abort']; |
8843 | 8821 |
8844 EventListenerList get error => this['error']; | 8822 EventListenerList get error => this['error']; |
8845 | 8823 |
8846 EventListenerList get load => this['load']; | 8824 EventListenerList get load => this['load']; |
8847 | 8825 |
8848 EventListenerList get loadEnd => this['loadend']; | 8826 EventListenerList get loadEnd => this['loadend']; |
8849 | 8827 |
8850 EventListenerList get loadStart => this['loadstart']; | 8828 EventListenerList get loadStart => this['loadstart']; |
8851 | 8829 |
8852 EventListenerList get progress => this['progress']; | 8830 EventListenerList get progress => this['progress']; |
8853 } | 8831 } |
8854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8855 // for details. All rights reserved. Use of this source code is governed by a | 8833 // for details. All rights reserved. Use of this source code is governed by a |
8856 // BSD-style license that can be found in the LICENSE file. | 8834 // BSD-style license that can be found in the LICENSE file. |
8857 | 8835 |
8858 | 8836 |
8859 /// @domName FileReaderSync; @docsEditable true | 8837 /// @domName FileReaderSync; @docsEditable true |
8860 class FileReaderSync native "*FileReaderSync" { | 8838 class FileReaderSync native "*FileReaderSync" { |
8861 | 8839 |
8862 factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSyn
c(); | 8840 factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSyn
c(); |
8863 | 8841 |
8864 /** @domName FileReaderSync.readAsArrayBuffer; @docsEditable true */ | 8842 /// @domName FileReaderSync.readAsArrayBuffer; @docsEditable true |
8865 ArrayBuffer readAsArrayBuffer(Blob blob) native; | 8843 ArrayBuffer readAsArrayBuffer(Blob blob) native; |
8866 | 8844 |
8867 /** @domName FileReaderSync.readAsBinaryString; @docsEditable true */ | 8845 /// @domName FileReaderSync.readAsBinaryString; @docsEditable true |
8868 String readAsBinaryString(Blob blob) native; | 8846 String readAsBinaryString(Blob blob) native; |
8869 | 8847 |
8870 /** @domName FileReaderSync.readAsDataURL; @docsEditable true */ | 8848 /// @domName FileReaderSync.readAsDataURL; @docsEditable true |
8871 String readAsDataURL(Blob blob) native; | 8849 String readAsDataURL(Blob blob) native; |
8872 | 8850 |
8873 /** @domName FileReaderSync.readAsText; @docsEditable true */ | 8851 /// @domName FileReaderSync.readAsText; @docsEditable true |
8874 String readAsText(Blob blob, [String encoding]) native; | 8852 String readAsText(Blob blob, [String encoding]) native; |
8875 } | 8853 } |
8876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8877 // for details. All rights reserved. Use of this source code is governed by a | 8855 // for details. All rights reserved. Use of this source code is governed by a |
8878 // BSD-style license that can be found in the LICENSE file. | 8856 // BSD-style license that can be found in the LICENSE file. |
8879 | 8857 |
8880 // WARNING: Do not edit - generated code. | 8858 // WARNING: Do not edit - generated code. |
8881 | 8859 |
8882 | 8860 |
8883 typedef void FileSystemCallback(DOMFileSystem fileSystem); | 8861 typedef void FileSystemCallback(DOMFileSystem fileSystem); |
8884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8885 // for details. All rights reserved. Use of this source code is governed by a | 8863 // for details. All rights reserved. Use of this source code is governed by a |
8886 // BSD-style license that can be found in the LICENSE file. | 8864 // BSD-style license that can be found in the LICENSE file. |
8887 | 8865 |
8888 | 8866 |
8889 /// @domName FileWriter; @docsEditable true | 8867 /// @domName FileWriter; @docsEditable true |
8890 class FileWriter extends EventTarget native "*FileWriter" { | 8868 class FileWriter extends EventTarget native "*FileWriter" { |
8891 | 8869 |
8892 /** | 8870 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
8893 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
8894 */ | |
8895 FileWriterEvents get on => | 8871 FileWriterEvents get on => |
8896 new FileWriterEvents(this); | 8872 new FileWriterEvents(this); |
8897 | 8873 |
8898 static const int DONE = 2; | 8874 static const int DONE = 2; |
8899 | 8875 |
8900 static const int INIT = 0; | 8876 static const int INIT = 0; |
8901 | 8877 |
8902 static const int WRITING = 1; | 8878 static const int WRITING = 1; |
8903 | 8879 |
8904 /** @domName FileWriter.error; @docsEditable true */ | 8880 /// @domName FileWriter.error; @docsEditable true |
8905 final FileError error; | 8881 final FileError error; |
8906 | 8882 |
8907 /** @domName FileWriter.length; @docsEditable true */ | 8883 /// @domName FileWriter.length; @docsEditable true |
8908 final int length; | 8884 final int length; |
8909 | 8885 |
8910 /** @domName FileWriter.position; @docsEditable true */ | 8886 /// @domName FileWriter.position; @docsEditable true |
8911 final int position; | 8887 final int position; |
8912 | 8888 |
8913 /** @domName FileWriter.readyState; @docsEditable true */ | 8889 /// @domName FileWriter.readyState; @docsEditable true |
8914 final int readyState; | 8890 final int readyState; |
8915 | 8891 |
8916 /** @domName FileWriter.abort; @docsEditable true */ | 8892 /// @domName FileWriter.abort; @docsEditable true |
8917 void abort() native; | 8893 void abort() native; |
8918 | 8894 |
8919 /** @domName FileWriter.addEventListener; @docsEditable true */ | 8895 /// @domName FileWriter.addEventListener; @docsEditable true |
8920 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 8896 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
8921 | 8897 |
8922 /** @domName FileWriter.dispatchEvent; @docsEditable true */ | 8898 /// @domName FileWriter.dispatchEvent; @docsEditable true |
8923 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 8899 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
8924 | 8900 |
8925 /** @domName FileWriter.removeEventListener; @docsEditable true */ | 8901 /// @domName FileWriter.removeEventListener; @docsEditable true |
8926 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 8902 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
8927 | 8903 |
8928 /** @domName FileWriter.seek; @docsEditable true */ | 8904 /// @domName FileWriter.seek; @docsEditable true |
8929 void seek(int position) native; | 8905 void seek(int position) native; |
8930 | 8906 |
8931 /** @domName FileWriter.truncate; @docsEditable true */ | 8907 /// @domName FileWriter.truncate; @docsEditable true |
8932 void truncate(int size) native; | 8908 void truncate(int size) native; |
8933 | 8909 |
8934 /** @domName FileWriter.write; @docsEditable true */ | 8910 /// @domName FileWriter.write; @docsEditable true |
8935 void write(Blob data) native; | 8911 void write(Blob data) native; |
8936 } | 8912 } |
8937 | 8913 |
8938 class FileWriterEvents extends Events { | 8914 class FileWriterEvents extends Events { |
8939 FileWriterEvents(EventTarget _ptr) : super(_ptr); | 8915 FileWriterEvents(EventTarget _ptr) : super(_ptr); |
8940 | 8916 |
8941 EventListenerList get abort => this['abort']; | 8917 EventListenerList get abort => this['abort']; |
8942 | 8918 |
8943 EventListenerList get error => this['error']; | 8919 EventListenerList get error => this['error']; |
8944 | 8920 |
(...skipping 14 matching lines...) Expand all Loading... |
8959 | 8935 |
8960 typedef void FileWriterCallback(FileWriter fileWriter); | 8936 typedef void FileWriterCallback(FileWriter fileWriter); |
8961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8962 // for details. All rights reserved. Use of this source code is governed by a | 8938 // for details. All rights reserved. Use of this source code is governed by a |
8963 // BSD-style license that can be found in the LICENSE file. | 8939 // BSD-style license that can be found in the LICENSE file. |
8964 | 8940 |
8965 | 8941 |
8966 /// @domName FileWriterSync; @docsEditable true | 8942 /// @domName FileWriterSync; @docsEditable true |
8967 class FileWriterSync native "*FileWriterSync" { | 8943 class FileWriterSync native "*FileWriterSync" { |
8968 | 8944 |
8969 /** @domName FileWriterSync.length; @docsEditable true */ | 8945 /// @domName FileWriterSync.length; @docsEditable true |
8970 final int length; | 8946 final int length; |
8971 | 8947 |
8972 /** @domName FileWriterSync.position; @docsEditable true */ | 8948 /// @domName FileWriterSync.position; @docsEditable true |
8973 final int position; | 8949 final int position; |
8974 | 8950 |
8975 /** @domName FileWriterSync.seek; @docsEditable true */ | 8951 /// @domName FileWriterSync.seek; @docsEditable true |
8976 void seek(int position) native; | 8952 void seek(int position) native; |
8977 | 8953 |
8978 /** @domName FileWriterSync.truncate; @docsEditable true */ | 8954 /// @domName FileWriterSync.truncate; @docsEditable true |
8979 void truncate(int size) native; | 8955 void truncate(int size) native; |
8980 | 8956 |
8981 /** @domName FileWriterSync.write; @docsEditable true */ | 8957 /// @domName FileWriterSync.write; @docsEditable true |
8982 void write(Blob data) native; | 8958 void write(Blob data) native; |
8983 } | 8959 } |
8984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8985 // for details. All rights reserved. Use of this source code is governed by a | 8961 // for details. All rights reserved. Use of this source code is governed by a |
8986 // BSD-style license that can be found in the LICENSE file. | 8962 // BSD-style license that can be found in the LICENSE file. |
8987 | 8963 |
8988 | 8964 |
8989 /// @domName Float32Array; @docsEditable true | 8965 /// @domName Float32Array; @docsEditable true |
8990 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float32Array" { | 8966 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float32Array" { |
8991 | 8967 |
8992 factory Float32Array(int length) => | 8968 factory Float32Array(int length) => |
8993 _TypedArrayFactoryProvider.createFloat32Array(length); | 8969 _TypedArrayFactoryProvider.createFloat32Array(length); |
8994 | 8970 |
8995 factory Float32Array.fromList(List<num> list) => | 8971 factory Float32Array.fromList(List<num> list) => |
8996 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); | 8972 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); |
8997 | 8973 |
8998 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => | 8974 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => |
8999 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset,
length); | 8975 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset,
length); |
9000 | 8976 |
9001 static const int BYTES_PER_ELEMENT = 4; | 8977 static const int BYTES_PER_ELEMENT = 4; |
9002 | 8978 |
9003 /** @domName Float32Array.length; @docsEditable true */ | 8979 /// @domName Float32Array.length; @docsEditable true |
9004 final int length; | 8980 final int length; |
9005 | 8981 |
9006 num operator[](int index) => JS("num", "#[#]", this, index); | 8982 num operator[](int index) => JS("num", "#[#]", this, index); |
9007 | 8983 |
9008 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. | 8984 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. |
9009 // num is the element type. | 8985 // num is the element type. |
9010 | 8986 |
9011 // From Iterable<num>: | 8987 // From Iterable<num>: |
9012 | 8988 |
9013 Iterator<num> iterator() { | 8989 Iterator<num> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9078 | 9054 |
9079 void insertRange(int start, int rangeLength, [num initialValue]) { | 9055 void insertRange(int start, int rangeLength, [num initialValue]) { |
9080 throw new UnsupportedError("Cannot insertRange on immutable List."); | 9056 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9081 } | 9057 } |
9082 | 9058 |
9083 List<num> getRange(int start, int rangeLength) => | 9059 List<num> getRange(int start, int rangeLength) => |
9084 _Lists.getRange(this, start, rangeLength, <num>[]); | 9060 _Lists.getRange(this, start, rangeLength, <num>[]); |
9085 | 9061 |
9086 // -- end List<num> mixins. | 9062 // -- end List<num> mixins. |
9087 | 9063 |
9088 /** @domName Float32Array.setElements; @docsEditable true */ | 9064 /// @domName Float32Array.setElements; @docsEditable true |
9089 void setElements(Object array, [int offset]) native "set"; | 9065 void setElements(Object array, [int offset]) native "set"; |
9090 | 9066 |
9091 /** @domName Float32Array.subarray; @docsEditable true */ | 9067 /// @domName Float32Array.subarray; @docsEditable true |
9092 Float32Array subarray(int start, [int end]) native; | 9068 Float32Array subarray(int start, [int end]) native; |
9093 } | 9069 } |
9094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9095 // for details. All rights reserved. Use of this source code is governed by a | 9071 // for details. All rights reserved. Use of this source code is governed by a |
9096 // BSD-style license that can be found in the LICENSE file. | 9072 // BSD-style license that can be found in the LICENSE file. |
9097 | 9073 |
9098 | 9074 |
9099 /// @domName Float64Array; @docsEditable true | 9075 /// @domName Float64Array; @docsEditable true |
9100 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float64Array" { | 9076 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float64Array" { |
9101 | 9077 |
9102 factory Float64Array(int length) => | 9078 factory Float64Array(int length) => |
9103 _TypedArrayFactoryProvider.createFloat64Array(length); | 9079 _TypedArrayFactoryProvider.createFloat64Array(length); |
9104 | 9080 |
9105 factory Float64Array.fromList(List<num> list) => | 9081 factory Float64Array.fromList(List<num> list) => |
9106 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); | 9082 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); |
9107 | 9083 |
9108 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => | 9084 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => |
9109 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset,
length); | 9085 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset,
length); |
9110 | 9086 |
9111 static const int BYTES_PER_ELEMENT = 8; | 9087 static const int BYTES_PER_ELEMENT = 8; |
9112 | 9088 |
9113 /** @domName Float64Array.length; @docsEditable true */ | 9089 /// @domName Float64Array.length; @docsEditable true |
9114 final int length; | 9090 final int length; |
9115 | 9091 |
9116 num operator[](int index) => JS("num", "#[#]", this, index); | 9092 num operator[](int index) => JS("num", "#[#]", this, index); |
9117 | 9093 |
9118 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. | 9094 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. |
9119 // num is the element type. | 9095 // num is the element type. |
9120 | 9096 |
9121 // From Iterable<num>: | 9097 // From Iterable<num>: |
9122 | 9098 |
9123 Iterator<num> iterator() { | 9099 Iterator<num> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9188 | 9164 |
9189 void insertRange(int start, int rangeLength, [num initialValue]) { | 9165 void insertRange(int start, int rangeLength, [num initialValue]) { |
9190 throw new UnsupportedError("Cannot insertRange on immutable List."); | 9166 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9191 } | 9167 } |
9192 | 9168 |
9193 List<num> getRange(int start, int rangeLength) => | 9169 List<num> getRange(int start, int rangeLength) => |
9194 _Lists.getRange(this, start, rangeLength, <num>[]); | 9170 _Lists.getRange(this, start, rangeLength, <num>[]); |
9195 | 9171 |
9196 // -- end List<num> mixins. | 9172 // -- end List<num> mixins. |
9197 | 9173 |
9198 /** @domName Float64Array.setElements; @docsEditable true */ | 9174 /// @domName Float64Array.setElements; @docsEditable true |
9199 void setElements(Object array, [int offset]) native "set"; | 9175 void setElements(Object array, [int offset]) native "set"; |
9200 | 9176 |
9201 /** @domName Float64Array.subarray; @docsEditable true */ | 9177 /// @domName Float64Array.subarray; @docsEditable true |
9202 Float64Array subarray(int start, [int end]) native; | 9178 Float64Array subarray(int start, [int end]) native; |
9203 } | 9179 } |
9204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9205 // for details. All rights reserved. Use of this source code is governed by a | 9181 // for details. All rights reserved. Use of this source code is governed by a |
9206 // BSD-style license that can be found in the LICENSE file. | 9182 // BSD-style license that can be found in the LICENSE file. |
9207 | 9183 |
9208 | 9184 |
9209 /// @domName HTMLFontElement; @docsEditable true | 9185 /// @domName HTMLFontElement; @docsEditable true |
9210 class FontElement extends Element implements Element native "*HTMLFontElement" { | 9186 class FontElement extends Element implements Element native "*HTMLFontElement" { |
9211 | 9187 |
9212 /** @domName HTMLFontElement.color; @docsEditable true */ | 9188 /// @domName HTMLFontElement.color; @docsEditable true |
9213 String color; | 9189 String color; |
9214 | 9190 |
9215 /** @domName HTMLFontElement.face; @docsEditable true */ | 9191 /// @domName HTMLFontElement.face; @docsEditable true |
9216 String face; | 9192 String face; |
9217 | 9193 |
9218 /** @domName HTMLFontElement.size; @docsEditable true */ | 9194 /// @domName HTMLFontElement.size; @docsEditable true |
9219 String size; | 9195 String size; |
9220 } | 9196 } |
9221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9222 // for details. All rights reserved. Use of this source code is governed by a | 9198 // for details. All rights reserved. Use of this source code is governed by a |
9223 // BSD-style license that can be found in the LICENSE file. | 9199 // BSD-style license that can be found in the LICENSE file. |
9224 | 9200 |
9225 | 9201 |
9226 /// @domName FormData; @docsEditable true | 9202 /// @domName FormData; @docsEditable true |
9227 class FormData native "*FormData" { | 9203 class FormData native "*FormData" { |
9228 | 9204 |
9229 factory FormData([FormElement form]) { | 9205 factory FormData([FormElement form]) { |
9230 if (!?form) { | 9206 if (!?form) { |
9231 return _FormDataFactoryProvider.createFormData(); | 9207 return _FormDataFactoryProvider.createFormData(); |
9232 } | 9208 } |
9233 return _FormDataFactoryProvider.createFormData(form); | 9209 return _FormDataFactoryProvider.createFormData(form); |
9234 } | 9210 } |
9235 | 9211 |
9236 /** @domName FormData.append; @docsEditable true */ | 9212 /// @domName FormData.append; @docsEditable true |
9237 void append(String name, String value, String filename) native; | 9213 void append(String name, String value, String filename) native; |
9238 } | 9214 } |
9239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9240 // for details. All rights reserved. Use of this source code is governed by a | 9216 // for details. All rights reserved. Use of this source code is governed by a |
9241 // BSD-style license that can be found in the LICENSE file. | 9217 // BSD-style license that can be found in the LICENSE file. |
9242 | 9218 |
9243 | 9219 |
9244 /// @domName HTMLFormElement; @docsEditable true | 9220 /// @domName HTMLFormElement; @docsEditable true |
9245 class FormElement extends Element implements Element native "*HTMLFormElement" { | 9221 class FormElement extends Element implements Element native "*HTMLFormElement" { |
9246 | 9222 |
9247 factory FormElement() => document.$dom_createElement("form"); | 9223 factory FormElement() => document.$dom_createElement("form"); |
9248 | 9224 |
9249 /** @domName HTMLFormElement.acceptCharset; @docsEditable true */ | 9225 /// @domName HTMLFormElement.acceptCharset; @docsEditable true |
9250 String acceptCharset; | 9226 String acceptCharset; |
9251 | 9227 |
9252 /** @domName HTMLFormElement.action; @docsEditable true */ | 9228 /// @domName HTMLFormElement.action; @docsEditable true |
9253 String action; | 9229 String action; |
9254 | 9230 |
9255 /** @domName HTMLFormElement.autocomplete; @docsEditable true */ | 9231 /// @domName HTMLFormElement.autocomplete; @docsEditable true |
9256 String autocomplete; | 9232 String autocomplete; |
9257 | 9233 |
9258 /** @domName HTMLFormElement.encoding; @docsEditable true */ | 9234 /// @domName HTMLFormElement.encoding; @docsEditable true |
9259 String encoding; | 9235 String encoding; |
9260 | 9236 |
9261 /** @domName HTMLFormElement.enctype; @docsEditable true */ | 9237 /// @domName HTMLFormElement.enctype; @docsEditable true |
9262 String enctype; | 9238 String enctype; |
9263 | 9239 |
9264 /** @domName HTMLFormElement.length; @docsEditable true */ | 9240 /// @domName HTMLFormElement.length; @docsEditable true |
9265 final int length; | 9241 final int length; |
9266 | 9242 |
9267 /** @domName HTMLFormElement.method; @docsEditable true */ | 9243 /// @domName HTMLFormElement.method; @docsEditable true |
9268 String method; | 9244 String method; |
9269 | 9245 |
9270 /** @domName HTMLFormElement.name; @docsEditable true */ | 9246 /// @domName HTMLFormElement.name; @docsEditable true |
9271 String name; | 9247 String name; |
9272 | 9248 |
9273 /** @domName HTMLFormElement.noValidate; @docsEditable true */ | 9249 /// @domName HTMLFormElement.noValidate; @docsEditable true |
9274 bool noValidate; | 9250 bool noValidate; |
9275 | 9251 |
9276 /** @domName HTMLFormElement.target; @docsEditable true */ | 9252 /// @domName HTMLFormElement.target; @docsEditable true |
9277 String target; | 9253 String target; |
9278 | 9254 |
9279 /** @domName HTMLFormElement.checkValidity; @docsEditable true */ | 9255 /// @domName HTMLFormElement.checkValidity; @docsEditable true |
9280 bool checkValidity() native; | 9256 bool checkValidity() native; |
9281 | 9257 |
9282 /** @domName HTMLFormElement.reset; @docsEditable true */ | 9258 /// @domName HTMLFormElement.reset; @docsEditable true |
9283 void reset() native; | 9259 void reset() native; |
9284 | 9260 |
9285 /** @domName HTMLFormElement.submit; @docsEditable true */ | 9261 /// @domName HTMLFormElement.submit; @docsEditable true |
9286 void submit() native; | 9262 void submit() native; |
9287 } | 9263 } |
9288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9289 // for details. All rights reserved. Use of this source code is governed by a | 9265 // for details. All rights reserved. Use of this source code is governed by a |
9290 // BSD-style license that can be found in the LICENSE file. | 9266 // BSD-style license that can be found in the LICENSE file. |
9291 | 9267 |
9292 | 9268 |
9293 /// @domName HTMLFrameElement; @docsEditable true | 9269 /// @domName HTMLFrameElement; @docsEditable true |
9294 class FrameElement extends Element implements Element native "*HTMLFrameElement"
{ | 9270 class FrameElement extends Element implements Element native "*HTMLFrameElement"
{ |
9295 | 9271 |
9296 /** @domName HTMLFrameElement.contentWindow; @docsEditable true */ | 9272 /// @domName HTMLFrameElement.contentWindow; @docsEditable true |
9297 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); | 9273 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); |
9298 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); | 9274 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); |
9299 | 9275 |
9300 /** @domName HTMLFrameElement.frameBorder; @docsEditable true */ | 9276 /// @domName HTMLFrameElement.frameBorder; @docsEditable true |
9301 String frameBorder; | 9277 String frameBorder; |
9302 | 9278 |
9303 /** @domName HTMLFrameElement.height; @docsEditable true */ | 9279 /// @domName HTMLFrameElement.height; @docsEditable true |
9304 final int height; | 9280 final int height; |
9305 | 9281 |
9306 /** @domName HTMLFrameElement.location; @docsEditable true */ | 9282 /// @domName HTMLFrameElement.location; @docsEditable true |
9307 String location; | 9283 String location; |
9308 | 9284 |
9309 /** @domName HTMLFrameElement.longDesc; @docsEditable true */ | 9285 /// @domName HTMLFrameElement.longDesc; @docsEditable true |
9310 String longDesc; | 9286 String longDesc; |
9311 | 9287 |
9312 /** @domName HTMLFrameElement.marginHeight; @docsEditable true */ | 9288 /// @domName HTMLFrameElement.marginHeight; @docsEditable true |
9313 String marginHeight; | 9289 String marginHeight; |
9314 | 9290 |
9315 /** @domName HTMLFrameElement.marginWidth; @docsEditable true */ | 9291 /// @domName HTMLFrameElement.marginWidth; @docsEditable true |
9316 String marginWidth; | 9292 String marginWidth; |
9317 | 9293 |
9318 /** @domName HTMLFrameElement.name; @docsEditable true */ | 9294 /// @domName HTMLFrameElement.name; @docsEditable true |
9319 String name; | 9295 String name; |
9320 | 9296 |
9321 /** @domName HTMLFrameElement.noResize; @docsEditable true */ | 9297 /// @domName HTMLFrameElement.noResize; @docsEditable true |
9322 bool noResize; | 9298 bool noResize; |
9323 | 9299 |
9324 /** @domName HTMLFrameElement.scrolling; @docsEditable true */ | 9300 /// @domName HTMLFrameElement.scrolling; @docsEditable true |
9325 String scrolling; | 9301 String scrolling; |
9326 | 9302 |
9327 /** @domName HTMLFrameElement.src; @docsEditable true */ | 9303 /// @domName HTMLFrameElement.src; @docsEditable true |
9328 String src; | 9304 String src; |
9329 | 9305 |
9330 /** @domName HTMLFrameElement.width; @docsEditable true */ | 9306 /// @domName HTMLFrameElement.width; @docsEditable true |
9331 final int width; | 9307 final int width; |
9332 } | 9308 } |
9333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9334 // for details. All rights reserved. Use of this source code is governed by a | 9310 // for details. All rights reserved. Use of this source code is governed by a |
9335 // BSD-style license that can be found in the LICENSE file. | 9311 // BSD-style license that can be found in the LICENSE file. |
9336 | 9312 |
9337 | 9313 |
9338 /// @domName HTMLFrameSetElement; @docsEditable true | 9314 /// @domName HTMLFrameSetElement; @docsEditable true |
9339 class FrameSetElement extends Element implements Element native "*HTMLFrameSetEl
ement" { | 9315 class FrameSetElement extends Element implements Element native "*HTMLFrameSetEl
ement" { |
9340 | 9316 |
9341 /** | 9317 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
9342 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
9343 */ | |
9344 FrameSetElementEvents get on => | 9318 FrameSetElementEvents get on => |
9345 new FrameSetElementEvents(this); | 9319 new FrameSetElementEvents(this); |
9346 | 9320 |
9347 /** @domName HTMLFrameSetElement.cols; @docsEditable true */ | 9321 /// @domName HTMLFrameSetElement.cols; @docsEditable true |
9348 String cols; | 9322 String cols; |
9349 | 9323 |
9350 /** @domName HTMLFrameSetElement.rows; @docsEditable true */ | 9324 /// @domName HTMLFrameSetElement.rows; @docsEditable true |
9351 String rows; | 9325 String rows; |
9352 } | 9326 } |
9353 | 9327 |
9354 class FrameSetElementEvents extends ElementEvents { | 9328 class FrameSetElementEvents extends ElementEvents { |
9355 FrameSetElementEvents(EventTarget _ptr) : super(_ptr); | 9329 FrameSetElementEvents(EventTarget _ptr) : super(_ptr); |
9356 | 9330 |
9357 EventListenerList get beforeUnload => this['beforeunload']; | 9331 EventListenerList get beforeUnload => this['beforeunload']; |
9358 | 9332 |
9359 EventListenerList get blur => this['blur']; | 9333 EventListenerList get blur => this['blur']; |
9360 | 9334 |
(...skipping 20 matching lines...) Expand all Loading... |
9381 EventListenerList get unload => this['unload']; | 9355 EventListenerList get unload => this['unload']; |
9382 } | 9356 } |
9383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9384 // for details. All rights reserved. Use of this source code is governed by a | 9358 // for details. All rights reserved. Use of this source code is governed by a |
9385 // BSD-style license that can be found in the LICENSE file. | 9359 // BSD-style license that can be found in the LICENSE file. |
9386 | 9360 |
9387 | 9361 |
9388 /// @domName GainNode; @docsEditable true | 9362 /// @domName GainNode; @docsEditable true |
9389 class GainNode extends AudioNode native "*GainNode" { | 9363 class GainNode extends AudioNode native "*GainNode" { |
9390 | 9364 |
9391 /** @domName GainNode.gain; @docsEditable true */ | 9365 /// @domName GainNode.gain; @docsEditable true |
9392 final AudioGain gain; | 9366 final AudioGain gain; |
9393 } | 9367 } |
9394 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9395 // for details. All rights reserved. Use of this source code is governed by a | 9369 // for details. All rights reserved. Use of this source code is governed by a |
9396 // BSD-style license that can be found in the LICENSE file. | 9370 // BSD-style license that can be found in the LICENSE file. |
9397 | 9371 |
9398 | 9372 |
9399 /// @domName Gamepad; @docsEditable true | 9373 /// @domName Gamepad; @docsEditable true |
9400 class Gamepad native "*Gamepad" { | 9374 class Gamepad native "*Gamepad" { |
9401 | 9375 |
9402 /** @domName Gamepad.axes; @docsEditable true */ | 9376 /// @domName Gamepad.axes; @docsEditable true |
9403 final List<num> axes; | 9377 final List<num> axes; |
9404 | 9378 |
9405 /** @domName Gamepad.buttons; @docsEditable true */ | 9379 /// @domName Gamepad.buttons; @docsEditable true |
9406 final List<num> buttons; | 9380 final List<num> buttons; |
9407 | 9381 |
9408 /** @domName Gamepad.id; @docsEditable true */ | 9382 /// @domName Gamepad.id; @docsEditable true |
9409 final String id; | 9383 final String id; |
9410 | 9384 |
9411 /** @domName Gamepad.index; @docsEditable true */ | 9385 /// @domName Gamepad.index; @docsEditable true |
9412 final int index; | 9386 final int index; |
9413 | 9387 |
9414 /** @domName Gamepad.timestamp; @docsEditable true */ | 9388 /// @domName Gamepad.timestamp; @docsEditable true |
9415 final int timestamp; | 9389 final int timestamp; |
9416 } | 9390 } |
9417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9418 // for details. All rights reserved. Use of this source code is governed by a | 9392 // for details. All rights reserved. Use of this source code is governed by a |
9419 // BSD-style license that can be found in the LICENSE file. | 9393 // BSD-style license that can be found in the LICENSE file. |
9420 | 9394 |
9421 | 9395 |
9422 /// @domName Geolocation; @docsEditable true | 9396 /// @domName Geolocation; @docsEditable true |
9423 class Geolocation native "*Geolocation" { | 9397 class Geolocation native "*Geolocation" { |
9424 | 9398 |
9425 /** @domName Geolocation.clearWatch; @docsEditable true */ | 9399 /// @domName Geolocation.clearWatch; @docsEditable true |
9426 void clearWatch(int watchId) native; | 9400 void clearWatch(int watchId) native; |
9427 | 9401 |
9428 /** @domName Geolocation.getCurrentPosition; @docsEditable true */ | 9402 /// @domName Geolocation.getCurrentPosition; @docsEditable true |
9429 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; | 9403 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; |
9430 | 9404 |
9431 /** @domName Geolocation.watchPosition; @docsEditable true */ | 9405 /// @domName Geolocation.watchPosition; @docsEditable true |
9432 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; | 9406 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; |
9433 } | 9407 } |
9434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9408 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9435 // for details. All rights reserved. Use of this source code is governed by a | 9409 // for details. All rights reserved. Use of this source code is governed by a |
9436 // BSD-style license that can be found in the LICENSE file. | 9410 // BSD-style license that can be found in the LICENSE file. |
9437 | 9411 |
9438 | 9412 |
9439 /// @domName Geoposition; @docsEditable true | 9413 /// @domName Geoposition; @docsEditable true |
9440 class Geoposition native "*Geoposition" { | 9414 class Geoposition native "*Geoposition" { |
9441 | 9415 |
9442 /** @domName Geoposition.coords; @docsEditable true */ | 9416 /// @domName Geoposition.coords; @docsEditable true |
9443 final Coordinates coords; | 9417 final Coordinates coords; |
9444 | 9418 |
9445 /** @domName Geoposition.timestamp; @docsEditable true */ | 9419 /// @domName Geoposition.timestamp; @docsEditable true |
9446 final int timestamp; | 9420 final int timestamp; |
9447 } | 9421 } |
9448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9449 // for details. All rights reserved. Use of this source code is governed by a | 9423 // for details. All rights reserved. Use of this source code is governed by a |
9450 // BSD-style license that can be found in the LICENSE file. | 9424 // BSD-style license that can be found in the LICENSE file. |
9451 | 9425 |
9452 | 9426 |
9453 /// @domName HTMLHRElement; @docsEditable true | 9427 /// @domName HTMLHRElement; @docsEditable true |
9454 class HRElement extends Element implements Element native "*HTMLHRElement" { | 9428 class HRElement extends Element implements Element native "*HTMLHRElement" { |
9455 | 9429 |
9456 factory HRElement() => document.$dom_createElement("hr"); | 9430 factory HRElement() => document.$dom_createElement("hr"); |
9457 | 9431 |
9458 /** @domName HTMLHRElement.align; @docsEditable true */ | 9432 /// @domName HTMLHRElement.align; @docsEditable true |
9459 String align; | 9433 String align; |
9460 | 9434 |
9461 /** @domName HTMLHRElement.noShade; @docsEditable true */ | 9435 /// @domName HTMLHRElement.noShade; @docsEditable true |
9462 bool noShade; | 9436 bool noShade; |
9463 | 9437 |
9464 /** @domName HTMLHRElement.size; @docsEditable true */ | 9438 /// @domName HTMLHRElement.size; @docsEditable true |
9465 String size; | 9439 String size; |
9466 | 9440 |
9467 /** @domName HTMLHRElement.width; @docsEditable true */ | 9441 /// @domName HTMLHRElement.width; @docsEditable true |
9468 String width; | 9442 String width; |
9469 } | 9443 } |
9470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9471 // for details. All rights reserved. Use of this source code is governed by a | 9445 // for details. All rights reserved. Use of this source code is governed by a |
9472 // BSD-style license that can be found in the LICENSE file. | 9446 // BSD-style license that can be found in the LICENSE file. |
9473 | 9447 |
9474 | 9448 |
9475 /// @domName HTMLAllCollection; @docsEditable true | 9449 /// @domName HTMLAllCollection; @docsEditable true |
9476 class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native
"*HTMLAllCollection" { | 9450 class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native
"*HTMLAllCollection" { |
9477 | 9451 |
9478 /** @domName HTMLAllCollection.length; @docsEditable true */ | 9452 /// @domName HTMLAllCollection.length; @docsEditable true |
9479 final int length; | 9453 final int length; |
9480 | 9454 |
9481 Node operator[](int index) => JS("Node", "#[#]", this, index); | 9455 Node operator[](int index) => JS("Node", "#[#]", this, index); |
9482 | 9456 |
9483 void operator[]=(int index, Node value) { | 9457 void operator[]=(int index, Node value) { |
9484 throw new UnsupportedError("Cannot assign element of immutable List."); | 9458 throw new UnsupportedError("Cannot assign element of immutable List."); |
9485 } | 9459 } |
9486 // -- start List<Node> mixins. | 9460 // -- start List<Node> mixins. |
9487 // Node is the element type. | 9461 // Node is the element type. |
9488 | 9462 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9556 | 9530 |
9557 void insertRange(int start, int rangeLength, [Node initialValue]) { | 9531 void insertRange(int start, int rangeLength, [Node initialValue]) { |
9558 throw new UnsupportedError("Cannot insertRange on immutable List."); | 9532 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9559 } | 9533 } |
9560 | 9534 |
9561 List<Node> getRange(int start, int rangeLength) => | 9535 List<Node> getRange(int start, int rangeLength) => |
9562 _Lists.getRange(this, start, rangeLength, <Node>[]); | 9536 _Lists.getRange(this, start, rangeLength, <Node>[]); |
9563 | 9537 |
9564 // -- end List<Node> mixins. | 9538 // -- end List<Node> mixins. |
9565 | 9539 |
9566 /** @domName HTMLAllCollection.item; @docsEditable true */ | 9540 /// @domName HTMLAllCollection.item; @docsEditable true |
9567 Node item(int index) native; | 9541 Node item(int index) native; |
9568 | 9542 |
9569 /** @domName HTMLAllCollection.namedItem; @docsEditable true */ | 9543 /// @domName HTMLAllCollection.namedItem; @docsEditable true |
9570 Node namedItem(String name) native; | 9544 Node namedItem(String name) native; |
9571 | 9545 |
9572 /** @domName HTMLAllCollection.tags; @docsEditable true */ | 9546 /// @domName HTMLAllCollection.tags; @docsEditable true |
9573 @Returns('_NodeList') @Creates('_NodeList') | 9547 @Returns('_NodeList') @Creates('_NodeList') |
9574 List<Node> tags(String name) native; | 9548 List<Node> tags(String name) native; |
9575 } | 9549 } |
9576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9577 // for details. All rights reserved. Use of this source code is governed by a | 9551 // for details. All rights reserved. Use of this source code is governed by a |
9578 // BSD-style license that can be found in the LICENSE file. | 9552 // BSD-style license that can be found in the LICENSE file. |
9579 | 9553 |
9580 | 9554 |
9581 /// @domName HTMLCollection; @docsEditable true | 9555 /// @domName HTMLCollection; @docsEditable true |
9582 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "*
HTMLCollection" { | 9556 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "*
HTMLCollection" { |
9583 | 9557 |
9584 /** @domName HTMLCollection.length; @docsEditable true */ | 9558 /// @domName HTMLCollection.length; @docsEditable true |
9585 final int length; | 9559 final int length; |
9586 | 9560 |
9587 Node operator[](int index) => JS("Node", "#[#]", this, index); | 9561 Node operator[](int index) => JS("Node", "#[#]", this, index); |
9588 | 9562 |
9589 void operator[]=(int index, Node value) { | 9563 void operator[]=(int index, Node value) { |
9590 throw new UnsupportedError("Cannot assign element of immutable List."); | 9564 throw new UnsupportedError("Cannot assign element of immutable List."); |
9591 } | 9565 } |
9592 // -- start List<Node> mixins. | 9566 // -- start List<Node> mixins. |
9593 // Node is the element type. | 9567 // Node is the element type. |
9594 | 9568 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9662 | 9636 |
9663 void insertRange(int start, int rangeLength, [Node initialValue]) { | 9637 void insertRange(int start, int rangeLength, [Node initialValue]) { |
9664 throw new UnsupportedError("Cannot insertRange on immutable List."); | 9638 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9665 } | 9639 } |
9666 | 9640 |
9667 List<Node> getRange(int start, int rangeLength) => | 9641 List<Node> getRange(int start, int rangeLength) => |
9668 _Lists.getRange(this, start, rangeLength, <Node>[]); | 9642 _Lists.getRange(this, start, rangeLength, <Node>[]); |
9669 | 9643 |
9670 // -- end List<Node> mixins. | 9644 // -- end List<Node> mixins. |
9671 | 9645 |
9672 /** @domName HTMLCollection.item; @docsEditable true */ | 9646 /// @domName HTMLCollection.item; @docsEditable true |
9673 Node item(int index) native; | 9647 Node item(int index) native; |
9674 | 9648 |
9675 /** @domName HTMLCollection.namedItem; @docsEditable true */ | 9649 /// @domName HTMLCollection.namedItem; @docsEditable true |
9676 Node namedItem(String name) native; | 9650 Node namedItem(String name) native; |
9677 } | 9651 } |
9678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9679 // for details. All rights reserved. Use of this source code is governed by a | 9653 // for details. All rights reserved. Use of this source code is governed by a |
9680 // BSD-style license that can be found in the LICENSE file. | 9654 // BSD-style license that can be found in the LICENSE file. |
9681 | 9655 |
9682 | 9656 |
9683 /// @domName HTMLOptionsCollection; @docsEditable true | 9657 /// @domName HTMLOptionsCollection; @docsEditable true |
9684 class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio
n" { | 9658 class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio
n" { |
9685 | 9659 |
9686 // Shadowing definition. | 9660 // Shadowing definition. |
9687 /** @domName HTMLOptionsCollection.length; @docsEditable true */ | 9661 /// @domName HTMLOptionsCollection.length; @docsEditable true |
9688 int get length => JS("int", "#.length", this); | 9662 int get length => JS("int", "#.length", this); |
9689 | 9663 |
9690 /** @domName HTMLOptionsCollection.length; @docsEditable true */ | 9664 /// @domName HTMLOptionsCollection.length; @docsEditable true |
9691 void set length(int value) { | 9665 void set length(int value) { |
9692 JS("void", "#.length = #", this, value); | 9666 JS("void", "#.length = #", this, value); |
9693 } | 9667 } |
9694 | 9668 |
9695 /** @domName HTMLOptionsCollection.selectedIndex; @docsEditable true */ | 9669 /// @domName HTMLOptionsCollection.selectedIndex; @docsEditable true |
9696 int selectedIndex; | 9670 int selectedIndex; |
9697 | 9671 |
9698 /** @domName HTMLOptionsCollection.remove; @docsEditable true */ | 9672 /// @domName HTMLOptionsCollection.remove; @docsEditable true |
9699 void remove(int index) native; | 9673 void remove(int index) native; |
9700 } | 9674 } |
9701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9702 // for details. All rights reserved. Use of this source code is governed by a | 9676 // for details. All rights reserved. Use of this source code is governed by a |
9703 // BSD-style license that can be found in the LICENSE file. | 9677 // BSD-style license that can be found in the LICENSE file. |
9704 | 9678 |
9705 | 9679 |
9706 /// @domName HashChangeEvent; @docsEditable true | 9680 /// @domName HashChangeEvent; @docsEditable true |
9707 class HashChangeEvent extends Event native "*HashChangeEvent" { | 9681 class HashChangeEvent extends Event native "*HashChangeEvent" { |
9708 | 9682 |
9709 /** @domName HashChangeEvent.newURL; @docsEditable true */ | 9683 /// @domName HashChangeEvent.newURL; @docsEditable true |
9710 final String newURL; | 9684 final String newURL; |
9711 | 9685 |
9712 /** @domName HashChangeEvent.oldURL; @docsEditable true */ | 9686 /// @domName HashChangeEvent.oldURL; @docsEditable true |
9713 final String oldURL; | 9687 final String oldURL; |
9714 | 9688 |
9715 /** @domName HashChangeEvent.initHashChangeEvent; @docsEditable true */ | 9689 /// @domName HashChangeEvent.initHashChangeEvent; @docsEditable true |
9716 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; | 9690 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; |
9717 } | 9691 } |
9718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9719 // for details. All rights reserved. Use of this source code is governed by a | 9693 // for details. All rights reserved. Use of this source code is governed by a |
9720 // BSD-style license that can be found in the LICENSE file. | 9694 // BSD-style license that can be found in the LICENSE file. |
9721 | 9695 |
9722 | 9696 |
9723 /// @domName HTMLHeadElement; @docsEditable true | 9697 /// @domName HTMLHeadElement; @docsEditable true |
9724 class HeadElement extends Element implements Element native "*HTMLHeadElement" { | 9698 class HeadElement extends Element implements Element native "*HTMLHeadElement" { |
9725 | 9699 |
9726 factory HeadElement() => document.$dom_createElement("head"); | 9700 factory HeadElement() => document.$dom_createElement("head"); |
9727 | 9701 |
9728 /** @domName HTMLHeadElement.profile; @docsEditable true */ | 9702 /// @domName HTMLHeadElement.profile; @docsEditable true |
9729 String profile; | 9703 String profile; |
9730 } | 9704 } |
9731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9732 // for details. All rights reserved. Use of this source code is governed by a | 9706 // for details. All rights reserved. Use of this source code is governed by a |
9733 // BSD-style license that can be found in the LICENSE file. | 9707 // BSD-style license that can be found in the LICENSE file. |
9734 | 9708 |
9735 | 9709 |
9736 /// @domName HTMLHeadingElement; @docsEditable true | 9710 /// @domName HTMLHeadingElement; @docsEditable true |
9737 class HeadingElement extends Element implements Element native "*HTMLHeadingElem
ent" { | 9711 class HeadingElement extends Element implements Element native "*HTMLHeadingElem
ent" { |
9738 | 9712 |
9739 factory HeadingElement.h1() => document.$dom_createElement("h1"); | 9713 factory HeadingElement.h1() => document.$dom_createElement("h1"); |
9740 | 9714 |
9741 factory HeadingElement.h2() => document.$dom_createElement("h2"); | 9715 factory HeadingElement.h2() => document.$dom_createElement("h2"); |
9742 | 9716 |
9743 factory HeadingElement.h3() => document.$dom_createElement("h3"); | 9717 factory HeadingElement.h3() => document.$dom_createElement("h3"); |
9744 | 9718 |
9745 factory HeadingElement.h4() => document.$dom_createElement("h4"); | 9719 factory HeadingElement.h4() => document.$dom_createElement("h4"); |
9746 | 9720 |
9747 factory HeadingElement.h5() => document.$dom_createElement("h5"); | 9721 factory HeadingElement.h5() => document.$dom_createElement("h5"); |
9748 | 9722 |
9749 factory HeadingElement.h6() => document.$dom_createElement("h6"); | 9723 factory HeadingElement.h6() => document.$dom_createElement("h6"); |
9750 | 9724 |
9751 /** @domName HTMLHeadingElement.align; @docsEditable true */ | 9725 /// @domName HTMLHeadingElement.align; @docsEditable true |
9752 String align; | 9726 String align; |
9753 } | 9727 } |
9754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9755 // for details. All rights reserved. Use of this source code is governed by a | 9729 // for details. All rights reserved. Use of this source code is governed by a |
9756 // BSD-style license that can be found in the LICENSE file. | 9730 // BSD-style license that can be found in the LICENSE file. |
9757 | 9731 |
9758 // WARNING: Do not edit - generated code. | 9732 // WARNING: Do not edit - generated code. |
9759 | 9733 |
9760 | 9734 |
9761 class HtmlDocument extends Document native "*HTMLDocument" { | 9735 class HtmlDocument extends Document native "*HTMLDocument" { |
9762 | 9736 |
9763 /** @domName HTMLDocument.activeElement; @docsEditable true */ | 9737 /// @domName HTMLDocument.activeElement; @docsEditable true |
9764 final Element activeElement; | 9738 final Element activeElement; |
9765 | 9739 |
9766 /** @domName Document.body */ | 9740 /** @domName Document.body */ |
9767 BodyElement get body => document.$dom_body; | 9741 BodyElement get body => document.$dom_body; |
9768 | 9742 |
9769 /** @domName Document.body */ | 9743 /** @domName Document.body */ |
9770 void set body(BodyElement value) { | 9744 void set body(BodyElement value) { |
9771 document.$dom_body = value; | 9745 document.$dom_body = value; |
9772 } | 9746 } |
9773 | 9747 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9855 _HttpRequestFactoryProvider.createHttpRequest_get(url, onComplete); | 9829 _HttpRequestFactoryProvider.createHttpRequest_get(url, onComplete); |
9856 | 9830 |
9857 factory HttpRequest.getWithCredentials(String url, | 9831 factory HttpRequest.getWithCredentials(String url, |
9858 onComplete(HttpRequest request)) => | 9832 onComplete(HttpRequest request)) => |
9859 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, | 9833 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, |
9860 onComplete); | 9834 onComplete); |
9861 | 9835 |
9862 | 9836 |
9863 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); | 9837 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); |
9864 | 9838 |
9865 /** | 9839 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
9866 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
9867 */ | |
9868 HttpRequestEvents get on => | 9840 HttpRequestEvents get on => |
9869 new HttpRequestEvents(this); | 9841 new HttpRequestEvents(this); |
9870 | 9842 |
9871 static const int DONE = 4; | 9843 static const int DONE = 4; |
9872 | 9844 |
9873 static const int HEADERS_RECEIVED = 2; | 9845 static const int HEADERS_RECEIVED = 2; |
9874 | 9846 |
9875 static const int LOADING = 3; | 9847 static const int LOADING = 3; |
9876 | 9848 |
9877 static const int OPENED = 1; | 9849 static const int OPENED = 1; |
9878 | 9850 |
9879 static const int UNSENT = 0; | 9851 static const int UNSENT = 0; |
9880 | 9852 |
9881 /** @domName XMLHttpRequest.readyState; @docsEditable true */ | 9853 /// @domName XMLHttpRequest.readyState; @docsEditable true |
9882 final int readyState; | 9854 final int readyState; |
9883 | 9855 |
9884 /** @domName XMLHttpRequest.response; @docsEditable true */ | 9856 /// @domName XMLHttpRequest.response; @docsEditable true |
9885 @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num') | 9857 @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num') |
9886 final Object response; | 9858 final Object response; |
9887 | 9859 |
9888 /** @domName XMLHttpRequest.responseText; @docsEditable true */ | 9860 /// @domName XMLHttpRequest.responseText; @docsEditable true |
9889 final String responseText; | 9861 final String responseText; |
9890 | 9862 |
9891 /** @domName XMLHttpRequest.responseType; @docsEditable true */ | 9863 /// @domName XMLHttpRequest.responseType; @docsEditable true |
9892 String responseType; | 9864 String responseType; |
9893 | 9865 |
9894 /** @domName XMLHttpRequest.responseXML; @docsEditable true */ | 9866 /// @domName XMLHttpRequest.responseXML; @docsEditable true |
9895 final Document responseXML; | 9867 final Document responseXML; |
9896 | 9868 |
9897 /** @domName XMLHttpRequest.status; @docsEditable true */ | 9869 /// @domName XMLHttpRequest.status; @docsEditable true |
9898 final int status; | 9870 final int status; |
9899 | 9871 |
9900 /** @domName XMLHttpRequest.statusText; @docsEditable true */ | 9872 /// @domName XMLHttpRequest.statusText; @docsEditable true |
9901 final String statusText; | 9873 final String statusText; |
9902 | 9874 |
9903 /** @domName XMLHttpRequest.upload; @docsEditable true */ | 9875 /// @domName XMLHttpRequest.upload; @docsEditable true |
9904 final HttpRequestUpload upload; | 9876 final HttpRequestUpload upload; |
9905 | 9877 |
9906 /** @domName XMLHttpRequest.withCredentials; @docsEditable true */ | 9878 /// @domName XMLHttpRequest.withCredentials; @docsEditable true |
9907 bool withCredentials; | 9879 bool withCredentials; |
9908 | 9880 |
9909 /** @domName XMLHttpRequest.abort; @docsEditable true */ | 9881 /// @domName XMLHttpRequest.abort; @docsEditable true |
9910 void abort() native; | 9882 void abort() native; |
9911 | 9883 |
9912 /** @domName XMLHttpRequest.addEventListener; @docsEditable true */ | 9884 /// @domName XMLHttpRequest.addEventListener; @docsEditable true |
9913 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 9885 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
9914 | 9886 |
9915 /** @domName XMLHttpRequest.dispatchEvent; @docsEditable true */ | 9887 /// @domName XMLHttpRequest.dispatchEvent; @docsEditable true |
9916 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 9888 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
9917 | 9889 |
9918 /** @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true */ | 9890 /// @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true |
9919 String getAllResponseHeaders() native; | 9891 String getAllResponseHeaders() native; |
9920 | 9892 |
9921 /** @domName XMLHttpRequest.getResponseHeader; @docsEditable true */ | 9893 /// @domName XMLHttpRequest.getResponseHeader; @docsEditable true |
9922 String getResponseHeader(String header) native; | 9894 String getResponseHeader(String header) native; |
9923 | 9895 |
9924 /** @domName XMLHttpRequest.open; @docsEditable true */ | 9896 /// @domName XMLHttpRequest.open; @docsEditable true |
9925 void open(String method, String url, [bool async, String user, String password
]) native; | 9897 void open(String method, String url, [bool async, String user, String password
]) native; |
9926 | 9898 |
9927 /** @domName XMLHttpRequest.overrideMimeType; @docsEditable true */ | 9899 /// @domName XMLHttpRequest.overrideMimeType; @docsEditable true |
9928 void overrideMimeType(String override) native; | 9900 void overrideMimeType(String override) native; |
9929 | 9901 |
9930 /** @domName XMLHttpRequest.removeEventListener; @docsEditable true */ | 9902 /// @domName XMLHttpRequest.removeEventListener; @docsEditable true |
9931 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 9903 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
9932 | 9904 |
9933 /** @domName XMLHttpRequest.send; @docsEditable true */ | 9905 /// @domName XMLHttpRequest.send; @docsEditable true |
9934 void send([data]) native; | 9906 void send([data]) native; |
9935 | 9907 |
9936 /** @domName XMLHttpRequest.setRequestHeader; @docsEditable true */ | 9908 /// @domName XMLHttpRequest.setRequestHeader; @docsEditable true |
9937 void setRequestHeader(String header, String value) native; | 9909 void setRequestHeader(String header, String value) native; |
9938 | 9910 |
9939 } | 9911 } |
9940 | 9912 |
9941 class HttpRequestEvents extends Events { | 9913 class HttpRequestEvents extends Events { |
9942 HttpRequestEvents(EventTarget _ptr) : super(_ptr); | 9914 HttpRequestEvents(EventTarget _ptr) : super(_ptr); |
9943 | 9915 |
9944 EventListenerList get abort => this['abort']; | 9916 EventListenerList get abort => this['abort']; |
9945 | 9917 |
9946 EventListenerList get error => this['error']; | 9918 EventListenerList get error => this['error']; |
(...skipping 13 matching lines...) Expand all Loading... |
9960 // BSD-style license that can be found in the LICENSE file. | 9932 // BSD-style license that can be found in the LICENSE file. |
9961 | 9933 |
9962 | 9934 |
9963 /// @domName XMLHttpRequestException; @docsEditable true | 9935 /// @domName XMLHttpRequestException; @docsEditable true |
9964 class HttpRequestException native "*XMLHttpRequestException" { | 9936 class HttpRequestException native "*XMLHttpRequestException" { |
9965 | 9937 |
9966 static const int ABORT_ERR = 102; | 9938 static const int ABORT_ERR = 102; |
9967 | 9939 |
9968 static const int NETWORK_ERR = 101; | 9940 static const int NETWORK_ERR = 101; |
9969 | 9941 |
9970 /** @domName XMLHttpRequestException.code; @docsEditable true */ | 9942 /// @domName XMLHttpRequestException.code; @docsEditable true |
9971 final int code; | 9943 final int code; |
9972 | 9944 |
9973 /** @domName XMLHttpRequestException.message; @docsEditable true */ | 9945 /// @domName XMLHttpRequestException.message; @docsEditable true |
9974 final String message; | 9946 final String message; |
9975 | 9947 |
9976 /** @domName XMLHttpRequestException.name; @docsEditable true */ | 9948 /// @domName XMLHttpRequestException.name; @docsEditable true |
9977 final String name; | 9949 final String name; |
9978 | 9950 |
9979 /** @domName XMLHttpRequestException.toString; @docsEditable true */ | 9951 /// @domName XMLHttpRequestException.toString; @docsEditable true |
9980 String toString() native; | 9952 String toString() native; |
9981 } | 9953 } |
9982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9983 // for details. All rights reserved. Use of this source code is governed by a | 9955 // for details. All rights reserved. Use of this source code is governed by a |
9984 // BSD-style license that can be found in the LICENSE file. | 9956 // BSD-style license that can be found in the LICENSE file. |
9985 | 9957 |
9986 | 9958 |
9987 /// @domName XMLHttpRequestProgressEvent; @docsEditable true | 9959 /// @domName XMLHttpRequestProgressEvent; @docsEditable true |
9988 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg
ressEvent" { | 9960 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg
ressEvent" { |
9989 | 9961 |
9990 /** @domName XMLHttpRequestProgressEvent.position; @docsEditable true */ | 9962 /// @domName XMLHttpRequestProgressEvent.position; @docsEditable true |
9991 final int position; | 9963 final int position; |
9992 | 9964 |
9993 /** @domName XMLHttpRequestProgressEvent.totalSize; @docsEditable true */ | 9965 /// @domName XMLHttpRequestProgressEvent.totalSize; @docsEditable true |
9994 final int totalSize; | 9966 final int totalSize; |
9995 } | 9967 } |
9996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9997 // for details. All rights reserved. Use of this source code is governed by a | 9969 // for details. All rights reserved. Use of this source code is governed by a |
9998 // BSD-style license that can be found in the LICENSE file. | 9970 // BSD-style license that can be found in the LICENSE file. |
9999 | 9971 |
10000 | 9972 |
10001 /// @domName XMLHttpRequestUpload; @docsEditable true | 9973 /// @domName XMLHttpRequestUpload; @docsEditable true |
10002 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { | 9974 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { |
10003 | 9975 |
10004 /** | 9976 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
10005 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
10006 */ | |
10007 HttpRequestUploadEvents get on => | 9977 HttpRequestUploadEvents get on => |
10008 new HttpRequestUploadEvents(this); | 9978 new HttpRequestUploadEvents(this); |
10009 | 9979 |
10010 /** @domName XMLHttpRequestUpload.addEventListener; @docsEditable true */ | 9980 /// @domName XMLHttpRequestUpload.addEventListener; @docsEditable true |
10011 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 9981 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
10012 | 9982 |
10013 /** @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true */ | 9983 /// @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true |
10014 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 9984 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
10015 | 9985 |
10016 /** @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true */ | 9986 /// @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true |
10017 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 9987 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
10018 } | 9988 } |
10019 | 9989 |
10020 class HttpRequestUploadEvents extends Events { | 9990 class HttpRequestUploadEvents extends Events { |
10021 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); | 9991 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); |
10022 | 9992 |
10023 EventListenerList get abort => this['abort']; | 9993 EventListenerList get abort => this['abort']; |
10024 | 9994 |
10025 EventListenerList get error => this['error']; | 9995 EventListenerList get error => this['error']; |
10026 | 9996 |
(...skipping 22 matching lines...) Expand all Loading... |
10049 class IDBCursor native "*IDBCursor" { | 10019 class IDBCursor native "*IDBCursor" { |
10050 | 10020 |
10051 static const int NEXT = 0; | 10021 static const int NEXT = 0; |
10052 | 10022 |
10053 static const int NEXT_NO_DUPLICATE = 1; | 10023 static const int NEXT_NO_DUPLICATE = 1; |
10054 | 10024 |
10055 static const int PREV = 2; | 10025 static const int PREV = 2; |
10056 | 10026 |
10057 static const int PREV_NO_DUPLICATE = 3; | 10027 static const int PREV_NO_DUPLICATE = 3; |
10058 | 10028 |
10059 /** @domName IDBCursor.direction; @docsEditable true */ | 10029 /// @domName IDBCursor.direction; @docsEditable true |
10060 final String direction; | 10030 final String direction; |
10061 | 10031 |
10062 /** @domName IDBCursor.key; @docsEditable true */ | 10032 /// @domName IDBCursor.key; @docsEditable true |
10063 @_annotation_Creates_IDBKey @_annotation_Returns_IDBKey | 10033 @_annotation_Creates_IDBKey @_annotation_Returns_IDBKey |
10064 final Object key; | 10034 final Object key; |
10065 | 10035 |
10066 /** @domName IDBCursor.primaryKey; @docsEditable true */ | 10036 /// @domName IDBCursor.primaryKey; @docsEditable true |
10067 final Object primaryKey; | 10037 final Object primaryKey; |
10068 | 10038 |
10069 /** @domName IDBCursor.source; @docsEditable true */ | 10039 /// @domName IDBCursor.source; @docsEditable true |
10070 final dynamic source; | 10040 final dynamic source; |
10071 | 10041 |
10072 /** @domName IDBCursor.advance; @docsEditable true */ | 10042 /// @domName IDBCursor.advance; @docsEditable true |
10073 void advance(int count) native; | 10043 void advance(int count) native; |
10074 | 10044 |
10075 /** @domName IDBCursor.continueFunction; @docsEditable true */ | 10045 /// @domName IDBCursor.continueFunction; @docsEditable true |
10076 void continueFunction([/*IDBKey*/ key]) { | 10046 void continueFunction([/*IDBKey*/ key]) { |
10077 if (?key) { | 10047 if (?key) { |
10078 var key_1 = _convertDartToNative_IDBKey(key); | 10048 var key_1 = _convertDartToNative_IDBKey(key); |
10079 _continueFunction_1(key_1); | 10049 _continueFunction_1(key_1); |
10080 return; | 10050 return; |
10081 } | 10051 } |
10082 _continueFunction_2(); | 10052 _continueFunction_2(); |
10083 return; | 10053 return; |
10084 } | 10054 } |
10085 void _continueFunction_1(key) native "continue"; | 10055 void _continueFunction_1(key) native "continue"; |
10086 void _continueFunction_2() native "continue"; | 10056 void _continueFunction_2() native "continue"; |
10087 | 10057 |
10088 /** @domName IDBCursor.delete; @docsEditable true */ | 10058 /// @domName IDBCursor.delete; @docsEditable true |
10089 IDBRequest delete() native; | 10059 IDBRequest delete() native; |
10090 | 10060 |
10091 /** @domName IDBCursor.update; @docsEditable true */ | 10061 /// @domName IDBCursor.update; @docsEditable true |
10092 IDBRequest update(/*any*/ value) { | 10062 IDBRequest update(/*any*/ value) { |
10093 var value_1 = _convertDartToNative_SerializedScriptValue(value); | 10063 var value_1 = _convertDartToNative_SerializedScriptValue(value); |
10094 return _update_1(value_1); | 10064 return _update_1(value_1); |
10095 } | 10065 } |
10096 IDBRequest _update_1(value) native "update"; | 10066 IDBRequest _update_1(value) native "update"; |
10097 } | 10067 } |
10098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10099 // for details. All rights reserved. Use of this source code is governed by a | 10069 // for details. All rights reserved. Use of this source code is governed by a |
10100 // BSD-style license that can be found in the LICENSE file. | 10070 // BSD-style license that can be found in the LICENSE file. |
10101 | 10071 |
10102 | 10072 |
10103 /// @domName IDBCursorWithValue; @docsEditable true | 10073 /// @domName IDBCursorWithValue; @docsEditable true |
10104 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { | 10074 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { |
10105 | 10075 |
10106 /** @domName IDBCursorWithValue.value; @docsEditable true */ | 10076 /// @domName IDBCursorWithValue.value; @docsEditable true |
10107 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri
ptValue | 10077 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri
ptValue |
10108 final Object value; | 10078 final Object value; |
10109 } | 10079 } |
10110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10111 // for details. All rights reserved. Use of this source code is governed by a | 10081 // for details. All rights reserved. Use of this source code is governed by a |
10112 // BSD-style license that can be found in the LICENSE file. | 10082 // BSD-style license that can be found in the LICENSE file. |
10113 | 10083 |
10114 | 10084 |
10115 class IDBDatabase extends EventTarget native "*IDBDatabase" { | 10085 class IDBDatabase extends EventTarget native "*IDBDatabase" { |
10116 | 10086 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10149 if (mode == 'readwrite') intMode = IDBTransaction.READ_WRITE; | 10119 if (mode == 'readwrite') intMode = IDBTransaction.READ_WRITE; |
10150 return db._transaction(stores, intMode); | 10120 return db._transaction(stores, intMode); |
10151 } | 10121 } |
10152 | 10122 |
10153 IDBTransaction _transaction(stores, mode) native 'transaction'; | 10123 IDBTransaction _transaction(stores, mode) native 'transaction'; |
10154 | 10124 |
10155 static bool _hasNumericMode(txn) => | 10125 static bool _hasNumericMode(txn) => |
10156 JS('bool', 'typeof(#.mode) === "number"', txn); | 10126 JS('bool', 'typeof(#.mode) === "number"', txn); |
10157 | 10127 |
10158 | 10128 |
10159 /** | 10129 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
10160 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
10161 */ | |
10162 IDBDatabaseEvents get on => | 10130 IDBDatabaseEvents get on => |
10163 new IDBDatabaseEvents(this); | 10131 new IDBDatabaseEvents(this); |
10164 | 10132 |
10165 /** @domName IDBDatabase.name; @docsEditable true */ | 10133 /// @domName IDBDatabase.name; @docsEditable true |
10166 final String name; | 10134 final String name; |
10167 | 10135 |
10168 /** @domName IDBDatabase.objectStoreNames; @docsEditable true */ | 10136 /// @domName IDBDatabase.objectStoreNames; @docsEditable true |
10169 @Returns('_DOMStringList') @Creates('_DOMStringList') | 10137 @Returns('_DOMStringList') @Creates('_DOMStringList') |
10170 final List<String> objectStoreNames; | 10138 final List<String> objectStoreNames; |
10171 | 10139 |
10172 /** @domName IDBDatabase.version; @docsEditable true */ | 10140 /// @domName IDBDatabase.version; @docsEditable true |
10173 final dynamic version; | 10141 final dynamic version; |
10174 | 10142 |
10175 /** @domName IDBDatabase.addEventListener; @docsEditable true */ | 10143 /// @domName IDBDatabase.addEventListener; @docsEditable true |
10176 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 10144 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
10177 | 10145 |
10178 /** @domName IDBDatabase.close; @docsEditable true */ | 10146 /// @domName IDBDatabase.close; @docsEditable true |
10179 void close() native; | 10147 void close() native; |
10180 | 10148 |
10181 /** @domName IDBDatabase.createObjectStore; @docsEditable true */ | 10149 /// @domName IDBDatabase.createObjectStore; @docsEditable true |
10182 IDBObjectStore createObjectStore(String name, [Map options]) { | 10150 IDBObjectStore createObjectStore(String name, [Map options]) { |
10183 if (?options) { | 10151 if (?options) { |
10184 var options_1 = _convertDartToNative_Dictionary(options); | 10152 var options_1 = _convertDartToNative_Dictionary(options); |
10185 return _createObjectStore_1(name, options_1); | 10153 return _createObjectStore_1(name, options_1); |
10186 } | 10154 } |
10187 return _createObjectStore_2(name); | 10155 return _createObjectStore_2(name); |
10188 } | 10156 } |
10189 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; | 10157 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; |
10190 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; | 10158 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; |
10191 | 10159 |
10192 /** @domName IDBDatabase.deleteObjectStore; @docsEditable true */ | 10160 /// @domName IDBDatabase.deleteObjectStore; @docsEditable true |
10193 void deleteObjectStore(String name) native; | 10161 void deleteObjectStore(String name) native; |
10194 | 10162 |
10195 /** @domName IDBDatabase.dispatchEvent; @docsEditable true */ | 10163 /// @domName IDBDatabase.dispatchEvent; @docsEditable true |
10196 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 10164 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
10197 | 10165 |
10198 /** @domName IDBDatabase.removeEventListener; @docsEditable true */ | 10166 /// @domName IDBDatabase.removeEventListener; @docsEditable true |
10199 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 10167 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
10200 | 10168 |
10201 /** @domName IDBDatabase.setVersion; @docsEditable true */ | 10169 /// @domName IDBDatabase.setVersion; @docsEditable true |
10202 IDBVersionChangeRequest setVersion(String version) native; | 10170 IDBVersionChangeRequest setVersion(String version) native; |
10203 } | 10171 } |
10204 | 10172 |
10205 // TODO(sra): This should be a static member of IDBTransaction but dart2js | 10173 // TODO(sra): This should be a static member of IDBTransaction but dart2js |
10206 // can't handle that. Move it back after dart2js is completely done. | 10174 // can't handle that. Move it back after dart2js is completely done. |
10207 var _transaction_fn; // Assigned one of the static methods. | 10175 var _transaction_fn; // Assigned one of the static methods. |
10208 | 10176 |
10209 class IDBDatabaseEvents extends Events { | 10177 class IDBDatabaseEvents extends Events { |
10210 IDBDatabaseEvents(EventTarget _ptr) : super(_ptr); | 10178 IDBDatabaseEvents(EventTarget _ptr) : super(_ptr); |
10211 | 10179 |
(...skipping 30 matching lines...) Expand all Loading... |
10242 static const int READ_ONLY_ERR = 9; | 10210 static const int READ_ONLY_ERR = 9; |
10243 | 10211 |
10244 static const int TIMEOUT_ERR = 23; | 10212 static const int TIMEOUT_ERR = 23; |
10245 | 10213 |
10246 static const int TRANSACTION_INACTIVE_ERR = 7; | 10214 static const int TRANSACTION_INACTIVE_ERR = 7; |
10247 | 10215 |
10248 static const int UNKNOWN_ERR = 1; | 10216 static const int UNKNOWN_ERR = 1; |
10249 | 10217 |
10250 static const int VER_ERR = 12; | 10218 static const int VER_ERR = 12; |
10251 | 10219 |
10252 /** @domName IDBDatabaseException.code; @docsEditable true */ | 10220 /// @domName IDBDatabaseException.code; @docsEditable true |
10253 final int code; | 10221 final int code; |
10254 | 10222 |
10255 /** @domName IDBDatabaseException.message; @docsEditable true */ | 10223 /// @domName IDBDatabaseException.message; @docsEditable true |
10256 final String message; | 10224 final String message; |
10257 | 10225 |
10258 /** @domName IDBDatabaseException.name; @docsEditable true */ | 10226 /// @domName IDBDatabaseException.name; @docsEditable true |
10259 final String name; | 10227 final String name; |
10260 | 10228 |
10261 /** @domName IDBDatabaseException.toString; @docsEditable true */ | 10229 /// @domName IDBDatabaseException.toString; @docsEditable true |
10262 String toString() native; | 10230 String toString() native; |
10263 } | 10231 } |
10264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10265 // for details. All rights reserved. Use of this source code is governed by a | 10233 // for details. All rights reserved. Use of this source code is governed by a |
10266 // BSD-style license that can be found in the LICENSE file. | 10234 // BSD-style license that can be found in the LICENSE file. |
10267 | 10235 |
10268 | 10236 |
10269 /// @domName IDBFactory; @docsEditable true | 10237 /// @domName IDBFactory; @docsEditable true |
10270 class IDBFactory native "*IDBFactory" { | 10238 class IDBFactory native "*IDBFactory" { |
10271 | 10239 |
10272 /** @domName IDBFactory.cmp; @docsEditable true */ | 10240 /// @domName IDBFactory.cmp; @docsEditable true |
10273 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { | 10241 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { |
10274 var first_1 = _convertDartToNative_IDBKey(first); | 10242 var first_1 = _convertDartToNative_IDBKey(first); |
10275 var second_2 = _convertDartToNative_IDBKey(second); | 10243 var second_2 = _convertDartToNative_IDBKey(second); |
10276 return _cmp_1(first_1, second_2); | 10244 return _cmp_1(first_1, second_2); |
10277 } | 10245 } |
10278 int _cmp_1(first, second) native "cmp"; | 10246 int _cmp_1(first, second) native "cmp"; |
10279 | 10247 |
10280 /** @domName IDBFactory.deleteDatabase; @docsEditable true */ | 10248 /// @domName IDBFactory.deleteDatabase; @docsEditable true |
10281 IDBVersionChangeRequest deleteDatabase(String name) native; | 10249 IDBVersionChangeRequest deleteDatabase(String name) native; |
10282 | 10250 |
10283 /** @domName IDBFactory.open; @docsEditable true */ | 10251 /// @domName IDBFactory.open; @docsEditable true |
10284 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBDatabase') | 10252 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBDatabase') |
10285 IDBOpenDBRequest open(String name, [int version]) native; | 10253 IDBOpenDBRequest open(String name, [int version]) native; |
10286 | 10254 |
10287 /** @domName IDBFactory.webkitGetDatabaseNames; @docsEditable true */ | 10255 /// @domName IDBFactory.webkitGetDatabaseNames; @docsEditable true |
10288 IDBRequest webkitGetDatabaseNames() native; | 10256 IDBRequest webkitGetDatabaseNames() native; |
10289 } | 10257 } |
10290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10291 // for details. All rights reserved. Use of this source code is governed by a | 10259 // for details. All rights reserved. Use of this source code is governed by a |
10292 // BSD-style license that can be found in the LICENSE file. | 10260 // BSD-style license that can be found in the LICENSE file. |
10293 | 10261 |
10294 | 10262 |
10295 /// @domName IDBIndex; @docsEditable true | 10263 /// @domName IDBIndex; @docsEditable true |
10296 class IDBIndex native "*IDBIndex" { | 10264 class IDBIndex native "*IDBIndex" { |
10297 | 10265 |
10298 /** @domName IDBIndex.keyPath; @docsEditable true */ | 10266 /// @domName IDBIndex.keyPath; @docsEditable true |
10299 final dynamic keyPath; | 10267 final dynamic keyPath; |
10300 | 10268 |
10301 /** @domName IDBIndex.multiEntry; @docsEditable true */ | 10269 /// @domName IDBIndex.multiEntry; @docsEditable true |
10302 final bool multiEntry; | 10270 final bool multiEntry; |
10303 | 10271 |
10304 /** @domName IDBIndex.name; @docsEditable true */ | 10272 /// @domName IDBIndex.name; @docsEditable true |
10305 final String name; | 10273 final String name; |
10306 | 10274 |
10307 /** @domName IDBIndex.objectStore; @docsEditable true */ | 10275 /// @domName IDBIndex.objectStore; @docsEditable true |
10308 final IDBObjectStore objectStore; | 10276 final IDBObjectStore objectStore; |
10309 | 10277 |
10310 /** @domName IDBIndex.unique; @docsEditable true */ | 10278 /// @domName IDBIndex.unique; @docsEditable true |
10311 final bool unique; | 10279 final bool unique; |
10312 | 10280 |
10313 /** @domName IDBIndex.count; @docsEditable true */ | 10281 /// @domName IDBIndex.count; @docsEditable true |
10314 IDBRequest count([key_OR_range]) { | 10282 IDBRequest count([key_OR_range]) { |
10315 if (!?key_OR_range) { | 10283 if (!?key_OR_range) { |
10316 return _count_1(); | 10284 return _count_1(); |
10317 } | 10285 } |
10318 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { | 10286 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { |
10319 return _count_2(key_OR_range); | 10287 return _count_2(key_OR_range); |
10320 } | 10288 } |
10321 if (?key_OR_range) { | 10289 if (?key_OR_range) { |
10322 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 10290 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
10323 return _count_3(key_1); | 10291 return _count_3(key_1); |
10324 } | 10292 } |
10325 throw new ArgumentError("Incorrect number or type of arguments"); | 10293 throw new ArgumentError("Incorrect number or type of arguments"); |
10326 } | 10294 } |
10327 IDBRequest _count_1() native "count"; | 10295 IDBRequest _count_1() native "count"; |
10328 IDBRequest _count_2(IDBKeyRange range) native "count"; | 10296 IDBRequest _count_2(IDBKeyRange range) native "count"; |
10329 IDBRequest _count_3(key) native "count"; | 10297 IDBRequest _count_3(key) native "count"; |
10330 | 10298 |
10331 /** @domName IDBIndex.get; @docsEditable true */ | 10299 /// @domName IDBIndex.get; @docsEditable true |
10332 IDBRequest get(key) { | 10300 IDBRequest get(key) { |
10333 if ((?key && (key is IDBKeyRange || key == null))) { | 10301 if ((?key && (key is IDBKeyRange || key == null))) { |
10334 return _get_1(key); | 10302 return _get_1(key); |
10335 } | 10303 } |
10336 if (?key) { | 10304 if (?key) { |
10337 var key_1 = _convertDartToNative_IDBKey(key); | 10305 var key_1 = _convertDartToNative_IDBKey(key); |
10338 return _get_2(key_1); | 10306 return _get_2(key_1); |
10339 } | 10307 } |
10340 throw new ArgumentError("Incorrect number or type of arguments"); | 10308 throw new ArgumentError("Incorrect number or type of arguments"); |
10341 } | 10309 } |
10342 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10310 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue |
10343 IDBRequest _get_1(IDBKeyRange key) native "get"; | 10311 IDBRequest _get_1(IDBKeyRange key) native "get"; |
10344 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10312 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue |
10345 IDBRequest _get_2(key) native "get"; | 10313 IDBRequest _get_2(key) native "get"; |
10346 | 10314 |
10347 /** @domName IDBIndex.getKey; @docsEditable true */ | 10315 /// @domName IDBIndex.getKey; @docsEditable true |
10348 IDBRequest getKey(key) { | 10316 IDBRequest getKey(key) { |
10349 if ((?key && (key is IDBKeyRange || key == null))) { | 10317 if ((?key && (key is IDBKeyRange || key == null))) { |
10350 return _getKey_1(key); | 10318 return _getKey_1(key); |
10351 } | 10319 } |
10352 if (?key) { | 10320 if (?key) { |
10353 var key_1 = _convertDartToNative_IDBKey(key); | 10321 var key_1 = _convertDartToNative_IDBKey(key); |
10354 return _getKey_2(key_1); | 10322 return _getKey_2(key_1); |
10355 } | 10323 } |
10356 throw new ArgumentError("Incorrect number or type of arguments"); | 10324 throw new ArgumentError("Incorrect number or type of arguments"); |
10357 } | 10325 } |
10358 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue @Creates('IDBObjectStore') | 10326 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue @Creates('IDBObjectStore') |
10359 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; | 10327 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; |
10360 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue @Creates('IDBObjectStore') | 10328 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue @Creates('IDBObjectStore') |
10361 IDBRequest _getKey_2(key) native "getKey"; | 10329 IDBRequest _getKey_2(key) native "getKey"; |
10362 | 10330 |
10363 /** @domName IDBIndex.openCursor; @docsEditable true */ | 10331 /// @domName IDBIndex.openCursor; @docsEditable true |
10364 IDBRequest openCursor([key_OR_range, String direction]) { | 10332 IDBRequest openCursor([key_OR_range, String direction]) { |
10365 if (!?key_OR_range && | 10333 if (!?key_OR_range && |
10366 !?direction) { | 10334 !?direction) { |
10367 return _openCursor_1(); | 10335 return _openCursor_1(); |
10368 } | 10336 } |
10369 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& | 10337 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& |
10370 !?direction) { | 10338 !?direction) { |
10371 return _openCursor_2(key_OR_range); | 10339 return _openCursor_2(key_OR_range); |
10372 } | 10340 } |
10373 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { | 10341 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { |
(...skipping 14 matching lines...) Expand all Loading... |
10388 IDBRequest _openCursor_1() native "openCursor"; | 10356 IDBRequest _openCursor_1() native "openCursor"; |
10389 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10357 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10390 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; | 10358 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; |
10391 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10359 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10392 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; | 10360 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; |
10393 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10361 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10394 IDBRequest _openCursor_4(key) native "openCursor"; | 10362 IDBRequest _openCursor_4(key) native "openCursor"; |
10395 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10363 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10396 IDBRequest _openCursor_5(key, direction) native "openCursor"; | 10364 IDBRequest _openCursor_5(key, direction) native "openCursor"; |
10397 | 10365 |
10398 /** @domName IDBIndex.openKeyCursor; @docsEditable true */ | 10366 /// @domName IDBIndex.openKeyCursor; @docsEditable true |
10399 IDBRequest openKeyCursor([key_OR_range, String direction]) { | 10367 IDBRequest openKeyCursor([key_OR_range, String direction]) { |
10400 if (!?key_OR_range && | 10368 if (!?key_OR_range && |
10401 !?direction) { | 10369 !?direction) { |
10402 return _openKeyCursor_1(); | 10370 return _openKeyCursor_1(); |
10403 } | 10371 } |
10404 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& | 10372 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& |
10405 !?direction) { | 10373 !?direction) { |
10406 return _openKeyCursor_2(key_OR_range); | 10374 return _openKeyCursor_2(key_OR_range); |
10407 } | 10375 } |
10408 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { | 10376 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10464 | 10432 |
10465 /** | 10433 /** |
10466 * @domName IDBKeyRange.bound | 10434 * @domName IDBKeyRange.bound |
10467 */ | 10435 */ |
10468 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, | 10436 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, |
10469 [bool lowerOpen = false, bool upperOpen = false]) => | 10437 [bool lowerOpen = false, bool upperOpen = false]) => |
10470 _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound( | 10438 _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound( |
10471 lower, upper, lowerOpen, upperOpen); | 10439 lower, upper, lowerOpen, upperOpen); |
10472 | 10440 |
10473 | 10441 |
10474 /** @domName IDBKeyRange.lower; @docsEditable true */ | 10442 /// @domName IDBKeyRange.lower; @docsEditable true |
10475 dynamic get lower => _convertNativeToDart_IDBKey(this._lower); | 10443 dynamic get lower => _convertNativeToDart_IDBKey(this._lower); |
10476 dynamic get _lower => JS("dynamic", "#.lower", this); | 10444 dynamic get _lower => JS("dynamic", "#.lower", this); |
10477 | 10445 |
10478 /** @domName IDBKeyRange.lowerOpen; @docsEditable true */ | 10446 /// @domName IDBKeyRange.lowerOpen; @docsEditable true |
10479 final bool lowerOpen; | 10447 final bool lowerOpen; |
10480 | 10448 |
10481 /** @domName IDBKeyRange.upper; @docsEditable true */ | 10449 /// @domName IDBKeyRange.upper; @docsEditable true |
10482 dynamic get upper => _convertNativeToDart_IDBKey(this._upper); | 10450 dynamic get upper => _convertNativeToDart_IDBKey(this._upper); |
10483 dynamic get _upper => JS("dynamic", "#.upper", this); | 10451 dynamic get _upper => JS("dynamic", "#.upper", this); |
10484 | 10452 |
10485 /** @domName IDBKeyRange.upperOpen; @docsEditable true */ | 10453 /// @domName IDBKeyRange.upperOpen; @docsEditable true |
10486 final bool upperOpen; | 10454 final bool upperOpen; |
10487 | 10455 |
10488 /** @domName IDBKeyRange.bound_; @docsEditable true */ | 10456 /// @domName IDBKeyRange.bound_; @docsEditable true |
10489 static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen,
bool upperOpen]) { | 10457 static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen,
bool upperOpen]) { |
10490 if (?upperOpen) { | 10458 if (?upperOpen) { |
10491 var lower_1 = _convertDartToNative_IDBKey(lower); | 10459 var lower_1 = _convertDartToNative_IDBKey(lower); |
10492 var upper_2 = _convertDartToNative_IDBKey(upper); | 10460 var upper_2 = _convertDartToNative_IDBKey(upper); |
10493 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); | 10461 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); |
10494 } | 10462 } |
10495 if (?lowerOpen) { | 10463 if (?lowerOpen) { |
10496 var lower_3 = _convertDartToNative_IDBKey(lower); | 10464 var lower_3 = _convertDartToNative_IDBKey(lower); |
10497 var upper_4 = _convertDartToNative_IDBKey(upper); | 10465 var upper_4 = _convertDartToNative_IDBKey(upper); |
10498 return _bound__2(lower_3, upper_4, lowerOpen); | 10466 return _bound__2(lower_3, upper_4, lowerOpen); |
10499 } | 10467 } |
10500 var lower_5 = _convertDartToNative_IDBKey(lower); | 10468 var lower_5 = _convertDartToNative_IDBKey(lower); |
10501 var upper_6 = _convertDartToNative_IDBKey(upper); | 10469 var upper_6 = _convertDartToNative_IDBKey(upper); |
10502 return _bound__3(lower_5, upper_6); | 10470 return _bound__3(lower_5, upper_6); |
10503 } | 10471 } |
10504 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound
"; | 10472 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound
"; |
10505 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; | 10473 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; |
10506 static IDBKeyRange _bound__3(lower, upper) native "bound"; | 10474 static IDBKeyRange _bound__3(lower, upper) native "bound"; |
10507 | 10475 |
10508 /** @domName IDBKeyRange.lowerBound_; @docsEditable true */ | 10476 /// @domName IDBKeyRange.lowerBound_; @docsEditable true |
10509 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { | 10477 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { |
10510 if (?open) { | 10478 if (?open) { |
10511 var bound_1 = _convertDartToNative_IDBKey(bound); | 10479 var bound_1 = _convertDartToNative_IDBKey(bound); |
10512 return _lowerBound__1(bound_1, open); | 10480 return _lowerBound__1(bound_1, open); |
10513 } | 10481 } |
10514 var bound_2 = _convertDartToNative_IDBKey(bound); | 10482 var bound_2 = _convertDartToNative_IDBKey(bound); |
10515 return _lowerBound__2(bound_2); | 10483 return _lowerBound__2(bound_2); |
10516 } | 10484 } |
10517 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; | 10485 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; |
10518 static IDBKeyRange _lowerBound__2(bound) native "lowerBound"; | 10486 static IDBKeyRange _lowerBound__2(bound) native "lowerBound"; |
10519 | 10487 |
10520 /** @domName IDBKeyRange.only_; @docsEditable true */ | 10488 /// @domName IDBKeyRange.only_; @docsEditable true |
10521 static IDBKeyRange only_(/*IDBKey*/ value) { | 10489 static IDBKeyRange only_(/*IDBKey*/ value) { |
10522 var value_1 = _convertDartToNative_IDBKey(value); | 10490 var value_1 = _convertDartToNative_IDBKey(value); |
10523 return _only__1(value_1); | 10491 return _only__1(value_1); |
10524 } | 10492 } |
10525 static IDBKeyRange _only__1(value) native "only"; | 10493 static IDBKeyRange _only__1(value) native "only"; |
10526 | 10494 |
10527 /** @domName IDBKeyRange.upperBound_; @docsEditable true */ | 10495 /// @domName IDBKeyRange.upperBound_; @docsEditable true |
10528 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { | 10496 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { |
10529 if (?open) { | 10497 if (?open) { |
10530 var bound_1 = _convertDartToNative_IDBKey(bound); | 10498 var bound_1 = _convertDartToNative_IDBKey(bound); |
10531 return _upperBound__1(bound_1, open); | 10499 return _upperBound__1(bound_1, open); |
10532 } | 10500 } |
10533 var bound_2 = _convertDartToNative_IDBKey(bound); | 10501 var bound_2 = _convertDartToNative_IDBKey(bound); |
10534 return _upperBound__2(bound_2); | 10502 return _upperBound__2(bound_2); |
10535 } | 10503 } |
10536 static IDBKeyRange _upperBound__1(bound, open) native "upperBound"; | 10504 static IDBKeyRange _upperBound__1(bound, open) native "upperBound"; |
10537 static IDBKeyRange _upperBound__2(bound) native "upperBound"; | 10505 static IDBKeyRange _upperBound__2(bound) native "upperBound"; |
10538 | 10506 |
10539 } | 10507 } |
10540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10541 // for details. All rights reserved. Use of this source code is governed by a | 10509 // for details. All rights reserved. Use of this source code is governed by a |
10542 // BSD-style license that can be found in the LICENSE file. | 10510 // BSD-style license that can be found in the LICENSE file. |
10543 | 10511 |
10544 | 10512 |
10545 /// @domName IDBObjectStore; @docsEditable true | 10513 /// @domName IDBObjectStore; @docsEditable true |
10546 class IDBObjectStore native "*IDBObjectStore" { | 10514 class IDBObjectStore native "*IDBObjectStore" { |
10547 | 10515 |
10548 /** @domName IDBObjectStore.autoIncrement; @docsEditable true */ | 10516 /// @domName IDBObjectStore.autoIncrement; @docsEditable true |
10549 final bool autoIncrement; | 10517 final bool autoIncrement; |
10550 | 10518 |
10551 /** @domName IDBObjectStore.indexNames; @docsEditable true */ | 10519 /// @domName IDBObjectStore.indexNames; @docsEditable true |
10552 @Returns('_DOMStringList') @Creates('_DOMStringList') | 10520 @Returns('_DOMStringList') @Creates('_DOMStringList') |
10553 final List<String> indexNames; | 10521 final List<String> indexNames; |
10554 | 10522 |
10555 /** @domName IDBObjectStore.keyPath; @docsEditable true */ | 10523 /// @domName IDBObjectStore.keyPath; @docsEditable true |
10556 final dynamic keyPath; | 10524 final dynamic keyPath; |
10557 | 10525 |
10558 /** @domName IDBObjectStore.name; @docsEditable true */ | 10526 /// @domName IDBObjectStore.name; @docsEditable true |
10559 final String name; | 10527 final String name; |
10560 | 10528 |
10561 /** @domName IDBObjectStore.transaction; @docsEditable true */ | 10529 /// @domName IDBObjectStore.transaction; @docsEditable true |
10562 final IDBTransaction transaction; | 10530 final IDBTransaction transaction; |
10563 | 10531 |
10564 /** @domName IDBObjectStore.add; @docsEditable true */ | 10532 /// @domName IDBObjectStore.add; @docsEditable true |
10565 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { | 10533 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { |
10566 if (?key) { | 10534 if (?key) { |
10567 var value_1 = _convertDartToNative_SerializedScriptValue(value); | 10535 var value_1 = _convertDartToNative_SerializedScriptValue(value); |
10568 var key_2 = _convertDartToNative_IDBKey(key); | 10536 var key_2 = _convertDartToNative_IDBKey(key); |
10569 return _add_1(value_1, key_2); | 10537 return _add_1(value_1, key_2); |
10570 } | 10538 } |
10571 var value_3 = _convertDartToNative_SerializedScriptValue(value); | 10539 var value_3 = _convertDartToNative_SerializedScriptValue(value); |
10572 return _add_2(value_3); | 10540 return _add_2(value_3); |
10573 } | 10541 } |
10574 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10542 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
10575 IDBRequest _add_1(value, key) native "add"; | 10543 IDBRequest _add_1(value, key) native "add"; |
10576 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10544 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
10577 IDBRequest _add_2(value) native "add"; | 10545 IDBRequest _add_2(value) native "add"; |
10578 | 10546 |
10579 /** @domName IDBObjectStore.clear; @docsEditable true */ | 10547 /// @domName IDBObjectStore.clear; @docsEditable true |
10580 IDBRequest clear() native; | 10548 IDBRequest clear() native; |
10581 | 10549 |
10582 /** @domName IDBObjectStore.count; @docsEditable true */ | 10550 /// @domName IDBObjectStore.count; @docsEditable true |
10583 IDBRequest count([key_OR_range]) { | 10551 IDBRequest count([key_OR_range]) { |
10584 if (!?key_OR_range) { | 10552 if (!?key_OR_range) { |
10585 return _count_1(); | 10553 return _count_1(); |
10586 } | 10554 } |
10587 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { | 10555 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { |
10588 return _count_2(key_OR_range); | 10556 return _count_2(key_OR_range); |
10589 } | 10557 } |
10590 if (?key_OR_range) { | 10558 if (?key_OR_range) { |
10591 var key_1 = _convertDartToNative_IDBKey(key_OR_range); | 10559 var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
10592 return _count_3(key_1); | 10560 return _count_3(key_1); |
10593 } | 10561 } |
10594 throw new ArgumentError("Incorrect number or type of arguments"); | 10562 throw new ArgumentError("Incorrect number or type of arguments"); |
10595 } | 10563 } |
10596 IDBRequest _count_1() native "count"; | 10564 IDBRequest _count_1() native "count"; |
10597 IDBRequest _count_2(IDBKeyRange range) native "count"; | 10565 IDBRequest _count_2(IDBKeyRange range) native "count"; |
10598 IDBRequest _count_3(key) native "count"; | 10566 IDBRequest _count_3(key) native "count"; |
10599 | 10567 |
10600 /** @domName IDBObjectStore.createIndex; @docsEditable true */ | 10568 /// @domName IDBObjectStore.createIndex; @docsEditable true |
10601 IDBIndex createIndex(String name, keyPath, [Map options]) { | 10569 IDBIndex createIndex(String name, keyPath, [Map options]) { |
10602 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && | 10570 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && |
10603 !?options) { | 10571 !?options) { |
10604 List keyPath_1 = _convertDartToNative_StringArray(keyPath); | 10572 List keyPath_1 = _convertDartToNative_StringArray(keyPath); |
10605 return _createIndex_1(name, keyPath_1); | 10573 return _createIndex_1(name, keyPath_1); |
10606 } | 10574 } |
10607 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { | 10575 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { |
10608 List keyPath_2 = _convertDartToNative_StringArray(keyPath); | 10576 List keyPath_2 = _convertDartToNative_StringArray(keyPath); |
10609 var options_3 = _convertDartToNative_Dictionary(options); | 10577 var options_3 = _convertDartToNative_Dictionary(options); |
10610 return _createIndex_2(name, keyPath_2, options_3); | 10578 return _createIndex_2(name, keyPath_2, options_3); |
10611 } | 10579 } |
10612 if ((?keyPath && (keyPath is String || keyPath == null)) && | 10580 if ((?keyPath && (keyPath is String || keyPath == null)) && |
10613 !?options) { | 10581 !?options) { |
10614 return _createIndex_3(name, keyPath); | 10582 return _createIndex_3(name, keyPath); |
10615 } | 10583 } |
10616 if ((?keyPath && (keyPath is String || keyPath == null))) { | 10584 if ((?keyPath && (keyPath is String || keyPath == null))) { |
10617 var options_4 = _convertDartToNative_Dictionary(options); | 10585 var options_4 = _convertDartToNative_Dictionary(options); |
10618 return _createIndex_4(name, keyPath, options_4); | 10586 return _createIndex_4(name, keyPath, options_4); |
10619 } | 10587 } |
10620 throw new ArgumentError("Incorrect number or type of arguments"); | 10588 throw new ArgumentError("Incorrect number or type of arguments"); |
10621 } | 10589 } |
10622 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; | 10590 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; |
10623 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; | 10591 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; |
10624 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; | 10592 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; |
10625 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; | 10593 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; |
10626 | 10594 |
10627 /** @domName IDBObjectStore.delete; @docsEditable true */ | 10595 /// @domName IDBObjectStore.delete; @docsEditable true |
10628 IDBRequest delete(key_OR_keyRange) { | 10596 IDBRequest delete(key_OR_keyRange) { |
10629 if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange
== null))) { | 10597 if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange
== null))) { |
10630 return _delete_1(key_OR_keyRange); | 10598 return _delete_1(key_OR_keyRange); |
10631 } | 10599 } |
10632 if (?key_OR_keyRange) { | 10600 if (?key_OR_keyRange) { |
10633 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); | 10601 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); |
10634 return _delete_2(key_1); | 10602 return _delete_2(key_1); |
10635 } | 10603 } |
10636 throw new ArgumentError("Incorrect number or type of arguments"); | 10604 throw new ArgumentError("Incorrect number or type of arguments"); |
10637 } | 10605 } |
10638 IDBRequest _delete_1(IDBKeyRange keyRange) native "delete"; | 10606 IDBRequest _delete_1(IDBKeyRange keyRange) native "delete"; |
10639 IDBRequest _delete_2(key) native "delete"; | 10607 IDBRequest _delete_2(key) native "delete"; |
10640 | 10608 |
10641 /** @domName IDBObjectStore.deleteIndex; @docsEditable true */ | 10609 /// @domName IDBObjectStore.deleteIndex; @docsEditable true |
10642 void deleteIndex(String name) native; | 10610 void deleteIndex(String name) native; |
10643 | 10611 |
10644 /** @domName IDBObjectStore.getObject; @docsEditable true */ | 10612 /// @domName IDBObjectStore.getObject; @docsEditable true |
10645 IDBRequest getObject(key) { | 10613 IDBRequest getObject(key) { |
10646 if ((?key && (key is IDBKeyRange || key == null))) { | 10614 if ((?key && (key is IDBKeyRange || key == null))) { |
10647 return _getObject_1(key); | 10615 return _getObject_1(key); |
10648 } | 10616 } |
10649 if (?key) { | 10617 if (?key) { |
10650 var key_1 = _convertDartToNative_IDBKey(key); | 10618 var key_1 = _convertDartToNative_IDBKey(key); |
10651 return _getObject_2(key_1); | 10619 return _getObject_2(key_1); |
10652 } | 10620 } |
10653 throw new ArgumentError("Incorrect number or type of arguments"); | 10621 throw new ArgumentError("Incorrect number or type of arguments"); |
10654 } | 10622 } |
10655 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10623 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue |
10656 IDBRequest _getObject_1(IDBKeyRange key) native "get"; | 10624 IDBRequest _getObject_1(IDBKeyRange key) native "get"; |
10657 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10625 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue |
10658 IDBRequest _getObject_2(key) native "get"; | 10626 IDBRequest _getObject_2(key) native "get"; |
10659 | 10627 |
10660 /** @domName IDBObjectStore.index; @docsEditable true */ | 10628 /// @domName IDBObjectStore.index; @docsEditable true |
10661 IDBIndex index(String name) native; | 10629 IDBIndex index(String name) native; |
10662 | 10630 |
10663 /** @domName IDBObjectStore.openCursor; @docsEditable true */ | 10631 /// @domName IDBObjectStore.openCursor; @docsEditable true |
10664 IDBRequest openCursor([key_OR_range, String direction]) { | 10632 IDBRequest openCursor([key_OR_range, String direction]) { |
10665 if (!?key_OR_range && | 10633 if (!?key_OR_range && |
10666 !?direction) { | 10634 !?direction) { |
10667 return _openCursor_1(); | 10635 return _openCursor_1(); |
10668 } | 10636 } |
10669 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& | 10637 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& |
10670 !?direction) { | 10638 !?direction) { |
10671 return _openCursor_2(key_OR_range); | 10639 return _openCursor_2(key_OR_range); |
10672 } | 10640 } |
10673 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { | 10641 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
) { |
(...skipping 14 matching lines...) Expand all Loading... |
10688 IDBRequest _openCursor_1() native "openCursor"; | 10656 IDBRequest _openCursor_1() native "openCursor"; |
10689 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10657 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10690 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; | 10658 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; |
10691 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10659 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10692 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; | 10660 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; |
10693 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10661 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10694 IDBRequest _openCursor_4(key) native "openCursor"; | 10662 IDBRequest _openCursor_4(key) native "openCursor"; |
10695 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10663 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
10696 IDBRequest _openCursor_5(key, direction) native "openCursor"; | 10664 IDBRequest _openCursor_5(key, direction) native "openCursor"; |
10697 | 10665 |
10698 /** @domName IDBObjectStore.put; @docsEditable true */ | 10666 /// @domName IDBObjectStore.put; @docsEditable true |
10699 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { | 10667 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { |
10700 if (?key) { | 10668 if (?key) { |
10701 var value_1 = _convertDartToNative_SerializedScriptValue(value); | 10669 var value_1 = _convertDartToNative_SerializedScriptValue(value); |
10702 var key_2 = _convertDartToNative_IDBKey(key); | 10670 var key_2 = _convertDartToNative_IDBKey(key); |
10703 return _put_1(value_1, key_2); | 10671 return _put_1(value_1, key_2); |
10704 } | 10672 } |
10705 var value_3 = _convertDartToNative_SerializedScriptValue(value); | 10673 var value_3 = _convertDartToNative_SerializedScriptValue(value); |
10706 return _put_2(value_3); | 10674 return _put_2(value_3); |
10707 } | 10675 } |
10708 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10676 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
10709 IDBRequest _put_1(value, key) native "put"; | 10677 IDBRequest _put_1(value, key) native "put"; |
10710 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10678 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
10711 IDBRequest _put_2(value) native "put"; | 10679 IDBRequest _put_2(value) native "put"; |
10712 } | 10680 } |
10713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10714 // for details. All rights reserved. Use of this source code is governed by a | 10682 // for details. All rights reserved. Use of this source code is governed by a |
10715 // BSD-style license that can be found in the LICENSE file. | 10683 // BSD-style license that can be found in the LICENSE file. |
10716 | 10684 |
10717 | 10685 |
10718 /// @domName IDBOpenDBRequest; @docsEditable true | 10686 /// @domName IDBOpenDBRequest; @docsEditable true |
10719 class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpe
nDBRequest" { | 10687 class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpe
nDBRequest" { |
10720 | 10688 |
10721 /** | 10689 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
10722 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
10723 */ | |
10724 IDBOpenDBRequestEvents get on => | 10690 IDBOpenDBRequestEvents get on => |
10725 new IDBOpenDBRequestEvents(this); | 10691 new IDBOpenDBRequestEvents(this); |
10726 } | 10692 } |
10727 | 10693 |
10728 class IDBOpenDBRequestEvents extends IDBRequestEvents { | 10694 class IDBOpenDBRequestEvents extends IDBRequestEvents { |
10729 IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr); | 10695 IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr); |
10730 | 10696 |
10731 EventListenerList get blocked => this['blocked']; | 10697 EventListenerList get blocked => this['blocked']; |
10732 | 10698 |
10733 EventListenerList get upgradeNeeded => this['upgradeneeded']; | 10699 EventListenerList get upgradeNeeded => this['upgradeneeded']; |
10734 } | 10700 } |
10735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10736 // for details. All rights reserved. Use of this source code is governed by a | 10702 // for details. All rights reserved. Use of this source code is governed by a |
10737 // BSD-style license that can be found in the LICENSE file. | 10703 // BSD-style license that can be found in the LICENSE file. |
10738 | 10704 |
10739 | 10705 |
10740 /// @domName IDBRequest; @docsEditable true | 10706 /// @domName IDBRequest; @docsEditable true |
10741 class IDBRequest extends EventTarget native "*IDBRequest" { | 10707 class IDBRequest extends EventTarget native "*IDBRequest" { |
10742 | 10708 |
10743 /** | 10709 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
10744 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
10745 */ | |
10746 IDBRequestEvents get on => | 10710 IDBRequestEvents get on => |
10747 new IDBRequestEvents(this); | 10711 new IDBRequestEvents(this); |
10748 | 10712 |
10749 /** @domName IDBRequest.error; @docsEditable true */ | 10713 /// @domName IDBRequest.error; @docsEditable true |
10750 final DOMError error; | 10714 final DOMError error; |
10751 | 10715 |
10752 /** @domName IDBRequest.errorCode; @docsEditable true */ | 10716 /// @domName IDBRequest.errorCode; @docsEditable true |
10753 final int errorCode; | 10717 final int errorCode; |
10754 | 10718 |
10755 /** @domName IDBRequest.readyState; @docsEditable true */ | 10719 /// @domName IDBRequest.readyState; @docsEditable true |
10756 final String readyState; | 10720 final String readyState; |
10757 | 10721 |
10758 /** @domName IDBRequest.result; @docsEditable true */ | 10722 /// @domName IDBRequest.result; @docsEditable true |
10759 dynamic get result => _convertNativeToDart_IDBAny(this._result); | 10723 dynamic get result => _convertNativeToDart_IDBAny(this._result); |
10760 dynamic get _result => JS("dynamic", "#.result", this); | 10724 dynamic get _result => JS("dynamic", "#.result", this); |
10761 | 10725 |
10762 /** @domName IDBRequest.source; @docsEditable true */ | 10726 /// @domName IDBRequest.source; @docsEditable true |
10763 @Creates('Null') | 10727 @Creates('Null') |
10764 final dynamic source; | 10728 final dynamic source; |
10765 | 10729 |
10766 /** @domName IDBRequest.transaction; @docsEditable true */ | 10730 /// @domName IDBRequest.transaction; @docsEditable true |
10767 final IDBTransaction transaction; | 10731 final IDBTransaction transaction; |
10768 | 10732 |
10769 /** @domName IDBRequest.webkitErrorMessage; @docsEditable true */ | 10733 /// @domName IDBRequest.webkitErrorMessage; @docsEditable true |
10770 final String webkitErrorMessage; | 10734 final String webkitErrorMessage; |
10771 | 10735 |
10772 /** @domName IDBRequest.addEventListener; @docsEditable true */ | 10736 /// @domName IDBRequest.addEventListener; @docsEditable true |
10773 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 10737 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
10774 | 10738 |
10775 /** @domName IDBRequest.dispatchEvent; @docsEditable true */ | 10739 /// @domName IDBRequest.dispatchEvent; @docsEditable true |
10776 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 10740 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
10777 | 10741 |
10778 /** @domName IDBRequest.removeEventListener; @docsEditable true */ | 10742 /// @domName IDBRequest.removeEventListener; @docsEditable true |
10779 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 10743 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
10780 } | 10744 } |
10781 | 10745 |
10782 class IDBRequestEvents extends Events { | 10746 class IDBRequestEvents extends Events { |
10783 IDBRequestEvents(EventTarget _ptr) : super(_ptr); | 10747 IDBRequestEvents(EventTarget _ptr) : super(_ptr); |
10784 | 10748 |
10785 EventListenerList get error => this['error']; | 10749 EventListenerList get error => this['error']; |
10786 | 10750 |
10787 EventListenerList get success => this['success']; | 10751 EventListenerList get success => this['success']; |
10788 } | 10752 } |
10789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10790 // for details. All rights reserved. Use of this source code is governed by a | 10754 // for details. All rights reserved. Use of this source code is governed by a |
10791 // BSD-style license that can be found in the LICENSE file. | 10755 // BSD-style license that can be found in the LICENSE file. |
10792 | 10756 |
10793 | 10757 |
10794 /// @domName IDBTransaction; @docsEditable true | 10758 /// @domName IDBTransaction; @docsEditable true |
10795 class IDBTransaction extends EventTarget native "*IDBTransaction" { | 10759 class IDBTransaction extends EventTarget native "*IDBTransaction" { |
10796 | 10760 |
10797 /** | 10761 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
10798 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
10799 */ | |
10800 IDBTransactionEvents get on => | 10762 IDBTransactionEvents get on => |
10801 new IDBTransactionEvents(this); | 10763 new IDBTransactionEvents(this); |
10802 | 10764 |
10803 static const int READ_ONLY = 0; | 10765 static const int READ_ONLY = 0; |
10804 | 10766 |
10805 static const int READ_WRITE = 1; | 10767 static const int READ_WRITE = 1; |
10806 | 10768 |
10807 static const int VERSION_CHANGE = 2; | 10769 static const int VERSION_CHANGE = 2; |
10808 | 10770 |
10809 /** @domName IDBTransaction.db; @docsEditable true */ | 10771 /// @domName IDBTransaction.db; @docsEditable true |
10810 final IDBDatabase db; | 10772 final IDBDatabase db; |
10811 | 10773 |
10812 /** @domName IDBTransaction.error; @docsEditable true */ | 10774 /// @domName IDBTransaction.error; @docsEditable true |
10813 final DOMError error; | 10775 final DOMError error; |
10814 | 10776 |
10815 /** @domName IDBTransaction.mode; @docsEditable true */ | 10777 /// @domName IDBTransaction.mode; @docsEditable true |
10816 final String mode; | 10778 final String mode; |
10817 | 10779 |
10818 /** @domName IDBTransaction.abort; @docsEditable true */ | 10780 /// @domName IDBTransaction.abort; @docsEditable true |
10819 void abort() native; | 10781 void abort() native; |
10820 | 10782 |
10821 /** @domName IDBTransaction.addEventListener; @docsEditable true */ | 10783 /// @domName IDBTransaction.addEventListener; @docsEditable true |
10822 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 10784 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
10823 | 10785 |
10824 /** @domName IDBTransaction.dispatchEvent; @docsEditable true */ | 10786 /// @domName IDBTransaction.dispatchEvent; @docsEditable true |
10825 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 10787 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
10826 | 10788 |
10827 /** @domName IDBTransaction.objectStore; @docsEditable true */ | 10789 /// @domName IDBTransaction.objectStore; @docsEditable true |
10828 IDBObjectStore objectStore(String name) native; | 10790 IDBObjectStore objectStore(String name) native; |
10829 | 10791 |
10830 /** @domName IDBTransaction.removeEventListener; @docsEditable true */ | 10792 /// @domName IDBTransaction.removeEventListener; @docsEditable true |
10831 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 10793 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
10832 } | 10794 } |
10833 | 10795 |
10834 class IDBTransactionEvents extends Events { | 10796 class IDBTransactionEvents extends Events { |
10835 IDBTransactionEvents(EventTarget _ptr) : super(_ptr); | 10797 IDBTransactionEvents(EventTarget _ptr) : super(_ptr); |
10836 | 10798 |
10837 EventListenerList get abort => this['abort']; | 10799 EventListenerList get abort => this['abort']; |
10838 | 10800 |
10839 EventListenerList get complete => this['complete']; | 10801 EventListenerList get complete => this['complete']; |
10840 | 10802 |
10841 EventListenerList get error => this['error']; | 10803 EventListenerList get error => this['error']; |
10842 } | 10804 } |
10843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10844 // for details. All rights reserved. Use of this source code is governed by a | 10806 // for details. All rights reserved. Use of this source code is governed by a |
10845 // BSD-style license that can be found in the LICENSE file. | 10807 // BSD-style license that can be found in the LICENSE file. |
10846 | 10808 |
10847 | 10809 |
10848 /// @domName IDBVersionChangeEvent; @docsEditable true | 10810 /// @domName IDBVersionChangeEvent; @docsEditable true |
10849 class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { | 10811 class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { |
10850 | 10812 |
10851 /** @domName IDBVersionChangeEvent.newVersion; @docsEditable true */ | 10813 /// @domName IDBVersionChangeEvent.newVersion; @docsEditable true |
10852 final int newVersion; | 10814 final int newVersion; |
10853 | 10815 |
10854 /** @domName IDBVersionChangeEvent.oldVersion; @docsEditable true */ | 10816 /// @domName IDBVersionChangeEvent.oldVersion; @docsEditable true |
10855 final int oldVersion; | 10817 final int oldVersion; |
10856 } | 10818 } |
10857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10858 // for details. All rights reserved. Use of this source code is governed by a | 10820 // for details. All rights reserved. Use of this source code is governed by a |
10859 // BSD-style license that can be found in the LICENSE file. | 10821 // BSD-style license that can be found in the LICENSE file. |
10860 | 10822 |
10861 | 10823 |
10862 /// @domName IDBVersionChangeEvent; @docsEditable true | 10824 /// @domName IDBVersionChangeEvent; @docsEditable true |
10863 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" { | 10825 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" { |
10864 | 10826 |
10865 /** @domName IDBVersionChangeEvent.version; @docsEditable true */ | 10827 /// @domName IDBVersionChangeEvent.version; @docsEditable true |
10866 final String version; | 10828 final String version; |
10867 } | 10829 } |
10868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10869 // for details. All rights reserved. Use of this source code is governed by a | 10831 // for details. All rights reserved. Use of this source code is governed by a |
10870 // BSD-style license that can be found in the LICENSE file. | 10832 // BSD-style license that can be found in the LICENSE file. |
10871 | 10833 |
10872 | 10834 |
10873 /// @domName IDBVersionChangeRequest; @docsEditable true | 10835 /// @domName IDBVersionChangeRequest; @docsEditable true |
10874 class IDBVersionChangeRequest extends IDBRequest implements EventTarget native "
*IDBVersionChangeRequest" { | 10836 class IDBVersionChangeRequest extends IDBRequest implements EventTarget native "
*IDBVersionChangeRequest" { |
10875 | 10837 |
10876 /** | 10838 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
10877 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
10878 */ | |
10879 IDBVersionChangeRequestEvents get on => | 10839 IDBVersionChangeRequestEvents get on => |
10880 new IDBVersionChangeRequestEvents(this); | 10840 new IDBVersionChangeRequestEvents(this); |
10881 } | 10841 } |
10882 | 10842 |
10883 class IDBVersionChangeRequestEvents extends IDBRequestEvents { | 10843 class IDBVersionChangeRequestEvents extends IDBRequestEvents { |
10884 IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); | 10844 IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); |
10885 | 10845 |
10886 EventListenerList get blocked => this['blocked']; | 10846 EventListenerList get blocked => this['blocked']; |
10887 } | 10847 } |
10888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10889 // for details. All rights reserved. Use of this source code is governed by a | 10849 // for details. All rights reserved. Use of this source code is governed by a |
10890 // BSD-style license that can be found in the LICENSE file. | 10850 // BSD-style license that can be found in the LICENSE file. |
10891 | 10851 |
10892 | 10852 |
10893 /// @domName HTMLIFrameElement; @docsEditable true | 10853 /// @domName HTMLIFrameElement; @docsEditable true |
10894 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen
t" { | 10854 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen
t" { |
10895 | 10855 |
10896 factory IFrameElement() => document.$dom_createElement("iframe"); | 10856 factory IFrameElement() => document.$dom_createElement("iframe"); |
10897 | 10857 |
10898 /** @domName HTMLIFrameElement.align; @docsEditable true */ | 10858 /// @domName HTMLIFrameElement.align; @docsEditable true |
10899 String align; | 10859 String align; |
10900 | 10860 |
10901 /** @domName HTMLIFrameElement.contentWindow; @docsEditable true */ | 10861 /// @domName HTMLIFrameElement.contentWindow; @docsEditable true |
10902 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); | 10862 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); |
10903 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); | 10863 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); |
10904 | 10864 |
10905 /** @domName HTMLIFrameElement.frameBorder; @docsEditable true */ | 10865 /// @domName HTMLIFrameElement.frameBorder; @docsEditable true |
10906 String frameBorder; | 10866 String frameBorder; |
10907 | 10867 |
10908 /** @domName HTMLIFrameElement.height; @docsEditable true */ | 10868 /// @domName HTMLIFrameElement.height; @docsEditable true |
10909 String height; | 10869 String height; |
10910 | 10870 |
10911 /** @domName HTMLIFrameElement.longDesc; @docsEditable true */ | 10871 /// @domName HTMLIFrameElement.longDesc; @docsEditable true |
10912 String longDesc; | 10872 String longDesc; |
10913 | 10873 |
10914 /** @domName HTMLIFrameElement.marginHeight; @docsEditable true */ | 10874 /// @domName HTMLIFrameElement.marginHeight; @docsEditable true |
10915 String marginHeight; | 10875 String marginHeight; |
10916 | 10876 |
10917 /** @domName HTMLIFrameElement.marginWidth; @docsEditable true */ | 10877 /// @domName HTMLIFrameElement.marginWidth; @docsEditable true |
10918 String marginWidth; | 10878 String marginWidth; |
10919 | 10879 |
10920 /** @domName HTMLIFrameElement.name; @docsEditable true */ | 10880 /// @domName HTMLIFrameElement.name; @docsEditable true |
10921 String name; | 10881 String name; |
10922 | 10882 |
10923 /** @domName HTMLIFrameElement.sandbox; @docsEditable true */ | 10883 /// @domName HTMLIFrameElement.sandbox; @docsEditable true |
10924 String sandbox; | 10884 String sandbox; |
10925 | 10885 |
10926 /** @domName HTMLIFrameElement.scrolling; @docsEditable true */ | 10886 /// @domName HTMLIFrameElement.scrolling; @docsEditable true |
10927 String scrolling; | 10887 String scrolling; |
10928 | 10888 |
10929 /** @domName HTMLIFrameElement.src; @docsEditable true */ | 10889 /// @domName HTMLIFrameElement.src; @docsEditable true |
10930 String src; | 10890 String src; |
10931 | 10891 |
10932 /** @domName HTMLIFrameElement.srcdoc; @docsEditable true */ | 10892 /// @domName HTMLIFrameElement.srcdoc; @docsEditable true |
10933 String srcdoc; | 10893 String srcdoc; |
10934 | 10894 |
10935 /** @domName HTMLIFrameElement.width; @docsEditable true */ | 10895 /// @domName HTMLIFrameElement.width; @docsEditable true |
10936 String width; | 10896 String width; |
10937 } | 10897 } |
10938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10939 // for details. All rights reserved. Use of this source code is governed by a | 10899 // for details. All rights reserved. Use of this source code is governed by a |
10940 // BSD-style license that can be found in the LICENSE file. | 10900 // BSD-style license that can be found in the LICENSE file. |
10941 | 10901 |
10942 // WARNING: Do not edit - generated code. | 10902 // WARNING: Do not edit - generated code. |
10943 | 10903 |
10944 | 10904 |
10945 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti
on00 source); | 10905 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti
on00 source); |
10946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10947 // for details. All rights reserved. Use of this source code is governed by a | 10907 // for details. All rights reserved. Use of this source code is governed by a |
10948 // BSD-style license that can be found in the LICENSE file. | 10908 // BSD-style license that can be found in the LICENSE file. |
10949 | 10909 |
10950 | 10910 |
10951 /// @domName IceCandidate; @docsEditable true | 10911 /// @domName IceCandidate; @docsEditable true |
10952 class IceCandidate native "*IceCandidate" { | 10912 class IceCandidate native "*IceCandidate" { |
10953 | 10913 |
10954 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto
ryProvider.createIceCandidate(label, candidateLine); | 10914 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto
ryProvider.createIceCandidate(label, candidateLine); |
10955 | 10915 |
10956 /** @domName IceCandidate.label; @docsEditable true */ | 10916 /// @domName IceCandidate.label; @docsEditable true |
10957 final String label; | 10917 final String label; |
10958 | 10918 |
10959 /** @domName IceCandidate.toSdp; @docsEditable true */ | 10919 /// @domName IceCandidate.toSdp; @docsEditable true |
10960 String toSdp() native; | 10920 String toSdp() native; |
10961 } | 10921 } |
10962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10963 // for details. All rights reserved. Use of this source code is governed by a | 10923 // for details. All rights reserved. Use of this source code is governed by a |
10964 // BSD-style license that can be found in the LICENSE file. | 10924 // BSD-style license that can be found in the LICENSE file. |
10965 | 10925 |
10966 | 10926 |
10967 /// @domName ImageData; @docsEditable true | 10927 /// @domName ImageData; @docsEditable true |
10968 class ImageData native "*ImageData" { | 10928 class ImageData native "*ImageData" { |
10969 | 10929 |
10970 /** @domName ImageData.data; @docsEditable true */ | 10930 /// @domName ImageData.data; @docsEditable true |
10971 final Uint8ClampedArray data; | 10931 final Uint8ClampedArray data; |
10972 | 10932 |
10973 /** @domName ImageData.height; @docsEditable true */ | 10933 /// @domName ImageData.height; @docsEditable true |
10974 final int height; | 10934 final int height; |
10975 | 10935 |
10976 /** @domName ImageData.width; @docsEditable true */ | 10936 /// @domName ImageData.width; @docsEditable true |
10977 final int width; | 10937 final int width; |
10978 } | 10938 } |
10979 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10980 // for details. All rights reserved. Use of this source code is governed by a | 10940 // for details. All rights reserved. Use of this source code is governed by a |
10981 // BSD-style license that can be found in the LICENSE file. | 10941 // BSD-style license that can be found in the LICENSE file. |
10982 | 10942 |
10983 | 10943 |
10984 /// @domName HTMLImageElement; @docsEditable true | 10944 /// @domName HTMLImageElement; @docsEditable true |
10985 class ImageElement extends Element implements Element native "*HTMLImageElement"
{ | 10945 class ImageElement extends Element implements Element native "*HTMLImageElement"
{ |
10986 | 10946 |
10987 factory ImageElement({String src, int width, int height}) { | 10947 factory ImageElement({String src, int width, int height}) { |
10988 var e = document.$dom_createElement("img"); | 10948 var e = document.$dom_createElement("img"); |
10989 if (src != null) e.src = src; | 10949 if (src != null) e.src = src; |
10990 if (width != null) e.width = width; | 10950 if (width != null) e.width = width; |
10991 if (height != null) e.height = height; | 10951 if (height != null) e.height = height; |
10992 return e; | 10952 return e; |
10993 } | 10953 } |
10994 | 10954 |
10995 /** @domName HTMLImageElement.align; @docsEditable true */ | 10955 /// @domName HTMLImageElement.align; @docsEditable true |
10996 String align; | 10956 String align; |
10997 | 10957 |
10998 /** @domName HTMLImageElement.alt; @docsEditable true */ | 10958 /// @domName HTMLImageElement.alt; @docsEditable true |
10999 String alt; | 10959 String alt; |
11000 | 10960 |
11001 /** @domName HTMLImageElement.border; @docsEditable true */ | 10961 /// @domName HTMLImageElement.border; @docsEditable true |
11002 String border; | 10962 String border; |
11003 | 10963 |
11004 /** @domName HTMLImageElement.complete; @docsEditable true */ | 10964 /// @domName HTMLImageElement.complete; @docsEditable true |
11005 final bool complete; | 10965 final bool complete; |
11006 | 10966 |
11007 /** @domName HTMLImageElement.crossOrigin; @docsEditable true */ | 10967 /// @domName HTMLImageElement.crossOrigin; @docsEditable true |
11008 String crossOrigin; | 10968 String crossOrigin; |
11009 | 10969 |
11010 /** @domName HTMLImageElement.height; @docsEditable true */ | 10970 /// @domName HTMLImageElement.height; @docsEditable true |
11011 int height; | 10971 int height; |
11012 | 10972 |
11013 /** @domName HTMLImageElement.hspace; @docsEditable true */ | 10973 /// @domName HTMLImageElement.hspace; @docsEditable true |
11014 int hspace; | 10974 int hspace; |
11015 | 10975 |
11016 /** @domName HTMLImageElement.isMap; @docsEditable true */ | 10976 /// @domName HTMLImageElement.isMap; @docsEditable true |
11017 bool isMap; | 10977 bool isMap; |
11018 | 10978 |
11019 /** @domName HTMLImageElement.longDesc; @docsEditable true */ | 10979 /// @domName HTMLImageElement.longDesc; @docsEditable true |
11020 String longDesc; | 10980 String longDesc; |
11021 | 10981 |
11022 /** @domName HTMLImageElement.lowsrc; @docsEditable true */ | 10982 /// @domName HTMLImageElement.lowsrc; @docsEditable true |
11023 String lowsrc; | 10983 String lowsrc; |
11024 | 10984 |
11025 /** @domName HTMLImageElement.name; @docsEditable true */ | 10985 /// @domName HTMLImageElement.name; @docsEditable true |
11026 String name; | 10986 String name; |
11027 | 10987 |
11028 /** @domName HTMLImageElement.naturalHeight; @docsEditable true */ | 10988 /// @domName HTMLImageElement.naturalHeight; @docsEditable true |
11029 final int naturalHeight; | 10989 final int naturalHeight; |
11030 | 10990 |
11031 /** @domName HTMLImageElement.naturalWidth; @docsEditable true */ | 10991 /// @domName HTMLImageElement.naturalWidth; @docsEditable true |
11032 final int naturalWidth; | 10992 final int naturalWidth; |
11033 | 10993 |
11034 /** @domName HTMLImageElement.src; @docsEditable true */ | 10994 /// @domName HTMLImageElement.src; @docsEditable true |
11035 String src; | 10995 String src; |
11036 | 10996 |
11037 /** @domName HTMLImageElement.useMap; @docsEditable true */ | 10997 /// @domName HTMLImageElement.useMap; @docsEditable true |
11038 String useMap; | 10998 String useMap; |
11039 | 10999 |
11040 /** @domName HTMLImageElement.vspace; @docsEditable true */ | 11000 /// @domName HTMLImageElement.vspace; @docsEditable true |
11041 int vspace; | 11001 int vspace; |
11042 | 11002 |
11043 /** @domName HTMLImageElement.width; @docsEditable true */ | 11003 /// @domName HTMLImageElement.width; @docsEditable true |
11044 int width; | 11004 int width; |
11045 | 11005 |
11046 /** @domName HTMLImageElement.x; @docsEditable true */ | 11006 /// @domName HTMLImageElement.x; @docsEditable true |
11047 final int x; | 11007 final int x; |
11048 | 11008 |
11049 /** @domName HTMLImageElement.y; @docsEditable true */ | 11009 /// @domName HTMLImageElement.y; @docsEditable true |
11050 final int y; | 11010 final int y; |
11051 } | 11011 } |
11052 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11053 // for details. All rights reserved. Use of this source code is governed by a | 11013 // for details. All rights reserved. Use of this source code is governed by a |
11054 // BSD-style license that can be found in the LICENSE file. | 11014 // BSD-style license that can be found in the LICENSE file. |
11055 | 11015 |
11056 | 11016 |
11057 /// @domName HTMLInputElement; @docsEditable true | 11017 /// @domName HTMLInputElement; @docsEditable true |
11058 class InputElement extends Element implements Element native "*HTMLInputElement"
{ | 11018 class InputElement extends Element implements Element native "*HTMLInputElement"
{ |
11059 | 11019 |
11060 factory InputElement({String type}) { | 11020 factory InputElement({String type}) { |
11061 var e = document.$dom_createElement("input"); | 11021 var e = document.$dom_createElement("input"); |
11062 if (type != null) e.type = type; | 11022 if (type != null) e.type = type; |
11063 return e; | 11023 return e; |
11064 } | 11024 } |
11065 | 11025 |
11066 /** | 11026 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
11067 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
11068 */ | |
11069 InputElementEvents get on => | 11027 InputElementEvents get on => |
11070 new InputElementEvents(this); | 11028 new InputElementEvents(this); |
11071 | 11029 |
11072 /** @domName HTMLInputElement.accept; @docsEditable true */ | 11030 /// @domName HTMLInputElement.accept; @docsEditable true |
11073 String accept; | 11031 String accept; |
11074 | 11032 |
11075 /** @domName HTMLInputElement.align; @docsEditable true */ | 11033 /// @domName HTMLInputElement.align; @docsEditable true |
11076 String align; | 11034 String align; |
11077 | 11035 |
11078 /** @domName HTMLInputElement.alt; @docsEditable true */ | 11036 /// @domName HTMLInputElement.alt; @docsEditable true |
11079 String alt; | 11037 String alt; |
11080 | 11038 |
11081 /** @domName HTMLInputElement.autocomplete; @docsEditable true */ | 11039 /// @domName HTMLInputElement.autocomplete; @docsEditable true |
11082 String autocomplete; | 11040 String autocomplete; |
11083 | 11041 |
11084 /** @domName HTMLInputElement.autofocus; @docsEditable true */ | 11042 /// @domName HTMLInputElement.autofocus; @docsEditable true |
11085 bool autofocus; | 11043 bool autofocus; |
11086 | 11044 |
11087 /** @domName HTMLInputElement.checked; @docsEditable true */ | 11045 /// @domName HTMLInputElement.checked; @docsEditable true |
11088 bool checked; | 11046 bool checked; |
11089 | 11047 |
11090 /** @domName HTMLInputElement.defaultChecked; @docsEditable true */ | 11048 /// @domName HTMLInputElement.defaultChecked; @docsEditable true |
11091 bool defaultChecked; | 11049 bool defaultChecked; |
11092 | 11050 |
11093 /** @domName HTMLInputElement.defaultValue; @docsEditable true */ | 11051 /// @domName HTMLInputElement.defaultValue; @docsEditable true |
11094 String defaultValue; | 11052 String defaultValue; |
11095 | 11053 |
11096 /** @domName HTMLInputElement.dirName; @docsEditable true */ | 11054 /// @domName HTMLInputElement.dirName; @docsEditable true |
11097 String dirName; | 11055 String dirName; |
11098 | 11056 |
11099 /** @domName HTMLInputElement.disabled; @docsEditable true */ | 11057 /// @domName HTMLInputElement.disabled; @docsEditable true |
11100 bool disabled; | 11058 bool disabled; |
11101 | 11059 |
11102 /** @domName HTMLInputElement.files; @docsEditable true */ | 11060 /// @domName HTMLInputElement.files; @docsEditable true |
11103 @Returns('_FileList') @Creates('_FileList') | 11061 @Returns('_FileList') @Creates('_FileList') |
11104 List<File> files; | 11062 List<File> files; |
11105 | 11063 |
11106 /** @domName HTMLInputElement.form; @docsEditable true */ | 11064 /// @domName HTMLInputElement.form; @docsEditable true |
11107 final FormElement form; | 11065 final FormElement form; |
11108 | 11066 |
11109 /** @domName HTMLInputElement.formAction; @docsEditable true */ | 11067 /// @domName HTMLInputElement.formAction; @docsEditable true |
11110 String formAction; | 11068 String formAction; |
11111 | 11069 |
11112 /** @domName HTMLInputElement.formEnctype; @docsEditable true */ | 11070 /// @domName HTMLInputElement.formEnctype; @docsEditable true |
11113 String formEnctype; | 11071 String formEnctype; |
11114 | 11072 |
11115 /** @domName HTMLInputElement.formMethod; @docsEditable true */ | 11073 /// @domName HTMLInputElement.formMethod; @docsEditable true |
11116 String formMethod; | 11074 String formMethod; |
11117 | 11075 |
11118 /** @domName HTMLInputElement.formNoValidate; @docsEditable true */ | 11076 /// @domName HTMLInputElement.formNoValidate; @docsEditable true |
11119 bool formNoValidate; | 11077 bool formNoValidate; |
11120 | 11078 |
11121 /** @domName HTMLInputElement.formTarget; @docsEditable true */ | 11079 /// @domName HTMLInputElement.formTarget; @docsEditable true |
11122 String formTarget; | 11080 String formTarget; |
11123 | 11081 |
11124 /** @domName HTMLInputElement.height; @docsEditable true */ | 11082 /// @domName HTMLInputElement.height; @docsEditable true |
11125 int height; | 11083 int height; |
11126 | 11084 |
11127 /** @domName HTMLInputElement.incremental; @docsEditable true */ | 11085 /// @domName HTMLInputElement.incremental; @docsEditable true |
11128 bool incremental; | 11086 bool incremental; |
11129 | 11087 |
11130 /** @domName HTMLInputElement.indeterminate; @docsEditable true */ | 11088 /// @domName HTMLInputElement.indeterminate; @docsEditable true |
11131 bool indeterminate; | 11089 bool indeterminate; |
11132 | 11090 |
11133 /** @domName HTMLInputElement.labels; @docsEditable true */ | 11091 /// @domName HTMLInputElement.labels; @docsEditable true |
11134 @Returns('_NodeList') @Creates('_NodeList') | 11092 @Returns('_NodeList') @Creates('_NodeList') |
11135 final List<Node> labels; | 11093 final List<Node> labels; |
11136 | 11094 |
11137 /** @domName HTMLInputElement.list; @docsEditable true */ | 11095 /// @domName HTMLInputElement.list; @docsEditable true |
11138 final Element list; | 11096 final Element list; |
11139 | 11097 |
11140 /** @domName HTMLInputElement.max; @docsEditable true */ | 11098 /// @domName HTMLInputElement.max; @docsEditable true |
11141 String max; | 11099 String max; |
11142 | 11100 |
11143 /** @domName HTMLInputElement.maxLength; @docsEditable true */ | 11101 /// @domName HTMLInputElement.maxLength; @docsEditable true |
11144 int maxLength; | 11102 int maxLength; |
11145 | 11103 |
11146 /** @domName HTMLInputElement.min; @docsEditable true */ | 11104 /// @domName HTMLInputElement.min; @docsEditable true |
11147 String min; | 11105 String min; |
11148 | 11106 |
11149 /** @domName HTMLInputElement.multiple; @docsEditable true */ | 11107 /// @domName HTMLInputElement.multiple; @docsEditable true |
11150 bool multiple; | 11108 bool multiple; |
11151 | 11109 |
11152 /** @domName HTMLInputElement.name; @docsEditable true */ | 11110 /// @domName HTMLInputElement.name; @docsEditable true |
11153 String name; | 11111 String name; |
11154 | 11112 |
11155 /** @domName HTMLInputElement.pattern; @docsEditable true */ | 11113 /// @domName HTMLInputElement.pattern; @docsEditable true |
11156 String pattern; | 11114 String pattern; |
11157 | 11115 |
11158 /** @domName HTMLInputElement.placeholder; @docsEditable true */ | 11116 /// @domName HTMLInputElement.placeholder; @docsEditable true |
11159 String placeholder; | 11117 String placeholder; |
11160 | 11118 |
11161 /** @domName HTMLInputElement.readOnly; @docsEditable true */ | 11119 /// @domName HTMLInputElement.readOnly; @docsEditable true |
11162 bool readOnly; | 11120 bool readOnly; |
11163 | 11121 |
11164 /** @domName HTMLInputElement.required; @docsEditable true */ | 11122 /// @domName HTMLInputElement.required; @docsEditable true |
11165 bool required; | 11123 bool required; |
11166 | 11124 |
11167 /** @domName HTMLInputElement.selectionDirection; @docsEditable true */ | 11125 /// @domName HTMLInputElement.selectionDirection; @docsEditable true |
11168 String selectionDirection; | 11126 String selectionDirection; |
11169 | 11127 |
11170 /** @domName HTMLInputElement.selectionEnd; @docsEditable true */ | 11128 /// @domName HTMLInputElement.selectionEnd; @docsEditable true |
11171 int selectionEnd; | 11129 int selectionEnd; |
11172 | 11130 |
11173 /** @domName HTMLInputElement.selectionStart; @docsEditable true */ | 11131 /// @domName HTMLInputElement.selectionStart; @docsEditable true |
11174 int selectionStart; | 11132 int selectionStart; |
11175 | 11133 |
11176 /** @domName HTMLInputElement.size; @docsEditable true */ | 11134 /// @domName HTMLInputElement.size; @docsEditable true |
11177 int size; | 11135 int size; |
11178 | 11136 |
11179 /** @domName HTMLInputElement.src; @docsEditable true */ | 11137 /// @domName HTMLInputElement.src; @docsEditable true |
11180 String src; | 11138 String src; |
11181 | 11139 |
11182 /** @domName HTMLInputElement.step; @docsEditable true */ | 11140 /// @domName HTMLInputElement.step; @docsEditable true |
11183 String step; | 11141 String step; |
11184 | 11142 |
11185 /** @domName HTMLInputElement.type; @docsEditable true */ | 11143 /// @domName HTMLInputElement.type; @docsEditable true |
11186 String type; | 11144 String type; |
11187 | 11145 |
11188 /** @domName HTMLInputElement.useMap; @docsEditable true */ | 11146 /// @domName HTMLInputElement.useMap; @docsEditable true |
11189 String useMap; | 11147 String useMap; |
11190 | 11148 |
11191 /** @domName HTMLInputElement.validationMessage; @docsEditable true */ | 11149 /// @domName HTMLInputElement.validationMessage; @docsEditable true |
11192 final String validationMessage; | 11150 final String validationMessage; |
11193 | 11151 |
11194 /** @domName HTMLInputElement.validity; @docsEditable true */ | 11152 /// @domName HTMLInputElement.validity; @docsEditable true |
11195 final ValidityState validity; | 11153 final ValidityState validity; |
11196 | 11154 |
11197 /** @domName HTMLInputElement.value; @docsEditable true */ | 11155 /// @domName HTMLInputElement.value; @docsEditable true |
11198 String value; | 11156 String value; |
11199 | 11157 |
11200 /** @domName HTMLInputElement.valueAsDate; @docsEditable true */ | 11158 /// @domName HTMLInputElement.valueAsDate; @docsEditable true |
11201 Date valueAsDate; | 11159 Date valueAsDate; |
11202 | 11160 |
11203 /** @domName HTMLInputElement.valueAsNumber; @docsEditable true */ | 11161 /// @domName HTMLInputElement.valueAsNumber; @docsEditable true |
11204 num valueAsNumber; | 11162 num valueAsNumber; |
11205 | 11163 |
11206 /** @domName HTMLInputElement.webkitEntries; @docsEditable true */ | 11164 /// @domName HTMLInputElement.webkitEntries; @docsEditable true |
11207 @Returns('_EntryArray') @Creates('_EntryArray') | 11165 @Returns('_EntryArray') @Creates('_EntryArray') |
11208 final List<Entry> webkitEntries; | 11166 final List<Entry> webkitEntries; |
11209 | 11167 |
11210 /** @domName HTMLInputElement.webkitGrammar; @docsEditable true */ | 11168 /// @domName HTMLInputElement.webkitGrammar; @docsEditable true |
11211 bool webkitGrammar; | 11169 bool webkitGrammar; |
11212 | 11170 |
11213 /** @domName HTMLInputElement.webkitSpeech; @docsEditable true */ | 11171 /// @domName HTMLInputElement.webkitSpeech; @docsEditable true |
11214 bool webkitSpeech; | 11172 bool webkitSpeech; |
11215 | 11173 |
11216 /** @domName HTMLInputElement.webkitdirectory; @docsEditable true */ | 11174 /// @domName HTMLInputElement.webkitdirectory; @docsEditable true |
11217 bool webkitdirectory; | 11175 bool webkitdirectory; |
11218 | 11176 |
11219 /** @domName HTMLInputElement.width; @docsEditable true */ | 11177 /// @domName HTMLInputElement.width; @docsEditable true |
11220 int width; | 11178 int width; |
11221 | 11179 |
11222 /** @domName HTMLInputElement.willValidate; @docsEditable true */ | 11180 /// @domName HTMLInputElement.willValidate; @docsEditable true |
11223 final bool willValidate; | 11181 final bool willValidate; |
11224 | 11182 |
11225 /** @domName HTMLInputElement.checkValidity; @docsEditable true */ | 11183 /// @domName HTMLInputElement.checkValidity; @docsEditable true |
11226 bool checkValidity() native; | 11184 bool checkValidity() native; |
11227 | 11185 |
11228 /** @domName HTMLInputElement.select; @docsEditable true */ | 11186 /// @domName HTMLInputElement.select; @docsEditable true |
11229 void select() native; | 11187 void select() native; |
11230 | 11188 |
11231 /** @domName HTMLInputElement.setCustomValidity; @docsEditable true */ | 11189 /// @domName HTMLInputElement.setCustomValidity; @docsEditable true |
11232 void setCustomValidity(String error) native; | 11190 void setCustomValidity(String error) native; |
11233 | 11191 |
11234 /** @domName HTMLInputElement.setRangeText; @docsEditable true */ | 11192 /// @domName HTMLInputElement.setRangeText; @docsEditable true |
11235 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; | 11193 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; |
11236 | 11194 |
11237 /** @domName HTMLInputElement.setSelectionRange; @docsEditable true */ | 11195 /// @domName HTMLInputElement.setSelectionRange; @docsEditable true |
11238 void setSelectionRange(int start, int end, [String direction]) native; | 11196 void setSelectionRange(int start, int end, [String direction]) native; |
11239 | 11197 |
11240 /** @domName HTMLInputElement.stepDown; @docsEditable true */ | 11198 /// @domName HTMLInputElement.stepDown; @docsEditable true |
11241 void stepDown([int n]) native; | 11199 void stepDown([int n]) native; |
11242 | 11200 |
11243 /** @domName HTMLInputElement.stepUp; @docsEditable true */ | 11201 /// @domName HTMLInputElement.stepUp; @docsEditable true |
11244 void stepUp([int n]) native; | 11202 void stepUp([int n]) native; |
11245 } | 11203 } |
11246 | 11204 |
11247 class InputElementEvents extends ElementEvents { | 11205 class InputElementEvents extends ElementEvents { |
11248 InputElementEvents(EventTarget _ptr) : super(_ptr); | 11206 InputElementEvents(EventTarget _ptr) : super(_ptr); |
11249 | 11207 |
11250 EventListenerList get speechChange => this['webkitSpeechChange']; | 11208 EventListenerList get speechChange => this['webkitSpeechChange']; |
11251 } | 11209 } |
11252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11253 // for details. All rights reserved. Use of this source code is governed by a | 11211 // for details. All rights reserved. Use of this source code is governed by a |
11254 // BSD-style license that can be found in the LICENSE file. | 11212 // BSD-style license that can be found in the LICENSE file. |
11255 | 11213 |
11256 | 11214 |
11257 /// @domName Int16Array; @docsEditable true | 11215 /// @domName Int16Array; @docsEditable true |
11258 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int16Array" { | 11216 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int16Array" { |
11259 | 11217 |
11260 factory Int16Array(int length) => | 11218 factory Int16Array(int length) => |
11261 _TypedArrayFactoryProvider.createInt16Array(length); | 11219 _TypedArrayFactoryProvider.createInt16Array(length); |
11262 | 11220 |
11263 factory Int16Array.fromList(List<int> list) => | 11221 factory Int16Array.fromList(List<int> list) => |
11264 _TypedArrayFactoryProvider.createInt16Array_fromList(list); | 11222 _TypedArrayFactoryProvider.createInt16Array_fromList(list); |
11265 | 11223 |
11266 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => | 11224 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => |
11267 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l
ength); | 11225 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l
ength); |
11268 | 11226 |
11269 static const int BYTES_PER_ELEMENT = 2; | 11227 static const int BYTES_PER_ELEMENT = 2; |
11270 | 11228 |
11271 /** @domName Int16Array.length; @docsEditable true */ | 11229 /// @domName Int16Array.length; @docsEditable true |
11272 final int length; | 11230 final int length; |
11273 | 11231 |
11274 int operator[](int index) => JS("int", "#[#]", this, index); | 11232 int operator[](int index) => JS("int", "#[#]", this, index); |
11275 | 11233 |
11276 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 11234 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
11277 // int is the element type. | 11235 // int is the element type. |
11278 | 11236 |
11279 // From Iterable<int>: | 11237 // From Iterable<int>: |
11280 | 11238 |
11281 Iterator<int> iterator() { | 11239 Iterator<int> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11346 | 11304 |
11347 void insertRange(int start, int rangeLength, [int initialValue]) { | 11305 void insertRange(int start, int rangeLength, [int initialValue]) { |
11348 throw new UnsupportedError("Cannot insertRange on immutable List."); | 11306 throw new UnsupportedError("Cannot insertRange on immutable List."); |
11349 } | 11307 } |
11350 | 11308 |
11351 List<int> getRange(int start, int rangeLength) => | 11309 List<int> getRange(int start, int rangeLength) => |
11352 _Lists.getRange(this, start, rangeLength, <int>[]); | 11310 _Lists.getRange(this, start, rangeLength, <int>[]); |
11353 | 11311 |
11354 // -- end List<int> mixins. | 11312 // -- end List<int> mixins. |
11355 | 11313 |
11356 /** @domName Int16Array.setElements; @docsEditable true */ | 11314 /// @domName Int16Array.setElements; @docsEditable true |
11357 void setElements(Object array, [int offset]) native "set"; | 11315 void setElements(Object array, [int offset]) native "set"; |
11358 | 11316 |
11359 /** @domName Int16Array.subarray; @docsEditable true */ | 11317 /// @domName Int16Array.subarray; @docsEditable true |
11360 Int16Array subarray(int start, [int end]) native; | 11318 Int16Array subarray(int start, [int end]) native; |
11361 } | 11319 } |
11362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11363 // for details. All rights reserved. Use of this source code is governed by a | 11321 // for details. All rights reserved. Use of this source code is governed by a |
11364 // BSD-style license that can be found in the LICENSE file. | 11322 // BSD-style license that can be found in the LICENSE file. |
11365 | 11323 |
11366 | 11324 |
11367 /// @domName Int32Array; @docsEditable true | 11325 /// @domName Int32Array; @docsEditable true |
11368 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int32Array" { | 11326 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int32Array" { |
11369 | 11327 |
11370 factory Int32Array(int length) => | 11328 factory Int32Array(int length) => |
11371 _TypedArrayFactoryProvider.createInt32Array(length); | 11329 _TypedArrayFactoryProvider.createInt32Array(length); |
11372 | 11330 |
11373 factory Int32Array.fromList(List<int> list) => | 11331 factory Int32Array.fromList(List<int> list) => |
11374 _TypedArrayFactoryProvider.createInt32Array_fromList(list); | 11332 _TypedArrayFactoryProvider.createInt32Array_fromList(list); |
11375 | 11333 |
11376 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => | 11334 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => |
11377 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l
ength); | 11335 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l
ength); |
11378 | 11336 |
11379 static const int BYTES_PER_ELEMENT = 4; | 11337 static const int BYTES_PER_ELEMENT = 4; |
11380 | 11338 |
11381 /** @domName Int32Array.length; @docsEditable true */ | 11339 /// @domName Int32Array.length; @docsEditable true |
11382 final int length; | 11340 final int length; |
11383 | 11341 |
11384 int operator[](int index) => JS("int", "#[#]", this, index); | 11342 int operator[](int index) => JS("int", "#[#]", this, index); |
11385 | 11343 |
11386 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 11344 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
11387 // int is the element type. | 11345 // int is the element type. |
11388 | 11346 |
11389 // From Iterable<int>: | 11347 // From Iterable<int>: |
11390 | 11348 |
11391 Iterator<int> iterator() { | 11349 Iterator<int> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11456 | 11414 |
11457 void insertRange(int start, int rangeLength, [int initialValue]) { | 11415 void insertRange(int start, int rangeLength, [int initialValue]) { |
11458 throw new UnsupportedError("Cannot insertRange on immutable List."); | 11416 throw new UnsupportedError("Cannot insertRange on immutable List."); |
11459 } | 11417 } |
11460 | 11418 |
11461 List<int> getRange(int start, int rangeLength) => | 11419 List<int> getRange(int start, int rangeLength) => |
11462 _Lists.getRange(this, start, rangeLength, <int>[]); | 11420 _Lists.getRange(this, start, rangeLength, <int>[]); |
11463 | 11421 |
11464 // -- end List<int> mixins. | 11422 // -- end List<int> mixins. |
11465 | 11423 |
11466 /** @domName Int32Array.setElements; @docsEditable true */ | 11424 /// @domName Int32Array.setElements; @docsEditable true |
11467 void setElements(Object array, [int offset]) native "set"; | 11425 void setElements(Object array, [int offset]) native "set"; |
11468 | 11426 |
11469 /** @domName Int32Array.subarray; @docsEditable true */ | 11427 /// @domName Int32Array.subarray; @docsEditable true |
11470 Int32Array subarray(int start, [int end]) native; | 11428 Int32Array subarray(int start, [int end]) native; |
11471 } | 11429 } |
11472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11473 // for details. All rights reserved. Use of this source code is governed by a | 11431 // for details. All rights reserved. Use of this source code is governed by a |
11474 // BSD-style license that can be found in the LICENSE file. | 11432 // BSD-style license that can be found in the LICENSE file. |
11475 | 11433 |
11476 | 11434 |
11477 /// @domName Int8Array; @docsEditable true | 11435 /// @domName Int8Array; @docsEditable true |
11478 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
ist<int> native "*Int8Array" { | 11436 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
ist<int> native "*Int8Array" { |
11479 | 11437 |
11480 factory Int8Array(int length) => | 11438 factory Int8Array(int length) => |
11481 _TypedArrayFactoryProvider.createInt8Array(length); | 11439 _TypedArrayFactoryProvider.createInt8Array(length); |
11482 | 11440 |
11483 factory Int8Array.fromList(List<int> list) => | 11441 factory Int8Array.fromList(List<int> list) => |
11484 _TypedArrayFactoryProvider.createInt8Array_fromList(list); | 11442 _TypedArrayFactoryProvider.createInt8Array_fromList(list); |
11485 | 11443 |
11486 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
=> | 11444 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
=> |
11487 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le
ngth); | 11445 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le
ngth); |
11488 | 11446 |
11489 static const int BYTES_PER_ELEMENT = 1; | 11447 static const int BYTES_PER_ELEMENT = 1; |
11490 | 11448 |
11491 /** @domName Int8Array.length; @docsEditable true */ | 11449 /// @domName Int8Array.length; @docsEditable true |
11492 final int length; | 11450 final int length; |
11493 | 11451 |
11494 int operator[](int index) => JS("int", "#[#]", this, index); | 11452 int operator[](int index) => JS("int", "#[#]", this, index); |
11495 | 11453 |
11496 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 11454 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
11497 // int is the element type. | 11455 // int is the element type. |
11498 | 11456 |
11499 // From Iterable<int>: | 11457 // From Iterable<int>: |
11500 | 11458 |
11501 Iterator<int> iterator() { | 11459 Iterator<int> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11566 | 11524 |
11567 void insertRange(int start, int rangeLength, [int initialValue]) { | 11525 void insertRange(int start, int rangeLength, [int initialValue]) { |
11568 throw new UnsupportedError("Cannot insertRange on immutable List."); | 11526 throw new UnsupportedError("Cannot insertRange on immutable List."); |
11569 } | 11527 } |
11570 | 11528 |
11571 List<int> getRange(int start, int rangeLength) => | 11529 List<int> getRange(int start, int rangeLength) => |
11572 _Lists.getRange(this, start, rangeLength, <int>[]); | 11530 _Lists.getRange(this, start, rangeLength, <int>[]); |
11573 | 11531 |
11574 // -- end List<int> mixins. | 11532 // -- end List<int> mixins. |
11575 | 11533 |
11576 /** @domName Int8Array.setElements; @docsEditable true */ | 11534 /// @domName Int8Array.setElements; @docsEditable true |
11577 void setElements(Object array, [int offset]) native "set"; | 11535 void setElements(Object array, [int offset]) native "set"; |
11578 | 11536 |
11579 /** @domName Int8Array.subarray; @docsEditable true */ | 11537 /// @domName Int8Array.subarray; @docsEditable true |
11580 Int8Array subarray(int start, [int end]) native; | 11538 Int8Array subarray(int start, [int end]) native; |
11581 } | 11539 } |
11582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11583 // for details. All rights reserved. Use of this source code is governed by a | 11541 // for details. All rights reserved. Use of this source code is governed by a |
11584 // BSD-style license that can be found in the LICENSE file. | 11542 // BSD-style license that can be found in the LICENSE file. |
11585 | 11543 |
11586 | 11544 |
11587 /// @domName JavaScriptCallFrame; @docsEditable true | 11545 /// @domName JavaScriptCallFrame; @docsEditable true |
11588 class JavaScriptCallFrame native "*JavaScriptCallFrame" { | 11546 class JavaScriptCallFrame native "*JavaScriptCallFrame" { |
11589 | 11547 |
11590 static const int CATCH_SCOPE = 4; | 11548 static const int CATCH_SCOPE = 4; |
11591 | 11549 |
11592 static const int CLOSURE_SCOPE = 3; | 11550 static const int CLOSURE_SCOPE = 3; |
11593 | 11551 |
11594 static const int GLOBAL_SCOPE = 0; | 11552 static const int GLOBAL_SCOPE = 0; |
11595 | 11553 |
11596 static const int LOCAL_SCOPE = 1; | 11554 static const int LOCAL_SCOPE = 1; |
11597 | 11555 |
11598 static const int WITH_SCOPE = 2; | 11556 static const int WITH_SCOPE = 2; |
11599 | 11557 |
11600 /** @domName JavaScriptCallFrame.caller; @docsEditable true */ | 11558 /// @domName JavaScriptCallFrame.caller; @docsEditable true |
11601 final JavaScriptCallFrame caller; | 11559 final JavaScriptCallFrame caller; |
11602 | 11560 |
11603 /** @domName JavaScriptCallFrame.column; @docsEditable true */ | 11561 /// @domName JavaScriptCallFrame.column; @docsEditable true |
11604 final int column; | 11562 final int column; |
11605 | 11563 |
11606 /** @domName JavaScriptCallFrame.functionName; @docsEditable true */ | 11564 /// @domName JavaScriptCallFrame.functionName; @docsEditable true |
11607 final String functionName; | 11565 final String functionName; |
11608 | 11566 |
11609 /** @domName JavaScriptCallFrame.line; @docsEditable true */ | 11567 /// @domName JavaScriptCallFrame.line; @docsEditable true |
11610 final int line; | 11568 final int line; |
11611 | 11569 |
11612 /** @domName JavaScriptCallFrame.scopeChain; @docsEditable true */ | 11570 /// @domName JavaScriptCallFrame.scopeChain; @docsEditable true |
11613 final List scopeChain; | 11571 final List scopeChain; |
11614 | 11572 |
11615 /** @domName JavaScriptCallFrame.sourceID; @docsEditable true */ | 11573 /// @domName JavaScriptCallFrame.sourceID; @docsEditable true |
11616 final int sourceID; | 11574 final int sourceID; |
11617 | 11575 |
11618 /** @domName JavaScriptCallFrame.thisObject; @docsEditable true */ | 11576 /// @domName JavaScriptCallFrame.thisObject; @docsEditable true |
11619 final Object thisObject; | 11577 final Object thisObject; |
11620 | 11578 |
11621 /** @domName JavaScriptCallFrame.type; @docsEditable true */ | 11579 /// @domName JavaScriptCallFrame.type; @docsEditable true |
11622 final String type; | 11580 final String type; |
11623 | 11581 |
11624 /** @domName JavaScriptCallFrame.evaluate; @docsEditable true */ | 11582 /// @domName JavaScriptCallFrame.evaluate; @docsEditable true |
11625 void evaluate(String script) native; | 11583 void evaluate(String script) native; |
11626 | 11584 |
11627 /** @domName JavaScriptCallFrame.restart; @docsEditable true */ | 11585 /// @domName JavaScriptCallFrame.restart; @docsEditable true |
11628 Object restart() native; | 11586 Object restart() native; |
11629 | 11587 |
11630 /** @domName JavaScriptCallFrame.scopeType; @docsEditable true */ | 11588 /// @domName JavaScriptCallFrame.scopeType; @docsEditable true |
11631 int scopeType(int scopeIndex) native; | 11589 int scopeType(int scopeIndex) native; |
11632 } | 11590 } |
11633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11634 // for details. All rights reserved. Use of this source code is governed by a | 11592 // for details. All rights reserved. Use of this source code is governed by a |
11635 // BSD-style license that can be found in the LICENSE file. | 11593 // BSD-style license that can be found in the LICENSE file. |
11636 | 11594 |
11637 | 11595 |
11638 /// @domName KeyboardEvent; @docsEditable true | 11596 /// @domName KeyboardEvent; @docsEditable true |
11639 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { | 11597 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { |
11640 | 11598 |
11641 /** @domName KeyboardEvent.altGraphKey; @docsEditable true */ | 11599 /// @domName KeyboardEvent.altGraphKey; @docsEditable true |
11642 final bool altGraphKey; | 11600 final bool altGraphKey; |
11643 | 11601 |
11644 /** @domName KeyboardEvent.altKey; @docsEditable true */ | 11602 /// @domName KeyboardEvent.altKey; @docsEditable true |
11645 final bool altKey; | 11603 final bool altKey; |
11646 | 11604 |
11647 /** @domName KeyboardEvent.ctrlKey; @docsEditable true */ | 11605 /// @domName KeyboardEvent.ctrlKey; @docsEditable true |
11648 final bool ctrlKey; | 11606 final bool ctrlKey; |
11649 | 11607 |
11650 /** @domName KeyboardEvent.keyIdentifier; @docsEditable true */ | 11608 /// @domName KeyboardEvent.keyIdentifier; @docsEditable true |
11651 final String keyIdentifier; | 11609 final String keyIdentifier; |
11652 | 11610 |
11653 /** @domName KeyboardEvent.keyLocation; @docsEditable true */ | 11611 /// @domName KeyboardEvent.keyLocation; @docsEditable true |
11654 final int keyLocation; | 11612 final int keyLocation; |
11655 | 11613 |
11656 /** @domName KeyboardEvent.metaKey; @docsEditable true */ | 11614 /// @domName KeyboardEvent.metaKey; @docsEditable true |
11657 final bool metaKey; | 11615 final bool metaKey; |
11658 | 11616 |
11659 /** @domName KeyboardEvent.shiftKey; @docsEditable true */ | 11617 /// @domName KeyboardEvent.shiftKey; @docsEditable true |
11660 final bool shiftKey; | 11618 final bool shiftKey; |
11661 | 11619 |
11662 /** @domName KeyboardEvent.initKeyboardEvent; @docsEditable true */ | 11620 /// @domName KeyboardEvent.initKeyboardEvent; @docsEditable true |
11663 void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWind
ow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool
shiftKey, bool metaKey, bool altGraphKey) native; | 11621 void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWind
ow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool
shiftKey, bool metaKey, bool altGraphKey) native; |
11664 } | 11622 } |
11665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11666 // for details. All rights reserved. Use of this source code is governed by a | 11624 // for details. All rights reserved. Use of this source code is governed by a |
11667 // BSD-style license that can be found in the LICENSE file. | 11625 // BSD-style license that can be found in the LICENSE file. |
11668 | 11626 |
11669 | 11627 |
11670 /// @domName HTMLKeygenElement; @docsEditable true | 11628 /// @domName HTMLKeygenElement; @docsEditable true |
11671 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen
t" { | 11629 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen
t" { |
11672 | 11630 |
11673 factory KeygenElement() => document.$dom_createElement("keygen"); | 11631 factory KeygenElement() => document.$dom_createElement("keygen"); |
11674 | 11632 |
11675 /** @domName HTMLKeygenElement.autofocus; @docsEditable true */ | 11633 /// @domName HTMLKeygenElement.autofocus; @docsEditable true |
11676 bool autofocus; | 11634 bool autofocus; |
11677 | 11635 |
11678 /** @domName HTMLKeygenElement.challenge; @docsEditable true */ | 11636 /// @domName HTMLKeygenElement.challenge; @docsEditable true |
11679 String challenge; | 11637 String challenge; |
11680 | 11638 |
11681 /** @domName HTMLKeygenElement.disabled; @docsEditable true */ | 11639 /// @domName HTMLKeygenElement.disabled; @docsEditable true |
11682 bool disabled; | 11640 bool disabled; |
11683 | 11641 |
11684 /** @domName HTMLKeygenElement.form; @docsEditable true */ | 11642 /// @domName HTMLKeygenElement.form; @docsEditable true |
11685 final FormElement form; | 11643 final FormElement form; |
11686 | 11644 |
11687 /** @domName HTMLKeygenElement.keytype; @docsEditable true */ | 11645 /// @domName HTMLKeygenElement.keytype; @docsEditable true |
11688 String keytype; | 11646 String keytype; |
11689 | 11647 |
11690 /** @domName HTMLKeygenElement.labels; @docsEditable true */ | 11648 /// @domName HTMLKeygenElement.labels; @docsEditable true |
11691 @Returns('_NodeList') @Creates('_NodeList') | 11649 @Returns('_NodeList') @Creates('_NodeList') |
11692 final List<Node> labels; | 11650 final List<Node> labels; |
11693 | 11651 |
11694 /** @domName HTMLKeygenElement.name; @docsEditable true */ | 11652 /// @domName HTMLKeygenElement.name; @docsEditable true |
11695 String name; | 11653 String name; |
11696 | 11654 |
11697 /** @domName HTMLKeygenElement.type; @docsEditable true */ | 11655 /// @domName HTMLKeygenElement.type; @docsEditable true |
11698 final String type; | 11656 final String type; |
11699 | 11657 |
11700 /** @domName HTMLKeygenElement.validationMessage; @docsEditable true */ | 11658 /// @domName HTMLKeygenElement.validationMessage; @docsEditable true |
11701 final String validationMessage; | 11659 final String validationMessage; |
11702 | 11660 |
11703 /** @domName HTMLKeygenElement.validity; @docsEditable true */ | 11661 /// @domName HTMLKeygenElement.validity; @docsEditable true |
11704 final ValidityState validity; | 11662 final ValidityState validity; |
11705 | 11663 |
11706 /** @domName HTMLKeygenElement.willValidate; @docsEditable true */ | 11664 /// @domName HTMLKeygenElement.willValidate; @docsEditable true |
11707 final bool willValidate; | 11665 final bool willValidate; |
11708 | 11666 |
11709 /** @domName HTMLKeygenElement.checkValidity; @docsEditable true */ | 11667 /// @domName HTMLKeygenElement.checkValidity; @docsEditable true |
11710 bool checkValidity() native; | 11668 bool checkValidity() native; |
11711 | 11669 |
11712 /** @domName HTMLKeygenElement.setCustomValidity; @docsEditable true */ | 11670 /// @domName HTMLKeygenElement.setCustomValidity; @docsEditable true |
11713 void setCustomValidity(String error) native; | 11671 void setCustomValidity(String error) native; |
11714 } | 11672 } |
11715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11716 // for details. All rights reserved. Use of this source code is governed by a | 11674 // for details. All rights reserved. Use of this source code is governed by a |
11717 // BSD-style license that can be found in the LICENSE file. | 11675 // BSD-style license that can be found in the LICENSE file. |
11718 | 11676 |
11719 | 11677 |
11720 /// @domName HTMLLIElement; @docsEditable true | 11678 /// @domName HTMLLIElement; @docsEditable true |
11721 class LIElement extends Element implements Element native "*HTMLLIElement" { | 11679 class LIElement extends Element implements Element native "*HTMLLIElement" { |
11722 | 11680 |
11723 factory LIElement() => document.$dom_createElement("li"); | 11681 factory LIElement() => document.$dom_createElement("li"); |
11724 | 11682 |
11725 /** @domName HTMLLIElement.type; @docsEditable true */ | 11683 /// @domName HTMLLIElement.type; @docsEditable true |
11726 String type; | 11684 String type; |
11727 | 11685 |
11728 /** @domName HTMLLIElement.value; @docsEditable true */ | 11686 /// @domName HTMLLIElement.value; @docsEditable true |
11729 int value; | 11687 int value; |
11730 } | 11688 } |
11731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11732 // for details. All rights reserved. Use of this source code is governed by a | 11690 // for details. All rights reserved. Use of this source code is governed by a |
11733 // BSD-style license that can be found in the LICENSE file. | 11691 // BSD-style license that can be found in the LICENSE file. |
11734 | 11692 |
11735 | 11693 |
11736 /// @domName HTMLLabelElement; @docsEditable true | 11694 /// @domName HTMLLabelElement; @docsEditable true |
11737 class LabelElement extends Element implements Element native "*HTMLLabelElement"
{ | 11695 class LabelElement extends Element implements Element native "*HTMLLabelElement"
{ |
11738 | 11696 |
11739 factory LabelElement() => document.$dom_createElement("label"); | 11697 factory LabelElement() => document.$dom_createElement("label"); |
11740 | 11698 |
11741 /** @domName HTMLLabelElement.control; @docsEditable true */ | 11699 /// @domName HTMLLabelElement.control; @docsEditable true |
11742 final Element control; | 11700 final Element control; |
11743 | 11701 |
11744 /** @domName HTMLLabelElement.form; @docsEditable true */ | 11702 /// @domName HTMLLabelElement.form; @docsEditable true |
11745 final FormElement form; | 11703 final FormElement form; |
11746 | 11704 |
11747 /** @domName HTMLLabelElement.htmlFor; @docsEditable true */ | 11705 /// @domName HTMLLabelElement.htmlFor; @docsEditable true |
11748 String htmlFor; | 11706 String htmlFor; |
11749 } | 11707 } |
11750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11751 // for details. All rights reserved. Use of this source code is governed by a | 11709 // for details. All rights reserved. Use of this source code is governed by a |
11752 // BSD-style license that can be found in the LICENSE file. | 11710 // BSD-style license that can be found in the LICENSE file. |
11753 | 11711 |
11754 | 11712 |
11755 /// @domName HTMLLegendElement; @docsEditable true | 11713 /// @domName HTMLLegendElement; @docsEditable true |
11756 class LegendElement extends Element implements Element native "*HTMLLegendElemen
t" { | 11714 class LegendElement extends Element implements Element native "*HTMLLegendElemen
t" { |
11757 | 11715 |
11758 factory LegendElement() => document.$dom_createElement("legend"); | 11716 factory LegendElement() => document.$dom_createElement("legend"); |
11759 | 11717 |
11760 /** @domName HTMLLegendElement.align; @docsEditable true */ | 11718 /// @domName HTMLLegendElement.align; @docsEditable true |
11761 String align; | 11719 String align; |
11762 | 11720 |
11763 /** @domName HTMLLegendElement.form; @docsEditable true */ | 11721 /// @domName HTMLLegendElement.form; @docsEditable true |
11764 final FormElement form; | 11722 final FormElement form; |
11765 } | 11723 } |
11766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11767 // for details. All rights reserved. Use of this source code is governed by a | 11725 // for details. All rights reserved. Use of this source code is governed by a |
11768 // BSD-style license that can be found in the LICENSE file. | 11726 // BSD-style license that can be found in the LICENSE file. |
11769 | 11727 |
11770 | 11728 |
11771 /// @domName HTMLLinkElement; @docsEditable true | 11729 /// @domName HTMLLinkElement; @docsEditable true |
11772 class LinkElement extends Element implements Element native "*HTMLLinkElement" { | 11730 class LinkElement extends Element implements Element native "*HTMLLinkElement" { |
11773 | 11731 |
11774 factory LinkElement() => document.$dom_createElement("link"); | 11732 factory LinkElement() => document.$dom_createElement("link"); |
11775 | 11733 |
11776 /** @domName HTMLLinkElement.charset; @docsEditable true */ | 11734 /// @domName HTMLLinkElement.charset; @docsEditable true |
11777 String charset; | 11735 String charset; |
11778 | 11736 |
11779 /** @domName HTMLLinkElement.disabled; @docsEditable true */ | 11737 /// @domName HTMLLinkElement.disabled; @docsEditable true |
11780 bool disabled; | 11738 bool disabled; |
11781 | 11739 |
11782 /** @domName HTMLLinkElement.href; @docsEditable true */ | 11740 /// @domName HTMLLinkElement.href; @docsEditable true |
11783 String href; | 11741 String href; |
11784 | 11742 |
11785 /** @domName HTMLLinkElement.hreflang; @docsEditable true */ | 11743 /// @domName HTMLLinkElement.hreflang; @docsEditable true |
11786 String hreflang; | 11744 String hreflang; |
11787 | 11745 |
11788 /** @domName HTMLLinkElement.media; @docsEditable true */ | 11746 /// @domName HTMLLinkElement.media; @docsEditable true |
11789 String media; | 11747 String media; |
11790 | 11748 |
11791 /** @domName HTMLLinkElement.rel; @docsEditable true */ | 11749 /// @domName HTMLLinkElement.rel; @docsEditable true |
11792 String rel; | 11750 String rel; |
11793 | 11751 |
11794 /** @domName HTMLLinkElement.rev; @docsEditable true */ | 11752 /// @domName HTMLLinkElement.rev; @docsEditable true |
11795 String rev; | 11753 String rev; |
11796 | 11754 |
11797 /** @domName HTMLLinkElement.sheet; @docsEditable true */ | 11755 /// @domName HTMLLinkElement.sheet; @docsEditable true |
11798 final StyleSheet sheet; | 11756 final StyleSheet sheet; |
11799 | 11757 |
11800 /** @domName HTMLLinkElement.sizes; @docsEditable true */ | 11758 /// @domName HTMLLinkElement.sizes; @docsEditable true |
11801 DOMSettableTokenList sizes; | 11759 DOMSettableTokenList sizes; |
11802 | 11760 |
11803 /** @domName HTMLLinkElement.target; @docsEditable true */ | 11761 /// @domName HTMLLinkElement.target; @docsEditable true |
11804 String target; | 11762 String target; |
11805 | 11763 |
11806 /** @domName HTMLLinkElement.type; @docsEditable true */ | 11764 /// @domName HTMLLinkElement.type; @docsEditable true |
11807 String type; | 11765 String type; |
11808 } | 11766 } |
11809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11810 // for details. All rights reserved. Use of this source code is governed by a | 11768 // for details. All rights reserved. Use of this source code is governed by a |
11811 // BSD-style license that can be found in the LICENSE file. | 11769 // BSD-style license that can be found in the LICENSE file. |
11812 | 11770 |
11813 | 11771 |
11814 /// @domName History; @docsEditable true | 11772 /// @domName History; @docsEditable true |
11815 class LocalHistory implements History native "*History" { | 11773 class LocalHistory implements History native "*History" { |
11816 | 11774 |
11817 /** @domName History.length; @docsEditable true */ | 11775 /// @domName History.length; @docsEditable true |
11818 final int length; | 11776 final int length; |
11819 | 11777 |
11820 /** @domName History.state; @docsEditable true */ | 11778 /// @domName History.state; @docsEditable true |
11821 final dynamic state; | 11779 final dynamic state; |
11822 | 11780 |
11823 /** @domName History.back; @docsEditable true */ | 11781 /// @domName History.back; @docsEditable true |
11824 void back() native; | 11782 void back() native; |
11825 | 11783 |
11826 /** @domName History.forward; @docsEditable true */ | 11784 /// @domName History.forward; @docsEditable true |
11827 void forward() native; | 11785 void forward() native; |
11828 | 11786 |
11829 /** @domName History.go; @docsEditable true */ | 11787 /// @domName History.go; @docsEditable true |
11830 void go(int distance) native; | 11788 void go(int distance) native; |
11831 | 11789 |
11832 /** @domName History.pushState; @docsEditable true */ | 11790 /// @domName History.pushState; @docsEditable true |
11833 void pushState(Object data, String title, [String url]) native; | 11791 void pushState(Object data, String title, [String url]) native; |
11834 | 11792 |
11835 /** @domName History.replaceState; @docsEditable true */ | 11793 /// @domName History.replaceState; @docsEditable true |
11836 void replaceState(Object data, String title, [String url]) native; | 11794 void replaceState(Object data, String title, [String url]) native; |
11837 } | 11795 } |
11838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11839 // for details. All rights reserved. Use of this source code is governed by a | 11797 // for details. All rights reserved. Use of this source code is governed by a |
11840 // BSD-style license that can be found in the LICENSE file. | 11798 // BSD-style license that can be found in the LICENSE file. |
11841 | 11799 |
11842 | 11800 |
11843 /// @domName Location; @docsEditable true | 11801 /// @domName Location; @docsEditable true |
11844 class LocalLocation implements Location native "*Location" { | 11802 class LocalLocation implements Location native "*Location" { |
11845 | 11803 |
11846 /** @domName Location.ancestorOrigins; @docsEditable true */ | 11804 /// @domName Location.ancestorOrigins; @docsEditable true |
11847 @Returns('_DOMStringList') @Creates('_DOMStringList') | 11805 @Returns('_DOMStringList') @Creates('_DOMStringList') |
11848 final List<String> ancestorOrigins; | 11806 final List<String> ancestorOrigins; |
11849 | 11807 |
11850 /** @domName Location.hash; @docsEditable true */ | 11808 /// @domName Location.hash; @docsEditable true |
11851 String hash; | 11809 String hash; |
11852 | 11810 |
11853 /** @domName Location.host; @docsEditable true */ | 11811 /// @domName Location.host; @docsEditable true |
11854 String host; | 11812 String host; |
11855 | 11813 |
11856 /** @domName Location.hostname; @docsEditable true */ | 11814 /// @domName Location.hostname; @docsEditable true |
11857 String hostname; | 11815 String hostname; |
11858 | 11816 |
11859 /** @domName Location.href; @docsEditable true */ | 11817 /// @domName Location.href; @docsEditable true |
11860 String href; | 11818 String href; |
11861 | 11819 |
11862 /** @domName Location.origin; @docsEditable true */ | 11820 /// @domName Location.origin; @docsEditable true |
11863 final String origin; | 11821 final String origin; |
11864 | 11822 |
11865 /** @domName Location.pathname; @docsEditable true */ | 11823 /// @domName Location.pathname; @docsEditable true |
11866 String pathname; | 11824 String pathname; |
11867 | 11825 |
11868 /** @domName Location.port; @docsEditable true */ | 11826 /// @domName Location.port; @docsEditable true |
11869 String port; | 11827 String port; |
11870 | 11828 |
11871 /** @domName Location.protocol; @docsEditable true */ | 11829 /// @domName Location.protocol; @docsEditable true |
11872 String protocol; | 11830 String protocol; |
11873 | 11831 |
11874 /** @domName Location.search; @docsEditable true */ | 11832 /// @domName Location.search; @docsEditable true |
11875 String search; | 11833 String search; |
11876 | 11834 |
11877 /** @domName Location.assign; @docsEditable true */ | 11835 /// @domName Location.assign; @docsEditable true |
11878 void assign(String url) native; | 11836 void assign(String url) native; |
11879 | 11837 |
11880 /** @domName Location.reload; @docsEditable true */ | 11838 /// @domName Location.reload; @docsEditable true |
11881 void reload() native; | 11839 void reload() native; |
11882 | 11840 |
11883 /** @domName Location.replace; @docsEditable true */ | 11841 /// @domName Location.replace; @docsEditable true |
11884 void replace(String url) native; | 11842 void replace(String url) native; |
11885 | 11843 |
11886 /** @domName Location.toString; @docsEditable true */ | 11844 /// @domName Location.toString; @docsEditable true |
11887 String toString() native; | 11845 String toString() native; |
11888 } | 11846 } |
11889 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11890 // for details. All rights reserved. Use of this source code is governed by a | 11848 // for details. All rights reserved. Use of this source code is governed by a |
11891 // BSD-style license that can be found in the LICENSE file. | 11849 // BSD-style license that can be found in the LICENSE file. |
11892 | 11850 |
11893 | 11851 |
11894 /// @domName LocalMediaStream; @docsEditable true | 11852 /// @domName LocalMediaStream; @docsEditable true |
11895 class LocalMediaStream extends MediaStream implements EventTarget native "*Local
MediaStream" { | 11853 class LocalMediaStream extends MediaStream implements EventTarget native "*Local
MediaStream" { |
11896 | 11854 |
11897 /** @domName LocalMediaStream.stop; @docsEditable true */ | 11855 /// @domName LocalMediaStream.stop; @docsEditable true |
11898 void stop() native; | 11856 void stop() native; |
11899 } | 11857 } |
11900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11901 // for details. All rights reserved. Use of this source code is governed by a | 11859 // for details. All rights reserved. Use of this source code is governed by a |
11902 // BSD-style license that can be found in the LICENSE file. | 11860 // BSD-style license that can be found in the LICENSE file. |
11903 | 11861 |
11904 | 11862 |
11905 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { | 11863 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
11906 | 11864 |
11907 Document get document => JS('Document', '#.document', this); | 11865 Document get document => JS('Document', '#.document', this); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12037 * Register a [port] on this window under the given [name]. This | 11995 * Register a [port] on this window under the given [name]. This |
12038 * port may be retrieved by any isolate (or JavaScript script) | 11996 * port may be retrieved by any isolate (or JavaScript script) |
12039 * running in this window. | 11997 * running in this window. |
12040 */ | 11998 */ |
12041 void registerPort(String name, var port) { | 11999 void registerPort(String name, var port) { |
12042 var serialized = _serialize(port); | 12000 var serialized = _serialize(port); |
12043 document.documentElement.attributes['dart-port:$name'] = JSON.stringify(seri
alized); | 12001 document.documentElement.attributes['dart-port:$name'] = JSON.stringify(seri
alized); |
12044 } | 12002 } |
12045 | 12003 |
12046 | 12004 |
12047 /** | 12005 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
12048 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
12049 */ | |
12050 LocalWindowEvents get on => | 12006 LocalWindowEvents get on => |
12051 new LocalWindowEvents(this); | 12007 new LocalWindowEvents(this); |
12052 | 12008 |
12053 static const int PERSISTENT = 1; | 12009 static const int PERSISTENT = 1; |
12054 | 12010 |
12055 static const int TEMPORARY = 0; | 12011 static const int TEMPORARY = 0; |
12056 | 12012 |
12057 /** @domName Window.applicationCache; @docsEditable true */ | 12013 /// @domName Window.applicationCache; @docsEditable true |
12058 final DOMApplicationCache applicationCache; | 12014 final DOMApplicationCache applicationCache; |
12059 | 12015 |
12060 /** @domName Window.closed; @docsEditable true */ | 12016 /// @domName Window.closed; @docsEditable true |
12061 final bool closed; | 12017 final bool closed; |
12062 | 12018 |
12063 /** @domName Window.console; @docsEditable true */ | 12019 /// @domName Window.console; @docsEditable true |
12064 final Console console; | 12020 final Console console; |
12065 | 12021 |
12066 /** @domName Window.crypto; @docsEditable true */ | 12022 /// @domName Window.crypto; @docsEditable true |
12067 final Crypto crypto; | 12023 final Crypto crypto; |
12068 | 12024 |
12069 /** @domName Window.defaultStatus; @docsEditable true */ | 12025 /// @domName Window.defaultStatus; @docsEditable true |
12070 String defaultStatus; | 12026 String defaultStatus; |
12071 | 12027 |
12072 /** @domName Window.defaultstatus; @docsEditable true */ | 12028 /// @domName Window.defaultstatus; @docsEditable true |
12073 String defaultstatus; | 12029 String defaultstatus; |
12074 | 12030 |
12075 /** @domName Window.devicePixelRatio; @docsEditable true */ | 12031 /// @domName Window.devicePixelRatio; @docsEditable true |
12076 final num devicePixelRatio; | 12032 final num devicePixelRatio; |
12077 | 12033 |
12078 /** @domName Window.event; @docsEditable true */ | 12034 /// @domName Window.event; @docsEditable true |
12079 final Event event; | 12035 final Event event; |
12080 | 12036 |
12081 /** @domName Window.history; @docsEditable true */ | 12037 /// @domName Window.history; @docsEditable true |
12082 final LocalHistory history; | 12038 final LocalHistory history; |
12083 | 12039 |
12084 /** @domName Window.innerHeight; @docsEditable true */ | 12040 /// @domName Window.innerHeight; @docsEditable true |
12085 final int innerHeight; | 12041 final int innerHeight; |
12086 | 12042 |
12087 /** @domName Window.innerWidth; @docsEditable true */ | 12043 /// @domName Window.innerWidth; @docsEditable true |
12088 final int innerWidth; | 12044 final int innerWidth; |
12089 | 12045 |
12090 /** @domName Window.localStorage; @docsEditable true */ | 12046 /// @domName Window.localStorage; @docsEditable true |
12091 final Storage localStorage; | 12047 final Storage localStorage; |
12092 | 12048 |
12093 /** @domName Window.locationbar; @docsEditable true */ | 12049 /// @domName Window.locationbar; @docsEditable true |
12094 final BarInfo locationbar; | 12050 final BarInfo locationbar; |
12095 | 12051 |
12096 /** @domName Window.menubar; @docsEditable true */ | 12052 /// @domName Window.menubar; @docsEditable true |
12097 final BarInfo menubar; | 12053 final BarInfo menubar; |
12098 | 12054 |
12099 /** @domName Window.name; @docsEditable true */ | 12055 /// @domName Window.name; @docsEditable true |
12100 String name; | 12056 String name; |
12101 | 12057 |
12102 /** @domName Window.navigator; @docsEditable true */ | 12058 /// @domName Window.navigator; @docsEditable true |
12103 final Navigator navigator; | 12059 final Navigator navigator; |
12104 | 12060 |
12105 /** @domName Window.offscreenBuffering; @docsEditable true */ | 12061 /// @domName Window.offscreenBuffering; @docsEditable true |
12106 final bool offscreenBuffering; | 12062 final bool offscreenBuffering; |
12107 | 12063 |
12108 /** @domName Window.opener; @docsEditable true */ | 12064 /// @domName Window.opener; @docsEditable true |
12109 Window get opener => _convertNativeToDart_Window(this._opener); | 12065 Window get opener => _convertNativeToDart_Window(this._opener); |
12110 dynamic get _opener => JS("dynamic", "#.opener", this); | 12066 dynamic get _opener => JS("dynamic", "#.opener", this); |
12111 | 12067 |
12112 /** @domName Window.outerHeight; @docsEditable true */ | 12068 /// @domName Window.outerHeight; @docsEditable true |
12113 final int outerHeight; | 12069 final int outerHeight; |
12114 | 12070 |
12115 /** @domName Window.outerWidth; @docsEditable true */ | 12071 /// @domName Window.outerWidth; @docsEditable true |
12116 final int outerWidth; | 12072 final int outerWidth; |
12117 | 12073 |
12118 /** @domName DOMWindow.pagePopupController; @docsEditable true */ | 12074 /// @domName DOMWindow.pagePopupController; @docsEditable true |
12119 final PagePopupController pagePopupController; | 12075 final PagePopupController pagePopupController; |
12120 | 12076 |
12121 /** @domName Window.pageXOffset; @docsEditable true */ | 12077 /// @domName Window.pageXOffset; @docsEditable true |
12122 final int pageXOffset; | 12078 final int pageXOffset; |
12123 | 12079 |
12124 /** @domName Window.pageYOffset; @docsEditable true */ | 12080 /// @domName Window.pageYOffset; @docsEditable true |
12125 final int pageYOffset; | 12081 final int pageYOffset; |
12126 | 12082 |
12127 /** @domName Window.parent; @docsEditable true */ | 12083 /// @domName Window.parent; @docsEditable true |
12128 Window get parent => _convertNativeToDart_Window(this._parent); | 12084 Window get parent => _convertNativeToDart_Window(this._parent); |
12129 dynamic get _parent => JS("dynamic", "#.parent", this); | 12085 dynamic get _parent => JS("dynamic", "#.parent", this); |
12130 | 12086 |
12131 /** @domName Window.performance; @docsEditable true */ | 12087 /// @domName Window.performance; @docsEditable true |
12132 final Performance performance; | 12088 final Performance performance; |
12133 | 12089 |
12134 /** @domName Window.personalbar; @docsEditable true */ | 12090 /// @domName Window.personalbar; @docsEditable true |
12135 final BarInfo personalbar; | 12091 final BarInfo personalbar; |
12136 | 12092 |
12137 /** @domName Window.screen; @docsEditable true */ | 12093 /// @domName Window.screen; @docsEditable true |
12138 final Screen screen; | 12094 final Screen screen; |
12139 | 12095 |
12140 /** @domName Window.screenLeft; @docsEditable true */ | 12096 /// @domName Window.screenLeft; @docsEditable true |
12141 final int screenLeft; | 12097 final int screenLeft; |
12142 | 12098 |
12143 /** @domName Window.screenTop; @docsEditable true */ | 12099 /// @domName Window.screenTop; @docsEditable true |
12144 final int screenTop; | 12100 final int screenTop; |
12145 | 12101 |
12146 /** @domName Window.screenX; @docsEditable true */ | 12102 /// @domName Window.screenX; @docsEditable true |
12147 final int screenX; | 12103 final int screenX; |
12148 | 12104 |
12149 /** @domName Window.screenY; @docsEditable true */ | 12105 /// @domName Window.screenY; @docsEditable true |
12150 final int screenY; | 12106 final int screenY; |
12151 | 12107 |
12152 /** @domName Window.scrollX; @docsEditable true */ | 12108 /// @domName Window.scrollX; @docsEditable true |
12153 final int scrollX; | 12109 final int scrollX; |
12154 | 12110 |
12155 /** @domName Window.scrollY; @docsEditable true */ | 12111 /// @domName Window.scrollY; @docsEditable true |
12156 final int scrollY; | 12112 final int scrollY; |
12157 | 12113 |
12158 /** @domName Window.scrollbars; @docsEditable true */ | 12114 /// @domName Window.scrollbars; @docsEditable true |
12159 final BarInfo scrollbars; | 12115 final BarInfo scrollbars; |
12160 | 12116 |
12161 /** @domName Window.self; @docsEditable true */ | 12117 /// @domName Window.self; @docsEditable true |
12162 Window get self => _convertNativeToDart_Window(this._self); | 12118 Window get self => _convertNativeToDart_Window(this._self); |
12163 dynamic get _self => JS("dynamic", "#.self", this); | 12119 dynamic get _self => JS("dynamic", "#.self", this); |
12164 | 12120 |
12165 /** @domName Window.sessionStorage; @docsEditable true */ | 12121 /// @domName Window.sessionStorage; @docsEditable true |
12166 final Storage sessionStorage; | 12122 final Storage sessionStorage; |
12167 | 12123 |
12168 /** @domName Window.status; @docsEditable true */ | 12124 /// @domName Window.status; @docsEditable true |
12169 String status; | 12125 String status; |
12170 | 12126 |
12171 /** @domName Window.statusbar; @docsEditable true */ | 12127 /// @domName Window.statusbar; @docsEditable true |
12172 final BarInfo statusbar; | 12128 final BarInfo statusbar; |
12173 | 12129 |
12174 /** @domName Window.styleMedia; @docsEditable true */ | 12130 /// @domName Window.styleMedia; @docsEditable true |
12175 final StyleMedia styleMedia; | 12131 final StyleMedia styleMedia; |
12176 | 12132 |
12177 /** @domName Window.toolbar; @docsEditable true */ | 12133 /// @domName Window.toolbar; @docsEditable true |
12178 final BarInfo toolbar; | 12134 final BarInfo toolbar; |
12179 | 12135 |
12180 /** @domName Window.top; @docsEditable true */ | 12136 /// @domName Window.top; @docsEditable true |
12181 Window get top => _convertNativeToDart_Window(this._top); | 12137 Window get top => _convertNativeToDart_Window(this._top); |
12182 dynamic get _top => JS("dynamic", "#.top", this); | 12138 dynamic get _top => JS("dynamic", "#.top", this); |
12183 | 12139 |
12184 /** @domName DOMWindow.webkitIndexedDB; @docsEditable true */ | 12140 /// @domName DOMWindow.webkitIndexedDB; @docsEditable true |
12185 final IDBFactory webkitIndexedDB; | 12141 final IDBFactory webkitIndexedDB; |
12186 | 12142 |
12187 /** @domName DOMWindow.webkitNotifications; @docsEditable true */ | 12143 /// @domName DOMWindow.webkitNotifications; @docsEditable true |
12188 final NotificationCenter webkitNotifications; | 12144 final NotificationCenter webkitNotifications; |
12189 | 12145 |
12190 /** @domName DOMWindow.webkitStorageInfo; @docsEditable true */ | 12146 /// @domName DOMWindow.webkitStorageInfo; @docsEditable true |
12191 final StorageInfo webkitStorageInfo; | 12147 final StorageInfo webkitStorageInfo; |
12192 | 12148 |
12193 /** @domName Window.window; @docsEditable true */ | 12149 /// @domName Window.window; @docsEditable true |
12194 Window get window => _convertNativeToDart_Window(this._window); | 12150 Window get window => _convertNativeToDart_Window(this._window); |
12195 dynamic get _window => JS("dynamic", "#.window", this); | 12151 dynamic get _window => JS("dynamic", "#.window", this); |
12196 | 12152 |
12197 /** @domName Window.addEventListener; @docsEditable true */ | 12153 /// @domName Window.addEventListener; @docsEditable true |
12198 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 12154 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
12199 | 12155 |
12200 /** @domName Window.alert; @docsEditable true */ | 12156 /// @domName Window.alert; @docsEditable true |
12201 void alert(String message) native; | 12157 void alert(String message) native; |
12202 | 12158 |
12203 /** @domName Window.atob; @docsEditable true */ | 12159 /// @domName Window.atob; @docsEditable true |
12204 String atob(String string) native; | 12160 String atob(String string) native; |
12205 | 12161 |
12206 /** @domName Window.btoa; @docsEditable true */ | 12162 /// @domName Window.btoa; @docsEditable true |
12207 String btoa(String string) native; | 12163 String btoa(String string) native; |
12208 | 12164 |
12209 /** @domName Window.captureEvents; @docsEditable true */ | 12165 /// @domName Window.captureEvents; @docsEditable true |
12210 void captureEvents() native; | 12166 void captureEvents() native; |
12211 | 12167 |
12212 /** @domName Window.clearInterval; @docsEditable true */ | 12168 /// @domName Window.clearInterval; @docsEditable true |
12213 void clearInterval(int handle) native; | 12169 void clearInterval(int handle) native; |
12214 | 12170 |
12215 /** @domName Window.clearTimeout; @docsEditable true */ | 12171 /// @domName Window.clearTimeout; @docsEditable true |
12216 void clearTimeout(int handle) native; | 12172 void clearTimeout(int handle) native; |
12217 | 12173 |
12218 /** @domName Window.close; @docsEditable true */ | 12174 /// @domName Window.close; @docsEditable true |
12219 void close() native; | 12175 void close() native; |
12220 | 12176 |
12221 /** @domName Window.confirm; @docsEditable true */ | 12177 /// @domName Window.confirm; @docsEditable true |
12222 bool confirm(String message) native; | 12178 bool confirm(String message) native; |
12223 | 12179 |
12224 /** @domName Window.dispatchEvent; @docsEditable true */ | 12180 /// @domName Window.dispatchEvent; @docsEditable true |
12225 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 12181 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
12226 | 12182 |
12227 /** @domName Window.find; @docsEditable true */ | 12183 /// @domName Window.find; @docsEditable true |
12228 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | 12184 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; |
12229 | 12185 |
12230 /** @domName Window.getComputedStyle; @docsEditable true */ | 12186 /// @domName Window.getComputedStyle; @docsEditable true |
12231 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native "getComputedStyle"; | 12187 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native "getComputedStyle"; |
12232 | 12188 |
12233 /** @domName Window.getMatchedCSSRules; @docsEditable true */ | 12189 /// @domName Window.getMatchedCSSRules; @docsEditable true |
12234 @Returns('_CSSRuleList') @Creates('_CSSRuleList') | 12190 @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
12235 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native
; | 12191 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native
; |
12236 | 12192 |
12237 /** @domName Window.getSelection; @docsEditable true */ | 12193 /// @domName Window.getSelection; @docsEditable true |
12238 DOMSelection getSelection() native; | 12194 DOMSelection getSelection() native; |
12239 | 12195 |
12240 /** @domName Window.matchMedia; @docsEditable true */ | 12196 /// @domName Window.matchMedia; @docsEditable true |
12241 MediaQueryList matchMedia(String query) native; | 12197 MediaQueryList matchMedia(String query) native; |
12242 | 12198 |
12243 /** @domName Window.moveBy; @docsEditable true */ | 12199 /// @domName Window.moveBy; @docsEditable true |
12244 void moveBy(num x, num y) native; | 12200 void moveBy(num x, num y) native; |
12245 | 12201 |
12246 /** @domName Window.moveTo; @docsEditable true */ | 12202 /// @domName Window.moveTo; @docsEditable true |
12247 void moveTo(num x, num y) native; | 12203 void moveTo(num x, num y) native; |
12248 | 12204 |
12249 /** @domName DOMWindow.openDatabase; @docsEditable true */ | 12205 /// @domName DOMWindow.openDatabase; @docsEditable true |
12250 @Creates('Database') @Creates('DatabaseSync') | 12206 @Creates('Database') @Creates('DatabaseSync') |
12251 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; | 12207 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; |
12252 | 12208 |
12253 /** @domName Window.postMessage; @docsEditable true */ | 12209 /// @domName Window.postMessage; @docsEditable true |
12254 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { | 12210 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { |
12255 if (?message && | 12211 if (?message && |
12256 !?messagePorts) { | 12212 !?messagePorts) { |
12257 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 12213 var message_1 = _convertDartToNative_SerializedScriptValue(message); |
12258 _postMessage_1(message_1, targetOrigin); | 12214 _postMessage_1(message_1, targetOrigin); |
12259 return; | 12215 return; |
12260 } | 12216 } |
12261 if (?message) { | 12217 if (?message) { |
12262 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 12218 var message_2 = _convertDartToNative_SerializedScriptValue(message); |
12263 _postMessage_2(message_2, targetOrigin, messagePorts); | 12219 _postMessage_2(message_2, targetOrigin, messagePorts); |
12264 return; | 12220 return; |
12265 } | 12221 } |
12266 throw new ArgumentError("Incorrect number or type of arguments"); | 12222 throw new ArgumentError("Incorrect number or type of arguments"); |
12267 } | 12223 } |
12268 void _postMessage_1(message, targetOrigin) native "postMessage"; | 12224 void _postMessage_1(message, targetOrigin) native "postMessage"; |
12269 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess
age"; | 12225 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess
age"; |
12270 | 12226 |
12271 /** @domName Window.print; @docsEditable true */ | 12227 /// @domName Window.print; @docsEditable true |
12272 void print() native; | 12228 void print() native; |
12273 | 12229 |
12274 /** @domName Window.releaseEvents; @docsEditable true */ | 12230 /// @domName Window.releaseEvents; @docsEditable true |
12275 void releaseEvents() native; | 12231 void releaseEvents() native; |
12276 | 12232 |
12277 /** @domName Window.removeEventListener; @docsEditable true */ | 12233 /// @domName Window.removeEventListener; @docsEditable true |
12278 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 12234 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
12279 | 12235 |
12280 /** @domName Window.resizeBy; @docsEditable true */ | 12236 /// @domName Window.resizeBy; @docsEditable true |
12281 void resizeBy(num x, num y) native; | 12237 void resizeBy(num x, num y) native; |
12282 | 12238 |
12283 /** @domName Window.resizeTo; @docsEditable true */ | 12239 /// @domName Window.resizeTo; @docsEditable true |
12284 void resizeTo(num width, num height) native; | 12240 void resizeTo(num width, num height) native; |
12285 | 12241 |
12286 /** @domName Window.scroll; @docsEditable true */ | 12242 /// @domName Window.scroll; @docsEditable true |
12287 void scroll(int x, int y) native; | 12243 void scroll(int x, int y) native; |
12288 | 12244 |
12289 /** @domName Window.scrollBy; @docsEditable true */ | 12245 /// @domName Window.scrollBy; @docsEditable true |
12290 void scrollBy(int x, int y) native; | 12246 void scrollBy(int x, int y) native; |
12291 | 12247 |
12292 /** @domName Window.scrollTo; @docsEditable true */ | 12248 /// @domName Window.scrollTo; @docsEditable true |
12293 void scrollTo(int x, int y) native; | 12249 void scrollTo(int x, int y) native; |
12294 | 12250 |
12295 /** @domName Window.setInterval; @docsEditable true */ | 12251 /// @domName Window.setInterval; @docsEditable true |
12296 int setInterval(TimeoutHandler handler, int timeout) native; | 12252 int setInterval(TimeoutHandler handler, int timeout) native; |
12297 | 12253 |
12298 /** @domName Window.setTimeout; @docsEditable true */ | 12254 /// @domName Window.setTimeout; @docsEditable true |
12299 int setTimeout(TimeoutHandler handler, int timeout) native; | 12255 int setTimeout(TimeoutHandler handler, int timeout) native; |
12300 | 12256 |
12301 /** @domName Window.showModalDialog; @docsEditable true */ | 12257 /// @domName Window.showModalDialog; @docsEditable true |
12302 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | 12258 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; |
12303 | 12259 |
12304 /** @domName Window.stop; @docsEditable true */ | 12260 /// @domName Window.stop; @docsEditable true |
12305 void stop() native; | 12261 void stop() native; |
12306 | 12262 |
12307 /** @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true */ | 12263 /// @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true |
12308 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; | 12264 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; |
12309 | 12265 |
12310 /** @domName Window.webkitConvertPointFromPageToNode; @docsEditable true */ | 12266 /// @domName Window.webkitConvertPointFromPageToNode; @docsEditable true |
12311 Point webkitConvertPointFromPageToNode(Node node, Point p) native; | 12267 Point webkitConvertPointFromPageToNode(Node node, Point p) native; |
12312 | 12268 |
12313 /** @domName DOMWindow.webkitRequestFileSystem; @docsEditable true */ | 12269 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true |
12314 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; | 12270 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; |
12315 | 12271 |
12316 /** @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true */ | 12272 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true |
12317 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 12273 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; |
12318 | 12274 |
12319 } | 12275 } |
12320 | 12276 |
12321 class LocalWindowEvents extends Events { | 12277 class LocalWindowEvents extends Events { |
12322 LocalWindowEvents(EventTarget _ptr) : super(_ptr); | 12278 LocalWindowEvents(EventTarget _ptr) : super(_ptr); |
12323 | 12279 |
12324 EventListenerList get abort => this['abort']; | 12280 EventListenerList get abort => this['abort']; |
12325 | 12281 |
12326 EventListenerList get beforeUnload => this['beforeunload']; | 12282 EventListenerList get beforeUnload => this['beforeunload']; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12471 // for details. All rights reserved. Use of this source code is governed by a | 12427 // for details. All rights reserved. Use of this source code is governed by a |
12472 // BSD-style license that can be found in the LICENSE file. | 12428 // BSD-style license that can be found in the LICENSE file. |
12473 | 12429 |
12474 | 12430 |
12475 /// @domName HTMLMapElement; @docsEditable true | 12431 /// @domName HTMLMapElement; @docsEditable true |
12476 class MapElement extends Element implements Element native "*HTMLMapElement" { | 12432 class MapElement extends Element implements Element native "*HTMLMapElement" { |
12477 | 12433 |
12478 factory MapElement() => document.$dom_createElement("map"); | 12434 factory MapElement() => document.$dom_createElement("map"); |
12479 | 12435 |
12480 /** @domName HTMLMapElement.areas; @docsEditable true */ | 12436 /// @domName HTMLMapElement.areas; @docsEditable true |
12481 final HTMLCollection areas; | 12437 final HTMLCollection areas; |
12482 | 12438 |
12483 /** @domName HTMLMapElement.name; @docsEditable true */ | 12439 /// @domName HTMLMapElement.name; @docsEditable true |
12484 String name; | 12440 String name; |
12485 } | 12441 } |
12486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12487 // for details. All rights reserved. Use of this source code is governed by a | 12443 // for details. All rights reserved. Use of this source code is governed by a |
12488 // BSD-style license that can be found in the LICENSE file. | 12444 // BSD-style license that can be found in the LICENSE file. |
12489 | 12445 |
12490 | 12446 |
12491 /// @domName HTMLMarqueeElement; @docsEditable true | 12447 /// @domName HTMLMarqueeElement; @docsEditable true |
12492 class MarqueeElement extends Element implements Element native "*HTMLMarqueeElem
ent" { | 12448 class MarqueeElement extends Element implements Element native "*HTMLMarqueeElem
ent" { |
12493 | 12449 |
12494 /** @domName HTMLMarqueeElement.behavior; @docsEditable true */ | 12450 /// @domName HTMLMarqueeElement.behavior; @docsEditable true |
12495 String behavior; | 12451 String behavior; |
12496 | 12452 |
12497 /** @domName HTMLMarqueeElement.bgColor; @docsEditable true */ | 12453 /// @domName HTMLMarqueeElement.bgColor; @docsEditable true |
12498 String bgColor; | 12454 String bgColor; |
12499 | 12455 |
12500 /** @domName HTMLMarqueeElement.direction; @docsEditable true */ | 12456 /// @domName HTMLMarqueeElement.direction; @docsEditable true |
12501 String direction; | 12457 String direction; |
12502 | 12458 |
12503 /** @domName HTMLMarqueeElement.height; @docsEditable true */ | 12459 /// @domName HTMLMarqueeElement.height; @docsEditable true |
12504 String height; | 12460 String height; |
12505 | 12461 |
12506 /** @domName HTMLMarqueeElement.hspace; @docsEditable true */ | 12462 /// @domName HTMLMarqueeElement.hspace; @docsEditable true |
12507 int hspace; | 12463 int hspace; |
12508 | 12464 |
12509 /** @domName HTMLMarqueeElement.loop; @docsEditable true */ | 12465 /// @domName HTMLMarqueeElement.loop; @docsEditable true |
12510 int loop; | 12466 int loop; |
12511 | 12467 |
12512 /** @domName HTMLMarqueeElement.scrollAmount; @docsEditable true */ | 12468 /// @domName HTMLMarqueeElement.scrollAmount; @docsEditable true |
12513 int scrollAmount; | 12469 int scrollAmount; |
12514 | 12470 |
12515 /** @domName HTMLMarqueeElement.scrollDelay; @docsEditable true */ | 12471 /// @domName HTMLMarqueeElement.scrollDelay; @docsEditable true |
12516 int scrollDelay; | 12472 int scrollDelay; |
12517 | 12473 |
12518 /** @domName HTMLMarqueeElement.trueSpeed; @docsEditable true */ | 12474 /// @domName HTMLMarqueeElement.trueSpeed; @docsEditable true |
12519 bool trueSpeed; | 12475 bool trueSpeed; |
12520 | 12476 |
12521 /** @domName HTMLMarqueeElement.vspace; @docsEditable true */ | 12477 /// @domName HTMLMarqueeElement.vspace; @docsEditable true |
12522 int vspace; | 12478 int vspace; |
12523 | 12479 |
12524 /** @domName HTMLMarqueeElement.width; @docsEditable true */ | 12480 /// @domName HTMLMarqueeElement.width; @docsEditable true |
12525 String width; | 12481 String width; |
12526 | 12482 |
12527 /** @domName HTMLMarqueeElement.start; @docsEditable true */ | 12483 /// @domName HTMLMarqueeElement.start; @docsEditable true |
12528 void start() native; | 12484 void start() native; |
12529 | 12485 |
12530 /** @domName HTMLMarqueeElement.stop; @docsEditable true */ | 12486 /// @domName HTMLMarqueeElement.stop; @docsEditable true |
12531 void stop() native; | 12487 void stop() native; |
12532 } | 12488 } |
12533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12534 // for details. All rights reserved. Use of this source code is governed by a | 12490 // for details. All rights reserved. Use of this source code is governed by a |
12535 // BSD-style license that can be found in the LICENSE file. | 12491 // BSD-style license that can be found in the LICENSE file. |
12536 | 12492 |
12537 | 12493 |
12538 /// @domName MediaController; @docsEditable true | 12494 /// @domName MediaController; @docsEditable true |
12539 class MediaController extends EventTarget native "*MediaController" { | 12495 class MediaController extends EventTarget native "*MediaController" { |
12540 | 12496 |
12541 factory MediaController() => _MediaControllerFactoryProvider.createMediaContro
ller(); | 12497 factory MediaController() => _MediaControllerFactoryProvider.createMediaContro
ller(); |
12542 | 12498 |
12543 /** @domName MediaController.buffered; @docsEditable true */ | 12499 /// @domName MediaController.buffered; @docsEditable true |
12544 final TimeRanges buffered; | 12500 final TimeRanges buffered; |
12545 | 12501 |
12546 /** @domName MediaController.currentTime; @docsEditable true */ | 12502 /// @domName MediaController.currentTime; @docsEditable true |
12547 num currentTime; | 12503 num currentTime; |
12548 | 12504 |
12549 /** @domName MediaController.defaultPlaybackRate; @docsEditable true */ | 12505 /// @domName MediaController.defaultPlaybackRate; @docsEditable true |
12550 num defaultPlaybackRate; | 12506 num defaultPlaybackRate; |
12551 | 12507 |
12552 /** @domName MediaController.duration; @docsEditable true */ | 12508 /// @domName MediaController.duration; @docsEditable true |
12553 final num duration; | 12509 final num duration; |
12554 | 12510 |
12555 /** @domName MediaController.muted; @docsEditable true */ | 12511 /// @domName MediaController.muted; @docsEditable true |
12556 bool muted; | 12512 bool muted; |
12557 | 12513 |
12558 /** @domName MediaController.paused; @docsEditable true */ | 12514 /// @domName MediaController.paused; @docsEditable true |
12559 final bool paused; | 12515 final bool paused; |
12560 | 12516 |
12561 /** @domName MediaController.playbackRate; @docsEditable true */ | 12517 /// @domName MediaController.playbackRate; @docsEditable true |
12562 num playbackRate; | 12518 num playbackRate; |
12563 | 12519 |
12564 /** @domName MediaController.played; @docsEditable true */ | 12520 /// @domName MediaController.played; @docsEditable true |
12565 final TimeRanges played; | 12521 final TimeRanges played; |
12566 | 12522 |
12567 /** @domName MediaController.seekable; @docsEditable true */ | 12523 /// @domName MediaController.seekable; @docsEditable true |
12568 final TimeRanges seekable; | 12524 final TimeRanges seekable; |
12569 | 12525 |
12570 /** @domName MediaController.volume; @docsEditable true */ | 12526 /// @domName MediaController.volume; @docsEditable true |
12571 num volume; | 12527 num volume; |
12572 | 12528 |
12573 /** @domName MediaController.addEventListener; @docsEditable true */ | 12529 /// @domName MediaController.addEventListener; @docsEditable true |
12574 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 12530 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
12575 | 12531 |
12576 /** @domName MediaController.dispatchEvent; @docsEditable true */ | 12532 /// @domName MediaController.dispatchEvent; @docsEditable true |
12577 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 12533 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
12578 | 12534 |
12579 /** @domName MediaController.pause; @docsEditable true */ | 12535 /// @domName MediaController.pause; @docsEditable true |
12580 void pause() native; | 12536 void pause() native; |
12581 | 12537 |
12582 /** @domName MediaController.play; @docsEditable true */ | 12538 /// @domName MediaController.play; @docsEditable true |
12583 void play() native; | 12539 void play() native; |
12584 | 12540 |
12585 /** @domName MediaController.removeEventListener; @docsEditable true */ | 12541 /// @domName MediaController.removeEventListener; @docsEditable true |
12586 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 12542 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
12587 } | 12543 } |
12588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12589 // for details. All rights reserved. Use of this source code is governed by a | 12545 // for details. All rights reserved. Use of this source code is governed by a |
12590 // BSD-style license that can be found in the LICENSE file. | 12546 // BSD-style license that can be found in the LICENSE file. |
12591 | 12547 |
12592 | 12548 |
12593 /// @domName HTMLMediaElement; @docsEditable true | 12549 /// @domName HTMLMediaElement; @docsEditable true |
12594 class MediaElement extends Element implements Element native "*HTMLMediaElement"
{ | 12550 class MediaElement extends Element implements Element native "*HTMLMediaElement"
{ |
12595 | 12551 |
12596 /** | 12552 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
12597 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
12598 */ | |
12599 MediaElementEvents get on => | 12553 MediaElementEvents get on => |
12600 new MediaElementEvents(this); | 12554 new MediaElementEvents(this); |
12601 | 12555 |
12602 static const int HAVE_CURRENT_DATA = 2; | 12556 static const int HAVE_CURRENT_DATA = 2; |
12603 | 12557 |
12604 static const int HAVE_ENOUGH_DATA = 4; | 12558 static const int HAVE_ENOUGH_DATA = 4; |
12605 | 12559 |
12606 static const int HAVE_FUTURE_DATA = 3; | 12560 static const int HAVE_FUTURE_DATA = 3; |
12607 | 12561 |
12608 static const int HAVE_METADATA = 1; | 12562 static const int HAVE_METADATA = 1; |
12609 | 12563 |
12610 static const int HAVE_NOTHING = 0; | 12564 static const int HAVE_NOTHING = 0; |
12611 | 12565 |
12612 static const int NETWORK_EMPTY = 0; | 12566 static const int NETWORK_EMPTY = 0; |
12613 | 12567 |
12614 static const int NETWORK_IDLE = 1; | 12568 static const int NETWORK_IDLE = 1; |
12615 | 12569 |
12616 static const int NETWORK_LOADING = 2; | 12570 static const int NETWORK_LOADING = 2; |
12617 | 12571 |
12618 static const int NETWORK_NO_SOURCE = 3; | 12572 static const int NETWORK_NO_SOURCE = 3; |
12619 | 12573 |
12620 /** @domName HTMLMediaElement.autoplay; @docsEditable true */ | 12574 /// @domName HTMLMediaElement.autoplay; @docsEditable true |
12621 bool autoplay; | 12575 bool autoplay; |
12622 | 12576 |
12623 /** @domName HTMLMediaElement.buffered; @docsEditable true */ | 12577 /// @domName HTMLMediaElement.buffered; @docsEditable true |
12624 final TimeRanges buffered; | 12578 final TimeRanges buffered; |
12625 | 12579 |
12626 /** @domName HTMLMediaElement.controller; @docsEditable true */ | 12580 /// @domName HTMLMediaElement.controller; @docsEditable true |
12627 MediaController controller; | 12581 MediaController controller; |
12628 | 12582 |
12629 /** @domName HTMLMediaElement.controls; @docsEditable true */ | 12583 /// @domName HTMLMediaElement.controls; @docsEditable true |
12630 bool controls; | 12584 bool controls; |
12631 | 12585 |
12632 /** @domName HTMLMediaElement.currentSrc; @docsEditable true */ | 12586 /// @domName HTMLMediaElement.currentSrc; @docsEditable true |
12633 final String currentSrc; | 12587 final String currentSrc; |
12634 | 12588 |
12635 /** @domName HTMLMediaElement.currentTime; @docsEditable true */ | 12589 /// @domName HTMLMediaElement.currentTime; @docsEditable true |
12636 num currentTime; | 12590 num currentTime; |
12637 | 12591 |
12638 /** @domName HTMLMediaElement.defaultMuted; @docsEditable true */ | 12592 /// @domName HTMLMediaElement.defaultMuted; @docsEditable true |
12639 bool defaultMuted; | 12593 bool defaultMuted; |
12640 | 12594 |
12641 /** @domName HTMLMediaElement.defaultPlaybackRate; @docsEditable true */ | 12595 /// @domName HTMLMediaElement.defaultPlaybackRate; @docsEditable true |
12642 num defaultPlaybackRate; | 12596 num defaultPlaybackRate; |
12643 | 12597 |
12644 /** @domName HTMLMediaElement.duration; @docsEditable true */ | 12598 /// @domName HTMLMediaElement.duration; @docsEditable true |
12645 final num duration; | 12599 final num duration; |
12646 | 12600 |
12647 /** @domName HTMLMediaElement.ended; @docsEditable true */ | 12601 /// @domName HTMLMediaElement.ended; @docsEditable true |
12648 final bool ended; | 12602 final bool ended; |
12649 | 12603 |
12650 /** @domName HTMLMediaElement.error; @docsEditable true */ | 12604 /// @domName HTMLMediaElement.error; @docsEditable true |
12651 final MediaError error; | 12605 final MediaError error; |
12652 | 12606 |
12653 /** @domName HTMLMediaElement.initialTime; @docsEditable true */ | 12607 /// @domName HTMLMediaElement.initialTime; @docsEditable true |
12654 final num initialTime; | 12608 final num initialTime; |
12655 | 12609 |
12656 /** @domName HTMLMediaElement.loop; @docsEditable true */ | 12610 /// @domName HTMLMediaElement.loop; @docsEditable true |
12657 bool loop; | 12611 bool loop; |
12658 | 12612 |
12659 /** @domName HTMLMediaElement.mediaGroup; @docsEditable true */ | 12613 /// @domName HTMLMediaElement.mediaGroup; @docsEditable true |
12660 String mediaGroup; | 12614 String mediaGroup; |
12661 | 12615 |
12662 /** @domName HTMLMediaElement.muted; @docsEditable true */ | 12616 /// @domName HTMLMediaElement.muted; @docsEditable true |
12663 bool muted; | 12617 bool muted; |
12664 | 12618 |
12665 /** @domName HTMLMediaElement.networkState; @docsEditable true */ | 12619 /// @domName HTMLMediaElement.networkState; @docsEditable true |
12666 final int networkState; | 12620 final int networkState; |
12667 | 12621 |
12668 /** @domName HTMLMediaElement.paused; @docsEditable true */ | 12622 /// @domName HTMLMediaElement.paused; @docsEditable true |
12669 final bool paused; | 12623 final bool paused; |
12670 | 12624 |
12671 /** @domName HTMLMediaElement.playbackRate; @docsEditable true */ | 12625 /// @domName HTMLMediaElement.playbackRate; @docsEditable true |
12672 num playbackRate; | 12626 num playbackRate; |
12673 | 12627 |
12674 /** @domName HTMLMediaElement.played; @docsEditable true */ | 12628 /// @domName HTMLMediaElement.played; @docsEditable true |
12675 final TimeRanges played; | 12629 final TimeRanges played; |
12676 | 12630 |
12677 /** @domName HTMLMediaElement.preload; @docsEditable true */ | 12631 /// @domName HTMLMediaElement.preload; @docsEditable true |
12678 String preload; | 12632 String preload; |
12679 | 12633 |
12680 /** @domName HTMLMediaElement.readyState; @docsEditable true */ | 12634 /// @domName HTMLMediaElement.readyState; @docsEditable true |
12681 final int readyState; | 12635 final int readyState; |
12682 | 12636 |
12683 /** @domName HTMLMediaElement.seekable; @docsEditable true */ | 12637 /// @domName HTMLMediaElement.seekable; @docsEditable true |
12684 final TimeRanges seekable; | 12638 final TimeRanges seekable; |
12685 | 12639 |
12686 /** @domName HTMLMediaElement.seeking; @docsEditable true */ | 12640 /// @domName HTMLMediaElement.seeking; @docsEditable true |
12687 final bool seeking; | 12641 final bool seeking; |
12688 | 12642 |
12689 /** @domName HTMLMediaElement.src; @docsEditable true */ | 12643 /// @domName HTMLMediaElement.src; @docsEditable true |
12690 String src; | 12644 String src; |
12691 | 12645 |
12692 /** @domName HTMLMediaElement.startTime; @docsEditable true */ | 12646 /// @domName HTMLMediaElement.startTime; @docsEditable true |
12693 final num startTime; | 12647 final num startTime; |
12694 | 12648 |
12695 /** @domName HTMLMediaElement.textTracks; @docsEditable true */ | 12649 /// @domName HTMLMediaElement.textTracks; @docsEditable true |
12696 final TextTrackList textTracks; | 12650 final TextTrackList textTracks; |
12697 | 12651 |
12698 /** @domName HTMLMediaElement.volume; @docsEditable true */ | 12652 /// @domName HTMLMediaElement.volume; @docsEditable true |
12699 num volume; | 12653 num volume; |
12700 | 12654 |
12701 /** @domName HTMLMediaElement.webkitAudioDecodedByteCount; @docsEditable true
*/ | 12655 /// @domName HTMLMediaElement.webkitAudioDecodedByteCount; @docsEditable true |
12702 final int webkitAudioDecodedByteCount; | 12656 final int webkitAudioDecodedByteCount; |
12703 | 12657 |
12704 /** @domName HTMLMediaElement.webkitClosedCaptionsVisible; @docsEditable true
*/ | 12658 /// @domName HTMLMediaElement.webkitClosedCaptionsVisible; @docsEditable true |
12705 bool webkitClosedCaptionsVisible; | 12659 bool webkitClosedCaptionsVisible; |
12706 | 12660 |
12707 /** @domName HTMLMediaElement.webkitHasClosedCaptions; @docsEditable true */ | 12661 /// @domName HTMLMediaElement.webkitHasClosedCaptions; @docsEditable true |
12708 final bool webkitHasClosedCaptions; | 12662 final bool webkitHasClosedCaptions; |
12709 | 12663 |
12710 /** @domName HTMLMediaElement.webkitPreservesPitch; @docsEditable true */ | 12664 /// @domName HTMLMediaElement.webkitPreservesPitch; @docsEditable true |
12711 bool webkitPreservesPitch; | 12665 bool webkitPreservesPitch; |
12712 | 12666 |
12713 /** @domName HTMLMediaElement.webkitVideoDecodedByteCount; @docsEditable true
*/ | 12667 /// @domName HTMLMediaElement.webkitVideoDecodedByteCount; @docsEditable true |
12714 final int webkitVideoDecodedByteCount; | 12668 final int webkitVideoDecodedByteCount; |
12715 | 12669 |
12716 /** @domName HTMLMediaElement.addTextTrack; @docsEditable true */ | 12670 /// @domName HTMLMediaElement.addTextTrack; @docsEditable true |
12717 TextTrack addTextTrack(String kind, [String label, String language]) native; | 12671 TextTrack addTextTrack(String kind, [String label, String language]) native; |
12718 | 12672 |
12719 /** @domName HTMLMediaElement.canPlayType; @docsEditable true */ | 12673 /// @domName HTMLMediaElement.canPlayType; @docsEditable true |
12720 String canPlayType(String type, String keySystem) native; | 12674 String canPlayType(String type, String keySystem) native; |
12721 | 12675 |
12722 /** @domName HTMLMediaElement.load; @docsEditable true */ | 12676 /// @domName HTMLMediaElement.load; @docsEditable true |
12723 void load() native; | 12677 void load() native; |
12724 | 12678 |
12725 /** @domName HTMLMediaElement.pause; @docsEditable true */ | 12679 /// @domName HTMLMediaElement.pause; @docsEditable true |
12726 void pause() native; | 12680 void pause() native; |
12727 | 12681 |
12728 /** @domName HTMLMediaElement.play; @docsEditable true */ | 12682 /// @domName HTMLMediaElement.play; @docsEditable true |
12729 void play() native; | 12683 void play() native; |
12730 | 12684 |
12731 /** @domName HTMLMediaElement.webkitAddKey; @docsEditable true */ | 12685 /// @domName HTMLMediaElement.webkitAddKey; @docsEditable true |
12732 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]) native; | 12686 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]) native; |
12733 | 12687 |
12734 /** @domName HTMLMediaElement.webkitCancelKeyRequest; @docsEditable true */ | 12688 /// @domName HTMLMediaElement.webkitCancelKeyRequest; @docsEditable true |
12735 void webkitCancelKeyRequest(String keySystem, String sessionId) native; | 12689 void webkitCancelKeyRequest(String keySystem, String sessionId) native; |
12736 | 12690 |
12737 /** @domName HTMLMediaElement.webkitGenerateKeyRequest; @docsEditable true */ | 12691 /// @domName HTMLMediaElement.webkitGenerateKeyRequest; @docsEditable true |
12738 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; | 12692 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; |
12739 } | 12693 } |
12740 | 12694 |
12741 class MediaElementEvents extends ElementEvents { | 12695 class MediaElementEvents extends ElementEvents { |
12742 MediaElementEvents(EventTarget _ptr) : super(_ptr); | 12696 MediaElementEvents(EventTarget _ptr) : super(_ptr); |
12743 | 12697 |
12744 EventListenerList get canPlay => this['canplay']; | 12698 EventListenerList get canPlay => this['canplay']; |
12745 | 12699 |
12746 EventListenerList get canPlayThrough => this['canplaythrough']; | 12700 EventListenerList get canPlayThrough => this['canplaythrough']; |
12747 | 12701 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12792 EventListenerList get needKey => this['webkitneedkey']; | 12746 EventListenerList get needKey => this['webkitneedkey']; |
12793 } | 12747 } |
12794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12795 // for details. All rights reserved. Use of this source code is governed by a | 12749 // for details. All rights reserved. Use of this source code is governed by a |
12796 // BSD-style license that can be found in the LICENSE file. | 12750 // BSD-style license that can be found in the LICENSE file. |
12797 | 12751 |
12798 | 12752 |
12799 /// @domName MediaElementAudioSourceNode; @docsEditable true | 12753 /// @domName MediaElementAudioSourceNode; @docsEditable true |
12800 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA
udioSourceNode" { | 12754 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA
udioSourceNode" { |
12801 | 12755 |
12802 /** @domName MediaElementAudioSourceNode.mediaElement; @docsEditable true */ | 12756 /// @domName MediaElementAudioSourceNode.mediaElement; @docsEditable true |
12803 final MediaElement mediaElement; | 12757 final MediaElement mediaElement; |
12804 } | 12758 } |
12805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12806 // for details. All rights reserved. Use of this source code is governed by a | 12760 // for details. All rights reserved. Use of this source code is governed by a |
12807 // BSD-style license that can be found in the LICENSE file. | 12761 // BSD-style license that can be found in the LICENSE file. |
12808 | 12762 |
12809 | 12763 |
12810 /// @domName MediaError; @docsEditable true | 12764 /// @domName MediaError; @docsEditable true |
12811 class MediaError native "*MediaError" { | 12765 class MediaError native "*MediaError" { |
12812 | 12766 |
12813 static const int MEDIA_ERR_ABORTED = 1; | 12767 static const int MEDIA_ERR_ABORTED = 1; |
12814 | 12768 |
12815 static const int MEDIA_ERR_DECODE = 3; | 12769 static const int MEDIA_ERR_DECODE = 3; |
12816 | 12770 |
12817 static const int MEDIA_ERR_ENCRYPTED = 5; | 12771 static const int MEDIA_ERR_ENCRYPTED = 5; |
12818 | 12772 |
12819 static const int MEDIA_ERR_NETWORK = 2; | 12773 static const int MEDIA_ERR_NETWORK = 2; |
12820 | 12774 |
12821 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | 12775 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; |
12822 | 12776 |
12823 /** @domName MediaError.code; @docsEditable true */ | 12777 /// @domName MediaError.code; @docsEditable true |
12824 final int code; | 12778 final int code; |
12825 } | 12779 } |
12826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12780 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12827 // for details. All rights reserved. Use of this source code is governed by a | 12781 // for details. All rights reserved. Use of this source code is governed by a |
12828 // BSD-style license that can be found in the LICENSE file. | 12782 // BSD-style license that can be found in the LICENSE file. |
12829 | 12783 |
12830 | 12784 |
12831 /// @domName MediaKeyError; @docsEditable true | 12785 /// @domName MediaKeyError; @docsEditable true |
12832 class MediaKeyError native "*MediaKeyError" { | 12786 class MediaKeyError native "*MediaKeyError" { |
12833 | 12787 |
12834 static const int MEDIA_KEYERR_CLIENT = 2; | 12788 static const int MEDIA_KEYERR_CLIENT = 2; |
12835 | 12789 |
12836 static const int MEDIA_KEYERR_DOMAIN = 6; | 12790 static const int MEDIA_KEYERR_DOMAIN = 6; |
12837 | 12791 |
12838 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; | 12792 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; |
12839 | 12793 |
12840 static const int MEDIA_KEYERR_OUTPUT = 4; | 12794 static const int MEDIA_KEYERR_OUTPUT = 4; |
12841 | 12795 |
12842 static const int MEDIA_KEYERR_SERVICE = 3; | 12796 static const int MEDIA_KEYERR_SERVICE = 3; |
12843 | 12797 |
12844 static const int MEDIA_KEYERR_UNKNOWN = 1; | 12798 static const int MEDIA_KEYERR_UNKNOWN = 1; |
12845 | 12799 |
12846 /** @domName MediaKeyError.code; @docsEditable true */ | 12800 /// @domName MediaKeyError.code; @docsEditable true |
12847 final int code; | 12801 final int code; |
12848 } | 12802 } |
12849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12850 // for details. All rights reserved. Use of this source code is governed by a | 12804 // for details. All rights reserved. Use of this source code is governed by a |
12851 // BSD-style license that can be found in the LICENSE file. | 12805 // BSD-style license that can be found in the LICENSE file. |
12852 | 12806 |
12853 | 12807 |
12854 /// @domName MediaKeyEvent; @docsEditable true | 12808 /// @domName MediaKeyEvent; @docsEditable true |
12855 class MediaKeyEvent extends Event native "*MediaKeyEvent" { | 12809 class MediaKeyEvent extends Event native "*MediaKeyEvent" { |
12856 | 12810 |
12857 /** @domName MediaKeyEvent.defaultURL; @docsEditable true */ | 12811 /// @domName MediaKeyEvent.defaultURL; @docsEditable true |
12858 final String defaultURL; | 12812 final String defaultURL; |
12859 | 12813 |
12860 /** @domName MediaKeyEvent.errorCode; @docsEditable true */ | 12814 /// @domName MediaKeyEvent.errorCode; @docsEditable true |
12861 final MediaKeyError errorCode; | 12815 final MediaKeyError errorCode; |
12862 | 12816 |
12863 /** @domName MediaKeyEvent.initData; @docsEditable true */ | 12817 /// @domName MediaKeyEvent.initData; @docsEditable true |
12864 final Uint8Array initData; | 12818 final Uint8Array initData; |
12865 | 12819 |
12866 /** @domName MediaKeyEvent.keySystem; @docsEditable true */ | 12820 /// @domName MediaKeyEvent.keySystem; @docsEditable true |
12867 final String keySystem; | 12821 final String keySystem; |
12868 | 12822 |
12869 /** @domName MediaKeyEvent.message; @docsEditable true */ | 12823 /// @domName MediaKeyEvent.message; @docsEditable true |
12870 final Uint8Array message; | 12824 final Uint8Array message; |
12871 | 12825 |
12872 /** @domName MediaKeyEvent.sessionId; @docsEditable true */ | 12826 /// @domName MediaKeyEvent.sessionId; @docsEditable true |
12873 final String sessionId; | 12827 final String sessionId; |
12874 | 12828 |
12875 /** @domName MediaKeyEvent.systemCode; @docsEditable true */ | 12829 /// @domName MediaKeyEvent.systemCode; @docsEditable true |
12876 final int systemCode; | 12830 final int systemCode; |
12877 } | 12831 } |
12878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12879 // for details. All rights reserved. Use of this source code is governed by a | 12833 // for details. All rights reserved. Use of this source code is governed by a |
12880 // BSD-style license that can be found in the LICENSE file. | 12834 // BSD-style license that can be found in the LICENSE file. |
12881 | 12835 |
12882 | 12836 |
12883 /// @domName MediaList; @docsEditable true | 12837 /// @domName MediaList; @docsEditable true |
12884 class MediaList native "*MediaList" { | 12838 class MediaList native "*MediaList" { |
12885 | 12839 |
12886 /** @domName MediaList.length; @docsEditable true */ | 12840 /// @domName MediaList.length; @docsEditable true |
12887 final int length; | 12841 final int length; |
12888 | 12842 |
12889 /** @domName MediaList.mediaText; @docsEditable true */ | 12843 /// @domName MediaList.mediaText; @docsEditable true |
12890 String mediaText; | 12844 String mediaText; |
12891 | 12845 |
12892 /** @domName MediaList.appendMedium; @docsEditable true */ | 12846 /// @domName MediaList.appendMedium; @docsEditable true |
12893 void appendMedium(String newMedium) native; | 12847 void appendMedium(String newMedium) native; |
12894 | 12848 |
12895 /** @domName MediaList.deleteMedium; @docsEditable true */ | 12849 /// @domName MediaList.deleteMedium; @docsEditable true |
12896 void deleteMedium(String oldMedium) native; | 12850 void deleteMedium(String oldMedium) native; |
12897 | 12851 |
12898 /** @domName MediaList.item; @docsEditable true */ | 12852 /// @domName MediaList.item; @docsEditable true |
12899 String item(int index) native; | 12853 String item(int index) native; |
12900 } | 12854 } |
12901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12902 // for details. All rights reserved. Use of this source code is governed by a | 12856 // for details. All rights reserved. Use of this source code is governed by a |
12903 // BSD-style license that can be found in the LICENSE file. | 12857 // BSD-style license that can be found in the LICENSE file. |
12904 | 12858 |
12905 | 12859 |
12906 /// @domName MediaQueryList; @docsEditable true | 12860 /// @domName MediaQueryList; @docsEditable true |
12907 class MediaQueryList native "*MediaQueryList" { | 12861 class MediaQueryList native "*MediaQueryList" { |
12908 | 12862 |
12909 /** @domName MediaQueryList.matches; @docsEditable true */ | 12863 /// @domName MediaQueryList.matches; @docsEditable true |
12910 final bool matches; | 12864 final bool matches; |
12911 | 12865 |
12912 /** @domName MediaQueryList.media; @docsEditable true */ | 12866 /// @domName MediaQueryList.media; @docsEditable true |
12913 final String media; | 12867 final String media; |
12914 | 12868 |
12915 /** @domName MediaQueryList.addListener; @docsEditable true */ | 12869 /// @domName MediaQueryList.addListener; @docsEditable true |
12916 void addListener(MediaQueryListListener listener) native; | 12870 void addListener(MediaQueryListListener listener) native; |
12917 | 12871 |
12918 /** @domName MediaQueryList.removeListener; @docsEditable true */ | 12872 /// @domName MediaQueryList.removeListener; @docsEditable true |
12919 void removeListener(MediaQueryListListener listener) native; | 12873 void removeListener(MediaQueryListListener listener) native; |
12920 } | 12874 } |
12921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12922 // for details. All rights reserved. Use of this source code is governed by a | 12876 // for details. All rights reserved. Use of this source code is governed by a |
12923 // BSD-style license that can be found in the LICENSE file. | 12877 // BSD-style license that can be found in the LICENSE file. |
12924 | 12878 |
12925 | 12879 |
12926 /// @domName MediaQueryListListener | 12880 /// @domName MediaQueryListListener |
12927 abstract class MediaQueryListListener { | 12881 abstract class MediaQueryListListener { |
12928 | 12882 |
12929 /** @domName MediaQueryListListener.queryChanged; @docsEditable true */ | 12883 /// @domName MediaQueryListListener.queryChanged; @docsEditable true |
12930 void queryChanged(MediaQueryList list); | 12884 void queryChanged(MediaQueryList list); |
12931 } | 12885 } |
12932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12886 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12933 // for details. All rights reserved. Use of this source code is governed by a | 12887 // for details. All rights reserved. Use of this source code is governed by a |
12934 // BSD-style license that can be found in the LICENSE file. | 12888 // BSD-style license that can be found in the LICENSE file. |
12935 | 12889 |
12936 | 12890 |
12937 /// @domName MediaSource; @docsEditable true | 12891 /// @domName MediaSource; @docsEditable true |
12938 class MediaSource extends EventTarget native "*MediaSource" { | 12892 class MediaSource extends EventTarget native "*MediaSource" { |
12939 | 12893 |
12940 factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource(); | 12894 factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource(); |
12941 | 12895 |
12942 /** @domName MediaSource.activeSourceBuffers; @docsEditable true */ | 12896 /// @domName MediaSource.activeSourceBuffers; @docsEditable true |
12943 final SourceBufferList activeSourceBuffers; | 12897 final SourceBufferList activeSourceBuffers; |
12944 | 12898 |
12945 /** @domName MediaSource.duration; @docsEditable true */ | 12899 /// @domName MediaSource.duration; @docsEditable true |
12946 num duration; | 12900 num duration; |
12947 | 12901 |
12948 /** @domName MediaSource.readyState; @docsEditable true */ | 12902 /// @domName MediaSource.readyState; @docsEditable true |
12949 final String readyState; | 12903 final String readyState; |
12950 | 12904 |
12951 /** @domName MediaSource.sourceBuffers; @docsEditable true */ | 12905 /// @domName MediaSource.sourceBuffers; @docsEditable true |
12952 final SourceBufferList sourceBuffers; | 12906 final SourceBufferList sourceBuffers; |
12953 | 12907 |
12954 /** @domName MediaSource.addEventListener; @docsEditable true */ | 12908 /// @domName MediaSource.addEventListener; @docsEditable true |
12955 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 12909 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
12956 | 12910 |
12957 /** @domName MediaSource.addSourceBuffer; @docsEditable true */ | 12911 /// @domName MediaSource.addSourceBuffer; @docsEditable true |
12958 SourceBuffer addSourceBuffer(String type) native; | 12912 SourceBuffer addSourceBuffer(String type) native; |
12959 | 12913 |
12960 /** @domName MediaSource.dispatchEvent; @docsEditable true */ | 12914 /// @domName MediaSource.dispatchEvent; @docsEditable true |
12961 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 12915 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
12962 | 12916 |
12963 /** @domName MediaSource.endOfStream; @docsEditable true */ | 12917 /// @domName MediaSource.endOfStream; @docsEditable true |
12964 void endOfStream(String error) native; | 12918 void endOfStream(String error) native; |
12965 | 12919 |
12966 /** @domName MediaSource.removeEventListener; @docsEditable true */ | 12920 /// @domName MediaSource.removeEventListener; @docsEditable true |
12967 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 12921 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
12968 | 12922 |
12969 /** @domName MediaSource.removeSourceBuffer; @docsEditable true */ | 12923 /// @domName MediaSource.removeSourceBuffer; @docsEditable true |
12970 void removeSourceBuffer(SourceBuffer buffer) native; | 12924 void removeSourceBuffer(SourceBuffer buffer) native; |
12971 } | 12925 } |
12972 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12973 // for details. All rights reserved. Use of this source code is governed by a | 12927 // for details. All rights reserved. Use of this source code is governed by a |
12974 // BSD-style license that can be found in the LICENSE file. | 12928 // BSD-style license that can be found in the LICENSE file. |
12975 | 12929 |
12976 | 12930 |
12977 /// @domName MediaStream; @docsEditable true | 12931 /// @domName MediaStream; @docsEditable true |
12978 class MediaStream extends EventTarget native "*MediaStream" { | 12932 class MediaStream extends EventTarget native "*MediaStream" { |
12979 | 12933 |
12980 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTra
cks); | 12934 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTra
cks); |
12981 | 12935 |
12982 /** | 12936 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
12983 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
12984 */ | |
12985 MediaStreamEvents get on => | 12937 MediaStreamEvents get on => |
12986 new MediaStreamEvents(this); | 12938 new MediaStreamEvents(this); |
12987 | 12939 |
12988 static const int ENDED = 2; | 12940 static const int ENDED = 2; |
12989 | 12941 |
12990 static const int LIVE = 1; | 12942 static const int LIVE = 1; |
12991 | 12943 |
12992 /** @domName MediaStream.audioTracks; @docsEditable true */ | 12944 /// @domName MediaStream.audioTracks; @docsEditable true |
12993 final MediaStreamTrackList audioTracks; | 12945 final MediaStreamTrackList audioTracks; |
12994 | 12946 |
12995 /** @domName MediaStream.label; @docsEditable true */ | 12947 /// @domName MediaStream.label; @docsEditable true |
12996 final String label; | 12948 final String label; |
12997 | 12949 |
12998 /** @domName MediaStream.readyState; @docsEditable true */ | 12950 /// @domName MediaStream.readyState; @docsEditable true |
12999 final int readyState; | 12951 final int readyState; |
13000 | 12952 |
13001 /** @domName MediaStream.videoTracks; @docsEditable true */ | 12953 /// @domName MediaStream.videoTracks; @docsEditable true |
13002 final MediaStreamTrackList videoTracks; | 12954 final MediaStreamTrackList videoTracks; |
13003 | 12955 |
13004 /** @domName MediaStream.addEventListener; @docsEditable true */ | 12956 /// @domName MediaStream.addEventListener; @docsEditable true |
13005 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 12957 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
13006 | 12958 |
13007 /** @domName MediaStream.dispatchEvent; @docsEditable true */ | 12959 /// @domName MediaStream.dispatchEvent; @docsEditable true |
13008 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 12960 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
13009 | 12961 |
13010 /** @domName MediaStream.removeEventListener; @docsEditable true */ | 12962 /// @domName MediaStream.removeEventListener; @docsEditable true |
13011 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 12963 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
13012 } | 12964 } |
13013 | 12965 |
13014 class MediaStreamEvents extends Events { | 12966 class MediaStreamEvents extends Events { |
13015 MediaStreamEvents(EventTarget _ptr) : super(_ptr); | 12967 MediaStreamEvents(EventTarget _ptr) : super(_ptr); |
13016 | 12968 |
13017 EventListenerList get ended => this['ended']; | 12969 EventListenerList get ended => this['ended']; |
13018 } | 12970 } |
13019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13020 // for details. All rights reserved. Use of this source code is governed by a | 12972 // for details. All rights reserved. Use of this source code is governed by a |
13021 // BSD-style license that can be found in the LICENSE file. | 12973 // BSD-style license that can be found in the LICENSE file. |
13022 | 12974 |
13023 | 12975 |
13024 /// @domName MediaStreamAudioSourceNode; @docsEditable true | 12976 /// @domName MediaStreamAudioSourceNode; @docsEditable true |
13025 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud
ioSourceNode" { | 12977 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud
ioSourceNode" { |
13026 | 12978 |
13027 /** @domName MediaStreamAudioSourceNode.mediaStream; @docsEditable true */ | 12979 /// @domName MediaStreamAudioSourceNode.mediaStream; @docsEditable true |
13028 final MediaStream mediaStream; | 12980 final MediaStream mediaStream; |
13029 } | 12981 } |
13030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13031 // for details. All rights reserved. Use of this source code is governed by a | 12983 // for details. All rights reserved. Use of this source code is governed by a |
13032 // BSD-style license that can be found in the LICENSE file. | 12984 // BSD-style license that can be found in the LICENSE file. |
13033 | 12985 |
13034 | 12986 |
13035 /// @domName MediaStreamEvent; @docsEditable true | 12987 /// @domName MediaStreamEvent; @docsEditable true |
13036 class MediaStreamEvent extends Event native "*MediaStreamEvent" { | 12988 class MediaStreamEvent extends Event native "*MediaStreamEvent" { |
13037 | 12989 |
13038 /** @domName MediaStreamEvent.stream; @docsEditable true */ | 12990 /// @domName MediaStreamEvent.stream; @docsEditable true |
13039 final MediaStream stream; | 12991 final MediaStream stream; |
13040 } | 12992 } |
13041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12993 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13042 // for details. All rights reserved. Use of this source code is governed by a | 12994 // for details. All rights reserved. Use of this source code is governed by a |
13043 // BSD-style license that can be found in the LICENSE file. | 12995 // BSD-style license that can be found in the LICENSE file. |
13044 | 12996 |
13045 | 12997 |
13046 /// @domName MediaStreamTrack; @docsEditable true | 12998 /// @domName MediaStreamTrack; @docsEditable true |
13047 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { | 12999 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { |
13048 | 13000 |
13049 /** | 13001 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
13050 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
13051 */ | |
13052 MediaStreamTrackEvents get on => | 13002 MediaStreamTrackEvents get on => |
13053 new MediaStreamTrackEvents(this); | 13003 new MediaStreamTrackEvents(this); |
13054 | 13004 |
13055 static const int ENDED = 2; | 13005 static const int ENDED = 2; |
13056 | 13006 |
13057 static const int LIVE = 0; | 13007 static const int LIVE = 0; |
13058 | 13008 |
13059 static const int MUTED = 1; | 13009 static const int MUTED = 1; |
13060 | 13010 |
13061 /** @domName MediaStreamTrack.enabled; @docsEditable true */ | 13011 /// @domName MediaStreamTrack.enabled; @docsEditable true |
13062 bool enabled; | 13012 bool enabled; |
13063 | 13013 |
13064 /** @domName MediaStreamTrack.kind; @docsEditable true */ | 13014 /// @domName MediaStreamTrack.kind; @docsEditable true |
13065 final String kind; | 13015 final String kind; |
13066 | 13016 |
13067 /** @domName MediaStreamTrack.label; @docsEditable true */ | 13017 /// @domName MediaStreamTrack.label; @docsEditable true |
13068 final String label; | 13018 final String label; |
13069 | 13019 |
13070 /** @domName MediaStreamTrack.readyState; @docsEditable true */ | 13020 /// @domName MediaStreamTrack.readyState; @docsEditable true |
13071 final int readyState; | 13021 final int readyState; |
13072 | 13022 |
13073 /** @domName MediaStreamTrack.addEventListener; @docsEditable true */ | 13023 /// @domName MediaStreamTrack.addEventListener; @docsEditable true |
13074 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 13024 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
13075 | 13025 |
13076 /** @domName MediaStreamTrack.dispatchEvent; @docsEditable true */ | 13026 /// @domName MediaStreamTrack.dispatchEvent; @docsEditable true |
13077 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 13027 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
13078 | 13028 |
13079 /** @domName MediaStreamTrack.removeEventListener; @docsEditable true */ | 13029 /// @domName MediaStreamTrack.removeEventListener; @docsEditable true |
13080 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 13030 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
13081 } | 13031 } |
13082 | 13032 |
13083 class MediaStreamTrackEvents extends Events { | 13033 class MediaStreamTrackEvents extends Events { |
13084 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr); | 13034 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr); |
13085 | 13035 |
13086 EventListenerList get ended => this['ended']; | 13036 EventListenerList get ended => this['ended']; |
13087 | 13037 |
13088 EventListenerList get mute => this['mute']; | 13038 EventListenerList get mute => this['mute']; |
13089 | 13039 |
13090 EventListenerList get unmute => this['unmute']; | 13040 EventListenerList get unmute => this['unmute']; |
13091 } | 13041 } |
13092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13093 // for details. All rights reserved. Use of this source code is governed by a | 13043 // for details. All rights reserved. Use of this source code is governed by a |
13094 // BSD-style license that can be found in the LICENSE file. | 13044 // BSD-style license that can be found in the LICENSE file. |
13095 | 13045 |
13096 | 13046 |
13097 /// @domName MediaStreamTrackEvent; @docsEditable true | 13047 /// @domName MediaStreamTrackEvent; @docsEditable true |
13098 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { | 13048 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { |
13099 | 13049 |
13100 /** @domName MediaStreamTrackEvent.track; @docsEditable true */ | 13050 /// @domName MediaStreamTrackEvent.track; @docsEditable true |
13101 final MediaStreamTrack track; | 13051 final MediaStreamTrack track; |
13102 } | 13052 } |
13103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13104 // for details. All rights reserved. Use of this source code is governed by a | 13054 // for details. All rights reserved. Use of this source code is governed by a |
13105 // BSD-style license that can be found in the LICENSE file. | 13055 // BSD-style license that can be found in the LICENSE file. |
13106 | 13056 |
13107 | 13057 |
13108 /// @domName MediaStreamTrackList; @docsEditable true | 13058 /// @domName MediaStreamTrackList; @docsEditable true |
13109 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { | 13059 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { |
13110 | 13060 |
13111 /** | 13061 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
13112 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
13113 */ | |
13114 MediaStreamTrackListEvents get on => | 13062 MediaStreamTrackListEvents get on => |
13115 new MediaStreamTrackListEvents(this); | 13063 new MediaStreamTrackListEvents(this); |
13116 | 13064 |
13117 /** @domName MediaStreamTrackList.length; @docsEditable true */ | 13065 /// @domName MediaStreamTrackList.length; @docsEditable true |
13118 final int length; | 13066 final int length; |
13119 | 13067 |
13120 /** @domName MediaStreamTrackList.add; @docsEditable true */ | 13068 /// @domName MediaStreamTrackList.add; @docsEditable true |
13121 void add(MediaStreamTrack track) native; | 13069 void add(MediaStreamTrack track) native; |
13122 | 13070 |
13123 /** @domName MediaStreamTrackList.addEventListener; @docsEditable true */ | 13071 /// @domName MediaStreamTrackList.addEventListener; @docsEditable true |
13124 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 13072 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
13125 | 13073 |
13126 /** @domName MediaStreamTrackList.dispatchEvent; @docsEditable true */ | 13074 /// @domName MediaStreamTrackList.dispatchEvent; @docsEditable true |
13127 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 13075 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
13128 | 13076 |
13129 /** @domName MediaStreamTrackList.item; @docsEditable true */ | 13077 /// @domName MediaStreamTrackList.item; @docsEditable true |
13130 MediaStreamTrack item(int index) native; | 13078 MediaStreamTrack item(int index) native; |
13131 | 13079 |
13132 /** @domName MediaStreamTrackList.remove; @docsEditable true */ | 13080 /// @domName MediaStreamTrackList.remove; @docsEditable true |
13133 void remove(MediaStreamTrack track) native; | 13081 void remove(MediaStreamTrack track) native; |
13134 | 13082 |
13135 /** @domName MediaStreamTrackList.removeEventListener; @docsEditable true */ | 13083 /// @domName MediaStreamTrackList.removeEventListener; @docsEditable true |
13136 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 13084 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
13137 } | 13085 } |
13138 | 13086 |
13139 class MediaStreamTrackListEvents extends Events { | 13087 class MediaStreamTrackListEvents extends Events { |
13140 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr); | 13088 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr); |
13141 | 13089 |
13142 EventListenerList get addTrack => this['addtrack']; | 13090 EventListenerList get addTrack => this['addtrack']; |
13143 | 13091 |
13144 EventListenerList get removeTrack => this['removetrack']; | 13092 EventListenerList get removeTrack => this['removetrack']; |
13145 } | 13093 } |
13146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13147 // for details. All rights reserved. Use of this source code is governed by a | 13095 // for details. All rights reserved. Use of this source code is governed by a |
13148 // BSD-style license that can be found in the LICENSE file. | 13096 // BSD-style license that can be found in the LICENSE file. |
13149 | 13097 |
13150 | 13098 |
13151 /// @domName MemoryInfo; @docsEditable true | 13099 /// @domName MemoryInfo; @docsEditable true |
13152 class MemoryInfo native "*MemoryInfo" { | 13100 class MemoryInfo native "*MemoryInfo" { |
13153 | 13101 |
13154 /** @domName MemoryInfo.jsHeapSizeLimit; @docsEditable true */ | 13102 /// @domName MemoryInfo.jsHeapSizeLimit; @docsEditable true |
13155 final int jsHeapSizeLimit; | 13103 final int jsHeapSizeLimit; |
13156 | 13104 |
13157 /** @domName MemoryInfo.totalJSHeapSize; @docsEditable true */ | 13105 /// @domName MemoryInfo.totalJSHeapSize; @docsEditable true |
13158 final int totalJSHeapSize; | 13106 final int totalJSHeapSize; |
13159 | 13107 |
13160 /** @domName MemoryInfo.usedJSHeapSize; @docsEditable true */ | 13108 /// @domName MemoryInfo.usedJSHeapSize; @docsEditable true |
13161 final int usedJSHeapSize; | 13109 final int usedJSHeapSize; |
13162 } | 13110 } |
13163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13164 // for details. All rights reserved. Use of this source code is governed by a | 13112 // for details. All rights reserved. Use of this source code is governed by a |
13165 // BSD-style license that can be found in the LICENSE file. | 13113 // BSD-style license that can be found in the LICENSE file. |
13166 | 13114 |
13167 | 13115 |
13168 /// @domName HTMLMenuElement; @docsEditable true | 13116 /// @domName HTMLMenuElement; @docsEditable true |
13169 class MenuElement extends Element implements Element native "*HTMLMenuElement" { | 13117 class MenuElement extends Element implements Element native "*HTMLMenuElement" { |
13170 | 13118 |
13171 factory MenuElement() => document.$dom_createElement("menu"); | 13119 factory MenuElement() => document.$dom_createElement("menu"); |
13172 | 13120 |
13173 /** @domName HTMLMenuElement.compact; @docsEditable true */ | 13121 /// @domName HTMLMenuElement.compact; @docsEditable true |
13174 bool compact; | 13122 bool compact; |
13175 } | 13123 } |
13176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13177 // for details. All rights reserved. Use of this source code is governed by a | 13125 // for details. All rights reserved. Use of this source code is governed by a |
13178 // BSD-style license that can be found in the LICENSE file. | 13126 // BSD-style license that can be found in the LICENSE file. |
13179 | 13127 |
13180 | 13128 |
13181 /// @domName MessageChannel; @docsEditable true | 13129 /// @domName MessageChannel; @docsEditable true |
13182 class MessageChannel native "*MessageChannel" { | 13130 class MessageChannel native "*MessageChannel" { |
13183 | 13131 |
13184 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne
l(); | 13132 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne
l(); |
13185 | 13133 |
13186 /** @domName MessageChannel.port1; @docsEditable true */ | 13134 /// @domName MessageChannel.port1; @docsEditable true |
13187 final MessagePort port1; | 13135 final MessagePort port1; |
13188 | 13136 |
13189 /** @domName MessageChannel.port2; @docsEditable true */ | 13137 /// @domName MessageChannel.port2; @docsEditable true |
13190 final MessagePort port2; | 13138 final MessagePort port2; |
13191 } | 13139 } |
13192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13140 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13193 // for details. All rights reserved. Use of this source code is governed by a | 13141 // for details. All rights reserved. Use of this source code is governed by a |
13194 // BSD-style license that can be found in the LICENSE file. | 13142 // BSD-style license that can be found in the LICENSE file. |
13195 | 13143 |
13196 | 13144 |
13197 /// @domName MessageEvent; @docsEditable true | 13145 /// @domName MessageEvent; @docsEditable true |
13198 class MessageEvent extends Event native "*MessageEvent" { | 13146 class MessageEvent extends Event native "*MessageEvent" { |
13199 | 13147 |
13200 /** @domName MessageEvent.data; @docsEditable true */ | 13148 /// @domName MessageEvent.data; @docsEditable true |
13201 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); | 13149 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); |
13202 dynamic get _data => JS("dynamic", "#.data", this); | 13150 dynamic get _data => JS("dynamic", "#.data", this); |
13203 | 13151 |
13204 /** @domName MessageEvent.lastEventId; @docsEditable true */ | 13152 /// @domName MessageEvent.lastEventId; @docsEditable true |
13205 final String lastEventId; | 13153 final String lastEventId; |
13206 | 13154 |
13207 /** @domName MessageEvent.origin; @docsEditable true */ | 13155 /// @domName MessageEvent.origin; @docsEditable true |
13208 final String origin; | 13156 final String origin; |
13209 | 13157 |
13210 /** @domName MessageEvent.ports; @docsEditable true */ | 13158 /// @domName MessageEvent.ports; @docsEditable true |
13211 @Creates('=List') | 13159 @Creates('=List') |
13212 final List ports; | 13160 final List ports; |
13213 | 13161 |
13214 /** @domName MessageEvent.source; @docsEditable true */ | 13162 /// @domName MessageEvent.source; @docsEditable true |
13215 Window get source => _convertNativeToDart_Window(this._source); | 13163 Window get source => _convertNativeToDart_Window(this._source); |
13216 dynamic get _source => JS("dynamic", "#.source", this); | 13164 dynamic get _source => JS("dynamic", "#.source", this); |
13217 | 13165 |
13218 /** @domName MessageEvent.initMessageEvent; @docsEditable true */ | 13166 /// @domName MessageEvent.initMessageEvent; @docsEditable true |
13219 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L
ist messagePorts) native; | 13167 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L
ist messagePorts) native; |
13220 | 13168 |
13221 /** @domName MessageEvent.webkitInitMessageEvent; @docsEditable true */ | 13169 /// @domName MessageEvent.webkitInitMessageEvent; @docsEditable true |
13222 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow source
Arg, List transferables) native; | 13170 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow source
Arg, List transferables) native; |
13223 } | 13171 } |
13224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13225 // for details. All rights reserved. Use of this source code is governed by a | 13173 // for details. All rights reserved. Use of this source code is governed by a |
13226 // BSD-style license that can be found in the LICENSE file. | 13174 // BSD-style license that can be found in the LICENSE file. |
13227 | 13175 |
13228 | 13176 |
13229 /// @domName MessagePort; @docsEditable true | 13177 /// @domName MessagePort; @docsEditable true |
13230 class MessagePort extends EventTarget native "*MessagePort" { | 13178 class MessagePort extends EventTarget native "*MessagePort" { |
13231 | 13179 |
13232 /** | 13180 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
13233 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
13234 */ | |
13235 MessagePortEvents get on => | 13181 MessagePortEvents get on => |
13236 new MessagePortEvents(this); | 13182 new MessagePortEvents(this); |
13237 | 13183 |
13238 /** @domName MessagePort.addEventListener; @docsEditable true */ | 13184 /// @domName MessagePort.addEventListener; @docsEditable true |
13239 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 13185 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
13240 | 13186 |
13241 /** @domName MessagePort.close; @docsEditable true */ | 13187 /// @domName MessagePort.close; @docsEditable true |
13242 void close() native; | 13188 void close() native; |
13243 | 13189 |
13244 /** @domName MessagePort.dispatchEvent; @docsEditable true */ | 13190 /// @domName MessagePort.dispatchEvent; @docsEditable true |
13245 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 13191 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
13246 | 13192 |
13247 /** @domName MessagePort.postMessage; @docsEditable true */ | 13193 /// @domName MessagePort.postMessage; @docsEditable true |
13248 void postMessage(/*any*/ message, [List messagePorts]) { | 13194 void postMessage(/*any*/ message, [List messagePorts]) { |
13249 if (?messagePorts) { | 13195 if (?messagePorts) { |
13250 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 13196 var message_1 = _convertDartToNative_SerializedScriptValue(message); |
13251 _postMessage_1(message_1, messagePorts); | 13197 _postMessage_1(message_1, messagePorts); |
13252 return; | 13198 return; |
13253 } | 13199 } |
13254 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 13200 var message_2 = _convertDartToNative_SerializedScriptValue(message); |
13255 _postMessage_2(message_2); | 13201 _postMessage_2(message_2); |
13256 return; | 13202 return; |
13257 } | 13203 } |
13258 void _postMessage_1(message, List messagePorts) native "postMessage"; | 13204 void _postMessage_1(message, List messagePorts) native "postMessage"; |
13259 void _postMessage_2(message) native "postMessage"; | 13205 void _postMessage_2(message) native "postMessage"; |
13260 | 13206 |
13261 /** @domName MessagePort.removeEventListener; @docsEditable true */ | 13207 /// @domName MessagePort.removeEventListener; @docsEditable true |
13262 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 13208 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
13263 | 13209 |
13264 /** @domName MessagePort.start; @docsEditable true */ | 13210 /// @domName MessagePort.start; @docsEditable true |
13265 void start() native; | 13211 void start() native; |
13266 } | 13212 } |
13267 | 13213 |
13268 class MessagePortEvents extends Events { | 13214 class MessagePortEvents extends Events { |
13269 MessagePortEvents(EventTarget _ptr) : super(_ptr); | 13215 MessagePortEvents(EventTarget _ptr) : super(_ptr); |
13270 | 13216 |
13271 EventListenerList get message => this['message']; | 13217 EventListenerList get message => this['message']; |
13272 } | 13218 } |
13273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13274 // for details. All rights reserved. Use of this source code is governed by a | 13220 // for details. All rights reserved. Use of this source code is governed by a |
13275 // BSD-style license that can be found in the LICENSE file. | 13221 // BSD-style license that can be found in the LICENSE file. |
13276 | 13222 |
13277 | 13223 |
13278 /// @domName HTMLMetaElement; @docsEditable true | 13224 /// @domName HTMLMetaElement; @docsEditable true |
13279 class MetaElement extends Element implements Element native "*HTMLMetaElement" { | 13225 class MetaElement extends Element implements Element native "*HTMLMetaElement" { |
13280 | 13226 |
13281 /** @domName HTMLMetaElement.content; @docsEditable true */ | 13227 /// @domName HTMLMetaElement.content; @docsEditable true |
13282 String content; | 13228 String content; |
13283 | 13229 |
13284 /** @domName HTMLMetaElement.httpEquiv; @docsEditable true */ | 13230 /// @domName HTMLMetaElement.httpEquiv; @docsEditable true |
13285 String httpEquiv; | 13231 String httpEquiv; |
13286 | 13232 |
13287 /** @domName HTMLMetaElement.name; @docsEditable true */ | 13233 /// @domName HTMLMetaElement.name; @docsEditable true |
13288 String name; | 13234 String name; |
13289 | 13235 |
13290 /** @domName HTMLMetaElement.scheme; @docsEditable true */ | 13236 /// @domName HTMLMetaElement.scheme; @docsEditable true |
13291 String scheme; | 13237 String scheme; |
13292 } | 13238 } |
13293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13294 // for details. All rights reserved. Use of this source code is governed by a | 13240 // for details. All rights reserved. Use of this source code is governed by a |
13295 // BSD-style license that can be found in the LICENSE file. | 13241 // BSD-style license that can be found in the LICENSE file. |
13296 | 13242 |
13297 | 13243 |
13298 /// @domName Metadata; @docsEditable true | 13244 /// @domName Metadata; @docsEditable true |
13299 class Metadata native "*Metadata" { | 13245 class Metadata native "*Metadata" { |
13300 | 13246 |
13301 /** @domName Metadata.modificationTime; @docsEditable true */ | 13247 /// @domName Metadata.modificationTime; @docsEditable true |
13302 final Date modificationTime; | 13248 final Date modificationTime; |
13303 | 13249 |
13304 /** @domName Metadata.size; @docsEditable true */ | 13250 /// @domName Metadata.size; @docsEditable true |
13305 final int size; | 13251 final int size; |
13306 } | 13252 } |
13307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13308 // for details. All rights reserved. Use of this source code is governed by a | 13254 // for details. All rights reserved. Use of this source code is governed by a |
13309 // BSD-style license that can be found in the LICENSE file. | 13255 // BSD-style license that can be found in the LICENSE file. |
13310 | 13256 |
13311 // WARNING: Do not edit - generated code. | 13257 // WARNING: Do not edit - generated code. |
13312 | 13258 |
13313 | 13259 |
13314 typedef void MetadataCallback(Metadata metadata); | 13260 typedef void MetadataCallback(Metadata metadata); |
13315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13316 // for details. All rights reserved. Use of this source code is governed by a | 13262 // for details. All rights reserved. Use of this source code is governed by a |
13317 // BSD-style license that can be found in the LICENSE file. | 13263 // BSD-style license that can be found in the LICENSE file. |
13318 | 13264 |
13319 | 13265 |
13320 /// @domName HTMLMeterElement; @docsEditable true | 13266 /// @domName HTMLMeterElement; @docsEditable true |
13321 class MeterElement extends Element implements Element native "*HTMLMeterElement"
{ | 13267 class MeterElement extends Element implements Element native "*HTMLMeterElement"
{ |
13322 | 13268 |
13323 factory MeterElement() => document.$dom_createElement("meter"); | 13269 factory MeterElement() => document.$dom_createElement("meter"); |
13324 | 13270 |
13325 /** @domName HTMLMeterElement.high; @docsEditable true */ | 13271 /// @domName HTMLMeterElement.high; @docsEditable true |
13326 num high; | 13272 num high; |
13327 | 13273 |
13328 /** @domName HTMLMeterElement.labels; @docsEditable true */ | 13274 /// @domName HTMLMeterElement.labels; @docsEditable true |
13329 @Returns('_NodeList') @Creates('_NodeList') | 13275 @Returns('_NodeList') @Creates('_NodeList') |
13330 final List<Node> labels; | 13276 final List<Node> labels; |
13331 | 13277 |
13332 /** @domName HTMLMeterElement.low; @docsEditable true */ | 13278 /// @domName HTMLMeterElement.low; @docsEditable true |
13333 num low; | 13279 num low; |
13334 | 13280 |
13335 /** @domName HTMLMeterElement.max; @docsEditable true */ | 13281 /// @domName HTMLMeterElement.max; @docsEditable true |
13336 num max; | 13282 num max; |
13337 | 13283 |
13338 /** @domName HTMLMeterElement.min; @docsEditable true */ | 13284 /// @domName HTMLMeterElement.min; @docsEditable true |
13339 num min; | 13285 num min; |
13340 | 13286 |
13341 /** @domName HTMLMeterElement.optimum; @docsEditable true */ | 13287 /// @domName HTMLMeterElement.optimum; @docsEditable true |
13342 num optimum; | 13288 num optimum; |
13343 | 13289 |
13344 /** @domName HTMLMeterElement.value; @docsEditable true */ | 13290 /// @domName HTMLMeterElement.value; @docsEditable true |
13345 num value; | 13291 num value; |
13346 } | 13292 } |
13347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13348 // for details. All rights reserved. Use of this source code is governed by a | 13294 // for details. All rights reserved. Use of this source code is governed by a |
13349 // BSD-style license that can be found in the LICENSE file. | 13295 // BSD-style license that can be found in the LICENSE file. |
13350 | 13296 |
13351 | 13297 |
13352 /// @domName HTMLModElement; @docsEditable true | 13298 /// @domName HTMLModElement; @docsEditable true |
13353 class ModElement extends Element implements Element native "*HTMLModElement" { | 13299 class ModElement extends Element implements Element native "*HTMLModElement" { |
13354 | 13300 |
13355 /** @domName HTMLModElement.cite; @docsEditable true */ | 13301 /// @domName HTMLModElement.cite; @docsEditable true |
13356 String cite; | 13302 String cite; |
13357 | 13303 |
13358 /** @domName HTMLModElement.dateTime; @docsEditable true */ | 13304 /// @domName HTMLModElement.dateTime; @docsEditable true |
13359 String dateTime; | 13305 String dateTime; |
13360 } | 13306 } |
13361 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13362 // for details. All rights reserved. Use of this source code is governed by a | 13308 // for details. All rights reserved. Use of this source code is governed by a |
13363 // BSD-style license that can be found in the LICENSE file. | 13309 // BSD-style license that can be found in the LICENSE file. |
13364 | 13310 |
13365 | 13311 |
13366 class MouseEvent extends UIEvent native "*MouseEvent" { | 13312 class MouseEvent extends UIEvent native "*MouseEvent" { |
13367 factory MouseEvent(String type, Window view, int detail, int screenX, | 13313 factory MouseEvent(String type, Window view, int detail, int screenX, |
13368 int screenY, int clientX, int clientY, int button, [bool canBubble = true, | 13314 int screenY, int clientX, int clientY, int button, [bool canBubble = true, |
13369 bool cancelable = true, bool ctrlKey = false, bool altKey = false, | 13315 bool cancelable = true, bool ctrlKey = false, bool altKey = false, |
13370 bool shiftKey = false, bool metaKey = false, | 13316 bool shiftKey = false, bool metaKey = false, |
13371 EventTarget relatedTarget = null]) => | 13317 EventTarget relatedTarget = null]) => |
13372 _MouseEventFactoryProvider.createMouseEvent( | 13318 _MouseEventFactoryProvider.createMouseEvent( |
13373 type, view, detail, screenX, screenY, | 13319 type, view, detail, screenX, screenY, |
13374 clientX, clientY, button, canBubble, cancelable, | 13320 clientX, clientY, button, canBubble, cancelable, |
13375 ctrlKey, altKey, shiftKey, metaKey, | 13321 ctrlKey, altKey, shiftKey, metaKey, |
13376 relatedTarget); | 13322 relatedTarget); |
13377 | 13323 |
13378 /** @domName MouseEvent.altKey; @docsEditable true */ | 13324 /// @domName MouseEvent.altKey; @docsEditable true |
13379 final bool altKey; | 13325 final bool altKey; |
13380 | 13326 |
13381 /** @domName MouseEvent.button; @docsEditable true */ | 13327 /// @domName MouseEvent.button; @docsEditable true |
13382 final int button; | 13328 final int button; |
13383 | 13329 |
13384 /** @domName MouseEvent.clientX; @docsEditable true */ | 13330 /// @domName MouseEvent.clientX; @docsEditable true |
13385 final int clientX; | 13331 final int clientX; |
13386 | 13332 |
13387 /** @domName MouseEvent.clientY; @docsEditable true */ | 13333 /// @domName MouseEvent.clientY; @docsEditable true |
13388 final int clientY; | 13334 final int clientY; |
13389 | 13335 |
13390 /** @domName MouseEvent.ctrlKey; @docsEditable true */ | 13336 /// @domName MouseEvent.ctrlKey; @docsEditable true |
13391 final bool ctrlKey; | 13337 final bool ctrlKey; |
13392 | 13338 |
13393 /** @domName MouseEvent.dataTransfer; @docsEditable true */ | 13339 /// @domName MouseEvent.dataTransfer; @docsEditable true |
13394 final Clipboard dataTransfer; | 13340 final Clipboard dataTransfer; |
13395 | 13341 |
13396 /** @domName MouseEvent.fromElement; @docsEditable true */ | 13342 /// @domName MouseEvent.fromElement; @docsEditable true |
13397 final Node fromElement; | 13343 final Node fromElement; |
13398 | 13344 |
13399 /** @domName MouseEvent.metaKey; @docsEditable true */ | 13345 /// @domName MouseEvent.metaKey; @docsEditable true |
13400 final bool metaKey; | 13346 final bool metaKey; |
13401 | 13347 |
13402 /** @domName MouseEvent.relatedTarget; @docsEditable true */ | 13348 /// @domName MouseEvent.relatedTarget; @docsEditable true |
13403 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate
dTarget); | 13349 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate
dTarget); |
13404 dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this); | 13350 dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this); |
13405 | 13351 |
13406 /** @domName MouseEvent.screenX; @docsEditable true */ | 13352 /// @domName MouseEvent.screenX; @docsEditable true |
13407 final int screenX; | 13353 final int screenX; |
13408 | 13354 |
13409 /** @domName MouseEvent.screenY; @docsEditable true */ | 13355 /// @domName MouseEvent.screenY; @docsEditable true |
13410 final int screenY; | 13356 final int screenY; |
13411 | 13357 |
13412 /** @domName MouseEvent.shiftKey; @docsEditable true */ | 13358 /// @domName MouseEvent.shiftKey; @docsEditable true |
13413 final bool shiftKey; | 13359 final bool shiftKey; |
13414 | 13360 |
13415 /** @domName MouseEvent.toElement; @docsEditable true */ | 13361 /// @domName MouseEvent.toElement; @docsEditable true |
13416 final Node toElement; | 13362 final Node toElement; |
13417 | 13363 |
13418 /** @domName MouseEvent.webkitMovementX; @docsEditable true */ | 13364 /// @domName MouseEvent.webkitMovementX; @docsEditable true |
13419 final int webkitMovementX; | 13365 final int webkitMovementX; |
13420 | 13366 |
13421 /** @domName MouseEvent.webkitMovementY; @docsEditable true */ | 13367 /// @domName MouseEvent.webkitMovementY; @docsEditable true |
13422 final int webkitMovementY; | 13368 final int webkitMovementY; |
13423 | 13369 |
13424 /** @domName MouseEvent.x; @docsEditable true */ | 13370 /// @domName MouseEvent.x; @docsEditable true |
13425 final int x; | 13371 final int x; |
13426 | 13372 |
13427 /** @domName MouseEvent.y; @docsEditable true */ | 13373 /// @domName MouseEvent.y; @docsEditable true |
13428 final int y; | 13374 final int y; |
13429 | 13375 |
13430 /** @domName MouseEvent.initMouseEvent; @docsEditable true */ | 13376 /// @domName MouseEvent.initMouseEvent; @docsEditable true |
13431 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWi
ndow view, int detail, int screenX, int screenY, int clientX, int clientY, bool
ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relat
edTarget) { | 13377 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWi
ndow view, int detail, int screenX, int screenY, int clientX, int clientY, bool
ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relat
edTarget) { |
13432 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); | 13378 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); |
13433 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s
creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar
get_1); | 13379 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s
creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar
get_1); |
13434 return; | 13380 return; |
13435 } | 13381 } |
13436 void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, det
ail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, but
ton, relatedTarget) native "initMouseEvent"; | 13382 void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, det
ail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, but
ton, relatedTarget) native "initMouseEvent"; |
13437 | 13383 |
13438 | 13384 |
13439 int get offsetX { | 13385 int get offsetX { |
13440 if (JS('bool', '!!#.offsetX', this)) { | 13386 if (JS('bool', '!!#.offsetX', this)) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13479 | 13425 |
13480 /// @domName MutationEvent; @docsEditable true | 13426 /// @domName MutationEvent; @docsEditable true |
13481 class MutationEvent extends Event native "*MutationEvent" { | 13427 class MutationEvent extends Event native "*MutationEvent" { |
13482 | 13428 |
13483 static const int ADDITION = 2; | 13429 static const int ADDITION = 2; |
13484 | 13430 |
13485 static const int MODIFICATION = 1; | 13431 static const int MODIFICATION = 1; |
13486 | 13432 |
13487 static const int REMOVAL = 3; | 13433 static const int REMOVAL = 3; |
13488 | 13434 |
13489 /** @domName MutationEvent.attrChange; @docsEditable true */ | 13435 /// @domName MutationEvent.attrChange; @docsEditable true |
13490 final int attrChange; | 13436 final int attrChange; |
13491 | 13437 |
13492 /** @domName MutationEvent.attrName; @docsEditable true */ | 13438 /// @domName MutationEvent.attrName; @docsEditable true |
13493 final String attrName; | 13439 final String attrName; |
13494 | 13440 |
13495 /** @domName MutationEvent.newValue; @docsEditable true */ | 13441 /// @domName MutationEvent.newValue; @docsEditable true |
13496 final String newValue; | 13442 final String newValue; |
13497 | 13443 |
13498 /** @domName MutationEvent.prevValue; @docsEditable true */ | 13444 /// @domName MutationEvent.prevValue; @docsEditable true |
13499 final String prevValue; | 13445 final String prevValue; |
13500 | 13446 |
13501 /** @domName MutationEvent.relatedNode; @docsEditable true */ | 13447 /// @domName MutationEvent.relatedNode; @docsEditable true |
13502 final Node relatedNode; | 13448 final Node relatedNode; |
13503 | 13449 |
13504 /** @domName MutationEvent.initMutationEvent; @docsEditable true */ | 13450 /// @domName MutationEvent.initMutationEvent; @docsEditable true |
13505 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange) nat
ive; | 13451 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange) nat
ive; |
13506 } | 13452 } |
13507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13508 // for details. All rights reserved. Use of this source code is governed by a | 13454 // for details. All rights reserved. Use of this source code is governed by a |
13509 // BSD-style license that can be found in the LICENSE file. | 13455 // BSD-style license that can be found in the LICENSE file. |
13510 | 13456 |
13511 | 13457 |
13512 class MutationObserver native "*MutationObserver" { | 13458 class MutationObserver native "*MutationObserver" { |
13513 | 13459 |
13514 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor
yProvider.createMutationObserver(callback); | 13460 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor
yProvider.createMutationObserver(callback); |
13515 | 13461 |
13516 /** @domName MutationObserver.disconnect; @docsEditable true */ | 13462 /// @domName MutationObserver.disconnect; @docsEditable true |
13517 void disconnect() native; | 13463 void disconnect() native; |
13518 | 13464 |
13519 /** @domName MutationObserver._observe; @docsEditable true */ | 13465 /// @domName MutationObserver._observe; @docsEditable true |
13520 void _observe(Node target, Map options) { | 13466 void _observe(Node target, Map options) { |
13521 var options_1 = _convertDartToNative_Dictionary(options); | 13467 var options_1 = _convertDartToNative_Dictionary(options); |
13522 __observe_1(target, options_1); | 13468 __observe_1(target, options_1); |
13523 return; | 13469 return; |
13524 } | 13470 } |
13525 void __observe_1(Node target, options) native "observe"; | 13471 void __observe_1(Node target, options) native "observe"; |
13526 | 13472 |
13527 /** @domName MutationObserver.takeRecords; @docsEditable true */ | 13473 /// @domName MutationObserver.takeRecords; @docsEditable true |
13528 List<MutationRecord> takeRecords() native; | 13474 List<MutationRecord> takeRecords() native; |
13529 | 13475 |
13530 void observe(Node target, | 13476 void observe(Node target, |
13531 {Map options, | 13477 {Map options, |
13532 bool childList, | 13478 bool childList, |
13533 bool attributes, | 13479 bool attributes, |
13534 bool characterData, | 13480 bool characterData, |
13535 bool subtree, | 13481 bool subtree, |
13536 bool attributeOldValue, | 13482 bool attributeOldValue, |
13537 bool characterDataOldValue, | 13483 bool characterDataOldValue, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13589 void _call(target, options) native 'observe'; | 13535 void _call(target, options) native 'observe'; |
13590 } | 13536 } |
13591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13592 // for details. All rights reserved. Use of this source code is governed by a | 13538 // for details. All rights reserved. Use of this source code is governed by a |
13593 // BSD-style license that can be found in the LICENSE file. | 13539 // BSD-style license that can be found in the LICENSE file. |
13594 | 13540 |
13595 | 13541 |
13596 /// @domName MutationRecord; @docsEditable true | 13542 /// @domName MutationRecord; @docsEditable true |
13597 class MutationRecord native "*MutationRecord" { | 13543 class MutationRecord native "*MutationRecord" { |
13598 | 13544 |
13599 /** @domName MutationRecord.addedNodes; @docsEditable true */ | 13545 /// @domName MutationRecord.addedNodes; @docsEditable true |
13600 @Returns('_NodeList') @Creates('_NodeList') | 13546 @Returns('_NodeList') @Creates('_NodeList') |
13601 final List<Node> addedNodes; | 13547 final List<Node> addedNodes; |
13602 | 13548 |
13603 /** @domName MutationRecord.attributeName; @docsEditable true */ | 13549 /// @domName MutationRecord.attributeName; @docsEditable true |
13604 final String attributeName; | 13550 final String attributeName; |
13605 | 13551 |
13606 /** @domName MutationRecord.attributeNamespace; @docsEditable true */ | 13552 /// @domName MutationRecord.attributeNamespace; @docsEditable true |
13607 final String attributeNamespace; | 13553 final String attributeNamespace; |
13608 | 13554 |
13609 /** @domName MutationRecord.nextSibling; @docsEditable true */ | 13555 /// @domName MutationRecord.nextSibling; @docsEditable true |
13610 final Node nextSibling; | 13556 final Node nextSibling; |
13611 | 13557 |
13612 /** @domName MutationRecord.oldValue; @docsEditable true */ | 13558 /// @domName MutationRecord.oldValue; @docsEditable true |
13613 final String oldValue; | 13559 final String oldValue; |
13614 | 13560 |
13615 /** @domName MutationRecord.previousSibling; @docsEditable true */ | 13561 /// @domName MutationRecord.previousSibling; @docsEditable true |
13616 final Node previousSibling; | 13562 final Node previousSibling; |
13617 | 13563 |
13618 /** @domName MutationRecord.removedNodes; @docsEditable true */ | 13564 /// @domName MutationRecord.removedNodes; @docsEditable true |
13619 @Returns('_NodeList') @Creates('_NodeList') | 13565 @Returns('_NodeList') @Creates('_NodeList') |
13620 final List<Node> removedNodes; | 13566 final List<Node> removedNodes; |
13621 | 13567 |
13622 /** @domName MutationRecord.target; @docsEditable true */ | 13568 /// @domName MutationRecord.target; @docsEditable true |
13623 final Node target; | 13569 final Node target; |
13624 | 13570 |
13625 /** @domName MutationRecord.type; @docsEditable true */ | 13571 /// @domName MutationRecord.type; @docsEditable true |
13626 final String type; | 13572 final String type; |
13627 } | 13573 } |
13628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13629 // for details. All rights reserved. Use of this source code is governed by a | 13575 // for details. All rights reserved. Use of this source code is governed by a |
13630 // BSD-style license that can be found in the LICENSE file. | 13576 // BSD-style license that can be found in the LICENSE file. |
13631 | 13577 |
13632 | 13578 |
13633 /// @domName NamedNodeMap; @docsEditable true | 13579 /// @domName NamedNodeMap; @docsEditable true |
13634 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
medNodeMap" { | 13580 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
medNodeMap" { |
13635 | 13581 |
13636 /** @domName NamedNodeMap.length; @docsEditable true */ | 13582 /// @domName NamedNodeMap.length; @docsEditable true |
13637 final int length; | 13583 final int length; |
13638 | 13584 |
13639 Node operator[](int index) => JS("Node", "#[#]", this, index); | 13585 Node operator[](int index) => JS("Node", "#[#]", this, index); |
13640 | 13586 |
13641 void operator[]=(int index, Node value) { | 13587 void operator[]=(int index, Node value) { |
13642 throw new UnsupportedError("Cannot assign element of immutable List."); | 13588 throw new UnsupportedError("Cannot assign element of immutable List."); |
13643 } | 13589 } |
13644 // -- start List<Node> mixins. | 13590 // -- start List<Node> mixins. |
13645 // Node is the element type. | 13591 // Node is the element type. |
13646 | 13592 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13714 | 13660 |
13715 void insertRange(int start, int rangeLength, [Node initialValue]) { | 13661 void insertRange(int start, int rangeLength, [Node initialValue]) { |
13716 throw new UnsupportedError("Cannot insertRange on immutable List."); | 13662 throw new UnsupportedError("Cannot insertRange on immutable List."); |
13717 } | 13663 } |
13718 | 13664 |
13719 List<Node> getRange(int start, int rangeLength) => | 13665 List<Node> getRange(int start, int rangeLength) => |
13720 _Lists.getRange(this, start, rangeLength, <Node>[]); | 13666 _Lists.getRange(this, start, rangeLength, <Node>[]); |
13721 | 13667 |
13722 // -- end List<Node> mixins. | 13668 // -- end List<Node> mixins. |
13723 | 13669 |
13724 /** @domName NamedNodeMap.getNamedItem; @docsEditable true */ | 13670 /// @domName NamedNodeMap.getNamedItem; @docsEditable true |
13725 Node getNamedItem(String name) native; | 13671 Node getNamedItem(String name) native; |
13726 | 13672 |
13727 /** @domName NamedNodeMap.getNamedItemNS; @docsEditable true */ | 13673 /// @domName NamedNodeMap.getNamedItemNS; @docsEditable true |
13728 Node getNamedItemNS(String namespaceURI, String localName) native; | 13674 Node getNamedItemNS(String namespaceURI, String localName) native; |
13729 | 13675 |
13730 /** @domName NamedNodeMap.item; @docsEditable true */ | 13676 /// @domName NamedNodeMap.item; @docsEditable true |
13731 Node item(int index) native; | 13677 Node item(int index) native; |
13732 | 13678 |
13733 /** @domName NamedNodeMap.removeNamedItem; @docsEditable true */ | 13679 /// @domName NamedNodeMap.removeNamedItem; @docsEditable true |
13734 Node removeNamedItem(String name) native; | 13680 Node removeNamedItem(String name) native; |
13735 | 13681 |
13736 /** @domName NamedNodeMap.removeNamedItemNS; @docsEditable true */ | 13682 /// @domName NamedNodeMap.removeNamedItemNS; @docsEditable true |
13737 Node removeNamedItemNS(String namespaceURI, String localName) native; | 13683 Node removeNamedItemNS(String namespaceURI, String localName) native; |
13738 | 13684 |
13739 /** @domName NamedNodeMap.setNamedItem; @docsEditable true */ | 13685 /// @domName NamedNodeMap.setNamedItem; @docsEditable true |
13740 Node setNamedItem(Node node) native; | 13686 Node setNamedItem(Node node) native; |
13741 | 13687 |
13742 /** @domName NamedNodeMap.setNamedItemNS; @docsEditable true */ | 13688 /// @domName NamedNodeMap.setNamedItemNS; @docsEditable true |
13743 Node setNamedItemNS(Node node) native; | 13689 Node setNamedItemNS(Node node) native; |
13744 } | 13690 } |
13745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13746 // for details. All rights reserved. Use of this source code is governed by a | 13692 // for details. All rights reserved. Use of this source code is governed by a |
13747 // BSD-style license that can be found in the LICENSE file. | 13693 // BSD-style license that can be found in the LICENSE file. |
13748 | 13694 |
13749 | 13695 |
13750 /// @domName Navigator; @docsEditable true | 13696 /// @domName Navigator; @docsEditable true |
13751 class Navigator native "*Navigator" { | 13697 class Navigator native "*Navigator" { |
13752 | 13698 |
13753 /** @domName Navigator.appCodeName; @docsEditable true */ | 13699 /// @domName Navigator.appCodeName; @docsEditable true |
13754 final String appCodeName; | 13700 final String appCodeName; |
13755 | 13701 |
13756 /** @domName Navigator.appName; @docsEditable true */ | 13702 /// @domName Navigator.appName; @docsEditable true |
13757 final String appName; | 13703 final String appName; |
13758 | 13704 |
13759 /** @domName Navigator.appVersion; @docsEditable true */ | 13705 /// @domName Navigator.appVersion; @docsEditable true |
13760 final String appVersion; | 13706 final String appVersion; |
13761 | 13707 |
13762 /** @domName Navigator.cookieEnabled; @docsEditable true */ | 13708 /// @domName Navigator.cookieEnabled; @docsEditable true |
13763 final bool cookieEnabled; | 13709 final bool cookieEnabled; |
13764 | 13710 |
13765 /** @domName Navigator.geolocation; @docsEditable true */ | 13711 /// @domName Navigator.geolocation; @docsEditable true |
13766 final Geolocation geolocation; | 13712 final Geolocation geolocation; |
13767 | 13713 |
13768 /** @domName Navigator.language; @docsEditable true */ | 13714 /// @domName Navigator.language; @docsEditable true |
13769 final String language; | 13715 final String language; |
13770 | 13716 |
13771 /** @domName Navigator.mimeTypes; @docsEditable true */ | 13717 /// @domName Navigator.mimeTypes; @docsEditable true |
13772 final DOMMimeTypeArray mimeTypes; | 13718 final DOMMimeTypeArray mimeTypes; |
13773 | 13719 |
13774 /** @domName Navigator.onLine; @docsEditable true */ | 13720 /// @domName Navigator.onLine; @docsEditable true |
13775 final bool onLine; | 13721 final bool onLine; |
13776 | 13722 |
13777 /** @domName Navigator.platform; @docsEditable true */ | 13723 /// @domName Navigator.platform; @docsEditable true |
13778 final String platform; | 13724 final String platform; |
13779 | 13725 |
13780 /** @domName Navigator.plugins; @docsEditable true */ | 13726 /// @domName Navigator.plugins; @docsEditable true |
13781 final DOMPluginArray plugins; | 13727 final DOMPluginArray plugins; |
13782 | 13728 |
13783 /** @domName Navigator.product; @docsEditable true */ | 13729 /// @domName Navigator.product; @docsEditable true |
13784 final String product; | 13730 final String product; |
13785 | 13731 |
13786 /** @domName Navigator.productSub; @docsEditable true */ | 13732 /// @domName Navigator.productSub; @docsEditable true |
13787 final String productSub; | 13733 final String productSub; |
13788 | 13734 |
13789 /** @domName Navigator.userAgent; @docsEditable true */ | 13735 /// @domName Navigator.userAgent; @docsEditable true |
13790 final String userAgent; | 13736 final String userAgent; |
13791 | 13737 |
13792 /** @domName Navigator.vendor; @docsEditable true */ | 13738 /// @domName Navigator.vendor; @docsEditable true |
13793 final String vendor; | 13739 final String vendor; |
13794 | 13740 |
13795 /** @domName Navigator.vendorSub; @docsEditable true */ | 13741 /// @domName Navigator.vendorSub; @docsEditable true |
13796 final String vendorSub; | 13742 final String vendorSub; |
13797 | 13743 |
13798 /** @domName Navigator.webkitBattery; @docsEditable true */ | 13744 /// @domName Navigator.webkitBattery; @docsEditable true |
13799 final BatteryManager webkitBattery; | 13745 final BatteryManager webkitBattery; |
13800 | 13746 |
13801 /** @domName Navigator.getStorageUpdates; @docsEditable true */ | 13747 /// @domName Navigator.getStorageUpdates; @docsEditable true |
13802 void getStorageUpdates() native; | 13748 void getStorageUpdates() native; |
13803 | 13749 |
13804 /** @domName Navigator.javaEnabled; @docsEditable true */ | 13750 /// @domName Navigator.javaEnabled; @docsEditable true |
13805 bool javaEnabled() native; | 13751 bool javaEnabled() native; |
13806 | 13752 |
13807 /** @domName Navigator.webkitGetGamepads; @docsEditable true */ | 13753 /// @domName Navigator.webkitGetGamepads; @docsEditable true |
13808 @Returns('_GamepadList') @Creates('_GamepadList') | 13754 @Returns('_GamepadList') @Creates('_GamepadList') |
13809 List<Gamepad> webkitGetGamepads() native; | 13755 List<Gamepad> webkitGetGamepads() native; |
13810 | 13756 |
13811 /** @domName Navigator.webkitGetUserMedia; @docsEditable true */ | 13757 /// @domName Navigator.webkitGetUserMedia; @docsEditable true |
13812 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) { | 13758 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) { |
13813 if (?errorCallback) { | 13759 if (?errorCallback) { |
13814 var options_1 = _convertDartToNative_Dictionary(options); | 13760 var options_1 = _convertDartToNative_Dictionary(options); |
13815 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); | 13761 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); |
13816 return; | 13762 return; |
13817 } | 13763 } |
13818 var options_2 = _convertDartToNative_Dictionary(options); | 13764 var options_2 = _convertDartToNative_Dictionary(options); |
13819 _webkitGetUserMedia_2(options_2, successCallback); | 13765 _webkitGetUserMedia_2(options_2, successCallback); |
13820 return; | 13766 return; |
13821 } | 13767 } |
13822 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC
allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed
ia"; | 13768 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC
allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed
ia"; |
13823 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC
allback) native "webkitGetUserMedia"; | 13769 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC
allback) native "webkitGetUserMedia"; |
13824 } | 13770 } |
13825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13826 // for details. All rights reserved. Use of this source code is governed by a | 13772 // for details. All rights reserved. Use of this source code is governed by a |
13827 // BSD-style license that can be found in the LICENSE file. | 13773 // BSD-style license that can be found in the LICENSE file. |
13828 | 13774 |
13829 | 13775 |
13830 /// @domName NavigatorUserMediaError; @docsEditable true | 13776 /// @domName NavigatorUserMediaError; @docsEditable true |
13831 class NavigatorUserMediaError native "*NavigatorUserMediaError" { | 13777 class NavigatorUserMediaError native "*NavigatorUserMediaError" { |
13832 | 13778 |
13833 static const int PERMISSION_DENIED = 1; | 13779 static const int PERMISSION_DENIED = 1; |
13834 | 13780 |
13835 /** @domName NavigatorUserMediaError.code; @docsEditable true */ | 13781 /// @domName NavigatorUserMediaError.code; @docsEditable true |
13836 final int code; | 13782 final int code; |
13837 } | 13783 } |
13838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13839 // for details. All rights reserved. Use of this source code is governed by a | 13785 // for details. All rights reserved. Use of this source code is governed by a |
13840 // BSD-style license that can be found in the LICENSE file. | 13786 // BSD-style license that can be found in the LICENSE file. |
13841 | 13787 |
13842 // WARNING: Do not edit - generated code. | 13788 // WARNING: Do not edit - generated code. |
13843 | 13789 |
13844 | 13790 |
13845 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | 13791 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14031 static const int ENTITY_NODE = 6; | 13977 static const int ENTITY_NODE = 6; |
14032 | 13978 |
14033 static const int ENTITY_REFERENCE_NODE = 5; | 13979 static const int ENTITY_REFERENCE_NODE = 5; |
14034 | 13980 |
14035 static const int NOTATION_NODE = 12; | 13981 static const int NOTATION_NODE = 12; |
14036 | 13982 |
14037 static const int PROCESSING_INSTRUCTION_NODE = 7; | 13983 static const int PROCESSING_INSTRUCTION_NODE = 7; |
14038 | 13984 |
14039 static const int TEXT_NODE = 3; | 13985 static const int TEXT_NODE = 3; |
14040 | 13986 |
14041 /** @domName Node.attributes; @docsEditable true */ | 13987 /// @domName Node.attributes; @docsEditable true |
14042 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this); | 13988 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this); |
14043 | 13989 |
14044 /** @domName Node.childNodes; @docsEditable true */ | 13990 /// @domName Node.childNodes; @docsEditable true |
14045 List<Node> get $dom_childNodes => JS("_NodeList", "#.childNodes", this); | 13991 List<Node> get $dom_childNodes => JS("_NodeList", "#.childNodes", this); |
14046 | 13992 |
14047 /** @domName Node.firstChild; @docsEditable true */ | 13993 /// @domName Node.firstChild; @docsEditable true |
14048 Node get $dom_firstChild => JS("Node", "#.firstChild", this); | 13994 Node get $dom_firstChild => JS("Node", "#.firstChild", this); |
14049 | 13995 |
14050 /** @domName Node.lastChild; @docsEditable true */ | 13996 /// @domName Node.lastChild; @docsEditable true |
14051 Node get $dom_lastChild => JS("Node", "#.lastChild", this); | 13997 Node get $dom_lastChild => JS("Node", "#.lastChild", this); |
14052 | 13998 |
14053 /** @domName Node.nextSibling; @docsEditable true */ | 13999 /// @domName Node.nextSibling; @docsEditable true |
14054 Node get nextNode => JS("Node", "#.nextSibling", this); | 14000 Node get nextNode => JS("Node", "#.nextSibling", this); |
14055 | 14001 |
14056 /** @domName Node.nodeType; @docsEditable true */ | 14002 /// @domName Node.nodeType; @docsEditable true |
14057 final int nodeType; | 14003 final int nodeType; |
14058 | 14004 |
14059 /** @domName Node.ownerDocument; @docsEditable true */ | 14005 /// @domName Node.ownerDocument; @docsEditable true |
14060 Document get document => JS("Document", "#.ownerDocument", this); | 14006 Document get document => JS("Document", "#.ownerDocument", this); |
14061 | 14007 |
14062 /** @domName Node.parentNode; @docsEditable true */ | 14008 /// @domName Node.parentNode; @docsEditable true |
14063 Node get parent => JS("Node", "#.parentNode", this); | 14009 Node get parent => JS("Node", "#.parentNode", this); |
14064 | 14010 |
14065 /** @domName Node.previousSibling; @docsEditable true */ | 14011 /// @domName Node.previousSibling; @docsEditable true |
14066 Node get previousNode => JS("Node", "#.previousSibling", this); | 14012 Node get previousNode => JS("Node", "#.previousSibling", this); |
14067 | 14013 |
14068 /** @domName Node.textContent; @docsEditable true */ | 14014 /// @domName Node.textContent; @docsEditable true |
14069 String get text => JS("String", "#.textContent", this); | 14015 String get text => JS("String", "#.textContent", this); |
14070 | 14016 |
14071 /** @domName Node.textContent; @docsEditable true */ | 14017 /// @domName Node.textContent; @docsEditable true |
14072 void set text(String value) { | 14018 void set text(String value) { |
14073 JS("void", "#.textContent = #", this, value); | 14019 JS("void", "#.textContent = #", this, value); |
14074 } | 14020 } |
14075 | 14021 |
14076 /** @domName Node.addEventListener; @docsEditable true */ | 14022 /// @domName Node.addEventListener; @docsEditable true |
14077 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 14023 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
14078 | 14024 |
14079 /** @domName Node.appendChild; @docsEditable true */ | 14025 /// @domName Node.appendChild; @docsEditable true |
14080 Node $dom_appendChild(Node newChild) native "appendChild"; | 14026 Node $dom_appendChild(Node newChild) native "appendChild"; |
14081 | 14027 |
14082 /** @domName Node.cloneNode; @docsEditable true */ | 14028 /// @domName Node.cloneNode; @docsEditable true |
14083 Node clone(bool deep) native "cloneNode"; | 14029 Node clone(bool deep) native "cloneNode"; |
14084 | 14030 |
14085 /** @domName Node.contains; @docsEditable true */ | 14031 /// @domName Node.contains; @docsEditable true |
14086 bool contains(Node other) native; | 14032 bool contains(Node other) native; |
14087 | 14033 |
14088 /** @domName Node.dispatchEvent; @docsEditable true */ | 14034 /// @domName Node.dispatchEvent; @docsEditable true |
14089 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 14035 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
14090 | 14036 |
14091 /** @domName Node.hasChildNodes; @docsEditable true */ | 14037 /// @domName Node.hasChildNodes; @docsEditable true |
14092 bool hasChildNodes() native; | 14038 bool hasChildNodes() native; |
14093 | 14039 |
14094 /** @domName Node.insertBefore; @docsEditable true */ | 14040 /// @domName Node.insertBefore; @docsEditable true |
14095 Node insertBefore(Node newChild, Node refChild) native; | 14041 Node insertBefore(Node newChild, Node refChild) native; |
14096 | 14042 |
14097 /** @domName Node.removeChild; @docsEditable true */ | 14043 /// @domName Node.removeChild; @docsEditable true |
14098 Node $dom_removeChild(Node oldChild) native "removeChild"; | 14044 Node $dom_removeChild(Node oldChild) native "removeChild"; |
14099 | 14045 |
14100 /** @domName Node.removeEventListener; @docsEditable true */ | 14046 /// @domName Node.removeEventListener; @docsEditable true |
14101 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 14047 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
14102 | 14048 |
14103 /** @domName Node.replaceChild; @docsEditable true */ | 14049 /// @domName Node.replaceChild; @docsEditable true |
14104 Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild"; | 14050 Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild"; |
14105 | 14051 |
14106 } | 14052 } |
14107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14108 // for details. All rights reserved. Use of this source code is governed by a | 14054 // for details. All rights reserved. Use of this source code is governed by a |
14109 // BSD-style license that can be found in the LICENSE file. | 14055 // BSD-style license that can be found in the LICENSE file. |
14110 | 14056 |
14111 | 14057 |
14112 /// @domName NodeFilter; @docsEditable true | 14058 /// @domName NodeFilter; @docsEditable true |
14113 class NodeFilter native "*NodeFilter" { | 14059 class NodeFilter native "*NodeFilter" { |
(...skipping 23 matching lines...) Expand all Loading... |
14137 static const int SHOW_ENTITY = 0x00000020; | 14083 static const int SHOW_ENTITY = 0x00000020; |
14138 | 14084 |
14139 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | 14085 static const int SHOW_ENTITY_REFERENCE = 0x00000010; |
14140 | 14086 |
14141 static const int SHOW_NOTATION = 0x00000800; | 14087 static const int SHOW_NOTATION = 0x00000800; |
14142 | 14088 |
14143 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | 14089 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
14144 | 14090 |
14145 static const int SHOW_TEXT = 0x00000004; | 14091 static const int SHOW_TEXT = 0x00000004; |
14146 | 14092 |
14147 /** @domName NodeFilter.acceptNode; @docsEditable true */ | 14093 /// @domName NodeFilter.acceptNode; @docsEditable true |
14148 int acceptNode(Node n) native; | 14094 int acceptNode(Node n) native; |
14149 } | 14095 } |
14150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14151 // for details. All rights reserved. Use of this source code is governed by a | 14097 // for details. All rights reserved. Use of this source code is governed by a |
14152 // BSD-style license that can be found in the LICENSE file. | 14098 // BSD-style license that can be found in the LICENSE file. |
14153 | 14099 |
14154 | 14100 |
14155 /// @domName NodeIterator; @docsEditable true | 14101 /// @domName NodeIterator; @docsEditable true |
14156 class NodeIterator native "*NodeIterator" { | 14102 class NodeIterator native "*NodeIterator" { |
14157 | 14103 |
14158 /** @domName NodeIterator.expandEntityReferences; @docsEditable true */ | 14104 /// @domName NodeIterator.expandEntityReferences; @docsEditable true |
14159 final bool expandEntityReferences; | 14105 final bool expandEntityReferences; |
14160 | 14106 |
14161 /** @domName NodeIterator.filter; @docsEditable true */ | 14107 /// @domName NodeIterator.filter; @docsEditable true |
14162 final NodeFilter filter; | 14108 final NodeFilter filter; |
14163 | 14109 |
14164 /** @domName NodeIterator.pointerBeforeReferenceNode; @docsEditable true */ | 14110 /// @domName NodeIterator.pointerBeforeReferenceNode; @docsEditable true |
14165 final bool pointerBeforeReferenceNode; | 14111 final bool pointerBeforeReferenceNode; |
14166 | 14112 |
14167 /** @domName NodeIterator.referenceNode; @docsEditable true */ | 14113 /// @domName NodeIterator.referenceNode; @docsEditable true |
14168 final Node referenceNode; | 14114 final Node referenceNode; |
14169 | 14115 |
14170 /** @domName NodeIterator.root; @docsEditable true */ | 14116 /// @domName NodeIterator.root; @docsEditable true |
14171 final Node root; | 14117 final Node root; |
14172 | 14118 |
14173 /** @domName NodeIterator.whatToShow; @docsEditable true */ | 14119 /// @domName NodeIterator.whatToShow; @docsEditable true |
14174 final int whatToShow; | 14120 final int whatToShow; |
14175 | 14121 |
14176 /** @domName NodeIterator.detach; @docsEditable true */ | 14122 /// @domName NodeIterator.detach; @docsEditable true |
14177 void detach() native; | 14123 void detach() native; |
14178 | 14124 |
14179 /** @domName NodeIterator.nextNode; @docsEditable true */ | 14125 /// @domName NodeIterator.nextNode; @docsEditable true |
14180 Node nextNode() native; | 14126 Node nextNode() native; |
14181 | 14127 |
14182 /** @domName NodeIterator.previousNode; @docsEditable true */ | 14128 /// @domName NodeIterator.previousNode; @docsEditable true |
14183 Node previousNode() native; | 14129 Node previousNode() native; |
14184 } | 14130 } |
14185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14186 // for details. All rights reserved. Use of this source code is governed by a | 14132 // for details. All rights reserved. Use of this source code is governed by a |
14187 // BSD-style license that can be found in the LICENSE file. | 14133 // BSD-style license that can be found in the LICENSE file. |
14188 | 14134 |
14189 | 14135 |
14190 /// @domName Notation; @docsEditable true | 14136 /// @domName Notation; @docsEditable true |
14191 class Notation extends Node native "*Notation" { | 14137 class Notation extends Node native "*Notation" { |
14192 | 14138 |
14193 /** @domName Notation.publicId; @docsEditable true */ | 14139 /// @domName Notation.publicId; @docsEditable true |
14194 final String publicId; | 14140 final String publicId; |
14195 | 14141 |
14196 /** @domName Notation.systemId; @docsEditable true */ | 14142 /// @domName Notation.systemId; @docsEditable true |
14197 final String systemId; | 14143 final String systemId; |
14198 } | 14144 } |
14199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14200 // for details. All rights reserved. Use of this source code is governed by a | 14146 // for details. All rights reserved. Use of this source code is governed by a |
14201 // BSD-style license that can be found in the LICENSE file. | 14147 // BSD-style license that can be found in the LICENSE file. |
14202 | 14148 |
14203 | 14149 |
14204 /// @domName Notification; @docsEditable true | 14150 /// @domName Notification; @docsEditable true |
14205 class Notification extends EventTarget native "*Notification" { | 14151 class Notification extends EventTarget native "*Notification" { |
14206 | 14152 |
14207 factory Notification(String title, [Map options]) { | 14153 factory Notification(String title, [Map options]) { |
14208 if (!?options) { | 14154 if (!?options) { |
14209 return _NotificationFactoryProvider.createNotification(title); | 14155 return _NotificationFactoryProvider.createNotification(title); |
14210 } | 14156 } |
14211 return _NotificationFactoryProvider.createNotification(title, options); | 14157 return _NotificationFactoryProvider.createNotification(title, options); |
14212 } | 14158 } |
14213 | 14159 |
14214 /** | 14160 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
14215 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
14216 */ | |
14217 NotificationEvents get on => | 14161 NotificationEvents get on => |
14218 new NotificationEvents(this); | 14162 new NotificationEvents(this); |
14219 | 14163 |
14220 /** @domName Notification.dir; @docsEditable true */ | 14164 /// @domName Notification.dir; @docsEditable true |
14221 String dir; | 14165 String dir; |
14222 | 14166 |
14223 /** @domName Notification.permission; @docsEditable true */ | 14167 /// @domName Notification.permission; @docsEditable true |
14224 final String permission; | 14168 final String permission; |
14225 | 14169 |
14226 /** @domName Notification.replaceId; @docsEditable true */ | 14170 /// @domName Notification.replaceId; @docsEditable true |
14227 String replaceId; | 14171 String replaceId; |
14228 | 14172 |
14229 /** @domName Notification.tag; @docsEditable true */ | 14173 /// @domName Notification.tag; @docsEditable true |
14230 String tag; | 14174 String tag; |
14231 | 14175 |
14232 /** @domName Notification.addEventListener; @docsEditable true */ | 14176 /// @domName Notification.addEventListener; @docsEditable true |
14233 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 14177 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
14234 | 14178 |
14235 /** @domName Notification.cancel; @docsEditable true */ | 14179 /// @domName Notification.cancel; @docsEditable true |
14236 void cancel() native; | 14180 void cancel() native; |
14237 | 14181 |
14238 /** @domName Notification.close; @docsEditable true */ | 14182 /// @domName Notification.close; @docsEditable true |
14239 void close() native; | 14183 void close() native; |
14240 | 14184 |
14241 /** @domName Notification.dispatchEvent; @docsEditable true */ | 14185 /// @domName Notification.dispatchEvent; @docsEditable true |
14242 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 14186 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
14243 | 14187 |
14244 /** @domName Notification.removeEventListener; @docsEditable true */ | 14188 /// @domName Notification.removeEventListener; @docsEditable true |
14245 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 14189 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
14246 | 14190 |
14247 /** @domName Notification.requestPermission; @docsEditable true */ | 14191 /// @domName Notification.requestPermission; @docsEditable true |
14248 static void requestPermission(NotificationPermissionCallback callback) native; | 14192 static void requestPermission(NotificationPermissionCallback callback) native; |
14249 | 14193 |
14250 /** @domName Notification.show; @docsEditable true */ | 14194 /// @domName Notification.show; @docsEditable true |
14251 void show() native; | 14195 void show() native; |
14252 } | 14196 } |
14253 | 14197 |
14254 class NotificationEvents extends Events { | 14198 class NotificationEvents extends Events { |
14255 NotificationEvents(EventTarget _ptr) : super(_ptr); | 14199 NotificationEvents(EventTarget _ptr) : super(_ptr); |
14256 | 14200 |
14257 EventListenerList get click => this['click']; | 14201 EventListenerList get click => this['click']; |
14258 | 14202 |
14259 EventListenerList get close => this['close']; | 14203 EventListenerList get close => this['close']; |
14260 | 14204 |
14261 EventListenerList get display => this['display']; | 14205 EventListenerList get display => this['display']; |
14262 | 14206 |
14263 EventListenerList get error => this['error']; | 14207 EventListenerList get error => this['error']; |
14264 | 14208 |
14265 EventListenerList get show => this['show']; | 14209 EventListenerList get show => this['show']; |
14266 } | 14210 } |
14267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14268 // for details. All rights reserved. Use of this source code is governed by a | 14212 // for details. All rights reserved. Use of this source code is governed by a |
14269 // BSD-style license that can be found in the LICENSE file. | 14213 // BSD-style license that can be found in the LICENSE file. |
14270 | 14214 |
14271 | 14215 |
14272 /// @domName NotificationCenter; @docsEditable true | 14216 /// @domName NotificationCenter; @docsEditable true |
14273 class NotificationCenter native "*NotificationCenter" { | 14217 class NotificationCenter native "*NotificationCenter" { |
14274 | 14218 |
14275 /** @domName NotificationCenter.checkPermission; @docsEditable true */ | 14219 /// @domName NotificationCenter.checkPermission; @docsEditable true |
14276 int checkPermission() native; | 14220 int checkPermission() native; |
14277 | 14221 |
14278 /** @domName NotificationCenter.createHTMLNotification; @docsEditable true */ | 14222 /// @domName NotificationCenter.createHTMLNotification; @docsEditable true |
14279 Notification createHTMLNotification(String url) native; | 14223 Notification createHTMLNotification(String url) native; |
14280 | 14224 |
14281 /** @domName NotificationCenter.createNotification; @docsEditable true */ | 14225 /// @domName NotificationCenter.createNotification; @docsEditable true |
14282 Notification createNotification(String iconUrl, String title, String body) nat
ive; | 14226 Notification createNotification(String iconUrl, String title, String body) nat
ive; |
14283 | 14227 |
14284 /** @domName NotificationCenter.requestPermission; @docsEditable true */ | 14228 /// @domName NotificationCenter.requestPermission; @docsEditable true |
14285 void requestPermission(VoidCallback callback) native; | 14229 void requestPermission(VoidCallback callback) native; |
14286 } | 14230 } |
14287 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14231 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14288 // for details. All rights reserved. Use of this source code is governed by a | 14232 // for details. All rights reserved. Use of this source code is governed by a |
14289 // BSD-style license that can be found in the LICENSE file. | 14233 // BSD-style license that can be found in the LICENSE file. |
14290 | 14234 |
14291 // WARNING: Do not edit - generated code. | 14235 // WARNING: Do not edit - generated code. |
14292 | 14236 |
14293 | 14237 |
14294 typedef void NotificationPermissionCallback(String permission); | 14238 typedef void NotificationPermissionCallback(String permission); |
(...skipping 26 matching lines...) Expand all Loading... |
14321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14265 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14322 // for details. All rights reserved. Use of this source code is governed by a | 14266 // for details. All rights reserved. Use of this source code is governed by a |
14323 // BSD-style license that can be found in the LICENSE file. | 14267 // BSD-style license that can be found in the LICENSE file. |
14324 | 14268 |
14325 | 14269 |
14326 /// @domName OESVertexArrayObject; @docsEditable true | 14270 /// @domName OESVertexArrayObject; @docsEditable true |
14327 class OESVertexArrayObject native "*OESVertexArrayObject" { | 14271 class OESVertexArrayObject native "*OESVertexArrayObject" { |
14328 | 14272 |
14329 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; | 14273 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
14330 | 14274 |
14331 /** @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true */ | 14275 /// @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true |
14332 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; | 14276 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; |
14333 | 14277 |
14334 /** @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true */ | 14278 /// @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true |
14335 WebGLVertexArrayObjectOES createVertexArrayOES() native; | 14279 WebGLVertexArrayObjectOES createVertexArrayOES() native; |
14336 | 14280 |
14337 /** @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true */ | 14281 /// @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true |
14338 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; | 14282 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; |
14339 | 14283 |
14340 /** @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true */ | 14284 /// @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true |
14341 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; | 14285 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; |
14342 } | 14286 } |
14343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14287 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14344 // for details. All rights reserved. Use of this source code is governed by a | 14288 // for details. All rights reserved. Use of this source code is governed by a |
14345 // BSD-style license that can be found in the LICENSE file. | 14289 // BSD-style license that can be found in the LICENSE file. |
14346 | 14290 |
14347 | 14291 |
14348 /// @domName HTMLOListElement; @docsEditable true | 14292 /// @domName HTMLOListElement; @docsEditable true |
14349 class OListElement extends Element implements Element native "*HTMLOListElement"
{ | 14293 class OListElement extends Element implements Element native "*HTMLOListElement"
{ |
14350 | 14294 |
14351 factory OListElement() => document.$dom_createElement("ol"); | 14295 factory OListElement() => document.$dom_createElement("ol"); |
14352 | 14296 |
14353 /** @domName HTMLOListElement.compact; @docsEditable true */ | 14297 /// @domName HTMLOListElement.compact; @docsEditable true |
14354 bool compact; | 14298 bool compact; |
14355 | 14299 |
14356 /** @domName HTMLOListElement.reversed; @docsEditable true */ | 14300 /// @domName HTMLOListElement.reversed; @docsEditable true |
14357 bool reversed; | 14301 bool reversed; |
14358 | 14302 |
14359 /** @domName HTMLOListElement.start; @docsEditable true */ | 14303 /// @domName HTMLOListElement.start; @docsEditable true |
14360 int start; | 14304 int start; |
14361 | 14305 |
14362 /** @domName HTMLOListElement.type; @docsEditable true */ | 14306 /// @domName HTMLOListElement.type; @docsEditable true |
14363 String type; | 14307 String type; |
14364 } | 14308 } |
14365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14366 // for details. All rights reserved. Use of this source code is governed by a | 14310 // for details. All rights reserved. Use of this source code is governed by a |
14367 // BSD-style license that can be found in the LICENSE file. | 14311 // BSD-style license that can be found in the LICENSE file. |
14368 | 14312 |
14369 | 14313 |
14370 /// @domName HTMLObjectElement; @docsEditable true | 14314 /// @domName HTMLObjectElement; @docsEditable true |
14371 class ObjectElement extends Element implements Element native "*HTMLObjectElemen
t" { | 14315 class ObjectElement extends Element implements Element native "*HTMLObjectElemen
t" { |
14372 | 14316 |
14373 factory ObjectElement() => document.$dom_createElement("object"); | 14317 factory ObjectElement() => document.$dom_createElement("object"); |
14374 | 14318 |
14375 /** @domName HTMLObjectElement.align; @docsEditable true */ | 14319 /// @domName HTMLObjectElement.align; @docsEditable true |
14376 String align; | 14320 String align; |
14377 | 14321 |
14378 /** @domName HTMLObjectElement.archive; @docsEditable true */ | 14322 /// @domName HTMLObjectElement.archive; @docsEditable true |
14379 String archive; | 14323 String archive; |
14380 | 14324 |
14381 /** @domName HTMLObjectElement.border; @docsEditable true */ | 14325 /// @domName HTMLObjectElement.border; @docsEditable true |
14382 String border; | 14326 String border; |
14383 | 14327 |
14384 /** @domName HTMLObjectElement.code; @docsEditable true */ | 14328 /// @domName HTMLObjectElement.code; @docsEditable true |
14385 String code; | 14329 String code; |
14386 | 14330 |
14387 /** @domName HTMLObjectElement.codeBase; @docsEditable true */ | 14331 /// @domName HTMLObjectElement.codeBase; @docsEditable true |
14388 String codeBase; | 14332 String codeBase; |
14389 | 14333 |
14390 /** @domName HTMLObjectElement.codeType; @docsEditable true */ | 14334 /// @domName HTMLObjectElement.codeType; @docsEditable true |
14391 String codeType; | 14335 String codeType; |
14392 | 14336 |
14393 /** @domName HTMLObjectElement.data; @docsEditable true */ | 14337 /// @domName HTMLObjectElement.data; @docsEditable true |
14394 String data; | 14338 String data; |
14395 | 14339 |
14396 /** @domName HTMLObjectElement.declare; @docsEditable true */ | 14340 /// @domName HTMLObjectElement.declare; @docsEditable true |
14397 bool declare; | 14341 bool declare; |
14398 | 14342 |
14399 /** @domName HTMLObjectElement.form; @docsEditable true */ | 14343 /// @domName HTMLObjectElement.form; @docsEditable true |
14400 final FormElement form; | 14344 final FormElement form; |
14401 | 14345 |
14402 /** @domName HTMLObjectElement.height; @docsEditable true */ | 14346 /// @domName HTMLObjectElement.height; @docsEditable true |
14403 String height; | 14347 String height; |
14404 | 14348 |
14405 /** @domName HTMLObjectElement.hspace; @docsEditable true */ | 14349 /// @domName HTMLObjectElement.hspace; @docsEditable true |
14406 int hspace; | 14350 int hspace; |
14407 | 14351 |
14408 /** @domName HTMLObjectElement.name; @docsEditable true */ | 14352 /// @domName HTMLObjectElement.name; @docsEditable true |
14409 String name; | 14353 String name; |
14410 | 14354 |
14411 /** @domName HTMLObjectElement.standby; @docsEditable true */ | 14355 /// @domName HTMLObjectElement.standby; @docsEditable true |
14412 String standby; | 14356 String standby; |
14413 | 14357 |
14414 /** @domName HTMLObjectElement.type; @docsEditable true */ | 14358 /// @domName HTMLObjectElement.type; @docsEditable true |
14415 String type; | 14359 String type; |
14416 | 14360 |
14417 /** @domName HTMLObjectElement.useMap; @docsEditable true */ | 14361 /// @domName HTMLObjectElement.useMap; @docsEditable true |
14418 String useMap; | 14362 String useMap; |
14419 | 14363 |
14420 /** @domName HTMLObjectElement.validationMessage; @docsEditable true */ | 14364 /// @domName HTMLObjectElement.validationMessage; @docsEditable true |
14421 final String validationMessage; | 14365 final String validationMessage; |
14422 | 14366 |
14423 /** @domName HTMLObjectElement.validity; @docsEditable true */ | 14367 /// @domName HTMLObjectElement.validity; @docsEditable true |
14424 final ValidityState validity; | 14368 final ValidityState validity; |
14425 | 14369 |
14426 /** @domName HTMLObjectElement.vspace; @docsEditable true */ | 14370 /// @domName HTMLObjectElement.vspace; @docsEditable true |
14427 int vspace; | 14371 int vspace; |
14428 | 14372 |
14429 /** @domName HTMLObjectElement.width; @docsEditable true */ | 14373 /// @domName HTMLObjectElement.width; @docsEditable true |
14430 String width; | 14374 String width; |
14431 | 14375 |
14432 /** @domName HTMLObjectElement.willValidate; @docsEditable true */ | 14376 /// @domName HTMLObjectElement.willValidate; @docsEditable true |
14433 final bool willValidate; | 14377 final bool willValidate; |
14434 | 14378 |
14435 /** @domName HTMLObjectElement.checkValidity; @docsEditable true */ | 14379 /// @domName HTMLObjectElement.checkValidity; @docsEditable true |
14436 bool checkValidity() native; | 14380 bool checkValidity() native; |
14437 | 14381 |
14438 /** @domName HTMLObjectElement.setCustomValidity; @docsEditable true */ | 14382 /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true |
14439 void setCustomValidity(String error) native; | 14383 void setCustomValidity(String error) native; |
14440 } | 14384 } |
14441 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14442 // for details. All rights reserved. Use of this source code is governed by a | 14386 // for details. All rights reserved. Use of this source code is governed by a |
14443 // BSD-style license that can be found in the LICENSE file. | 14387 // BSD-style license that can be found in the LICENSE file. |
14444 | 14388 |
14445 | 14389 |
14446 /// @domName OfflineAudioCompletionEvent; @docsEditable true | 14390 /// @domName OfflineAudioCompletionEvent; @docsEditable true |
14447 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE
vent" { | 14391 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE
vent" { |
14448 | 14392 |
14449 /** @domName OfflineAudioCompletionEvent.renderedBuffer; @docsEditable true */ | 14393 /// @domName OfflineAudioCompletionEvent.renderedBuffer; @docsEditable true |
14450 final AudioBuffer renderedBuffer; | 14394 final AudioBuffer renderedBuffer; |
14451 } | 14395 } |
14452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14453 // for details. All rights reserved. Use of this source code is governed by a | 14397 // for details. All rights reserved. Use of this source code is governed by a |
14454 // BSD-style license that can be found in the LICENSE file. | 14398 // BSD-style license that can be found in the LICENSE file. |
14455 | 14399 |
14456 | 14400 |
14457 /// @domName HTMLOptGroupElement; @docsEditable true | 14401 /// @domName HTMLOptGroupElement; @docsEditable true |
14458 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl
ement" { | 14402 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl
ement" { |
14459 | 14403 |
14460 factory OptGroupElement() => document.$dom_createElement("optgroup"); | 14404 factory OptGroupElement() => document.$dom_createElement("optgroup"); |
14461 | 14405 |
14462 /** @domName HTMLOptGroupElement.disabled; @docsEditable true */ | 14406 /// @domName HTMLOptGroupElement.disabled; @docsEditable true |
14463 bool disabled; | 14407 bool disabled; |
14464 | 14408 |
14465 /** @domName HTMLOptGroupElement.label; @docsEditable true */ | 14409 /// @domName HTMLOptGroupElement.label; @docsEditable true |
14466 String label; | 14410 String label; |
14467 } | 14411 } |
14468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14469 // for details. All rights reserved. Use of this source code is governed by a | 14413 // for details. All rights reserved. Use of this source code is governed by a |
14470 // BSD-style license that can be found in the LICENSE file. | 14414 // BSD-style license that can be found in the LICENSE file. |
14471 | 14415 |
14472 | 14416 |
14473 /// @domName HTMLOptionElement; @docsEditable true | 14417 /// @domName HTMLOptionElement; @docsEditable true |
14474 class OptionElement extends Element implements Element native "*HTMLOptionElemen
t" { | 14418 class OptionElement extends Element implements Element native "*HTMLOptionElemen
t" { |
14475 | 14419 |
14476 factory OptionElement([String data, String value, bool defaultSelected, bool s
elected]) { | 14420 factory OptionElement([String data, String value, bool defaultSelected, bool s
elected]) { |
14477 if (!?data) { | 14421 if (!?data) { |
14478 return _OptionElementFactoryProvider.createOptionElement(); | 14422 return _OptionElementFactoryProvider.createOptionElement(); |
14479 } | 14423 } |
14480 if (!?value) { | 14424 if (!?value) { |
14481 return _OptionElementFactoryProvider.createOptionElement(data); | 14425 return _OptionElementFactoryProvider.createOptionElement(data); |
14482 } | 14426 } |
14483 if (!?defaultSelected) { | 14427 if (!?defaultSelected) { |
14484 return _OptionElementFactoryProvider.createOptionElement(data, value); | 14428 return _OptionElementFactoryProvider.createOptionElement(data, value); |
14485 } | 14429 } |
14486 if (!?selected) { | 14430 if (!?selected) { |
14487 return _OptionElementFactoryProvider.createOptionElement(data, value, defa
ultSelected); | 14431 return _OptionElementFactoryProvider.createOptionElement(data, value, defa
ultSelected); |
14488 } | 14432 } |
14489 return _OptionElementFactoryProvider.createOptionElement(data, value, defaul
tSelected, selected); | 14433 return _OptionElementFactoryProvider.createOptionElement(data, value, defaul
tSelected, selected); |
14490 } | 14434 } |
14491 | 14435 |
14492 /** @domName HTMLOptionElement.defaultSelected; @docsEditable true */ | 14436 /// @domName HTMLOptionElement.defaultSelected; @docsEditable true |
14493 bool defaultSelected; | 14437 bool defaultSelected; |
14494 | 14438 |
14495 /** @domName HTMLOptionElement.disabled; @docsEditable true */ | 14439 /// @domName HTMLOptionElement.disabled; @docsEditable true |
14496 bool disabled; | 14440 bool disabled; |
14497 | 14441 |
14498 /** @domName HTMLOptionElement.form; @docsEditable true */ | 14442 /// @domName HTMLOptionElement.form; @docsEditable true |
14499 final FormElement form; | 14443 final FormElement form; |
14500 | 14444 |
14501 /** @domName HTMLOptionElement.index; @docsEditable true */ | 14445 /// @domName HTMLOptionElement.index; @docsEditable true |
14502 final int index; | 14446 final int index; |
14503 | 14447 |
14504 /** @domName HTMLOptionElement.label; @docsEditable true */ | 14448 /// @domName HTMLOptionElement.label; @docsEditable true |
14505 String label; | 14449 String label; |
14506 | 14450 |
14507 /** @domName HTMLOptionElement.selected; @docsEditable true */ | 14451 /// @domName HTMLOptionElement.selected; @docsEditable true |
14508 bool selected; | 14452 bool selected; |
14509 | 14453 |
14510 /** @domName HTMLOptionElement.value; @docsEditable true */ | 14454 /// @domName HTMLOptionElement.value; @docsEditable true |
14511 String value; | 14455 String value; |
14512 } | 14456 } |
14513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14514 // for details. All rights reserved. Use of this source code is governed by a | 14458 // for details. All rights reserved. Use of this source code is governed by a |
14515 // BSD-style license that can be found in the LICENSE file. | 14459 // BSD-style license that can be found in the LICENSE file. |
14516 | 14460 |
14517 | 14461 |
14518 /// @domName OscillatorNode; @docsEditable true | 14462 /// @domName OscillatorNode; @docsEditable true |
14519 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { | 14463 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { |
14520 | 14464 |
14521 static const int CUSTOM = 4; | 14465 static const int CUSTOM = 4; |
14522 | 14466 |
14523 static const int FINISHED_STATE = 3; | 14467 static const int FINISHED_STATE = 3; |
14524 | 14468 |
14525 static const int PLAYING_STATE = 2; | 14469 static const int PLAYING_STATE = 2; |
14526 | 14470 |
14527 static const int SAWTOOTH = 2; | 14471 static const int SAWTOOTH = 2; |
14528 | 14472 |
14529 static const int SCHEDULED_STATE = 1; | 14473 static const int SCHEDULED_STATE = 1; |
14530 | 14474 |
14531 static const int SINE = 0; | 14475 static const int SINE = 0; |
14532 | 14476 |
14533 static const int SQUARE = 1; | 14477 static const int SQUARE = 1; |
14534 | 14478 |
14535 static const int TRIANGLE = 3; | 14479 static const int TRIANGLE = 3; |
14536 | 14480 |
14537 static const int UNSCHEDULED_STATE = 0; | 14481 static const int UNSCHEDULED_STATE = 0; |
14538 | 14482 |
14539 /** @domName OscillatorNode.detune; @docsEditable true */ | 14483 /// @domName OscillatorNode.detune; @docsEditable true |
14540 final AudioParam detune; | 14484 final AudioParam detune; |
14541 | 14485 |
14542 /** @domName OscillatorNode.frequency; @docsEditable true */ | 14486 /// @domName OscillatorNode.frequency; @docsEditable true |
14543 final AudioParam frequency; | 14487 final AudioParam frequency; |
14544 | 14488 |
14545 /** @domName OscillatorNode.playbackState; @docsEditable true */ | 14489 /// @domName OscillatorNode.playbackState; @docsEditable true |
14546 final int playbackState; | 14490 final int playbackState; |
14547 | 14491 |
14548 /** @domName OscillatorNode.type; @docsEditable true */ | 14492 /// @domName OscillatorNode.type; @docsEditable true |
14549 int type; | 14493 int type; |
14550 | 14494 |
14551 /** @domName OscillatorNode.setWaveTable; @docsEditable true */ | 14495 /// @domName OscillatorNode.setWaveTable; @docsEditable true |
14552 void setWaveTable(WaveTable waveTable) native; | 14496 void setWaveTable(WaveTable waveTable) native; |
14553 | 14497 |
14554 /** @domName OscillatorNode.start; @docsEditable true */ | 14498 /// @domName OscillatorNode.start; @docsEditable true |
14555 void start(num when) native; | 14499 void start(num when) native; |
14556 | 14500 |
14557 /** @domName OscillatorNode.stop; @docsEditable true */ | 14501 /// @domName OscillatorNode.stop; @docsEditable true |
14558 void stop(num when) native; | 14502 void stop(num when) native; |
14559 } | 14503 } |
14560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14561 // for details. All rights reserved. Use of this source code is governed by a | 14505 // for details. All rights reserved. Use of this source code is governed by a |
14562 // BSD-style license that can be found in the LICENSE file. | 14506 // BSD-style license that can be found in the LICENSE file. |
14563 | 14507 |
14564 | 14508 |
14565 /// @domName HTMLOutputElement; @docsEditable true | 14509 /// @domName HTMLOutputElement; @docsEditable true |
14566 class OutputElement extends Element implements Element native "*HTMLOutputElemen
t" { | 14510 class OutputElement extends Element implements Element native "*HTMLOutputElemen
t" { |
14567 | 14511 |
14568 factory OutputElement() => document.$dom_createElement("output"); | 14512 factory OutputElement() => document.$dom_createElement("output"); |
14569 | 14513 |
14570 /** @domName HTMLOutputElement.defaultValue; @docsEditable true */ | 14514 /// @domName HTMLOutputElement.defaultValue; @docsEditable true |
14571 String defaultValue; | 14515 String defaultValue; |
14572 | 14516 |
14573 /** @domName HTMLOutputElement.form; @docsEditable true */ | 14517 /// @domName HTMLOutputElement.form; @docsEditable true |
14574 final FormElement form; | 14518 final FormElement form; |
14575 | 14519 |
14576 /** @domName HTMLOutputElement.htmlFor; @docsEditable true */ | 14520 /// @domName HTMLOutputElement.htmlFor; @docsEditable true |
14577 DOMSettableTokenList htmlFor; | 14521 DOMSettableTokenList htmlFor; |
14578 | 14522 |
14579 /** @domName HTMLOutputElement.labels; @docsEditable true */ | 14523 /// @domName HTMLOutputElement.labels; @docsEditable true |
14580 @Returns('_NodeList') @Creates('_NodeList') | 14524 @Returns('_NodeList') @Creates('_NodeList') |
14581 final List<Node> labels; | 14525 final List<Node> labels; |
14582 | 14526 |
14583 /** @domName HTMLOutputElement.name; @docsEditable true */ | 14527 /// @domName HTMLOutputElement.name; @docsEditable true |
14584 String name; | 14528 String name; |
14585 | 14529 |
14586 /** @domName HTMLOutputElement.type; @docsEditable true */ | 14530 /// @domName HTMLOutputElement.type; @docsEditable true |
14587 final String type; | 14531 final String type; |
14588 | 14532 |
14589 /** @domName HTMLOutputElement.validationMessage; @docsEditable true */ | 14533 /// @domName HTMLOutputElement.validationMessage; @docsEditable true |
14590 final String validationMessage; | 14534 final String validationMessage; |
14591 | 14535 |
14592 /** @domName HTMLOutputElement.validity; @docsEditable true */ | 14536 /// @domName HTMLOutputElement.validity; @docsEditable true |
14593 final ValidityState validity; | 14537 final ValidityState validity; |
14594 | 14538 |
14595 /** @domName HTMLOutputElement.value; @docsEditable true */ | 14539 /// @domName HTMLOutputElement.value; @docsEditable true |
14596 String value; | 14540 String value; |
14597 | 14541 |
14598 /** @domName HTMLOutputElement.willValidate; @docsEditable true */ | 14542 /// @domName HTMLOutputElement.willValidate; @docsEditable true |
14599 final bool willValidate; | 14543 final bool willValidate; |
14600 | 14544 |
14601 /** @domName HTMLOutputElement.checkValidity; @docsEditable true */ | 14545 /// @domName HTMLOutputElement.checkValidity; @docsEditable true |
14602 bool checkValidity() native; | 14546 bool checkValidity() native; |
14603 | 14547 |
14604 /** @domName HTMLOutputElement.setCustomValidity; @docsEditable true */ | 14548 /// @domName HTMLOutputElement.setCustomValidity; @docsEditable true |
14605 void setCustomValidity(String error) native; | 14549 void setCustomValidity(String error) native; |
14606 } | 14550 } |
14607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14608 // for details. All rights reserved. Use of this source code is governed by a | 14552 // for details. All rights reserved. Use of this source code is governed by a |
14609 // BSD-style license that can be found in the LICENSE file. | 14553 // BSD-style license that can be found in the LICENSE file. |
14610 | 14554 |
14611 | 14555 |
14612 /// @domName OverflowEvent; @docsEditable true | 14556 /// @domName OverflowEvent; @docsEditable true |
14613 class OverflowEvent extends Event native "*OverflowEvent" { | 14557 class OverflowEvent extends Event native "*OverflowEvent" { |
14614 | 14558 |
14615 static const int BOTH = 2; | 14559 static const int BOTH = 2; |
14616 | 14560 |
14617 static const int HORIZONTAL = 0; | 14561 static const int HORIZONTAL = 0; |
14618 | 14562 |
14619 static const int VERTICAL = 1; | 14563 static const int VERTICAL = 1; |
14620 | 14564 |
14621 /** @domName OverflowEvent.horizontalOverflow; @docsEditable true */ | 14565 /// @domName OverflowEvent.horizontalOverflow; @docsEditable true |
14622 final bool horizontalOverflow; | 14566 final bool horizontalOverflow; |
14623 | 14567 |
14624 /** @domName OverflowEvent.orient; @docsEditable true */ | 14568 /// @domName OverflowEvent.orient; @docsEditable true |
14625 final int orient; | 14569 final int orient; |
14626 | 14570 |
14627 /** @domName OverflowEvent.verticalOverflow; @docsEditable true */ | 14571 /// @domName OverflowEvent.verticalOverflow; @docsEditable true |
14628 final bool verticalOverflow; | 14572 final bool verticalOverflow; |
14629 } | 14573 } |
14630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14631 // for details. All rights reserved. Use of this source code is governed by a | 14575 // for details. All rights reserved. Use of this source code is governed by a |
14632 // BSD-style license that can be found in the LICENSE file. | 14576 // BSD-style license that can be found in the LICENSE file. |
14633 | 14577 |
14634 | 14578 |
14635 /// @domName PagePopupController; @docsEditable true | 14579 /// @domName PagePopupController; @docsEditable true |
14636 class PagePopupController native "*PagePopupController" { | 14580 class PagePopupController native "*PagePopupController" { |
14637 | 14581 |
14638 /** @domName PagePopupController.localizeNumberString; @docsEditable true */ | 14582 /// @domName PagePopupController.localizeNumberString; @docsEditable true |
14639 String localizeNumberString(String numberString) native; | 14583 String localizeNumberString(String numberString) native; |
14640 | 14584 |
14641 /** @domName PagePopupController.setValueAndClosePopup; @docsEditable true */ | 14585 /// @domName PagePopupController.setValueAndClosePopup; @docsEditable true |
14642 void setValueAndClosePopup(int numberValue, String stringValue) native; | 14586 void setValueAndClosePopup(int numberValue, String stringValue) native; |
14643 } | 14587 } |
14644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14645 // for details. All rights reserved. Use of this source code is governed by a | 14589 // for details. All rights reserved. Use of this source code is governed by a |
14646 // BSD-style license that can be found in the LICENSE file. | 14590 // BSD-style license that can be found in the LICENSE file. |
14647 | 14591 |
14648 | 14592 |
14649 /// @domName PageTransitionEvent; @docsEditable true | 14593 /// @domName PageTransitionEvent; @docsEditable true |
14650 class PageTransitionEvent extends Event native "*PageTransitionEvent" { | 14594 class PageTransitionEvent extends Event native "*PageTransitionEvent" { |
14651 | 14595 |
14652 /** @domName PageTransitionEvent.persisted; @docsEditable true */ | 14596 /// @domName PageTransitionEvent.persisted; @docsEditable true |
14653 final bool persisted; | 14597 final bool persisted; |
14654 } | 14598 } |
14655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14656 // for details. All rights reserved. Use of this source code is governed by a | 14600 // for details. All rights reserved. Use of this source code is governed by a |
14657 // BSD-style license that can be found in the LICENSE file. | 14601 // BSD-style license that can be found in the LICENSE file. |
14658 | 14602 |
14659 | 14603 |
14660 /// @domName PannerNode; @docsEditable true | 14604 /// @domName PannerNode; @docsEditable true |
14661 class PannerNode extends AudioNode native "*PannerNode" { | 14605 class PannerNode extends AudioNode native "*PannerNode" { |
14662 | 14606 |
14663 static const int EQUALPOWER = 0; | 14607 static const int EQUALPOWER = 0; |
14664 | 14608 |
14665 static const int EXPONENTIAL_DISTANCE = 2; | 14609 static const int EXPONENTIAL_DISTANCE = 2; |
14666 | 14610 |
14667 static const int HRTF = 1; | 14611 static const int HRTF = 1; |
14668 | 14612 |
14669 static const int INVERSE_DISTANCE = 1; | 14613 static const int INVERSE_DISTANCE = 1; |
14670 | 14614 |
14671 static const int LINEAR_DISTANCE = 0; | 14615 static const int LINEAR_DISTANCE = 0; |
14672 | 14616 |
14673 static const int SOUNDFIELD = 2; | 14617 static const int SOUNDFIELD = 2; |
14674 | 14618 |
14675 /** @domName PannerNode.coneGain; @docsEditable true */ | 14619 /// @domName PannerNode.coneGain; @docsEditable true |
14676 final AudioGain coneGain; | 14620 final AudioGain coneGain; |
14677 | 14621 |
14678 /** @domName PannerNode.coneInnerAngle; @docsEditable true */ | 14622 /// @domName PannerNode.coneInnerAngle; @docsEditable true |
14679 num coneInnerAngle; | 14623 num coneInnerAngle; |
14680 | 14624 |
14681 /** @domName PannerNode.coneOuterAngle; @docsEditable true */ | 14625 /// @domName PannerNode.coneOuterAngle; @docsEditable true |
14682 num coneOuterAngle; | 14626 num coneOuterAngle; |
14683 | 14627 |
14684 /** @domName PannerNode.coneOuterGain; @docsEditable true */ | 14628 /// @domName PannerNode.coneOuterGain; @docsEditable true |
14685 num coneOuterGain; | 14629 num coneOuterGain; |
14686 | 14630 |
14687 /** @domName PannerNode.distanceGain; @docsEditable true */ | 14631 /// @domName PannerNode.distanceGain; @docsEditable true |
14688 final AudioGain distanceGain; | 14632 final AudioGain distanceGain; |
14689 | 14633 |
14690 /** @domName PannerNode.distanceModel; @docsEditable true */ | 14634 /// @domName PannerNode.distanceModel; @docsEditable true |
14691 int distanceModel; | 14635 int distanceModel; |
14692 | 14636 |
14693 /** @domName PannerNode.maxDistance; @docsEditable true */ | 14637 /// @domName PannerNode.maxDistance; @docsEditable true |
14694 num maxDistance; | 14638 num maxDistance; |
14695 | 14639 |
14696 /** @domName PannerNode.panningModel; @docsEditable true */ | 14640 /// @domName PannerNode.panningModel; @docsEditable true |
14697 int panningModel; | 14641 int panningModel; |
14698 | 14642 |
14699 /** @domName PannerNode.refDistance; @docsEditable true */ | 14643 /// @domName PannerNode.refDistance; @docsEditable true |
14700 num refDistance; | 14644 num refDistance; |
14701 | 14645 |
14702 /** @domName PannerNode.rolloffFactor; @docsEditable true */ | 14646 /// @domName PannerNode.rolloffFactor; @docsEditable true |
14703 num rolloffFactor; | 14647 num rolloffFactor; |
14704 | 14648 |
14705 /** @domName PannerNode.setOrientation; @docsEditable true */ | 14649 /// @domName PannerNode.setOrientation; @docsEditable true |
14706 void setOrientation(num x, num y, num z) native; | 14650 void setOrientation(num x, num y, num z) native; |
14707 | 14651 |
14708 /** @domName PannerNode.setPosition; @docsEditable true */ | 14652 /// @domName PannerNode.setPosition; @docsEditable true |
14709 void setPosition(num x, num y, num z) native; | 14653 void setPosition(num x, num y, num z) native; |
14710 | 14654 |
14711 /** @domName PannerNode.setVelocity; @docsEditable true */ | 14655 /// @domName PannerNode.setVelocity; @docsEditable true |
14712 void setVelocity(num x, num y, num z) native; | 14656 void setVelocity(num x, num y, num z) native; |
14713 } | 14657 } |
14714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14715 // for details. All rights reserved. Use of this source code is governed by a | 14659 // for details. All rights reserved. Use of this source code is governed by a |
14716 // BSD-style license that can be found in the LICENSE file. | 14660 // BSD-style license that can be found in the LICENSE file. |
14717 | 14661 |
14718 | 14662 |
14719 /// @domName HTMLParagraphElement; @docsEditable true | 14663 /// @domName HTMLParagraphElement; @docsEditable true |
14720 class ParagraphElement extends Element implements Element native "*HTMLParagraph
Element" { | 14664 class ParagraphElement extends Element implements Element native "*HTMLParagraph
Element" { |
14721 | 14665 |
14722 factory ParagraphElement() => document.$dom_createElement("p"); | 14666 factory ParagraphElement() => document.$dom_createElement("p"); |
14723 | 14667 |
14724 /** @domName HTMLParagraphElement.align; @docsEditable true */ | 14668 /// @domName HTMLParagraphElement.align; @docsEditable true |
14725 String align; | 14669 String align; |
14726 } | 14670 } |
14727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14728 // for details. All rights reserved. Use of this source code is governed by a | 14672 // for details. All rights reserved. Use of this source code is governed by a |
14729 // BSD-style license that can be found in the LICENSE file. | 14673 // BSD-style license that can be found in the LICENSE file. |
14730 | 14674 |
14731 | 14675 |
14732 /// @domName HTMLParamElement; @docsEditable true | 14676 /// @domName HTMLParamElement; @docsEditable true |
14733 class ParamElement extends Element implements Element native "*HTMLParamElement"
{ | 14677 class ParamElement extends Element implements Element native "*HTMLParamElement"
{ |
14734 | 14678 |
14735 factory ParamElement() => document.$dom_createElement("param"); | 14679 factory ParamElement() => document.$dom_createElement("param"); |
14736 | 14680 |
14737 /** @domName HTMLParamElement.name; @docsEditable true */ | 14681 /// @domName HTMLParamElement.name; @docsEditable true |
14738 String name; | 14682 String name; |
14739 | 14683 |
14740 /** @domName HTMLParamElement.type; @docsEditable true */ | 14684 /// @domName HTMLParamElement.type; @docsEditable true |
14741 String type; | 14685 String type; |
14742 | 14686 |
14743 /** @domName HTMLParamElement.value; @docsEditable true */ | 14687 /// @domName HTMLParamElement.value; @docsEditable true |
14744 String value; | 14688 String value; |
14745 | 14689 |
14746 /** @domName HTMLParamElement.valueType; @docsEditable true */ | 14690 /// @domName HTMLParamElement.valueType; @docsEditable true |
14747 String valueType; | 14691 String valueType; |
14748 } | 14692 } |
14749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14750 // for details. All rights reserved. Use of this source code is governed by a | 14694 // for details. All rights reserved. Use of this source code is governed by a |
14751 // BSD-style license that can be found in the LICENSE file. | 14695 // BSD-style license that can be found in the LICENSE file. |
14752 | 14696 |
14753 | 14697 |
14754 /// @domName PeerConnection00; @docsEditable true | 14698 /// @domName PeerConnection00; @docsEditable true |
14755 class PeerConnection00 extends EventTarget native "*PeerConnection00" { | 14699 class PeerConnection00 extends EventTarget native "*PeerConnection00" { |
14756 | 14700 |
14757 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback)
=> _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration,
iceCallback); | 14701 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback)
=> _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration,
iceCallback); |
14758 | 14702 |
14759 /** | 14703 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
14760 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
14761 */ | |
14762 PeerConnection00Events get on => | 14704 PeerConnection00Events get on => |
14763 new PeerConnection00Events(this); | 14705 new PeerConnection00Events(this); |
14764 | 14706 |
14765 static const int ACTIVE = 2; | 14707 static const int ACTIVE = 2; |
14766 | 14708 |
14767 static const int CLOSED = 3; | 14709 static const int CLOSED = 3; |
14768 | 14710 |
14769 static const int ICE_CHECKING = 0x300; | 14711 static const int ICE_CHECKING = 0x300; |
14770 | 14712 |
14771 static const int ICE_CLOSED = 0x700; | 14713 static const int ICE_CLOSED = 0x700; |
(...skipping 11 matching lines...) Expand all Loading... |
14783 static const int NEW = 0; | 14725 static const int NEW = 0; |
14784 | 14726 |
14785 static const int OPENING = 1; | 14727 static const int OPENING = 1; |
14786 | 14728 |
14787 static const int SDP_ANSWER = 0x300; | 14729 static const int SDP_ANSWER = 0x300; |
14788 | 14730 |
14789 static const int SDP_OFFER = 0x100; | 14731 static const int SDP_OFFER = 0x100; |
14790 | 14732 |
14791 static const int SDP_PRANSWER = 0x200; | 14733 static const int SDP_PRANSWER = 0x200; |
14792 | 14734 |
14793 /** @domName PeerConnection00.iceState; @docsEditable true */ | 14735 /// @domName PeerConnection00.iceState; @docsEditable true |
14794 final int iceState; | 14736 final int iceState; |
14795 | 14737 |
14796 /** @domName PeerConnection00.localDescription; @docsEditable true */ | 14738 /// @domName PeerConnection00.localDescription; @docsEditable true |
14797 final SessionDescription localDescription; | 14739 final SessionDescription localDescription; |
14798 | 14740 |
14799 /** @domName PeerConnection00.localStreams; @docsEditable true */ | 14741 /// @domName PeerConnection00.localStreams; @docsEditable true |
14800 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | 14742 @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
14801 final List<MediaStream> localStreams; | 14743 final List<MediaStream> localStreams; |
14802 | 14744 |
14803 /** @domName PeerConnection00.readyState; @docsEditable true */ | 14745 /// @domName PeerConnection00.readyState; @docsEditable true |
14804 final int readyState; | 14746 final int readyState; |
14805 | 14747 |
14806 /** @domName PeerConnection00.remoteDescription; @docsEditable true */ | 14748 /// @domName PeerConnection00.remoteDescription; @docsEditable true |
14807 final SessionDescription remoteDescription; | 14749 final SessionDescription remoteDescription; |
14808 | 14750 |
14809 /** @domName PeerConnection00.remoteStreams; @docsEditable true */ | 14751 /// @domName PeerConnection00.remoteStreams; @docsEditable true |
14810 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | 14752 @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
14811 final List<MediaStream> remoteStreams; | 14753 final List<MediaStream> remoteStreams; |
14812 | 14754 |
14813 /** @domName PeerConnection00.addEventListener; @docsEditable true */ | 14755 /// @domName PeerConnection00.addEventListener; @docsEditable true |
14814 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 14756 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
14815 | 14757 |
14816 /** @domName PeerConnection00.addStream; @docsEditable true */ | 14758 /// @domName PeerConnection00.addStream; @docsEditable true |
14817 void addStream(MediaStream stream, [Map mediaStreamHints]) { | 14759 void addStream(MediaStream stream, [Map mediaStreamHints]) { |
14818 if (?mediaStreamHints) { | 14760 if (?mediaStreamHints) { |
14819 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints)
; | 14761 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints)
; |
14820 _addStream_1(stream, mediaStreamHints_1); | 14762 _addStream_1(stream, mediaStreamHints_1); |
14821 return; | 14763 return; |
14822 } | 14764 } |
14823 _addStream_2(stream); | 14765 _addStream_2(stream); |
14824 return; | 14766 return; |
14825 } | 14767 } |
14826 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; | 14768 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; |
14827 void _addStream_2(MediaStream stream) native "addStream"; | 14769 void _addStream_2(MediaStream stream) native "addStream"; |
14828 | 14770 |
14829 /** @domName PeerConnection00.close; @docsEditable true */ | 14771 /// @domName PeerConnection00.close; @docsEditable true |
14830 void close() native; | 14772 void close() native; |
14831 | 14773 |
14832 /** @domName PeerConnection00.createAnswer; @docsEditable true */ | 14774 /// @domName PeerConnection00.createAnswer; @docsEditable true |
14833 SessionDescription createAnswer(String offer, [Map mediaHints]) { | 14775 SessionDescription createAnswer(String offer, [Map mediaHints]) { |
14834 if (?mediaHints) { | 14776 if (?mediaHints) { |
14835 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); | 14777 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); |
14836 return _createAnswer_1(offer, mediaHints_1); | 14778 return _createAnswer_1(offer, mediaHints_1); |
14837 } | 14779 } |
14838 return _createAnswer_2(offer); | 14780 return _createAnswer_2(offer); |
14839 } | 14781 } |
14840 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; | 14782 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; |
14841 SessionDescription _createAnswer_2(offer) native "createAnswer"; | 14783 SessionDescription _createAnswer_2(offer) native "createAnswer"; |
14842 | 14784 |
14843 /** @domName PeerConnection00.createOffer; @docsEditable true */ | 14785 /// @domName PeerConnection00.createOffer; @docsEditable true |
14844 SessionDescription createOffer([Map mediaHints]) { | 14786 SessionDescription createOffer([Map mediaHints]) { |
14845 if (?mediaHints) { | 14787 if (?mediaHints) { |
14846 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); | 14788 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); |
14847 return _createOffer_1(mediaHints_1); | 14789 return _createOffer_1(mediaHints_1); |
14848 } | 14790 } |
14849 return _createOffer_2(); | 14791 return _createOffer_2(); |
14850 } | 14792 } |
14851 SessionDescription _createOffer_1(mediaHints) native "createOffer"; | 14793 SessionDescription _createOffer_1(mediaHints) native "createOffer"; |
14852 SessionDescription _createOffer_2() native "createOffer"; | 14794 SessionDescription _createOffer_2() native "createOffer"; |
14853 | 14795 |
14854 /** @domName PeerConnection00.dispatchEvent; @docsEditable true */ | 14796 /// @domName PeerConnection00.dispatchEvent; @docsEditable true |
14855 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 14797 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
14856 | 14798 |
14857 /** @domName PeerConnection00.processIceMessage; @docsEditable true */ | 14799 /// @domName PeerConnection00.processIceMessage; @docsEditable true |
14858 void processIceMessage(IceCandidate candidate) native; | 14800 void processIceMessage(IceCandidate candidate) native; |
14859 | 14801 |
14860 /** @domName PeerConnection00.removeEventListener; @docsEditable true */ | 14802 /// @domName PeerConnection00.removeEventListener; @docsEditable true |
14861 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 14803 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
14862 | 14804 |
14863 /** @domName PeerConnection00.removeStream; @docsEditable true */ | 14805 /// @domName PeerConnection00.removeStream; @docsEditable true |
14864 void removeStream(MediaStream stream) native; | 14806 void removeStream(MediaStream stream) native; |
14865 | 14807 |
14866 /** @domName PeerConnection00.setLocalDescription; @docsEditable true */ | 14808 /// @domName PeerConnection00.setLocalDescription; @docsEditable true |
14867 void setLocalDescription(int action, SessionDescription desc) native; | 14809 void setLocalDescription(int action, SessionDescription desc) native; |
14868 | 14810 |
14869 /** @domName PeerConnection00.setRemoteDescription; @docsEditable true */ | 14811 /// @domName PeerConnection00.setRemoteDescription; @docsEditable true |
14870 void setRemoteDescription(int action, SessionDescription desc) native; | 14812 void setRemoteDescription(int action, SessionDescription desc) native; |
14871 | 14813 |
14872 /** @domName PeerConnection00.startIce; @docsEditable true */ | 14814 /// @domName PeerConnection00.startIce; @docsEditable true |
14873 void startIce([Map iceOptions]) { | 14815 void startIce([Map iceOptions]) { |
14874 if (?iceOptions) { | 14816 if (?iceOptions) { |
14875 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); | 14817 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); |
14876 _startIce_1(iceOptions_1); | 14818 _startIce_1(iceOptions_1); |
14877 return; | 14819 return; |
14878 } | 14820 } |
14879 _startIce_2(); | 14821 _startIce_2(); |
14880 return; | 14822 return; |
14881 } | 14823 } |
14882 void _startIce_1(iceOptions) native "startIce"; | 14824 void _startIce_1(iceOptions) native "startIce"; |
(...skipping 14 matching lines...) Expand all Loading... |
14897 EventListenerList get stateChange => this['statechange']; | 14839 EventListenerList get stateChange => this['statechange']; |
14898 } | 14840 } |
14899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14900 // for details. All rights reserved. Use of this source code is governed by a | 14842 // for details. All rights reserved. Use of this source code is governed by a |
14901 // BSD-style license that can be found in the LICENSE file. | 14843 // BSD-style license that can be found in the LICENSE file. |
14902 | 14844 |
14903 | 14845 |
14904 /// @domName Performance; @docsEditable true | 14846 /// @domName Performance; @docsEditable true |
14905 class Performance extends EventTarget native "*Performance" { | 14847 class Performance extends EventTarget native "*Performance" { |
14906 | 14848 |
14907 /** @domName Performance.memory; @docsEditable true */ | 14849 /// @domName Performance.memory; @docsEditable true |
14908 final MemoryInfo memory; | 14850 final MemoryInfo memory; |
14909 | 14851 |
14910 /** @domName Performance.navigation; @docsEditable true */ | 14852 /// @domName Performance.navigation; @docsEditable true |
14911 final PerformanceNavigation navigation; | 14853 final PerformanceNavigation navigation; |
14912 | 14854 |
14913 /** @domName Performance.timing; @docsEditable true */ | 14855 /// @domName Performance.timing; @docsEditable true |
14914 final PerformanceTiming timing; | 14856 final PerformanceTiming timing; |
14915 | 14857 |
14916 /** @domName Performance.now; @docsEditable true */ | 14858 /// @domName Performance.now; @docsEditable true |
14917 num now() native; | 14859 num now() native; |
14918 } | 14860 } |
14919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14920 // for details. All rights reserved. Use of this source code is governed by a | 14862 // for details. All rights reserved. Use of this source code is governed by a |
14921 // BSD-style license that can be found in the LICENSE file. | 14863 // BSD-style license that can be found in the LICENSE file. |
14922 | 14864 |
14923 | 14865 |
14924 /// @domName PerformanceNavigation; @docsEditable true | 14866 /// @domName PerformanceNavigation; @docsEditable true |
14925 class PerformanceNavigation native "*PerformanceNavigation" { | 14867 class PerformanceNavigation native "*PerformanceNavigation" { |
14926 | 14868 |
14927 static const int TYPE_BACK_FORWARD = 2; | 14869 static const int TYPE_BACK_FORWARD = 2; |
14928 | 14870 |
14929 static const int TYPE_NAVIGATE = 0; | 14871 static const int TYPE_NAVIGATE = 0; |
14930 | 14872 |
14931 static const int TYPE_RELOAD = 1; | 14873 static const int TYPE_RELOAD = 1; |
14932 | 14874 |
14933 static const int TYPE_RESERVED = 255; | 14875 static const int TYPE_RESERVED = 255; |
14934 | 14876 |
14935 /** @domName PerformanceNavigation.redirectCount; @docsEditable true */ | 14877 /// @domName PerformanceNavigation.redirectCount; @docsEditable true |
14936 final int redirectCount; | 14878 final int redirectCount; |
14937 | 14879 |
14938 /** @domName PerformanceNavigation.type; @docsEditable true */ | 14880 /// @domName PerformanceNavigation.type; @docsEditable true |
14939 final int type; | 14881 final int type; |
14940 } | 14882 } |
14941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14942 // for details. All rights reserved. Use of this source code is governed by a | 14884 // for details. All rights reserved. Use of this source code is governed by a |
14943 // BSD-style license that can be found in the LICENSE file. | 14885 // BSD-style license that can be found in the LICENSE file. |
14944 | 14886 |
14945 | 14887 |
14946 /// @domName PerformanceTiming; @docsEditable true | 14888 /// @domName PerformanceTiming; @docsEditable true |
14947 class PerformanceTiming native "*PerformanceTiming" { | 14889 class PerformanceTiming native "*PerformanceTiming" { |
14948 | 14890 |
14949 /** @domName PerformanceTiming.connectEnd; @docsEditable true */ | 14891 /// @domName PerformanceTiming.connectEnd; @docsEditable true |
14950 final int connectEnd; | 14892 final int connectEnd; |
14951 | 14893 |
14952 /** @domName PerformanceTiming.connectStart; @docsEditable true */ | 14894 /// @domName PerformanceTiming.connectStart; @docsEditable true |
14953 final int connectStart; | 14895 final int connectStart; |
14954 | 14896 |
14955 /** @domName PerformanceTiming.domComplete; @docsEditable true */ | 14897 /// @domName PerformanceTiming.domComplete; @docsEditable true |
14956 final int domComplete; | 14898 final int domComplete; |
14957 | 14899 |
14958 /** @domName PerformanceTiming.domContentLoadedEventEnd; @docsEditable true */ | 14900 /// @domName PerformanceTiming.domContentLoadedEventEnd; @docsEditable true |
14959 final int domContentLoadedEventEnd; | 14901 final int domContentLoadedEventEnd; |
14960 | 14902 |
14961 /** @domName PerformanceTiming.domContentLoadedEventStart; @docsEditable true
*/ | 14903 /// @domName PerformanceTiming.domContentLoadedEventStart; @docsEditable true |
14962 final int domContentLoadedEventStart; | 14904 final int domContentLoadedEventStart; |
14963 | 14905 |
14964 /** @domName PerformanceTiming.domInteractive; @docsEditable true */ | 14906 /// @domName PerformanceTiming.domInteractive; @docsEditable true |
14965 final int domInteractive; | 14907 final int domInteractive; |
14966 | 14908 |
14967 /** @domName PerformanceTiming.domLoading; @docsEditable true */ | 14909 /// @domName PerformanceTiming.domLoading; @docsEditable true |
14968 final int domLoading; | 14910 final int domLoading; |
14969 | 14911 |
14970 /** @domName PerformanceTiming.domainLookupEnd; @docsEditable true */ | 14912 /// @domName PerformanceTiming.domainLookupEnd; @docsEditable true |
14971 final int domainLookupEnd; | 14913 final int domainLookupEnd; |
14972 | 14914 |
14973 /** @domName PerformanceTiming.domainLookupStart; @docsEditable true */ | 14915 /// @domName PerformanceTiming.domainLookupStart; @docsEditable true |
14974 final int domainLookupStart; | 14916 final int domainLookupStart; |
14975 | 14917 |
14976 /** @domName PerformanceTiming.fetchStart; @docsEditable true */ | 14918 /// @domName PerformanceTiming.fetchStart; @docsEditable true |
14977 final int fetchStart; | 14919 final int fetchStart; |
14978 | 14920 |
14979 /** @domName PerformanceTiming.loadEventEnd; @docsEditable true */ | 14921 /// @domName PerformanceTiming.loadEventEnd; @docsEditable true |
14980 final int loadEventEnd; | 14922 final int loadEventEnd; |
14981 | 14923 |
14982 /** @domName PerformanceTiming.loadEventStart; @docsEditable true */ | 14924 /// @domName PerformanceTiming.loadEventStart; @docsEditable true |
14983 final int loadEventStart; | 14925 final int loadEventStart; |
14984 | 14926 |
14985 /** @domName PerformanceTiming.navigationStart; @docsEditable true */ | 14927 /// @domName PerformanceTiming.navigationStart; @docsEditable true |
14986 final int navigationStart; | 14928 final int navigationStart; |
14987 | 14929 |
14988 /** @domName PerformanceTiming.redirectEnd; @docsEditable true */ | 14930 /// @domName PerformanceTiming.redirectEnd; @docsEditable true |
14989 final int redirectEnd; | 14931 final int redirectEnd; |
14990 | 14932 |
14991 /** @domName PerformanceTiming.redirectStart; @docsEditable true */ | 14933 /// @domName PerformanceTiming.redirectStart; @docsEditable true |
14992 final int redirectStart; | 14934 final int redirectStart; |
14993 | 14935 |
14994 /** @domName PerformanceTiming.requestStart; @docsEditable true */ | 14936 /// @domName PerformanceTiming.requestStart; @docsEditable true |
14995 final int requestStart; | 14937 final int requestStart; |
14996 | 14938 |
14997 /** @domName PerformanceTiming.responseEnd; @docsEditable true */ | 14939 /// @domName PerformanceTiming.responseEnd; @docsEditable true |
14998 final int responseEnd; | 14940 final int responseEnd; |
14999 | 14941 |
15000 /** @domName PerformanceTiming.responseStart; @docsEditable true */ | 14942 /// @domName PerformanceTiming.responseStart; @docsEditable true |
15001 final int responseStart; | 14943 final int responseStart; |
15002 | 14944 |
15003 /** @domName PerformanceTiming.secureConnectionStart; @docsEditable true */ | 14945 /// @domName PerformanceTiming.secureConnectionStart; @docsEditable true |
15004 final int secureConnectionStart; | 14946 final int secureConnectionStart; |
15005 | 14947 |
15006 /** @domName PerformanceTiming.unloadEventEnd; @docsEditable true */ | 14948 /// @domName PerformanceTiming.unloadEventEnd; @docsEditable true |
15007 final int unloadEventEnd; | 14949 final int unloadEventEnd; |
15008 | 14950 |
15009 /** @domName PerformanceTiming.unloadEventStart; @docsEditable true */ | 14951 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true |
15010 final int unloadEventStart; | 14952 final int unloadEventStart; |
15011 } | 14953 } |
15012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15013 // for details. All rights reserved. Use of this source code is governed by a | 14955 // for details. All rights reserved. Use of this source code is governed by a |
15014 // BSD-style license that can be found in the LICENSE file. | 14956 // BSD-style license that can be found in the LICENSE file. |
15015 | 14957 |
15016 // WARNING: Do not edit - generated code. | 14958 // WARNING: Do not edit - generated code. |
15017 | 14959 |
15018 | 14960 |
15019 class Point native "*WebKitPoint" { | 14961 class Point native "*WebKitPoint" { |
15020 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); | 14962 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); |
15021 | 14963 |
15022 /** @domName WebKitPoint.x; @docsEditable true */ | 14964 /// @domName WebKitPoint.x; @docsEditable true |
15023 num x; | 14965 num x; |
15024 | 14966 |
15025 /** @domName WebKitPoint.y; @docsEditable true */ | 14967 /// @domName WebKitPoint.y; @docsEditable true |
15026 num y; | 14968 num y; |
15027 | 14969 |
15028 } | 14970 } |
15029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15030 // for details. All rights reserved. Use of this source code is governed by a | 14972 // for details. All rights reserved. Use of this source code is governed by a |
15031 // BSD-style license that can be found in the LICENSE file. | 14973 // BSD-style license that can be found in the LICENSE file. |
15032 | 14974 |
15033 | 14975 |
15034 /// @domName PopStateEvent; @docsEditable true | 14976 /// @domName PopStateEvent; @docsEditable true |
15035 class PopStateEvent extends Event native "*PopStateEvent" { | 14977 class PopStateEvent extends Event native "*PopStateEvent" { |
15036 | 14978 |
15037 /** @domName PopStateEvent.state; @docsEditable true */ | 14979 /// @domName PopStateEvent.state; @docsEditable true |
15038 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); | 14980 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); |
15039 dynamic get _state => JS("dynamic", "#.state", this); | 14981 dynamic get _state => JS("dynamic", "#.state", this); |
15040 } | 14982 } |
15041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15042 // for details. All rights reserved. Use of this source code is governed by a | 14984 // for details. All rights reserved. Use of this source code is governed by a |
15043 // BSD-style license that can be found in the LICENSE file. | 14985 // BSD-style license that can be found in the LICENSE file. |
15044 | 14986 |
15045 // WARNING: Do not edit - generated code. | 14987 // WARNING: Do not edit - generated code. |
15046 | 14988 |
15047 | 14989 |
15048 typedef void PositionCallback(Geoposition position); | 14990 typedef void PositionCallback(Geoposition position); |
15049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15050 // for details. All rights reserved. Use of this source code is governed by a | 14992 // for details. All rights reserved. Use of this source code is governed by a |
15051 // BSD-style license that can be found in the LICENSE file. | 14993 // BSD-style license that can be found in the LICENSE file. |
15052 | 14994 |
15053 | 14995 |
15054 /// @domName PositionError; @docsEditable true | 14996 /// @domName PositionError; @docsEditable true |
15055 class PositionError native "*PositionError" { | 14997 class PositionError native "*PositionError" { |
15056 | 14998 |
15057 static const int PERMISSION_DENIED = 1; | 14999 static const int PERMISSION_DENIED = 1; |
15058 | 15000 |
15059 static const int POSITION_UNAVAILABLE = 2; | 15001 static const int POSITION_UNAVAILABLE = 2; |
15060 | 15002 |
15061 static const int TIMEOUT = 3; | 15003 static const int TIMEOUT = 3; |
15062 | 15004 |
15063 /** @domName PositionError.code; @docsEditable true */ | 15005 /// @domName PositionError.code; @docsEditable true |
15064 final int code; | 15006 final int code; |
15065 | 15007 |
15066 /** @domName PositionError.message; @docsEditable true */ | 15008 /// @domName PositionError.message; @docsEditable true |
15067 final String message; | 15009 final String message; |
15068 } | 15010 } |
15069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15070 // for details. All rights reserved. Use of this source code is governed by a | 15012 // for details. All rights reserved. Use of this source code is governed by a |
15071 // BSD-style license that can be found in the LICENSE file. | 15013 // BSD-style license that can be found in the LICENSE file. |
15072 | 15014 |
15073 // WARNING: Do not edit - generated code. | 15015 // WARNING: Do not edit - generated code. |
15074 | 15016 |
15075 | 15017 |
15076 typedef void PositionErrorCallback(PositionError error); | 15018 typedef void PositionErrorCallback(PositionError error); |
15077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15078 // for details. All rights reserved. Use of this source code is governed by a | 15020 // for details. All rights reserved. Use of this source code is governed by a |
15079 // BSD-style license that can be found in the LICENSE file. | 15021 // BSD-style license that can be found in the LICENSE file. |
15080 | 15022 |
15081 | 15023 |
15082 /// @domName HTMLPreElement; @docsEditable true | 15024 /// @domName HTMLPreElement; @docsEditable true |
15083 class PreElement extends Element implements Element native "*HTMLPreElement" { | 15025 class PreElement extends Element implements Element native "*HTMLPreElement" { |
15084 | 15026 |
15085 factory PreElement() => document.$dom_createElement("pre"); | 15027 factory PreElement() => document.$dom_createElement("pre"); |
15086 | 15028 |
15087 /** @domName HTMLPreElement.width; @docsEditable true */ | 15029 /// @domName HTMLPreElement.width; @docsEditable true |
15088 int width; | 15030 int width; |
15089 | 15031 |
15090 /** @domName HTMLPreElement.wrap; @docsEditable true */ | 15032 /// @domName HTMLPreElement.wrap; @docsEditable true |
15091 bool wrap; | 15033 bool wrap; |
15092 } | 15034 } |
15093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15094 // for details. All rights reserved. Use of this source code is governed by a | 15036 // for details. All rights reserved. Use of this source code is governed by a |
15095 // BSD-style license that can be found in the LICENSE file. | 15037 // BSD-style license that can be found in the LICENSE file. |
15096 | 15038 |
15097 | 15039 |
15098 /// @domName ProcessingInstruction; @docsEditable true | 15040 /// @domName ProcessingInstruction; @docsEditable true |
15099 class ProcessingInstruction extends Node native "*ProcessingInstruction" { | 15041 class ProcessingInstruction extends Node native "*ProcessingInstruction" { |
15100 | 15042 |
15101 /** @domName ProcessingInstruction.data; @docsEditable true */ | 15043 /// @domName ProcessingInstruction.data; @docsEditable true |
15102 String data; | 15044 String data; |
15103 | 15045 |
15104 /** @domName ProcessingInstruction.sheet; @docsEditable true */ | 15046 /// @domName ProcessingInstruction.sheet; @docsEditable true |
15105 final StyleSheet sheet; | 15047 final StyleSheet sheet; |
15106 | 15048 |
15107 /** @domName ProcessingInstruction.target; @docsEditable true */ | 15049 /// @domName ProcessingInstruction.target; @docsEditable true |
15108 final String target; | 15050 final String target; |
15109 } | 15051 } |
15110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15052 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15111 // for details. All rights reserved. Use of this source code is governed by a | 15053 // for details. All rights reserved. Use of this source code is governed by a |
15112 // BSD-style license that can be found in the LICENSE file. | 15054 // BSD-style license that can be found in the LICENSE file. |
15113 | 15055 |
15114 | 15056 |
15115 /// @domName HTMLProgressElement; @docsEditable true | 15057 /// @domName HTMLProgressElement; @docsEditable true |
15116 class ProgressElement extends Element implements Element native "*HTMLProgressEl
ement" { | 15058 class ProgressElement extends Element implements Element native "*HTMLProgressEl
ement" { |
15117 | 15059 |
15118 factory ProgressElement() => document.$dom_createElement("progress"); | 15060 factory ProgressElement() => document.$dom_createElement("progress"); |
15119 | 15061 |
15120 /** @domName HTMLProgressElement.labels; @docsEditable true */ | 15062 /// @domName HTMLProgressElement.labels; @docsEditable true |
15121 @Returns('_NodeList') @Creates('_NodeList') | 15063 @Returns('_NodeList') @Creates('_NodeList') |
15122 final List<Node> labels; | 15064 final List<Node> labels; |
15123 | 15065 |
15124 /** @domName HTMLProgressElement.max; @docsEditable true */ | 15066 /// @domName HTMLProgressElement.max; @docsEditable true |
15125 num max; | 15067 num max; |
15126 | 15068 |
15127 /** @domName HTMLProgressElement.position; @docsEditable true */ | 15069 /// @domName HTMLProgressElement.position; @docsEditable true |
15128 final num position; | 15070 final num position; |
15129 | 15071 |
15130 /** @domName HTMLProgressElement.value; @docsEditable true */ | 15072 /// @domName HTMLProgressElement.value; @docsEditable true |
15131 num value; | 15073 num value; |
15132 } | 15074 } |
15133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15134 // for details. All rights reserved. Use of this source code is governed by a | 15076 // for details. All rights reserved. Use of this source code is governed by a |
15135 // BSD-style license that can be found in the LICENSE file. | 15077 // BSD-style license that can be found in the LICENSE file. |
15136 | 15078 |
15137 | 15079 |
15138 /// @domName ProgressEvent; @docsEditable true | 15080 /// @domName ProgressEvent; @docsEditable true |
15139 class ProgressEvent extends Event native "*ProgressEvent" { | 15081 class ProgressEvent extends Event native "*ProgressEvent" { |
15140 | 15082 |
15141 /** @domName ProgressEvent.lengthComputable; @docsEditable true */ | 15083 /// @domName ProgressEvent.lengthComputable; @docsEditable true |
15142 final bool lengthComputable; | 15084 final bool lengthComputable; |
15143 | 15085 |
15144 /** @domName ProgressEvent.loaded; @docsEditable true */ | 15086 /// @domName ProgressEvent.loaded; @docsEditable true |
15145 final int loaded; | 15087 final int loaded; |
15146 | 15088 |
15147 /** @domName ProgressEvent.total; @docsEditable true */ | 15089 /// @domName ProgressEvent.total; @docsEditable true |
15148 final int total; | 15090 final int total; |
15149 } | 15091 } |
15150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15151 // for details. All rights reserved. Use of this source code is governed by a | 15093 // for details. All rights reserved. Use of this source code is governed by a |
15152 // BSD-style license that can be found in the LICENSE file. | 15094 // BSD-style license that can be found in the LICENSE file. |
15153 | 15095 |
15154 | 15096 |
15155 /// @domName HTMLQuoteElement; @docsEditable true | 15097 /// @domName HTMLQuoteElement; @docsEditable true |
15156 class QuoteElement extends Element implements Element native "*HTMLQuoteElement"
{ | 15098 class QuoteElement extends Element implements Element native "*HTMLQuoteElement"
{ |
15157 | 15099 |
15158 /** @domName HTMLQuoteElement.cite; @docsEditable true */ | 15100 /// @domName HTMLQuoteElement.cite; @docsEditable true |
15159 String cite; | 15101 String cite; |
15160 } | 15102 } |
15161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15162 // for details. All rights reserved. Use of this source code is governed by a | 15104 // for details. All rights reserved. Use of this source code is governed by a |
15163 // BSD-style license that can be found in the LICENSE file. | 15105 // BSD-style license that can be found in the LICENSE file. |
15164 | 15106 |
15165 | 15107 |
15166 /// @domName RGBColor; @docsEditable true | 15108 /// @domName RGBColor; @docsEditable true |
15167 class RGBColor native "*RGBColor" { | 15109 class RGBColor native "*RGBColor" { |
15168 | 15110 |
15169 /** @domName RGBColor.blue; @docsEditable true */ | 15111 /// @domName RGBColor.blue; @docsEditable true |
15170 final CSSPrimitiveValue blue; | 15112 final CSSPrimitiveValue blue; |
15171 | 15113 |
15172 /** @domName RGBColor.green; @docsEditable true */ | 15114 /// @domName RGBColor.green; @docsEditable true |
15173 final CSSPrimitiveValue green; | 15115 final CSSPrimitiveValue green; |
15174 | 15116 |
15175 /** @domName RGBColor.red; @docsEditable true */ | 15117 /// @domName RGBColor.red; @docsEditable true |
15176 final CSSPrimitiveValue red; | 15118 final CSSPrimitiveValue red; |
15177 } | 15119 } |
15178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15179 // for details. All rights reserved. Use of this source code is governed by a | 15121 // for details. All rights reserved. Use of this source code is governed by a |
15180 // BSD-style license that can be found in the LICENSE file. | 15122 // BSD-style license that can be found in the LICENSE file. |
15181 | 15123 |
15182 | 15124 |
15183 /// @domName RTCDataChannel; @docsEditable true | 15125 /// @domName RTCDataChannel; @docsEditable true |
15184 class RTCDataChannel extends EventTarget native "*RTCDataChannel" { | 15126 class RTCDataChannel extends EventTarget native "*RTCDataChannel" { |
15185 | 15127 |
15186 /** | 15128 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
15187 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
15188 */ | |
15189 RTCDataChannelEvents get on => | 15129 RTCDataChannelEvents get on => |
15190 new RTCDataChannelEvents(this); | 15130 new RTCDataChannelEvents(this); |
15191 | 15131 |
15192 /** @domName RTCDataChannel.binaryType; @docsEditable true */ | 15132 /// @domName RTCDataChannel.binaryType; @docsEditable true |
15193 String binaryType; | 15133 String binaryType; |
15194 | 15134 |
15195 /** @domName RTCDataChannel.bufferedAmount; @docsEditable true */ | 15135 /// @domName RTCDataChannel.bufferedAmount; @docsEditable true |
15196 final int bufferedAmount; | 15136 final int bufferedAmount; |
15197 | 15137 |
15198 /** @domName RTCDataChannel.label; @docsEditable true */ | 15138 /// @domName RTCDataChannel.label; @docsEditable true |
15199 final String label; | 15139 final String label; |
15200 | 15140 |
15201 /** @domName RTCDataChannel.readyState; @docsEditable true */ | 15141 /// @domName RTCDataChannel.readyState; @docsEditable true |
15202 final String readyState; | 15142 final String readyState; |
15203 | 15143 |
15204 /** @domName RTCDataChannel.reliable; @docsEditable true */ | 15144 /// @domName RTCDataChannel.reliable; @docsEditable true |
15205 final bool reliable; | 15145 final bool reliable; |
15206 | 15146 |
15207 /** @domName RTCDataChannel.addEventListener; @docsEditable true */ | 15147 /// @domName RTCDataChannel.addEventListener; @docsEditable true |
15208 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 15148 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
15209 | 15149 |
15210 /** @domName RTCDataChannel.close; @docsEditable true */ | 15150 /// @domName RTCDataChannel.close; @docsEditable true |
15211 void close() native; | 15151 void close() native; |
15212 | 15152 |
15213 /** @domName RTCDataChannel.dispatchEvent; @docsEditable true */ | 15153 /// @domName RTCDataChannel.dispatchEvent; @docsEditable true |
15214 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 15154 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
15215 | 15155 |
15216 /** @domName RTCDataChannel.removeEventListener; @docsEditable true */ | 15156 /// @domName RTCDataChannel.removeEventListener; @docsEditable true |
15217 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 15157 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
15218 | 15158 |
15219 /** @domName RTCDataChannel.send; @docsEditable true */ | 15159 /// @domName RTCDataChannel.send; @docsEditable true |
15220 void send(data) native; | 15160 void send(data) native; |
15221 } | 15161 } |
15222 | 15162 |
15223 class RTCDataChannelEvents extends Events { | 15163 class RTCDataChannelEvents extends Events { |
15224 RTCDataChannelEvents(EventTarget _ptr) : super(_ptr); | 15164 RTCDataChannelEvents(EventTarget _ptr) : super(_ptr); |
15225 | 15165 |
15226 EventListenerList get close => this['close']; | 15166 EventListenerList get close => this['close']; |
15227 | 15167 |
15228 EventListenerList get error => this['error']; | 15168 EventListenerList get error => this['error']; |
15229 | 15169 |
15230 EventListenerList get message => this['message']; | 15170 EventListenerList get message => this['message']; |
15231 | 15171 |
15232 EventListenerList get open => this['open']; | 15172 EventListenerList get open => this['open']; |
15233 } | 15173 } |
15234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15235 // for details. All rights reserved. Use of this source code is governed by a | 15175 // for details. All rights reserved. Use of this source code is governed by a |
15236 // BSD-style license that can be found in the LICENSE file. | 15176 // BSD-style license that can be found in the LICENSE file. |
15237 | 15177 |
15238 | 15178 |
15239 /// @domName RTCDataChannelEvent; @docsEditable true | 15179 /// @domName RTCDataChannelEvent; @docsEditable true |
15240 class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" { | 15180 class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" { |
15241 | 15181 |
15242 /** @domName RTCDataChannelEvent.channel; @docsEditable true */ | 15182 /// @domName RTCDataChannelEvent.channel; @docsEditable true |
15243 final RTCDataChannel channel; | 15183 final RTCDataChannel channel; |
15244 } | 15184 } |
15245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15246 // for details. All rights reserved. Use of this source code is governed by a | 15186 // for details. All rights reserved. Use of this source code is governed by a |
15247 // BSD-style license that can be found in the LICENSE file. | 15187 // BSD-style license that can be found in the LICENSE file. |
15248 | 15188 |
15249 // WARNING: Do not edit - generated code. | 15189 // WARNING: Do not edit - generated code. |
15250 | 15190 |
15251 | 15191 |
15252 typedef void RTCErrorCallback(String errorInformation); | 15192 typedef void RTCErrorCallback(String errorInformation); |
15253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15254 // for details. All rights reserved. Use of this source code is governed by a | 15194 // for details. All rights reserved. Use of this source code is governed by a |
15255 // BSD-style license that can be found in the LICENSE file. | 15195 // BSD-style license that can be found in the LICENSE file. |
15256 | 15196 |
15257 | 15197 |
15258 /// @domName RTCIceCandidate; @docsEditable true | 15198 /// @domName RTCIceCandidate; @docsEditable true |
15259 class RTCIceCandidate native "*RTCIceCandidate" { | 15199 class RTCIceCandidate native "*RTCIceCandidate" { |
15260 | 15200 |
15261 factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.cre
ateRTCIceCandidate(dictionary); | 15201 factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.cre
ateRTCIceCandidate(dictionary); |
15262 | 15202 |
15263 /** @domName RTCIceCandidate.candidate; @docsEditable true */ | 15203 /// @domName RTCIceCandidate.candidate; @docsEditable true |
15264 final String candidate; | 15204 final String candidate; |
15265 | 15205 |
15266 /** @domName RTCIceCandidate.sdpMLineIndex; @docsEditable true */ | 15206 /// @domName RTCIceCandidate.sdpMLineIndex; @docsEditable true |
15267 final int sdpMLineIndex; | 15207 final int sdpMLineIndex; |
15268 | 15208 |
15269 /** @domName RTCIceCandidate.sdpMid; @docsEditable true */ | 15209 /// @domName RTCIceCandidate.sdpMid; @docsEditable true |
15270 final String sdpMid; | 15210 final String sdpMid; |
15271 } | 15211 } |
15272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15273 // for details. All rights reserved. Use of this source code is governed by a | 15213 // for details. All rights reserved. Use of this source code is governed by a |
15274 // BSD-style license that can be found in the LICENSE file. | 15214 // BSD-style license that can be found in the LICENSE file. |
15275 | 15215 |
15276 | 15216 |
15277 /// @domName RTCIceCandidateEvent; @docsEditable true | 15217 /// @domName RTCIceCandidateEvent; @docsEditable true |
15278 class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { | 15218 class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { |
15279 | 15219 |
15280 /** @domName RTCIceCandidateEvent.candidate; @docsEditable true */ | 15220 /// @domName RTCIceCandidateEvent.candidate; @docsEditable true |
15281 final RTCIceCandidate candidate; | 15221 final RTCIceCandidate candidate; |
15282 } | 15222 } |
15283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15284 // for details. All rights reserved. Use of this source code is governed by a | 15224 // for details. All rights reserved. Use of this source code is governed by a |
15285 // BSD-style license that can be found in the LICENSE file. | 15225 // BSD-style license that can be found in the LICENSE file. |
15286 | 15226 |
15287 | 15227 |
15288 /// @domName RTCPeerConnection; @docsEditable true | 15228 /// @domName RTCPeerConnection; @docsEditable true |
15289 class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { | 15229 class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
15290 | 15230 |
15291 factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { | 15231 factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
15292 if (!?mediaConstraints) { | 15232 if (!?mediaConstraints) { |
15293 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceSer
vers); | 15233 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceSer
vers); |
15294 } | 15234 } |
15295 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServe
rs, mediaConstraints); | 15235 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServe
rs, mediaConstraints); |
15296 } | 15236 } |
15297 | 15237 |
15298 /** | 15238 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
15299 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
15300 */ | |
15301 RTCPeerConnectionEvents get on => | 15239 RTCPeerConnectionEvents get on => |
15302 new RTCPeerConnectionEvents(this); | 15240 new RTCPeerConnectionEvents(this); |
15303 | 15241 |
15304 /** @domName RTCPeerConnection.iceState; @docsEditable true */ | 15242 /// @domName RTCPeerConnection.iceState; @docsEditable true |
15305 final String iceState; | 15243 final String iceState; |
15306 | 15244 |
15307 /** @domName RTCPeerConnection.localDescription; @docsEditable true */ | 15245 /// @domName RTCPeerConnection.localDescription; @docsEditable true |
15308 final RTCSessionDescription localDescription; | 15246 final RTCSessionDescription localDescription; |
15309 | 15247 |
15310 /** @domName RTCPeerConnection.localStreams; @docsEditable true */ | 15248 /// @domName RTCPeerConnection.localStreams; @docsEditable true |
15311 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | 15249 @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
15312 final List<MediaStream> localStreams; | 15250 final List<MediaStream> localStreams; |
15313 | 15251 |
15314 /** @domName RTCPeerConnection.readyState; @docsEditable true */ | 15252 /// @domName RTCPeerConnection.readyState; @docsEditable true |
15315 final String readyState; | 15253 final String readyState; |
15316 | 15254 |
15317 /** @domName RTCPeerConnection.remoteDescription; @docsEditable true */ | 15255 /// @domName RTCPeerConnection.remoteDescription; @docsEditable true |
15318 final RTCSessionDescription remoteDescription; | 15256 final RTCSessionDescription remoteDescription; |
15319 | 15257 |
15320 /** @domName RTCPeerConnection.remoteStreams; @docsEditable true */ | 15258 /// @domName RTCPeerConnection.remoteStreams; @docsEditable true |
15321 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | 15259 @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
15322 final List<MediaStream> remoteStreams; | 15260 final List<MediaStream> remoteStreams; |
15323 | 15261 |
15324 /** @domName RTCPeerConnection.addEventListener; @docsEditable true */ | 15262 /// @domName RTCPeerConnection.addEventListener; @docsEditable true |
15325 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 15263 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
15326 | 15264 |
15327 /** @domName RTCPeerConnection.addIceCandidate; @docsEditable true */ | 15265 /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true |
15328 void addIceCandidate(RTCIceCandidate candidate) native; | 15266 void addIceCandidate(RTCIceCandidate candidate) native; |
15329 | 15267 |
15330 /** @domName RTCPeerConnection.addStream; @docsEditable true */ | 15268 /// @domName RTCPeerConnection.addStream; @docsEditable true |
15331 void addStream(MediaStream stream, [Map mediaConstraints]) { | 15269 void addStream(MediaStream stream, [Map mediaConstraints]) { |
15332 if (?mediaConstraints) { | 15270 if (?mediaConstraints) { |
15333 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15271 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; |
15334 _addStream_1(stream, mediaConstraints_1); | 15272 _addStream_1(stream, mediaConstraints_1); |
15335 return; | 15273 return; |
15336 } | 15274 } |
15337 _addStream_2(stream); | 15275 _addStream_2(stream); |
15338 return; | 15276 return; |
15339 } | 15277 } |
15340 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; | 15278 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; |
15341 void _addStream_2(MediaStream stream) native "addStream"; | 15279 void _addStream_2(MediaStream stream) native "addStream"; |
15342 | 15280 |
15343 /** @domName RTCPeerConnection.close; @docsEditable true */ | 15281 /// @domName RTCPeerConnection.close; @docsEditable true |
15344 void close() native; | 15282 void close() native; |
15345 | 15283 |
15346 /** @domName RTCPeerConnection.createAnswer; @docsEditable true */ | 15284 /// @domName RTCPeerConnection.createAnswer; @docsEditable true |
15347 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall
back failureCallback, Map mediaConstraints]) { | 15285 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall
back failureCallback, Map mediaConstraints]) { |
15348 if (?mediaConstraints) { | 15286 if (?mediaConstraints) { |
15349 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15287 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; |
15350 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 15288 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
15351 return; | 15289 return; |
15352 } | 15290 } |
15353 _createAnswer_2(successCallback, failureCallback); | 15291 _createAnswer_2(successCallback, failureCallback); |
15354 return; | 15292 return; |
15355 } | 15293 } |
15356 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback, mediaConstraints) native "createAnswer"; | 15294 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback, mediaConstraints) native "createAnswer"; |
15357 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback) native "createAnswer"; | 15295 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback) native "createAnswer"; |
15358 | 15296 |
15359 /** @domName RTCPeerConnection.createDataChannel; @docsEditable true */ | 15297 /// @domName RTCPeerConnection.createDataChannel; @docsEditable true |
15360 RTCDataChannel createDataChannel(String label, [Map options]) { | 15298 RTCDataChannel createDataChannel(String label, [Map options]) { |
15361 if (?options) { | 15299 if (?options) { |
15362 var options_1 = _convertDartToNative_Dictionary(options); | 15300 var options_1 = _convertDartToNative_Dictionary(options); |
15363 return _createDataChannel_1(label, options_1); | 15301 return _createDataChannel_1(label, options_1); |
15364 } | 15302 } |
15365 return _createDataChannel_2(label); | 15303 return _createDataChannel_2(label); |
15366 } | 15304 } |
15367 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel"
; | 15305 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel"
; |
15368 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; | 15306 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; |
15369 | 15307 |
15370 /** @domName RTCPeerConnection.createOffer; @docsEditable true */ | 15308 /// @domName RTCPeerConnection.createOffer; @docsEditable true |
15371 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb
ack failureCallback, Map mediaConstraints]) { | 15309 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb
ack failureCallback, Map mediaConstraints]) { |
15372 if (?mediaConstraints) { | 15310 if (?mediaConstraints) { |
15373 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15311 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; |
15374 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 15312 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
15375 return; | 15313 return; |
15376 } | 15314 } |
15377 _createOffer_2(successCallback, failureCallback); | 15315 _createOffer_2(successCallback, failureCallback); |
15378 return; | 15316 return; |
15379 } | 15317 } |
15380 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback, mediaConstraints) native "createOffer"; | 15318 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback, mediaConstraints) native "createOffer"; |
15381 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback) native "createOffer"; | 15319 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback) native "createOffer"; |
15382 | 15320 |
15383 /** @domName RTCPeerConnection.dispatchEvent; @docsEditable true */ | 15321 /// @domName RTCPeerConnection.dispatchEvent; @docsEditable true |
15384 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 15322 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
15385 | 15323 |
15386 /** @domName RTCPeerConnection.getStats; @docsEditable true */ | 15324 /// @domName RTCPeerConnection.getStats; @docsEditable true |
15387 void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) nat
ive; | 15325 void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) nat
ive; |
15388 | 15326 |
15389 /** @domName RTCPeerConnection.removeEventListener; @docsEditable true */ | 15327 /// @domName RTCPeerConnection.removeEventListener; @docsEditable true |
15390 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 15328 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
15391 | 15329 |
15392 /** @domName RTCPeerConnection.removeStream; @docsEditable true */ | 15330 /// @domName RTCPeerConnection.removeStream; @docsEditable true |
15393 void removeStream(MediaStream stream) native; | 15331 void removeStream(MediaStream stream) native; |
15394 | 15332 |
15395 /** @domName RTCPeerConnection.setLocalDescription; @docsEditable true */ | 15333 /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true |
15396 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ
essCallback, RTCErrorCallback failureCallback]) native; | 15334 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ
essCallback, RTCErrorCallback failureCallback]) native; |
15397 | 15335 |
15398 /** @domName RTCPeerConnection.setRemoteDescription; @docsEditable true */ | 15336 /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true |
15399 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc
cessCallback, RTCErrorCallback failureCallback]) native; | 15337 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc
cessCallback, RTCErrorCallback failureCallback]) native; |
15400 | 15338 |
15401 /** @domName RTCPeerConnection.updateIce; @docsEditable true */ | 15339 /// @domName RTCPeerConnection.updateIce; @docsEditable true |
15402 void updateIce([Map configuration, Map mediaConstraints]) { | 15340 void updateIce([Map configuration, Map mediaConstraints]) { |
15403 if (?mediaConstraints) { | 15341 if (?mediaConstraints) { |
15404 var configuration_1 = _convertDartToNative_Dictionary(configuration); | 15342 var configuration_1 = _convertDartToNative_Dictionary(configuration); |
15405 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15343 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints)
; |
15406 _updateIce_1(configuration_1, mediaConstraints_2); | 15344 _updateIce_1(configuration_1, mediaConstraints_2); |
15407 return; | 15345 return; |
15408 } | 15346 } |
15409 if (?configuration) { | 15347 if (?configuration) { |
15410 var configuration_3 = _convertDartToNative_Dictionary(configuration); | 15348 var configuration_3 = _convertDartToNative_Dictionary(configuration); |
15411 _updateIce_2(configuration_3); | 15349 _updateIce_2(configuration_3); |
(...skipping 27 matching lines...) Expand all Loading... |
15439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15440 // for details. All rights reserved. Use of this source code is governed by a | 15378 // for details. All rights reserved. Use of this source code is governed by a |
15441 // BSD-style license that can be found in the LICENSE file. | 15379 // BSD-style license that can be found in the LICENSE file. |
15442 | 15380 |
15443 | 15381 |
15444 /// @domName RTCSessionDescription; @docsEditable true | 15382 /// @domName RTCSessionDescription; @docsEditable true |
15445 class RTCSessionDescription native "*RTCSessionDescription" { | 15383 class RTCSessionDescription native "*RTCSessionDescription" { |
15446 | 15384 |
15447 factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactory
Provider.createRTCSessionDescription(dictionary); | 15385 factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactory
Provider.createRTCSessionDescription(dictionary); |
15448 | 15386 |
15449 /** @domName RTCSessionDescription.sdp; @docsEditable true */ | 15387 /// @domName RTCSessionDescription.sdp; @docsEditable true |
15450 String sdp; | 15388 String sdp; |
15451 | 15389 |
15452 /** @domName RTCSessionDescription.type; @docsEditable true */ | 15390 /// @domName RTCSessionDescription.type; @docsEditable true |
15453 String type; | 15391 String type; |
15454 } | 15392 } |
15455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15456 // for details. All rights reserved. Use of this source code is governed by a | 15394 // for details. All rights reserved. Use of this source code is governed by a |
15457 // BSD-style license that can be found in the LICENSE file. | 15395 // BSD-style license that can be found in the LICENSE file. |
15458 | 15396 |
15459 // WARNING: Do not edit - generated code. | 15397 // WARNING: Do not edit - generated code. |
15460 | 15398 |
15461 | 15399 |
15462 typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp); | 15400 typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp); |
15463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15464 // for details. All rights reserved. Use of this source code is governed by a | 15402 // for details. All rights reserved. Use of this source code is governed by a |
15465 // BSD-style license that can be found in the LICENSE file. | 15403 // BSD-style license that can be found in the LICENSE file. |
15466 | 15404 |
15467 // WARNING: Do not edit - generated code. | 15405 // WARNING: Do not edit - generated code. |
15468 | 15406 |
15469 | 15407 |
15470 typedef void RTCStatsCallback(RTCStatsResponse response); | 15408 typedef void RTCStatsCallback(RTCStatsResponse response); |
15471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15472 // for details. All rights reserved. Use of this source code is governed by a | 15410 // for details. All rights reserved. Use of this source code is governed by a |
15473 // BSD-style license that can be found in the LICENSE file. | 15411 // BSD-style license that can be found in the LICENSE file. |
15474 | 15412 |
15475 | 15413 |
15476 /// @domName RTCStatsElement; @docsEditable true | 15414 /// @domName RTCStatsElement; @docsEditable true |
15477 class RTCStatsElement native "*RTCStatsElement" { | 15415 class RTCStatsElement native "*RTCStatsElement" { |
15478 | 15416 |
15479 /** @domName RTCStatsElement.timestamp; @docsEditable true */ | 15417 /// @domName RTCStatsElement.timestamp; @docsEditable true |
15480 final Date timestamp; | 15418 final Date timestamp; |
15481 | 15419 |
15482 /** @domName RTCStatsElement.stat; @docsEditable true */ | 15420 /// @domName RTCStatsElement.stat; @docsEditable true |
15483 String stat(String name) native; | 15421 String stat(String name) native; |
15484 } | 15422 } |
15485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15486 // for details. All rights reserved. Use of this source code is governed by a | 15424 // for details. All rights reserved. Use of this source code is governed by a |
15487 // BSD-style license that can be found in the LICENSE file. | 15425 // BSD-style license that can be found in the LICENSE file. |
15488 | 15426 |
15489 | 15427 |
15490 /// @domName RTCStatsReport; @docsEditable true | 15428 /// @domName RTCStatsReport; @docsEditable true |
15491 class RTCStatsReport native "*RTCStatsReport" { | 15429 class RTCStatsReport native "*RTCStatsReport" { |
15492 | 15430 |
15493 /** @domName RTCStatsReport.local; @docsEditable true */ | 15431 /// @domName RTCStatsReport.local; @docsEditable true |
15494 final RTCStatsElement local; | 15432 final RTCStatsElement local; |
15495 | 15433 |
15496 /** @domName RTCStatsReport.remote; @docsEditable true */ | 15434 /// @domName RTCStatsReport.remote; @docsEditable true |
15497 final RTCStatsElement remote; | 15435 final RTCStatsElement remote; |
15498 } | 15436 } |
15499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15500 // for details. All rights reserved. Use of this source code is governed by a | 15438 // for details. All rights reserved. Use of this source code is governed by a |
15501 // BSD-style license that can be found in the LICENSE file. | 15439 // BSD-style license that can be found in the LICENSE file. |
15502 | 15440 |
15503 | 15441 |
15504 /// @domName RTCStatsResponse; @docsEditable true | 15442 /// @domName RTCStatsResponse; @docsEditable true |
15505 class RTCStatsResponse native "*RTCStatsResponse" { | 15443 class RTCStatsResponse native "*RTCStatsResponse" { |
15506 | 15444 |
15507 /** @domName RTCStatsResponse.result; @docsEditable true */ | 15445 /// @domName RTCStatsResponse.result; @docsEditable true |
15508 List<RTCStatsReport> result() native; | 15446 List<RTCStatsReport> result() native; |
15509 } | 15447 } |
15510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15511 // for details. All rights reserved. Use of this source code is governed by a | 15449 // for details. All rights reserved. Use of this source code is governed by a |
15512 // BSD-style license that can be found in the LICENSE file. | 15450 // BSD-style license that can be found in the LICENSE file. |
15513 | 15451 |
15514 | 15452 |
15515 /// @domName RadioNodeList; @docsEditable true | 15453 /// @domName RadioNodeList; @docsEditable true |
15516 class RadioNodeList extends _NodeList native "*RadioNodeList" { | 15454 class RadioNodeList extends _NodeList native "*RadioNodeList" { |
15517 | 15455 |
15518 /** @domName RadioNodeList.value; @docsEditable true */ | 15456 /// @domName RadioNodeList.value; @docsEditable true |
15519 String value; | 15457 String value; |
15520 } | 15458 } |
15521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15522 // for details. All rights reserved. Use of this source code is governed by a | 15460 // for details. All rights reserved. Use of this source code is governed by a |
15523 // BSD-style license that can be found in the LICENSE file. | 15461 // BSD-style license that can be found in the LICENSE file. |
15524 | 15462 |
15525 | 15463 |
15526 /// @domName Range; @docsEditable true | 15464 /// @domName Range; @docsEditable true |
15527 class Range native "*Range" { | 15465 class Range native "*Range" { |
15528 | 15466 |
15529 static const int END_TO_END = 2; | 15467 static const int END_TO_END = 2; |
15530 | 15468 |
15531 static const int END_TO_START = 3; | 15469 static const int END_TO_START = 3; |
15532 | 15470 |
15533 static const int NODE_AFTER = 1; | 15471 static const int NODE_AFTER = 1; |
15534 | 15472 |
15535 static const int NODE_BEFORE = 0; | 15473 static const int NODE_BEFORE = 0; |
15536 | 15474 |
15537 static const int NODE_BEFORE_AND_AFTER = 2; | 15475 static const int NODE_BEFORE_AND_AFTER = 2; |
15538 | 15476 |
15539 static const int NODE_INSIDE = 3; | 15477 static const int NODE_INSIDE = 3; |
15540 | 15478 |
15541 static const int START_TO_END = 1; | 15479 static const int START_TO_END = 1; |
15542 | 15480 |
15543 static const int START_TO_START = 0; | 15481 static const int START_TO_START = 0; |
15544 | 15482 |
15545 /** @domName Range.collapsed; @docsEditable true */ | 15483 /// @domName Range.collapsed; @docsEditable true |
15546 final bool collapsed; | 15484 final bool collapsed; |
15547 | 15485 |
15548 /** @domName Range.commonAncestorContainer; @docsEditable true */ | 15486 /// @domName Range.commonAncestorContainer; @docsEditable true |
15549 final Node commonAncestorContainer; | 15487 final Node commonAncestorContainer; |
15550 | 15488 |
15551 /** @domName Range.endContainer; @docsEditable true */ | 15489 /// @domName Range.endContainer; @docsEditable true |
15552 final Node endContainer; | 15490 final Node endContainer; |
15553 | 15491 |
15554 /** @domName Range.endOffset; @docsEditable true */ | 15492 /// @domName Range.endOffset; @docsEditable true |
15555 final int endOffset; | 15493 final int endOffset; |
15556 | 15494 |
15557 /** @domName Range.startContainer; @docsEditable true */ | 15495 /// @domName Range.startContainer; @docsEditable true |
15558 final Node startContainer; | 15496 final Node startContainer; |
15559 | 15497 |
15560 /** @domName Range.startOffset; @docsEditable true */ | 15498 /// @domName Range.startOffset; @docsEditable true |
15561 final int startOffset; | 15499 final int startOffset; |
15562 | 15500 |
15563 /** @domName Range.cloneContents; @docsEditable true */ | 15501 /// @domName Range.cloneContents; @docsEditable true |
15564 DocumentFragment cloneContents() native; | 15502 DocumentFragment cloneContents() native; |
15565 | 15503 |
15566 /** @domName Range.cloneRange; @docsEditable true */ | 15504 /// @domName Range.cloneRange; @docsEditable true |
15567 Range cloneRange() native; | 15505 Range cloneRange() native; |
15568 | 15506 |
15569 /** @domName Range.collapse; @docsEditable true */ | 15507 /// @domName Range.collapse; @docsEditable true |
15570 void collapse(bool toStart) native; | 15508 void collapse(bool toStart) native; |
15571 | 15509 |
15572 /** @domName Range.compareNode; @docsEditable true */ | 15510 /// @domName Range.compareNode; @docsEditable true |
15573 int compareNode(Node refNode) native; | 15511 int compareNode(Node refNode) native; |
15574 | 15512 |
15575 /** @domName Range.comparePoint; @docsEditable true */ | 15513 /// @domName Range.comparePoint; @docsEditable true |
15576 int comparePoint(Node refNode, int offset) native; | 15514 int comparePoint(Node refNode, int offset) native; |
15577 | 15515 |
15578 /** @domName Range.createContextualFragment; @docsEditable true */ | 15516 /// @domName Range.createContextualFragment; @docsEditable true |
15579 DocumentFragment createContextualFragment(String html) native; | 15517 DocumentFragment createContextualFragment(String html) native; |
15580 | 15518 |
15581 /** @domName Range.deleteContents; @docsEditable true */ | 15519 /// @domName Range.deleteContents; @docsEditable true |
15582 void deleteContents() native; | 15520 void deleteContents() native; |
15583 | 15521 |
15584 /** @domName Range.detach; @docsEditable true */ | 15522 /// @domName Range.detach; @docsEditable true |
15585 void detach() native; | 15523 void detach() native; |
15586 | 15524 |
15587 /** @domName Range.expand; @docsEditable true */ | 15525 /// @domName Range.expand; @docsEditable true |
15588 void expand(String unit) native; | 15526 void expand(String unit) native; |
15589 | 15527 |
15590 /** @domName Range.extractContents; @docsEditable true */ | 15528 /// @domName Range.extractContents; @docsEditable true |
15591 DocumentFragment extractContents() native; | 15529 DocumentFragment extractContents() native; |
15592 | 15530 |
15593 /** @domName Range.getBoundingClientRect; @docsEditable true */ | 15531 /// @domName Range.getBoundingClientRect; @docsEditable true |
15594 ClientRect getBoundingClientRect() native; | 15532 ClientRect getBoundingClientRect() native; |
15595 | 15533 |
15596 /** @domName Range.getClientRects; @docsEditable true */ | 15534 /// @domName Range.getClientRects; @docsEditable true |
15597 @Returns('_ClientRectList') @Creates('_ClientRectList') | 15535 @Returns('_ClientRectList') @Creates('_ClientRectList') |
15598 List<ClientRect> getClientRects() native; | 15536 List<ClientRect> getClientRects() native; |
15599 | 15537 |
15600 /** @domName Range.insertNode; @docsEditable true */ | 15538 /// @domName Range.insertNode; @docsEditable true |
15601 void insertNode(Node newNode) native; | 15539 void insertNode(Node newNode) native; |
15602 | 15540 |
15603 /** @domName Range.intersectsNode; @docsEditable true */ | 15541 /// @domName Range.intersectsNode; @docsEditable true |
15604 bool intersectsNode(Node refNode) native; | 15542 bool intersectsNode(Node refNode) native; |
15605 | 15543 |
15606 /** @domName Range.isPointInRange; @docsEditable true */ | 15544 /// @domName Range.isPointInRange; @docsEditable true |
15607 bool isPointInRange(Node refNode, int offset) native; | 15545 bool isPointInRange(Node refNode, int offset) native; |
15608 | 15546 |
15609 /** @domName Range.selectNode; @docsEditable true */ | 15547 /// @domName Range.selectNode; @docsEditable true |
15610 void selectNode(Node refNode) native; | 15548 void selectNode(Node refNode) native; |
15611 | 15549 |
15612 /** @domName Range.selectNodeContents; @docsEditable true */ | 15550 /// @domName Range.selectNodeContents; @docsEditable true |
15613 void selectNodeContents(Node refNode) native; | 15551 void selectNodeContents(Node refNode) native; |
15614 | 15552 |
15615 /** @domName Range.setEnd; @docsEditable true */ | 15553 /// @domName Range.setEnd; @docsEditable true |
15616 void setEnd(Node refNode, int offset) native; | 15554 void setEnd(Node refNode, int offset) native; |
15617 | 15555 |
15618 /** @domName Range.setEndAfter; @docsEditable true */ | 15556 /// @domName Range.setEndAfter; @docsEditable true |
15619 void setEndAfter(Node refNode) native; | 15557 void setEndAfter(Node refNode) native; |
15620 | 15558 |
15621 /** @domName Range.setEndBefore; @docsEditable true */ | 15559 /// @domName Range.setEndBefore; @docsEditable true |
15622 void setEndBefore(Node refNode) native; | 15560 void setEndBefore(Node refNode) native; |
15623 | 15561 |
15624 /** @domName Range.setStart; @docsEditable true */ | 15562 /// @domName Range.setStart; @docsEditable true |
15625 void setStart(Node refNode, int offset) native; | 15563 void setStart(Node refNode, int offset) native; |
15626 | 15564 |
15627 /** @domName Range.setStartAfter; @docsEditable true */ | 15565 /// @domName Range.setStartAfter; @docsEditable true |
15628 void setStartAfter(Node refNode) native; | 15566 void setStartAfter(Node refNode) native; |
15629 | 15567 |
15630 /** @domName Range.setStartBefore; @docsEditable true */ | 15568 /// @domName Range.setStartBefore; @docsEditable true |
15631 void setStartBefore(Node refNode) native; | 15569 void setStartBefore(Node refNode) native; |
15632 | 15570 |
15633 /** @domName Range.surroundContents; @docsEditable true */ | 15571 /// @domName Range.surroundContents; @docsEditable true |
15634 void surroundContents(Node newParent) native; | 15572 void surroundContents(Node newParent) native; |
15635 | 15573 |
15636 /** @domName Range.toString; @docsEditable true */ | 15574 /// @domName Range.toString; @docsEditable true |
15637 String toString() native; | 15575 String toString() native; |
15638 } | 15576 } |
15639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15640 // for details. All rights reserved. Use of this source code is governed by a | 15578 // for details. All rights reserved. Use of this source code is governed by a |
15641 // BSD-style license that can be found in the LICENSE file. | 15579 // BSD-style license that can be found in the LICENSE file. |
15642 | 15580 |
15643 | 15581 |
15644 /// @domName RangeException; @docsEditable true | 15582 /// @domName RangeException; @docsEditable true |
15645 class RangeException native "*RangeException" { | 15583 class RangeException native "*RangeException" { |
15646 | 15584 |
15647 static const int BAD_BOUNDARYPOINTS_ERR = 1; | 15585 static const int BAD_BOUNDARYPOINTS_ERR = 1; |
15648 | 15586 |
15649 static const int INVALID_NODE_TYPE_ERR = 2; | 15587 static const int INVALID_NODE_TYPE_ERR = 2; |
15650 | 15588 |
15651 /** @domName RangeException.code; @docsEditable true */ | 15589 /// @domName RangeException.code; @docsEditable true |
15652 final int code; | 15590 final int code; |
15653 | 15591 |
15654 /** @domName RangeException.message; @docsEditable true */ | 15592 /// @domName RangeException.message; @docsEditable true |
15655 final String message; | 15593 final String message; |
15656 | 15594 |
15657 /** @domName RangeException.name; @docsEditable true */ | 15595 /// @domName RangeException.name; @docsEditable true |
15658 final String name; | 15596 final String name; |
15659 | 15597 |
15660 /** @domName RangeException.toString; @docsEditable true */ | 15598 /// @domName RangeException.toString; @docsEditable true |
15661 String toString() native; | 15599 String toString() native; |
15662 } | 15600 } |
15663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15664 // for details. All rights reserved. Use of this source code is governed by a | 15602 // for details. All rights reserved. Use of this source code is governed by a |
15665 // BSD-style license that can be found in the LICENSE file. | 15603 // BSD-style license that can be found in the LICENSE file. |
15666 | 15604 |
15667 | 15605 |
15668 /// @domName Rect; @docsEditable true | 15606 /// @domName Rect; @docsEditable true |
15669 class Rect native "*Rect" { | 15607 class Rect native "*Rect" { |
15670 | 15608 |
15671 /** @domName Rect.bottom; @docsEditable true */ | 15609 /// @domName Rect.bottom; @docsEditable true |
15672 final CSSPrimitiveValue bottom; | 15610 final CSSPrimitiveValue bottom; |
15673 | 15611 |
15674 /** @domName Rect.left; @docsEditable true */ | 15612 /// @domName Rect.left; @docsEditable true |
15675 final CSSPrimitiveValue left; | 15613 final CSSPrimitiveValue left; |
15676 | 15614 |
15677 /** @domName Rect.right; @docsEditable true */ | 15615 /// @domName Rect.right; @docsEditable true |
15678 final CSSPrimitiveValue right; | 15616 final CSSPrimitiveValue right; |
15679 | 15617 |
15680 /** @domName Rect.top; @docsEditable true */ | 15618 /// @domName Rect.top; @docsEditable true |
15681 final CSSPrimitiveValue top; | 15619 final CSSPrimitiveValue top; |
15682 } | 15620 } |
15683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15684 // for details. All rights reserved. Use of this source code is governed by a | 15622 // for details. All rights reserved. Use of this source code is governed by a |
15685 // BSD-style license that can be found in the LICENSE file. | 15623 // BSD-style license that can be found in the LICENSE file. |
15686 | 15624 |
15687 // WARNING: Do not edit - generated code. | 15625 // WARNING: Do not edit - generated code. |
15688 | 15626 |
15689 | 15627 |
15690 typedef void RequestAnimationFrameCallback(num highResTime); | 15628 typedef void RequestAnimationFrameCallback(num highResTime); |
(...skipping 14 matching lines...) Expand all Loading... |
15705 static const int SYNTAX_ERR = 5; | 15643 static const int SYNTAX_ERR = 5; |
15706 | 15644 |
15707 static const int TIMEOUT_ERR = 7; | 15645 static const int TIMEOUT_ERR = 7; |
15708 | 15646 |
15709 static const int TOO_LARGE_ERR = 3; | 15647 static const int TOO_LARGE_ERR = 3; |
15710 | 15648 |
15711 static const int UNKNOWN_ERR = 0; | 15649 static const int UNKNOWN_ERR = 0; |
15712 | 15650 |
15713 static const int VERSION_ERR = 2; | 15651 static const int VERSION_ERR = 2; |
15714 | 15652 |
15715 /** @domName SQLError.code; @docsEditable true */ | 15653 /// @domName SQLError.code; @docsEditable true |
15716 final int code; | 15654 final int code; |
15717 | 15655 |
15718 /** @domName SQLError.message; @docsEditable true */ | 15656 /// @domName SQLError.message; @docsEditable true |
15719 final String message; | 15657 final String message; |
15720 } | 15658 } |
15721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15722 // for details. All rights reserved. Use of this source code is governed by a | 15660 // for details. All rights reserved. Use of this source code is governed by a |
15723 // BSD-style license that can be found in the LICENSE file. | 15661 // BSD-style license that can be found in the LICENSE file. |
15724 | 15662 |
15725 | 15663 |
15726 /// @domName SQLException; @docsEditable true | 15664 /// @domName SQLException; @docsEditable true |
15727 class SQLException native "*SQLException" { | 15665 class SQLException native "*SQLException" { |
15728 | 15666 |
15729 static const int CONSTRAINT_ERR = 6; | 15667 static const int CONSTRAINT_ERR = 6; |
15730 | 15668 |
15731 static const int DATABASE_ERR = 1; | 15669 static const int DATABASE_ERR = 1; |
15732 | 15670 |
15733 static const int QUOTA_ERR = 4; | 15671 static const int QUOTA_ERR = 4; |
15734 | 15672 |
15735 static const int SYNTAX_ERR = 5; | 15673 static const int SYNTAX_ERR = 5; |
15736 | 15674 |
15737 static const int TIMEOUT_ERR = 7; | 15675 static const int TIMEOUT_ERR = 7; |
15738 | 15676 |
15739 static const int TOO_LARGE_ERR = 3; | 15677 static const int TOO_LARGE_ERR = 3; |
15740 | 15678 |
15741 static const int UNKNOWN_ERR = 0; | 15679 static const int UNKNOWN_ERR = 0; |
15742 | 15680 |
15743 static const int VERSION_ERR = 2; | 15681 static const int VERSION_ERR = 2; |
15744 | 15682 |
15745 /** @domName SQLException.code; @docsEditable true */ | 15683 /// @domName SQLException.code; @docsEditable true |
15746 final int code; | 15684 final int code; |
15747 | 15685 |
15748 /** @domName SQLException.message; @docsEditable true */ | 15686 /// @domName SQLException.message; @docsEditable true |
15749 final String message; | 15687 final String message; |
15750 } | 15688 } |
15751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15752 // for details. All rights reserved. Use of this source code is governed by a | 15690 // for details. All rights reserved. Use of this source code is governed by a |
15753 // BSD-style license that can be found in the LICENSE file. | 15691 // BSD-style license that can be found in the LICENSE file. |
15754 | 15692 |
15755 | 15693 |
15756 /// @domName SQLResultSet; @docsEditable true | 15694 /// @domName SQLResultSet; @docsEditable true |
15757 class SQLResultSet native "*SQLResultSet" { | 15695 class SQLResultSet native "*SQLResultSet" { |
15758 | 15696 |
15759 /** @domName SQLResultSet.insertId; @docsEditable true */ | 15697 /// @domName SQLResultSet.insertId; @docsEditable true |
15760 final int insertId; | 15698 final int insertId; |
15761 | 15699 |
15762 /** @domName SQLResultSet.rows; @docsEditable true */ | 15700 /// @domName SQLResultSet.rows; @docsEditable true |
15763 final SQLResultSetRowList rows; | 15701 final SQLResultSetRowList rows; |
15764 | 15702 |
15765 /** @domName SQLResultSet.rowsAffected; @docsEditable true */ | 15703 /// @domName SQLResultSet.rowsAffected; @docsEditable true |
15766 final int rowsAffected; | 15704 final int rowsAffected; |
15767 } | 15705 } |
15768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15769 // for details. All rights reserved. Use of this source code is governed by a | 15707 // for details. All rights reserved. Use of this source code is governed by a |
15770 // BSD-style license that can be found in the LICENSE file. | 15708 // BSD-style license that can be found in the LICENSE file. |
15771 | 15709 |
15772 | 15710 |
15773 /// @domName SQLResultSetRowList; @docsEditable true | 15711 /// @domName SQLResultSetRowList; @docsEditable true |
15774 class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
e "*SQLResultSetRowList" { | 15712 class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
e "*SQLResultSetRowList" { |
15775 | 15713 |
15776 /** @domName SQLResultSetRowList.length; @docsEditable true */ | 15714 /// @domName SQLResultSetRowList.length; @docsEditable true |
15777 final int length; | 15715 final int length; |
15778 | 15716 |
15779 Map operator[](int index) => JS("Map", "#[#]", this, index); | 15717 Map operator[](int index) => JS("Map", "#[#]", this, index); |
15780 | 15718 |
15781 void operator[]=(int index, Map value) { | 15719 void operator[]=(int index, Map value) { |
15782 throw new UnsupportedError("Cannot assign element of immutable List."); | 15720 throw new UnsupportedError("Cannot assign element of immutable List."); |
15783 } | 15721 } |
15784 // -- start List<Map> mixins. | 15722 // -- start List<Map> mixins. |
15785 // Map is the element type. | 15723 // Map is the element type. |
15786 | 15724 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15854 | 15792 |
15855 void insertRange(int start, int rangeLength, [Map initialValue]) { | 15793 void insertRange(int start, int rangeLength, [Map initialValue]) { |
15856 throw new UnsupportedError("Cannot insertRange on immutable List."); | 15794 throw new UnsupportedError("Cannot insertRange on immutable List."); |
15857 } | 15795 } |
15858 | 15796 |
15859 List<Map> getRange(int start, int rangeLength) => | 15797 List<Map> getRange(int start, int rangeLength) => |
15860 _Lists.getRange(this, start, rangeLength, <Map>[]); | 15798 _Lists.getRange(this, start, rangeLength, <Map>[]); |
15861 | 15799 |
15862 // -- end List<Map> mixins. | 15800 // -- end List<Map> mixins. |
15863 | 15801 |
15864 /** @domName SQLResultSetRowList.item; @docsEditable true */ | 15802 /// @domName SQLResultSetRowList.item; @docsEditable true |
15865 Map item(int index) { | 15803 Map item(int index) { |
15866 return _convertNativeToDart_Dictionary(_item_1(index)); | 15804 return _convertNativeToDart_Dictionary(_item_1(index)); |
15867 } | 15805 } |
15868 @Creates('=Object') | 15806 @Creates('=Object') |
15869 _item_1(index) native "item"; | 15807 _item_1(index) native "item"; |
15870 } | 15808 } |
15871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15872 // for details. All rights reserved. Use of this source code is governed by a | 15810 // for details. All rights reserved. Use of this source code is governed by a |
15873 // BSD-style license that can be found in the LICENSE file. | 15811 // BSD-style license that can be found in the LICENSE file. |
15874 | 15812 |
(...skipping 10 matching lines...) Expand all Loading... |
15885 | 15823 |
15886 typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro
r); | 15824 typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro
r); |
15887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15888 // for details. All rights reserved. Use of this source code is governed by a | 15826 // for details. All rights reserved. Use of this source code is governed by a |
15889 // BSD-style license that can be found in the LICENSE file. | 15827 // BSD-style license that can be found in the LICENSE file. |
15890 | 15828 |
15891 | 15829 |
15892 /// @domName SQLTransaction; @docsEditable true | 15830 /// @domName SQLTransaction; @docsEditable true |
15893 class SQLTransaction native "*SQLTransaction" { | 15831 class SQLTransaction native "*SQLTransaction" { |
15894 | 15832 |
15895 /** @domName SQLTransaction.executeSql; @docsEditable true */ | 15833 /// @domName SQLTransaction.executeSql; @docsEditable true |
15896 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal
lback, SQLStatementErrorCallback errorCallback]) native; | 15834 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal
lback, SQLStatementErrorCallback errorCallback]) native; |
15897 } | 15835 } |
15898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15899 // for details. All rights reserved. Use of this source code is governed by a | 15837 // for details. All rights reserved. Use of this source code is governed by a |
15900 // BSD-style license that can be found in the LICENSE file. | 15838 // BSD-style license that can be found in the LICENSE file. |
15901 | 15839 |
15902 // WARNING: Do not edit - generated code. | 15840 // WARNING: Do not edit - generated code. |
15903 | 15841 |
15904 | 15842 |
15905 typedef void SQLTransactionCallback(SQLTransaction transaction); | 15843 typedef void SQLTransactionCallback(SQLTransaction transaction); |
15906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15907 // for details. All rights reserved. Use of this source code is governed by a | 15845 // for details. All rights reserved. Use of this source code is governed by a |
15908 // BSD-style license that can be found in the LICENSE file. | 15846 // BSD-style license that can be found in the LICENSE file. |
15909 | 15847 |
15910 // WARNING: Do not edit - generated code. | 15848 // WARNING: Do not edit - generated code. |
15911 | 15849 |
15912 | 15850 |
15913 typedef void SQLTransactionErrorCallback(SQLError error); | 15851 typedef void SQLTransactionErrorCallback(SQLError error); |
15914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15915 // for details. All rights reserved. Use of this source code is governed by a | 15853 // for details. All rights reserved. Use of this source code is governed by a |
15916 // BSD-style license that can be found in the LICENSE file. | 15854 // BSD-style license that can be found in the LICENSE file. |
15917 | 15855 |
15918 | 15856 |
15919 /// @domName SQLTransactionSync; @docsEditable true | 15857 /// @domName SQLTransactionSync; @docsEditable true |
15920 class SQLTransactionSync native "*SQLTransactionSync" { | 15858 class SQLTransactionSync native "*SQLTransactionSync" { |
15921 | 15859 |
15922 /** @domName SQLTransactionSync.executeSql; @docsEditable true */ | 15860 /// @domName SQLTransactionSync.executeSql; @docsEditable true |
15923 SQLResultSet executeSql(String sqlStatement, List arguments) native; | 15861 SQLResultSet executeSql(String sqlStatement, List arguments) native; |
15924 } | 15862 } |
15925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15863 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15926 // for details. All rights reserved. Use of this source code is governed by a | 15864 // for details. All rights reserved. Use of this source code is governed by a |
15927 // BSD-style license that can be found in the LICENSE file. | 15865 // BSD-style license that can be found in the LICENSE file. |
15928 | 15866 |
15929 // WARNING: Do not edit - generated code. | 15867 // WARNING: Do not edit - generated code. |
15930 | 15868 |
15931 | 15869 |
15932 typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction); | 15870 typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction); |
15933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15934 // for details. All rights reserved. Use of this source code is governed by a | 15872 // for details. All rights reserved. Use of this source code is governed by a |
15935 // BSD-style license that can be found in the LICENSE file. | 15873 // BSD-style license that can be found in the LICENSE file. |
15936 | 15874 |
15937 | 15875 |
15938 /// @domName Screen; @docsEditable true | 15876 /// @domName Screen; @docsEditable true |
15939 class Screen native "*Screen" { | 15877 class Screen native "*Screen" { |
15940 | 15878 |
15941 /** @domName Screen.availHeight; @docsEditable true */ | 15879 /// @domName Screen.availHeight; @docsEditable true |
15942 final int availHeight; | 15880 final int availHeight; |
15943 | 15881 |
15944 /** @domName Screen.availLeft; @docsEditable true */ | 15882 /// @domName Screen.availLeft; @docsEditable true |
15945 final int availLeft; | 15883 final int availLeft; |
15946 | 15884 |
15947 /** @domName Screen.availTop; @docsEditable true */ | 15885 /// @domName Screen.availTop; @docsEditable true |
15948 final int availTop; | 15886 final int availTop; |
15949 | 15887 |
15950 /** @domName Screen.availWidth; @docsEditable true */ | 15888 /// @domName Screen.availWidth; @docsEditable true |
15951 final int availWidth; | 15889 final int availWidth; |
15952 | 15890 |
15953 /** @domName Screen.colorDepth; @docsEditable true */ | 15891 /// @domName Screen.colorDepth; @docsEditable true |
15954 final int colorDepth; | 15892 final int colorDepth; |
15955 | 15893 |
15956 /** @domName Screen.height; @docsEditable true */ | 15894 /// @domName Screen.height; @docsEditable true |
15957 final int height; | 15895 final int height; |
15958 | 15896 |
15959 /** @domName Screen.pixelDepth; @docsEditable true */ | 15897 /// @domName Screen.pixelDepth; @docsEditable true |
15960 final int pixelDepth; | 15898 final int pixelDepth; |
15961 | 15899 |
15962 /** @domName Screen.width; @docsEditable true */ | 15900 /// @domName Screen.width; @docsEditable true |
15963 final int width; | 15901 final int width; |
15964 } | 15902 } |
15965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15966 // for details. All rights reserved. Use of this source code is governed by a | 15904 // for details. All rights reserved. Use of this source code is governed by a |
15967 // BSD-style license that can be found in the LICENSE file. | 15905 // BSD-style license that can be found in the LICENSE file. |
15968 | 15906 |
15969 | 15907 |
15970 /// @domName HTMLScriptElement; @docsEditable true | 15908 /// @domName HTMLScriptElement; @docsEditable true |
15971 class ScriptElement extends Element implements Element native "*HTMLScriptElemen
t" { | 15909 class ScriptElement extends Element implements Element native "*HTMLScriptElemen
t" { |
15972 | 15910 |
15973 factory ScriptElement() => document.$dom_createElement("script"); | 15911 factory ScriptElement() => document.$dom_createElement("script"); |
15974 | 15912 |
15975 /** @domName HTMLScriptElement.async; @docsEditable true */ | 15913 /// @domName HTMLScriptElement.async; @docsEditable true |
15976 bool async; | 15914 bool async; |
15977 | 15915 |
15978 /** @domName HTMLScriptElement.charset; @docsEditable true */ | 15916 /// @domName HTMLScriptElement.charset; @docsEditable true |
15979 String charset; | 15917 String charset; |
15980 | 15918 |
15981 /** @domName HTMLScriptElement.crossOrigin; @docsEditable true */ | 15919 /// @domName HTMLScriptElement.crossOrigin; @docsEditable true |
15982 String crossOrigin; | 15920 String crossOrigin; |
15983 | 15921 |
15984 /** @domName HTMLScriptElement.defer; @docsEditable true */ | 15922 /// @domName HTMLScriptElement.defer; @docsEditable true |
15985 bool defer; | 15923 bool defer; |
15986 | 15924 |
15987 /** @domName HTMLScriptElement.event; @docsEditable true */ | 15925 /// @domName HTMLScriptElement.event; @docsEditable true |
15988 String event; | 15926 String event; |
15989 | 15927 |
15990 /** @domName HTMLScriptElement.htmlFor; @docsEditable true */ | 15928 /// @domName HTMLScriptElement.htmlFor; @docsEditable true |
15991 String htmlFor; | 15929 String htmlFor; |
15992 | 15930 |
15993 /** @domName HTMLScriptElement.src; @docsEditable true */ | 15931 /// @domName HTMLScriptElement.src; @docsEditable true |
15994 String src; | 15932 String src; |
15995 | 15933 |
15996 /** @domName HTMLScriptElement.type; @docsEditable true */ | 15934 /// @domName HTMLScriptElement.type; @docsEditable true |
15997 String type; | 15935 String type; |
15998 } | 15936 } |
15999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16000 // for details. All rights reserved. Use of this source code is governed by a | 15938 // for details. All rights reserved. Use of this source code is governed by a |
16001 // BSD-style license that can be found in the LICENSE file. | 15939 // BSD-style license that can be found in the LICENSE file. |
16002 | 15940 |
16003 | 15941 |
16004 /// @domName ScriptProcessorNode; @docsEditable true | 15942 /// @domName ScriptProcessorNode; @docsEditable true |
16005 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri
ptProcessorNode" { | 15943 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri
ptProcessorNode" { |
16006 | 15944 |
16007 /** | 15945 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
16008 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
16009 */ | |
16010 ScriptProcessorNodeEvents get on => | 15946 ScriptProcessorNodeEvents get on => |
16011 new ScriptProcessorNodeEvents(this); | 15947 new ScriptProcessorNodeEvents(this); |
16012 | 15948 |
16013 /** @domName ScriptProcessorNode.bufferSize; @docsEditable true */ | 15949 /// @domName ScriptProcessorNode.bufferSize; @docsEditable true |
16014 final int bufferSize; | 15950 final int bufferSize; |
16015 } | 15951 } |
16016 | 15952 |
16017 class ScriptProcessorNodeEvents extends Events { | 15953 class ScriptProcessorNodeEvents extends Events { |
16018 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr); | 15954 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr); |
16019 | 15955 |
16020 EventListenerList get audioProcess => this['audioprocess']; | 15956 EventListenerList get audioProcess => this['audioprocess']; |
16021 } | 15957 } |
16022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16023 // for details. All rights reserved. Use of this source code is governed by a | 15959 // for details. All rights reserved. Use of this source code is governed by a |
16024 // BSD-style license that can be found in the LICENSE file. | 15960 // BSD-style license that can be found in the LICENSE file. |
16025 | 15961 |
16026 | 15962 |
16027 /// @domName ScriptProfile; @docsEditable true | 15963 /// @domName ScriptProfile; @docsEditable true |
16028 class ScriptProfile native "*ScriptProfile" { | 15964 class ScriptProfile native "*ScriptProfile" { |
16029 | 15965 |
16030 /** @domName ScriptProfile.head; @docsEditable true */ | 15966 /// @domName ScriptProfile.head; @docsEditable true |
16031 final ScriptProfileNode head; | 15967 final ScriptProfileNode head; |
16032 | 15968 |
16033 /** @domName ScriptProfile.title; @docsEditable true */ | 15969 /// @domName ScriptProfile.title; @docsEditable true |
16034 final String title; | 15970 final String title; |
16035 | 15971 |
16036 /** @domName ScriptProfile.uid; @docsEditable true */ | 15972 /// @domName ScriptProfile.uid; @docsEditable true |
16037 final int uid; | 15973 final int uid; |
16038 } | 15974 } |
16039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16040 // for details. All rights reserved. Use of this source code is governed by a | 15976 // for details. All rights reserved. Use of this source code is governed by a |
16041 // BSD-style license that can be found in the LICENSE file. | 15977 // BSD-style license that can be found in the LICENSE file. |
16042 | 15978 |
16043 | 15979 |
16044 /// @domName ScriptProfileNode; @docsEditable true | 15980 /// @domName ScriptProfileNode; @docsEditable true |
16045 class ScriptProfileNode native "*ScriptProfileNode" { | 15981 class ScriptProfileNode native "*ScriptProfileNode" { |
16046 | 15982 |
16047 /** @domName ScriptProfileNode.callUID; @docsEditable true */ | 15983 /// @domName ScriptProfileNode.callUID; @docsEditable true |
16048 final int callUID; | 15984 final int callUID; |
16049 | 15985 |
16050 /** @domName ScriptProfileNode.functionName; @docsEditable true */ | 15986 /// @domName ScriptProfileNode.functionName; @docsEditable true |
16051 final String functionName; | 15987 final String functionName; |
16052 | 15988 |
16053 /** @domName ScriptProfileNode.lineNumber; @docsEditable true */ | 15989 /// @domName ScriptProfileNode.lineNumber; @docsEditable true |
16054 final int lineNumber; | 15990 final int lineNumber; |
16055 | 15991 |
16056 /** @domName ScriptProfileNode.numberOfCalls; @docsEditable true */ | 15992 /// @domName ScriptProfileNode.numberOfCalls; @docsEditable true |
16057 final int numberOfCalls; | 15993 final int numberOfCalls; |
16058 | 15994 |
16059 /** @domName ScriptProfileNode.selfTime; @docsEditable true */ | 15995 /// @domName ScriptProfileNode.selfTime; @docsEditable true |
16060 final num selfTime; | 15996 final num selfTime; |
16061 | 15997 |
16062 /** @domName ScriptProfileNode.totalTime; @docsEditable true */ | 15998 /// @domName ScriptProfileNode.totalTime; @docsEditable true |
16063 final num totalTime; | 15999 final num totalTime; |
16064 | 16000 |
16065 /** @domName ScriptProfileNode.url; @docsEditable true */ | 16001 /// @domName ScriptProfileNode.url; @docsEditable true |
16066 final String url; | 16002 final String url; |
16067 | 16003 |
16068 /** @domName ScriptProfileNode.visible; @docsEditable true */ | 16004 /// @domName ScriptProfileNode.visible; @docsEditable true |
16069 final bool visible; | 16005 final bool visible; |
16070 | 16006 |
16071 /** @domName ScriptProfileNode.children; @docsEditable true */ | 16007 /// @domName ScriptProfileNode.children; @docsEditable true |
16072 List<ScriptProfileNode> children() native; | 16008 List<ScriptProfileNode> children() native; |
16073 } | 16009 } |
16074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16075 // for details. All rights reserved. Use of this source code is governed by a | 16011 // for details. All rights reserved. Use of this source code is governed by a |
16076 // BSD-style license that can be found in the LICENSE file. | 16012 // BSD-style license that can be found in the LICENSE file. |
16077 | 16013 |
16078 | 16014 |
16079 class SelectElement extends Element implements Element native "*HTMLSelectElemen
t" { | 16015 class SelectElement extends Element implements Element native "*HTMLSelectElemen
t" { |
16080 | 16016 |
16081 factory SelectElement() => document.$dom_createElement("select"); | 16017 factory SelectElement() => document.$dom_createElement("select"); |
16082 | 16018 |
16083 /** @domName HTMLSelectElement.autofocus; @docsEditable true */ | 16019 /// @domName HTMLSelectElement.autofocus; @docsEditable true |
16084 bool autofocus; | 16020 bool autofocus; |
16085 | 16021 |
16086 /** @domName HTMLSelectElement.disabled; @docsEditable true */ | 16022 /// @domName HTMLSelectElement.disabled; @docsEditable true |
16087 bool disabled; | 16023 bool disabled; |
16088 | 16024 |
16089 /** @domName HTMLSelectElement.form; @docsEditable true */ | 16025 /// @domName HTMLSelectElement.form; @docsEditable true |
16090 final FormElement form; | 16026 final FormElement form; |
16091 | 16027 |
16092 /** @domName HTMLSelectElement.labels; @docsEditable true */ | 16028 /// @domName HTMLSelectElement.labels; @docsEditable true |
16093 @Returns('_NodeList') @Creates('_NodeList') | 16029 @Returns('_NodeList') @Creates('_NodeList') |
16094 final List<Node> labels; | 16030 final List<Node> labels; |
16095 | 16031 |
16096 /** @domName HTMLSelectElement.length; @docsEditable true */ | 16032 /// @domName HTMLSelectElement.length; @docsEditable true |
16097 int length; | 16033 int length; |
16098 | 16034 |
16099 /** @domName HTMLSelectElement.multiple; @docsEditable true */ | 16035 /// @domName HTMLSelectElement.multiple; @docsEditable true |
16100 bool multiple; | 16036 bool multiple; |
16101 | 16037 |
16102 /** @domName HTMLSelectElement.name; @docsEditable true */ | 16038 /// @domName HTMLSelectElement.name; @docsEditable true |
16103 String name; | 16039 String name; |
16104 | 16040 |
16105 /** @domName HTMLSelectElement.required; @docsEditable true */ | 16041 /// @domName HTMLSelectElement.required; @docsEditable true |
16106 bool required; | 16042 bool required; |
16107 | 16043 |
16108 /** @domName HTMLSelectElement.selectedIndex; @docsEditable true */ | 16044 /// @domName HTMLSelectElement.selectedIndex; @docsEditable true |
16109 int selectedIndex; | 16045 int selectedIndex; |
16110 | 16046 |
16111 /** @domName HTMLSelectElement.size; @docsEditable true */ | 16047 /// @domName HTMLSelectElement.size; @docsEditable true |
16112 int size; | 16048 int size; |
16113 | 16049 |
16114 /** @domName HTMLSelectElement.type; @docsEditable true */ | 16050 /// @domName HTMLSelectElement.type; @docsEditable true |
16115 final String type; | 16051 final String type; |
16116 | 16052 |
16117 /** @domName HTMLSelectElement.validationMessage; @docsEditable true */ | 16053 /// @domName HTMLSelectElement.validationMessage; @docsEditable true |
16118 final String validationMessage; | 16054 final String validationMessage; |
16119 | 16055 |
16120 /** @domName HTMLSelectElement.validity; @docsEditable true */ | 16056 /// @domName HTMLSelectElement.validity; @docsEditable true |
16121 final ValidityState validity; | 16057 final ValidityState validity; |
16122 | 16058 |
16123 /** @domName HTMLSelectElement.value; @docsEditable true */ | 16059 /// @domName HTMLSelectElement.value; @docsEditable true |
16124 String value; | 16060 String value; |
16125 | 16061 |
16126 /** @domName HTMLSelectElement.willValidate; @docsEditable true */ | 16062 /// @domName HTMLSelectElement.willValidate; @docsEditable true |
16127 final bool willValidate; | 16063 final bool willValidate; |
16128 | 16064 |
16129 /** @domName HTMLSelectElement.checkValidity; @docsEditable true */ | 16065 /// @domName HTMLSelectElement.checkValidity; @docsEditable true |
16130 bool checkValidity() native; | 16066 bool checkValidity() native; |
16131 | 16067 |
16132 /** @domName HTMLSelectElement.item; @docsEditable true */ | 16068 /// @domName HTMLSelectElement.item; @docsEditable true |
16133 Node item(int index) native; | 16069 Node item(int index) native; |
16134 | 16070 |
16135 /** @domName HTMLSelectElement.namedItem; @docsEditable true */ | 16071 /// @domName HTMLSelectElement.namedItem; @docsEditable true |
16136 Node namedItem(String name) native; | 16072 Node namedItem(String name) native; |
16137 | 16073 |
16138 /** @domName HTMLSelectElement.setCustomValidity; @docsEditable true */ | 16074 /// @domName HTMLSelectElement.setCustomValidity; @docsEditable true |
16139 void setCustomValidity(String error) native; | 16075 void setCustomValidity(String error) native; |
16140 | 16076 |
16141 | 16077 |
16142 // Override default options, since IE returns SelectElement itself and it | 16078 // Override default options, since IE returns SelectElement itself and it |
16143 // does not operate as a List. | 16079 // does not operate as a List. |
16144 List<OptionElement> get options { | 16080 List<OptionElement> get options { |
16145 return this.elements.filter((e) => e is OptionElement); | 16081 return this.elements.filter((e) => e is OptionElement); |
16146 } | 16082 } |
16147 | 16083 |
16148 List<OptionElement> get selectedOptions { | 16084 List<OptionElement> get selectedOptions { |
16149 // IE does not change the selected flag for single-selection items. | 16085 // IE does not change the selected flag for single-selection items. |
16150 if (this.multiple) { | 16086 if (this.multiple) { |
16151 return this.options.filter((o) => o.selected); | 16087 return this.options.filter((o) => o.selected); |
16152 } else { | 16088 } else { |
16153 return [this.options[this.selectedIndex]]; | 16089 return [this.options[this.selectedIndex]]; |
16154 } | 16090 } |
16155 } | 16091 } |
16156 } | 16092 } |
16157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16158 // for details. All rights reserved. Use of this source code is governed by a | 16094 // for details. All rights reserved. Use of this source code is governed by a |
16159 // BSD-style license that can be found in the LICENSE file. | 16095 // BSD-style license that can be found in the LICENSE file. |
16160 | 16096 |
16161 | 16097 |
16162 /// @domName SessionDescription; @docsEditable true | 16098 /// @domName SessionDescription; @docsEditable true |
16163 class SessionDescription native "*SessionDescription" { | 16099 class SessionDescription native "*SessionDescription" { |
16164 | 16100 |
16165 factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.c
reateSessionDescription(sdp); | 16101 factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.c
reateSessionDescription(sdp); |
16166 | 16102 |
16167 /** @domName SessionDescription.addCandidate; @docsEditable true */ | 16103 /// @domName SessionDescription.addCandidate; @docsEditable true |
16168 void addCandidate(IceCandidate candidate) native; | 16104 void addCandidate(IceCandidate candidate) native; |
16169 | 16105 |
16170 /** @domName SessionDescription.toSdp; @docsEditable true */ | 16106 /// @domName SessionDescription.toSdp; @docsEditable true |
16171 String toSdp() native; | 16107 String toSdp() native; |
16172 } | 16108 } |
16173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16174 // for details. All rights reserved. Use of this source code is governed by a | 16110 // for details. All rights reserved. Use of this source code is governed by a |
16175 // BSD-style license that can be found in the LICENSE file. | 16111 // BSD-style license that can be found in the LICENSE file. |
16176 | 16112 |
16177 | 16113 |
16178 /// @domName HTMLShadowElement; @docsEditable true | 16114 /// @domName HTMLShadowElement; @docsEditable true |
16179 class ShadowElement extends Element implements Element native "*HTMLShadowElemen
t" { | 16115 class ShadowElement extends Element implements Element native "*HTMLShadowElemen
t" { |
16180 | 16116 |
16181 /** @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true */ | 16117 /// @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true |
16182 bool resetStyleInheritance; | 16118 bool resetStyleInheritance; |
16183 } | 16119 } |
16184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16185 // for details. All rights reserved. Use of this source code is governed by a | 16121 // for details. All rights reserved. Use of this source code is governed by a |
16186 // BSD-style license that can be found in the LICENSE file. | 16122 // BSD-style license that can be found in the LICENSE file. |
16187 | 16123 |
16188 // WARNING: Do not edit - generated code. | 16124 // WARNING: Do not edit - generated code. |
16189 | 16125 |
16190 | 16126 |
16191 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { | 16127 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { |
16192 | 16128 |
16193 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo
t(host); | 16129 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo
t(host); |
16194 | 16130 |
16195 /** @domName ShadowRoot.activeElement; @docsEditable true */ | 16131 /// @domName ShadowRoot.activeElement; @docsEditable true |
16196 final Element activeElement; | 16132 final Element activeElement; |
16197 | 16133 |
16198 /** @domName ShadowRoot.applyAuthorStyles; @docsEditable true */ | 16134 /// @domName ShadowRoot.applyAuthorStyles; @docsEditable true |
16199 bool applyAuthorStyles; | 16135 bool applyAuthorStyles; |
16200 | 16136 |
16201 /** @domName ShadowRoot.innerHTML; @docsEditable true */ | 16137 /// @domName ShadowRoot.innerHTML; @docsEditable true |
16202 String innerHTML; | 16138 String innerHTML; |
16203 | 16139 |
16204 /** @domName ShadowRoot.resetStyleInheritance; @docsEditable true */ | 16140 /// @domName ShadowRoot.resetStyleInheritance; @docsEditable true |
16205 bool resetStyleInheritance; | 16141 bool resetStyleInheritance; |
16206 | 16142 |
16207 /** @domName ShadowRoot.cloneNode; @docsEditable true */ | 16143 /// @domName ShadowRoot.cloneNode; @docsEditable true |
16208 Node clone(bool deep) native "cloneNode"; | 16144 Node clone(bool deep) native "cloneNode"; |
16209 | 16145 |
16210 /** @domName ShadowRoot.getElementById; @docsEditable true */ | 16146 /// @domName ShadowRoot.getElementById; @docsEditable true |
16211 Element $dom_getElementById(String elementId) native "getElementById"; | 16147 Element $dom_getElementById(String elementId) native "getElementById"; |
16212 | 16148 |
16213 /** @domName ShadowRoot.getElementsByClassName; @docsEditable true */ | 16149 /// @domName ShadowRoot.getElementsByClassName; @docsEditable true |
16214 @Returns('_NodeList') @Creates('_NodeList') | 16150 @Returns('_NodeList') @Creates('_NodeList') |
16215 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy
ClassName"; | 16151 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy
ClassName"; |
16216 | 16152 |
16217 /** @domName ShadowRoot.getElementsByTagName; @docsEditable true */ | 16153 /// @domName ShadowRoot.getElementsByTagName; @docsEditable true |
16218 @Returns('_NodeList') @Creates('_NodeList') | 16154 @Returns('_NodeList') @Creates('_NodeList') |
16219 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN
ame"; | 16155 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN
ame"; |
16220 | 16156 |
16221 /** @domName ShadowRoot.getSelection; @docsEditable true */ | 16157 /// @domName ShadowRoot.getSelection; @docsEditable true |
16222 DOMSelection getSelection() native; | 16158 DOMSelection getSelection() native; |
16223 | 16159 |
16224 static bool get supported => | 16160 static bool get supported => |
16225 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); | 16161 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); |
16226 } | 16162 } |
16227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16228 // for details. All rights reserved. Use of this source code is governed by a | 16164 // for details. All rights reserved. Use of this source code is governed by a |
16229 // BSD-style license that can be found in the LICENSE file. | 16165 // BSD-style license that can be found in the LICENSE file. |
16230 | 16166 |
16231 | 16167 |
16232 /// @domName SharedWorker; @docsEditable true | 16168 /// @domName SharedWorker; @docsEditable true |
16233 class SharedWorker extends AbstractWorker native "*SharedWorker" { | 16169 class SharedWorker extends AbstractWorker native "*SharedWorker" { |
16234 | 16170 |
16235 factory SharedWorker(String scriptURL, [String name]) { | 16171 factory SharedWorker(String scriptURL, [String name]) { |
16236 if (!?name) { | 16172 if (!?name) { |
16237 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL); | 16173 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL); |
16238 } | 16174 } |
16239 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name); | 16175 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name); |
16240 } | 16176 } |
16241 | 16177 |
16242 /** @domName SharedWorker.port; @docsEditable true */ | 16178 /// @domName SharedWorker.port; @docsEditable true |
16243 final MessagePort port; | 16179 final MessagePort port; |
16244 } | 16180 } |
16245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16246 // for details. All rights reserved. Use of this source code is governed by a | 16182 // for details. All rights reserved. Use of this source code is governed by a |
16247 // BSD-style license that can be found in the LICENSE file. | 16183 // BSD-style license that can be found in the LICENSE file. |
16248 | 16184 |
16249 | 16185 |
16250 /// @domName SharedWorkerContext; @docsEditable true | 16186 /// @domName SharedWorkerContext; @docsEditable true |
16251 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { | 16187 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { |
16252 | 16188 |
16253 /** | 16189 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
16254 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
16255 */ | |
16256 SharedWorkerContextEvents get on => | 16190 SharedWorkerContextEvents get on => |
16257 new SharedWorkerContextEvents(this); | 16191 new SharedWorkerContextEvents(this); |
16258 | 16192 |
16259 /** @domName SharedWorkerContext.name; @docsEditable true */ | 16193 /// @domName SharedWorkerContext.name; @docsEditable true |
16260 final String name; | 16194 final String name; |
16261 } | 16195 } |
16262 | 16196 |
16263 class SharedWorkerContextEvents extends WorkerContextEvents { | 16197 class SharedWorkerContextEvents extends WorkerContextEvents { |
16264 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); | 16198 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
16265 | 16199 |
16266 EventListenerList get connect => this['connect']; | 16200 EventListenerList get connect => this['connect']; |
16267 } | 16201 } |
16268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16269 // for details. All rights reserved. Use of this source code is governed by a | 16203 // for details. All rights reserved. Use of this source code is governed by a |
16270 // BSD-style license that can be found in the LICENSE file. | 16204 // BSD-style license that can be found in the LICENSE file. |
16271 | 16205 |
16272 | 16206 |
16273 /// @domName SourceBuffer; @docsEditable true | 16207 /// @domName SourceBuffer; @docsEditable true |
16274 class SourceBuffer native "*SourceBuffer" { | 16208 class SourceBuffer native "*SourceBuffer" { |
16275 | 16209 |
16276 /** @domName SourceBuffer.buffered; @docsEditable true */ | 16210 /// @domName SourceBuffer.buffered; @docsEditable true |
16277 final TimeRanges buffered; | 16211 final TimeRanges buffered; |
16278 | 16212 |
16279 /** @domName SourceBuffer.timestampOffset; @docsEditable true */ | 16213 /// @domName SourceBuffer.timestampOffset; @docsEditable true |
16280 num timestampOffset; | 16214 num timestampOffset; |
16281 | 16215 |
16282 /** @domName SourceBuffer.abort; @docsEditable true */ | 16216 /// @domName SourceBuffer.abort; @docsEditable true |
16283 void abort() native; | 16217 void abort() native; |
16284 | 16218 |
16285 /** @domName SourceBuffer.append; @docsEditable true */ | 16219 /// @domName SourceBuffer.append; @docsEditable true |
16286 void append(Uint8Array data) native; | 16220 void append(Uint8Array data) native; |
16287 } | 16221 } |
16288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16289 // for details. All rights reserved. Use of this source code is governed by a | 16223 // for details. All rights reserved. Use of this source code is governed by a |
16290 // BSD-style license that can be found in the LICENSE file. | 16224 // BSD-style license that can be found in the LICENSE file. |
16291 | 16225 |
16292 | 16226 |
16293 /// @domName SourceBufferList; @docsEditable true | 16227 /// @domName SourceBufferList; @docsEditable true |
16294 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
, List<SourceBuffer> native "*SourceBufferList" { | 16228 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
, List<SourceBuffer> native "*SourceBufferList" { |
16295 | 16229 |
16296 /** @domName SourceBufferList.length; @docsEditable true */ | 16230 /// @domName SourceBufferList.length; @docsEditable true |
16297 final int length; | 16231 final int length; |
16298 | 16232 |
16299 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); | 16233 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); |
16300 | 16234 |
16301 void operator[]=(int index, SourceBuffer value) { | 16235 void operator[]=(int index, SourceBuffer value) { |
16302 throw new UnsupportedError("Cannot assign element of immutable List."); | 16236 throw new UnsupportedError("Cannot assign element of immutable List."); |
16303 } | 16237 } |
16304 // -- start List<SourceBuffer> mixins. | 16238 // -- start List<SourceBuffer> mixins. |
16305 // SourceBuffer is the element type. | 16239 // SourceBuffer is the element type. |
16306 | 16240 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16374 | 16308 |
16375 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { | 16309 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { |
16376 throw new UnsupportedError("Cannot insertRange on immutable List."); | 16310 throw new UnsupportedError("Cannot insertRange on immutable List."); |
16377 } | 16311 } |
16378 | 16312 |
16379 List<SourceBuffer> getRange(int start, int rangeLength) => | 16313 List<SourceBuffer> getRange(int start, int rangeLength) => |
16380 _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); | 16314 _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); |
16381 | 16315 |
16382 // -- end List<SourceBuffer> mixins. | 16316 // -- end List<SourceBuffer> mixins. |
16383 | 16317 |
16384 /** @domName SourceBufferList.addEventListener; @docsEditable true */ | 16318 /// @domName SourceBufferList.addEventListener; @docsEditable true |
16385 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 16319 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
16386 | 16320 |
16387 /** @domName SourceBufferList.dispatchEvent; @docsEditable true */ | 16321 /// @domName SourceBufferList.dispatchEvent; @docsEditable true |
16388 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 16322 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
16389 | 16323 |
16390 /** @domName SourceBufferList.item; @docsEditable true */ | 16324 /// @domName SourceBufferList.item; @docsEditable true |
16391 SourceBuffer item(int index) native; | 16325 SourceBuffer item(int index) native; |
16392 | 16326 |
16393 /** @domName SourceBufferList.removeEventListener; @docsEditable true */ | 16327 /// @domName SourceBufferList.removeEventListener; @docsEditable true |
16394 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 16328 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
16395 } | 16329 } |
16396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16397 // for details. All rights reserved. Use of this source code is governed by a | 16331 // for details. All rights reserved. Use of this source code is governed by a |
16398 // BSD-style license that can be found in the LICENSE file. | 16332 // BSD-style license that can be found in the LICENSE file. |
16399 | 16333 |
16400 | 16334 |
16401 /// @domName HTMLSourceElement; @docsEditable true | 16335 /// @domName HTMLSourceElement; @docsEditable true |
16402 class SourceElement extends Element implements Element native "*HTMLSourceElemen
t" { | 16336 class SourceElement extends Element implements Element native "*HTMLSourceElemen
t" { |
16403 | 16337 |
16404 factory SourceElement() => document.$dom_createElement("source"); | 16338 factory SourceElement() => document.$dom_createElement("source"); |
16405 | 16339 |
16406 /** @domName HTMLSourceElement.media; @docsEditable true */ | 16340 /// @domName HTMLSourceElement.media; @docsEditable true |
16407 String media; | 16341 String media; |
16408 | 16342 |
16409 /** @domName HTMLSourceElement.src; @docsEditable true */ | 16343 /// @domName HTMLSourceElement.src; @docsEditable true |
16410 String src; | 16344 String src; |
16411 | 16345 |
16412 /** @domName HTMLSourceElement.type; @docsEditable true */ | 16346 /// @domName HTMLSourceElement.type; @docsEditable true |
16413 String type; | 16347 String type; |
16414 } | 16348 } |
16415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16416 // for details. All rights reserved. Use of this source code is governed by a | 16350 // for details. All rights reserved. Use of this source code is governed by a |
16417 // BSD-style license that can be found in the LICENSE file. | 16351 // BSD-style license that can be found in the LICENSE file. |
16418 | 16352 |
16419 | 16353 |
16420 /// @domName HTMLSpanElement; @docsEditable true | 16354 /// @domName HTMLSpanElement; @docsEditable true |
16421 class SpanElement extends Element implements Element native "*HTMLSpanElement" { | 16355 class SpanElement extends Element implements Element native "*HTMLSpanElement" { |
16422 | 16356 |
16423 factory SpanElement() => document.$dom_createElement("span"); | 16357 factory SpanElement() => document.$dom_createElement("span"); |
16424 } | 16358 } |
16425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16426 // for details. All rights reserved. Use of this source code is governed by a | 16360 // for details. All rights reserved. Use of this source code is governed by a |
16427 // BSD-style license that can be found in the LICENSE file. | 16361 // BSD-style license that can be found in the LICENSE file. |
16428 | 16362 |
16429 | 16363 |
16430 /// @domName SpeechGrammar; @docsEditable true | 16364 /// @domName SpeechGrammar; @docsEditable true |
16431 class SpeechGrammar native "*SpeechGrammar" { | 16365 class SpeechGrammar native "*SpeechGrammar" { |
16432 | 16366 |
16433 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar()
; | 16367 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar()
; |
16434 | 16368 |
16435 /** @domName SpeechGrammar.src; @docsEditable true */ | 16369 /// @domName SpeechGrammar.src; @docsEditable true |
16436 String src; | 16370 String src; |
16437 | 16371 |
16438 /** @domName SpeechGrammar.weight; @docsEditable true */ | 16372 /// @domName SpeechGrammar.weight; @docsEditable true |
16439 num weight; | 16373 num weight; |
16440 } | 16374 } |
16441 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16442 // for details. All rights reserved. Use of this source code is governed by a | 16376 // for details. All rights reserved. Use of this source code is governed by a |
16443 // BSD-style license that can be found in the LICENSE file. | 16377 // BSD-style license that can be found in the LICENSE file. |
16444 | 16378 |
16445 | 16379 |
16446 /// @domName SpeechGrammarList; @docsEditable true | 16380 /// @domName SpeechGrammarList; @docsEditable true |
16447 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
r> native "*SpeechGrammarList" { | 16381 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
r> native "*SpeechGrammarList" { |
16448 | 16382 |
16449 factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechG
rammarList(); | 16383 factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechG
rammarList(); |
16450 | 16384 |
16451 /** @domName SpeechGrammarList.length; @docsEditable true */ | 16385 /// @domName SpeechGrammarList.length; @docsEditable true |
16452 final int length; | 16386 final int length; |
16453 | 16387 |
16454 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index
); | 16388 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index
); |
16455 | 16389 |
16456 void operator[]=(int index, SpeechGrammar value) { | 16390 void operator[]=(int index, SpeechGrammar value) { |
16457 throw new UnsupportedError("Cannot assign element of immutable List."); | 16391 throw new UnsupportedError("Cannot assign element of immutable List."); |
16458 } | 16392 } |
16459 // -- start List<SpeechGrammar> mixins. | 16393 // -- start List<SpeechGrammar> mixins. |
16460 // SpeechGrammar is the element type. | 16394 // SpeechGrammar is the element type. |
16461 | 16395 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16529 | 16463 |
16530 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { | 16464 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { |
16531 throw new UnsupportedError("Cannot insertRange on immutable List."); | 16465 throw new UnsupportedError("Cannot insertRange on immutable List."); |
16532 } | 16466 } |
16533 | 16467 |
16534 List<SpeechGrammar> getRange(int start, int rangeLength) => | 16468 List<SpeechGrammar> getRange(int start, int rangeLength) => |
16535 _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); | 16469 _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); |
16536 | 16470 |
16537 // -- end List<SpeechGrammar> mixins. | 16471 // -- end List<SpeechGrammar> mixins. |
16538 | 16472 |
16539 /** @domName SpeechGrammarList.addFromString; @docsEditable true */ | 16473 /// @domName SpeechGrammarList.addFromString; @docsEditable true |
16540 void addFromString(String string, [num weight]) native; | 16474 void addFromString(String string, [num weight]) native; |
16541 | 16475 |
16542 /** @domName SpeechGrammarList.addFromUri; @docsEditable true */ | 16476 /// @domName SpeechGrammarList.addFromUri; @docsEditable true |
16543 void addFromUri(String src, [num weight]) native; | 16477 void addFromUri(String src, [num weight]) native; |
16544 | 16478 |
16545 /** @domName SpeechGrammarList.item; @docsEditable true */ | 16479 /// @domName SpeechGrammarList.item; @docsEditable true |
16546 SpeechGrammar item(int index) native; | 16480 SpeechGrammar item(int index) native; |
16547 } | 16481 } |
16548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16549 // for details. All rights reserved. Use of this source code is governed by a | 16483 // for details. All rights reserved. Use of this source code is governed by a |
16550 // BSD-style license that can be found in the LICENSE file. | 16484 // BSD-style license that can be found in the LICENSE file. |
16551 | 16485 |
16552 | 16486 |
16553 /// @domName SpeechInputEvent; @docsEditable true | 16487 /// @domName SpeechInputEvent; @docsEditable true |
16554 class SpeechInputEvent extends Event native "*SpeechInputEvent" { | 16488 class SpeechInputEvent extends Event native "*SpeechInputEvent" { |
16555 | 16489 |
16556 /** @domName SpeechInputEvent.results; @docsEditable true */ | 16490 /// @domName SpeechInputEvent.results; @docsEditable true |
16557 @Returns('_SpeechInputResultList') @Creates('_SpeechInputResultList') | 16491 @Returns('_SpeechInputResultList') @Creates('_SpeechInputResultList') |
16558 final List<SpeechInputResult> results; | 16492 final List<SpeechInputResult> results; |
16559 } | 16493 } |
16560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16561 // for details. All rights reserved. Use of this source code is governed by a | 16495 // for details. All rights reserved. Use of this source code is governed by a |
16562 // BSD-style license that can be found in the LICENSE file. | 16496 // BSD-style license that can be found in the LICENSE file. |
16563 | 16497 |
16564 | 16498 |
16565 /// @domName SpeechInputResult; @docsEditable true | 16499 /// @domName SpeechInputResult; @docsEditable true |
16566 class SpeechInputResult native "*SpeechInputResult" { | 16500 class SpeechInputResult native "*SpeechInputResult" { |
16567 | 16501 |
16568 /** @domName SpeechInputResult.confidence; @docsEditable true */ | 16502 /// @domName SpeechInputResult.confidence; @docsEditable true |
16569 final num confidence; | 16503 final num confidence; |
16570 | 16504 |
16571 /** @domName SpeechInputResult.utterance; @docsEditable true */ | 16505 /// @domName SpeechInputResult.utterance; @docsEditable true |
16572 final String utterance; | 16506 final String utterance; |
16573 } | 16507 } |
16574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16575 // for details. All rights reserved. Use of this source code is governed by a | 16509 // for details. All rights reserved. Use of this source code is governed by a |
16576 // BSD-style license that can be found in the LICENSE file. | 16510 // BSD-style license that can be found in the LICENSE file. |
16577 | 16511 |
16578 | 16512 |
16579 /// @domName SpeechRecognition; @docsEditable true | 16513 /// @domName SpeechRecognition; @docsEditable true |
16580 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { | 16514 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { |
16581 | 16515 |
16582 factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechR
ecognition(); | 16516 factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechR
ecognition(); |
16583 | 16517 |
16584 /** | 16518 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
16585 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
16586 */ | |
16587 SpeechRecognitionEvents get on => | 16519 SpeechRecognitionEvents get on => |
16588 new SpeechRecognitionEvents(this); | 16520 new SpeechRecognitionEvents(this); |
16589 | 16521 |
16590 /** @domName SpeechRecognition.continuous; @docsEditable true */ | 16522 /// @domName SpeechRecognition.continuous; @docsEditable true |
16591 bool continuous; | 16523 bool continuous; |
16592 | 16524 |
16593 /** @domName SpeechRecognition.grammars; @docsEditable true */ | 16525 /// @domName SpeechRecognition.grammars; @docsEditable true |
16594 SpeechGrammarList grammars; | 16526 SpeechGrammarList grammars; |
16595 | 16527 |
16596 /** @domName SpeechRecognition.interimResults; @docsEditable true */ | 16528 /// @domName SpeechRecognition.interimResults; @docsEditable true |
16597 bool interimResults; | 16529 bool interimResults; |
16598 | 16530 |
16599 /** @domName SpeechRecognition.lang; @docsEditable true */ | 16531 /// @domName SpeechRecognition.lang; @docsEditable true |
16600 String lang; | 16532 String lang; |
16601 | 16533 |
16602 /** @domName SpeechRecognition.maxAlternatives; @docsEditable true */ | 16534 /// @domName SpeechRecognition.maxAlternatives; @docsEditable true |
16603 int maxAlternatives; | 16535 int maxAlternatives; |
16604 | 16536 |
16605 /** @domName SpeechRecognition.abort; @docsEditable true */ | 16537 /// @domName SpeechRecognition.abort; @docsEditable true |
16606 void abort() native; | 16538 void abort() native; |
16607 | 16539 |
16608 /** @domName SpeechRecognition.addEventListener; @docsEditable true */ | 16540 /// @domName SpeechRecognition.addEventListener; @docsEditable true |
16609 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 16541 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
16610 | 16542 |
16611 /** @domName SpeechRecognition.dispatchEvent; @docsEditable true */ | 16543 /// @domName SpeechRecognition.dispatchEvent; @docsEditable true |
16612 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 16544 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
16613 | 16545 |
16614 /** @domName SpeechRecognition.removeEventListener; @docsEditable true */ | 16546 /// @domName SpeechRecognition.removeEventListener; @docsEditable true |
16615 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 16547 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
16616 | 16548 |
16617 /** @domName SpeechRecognition.start; @docsEditable true */ | 16549 /// @domName SpeechRecognition.start; @docsEditable true |
16618 void start() native; | 16550 void start() native; |
16619 | 16551 |
16620 /** @domName SpeechRecognition.stop; @docsEditable true */ | 16552 /// @domName SpeechRecognition.stop; @docsEditable true |
16621 void stop() native; | 16553 void stop() native; |
16622 } | 16554 } |
16623 | 16555 |
16624 class SpeechRecognitionEvents extends Events { | 16556 class SpeechRecognitionEvents extends Events { |
16625 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr); | 16557 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr); |
16626 | 16558 |
16627 EventListenerList get audioEnd => this['audioend']; | 16559 EventListenerList get audioEnd => this['audioend']; |
16628 | 16560 |
16629 EventListenerList get audioStart => this['audiostart']; | 16561 EventListenerList get audioStart => this['audiostart']; |
16630 | 16562 |
(...skipping 16 matching lines...) Expand all Loading... |
16647 EventListenerList get start => this['start']; | 16579 EventListenerList get start => this['start']; |
16648 } | 16580 } |
16649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16650 // for details. All rights reserved. Use of this source code is governed by a | 16582 // for details. All rights reserved. Use of this source code is governed by a |
16651 // BSD-style license that can be found in the LICENSE file. | 16583 // BSD-style license that can be found in the LICENSE file. |
16652 | 16584 |
16653 | 16585 |
16654 /// @domName SpeechRecognitionAlternative; @docsEditable true | 16586 /// @domName SpeechRecognitionAlternative; @docsEditable true |
16655 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { | 16587 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { |
16656 | 16588 |
16657 /** @domName SpeechRecognitionAlternative.confidence; @docsEditable true */ | 16589 /// @domName SpeechRecognitionAlternative.confidence; @docsEditable true |
16658 final num confidence; | 16590 final num confidence; |
16659 | 16591 |
16660 /** @domName SpeechRecognitionAlternative.transcript; @docsEditable true */ | 16592 /// @domName SpeechRecognitionAlternative.transcript; @docsEditable true |
16661 final String transcript; | 16593 final String transcript; |
16662 } | 16594 } |
16663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16664 // for details. All rights reserved. Use of this source code is governed by a | 16596 // for details. All rights reserved. Use of this source code is governed by a |
16665 // BSD-style license that can be found in the LICENSE file. | 16597 // BSD-style license that can be found in the LICENSE file. |
16666 | 16598 |
16667 | 16599 |
16668 /// @domName SpeechRecognitionError; @docsEditable true | 16600 /// @domName SpeechRecognitionError; @docsEditable true |
16669 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { | 16601 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { |
16670 | 16602 |
16671 static const int ABORTED = 2; | 16603 static const int ABORTED = 2; |
16672 | 16604 |
16673 static const int AUDIO_CAPTURE = 3; | 16605 static const int AUDIO_CAPTURE = 3; |
16674 | 16606 |
16675 static const int BAD_GRAMMAR = 7; | 16607 static const int BAD_GRAMMAR = 7; |
16676 | 16608 |
16677 static const int LANGUAGE_NOT_SUPPORTED = 8; | 16609 static const int LANGUAGE_NOT_SUPPORTED = 8; |
16678 | 16610 |
16679 static const int NETWORK = 4; | 16611 static const int NETWORK = 4; |
16680 | 16612 |
16681 static const int NOT_ALLOWED = 5; | 16613 static const int NOT_ALLOWED = 5; |
16682 | 16614 |
16683 static const int NO_SPEECH = 1; | 16615 static const int NO_SPEECH = 1; |
16684 | 16616 |
16685 static const int OTHER = 0; | 16617 static const int OTHER = 0; |
16686 | 16618 |
16687 static const int SERVICE_NOT_ALLOWED = 6; | 16619 static const int SERVICE_NOT_ALLOWED = 6; |
16688 | 16620 |
16689 /** @domName SpeechRecognitionError.code; @docsEditable true */ | 16621 /// @domName SpeechRecognitionError.code; @docsEditable true |
16690 final int code; | 16622 final int code; |
16691 | 16623 |
16692 /** @domName SpeechRecognitionError.message; @docsEditable true */ | 16624 /// @domName SpeechRecognitionError.message; @docsEditable true |
16693 final String message; | 16625 final String message; |
16694 } | 16626 } |
16695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16696 // for details. All rights reserved. Use of this source code is governed by a | 16628 // for details. All rights reserved. Use of this source code is governed by a |
16697 // BSD-style license that can be found in the LICENSE file. | 16629 // BSD-style license that can be found in the LICENSE file. |
16698 | 16630 |
16699 | 16631 |
16700 /// @domName SpeechRecognitionEvent; @docsEditable true | 16632 /// @domName SpeechRecognitionEvent; @docsEditable true |
16701 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { | 16633 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { |
16702 | 16634 |
16703 /** @domName SpeechRecognitionEvent.result; @docsEditable true */ | 16635 /// @domName SpeechRecognitionEvent.result; @docsEditable true |
16704 final SpeechRecognitionResult result; | 16636 final SpeechRecognitionResult result; |
16705 | 16637 |
16706 /** @domName SpeechRecognitionEvent.resultHistory; @docsEditable true */ | 16638 /// @domName SpeechRecognitionEvent.resultHistory; @docsEditable true |
16707 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis
t') | 16639 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis
t') |
16708 final List<SpeechRecognitionResult> resultHistory; | 16640 final List<SpeechRecognitionResult> resultHistory; |
16709 | 16641 |
16710 /** @domName SpeechRecognitionEvent.resultIndex; @docsEditable true */ | 16642 /// @domName SpeechRecognitionEvent.resultIndex; @docsEditable true |
16711 final int resultIndex; | 16643 final int resultIndex; |
16712 } | 16644 } |
16713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16714 // for details. All rights reserved. Use of this source code is governed by a | 16646 // for details. All rights reserved. Use of this source code is governed by a |
16715 // BSD-style license that can be found in the LICENSE file. | 16647 // BSD-style license that can be found in the LICENSE file. |
16716 | 16648 |
16717 | 16649 |
16718 /// @domName SpeechRecognitionResult; @docsEditable true | 16650 /// @domName SpeechRecognitionResult; @docsEditable true |
16719 class SpeechRecognitionResult native "*SpeechRecognitionResult" { | 16651 class SpeechRecognitionResult native "*SpeechRecognitionResult" { |
16720 | 16652 |
16721 /** @domName SpeechRecognitionResult.emma; @docsEditable true */ | 16653 /// @domName SpeechRecognitionResult.emma; @docsEditable true |
16722 final Document emma; | 16654 final Document emma; |
16723 | 16655 |
16724 /** @domName SpeechRecognitionResult.finalValue; @docsEditable true */ | 16656 /// @domName SpeechRecognitionResult.finalValue; @docsEditable true |
16725 bool get finalValue => JS("bool", "#.final", this); | 16657 bool get finalValue => JS("bool", "#.final", this); |
16726 | 16658 |
16727 /** @domName SpeechRecognitionResult.length; @docsEditable true */ | 16659 /// @domName SpeechRecognitionResult.length; @docsEditable true |
16728 final int length; | 16660 final int length; |
16729 | 16661 |
16730 /** @domName SpeechRecognitionResult.item; @docsEditable true */ | 16662 /// @domName SpeechRecognitionResult.item; @docsEditable true |
16731 SpeechRecognitionAlternative item(int index) native; | 16663 SpeechRecognitionAlternative item(int index) native; |
16732 } | 16664 } |
16733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16734 // for details. All rights reserved. Use of this source code is governed by a | 16666 // for details. All rights reserved. Use of this source code is governed by a |
16735 // BSD-style license that can be found in the LICENSE file. | 16667 // BSD-style license that can be found in the LICENSE file. |
16736 | 16668 |
16737 | 16669 |
16738 class Storage implements Map<String, String> native "*Storage" { | 16670 class Storage implements Map<String, String> native "*Storage" { |
16739 | 16671 |
16740 // TODO(nweiz): update this when maps support lazy iteration | 16672 // TODO(nweiz): update this when maps support lazy iteration |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16777 Collection<String> get values { | 16709 Collection<String> get values { |
16778 final values = []; | 16710 final values = []; |
16779 forEach((k, v) => values.add(v)); | 16711 forEach((k, v) => values.add(v)); |
16780 return values; | 16712 return values; |
16781 } | 16713 } |
16782 | 16714 |
16783 int get length => $dom_length; | 16715 int get length => $dom_length; |
16784 | 16716 |
16785 bool get isEmpty => $dom_key(0) == null; | 16717 bool get isEmpty => $dom_key(0) == null; |
16786 | 16718 |
16787 /** @domName Storage.length; @docsEditable true */ | 16719 /// @domName Storage.length; @docsEditable true |
16788 int get $dom_length => JS("int", "#.length", this); | 16720 int get $dom_length => JS("int", "#.length", this); |
16789 | 16721 |
16790 /** @domName Storage.clear; @docsEditable true */ | 16722 /// @domName Storage.clear; @docsEditable true |
16791 void $dom_clear() native "clear"; | 16723 void $dom_clear() native "clear"; |
16792 | 16724 |
16793 /** @domName Storage.getItem; @docsEditable true */ | 16725 /// @domName Storage.getItem; @docsEditable true |
16794 String $dom_getItem(String key) native "getItem"; | 16726 String $dom_getItem(String key) native "getItem"; |
16795 | 16727 |
16796 /** @domName Storage.key; @docsEditable true */ | 16728 /// @domName Storage.key; @docsEditable true |
16797 String $dom_key(int index) native "key"; | 16729 String $dom_key(int index) native "key"; |
16798 | 16730 |
16799 /** @domName Storage.removeItem; @docsEditable true */ | 16731 /// @domName Storage.removeItem; @docsEditable true |
16800 void $dom_removeItem(String key) native "removeItem"; | 16732 void $dom_removeItem(String key) native "removeItem"; |
16801 | 16733 |
16802 /** @domName Storage.setItem; @docsEditable true */ | 16734 /// @domName Storage.setItem; @docsEditable true |
16803 void $dom_setItem(String key, String data) native "setItem"; | 16735 void $dom_setItem(String key, String data) native "setItem"; |
16804 | 16736 |
16805 } | 16737 } |
16806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16807 // for details. All rights reserved. Use of this source code is governed by a | 16739 // for details. All rights reserved. Use of this source code is governed by a |
16808 // BSD-style license that can be found in the LICENSE file. | 16740 // BSD-style license that can be found in the LICENSE file. |
16809 | 16741 |
16810 | 16742 |
16811 /// @domName StorageEvent; @docsEditable true | 16743 /// @domName StorageEvent; @docsEditable true |
16812 class StorageEvent extends Event native "*StorageEvent" { | 16744 class StorageEvent extends Event native "*StorageEvent" { |
16813 | 16745 |
16814 /** @domName StorageEvent.key; @docsEditable true */ | 16746 /// @domName StorageEvent.key; @docsEditable true |
16815 final String key; | 16747 final String key; |
16816 | 16748 |
16817 /** @domName StorageEvent.newValue; @docsEditable true */ | 16749 /// @domName StorageEvent.newValue; @docsEditable true |
16818 final String newValue; | 16750 final String newValue; |
16819 | 16751 |
16820 /** @domName StorageEvent.oldValue; @docsEditable true */ | 16752 /// @domName StorageEvent.oldValue; @docsEditable true |
16821 final String oldValue; | 16753 final String oldValue; |
16822 | 16754 |
16823 /** @domName StorageEvent.storageArea; @docsEditable true */ | 16755 /// @domName StorageEvent.storageArea; @docsEditable true |
16824 final Storage storageArea; | 16756 final Storage storageArea; |
16825 | 16757 |
16826 /** @domName StorageEvent.url; @docsEditable true */ | 16758 /// @domName StorageEvent.url; @docsEditable true |
16827 final String url; | 16759 final String url; |
16828 | 16760 |
16829 /** @domName StorageEvent.initStorageEvent; @docsEditable true */ | 16761 /// @domName StorageEvent.initStorageEvent; @docsEditable true |
16830 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg) native; | 16762 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg) native; |
16831 } | 16763 } |
16832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16833 // for details. All rights reserved. Use of this source code is governed by a | 16765 // for details. All rights reserved. Use of this source code is governed by a |
16834 // BSD-style license that can be found in the LICENSE file. | 16766 // BSD-style license that can be found in the LICENSE file. |
16835 | 16767 |
16836 | 16768 |
16837 /// @domName StorageInfo; @docsEditable true | 16769 /// @domName StorageInfo; @docsEditable true |
16838 class StorageInfo native "*StorageInfo" { | 16770 class StorageInfo native "*StorageInfo" { |
16839 | 16771 |
16840 static const int PERSISTENT = 1; | 16772 static const int PERSISTENT = 1; |
16841 | 16773 |
16842 static const int TEMPORARY = 0; | 16774 static const int TEMPORARY = 0; |
16843 | 16775 |
16844 /** @domName StorageInfo.queryUsageAndQuota; @docsEditable true */ | 16776 /// @domName StorageInfo.queryUsageAndQuota; @docsEditable true |
16845 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; | 16777 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; |
16846 | 16778 |
16847 /** @domName StorageInfo.requestQuota; @docsEditable true */ | 16779 /// @domName StorageInfo.requestQuota; @docsEditable true |
16848 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; | 16780 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; |
16849 } | 16781 } |
16850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16851 // for details. All rights reserved. Use of this source code is governed by a | 16783 // for details. All rights reserved. Use of this source code is governed by a |
16852 // BSD-style license that can be found in the LICENSE file. | 16784 // BSD-style license that can be found in the LICENSE file. |
16853 | 16785 |
16854 // WARNING: Do not edit - generated code. | 16786 // WARNING: Do not edit - generated code. |
16855 | 16787 |
16856 | 16788 |
16857 typedef void StorageInfoErrorCallback(DOMException error); | 16789 typedef void StorageInfoErrorCallback(DOMException error); |
(...skipping 24 matching lines...) Expand all Loading... |
16882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16883 // for details. All rights reserved. Use of this source code is governed by a | 16815 // for details. All rights reserved. Use of this source code is governed by a |
16884 // BSD-style license that can be found in the LICENSE file. | 16816 // BSD-style license that can be found in the LICENSE file. |
16885 | 16817 |
16886 | 16818 |
16887 /// @domName HTMLStyleElement; @docsEditable true | 16819 /// @domName HTMLStyleElement; @docsEditable true |
16888 class StyleElement extends Element implements Element native "*HTMLStyleElement"
{ | 16820 class StyleElement extends Element implements Element native "*HTMLStyleElement"
{ |
16889 | 16821 |
16890 factory StyleElement() => document.$dom_createElement("style"); | 16822 factory StyleElement() => document.$dom_createElement("style"); |
16891 | 16823 |
16892 /** @domName HTMLStyleElement.disabled; @docsEditable true */ | 16824 /// @domName HTMLStyleElement.disabled; @docsEditable true |
16893 bool disabled; | 16825 bool disabled; |
16894 | 16826 |
16895 /** @domName HTMLStyleElement.media; @docsEditable true */ | 16827 /// @domName HTMLStyleElement.media; @docsEditable true |
16896 String media; | 16828 String media; |
16897 | 16829 |
16898 /** @domName HTMLStyleElement.scoped; @docsEditable true */ | 16830 /// @domName HTMLStyleElement.scoped; @docsEditable true |
16899 bool scoped; | 16831 bool scoped; |
16900 | 16832 |
16901 /** @domName HTMLStyleElement.sheet; @docsEditable true */ | 16833 /// @domName HTMLStyleElement.sheet; @docsEditable true |
16902 final StyleSheet sheet; | 16834 final StyleSheet sheet; |
16903 | 16835 |
16904 /** @domName HTMLStyleElement.type; @docsEditable true */ | 16836 /// @domName HTMLStyleElement.type; @docsEditable true |
16905 String type; | 16837 String type; |
16906 } | 16838 } |
16907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16839 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16908 // for details. All rights reserved. Use of this source code is governed by a | 16840 // for details. All rights reserved. Use of this source code is governed by a |
16909 // BSD-style license that can be found in the LICENSE file. | 16841 // BSD-style license that can be found in the LICENSE file. |
16910 | 16842 |
16911 | 16843 |
16912 /// @domName StyleMedia; @docsEditable true | 16844 /// @domName StyleMedia; @docsEditable true |
16913 class StyleMedia native "*StyleMedia" { | 16845 class StyleMedia native "*StyleMedia" { |
16914 | 16846 |
16915 /** @domName StyleMedia.type; @docsEditable true */ | 16847 /// @domName StyleMedia.type; @docsEditable true |
16916 final String type; | 16848 final String type; |
16917 | 16849 |
16918 /** @domName StyleMedia.matchMedium; @docsEditable true */ | 16850 /// @domName StyleMedia.matchMedium; @docsEditable true |
16919 bool matchMedium(String mediaquery) native; | 16851 bool matchMedium(String mediaquery) native; |
16920 } | 16852 } |
16921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16922 // for details. All rights reserved. Use of this source code is governed by a | 16854 // for details. All rights reserved. Use of this source code is governed by a |
16923 // BSD-style license that can be found in the LICENSE file. | 16855 // BSD-style license that can be found in the LICENSE file. |
16924 | 16856 |
16925 | 16857 |
16926 /// @domName StyleSheet; @docsEditable true | 16858 /// @domName StyleSheet; @docsEditable true |
16927 class StyleSheet native "*StyleSheet" { | 16859 class StyleSheet native "*StyleSheet" { |
16928 | 16860 |
16929 /** @domName StyleSheet.disabled; @docsEditable true */ | 16861 /// @domName StyleSheet.disabled; @docsEditable true |
16930 bool disabled; | 16862 bool disabled; |
16931 | 16863 |
16932 /** @domName StyleSheet.href; @docsEditable true */ | 16864 /// @domName StyleSheet.href; @docsEditable true |
16933 final String href; | 16865 final String href; |
16934 | 16866 |
16935 /** @domName StyleSheet.media; @docsEditable true */ | 16867 /// @domName StyleSheet.media; @docsEditable true |
16936 final MediaList media; | 16868 final MediaList media; |
16937 | 16869 |
16938 /** @domName StyleSheet.ownerNode; @docsEditable true */ | 16870 /// @domName StyleSheet.ownerNode; @docsEditable true |
16939 final Node ownerNode; | 16871 final Node ownerNode; |
16940 | 16872 |
16941 /** @domName StyleSheet.parentStyleSheet; @docsEditable true */ | 16873 /// @domName StyleSheet.parentStyleSheet; @docsEditable true |
16942 final StyleSheet parentStyleSheet; | 16874 final StyleSheet parentStyleSheet; |
16943 | 16875 |
16944 /** @domName StyleSheet.title; @docsEditable true */ | 16876 /// @domName StyleSheet.title; @docsEditable true |
16945 final String title; | 16877 final String title; |
16946 | 16878 |
16947 /** @domName StyleSheet.type; @docsEditable true */ | 16879 /// @domName StyleSheet.type; @docsEditable true |
16948 final String type; | 16880 final String type; |
16949 } | 16881 } |
16950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16951 // for details. All rights reserved. Use of this source code is governed by a | 16883 // for details. All rights reserved. Use of this source code is governed by a |
16952 // BSD-style license that can be found in the LICENSE file. | 16884 // BSD-style license that can be found in the LICENSE file. |
16953 | 16885 |
16954 | 16886 |
16955 /// @domName HTMLTableCaptionElement; @docsEditable true | 16887 /// @domName HTMLTableCaptionElement; @docsEditable true |
16956 class TableCaptionElement extends Element implements Element native "*HTMLTableC
aptionElement" { | 16888 class TableCaptionElement extends Element implements Element native "*HTMLTableC
aptionElement" { |
16957 | 16889 |
16958 factory TableCaptionElement() => document.$dom_createElement("caption"); | 16890 factory TableCaptionElement() => document.$dom_createElement("caption"); |
16959 | 16891 |
16960 /** @domName HTMLTableCaptionElement.align; @docsEditable true */ | 16892 /// @domName HTMLTableCaptionElement.align; @docsEditable true |
16961 String align; | 16893 String align; |
16962 } | 16894 } |
16963 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16964 // for details. All rights reserved. Use of this source code is governed by a | 16896 // for details. All rights reserved. Use of this source code is governed by a |
16965 // BSD-style license that can be found in the LICENSE file. | 16897 // BSD-style license that can be found in the LICENSE file. |
16966 | 16898 |
16967 | 16899 |
16968 /// @domName HTMLTableCellElement; @docsEditable true | 16900 /// @domName HTMLTableCellElement; @docsEditable true |
16969 class TableCellElement extends Element implements Element native "*HTMLTableCell
Element" { | 16901 class TableCellElement extends Element implements Element native "*HTMLTableCell
Element" { |
16970 | 16902 |
16971 factory TableCellElement() => document.$dom_createElement("td"); | 16903 factory TableCellElement() => document.$dom_createElement("td"); |
16972 | 16904 |
16973 /** @domName HTMLTableCellElement.abbr; @docsEditable true */ | 16905 /// @domName HTMLTableCellElement.abbr; @docsEditable true |
16974 String abbr; | 16906 String abbr; |
16975 | 16907 |
16976 /** @domName HTMLTableCellElement.align; @docsEditable true */ | 16908 /// @domName HTMLTableCellElement.align; @docsEditable true |
16977 String align; | 16909 String align; |
16978 | 16910 |
16979 /** @domName HTMLTableCellElement.axis; @docsEditable true */ | 16911 /// @domName HTMLTableCellElement.axis; @docsEditable true |
16980 String axis; | 16912 String axis; |
16981 | 16913 |
16982 /** @domName HTMLTableCellElement.bgColor; @docsEditable true */ | 16914 /// @domName HTMLTableCellElement.bgColor; @docsEditable true |
16983 String bgColor; | 16915 String bgColor; |
16984 | 16916 |
16985 /** @domName HTMLTableCellElement.cellIndex; @docsEditable true */ | 16917 /// @domName HTMLTableCellElement.cellIndex; @docsEditable true |
16986 final int cellIndex; | 16918 final int cellIndex; |
16987 | 16919 |
16988 /** @domName HTMLTableCellElement.ch; @docsEditable true */ | 16920 /// @domName HTMLTableCellElement.ch; @docsEditable true |
16989 String ch; | 16921 String ch; |
16990 | 16922 |
16991 /** @domName HTMLTableCellElement.chOff; @docsEditable true */ | 16923 /// @domName HTMLTableCellElement.chOff; @docsEditable true |
16992 String chOff; | 16924 String chOff; |
16993 | 16925 |
16994 /** @domName HTMLTableCellElement.colSpan; @docsEditable true */ | 16926 /// @domName HTMLTableCellElement.colSpan; @docsEditable true |
16995 int colSpan; | 16927 int colSpan; |
16996 | 16928 |
16997 /** @domName HTMLTableCellElement.headers; @docsEditable true */ | 16929 /// @domName HTMLTableCellElement.headers; @docsEditable true |
16998 String headers; | 16930 String headers; |
16999 | 16931 |
17000 /** @domName HTMLTableCellElement.height; @docsEditable true */ | 16932 /// @domName HTMLTableCellElement.height; @docsEditable true |
17001 String height; | 16933 String height; |
17002 | 16934 |
17003 /** @domName HTMLTableCellElement.noWrap; @docsEditable true */ | 16935 /// @domName HTMLTableCellElement.noWrap; @docsEditable true |
17004 bool noWrap; | 16936 bool noWrap; |
17005 | 16937 |
17006 /** @domName HTMLTableCellElement.rowSpan; @docsEditable true */ | 16938 /// @domName HTMLTableCellElement.rowSpan; @docsEditable true |
17007 int rowSpan; | 16939 int rowSpan; |
17008 | 16940 |
17009 /** @domName HTMLTableCellElement.scope; @docsEditable true */ | 16941 /// @domName HTMLTableCellElement.scope; @docsEditable true |
17010 String scope; | 16942 String scope; |
17011 | 16943 |
17012 /** @domName HTMLTableCellElement.vAlign; @docsEditable true */ | 16944 /// @domName HTMLTableCellElement.vAlign; @docsEditable true |
17013 String vAlign; | 16945 String vAlign; |
17014 | 16946 |
17015 /** @domName HTMLTableCellElement.width; @docsEditable true */ | 16947 /// @domName HTMLTableCellElement.width; @docsEditable true |
17016 String width; | 16948 String width; |
17017 } | 16949 } |
17018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17019 // for details. All rights reserved. Use of this source code is governed by a | 16951 // for details. All rights reserved. Use of this source code is governed by a |
17020 // BSD-style license that can be found in the LICENSE file. | 16952 // BSD-style license that can be found in the LICENSE file. |
17021 | 16953 |
17022 | 16954 |
17023 /// @domName HTMLTableColElement; @docsEditable true | 16955 /// @domName HTMLTableColElement; @docsEditable true |
17024 class TableColElement extends Element implements Element native "*HTMLTableColEl
ement" { | 16956 class TableColElement extends Element implements Element native "*HTMLTableColEl
ement" { |
17025 | 16957 |
17026 factory TableColElement() => document.$dom_createElement("col"); | 16958 factory TableColElement() => document.$dom_createElement("col"); |
17027 | 16959 |
17028 /** @domName HTMLTableColElement.align; @docsEditable true */ | 16960 /// @domName HTMLTableColElement.align; @docsEditable true |
17029 String align; | 16961 String align; |
17030 | 16962 |
17031 /** @domName HTMLTableColElement.ch; @docsEditable true */ | 16963 /// @domName HTMLTableColElement.ch; @docsEditable true |
17032 String ch; | 16964 String ch; |
17033 | 16965 |
17034 /** @domName HTMLTableColElement.chOff; @docsEditable true */ | 16966 /// @domName HTMLTableColElement.chOff; @docsEditable true |
17035 String chOff; | 16967 String chOff; |
17036 | 16968 |
17037 /** @domName HTMLTableColElement.span; @docsEditable true */ | 16969 /// @domName HTMLTableColElement.span; @docsEditable true |
17038 int span; | 16970 int span; |
17039 | 16971 |
17040 /** @domName HTMLTableColElement.vAlign; @docsEditable true */ | 16972 /// @domName HTMLTableColElement.vAlign; @docsEditable true |
17041 String vAlign; | 16973 String vAlign; |
17042 | 16974 |
17043 /** @domName HTMLTableColElement.width; @docsEditable true */ | 16975 /// @domName HTMLTableColElement.width; @docsEditable true |
17044 String width; | 16976 String width; |
17045 } | 16977 } |
17046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17047 // for details. All rights reserved. Use of this source code is governed by a | 16979 // for details. All rights reserved. Use of this source code is governed by a |
17048 // BSD-style license that can be found in the LICENSE file. | 16980 // BSD-style license that can be found in the LICENSE file. |
17049 | 16981 |
17050 | 16982 |
17051 class TableElement extends Element implements Element native "*HTMLTableElement"
{ | 16983 class TableElement extends Element implements Element native "*HTMLTableElement"
{ |
17052 | 16984 |
17053 factory TableElement() => document.$dom_createElement("table"); | 16985 factory TableElement() => document.$dom_createElement("table"); |
17054 | 16986 |
17055 /** @domName HTMLTableElement.align; @docsEditable true */ | 16987 /// @domName HTMLTableElement.align; @docsEditable true |
17056 String align; | 16988 String align; |
17057 | 16989 |
17058 /** @domName HTMLTableElement.bgColor; @docsEditable true */ | 16990 /// @domName HTMLTableElement.bgColor; @docsEditable true |
17059 String bgColor; | 16991 String bgColor; |
17060 | 16992 |
17061 /** @domName HTMLTableElement.border; @docsEditable true */ | 16993 /// @domName HTMLTableElement.border; @docsEditable true |
17062 String border; | 16994 String border; |
17063 | 16995 |
17064 /** @domName HTMLTableElement.caption; @docsEditable true */ | 16996 /// @domName HTMLTableElement.caption; @docsEditable true |
17065 TableCaptionElement caption; | 16997 TableCaptionElement caption; |
17066 | 16998 |
17067 /** @domName HTMLTableElement.cellPadding; @docsEditable true */ | 16999 /// @domName HTMLTableElement.cellPadding; @docsEditable true |
17068 String cellPadding; | 17000 String cellPadding; |
17069 | 17001 |
17070 /** @domName HTMLTableElement.cellSpacing; @docsEditable true */ | 17002 /// @domName HTMLTableElement.cellSpacing; @docsEditable true |
17071 String cellSpacing; | 17003 String cellSpacing; |
17072 | 17004 |
17073 /** @domName HTMLTableElement.frame; @docsEditable true */ | 17005 /// @domName HTMLTableElement.frame; @docsEditable true |
17074 String frame; | 17006 String frame; |
17075 | 17007 |
17076 /** @domName HTMLTableElement.rows; @docsEditable true */ | 17008 /// @domName HTMLTableElement.rows; @docsEditable true |
17077 final HTMLCollection rows; | 17009 final HTMLCollection rows; |
17078 | 17010 |
17079 /** @domName HTMLTableElement.rules; @docsEditable true */ | 17011 /// @domName HTMLTableElement.rules; @docsEditable true |
17080 String rules; | 17012 String rules; |
17081 | 17013 |
17082 /** @domName HTMLTableElement.summary; @docsEditable true */ | 17014 /// @domName HTMLTableElement.summary; @docsEditable true |
17083 String summary; | 17015 String summary; |
17084 | 17016 |
17085 /** @domName HTMLTableElement.tBodies; @docsEditable true */ | 17017 /// @domName HTMLTableElement.tBodies; @docsEditable true |
17086 final HTMLCollection tBodies; | 17018 final HTMLCollection tBodies; |
17087 | 17019 |
17088 /** @domName HTMLTableElement.tFoot; @docsEditable true */ | 17020 /// @domName HTMLTableElement.tFoot; @docsEditable true |
17089 TableSectionElement tFoot; | 17021 TableSectionElement tFoot; |
17090 | 17022 |
17091 /** @domName HTMLTableElement.tHead; @docsEditable true */ | 17023 /// @domName HTMLTableElement.tHead; @docsEditable true |
17092 TableSectionElement tHead; | 17024 TableSectionElement tHead; |
17093 | 17025 |
17094 /** @domName HTMLTableElement.width; @docsEditable true */ | 17026 /// @domName HTMLTableElement.width; @docsEditable true |
17095 String width; | 17027 String width; |
17096 | 17028 |
17097 /** @domName HTMLTableElement.createCaption; @docsEditable true */ | 17029 /// @domName HTMLTableElement.createCaption; @docsEditable true |
17098 Element createCaption() native; | 17030 Element createCaption() native; |
17099 | 17031 |
17100 /** @domName HTMLTableElement.createTFoot; @docsEditable true */ | 17032 /// @domName HTMLTableElement.createTFoot; @docsEditable true |
17101 Element createTFoot() native; | 17033 Element createTFoot() native; |
17102 | 17034 |
17103 /** @domName HTMLTableElement.createTHead; @docsEditable true */ | 17035 /// @domName HTMLTableElement.createTHead; @docsEditable true |
17104 Element createTHead() native; | 17036 Element createTHead() native; |
17105 | 17037 |
17106 /** @domName HTMLTableElement.deleteCaption; @docsEditable true */ | 17038 /// @domName HTMLTableElement.deleteCaption; @docsEditable true |
17107 void deleteCaption() native; | 17039 void deleteCaption() native; |
17108 | 17040 |
17109 /** @domName HTMLTableElement.deleteRow; @docsEditable true */ | 17041 /// @domName HTMLTableElement.deleteRow; @docsEditable true |
17110 void deleteRow(int index) native; | 17042 void deleteRow(int index) native; |
17111 | 17043 |
17112 /** @domName HTMLTableElement.deleteTFoot; @docsEditable true */ | 17044 /// @domName HTMLTableElement.deleteTFoot; @docsEditable true |
17113 void deleteTFoot() native; | 17045 void deleteTFoot() native; |
17114 | 17046 |
17115 /** @domName HTMLTableElement.deleteTHead; @docsEditable true */ | 17047 /// @domName HTMLTableElement.deleteTHead; @docsEditable true |
17116 void deleteTHead() native; | 17048 void deleteTHead() native; |
17117 | 17049 |
17118 /** @domName HTMLTableElement.insertRow; @docsEditable true */ | 17050 /// @domName HTMLTableElement.insertRow; @docsEditable true |
17119 Element insertRow(int index) native; | 17051 Element insertRow(int index) native; |
17120 | 17052 |
17121 | 17053 |
17122 Element createTBody() { | 17054 Element createTBody() { |
17123 if (JS('bool', '!!#.createTBody', this)) { | 17055 if (JS('bool', '!!#.createTBody', this)) { |
17124 return this._createTBody(); | 17056 return this._createTBody(); |
17125 } | 17057 } |
17126 var tbody = new Element.tag('tbody'); | 17058 var tbody = new Element.tag('tbody'); |
17127 this.elements.add(tbody); | 17059 this.elements.add(tbody); |
17128 return tbody; | 17060 return tbody; |
17129 } | 17061 } |
17130 | 17062 |
17131 Element _createTBody() native 'createTBody'; | 17063 Element _createTBody() native 'createTBody'; |
17132 } | 17064 } |
17133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17134 // for details. All rights reserved. Use of this source code is governed by a | 17066 // for details. All rights reserved. Use of this source code is governed by a |
17135 // BSD-style license that can be found in the LICENSE file. | 17067 // BSD-style license that can be found in the LICENSE file. |
17136 | 17068 |
17137 | 17069 |
17138 /// @domName HTMLTableRowElement; @docsEditable true | 17070 /// @domName HTMLTableRowElement; @docsEditable true |
17139 class TableRowElement extends Element implements Element native "*HTMLTableRowEl
ement" { | 17071 class TableRowElement extends Element implements Element native "*HTMLTableRowEl
ement" { |
17140 | 17072 |
17141 factory TableRowElement() => document.$dom_createElement("tr"); | 17073 factory TableRowElement() => document.$dom_createElement("tr"); |
17142 | 17074 |
17143 /** @domName HTMLTableRowElement.align; @docsEditable true */ | 17075 /// @domName HTMLTableRowElement.align; @docsEditable true |
17144 String align; | 17076 String align; |
17145 | 17077 |
17146 /** @domName HTMLTableRowElement.bgColor; @docsEditable true */ | 17078 /// @domName HTMLTableRowElement.bgColor; @docsEditable true |
17147 String bgColor; | 17079 String bgColor; |
17148 | 17080 |
17149 /** @domName HTMLTableRowElement.cells; @docsEditable true */ | 17081 /// @domName HTMLTableRowElement.cells; @docsEditable true |
17150 final HTMLCollection cells; | 17082 final HTMLCollection cells; |
17151 | 17083 |
17152 /** @domName HTMLTableRowElement.ch; @docsEditable true */ | 17084 /// @domName HTMLTableRowElement.ch; @docsEditable true |
17153 String ch; | 17085 String ch; |
17154 | 17086 |
17155 /** @domName HTMLTableRowElement.chOff; @docsEditable true */ | 17087 /// @domName HTMLTableRowElement.chOff; @docsEditable true |
17156 String chOff; | 17088 String chOff; |
17157 | 17089 |
17158 /** @domName HTMLTableRowElement.rowIndex; @docsEditable true */ | 17090 /// @domName HTMLTableRowElement.rowIndex; @docsEditable true |
17159 final int rowIndex; | 17091 final int rowIndex; |
17160 | 17092 |
17161 /** @domName HTMLTableRowElement.sectionRowIndex; @docsEditable true */ | 17093 /// @domName HTMLTableRowElement.sectionRowIndex; @docsEditable true |
17162 final int sectionRowIndex; | 17094 final int sectionRowIndex; |
17163 | 17095 |
17164 /** @domName HTMLTableRowElement.vAlign; @docsEditable true */ | 17096 /// @domName HTMLTableRowElement.vAlign; @docsEditable true |
17165 String vAlign; | 17097 String vAlign; |
17166 | 17098 |
17167 /** @domName HTMLTableRowElement.deleteCell; @docsEditable true */ | 17099 /// @domName HTMLTableRowElement.deleteCell; @docsEditable true |
17168 void deleteCell(int index) native; | 17100 void deleteCell(int index) native; |
17169 | 17101 |
17170 /** @domName HTMLTableRowElement.insertCell; @docsEditable true */ | 17102 /// @domName HTMLTableRowElement.insertCell; @docsEditable true |
17171 Element insertCell(int index) native; | 17103 Element insertCell(int index) native; |
17172 } | 17104 } |
17173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17174 // for details. All rights reserved. Use of this source code is governed by a | 17106 // for details. All rights reserved. Use of this source code is governed by a |
17175 // BSD-style license that can be found in the LICENSE file. | 17107 // BSD-style license that can be found in the LICENSE file. |
17176 | 17108 |
17177 | 17109 |
17178 /// @domName HTMLTableSectionElement; @docsEditable true | 17110 /// @domName HTMLTableSectionElement; @docsEditable true |
17179 class TableSectionElement extends Element implements Element native "*HTMLTableS
ectionElement" { | 17111 class TableSectionElement extends Element implements Element native "*HTMLTableS
ectionElement" { |
17180 | 17112 |
17181 /** @domName HTMLTableSectionElement.align; @docsEditable true */ | 17113 /// @domName HTMLTableSectionElement.align; @docsEditable true |
17182 String align; | 17114 String align; |
17183 | 17115 |
17184 /** @domName HTMLTableSectionElement.ch; @docsEditable true */ | 17116 /// @domName HTMLTableSectionElement.ch; @docsEditable true |
17185 String ch; | 17117 String ch; |
17186 | 17118 |
17187 /** @domName HTMLTableSectionElement.chOff; @docsEditable true */ | 17119 /// @domName HTMLTableSectionElement.chOff; @docsEditable true |
17188 String chOff; | 17120 String chOff; |
17189 | 17121 |
17190 /** @domName HTMLTableSectionElement.rows; @docsEditable true */ | 17122 /// @domName HTMLTableSectionElement.rows; @docsEditable true |
17191 final HTMLCollection rows; | 17123 final HTMLCollection rows; |
17192 | 17124 |
17193 /** @domName HTMLTableSectionElement.vAlign; @docsEditable true */ | 17125 /// @domName HTMLTableSectionElement.vAlign; @docsEditable true |
17194 String vAlign; | 17126 String vAlign; |
17195 | 17127 |
17196 /** @domName HTMLTableSectionElement.deleteRow; @docsEditable true */ | 17128 /// @domName HTMLTableSectionElement.deleteRow; @docsEditable true |
17197 void deleteRow(int index) native; | 17129 void deleteRow(int index) native; |
17198 | 17130 |
17199 /** @domName HTMLTableSectionElement.insertRow; @docsEditable true */ | 17131 /// @domName HTMLTableSectionElement.insertRow; @docsEditable true |
17200 Element insertRow(int index) native; | 17132 Element insertRow(int index) native; |
17201 } | 17133 } |
17202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17203 // for details. All rights reserved. Use of this source code is governed by a | 17135 // for details. All rights reserved. Use of this source code is governed by a |
17204 // BSD-style license that can be found in the LICENSE file. | 17136 // BSD-style license that can be found in the LICENSE file. |
17205 | 17137 |
17206 // WARNING: Do not edit - generated code. | 17138 // WARNING: Do not edit - generated code. |
17207 | 17139 |
17208 | 17140 |
17209 class Text extends CharacterData native "*Text" { | 17141 class Text extends CharacterData native "*Text" { |
17210 factory Text(String data) => _TextFactoryProvider.createText(data); | 17142 factory Text(String data) => _TextFactoryProvider.createText(data); |
17211 | 17143 |
17212 /** @domName Text.wholeText; @docsEditable true */ | 17144 /// @domName Text.wholeText; @docsEditable true |
17213 final String wholeText; | 17145 final String wholeText; |
17214 | 17146 |
17215 /** @domName Text.replaceWholeText; @docsEditable true */ | 17147 /// @domName Text.replaceWholeText; @docsEditable true |
17216 Text replaceWholeText(String content) native; | 17148 Text replaceWholeText(String content) native; |
17217 | 17149 |
17218 /** @domName Text.splitText; @docsEditable true */ | 17150 /// @domName Text.splitText; @docsEditable true |
17219 Text splitText(int offset) native; | 17151 Text splitText(int offset) native; |
17220 | 17152 |
17221 } | 17153 } |
17222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17223 // for details. All rights reserved. Use of this source code is governed by a | 17155 // for details. All rights reserved. Use of this source code is governed by a |
17224 // BSD-style license that can be found in the LICENSE file. | 17156 // BSD-style license that can be found in the LICENSE file. |
17225 | 17157 |
17226 | 17158 |
17227 /// @domName HTMLTextAreaElement; @docsEditable true | 17159 /// @domName HTMLTextAreaElement; @docsEditable true |
17228 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl
ement" { | 17160 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl
ement" { |
17229 | 17161 |
17230 factory TextAreaElement() => document.$dom_createElement("textarea"); | 17162 factory TextAreaElement() => document.$dom_createElement("textarea"); |
17231 | 17163 |
17232 /** @domName HTMLTextAreaElement.autofocus; @docsEditable true */ | 17164 /// @domName HTMLTextAreaElement.autofocus; @docsEditable true |
17233 bool autofocus; | 17165 bool autofocus; |
17234 | 17166 |
17235 /** @domName HTMLTextAreaElement.cols; @docsEditable true */ | 17167 /// @domName HTMLTextAreaElement.cols; @docsEditable true |
17236 int cols; | 17168 int cols; |
17237 | 17169 |
17238 /** @domName HTMLTextAreaElement.defaultValue; @docsEditable true */ | 17170 /// @domName HTMLTextAreaElement.defaultValue; @docsEditable true |
17239 String defaultValue; | 17171 String defaultValue; |
17240 | 17172 |
17241 /** @domName HTMLTextAreaElement.dirName; @docsEditable true */ | 17173 /// @domName HTMLTextAreaElement.dirName; @docsEditable true |
17242 String dirName; | 17174 String dirName; |
17243 | 17175 |
17244 /** @domName HTMLTextAreaElement.disabled; @docsEditable true */ | 17176 /// @domName HTMLTextAreaElement.disabled; @docsEditable true |
17245 bool disabled; | 17177 bool disabled; |
17246 | 17178 |
17247 /** @domName HTMLTextAreaElement.form; @docsEditable true */ | 17179 /// @domName HTMLTextAreaElement.form; @docsEditable true |
17248 final FormElement form; | 17180 final FormElement form; |
17249 | 17181 |
17250 /** @domName HTMLTextAreaElement.labels; @docsEditable true */ | 17182 /// @domName HTMLTextAreaElement.labels; @docsEditable true |
17251 @Returns('_NodeList') @Creates('_NodeList') | 17183 @Returns('_NodeList') @Creates('_NodeList') |
17252 final List<Node> labels; | 17184 final List<Node> labels; |
17253 | 17185 |
17254 /** @domName HTMLTextAreaElement.maxLength; @docsEditable true */ | 17186 /// @domName HTMLTextAreaElement.maxLength; @docsEditable true |
17255 int maxLength; | 17187 int maxLength; |
17256 | 17188 |
17257 /** @domName HTMLTextAreaElement.name; @docsEditable true */ | 17189 /// @domName HTMLTextAreaElement.name; @docsEditable true |
17258 String name; | 17190 String name; |
17259 | 17191 |
17260 /** @domName HTMLTextAreaElement.placeholder; @docsEditable true */ | 17192 /// @domName HTMLTextAreaElement.placeholder; @docsEditable true |
17261 String placeholder; | 17193 String placeholder; |
17262 | 17194 |
17263 /** @domName HTMLTextAreaElement.readOnly; @docsEditable true */ | 17195 /// @domName HTMLTextAreaElement.readOnly; @docsEditable true |
17264 bool readOnly; | 17196 bool readOnly; |
17265 | 17197 |
17266 /** @domName HTMLTextAreaElement.required; @docsEditable true */ | 17198 /// @domName HTMLTextAreaElement.required; @docsEditable true |
17267 bool required; | 17199 bool required; |
17268 | 17200 |
17269 /** @domName HTMLTextAreaElement.rows; @docsEditable true */ | 17201 /// @domName HTMLTextAreaElement.rows; @docsEditable true |
17270 int rows; | 17202 int rows; |
17271 | 17203 |
17272 /** @domName HTMLTextAreaElement.selectionDirection; @docsEditable true */ | 17204 /// @domName HTMLTextAreaElement.selectionDirection; @docsEditable true |
17273 String selectionDirection; | 17205 String selectionDirection; |
17274 | 17206 |
17275 /** @domName HTMLTextAreaElement.selectionEnd; @docsEditable true */ | 17207 /// @domName HTMLTextAreaElement.selectionEnd; @docsEditable true |
17276 int selectionEnd; | 17208 int selectionEnd; |
17277 | 17209 |
17278 /** @domName HTMLTextAreaElement.selectionStart; @docsEditable true */ | 17210 /// @domName HTMLTextAreaElement.selectionStart; @docsEditable true |
17279 int selectionStart; | 17211 int selectionStart; |
17280 | 17212 |
17281 /** @domName HTMLTextAreaElement.textLength; @docsEditable true */ | 17213 /// @domName HTMLTextAreaElement.textLength; @docsEditable true |
17282 final int textLength; | 17214 final int textLength; |
17283 | 17215 |
17284 /** @domName HTMLTextAreaElement.type; @docsEditable true */ | 17216 /// @domName HTMLTextAreaElement.type; @docsEditable true |
17285 final String type; | 17217 final String type; |
17286 | 17218 |
17287 /** @domName HTMLTextAreaElement.validationMessage; @docsEditable true */ | 17219 /// @domName HTMLTextAreaElement.validationMessage; @docsEditable true |
17288 final String validationMessage; | 17220 final String validationMessage; |
17289 | 17221 |
17290 /** @domName HTMLTextAreaElement.validity; @docsEditable true */ | 17222 /// @domName HTMLTextAreaElement.validity; @docsEditable true |
17291 final ValidityState validity; | 17223 final ValidityState validity; |
17292 | 17224 |
17293 /** @domName HTMLTextAreaElement.value; @docsEditable true */ | 17225 /// @domName HTMLTextAreaElement.value; @docsEditable true |
17294 String value; | 17226 String value; |
17295 | 17227 |
17296 /** @domName HTMLTextAreaElement.willValidate; @docsEditable true */ | 17228 /// @domName HTMLTextAreaElement.willValidate; @docsEditable true |
17297 final bool willValidate; | 17229 final bool willValidate; |
17298 | 17230 |
17299 /** @domName HTMLTextAreaElement.wrap; @docsEditable true */ | 17231 /// @domName HTMLTextAreaElement.wrap; @docsEditable true |
17300 String wrap; | 17232 String wrap; |
17301 | 17233 |
17302 /** @domName HTMLTextAreaElement.checkValidity; @docsEditable true */ | 17234 /// @domName HTMLTextAreaElement.checkValidity; @docsEditable true |
17303 bool checkValidity() native; | 17235 bool checkValidity() native; |
17304 | 17236 |
17305 /** @domName HTMLTextAreaElement.select; @docsEditable true */ | 17237 /// @domName HTMLTextAreaElement.select; @docsEditable true |
17306 void select() native; | 17238 void select() native; |
17307 | 17239 |
17308 /** @domName HTMLTextAreaElement.setCustomValidity; @docsEditable true */ | 17240 /// @domName HTMLTextAreaElement.setCustomValidity; @docsEditable true |
17309 void setCustomValidity(String error) native; | 17241 void setCustomValidity(String error) native; |
17310 | 17242 |
17311 /** @domName HTMLTextAreaElement.setRangeText; @docsEditable true */ | 17243 /// @domName HTMLTextAreaElement.setRangeText; @docsEditable true |
17312 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; | 17244 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; |
17313 | 17245 |
17314 /** @domName HTMLTextAreaElement.setSelectionRange; @docsEditable true */ | 17246 /// @domName HTMLTextAreaElement.setSelectionRange; @docsEditable true |
17315 void setSelectionRange(int start, int end, [String direction]) native; | 17247 void setSelectionRange(int start, int end, [String direction]) native; |
17316 } | 17248 } |
17317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17318 // for details. All rights reserved. Use of this source code is governed by a | 17250 // for details. All rights reserved. Use of this source code is governed by a |
17319 // BSD-style license that can be found in the LICENSE file. | 17251 // BSD-style license that can be found in the LICENSE file. |
17320 | 17252 |
17321 | 17253 |
17322 /// @domName TextEvent; @docsEditable true | 17254 /// @domName TextEvent; @docsEditable true |
17323 class TextEvent extends UIEvent native "*TextEvent" { | 17255 class TextEvent extends UIEvent native "*TextEvent" { |
17324 | 17256 |
17325 /** @domName TextEvent.data; @docsEditable true */ | 17257 /// @domName TextEvent.data; @docsEditable true |
17326 final String data; | 17258 final String data; |
17327 | 17259 |
17328 /** @domName TextEvent.initTextEvent; @docsEditable true */ | 17260 /// @domName TextEvent.initTextEvent; @docsEditable true |
17329 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Loca
lWindow viewArg, String dataArg) native; | 17261 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Loca
lWindow viewArg, String dataArg) native; |
17330 } | 17262 } |
17331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17332 // for details. All rights reserved. Use of this source code is governed by a | 17264 // for details. All rights reserved. Use of this source code is governed by a |
17333 // BSD-style license that can be found in the LICENSE file. | 17265 // BSD-style license that can be found in the LICENSE file. |
17334 | 17266 |
17335 | 17267 |
17336 /// @domName TextMetrics; @docsEditable true | 17268 /// @domName TextMetrics; @docsEditable true |
17337 class TextMetrics native "*TextMetrics" { | 17269 class TextMetrics native "*TextMetrics" { |
17338 | 17270 |
17339 /** @domName TextMetrics.width; @docsEditable true */ | 17271 /// @domName TextMetrics.width; @docsEditable true |
17340 final num width; | 17272 final num width; |
17341 } | 17273 } |
17342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17343 // for details. All rights reserved. Use of this source code is governed by a | 17275 // for details. All rights reserved. Use of this source code is governed by a |
17344 // BSD-style license that can be found in the LICENSE file. | 17276 // BSD-style license that can be found in the LICENSE file. |
17345 | 17277 |
17346 | 17278 |
17347 /// @domName TextTrack; @docsEditable true | 17279 /// @domName TextTrack; @docsEditable true |
17348 class TextTrack extends EventTarget native "*TextTrack" { | 17280 class TextTrack extends EventTarget native "*TextTrack" { |
17349 | 17281 |
17350 /** | 17282 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
17351 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
17352 */ | |
17353 TextTrackEvents get on => | 17283 TextTrackEvents get on => |
17354 new TextTrackEvents(this); | 17284 new TextTrackEvents(this); |
17355 | 17285 |
17356 /** @domName TextTrack.activeCues; @docsEditable true */ | 17286 /// @domName TextTrack.activeCues; @docsEditable true |
17357 final TextTrackCueList activeCues; | 17287 final TextTrackCueList activeCues; |
17358 | 17288 |
17359 /** @domName TextTrack.cues; @docsEditable true */ | 17289 /// @domName TextTrack.cues; @docsEditable true |
17360 final TextTrackCueList cues; | 17290 final TextTrackCueList cues; |
17361 | 17291 |
17362 /** @domName TextTrack.kind; @docsEditable true */ | 17292 /// @domName TextTrack.kind; @docsEditable true |
17363 final String kind; | 17293 final String kind; |
17364 | 17294 |
17365 /** @domName TextTrack.label; @docsEditable true */ | 17295 /// @domName TextTrack.label; @docsEditable true |
17366 final String label; | 17296 final String label; |
17367 | 17297 |
17368 /** @domName TextTrack.language; @docsEditable true */ | 17298 /// @domName TextTrack.language; @docsEditable true |
17369 final String language; | 17299 final String language; |
17370 | 17300 |
17371 /** @domName TextTrack.mode; @docsEditable true */ | 17301 /// @domName TextTrack.mode; @docsEditable true |
17372 String mode; | 17302 String mode; |
17373 | 17303 |
17374 /** @domName TextTrack.addCue; @docsEditable true */ | 17304 /// @domName TextTrack.addCue; @docsEditable true |
17375 void addCue(TextTrackCue cue) native; | 17305 void addCue(TextTrackCue cue) native; |
17376 | 17306 |
17377 /** @domName TextTrack.addEventListener; @docsEditable true */ | 17307 /// @domName TextTrack.addEventListener; @docsEditable true |
17378 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 17308 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
17379 | 17309 |
17380 /** @domName TextTrack.dispatchEvent; @docsEditable true */ | 17310 /// @domName TextTrack.dispatchEvent; @docsEditable true |
17381 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 17311 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
17382 | 17312 |
17383 /** @domName TextTrack.removeCue; @docsEditable true */ | 17313 /// @domName TextTrack.removeCue; @docsEditable true |
17384 void removeCue(TextTrackCue cue) native; | 17314 void removeCue(TextTrackCue cue) native; |
17385 | 17315 |
17386 /** @domName TextTrack.removeEventListener; @docsEditable true */ | 17316 /// @domName TextTrack.removeEventListener; @docsEditable true |
17387 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 17317 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
17388 } | 17318 } |
17389 | 17319 |
17390 class TextTrackEvents extends Events { | 17320 class TextTrackEvents extends Events { |
17391 TextTrackEvents(EventTarget _ptr) : super(_ptr); | 17321 TextTrackEvents(EventTarget _ptr) : super(_ptr); |
17392 | 17322 |
17393 EventListenerList get cueChange => this['cuechange']; | 17323 EventListenerList get cueChange => this['cuechange']; |
17394 } | 17324 } |
17395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17396 // for details. All rights reserved. Use of this source code is governed by a | 17326 // for details. All rights reserved. Use of this source code is governed by a |
17397 // BSD-style license that can be found in the LICENSE file. | 17327 // BSD-style license that can be found in the LICENSE file. |
17398 | 17328 |
17399 | 17329 |
17400 /// @domName TextTrackCue; @docsEditable true | 17330 /// @domName TextTrackCue; @docsEditable true |
17401 class TextTrackCue extends EventTarget native "*TextTrackCue" { | 17331 class TextTrackCue extends EventTarget native "*TextTrackCue" { |
17402 | 17332 |
17403 factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCue
FactoryProvider.createTextTrackCue(startTime, endTime, text); | 17333 factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCue
FactoryProvider.createTextTrackCue(startTime, endTime, text); |
17404 | 17334 |
17405 /** | 17335 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
17406 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
17407 */ | |
17408 TextTrackCueEvents get on => | 17336 TextTrackCueEvents get on => |
17409 new TextTrackCueEvents(this); | 17337 new TextTrackCueEvents(this); |
17410 | 17338 |
17411 /** @domName TextTrackCue.align; @docsEditable true */ | 17339 /// @domName TextTrackCue.align; @docsEditable true |
17412 String align; | 17340 String align; |
17413 | 17341 |
17414 /** @domName TextTrackCue.endTime; @docsEditable true */ | 17342 /// @domName TextTrackCue.endTime; @docsEditable true |
17415 num endTime; | 17343 num endTime; |
17416 | 17344 |
17417 /** @domName TextTrackCue.id; @docsEditable true */ | 17345 /// @domName TextTrackCue.id; @docsEditable true |
17418 String id; | 17346 String id; |
17419 | 17347 |
17420 /** @domName TextTrackCue.line; @docsEditable true */ | 17348 /// @domName TextTrackCue.line; @docsEditable true |
17421 int line; | 17349 int line; |
17422 | 17350 |
17423 /** @domName TextTrackCue.pauseOnExit; @docsEditable true */ | 17351 /// @domName TextTrackCue.pauseOnExit; @docsEditable true |
17424 bool pauseOnExit; | 17352 bool pauseOnExit; |
17425 | 17353 |
17426 /** @domName TextTrackCue.position; @docsEditable true */ | 17354 /// @domName TextTrackCue.position; @docsEditable true |
17427 int position; | 17355 int position; |
17428 | 17356 |
17429 /** @domName TextTrackCue.size; @docsEditable true */ | 17357 /// @domName TextTrackCue.size; @docsEditable true |
17430 int size; | 17358 int size; |
17431 | 17359 |
17432 /** @domName TextTrackCue.snapToLines; @docsEditable true */ | 17360 /// @domName TextTrackCue.snapToLines; @docsEditable true |
17433 bool snapToLines; | 17361 bool snapToLines; |
17434 | 17362 |
17435 /** @domName TextTrackCue.startTime; @docsEditable true */ | 17363 /// @domName TextTrackCue.startTime; @docsEditable true |
17436 num startTime; | 17364 num startTime; |
17437 | 17365 |
17438 /** @domName TextTrackCue.text; @docsEditable true */ | 17366 /// @domName TextTrackCue.text; @docsEditable true |
17439 String text; | 17367 String text; |
17440 | 17368 |
17441 /** @domName TextTrackCue.track; @docsEditable true */ | 17369 /// @domName TextTrackCue.track; @docsEditable true |
17442 final TextTrack track; | 17370 final TextTrack track; |
17443 | 17371 |
17444 /** @domName TextTrackCue.vertical; @docsEditable true */ | 17372 /// @domName TextTrackCue.vertical; @docsEditable true |
17445 String vertical; | 17373 String vertical; |
17446 | 17374 |
17447 /** @domName TextTrackCue.addEventListener; @docsEditable true */ | 17375 /// @domName TextTrackCue.addEventListener; @docsEditable true |
17448 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 17376 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
17449 | 17377 |
17450 /** @domName TextTrackCue.dispatchEvent; @docsEditable true */ | 17378 /// @domName TextTrackCue.dispatchEvent; @docsEditable true |
17451 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 17379 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
17452 | 17380 |
17453 /** @domName TextTrackCue.getCueAsHTML; @docsEditable true */ | 17381 /// @domName TextTrackCue.getCueAsHTML; @docsEditable true |
17454 DocumentFragment getCueAsHTML() native; | 17382 DocumentFragment getCueAsHTML() native; |
17455 | 17383 |
17456 /** @domName TextTrackCue.removeEventListener; @docsEditable true */ | 17384 /// @domName TextTrackCue.removeEventListener; @docsEditable true |
17457 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 17385 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
17458 } | 17386 } |
17459 | 17387 |
17460 class TextTrackCueEvents extends Events { | 17388 class TextTrackCueEvents extends Events { |
17461 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); | 17389 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); |
17462 | 17390 |
17463 EventListenerList get enter => this['enter']; | 17391 EventListenerList get enter => this['enter']; |
17464 | 17392 |
17465 EventListenerList get exit => this['exit']; | 17393 EventListenerList get exit => this['exit']; |
17466 } | 17394 } |
17467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17468 // for details. All rights reserved. Use of this source code is governed by a | 17396 // for details. All rights reserved. Use of this source code is governed by a |
17469 // BSD-style license that can be found in the LICENSE file. | 17397 // BSD-style license that can be found in the LICENSE file. |
17470 | 17398 |
17471 | 17399 |
17472 /// @domName TextTrackCueList; @docsEditable true | 17400 /// @domName TextTrackCueList; @docsEditable true |
17473 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
native "*TextTrackCueList" { | 17401 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
native "*TextTrackCueList" { |
17474 | 17402 |
17475 /** @domName TextTrackCueList.length; @docsEditable true */ | 17403 /// @domName TextTrackCueList.length; @docsEditable true |
17476 final int length; | 17404 final int length; |
17477 | 17405 |
17478 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); | 17406 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); |
17479 | 17407 |
17480 void operator[]=(int index, TextTrackCue value) { | 17408 void operator[]=(int index, TextTrackCue value) { |
17481 throw new UnsupportedError("Cannot assign element of immutable List."); | 17409 throw new UnsupportedError("Cannot assign element of immutable List."); |
17482 } | 17410 } |
17483 // -- start List<TextTrackCue> mixins. | 17411 // -- start List<TextTrackCue> mixins. |
17484 // TextTrackCue is the element type. | 17412 // TextTrackCue is the element type. |
17485 | 17413 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17553 | 17481 |
17554 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { | 17482 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { |
17555 throw new UnsupportedError("Cannot insertRange on immutable List."); | 17483 throw new UnsupportedError("Cannot insertRange on immutable List."); |
17556 } | 17484 } |
17557 | 17485 |
17558 List<TextTrackCue> getRange(int start, int rangeLength) => | 17486 List<TextTrackCue> getRange(int start, int rangeLength) => |
17559 _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); | 17487 _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); |
17560 | 17488 |
17561 // -- end List<TextTrackCue> mixins. | 17489 // -- end List<TextTrackCue> mixins. |
17562 | 17490 |
17563 /** @domName TextTrackCueList.getCueById; @docsEditable true */ | 17491 /// @domName TextTrackCueList.getCueById; @docsEditable true |
17564 TextTrackCue getCueById(String id) native; | 17492 TextTrackCue getCueById(String id) native; |
17565 | 17493 |
17566 /** @domName TextTrackCueList.item; @docsEditable true */ | 17494 /// @domName TextTrackCueList.item; @docsEditable true |
17567 TextTrackCue item(int index) native; | 17495 TextTrackCue item(int index) native; |
17568 } | 17496 } |
17569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17570 // for details. All rights reserved. Use of this source code is governed by a | 17498 // for details. All rights reserved. Use of this source code is governed by a |
17571 // BSD-style license that can be found in the LICENSE file. | 17499 // BSD-style license that can be found in the LICENSE file. |
17572 | 17500 |
17573 | 17501 |
17574 /// @domName TextTrackList; @docsEditable true | 17502 /// @domName TextTrackList; @docsEditable true |
17575 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
ist<TextTrack> native "*TextTrackList" { | 17503 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
ist<TextTrack> native "*TextTrackList" { |
17576 | 17504 |
17577 /** | 17505 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
17578 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
17579 */ | |
17580 TextTrackListEvents get on => | 17506 TextTrackListEvents get on => |
17581 new TextTrackListEvents(this); | 17507 new TextTrackListEvents(this); |
17582 | 17508 |
17583 /** @domName TextTrackList.length; @docsEditable true */ | 17509 /// @domName TextTrackList.length; @docsEditable true |
17584 final int length; | 17510 final int length; |
17585 | 17511 |
17586 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); | 17512 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); |
17587 | 17513 |
17588 void operator[]=(int index, TextTrack value) { | 17514 void operator[]=(int index, TextTrack value) { |
17589 throw new UnsupportedError("Cannot assign element of immutable List."); | 17515 throw new UnsupportedError("Cannot assign element of immutable List."); |
17590 } | 17516 } |
17591 // -- start List<TextTrack> mixins. | 17517 // -- start List<TextTrack> mixins. |
17592 // TextTrack is the element type. | 17518 // TextTrack is the element type. |
17593 | 17519 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17661 | 17587 |
17662 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { | 17588 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { |
17663 throw new UnsupportedError("Cannot insertRange on immutable List."); | 17589 throw new UnsupportedError("Cannot insertRange on immutable List."); |
17664 } | 17590 } |
17665 | 17591 |
17666 List<TextTrack> getRange(int start, int rangeLength) => | 17592 List<TextTrack> getRange(int start, int rangeLength) => |
17667 _Lists.getRange(this, start, rangeLength, <TextTrack>[]); | 17593 _Lists.getRange(this, start, rangeLength, <TextTrack>[]); |
17668 | 17594 |
17669 // -- end List<TextTrack> mixins. | 17595 // -- end List<TextTrack> mixins. |
17670 | 17596 |
17671 /** @domName TextTrackList.addEventListener; @docsEditable true */ | 17597 /// @domName TextTrackList.addEventListener; @docsEditable true |
17672 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 17598 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
17673 | 17599 |
17674 /** @domName TextTrackList.dispatchEvent; @docsEditable true */ | 17600 /// @domName TextTrackList.dispatchEvent; @docsEditable true |
17675 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 17601 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
17676 | 17602 |
17677 /** @domName TextTrackList.item; @docsEditable true */ | 17603 /// @domName TextTrackList.item; @docsEditable true |
17678 TextTrack item(int index) native; | 17604 TextTrack item(int index) native; |
17679 | 17605 |
17680 /** @domName TextTrackList.removeEventListener; @docsEditable true */ | 17606 /// @domName TextTrackList.removeEventListener; @docsEditable true |
17681 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 17607 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
17682 } | 17608 } |
17683 | 17609 |
17684 class TextTrackListEvents extends Events { | 17610 class TextTrackListEvents extends Events { |
17685 TextTrackListEvents(EventTarget _ptr) : super(_ptr); | 17611 TextTrackListEvents(EventTarget _ptr) : super(_ptr); |
17686 | 17612 |
17687 EventListenerList get addTrack => this['addtrack']; | 17613 EventListenerList get addTrack => this['addtrack']; |
17688 } | 17614 } |
17689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17690 // for details. All rights reserved. Use of this source code is governed by a | 17616 // for details. All rights reserved. Use of this source code is governed by a |
17691 // BSD-style license that can be found in the LICENSE file. | 17617 // BSD-style license that can be found in the LICENSE file. |
17692 | 17618 |
17693 | 17619 |
17694 /// @domName TimeRanges; @docsEditable true | 17620 /// @domName TimeRanges; @docsEditable true |
17695 class TimeRanges native "*TimeRanges" { | 17621 class TimeRanges native "*TimeRanges" { |
17696 | 17622 |
17697 /** @domName TimeRanges.length; @docsEditable true */ | 17623 /// @domName TimeRanges.length; @docsEditable true |
17698 final int length; | 17624 final int length; |
17699 | 17625 |
17700 /** @domName TimeRanges.end; @docsEditable true */ | 17626 /// @domName TimeRanges.end; @docsEditable true |
17701 num end(int index) native; | 17627 num end(int index) native; |
17702 | 17628 |
17703 /** @domName TimeRanges.start; @docsEditable true */ | 17629 /// @domName TimeRanges.start; @docsEditable true |
17704 num start(int index) native; | 17630 num start(int index) native; |
17705 } | 17631 } |
17706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17707 // for details. All rights reserved. Use of this source code is governed by a | 17633 // for details. All rights reserved. Use of this source code is governed by a |
17708 // BSD-style license that can be found in the LICENSE file. | 17634 // BSD-style license that can be found in the LICENSE file. |
17709 | 17635 |
17710 // WARNING: Do not edit - generated code. | 17636 // WARNING: Do not edit - generated code. |
17711 | 17637 |
17712 | 17638 |
17713 typedef void TimeoutHandler(); | 17639 typedef void TimeoutHandler(); |
17714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17715 // for details. All rights reserved. Use of this source code is governed by a | 17641 // for details. All rights reserved. Use of this source code is governed by a |
17716 // BSD-style license that can be found in the LICENSE file. | 17642 // BSD-style license that can be found in the LICENSE file. |
17717 | 17643 |
17718 | 17644 |
17719 /// @domName HTMLTitleElement; @docsEditable true | 17645 /// @domName HTMLTitleElement; @docsEditable true |
17720 class TitleElement extends Element implements Element native "*HTMLTitleElement"
{ | 17646 class TitleElement extends Element implements Element native "*HTMLTitleElement"
{ |
17721 | 17647 |
17722 factory TitleElement() => document.$dom_createElement("title"); | 17648 factory TitleElement() => document.$dom_createElement("title"); |
17723 } | 17649 } |
17724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17725 // for details. All rights reserved. Use of this source code is governed by a | 17651 // for details. All rights reserved. Use of this source code is governed by a |
17726 // BSD-style license that can be found in the LICENSE file. | 17652 // BSD-style license that can be found in the LICENSE file. |
17727 | 17653 |
17728 | 17654 |
17729 /// @domName Touch; @docsEditable true | 17655 /// @domName Touch; @docsEditable true |
17730 class Touch native "*Touch" { | 17656 class Touch native "*Touch" { |
17731 | 17657 |
17732 /** @domName Touch.clientX; @docsEditable true */ | 17658 /// @domName Touch.clientX; @docsEditable true |
17733 final int clientX; | 17659 final int clientX; |
17734 | 17660 |
17735 /** @domName Touch.clientY; @docsEditable true */ | 17661 /// @domName Touch.clientY; @docsEditable true |
17736 final int clientY; | 17662 final int clientY; |
17737 | 17663 |
17738 /** @domName Touch.identifier; @docsEditable true */ | 17664 /// @domName Touch.identifier; @docsEditable true |
17739 final int identifier; | 17665 final int identifier; |
17740 | 17666 |
17741 /** @domName Touch.pageX; @docsEditable true */ | 17667 /// @domName Touch.pageX; @docsEditable true |
17742 final int pageX; | 17668 final int pageX; |
17743 | 17669 |
17744 /** @domName Touch.pageY; @docsEditable true */ | 17670 /// @domName Touch.pageY; @docsEditable true |
17745 final int pageY; | 17671 final int pageY; |
17746 | 17672 |
17747 /** @domName Touch.screenX; @docsEditable true */ | 17673 /// @domName Touch.screenX; @docsEditable true |
17748 final int screenX; | 17674 final int screenX; |
17749 | 17675 |
17750 /** @domName Touch.screenY; @docsEditable true */ | 17676 /// @domName Touch.screenY; @docsEditable true |
17751 final int screenY; | 17677 final int screenY; |
17752 | 17678 |
17753 /** @domName Touch.target; @docsEditable true */ | 17679 /// @domName Touch.target; @docsEditable true |
17754 EventTarget get target => _convertNativeToDart_EventTarget(this._target); | 17680 EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
17755 dynamic get _target => JS("dynamic", "#.target", this); | 17681 dynamic get _target => JS("dynamic", "#.target", this); |
17756 | 17682 |
17757 /** @domName Touch.webkitForce; @docsEditable true */ | 17683 /// @domName Touch.webkitForce; @docsEditable true |
17758 final num webkitForce; | 17684 final num webkitForce; |
17759 | 17685 |
17760 /** @domName Touch.webkitRadiusX; @docsEditable true */ | 17686 /// @domName Touch.webkitRadiusX; @docsEditable true |
17761 final int webkitRadiusX; | 17687 final int webkitRadiusX; |
17762 | 17688 |
17763 /** @domName Touch.webkitRadiusY; @docsEditable true */ | 17689 /// @domName Touch.webkitRadiusY; @docsEditable true |
17764 final int webkitRadiusY; | 17690 final int webkitRadiusY; |
17765 | 17691 |
17766 /** @domName Touch.webkitRotationAngle; @docsEditable true */ | 17692 /// @domName Touch.webkitRotationAngle; @docsEditable true |
17767 final num webkitRotationAngle; | 17693 final num webkitRotationAngle; |
17768 } | 17694 } |
17769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17770 // for details. All rights reserved. Use of this source code is governed by a | 17696 // for details. All rights reserved. Use of this source code is governed by a |
17771 // BSD-style license that can be found in the LICENSE file. | 17697 // BSD-style license that can be found in the LICENSE file. |
17772 | 17698 |
17773 | 17699 |
17774 /// @domName TouchEvent; @docsEditable true | 17700 /// @domName TouchEvent; @docsEditable true |
17775 class TouchEvent extends UIEvent native "*TouchEvent" { | 17701 class TouchEvent extends UIEvent native "*TouchEvent" { |
17776 | 17702 |
17777 /** @domName TouchEvent.altKey; @docsEditable true */ | 17703 /// @domName TouchEvent.altKey; @docsEditable true |
17778 final bool altKey; | 17704 final bool altKey; |
17779 | 17705 |
17780 /** @domName TouchEvent.changedTouches; @docsEditable true */ | 17706 /// @domName TouchEvent.changedTouches; @docsEditable true |
17781 final TouchList changedTouches; | 17707 final TouchList changedTouches; |
17782 | 17708 |
17783 /** @domName TouchEvent.ctrlKey; @docsEditable true */ | 17709 /// @domName TouchEvent.ctrlKey; @docsEditable true |
17784 final bool ctrlKey; | 17710 final bool ctrlKey; |
17785 | 17711 |
17786 /** @domName TouchEvent.metaKey; @docsEditable true */ | 17712 /// @domName TouchEvent.metaKey; @docsEditable true |
17787 final bool metaKey; | 17713 final bool metaKey; |
17788 | 17714 |
17789 /** @domName TouchEvent.shiftKey; @docsEditable true */ | 17715 /// @domName TouchEvent.shiftKey; @docsEditable true |
17790 final bool shiftKey; | 17716 final bool shiftKey; |
17791 | 17717 |
17792 /** @domName TouchEvent.targetTouches; @docsEditable true */ | 17718 /// @domName TouchEvent.targetTouches; @docsEditable true |
17793 final TouchList targetTouches; | 17719 final TouchList targetTouches; |
17794 | 17720 |
17795 /** @domName TouchEvent.touches; @docsEditable true */ | 17721 /// @domName TouchEvent.touches; @docsEditable true |
17796 final TouchList touches; | 17722 final TouchList touches; |
17797 | 17723 |
17798 /** @domName TouchEvent.initTouchEvent; @docsEditable true */ | 17724 /// @domName TouchEvent.initTouchEvent; @docsEditable true |
17799 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX
, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; | 17725 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX
, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; |
17800 } | 17726 } |
17801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17802 // for details. All rights reserved. Use of this source code is governed by a | 17728 // for details. All rights reserved. Use of this source code is governed by a |
17803 // BSD-style license that can be found in the LICENSE file. | 17729 // BSD-style license that can be found in the LICENSE file. |
17804 | 17730 |
17805 | 17731 |
17806 /// @domName TouchList; @docsEditable true | 17732 /// @domName TouchList; @docsEditable true |
17807 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
hList" { | 17733 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
hList" { |
17808 | 17734 |
17809 /** @domName TouchList.length; @docsEditable true */ | 17735 /// @domName TouchList.length; @docsEditable true |
17810 final int length; | 17736 final int length; |
17811 | 17737 |
17812 Touch operator[](int index) => JS("Touch", "#[#]", this, index); | 17738 Touch operator[](int index) => JS("Touch", "#[#]", this, index); |
17813 | 17739 |
17814 void operator[]=(int index, Touch value) { | 17740 void operator[]=(int index, Touch value) { |
17815 throw new UnsupportedError("Cannot assign element of immutable List."); | 17741 throw new UnsupportedError("Cannot assign element of immutable List."); |
17816 } | 17742 } |
17817 // -- start List<Touch> mixins. | 17743 // -- start List<Touch> mixins. |
17818 // Touch is the element type. | 17744 // Touch is the element type. |
17819 | 17745 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17887 | 17813 |
17888 void insertRange(int start, int rangeLength, [Touch initialValue]) { | 17814 void insertRange(int start, int rangeLength, [Touch initialValue]) { |
17889 throw new UnsupportedError("Cannot insertRange on immutable List."); | 17815 throw new UnsupportedError("Cannot insertRange on immutable List."); |
17890 } | 17816 } |
17891 | 17817 |
17892 List<Touch> getRange(int start, int rangeLength) => | 17818 List<Touch> getRange(int start, int rangeLength) => |
17893 _Lists.getRange(this, start, rangeLength, <Touch>[]); | 17819 _Lists.getRange(this, start, rangeLength, <Touch>[]); |
17894 | 17820 |
17895 // -- end List<Touch> mixins. | 17821 // -- end List<Touch> mixins. |
17896 | 17822 |
17897 /** @domName TouchList.item; @docsEditable true */ | 17823 /// @domName TouchList.item; @docsEditable true |
17898 Touch item(int index) native; | 17824 Touch item(int index) native; |
17899 } | 17825 } |
17900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17901 // for details. All rights reserved. Use of this source code is governed by a | 17827 // for details. All rights reserved. Use of this source code is governed by a |
17902 // BSD-style license that can be found in the LICENSE file. | 17828 // BSD-style license that can be found in the LICENSE file. |
17903 | 17829 |
17904 | 17830 |
17905 /// @domName HTMLTrackElement; @docsEditable true | 17831 /// @domName HTMLTrackElement; @docsEditable true |
17906 class TrackElement extends Element implements Element native "*HTMLTrackElement"
{ | 17832 class TrackElement extends Element implements Element native "*HTMLTrackElement"
{ |
17907 | 17833 |
17908 factory TrackElement() => document.$dom_createElement("track"); | 17834 factory TrackElement() => document.$dom_createElement("track"); |
17909 | 17835 |
17910 static const int ERROR = 3; | 17836 static const int ERROR = 3; |
17911 | 17837 |
17912 static const int LOADED = 2; | 17838 static const int LOADED = 2; |
17913 | 17839 |
17914 static const int LOADING = 1; | 17840 static const int LOADING = 1; |
17915 | 17841 |
17916 static const int NONE = 0; | 17842 static const int NONE = 0; |
17917 | 17843 |
17918 /** @domName HTMLTrackElement.defaultValue; @docsEditable true */ | 17844 /// @domName HTMLTrackElement.defaultValue; @docsEditable true |
17919 bool get defaultValue => JS("bool", "#.default", this); | 17845 bool get defaultValue => JS("bool", "#.default", this); |
17920 | 17846 |
17921 /** @domName HTMLTrackElement.defaultValue; @docsEditable true */ | 17847 /// @domName HTMLTrackElement.defaultValue; @docsEditable true |
17922 void set defaultValue(bool value) { | 17848 void set defaultValue(bool value) { |
17923 JS("void", "#.default = #", this, value); | 17849 JS("void", "#.default = #", this, value); |
17924 } | 17850 } |
17925 | 17851 |
17926 /** @domName HTMLTrackElement.kind; @docsEditable true */ | 17852 /// @domName HTMLTrackElement.kind; @docsEditable true |
17927 String kind; | 17853 String kind; |
17928 | 17854 |
17929 /** @domName HTMLTrackElement.label; @docsEditable true */ | 17855 /// @domName HTMLTrackElement.label; @docsEditable true |
17930 String label; | 17856 String label; |
17931 | 17857 |
17932 /** @domName HTMLTrackElement.readyState; @docsEditable true */ | 17858 /// @domName HTMLTrackElement.readyState; @docsEditable true |
17933 final int readyState; | 17859 final int readyState; |
17934 | 17860 |
17935 /** @domName HTMLTrackElement.src; @docsEditable true */ | 17861 /// @domName HTMLTrackElement.src; @docsEditable true |
17936 String src; | 17862 String src; |
17937 | 17863 |
17938 /** @domName HTMLTrackElement.srclang; @docsEditable true */ | 17864 /// @domName HTMLTrackElement.srclang; @docsEditable true |
17939 String srclang; | 17865 String srclang; |
17940 | 17866 |
17941 /** @domName HTMLTrackElement.track; @docsEditable true */ | 17867 /// @domName HTMLTrackElement.track; @docsEditable true |
17942 final TextTrack track; | 17868 final TextTrack track; |
17943 } | 17869 } |
17944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17870 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17945 // for details. All rights reserved. Use of this source code is governed by a | 17871 // for details. All rights reserved. Use of this source code is governed by a |
17946 // BSD-style license that can be found in the LICENSE file. | 17872 // BSD-style license that can be found in the LICENSE file. |
17947 | 17873 |
17948 | 17874 |
17949 /// @domName TrackEvent; @docsEditable true | 17875 /// @domName TrackEvent; @docsEditable true |
17950 class TrackEvent extends Event native "*TrackEvent" { | 17876 class TrackEvent extends Event native "*TrackEvent" { |
17951 | 17877 |
17952 /** @domName TrackEvent.track; @docsEditable true */ | 17878 /// @domName TrackEvent.track; @docsEditable true |
17953 final Object track; | 17879 final Object track; |
17954 } | 17880 } |
17955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17956 // for details. All rights reserved. Use of this source code is governed by a | 17882 // for details. All rights reserved. Use of this source code is governed by a |
17957 // BSD-style license that can be found in the LICENSE file. | 17883 // BSD-style license that can be found in the LICENSE file. |
17958 | 17884 |
17959 | 17885 |
17960 /// @domName WebKitTransitionEvent; @docsEditable true | 17886 /// @domName WebKitTransitionEvent; @docsEditable true |
17961 class TransitionEvent extends Event native "*WebKitTransitionEvent" { | 17887 class TransitionEvent extends Event native "*WebKitTransitionEvent" { |
17962 | 17888 |
17963 /** @domName WebKitTransitionEvent.elapsedTime; @docsEditable true */ | 17889 /// @domName WebKitTransitionEvent.elapsedTime; @docsEditable true |
17964 final num elapsedTime; | 17890 final num elapsedTime; |
17965 | 17891 |
17966 /** @domName WebKitTransitionEvent.propertyName; @docsEditable true */ | 17892 /// @domName WebKitTransitionEvent.propertyName; @docsEditable true |
17967 final String propertyName; | 17893 final String propertyName; |
17968 } | 17894 } |
17969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17970 // for details. All rights reserved. Use of this source code is governed by a | 17896 // for details. All rights reserved. Use of this source code is governed by a |
17971 // BSD-style license that can be found in the LICENSE file. | 17897 // BSD-style license that can be found in the LICENSE file. |
17972 | 17898 |
17973 | 17899 |
17974 /// @domName TreeWalker; @docsEditable true | 17900 /// @domName TreeWalker; @docsEditable true |
17975 class TreeWalker native "*TreeWalker" { | 17901 class TreeWalker native "*TreeWalker" { |
17976 | 17902 |
17977 /** @domName TreeWalker.currentNode; @docsEditable true */ | 17903 /// @domName TreeWalker.currentNode; @docsEditable true |
17978 Node currentNode; | 17904 Node currentNode; |
17979 | 17905 |
17980 /** @domName TreeWalker.expandEntityReferences; @docsEditable true */ | 17906 /// @domName TreeWalker.expandEntityReferences; @docsEditable true |
17981 final bool expandEntityReferences; | 17907 final bool expandEntityReferences; |
17982 | 17908 |
17983 /** @domName TreeWalker.filter; @docsEditable true */ | 17909 /// @domName TreeWalker.filter; @docsEditable true |
17984 final NodeFilter filter; | 17910 final NodeFilter filter; |
17985 | 17911 |
17986 /** @domName TreeWalker.root; @docsEditable true */ | 17912 /// @domName TreeWalker.root; @docsEditable true |
17987 final Node root; | 17913 final Node root; |
17988 | 17914 |
17989 /** @domName TreeWalker.whatToShow; @docsEditable true */ | 17915 /// @domName TreeWalker.whatToShow; @docsEditable true |
17990 final int whatToShow; | 17916 final int whatToShow; |
17991 | 17917 |
17992 /** @domName TreeWalker.firstChild; @docsEditable true */ | 17918 /// @domName TreeWalker.firstChild; @docsEditable true |
17993 Node firstChild() native; | 17919 Node firstChild() native; |
17994 | 17920 |
17995 /** @domName TreeWalker.lastChild; @docsEditable true */ | 17921 /// @domName TreeWalker.lastChild; @docsEditable true |
17996 Node lastChild() native; | 17922 Node lastChild() native; |
17997 | 17923 |
17998 /** @domName TreeWalker.nextNode; @docsEditable true */ | 17924 /// @domName TreeWalker.nextNode; @docsEditable true |
17999 Node nextNode() native; | 17925 Node nextNode() native; |
18000 | 17926 |
18001 /** @domName TreeWalker.nextSibling; @docsEditable true */ | 17927 /// @domName TreeWalker.nextSibling; @docsEditable true |
18002 Node nextSibling() native; | 17928 Node nextSibling() native; |
18003 | 17929 |
18004 /** @domName TreeWalker.parentNode; @docsEditable true */ | 17930 /// @domName TreeWalker.parentNode; @docsEditable true |
18005 Node parentNode() native; | 17931 Node parentNode() native; |
18006 | 17932 |
18007 /** @domName TreeWalker.previousNode; @docsEditable true */ | 17933 /// @domName TreeWalker.previousNode; @docsEditable true |
18008 Node previousNode() native; | 17934 Node previousNode() native; |
18009 | 17935 |
18010 /** @domName TreeWalker.previousSibling; @docsEditable true */ | 17936 /// @domName TreeWalker.previousSibling; @docsEditable true |
18011 Node previousSibling() native; | 17937 Node previousSibling() native; |
18012 } | 17938 } |
18013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18014 // for details. All rights reserved. Use of this source code is governed by a | 17940 // for details. All rights reserved. Use of this source code is governed by a |
18015 // BSD-style license that can be found in the LICENSE file. | 17941 // BSD-style license that can be found in the LICENSE file. |
18016 | 17942 |
18017 | 17943 |
18018 /// @domName UIEvent; @docsEditable true | 17944 /// @domName UIEvent; @docsEditable true |
18019 class UIEvent extends Event native "*UIEvent" { | 17945 class UIEvent extends Event native "*UIEvent" { |
18020 | 17946 |
18021 /** @domName UIEvent.charCode; @docsEditable true */ | 17947 /// @domName UIEvent.charCode; @docsEditable true |
18022 final int charCode; | 17948 final int charCode; |
18023 | 17949 |
18024 /** @domName UIEvent.detail; @docsEditable true */ | 17950 /// @domName UIEvent.detail; @docsEditable true |
18025 final int detail; | 17951 final int detail; |
18026 | 17952 |
18027 /** @domName UIEvent.keyCode; @docsEditable true */ | 17953 /// @domName UIEvent.keyCode; @docsEditable true |
18028 final int keyCode; | 17954 final int keyCode; |
18029 | 17955 |
18030 /** @domName UIEvent.layerX; @docsEditable true */ | 17956 /// @domName UIEvent.layerX; @docsEditable true |
18031 final int layerX; | 17957 final int layerX; |
18032 | 17958 |
18033 /** @domName UIEvent.layerY; @docsEditable true */ | 17959 /// @domName UIEvent.layerY; @docsEditable true |
18034 final int layerY; | 17960 final int layerY; |
18035 | 17961 |
18036 /** @domName UIEvent.pageX; @docsEditable true */ | 17962 /// @domName UIEvent.pageX; @docsEditable true |
18037 final int pageX; | 17963 final int pageX; |
18038 | 17964 |
18039 /** @domName UIEvent.pageY; @docsEditable true */ | 17965 /// @domName UIEvent.pageY; @docsEditable true |
18040 final int pageY; | 17966 final int pageY; |
18041 | 17967 |
18042 /** @domName UIEvent.view; @docsEditable true */ | 17968 /// @domName UIEvent.view; @docsEditable true |
18043 Window get view => _convertNativeToDart_Window(this._view); | 17969 Window get view => _convertNativeToDart_Window(this._view); |
18044 dynamic get _view => JS("dynamic", "#.view", this); | 17970 dynamic get _view => JS("dynamic", "#.view", this); |
18045 | 17971 |
18046 /** @domName UIEvent.which; @docsEditable true */ | 17972 /// @domName UIEvent.which; @docsEditable true |
18047 final int which; | 17973 final int which; |
18048 | 17974 |
18049 /** @domName UIEvent.initUIEvent; @docsEditable true */ | 17975 /// @domName UIEvent.initUIEvent; @docsEditable true |
18050 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie
w, int detail) native; | 17976 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie
w, int detail) native; |
18051 } | 17977 } |
18052 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18053 // for details. All rights reserved. Use of this source code is governed by a | 17979 // for details. All rights reserved. Use of this source code is governed by a |
18054 // BSD-style license that can be found in the LICENSE file. | 17980 // BSD-style license that can be found in the LICENSE file. |
18055 | 17981 |
18056 | 17982 |
18057 /// @domName HTMLUListElement; @docsEditable true | 17983 /// @domName HTMLUListElement; @docsEditable true |
18058 class UListElement extends Element implements Element native "*HTMLUListElement"
{ | 17984 class UListElement extends Element implements Element native "*HTMLUListElement"
{ |
18059 | 17985 |
18060 factory UListElement() => document.$dom_createElement("ul"); | 17986 factory UListElement() => document.$dom_createElement("ul"); |
18061 | 17987 |
18062 /** @domName HTMLUListElement.compact; @docsEditable true */ | 17988 /// @domName HTMLUListElement.compact; @docsEditable true |
18063 bool compact; | 17989 bool compact; |
18064 | 17990 |
18065 /** @domName HTMLUListElement.type; @docsEditable true */ | 17991 /// @domName HTMLUListElement.type; @docsEditable true |
18066 String type; | 17992 String type; |
18067 } | 17993 } |
18068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18069 // for details. All rights reserved. Use of this source code is governed by a | 17995 // for details. All rights reserved. Use of this source code is governed by a |
18070 // BSD-style license that can be found in the LICENSE file. | 17996 // BSD-style license that can be found in the LICENSE file. |
18071 | 17997 |
18072 | 17998 |
18073 /// @domName Uint16Array; @docsEditable true | 17999 /// @domName Uint16Array; @docsEditable true |
18074 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint16Array" { | 18000 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint16Array" { |
18075 | 18001 |
18076 factory Uint16Array(int length) => | 18002 factory Uint16Array(int length) => |
18077 _TypedArrayFactoryProvider.createUint16Array(length); | 18003 _TypedArrayFactoryProvider.createUint16Array(length); |
18078 | 18004 |
18079 factory Uint16Array.fromList(List<int> list) => | 18005 factory Uint16Array.fromList(List<int> list) => |
18080 _TypedArrayFactoryProvider.createUint16Array_fromList(list); | 18006 _TypedArrayFactoryProvider.createUint16Array_fromList(list); |
18081 | 18007 |
18082 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => | 18008 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => |
18083 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset,
length); | 18009 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset,
length); |
18084 | 18010 |
18085 static const int BYTES_PER_ELEMENT = 2; | 18011 static const int BYTES_PER_ELEMENT = 2; |
18086 | 18012 |
18087 /** @domName Uint16Array.length; @docsEditable true */ | 18013 /// @domName Uint16Array.length; @docsEditable true |
18088 final int length; | 18014 final int length; |
18089 | 18015 |
18090 int operator[](int index) => JS("int", "#[#]", this, index); | 18016 int operator[](int index) => JS("int", "#[#]", this, index); |
18091 | 18017 |
18092 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 18018 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
18093 // int is the element type. | 18019 // int is the element type. |
18094 | 18020 |
18095 // From Iterable<int>: | 18021 // From Iterable<int>: |
18096 | 18022 |
18097 Iterator<int> iterator() { | 18023 Iterator<int> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18162 | 18088 |
18163 void insertRange(int start, int rangeLength, [int initialValue]) { | 18089 void insertRange(int start, int rangeLength, [int initialValue]) { |
18164 throw new UnsupportedError("Cannot insertRange on immutable List."); | 18090 throw new UnsupportedError("Cannot insertRange on immutable List."); |
18165 } | 18091 } |
18166 | 18092 |
18167 List<int> getRange(int start, int rangeLength) => | 18093 List<int> getRange(int start, int rangeLength) => |
18168 _Lists.getRange(this, start, rangeLength, <int>[]); | 18094 _Lists.getRange(this, start, rangeLength, <int>[]); |
18169 | 18095 |
18170 // -- end List<int> mixins. | 18096 // -- end List<int> mixins. |
18171 | 18097 |
18172 /** @domName Uint16Array.setElements; @docsEditable true */ | 18098 /// @domName Uint16Array.setElements; @docsEditable true |
18173 void setElements(Object array, [int offset]) native "set"; | 18099 void setElements(Object array, [int offset]) native "set"; |
18174 | 18100 |
18175 /** @domName Uint16Array.subarray; @docsEditable true */ | 18101 /// @domName Uint16Array.subarray; @docsEditable true |
18176 Uint16Array subarray(int start, [int end]) native; | 18102 Uint16Array subarray(int start, [int end]) native; |
18177 } | 18103 } |
18178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18179 // for details. All rights reserved. Use of this source code is governed by a | 18105 // for details. All rights reserved. Use of this source code is governed by a |
18180 // BSD-style license that can be found in the LICENSE file. | 18106 // BSD-style license that can be found in the LICENSE file. |
18181 | 18107 |
18182 | 18108 |
18183 /// @domName Uint32Array; @docsEditable true | 18109 /// @domName Uint32Array; @docsEditable true |
18184 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint32Array" { | 18110 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint32Array" { |
18185 | 18111 |
18186 factory Uint32Array(int length) => | 18112 factory Uint32Array(int length) => |
18187 _TypedArrayFactoryProvider.createUint32Array(length); | 18113 _TypedArrayFactoryProvider.createUint32Array(length); |
18188 | 18114 |
18189 factory Uint32Array.fromList(List<int> list) => | 18115 factory Uint32Array.fromList(List<int> list) => |
18190 _TypedArrayFactoryProvider.createUint32Array_fromList(list); | 18116 _TypedArrayFactoryProvider.createUint32Array_fromList(list); |
18191 | 18117 |
18192 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => | 18118 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => |
18193 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset,
length); | 18119 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset,
length); |
18194 | 18120 |
18195 static const int BYTES_PER_ELEMENT = 4; | 18121 static const int BYTES_PER_ELEMENT = 4; |
18196 | 18122 |
18197 /** @domName Uint32Array.length; @docsEditable true */ | 18123 /// @domName Uint32Array.length; @docsEditable true |
18198 final int length; | 18124 final int length; |
18199 | 18125 |
18200 int operator[](int index) => JS("int", "#[#]", this, index); | 18126 int operator[](int index) => JS("int", "#[#]", this, index); |
18201 | 18127 |
18202 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 18128 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
18203 // int is the element type. | 18129 // int is the element type. |
18204 | 18130 |
18205 // From Iterable<int>: | 18131 // From Iterable<int>: |
18206 | 18132 |
18207 Iterator<int> iterator() { | 18133 Iterator<int> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18272 | 18198 |
18273 void insertRange(int start, int rangeLength, [int initialValue]) { | 18199 void insertRange(int start, int rangeLength, [int initialValue]) { |
18274 throw new UnsupportedError("Cannot insertRange on immutable List."); | 18200 throw new UnsupportedError("Cannot insertRange on immutable List."); |
18275 } | 18201 } |
18276 | 18202 |
18277 List<int> getRange(int start, int rangeLength) => | 18203 List<int> getRange(int start, int rangeLength) => |
18278 _Lists.getRange(this, start, rangeLength, <int>[]); | 18204 _Lists.getRange(this, start, rangeLength, <int>[]); |
18279 | 18205 |
18280 // -- end List<int> mixins. | 18206 // -- end List<int> mixins. |
18281 | 18207 |
18282 /** @domName Uint32Array.setElements; @docsEditable true */ | 18208 /// @domName Uint32Array.setElements; @docsEditable true |
18283 void setElements(Object array, [int offset]) native "set"; | 18209 void setElements(Object array, [int offset]) native "set"; |
18284 | 18210 |
18285 /** @domName Uint32Array.subarray; @docsEditable true */ | 18211 /// @domName Uint32Array.subarray; @docsEditable true |
18286 Uint32Array subarray(int start, [int end]) native; | 18212 Uint32Array subarray(int start, [int end]) native; |
18287 } | 18213 } |
18288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18289 // for details. All rights reserved. Use of this source code is governed by a | 18215 // for details. All rights reserved. Use of this source code is governed by a |
18290 // BSD-style license that can be found in the LICENSE file. | 18216 // BSD-style license that can be found in the LICENSE file. |
18291 | 18217 |
18292 | 18218 |
18293 /// @domName Uint8Array; @docsEditable true | 18219 /// @domName Uint8Array; @docsEditable true |
18294 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint8Array" { | 18220 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint8Array" { |
18295 | 18221 |
18296 factory Uint8Array(int length) => | 18222 factory Uint8Array(int length) => |
18297 _TypedArrayFactoryProvider.createUint8Array(length); | 18223 _TypedArrayFactoryProvider.createUint8Array(length); |
18298 | 18224 |
18299 factory Uint8Array.fromList(List<int> list) => | 18225 factory Uint8Array.fromList(List<int> list) => |
18300 _TypedArrayFactoryProvider.createUint8Array_fromList(list); | 18226 _TypedArrayFactoryProvider.createUint8Array_fromList(list); |
18301 | 18227 |
18302 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => | 18228 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => |
18303 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l
ength); | 18229 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l
ength); |
18304 | 18230 |
18305 static const int BYTES_PER_ELEMENT = 1; | 18231 static const int BYTES_PER_ELEMENT = 1; |
18306 | 18232 |
18307 /** @domName Uint8Array.length; @docsEditable true */ | 18233 /// @domName Uint8Array.length; @docsEditable true |
18308 final int length; | 18234 final int length; |
18309 | 18235 |
18310 int operator[](int index) => JS("int", "#[#]", this, index); | 18236 int operator[](int index) => JS("int", "#[#]", this, index); |
18311 | 18237 |
18312 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 18238 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
18313 // int is the element type. | 18239 // int is the element type. |
18314 | 18240 |
18315 // From Iterable<int>: | 18241 // From Iterable<int>: |
18316 | 18242 |
18317 Iterator<int> iterator() { | 18243 Iterator<int> iterator() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18382 | 18308 |
18383 void insertRange(int start, int rangeLength, [int initialValue]) { | 18309 void insertRange(int start, int rangeLength, [int initialValue]) { |
18384 throw new UnsupportedError("Cannot insertRange on immutable List."); | 18310 throw new UnsupportedError("Cannot insertRange on immutable List."); |
18385 } | 18311 } |
18386 | 18312 |
18387 List<int> getRange(int start, int rangeLength) => | 18313 List<int> getRange(int start, int rangeLength) => |
18388 _Lists.getRange(this, start, rangeLength, <int>[]); | 18314 _Lists.getRange(this, start, rangeLength, <int>[]); |
18389 | 18315 |
18390 // -- end List<int> mixins. | 18316 // -- end List<int> mixins. |
18391 | 18317 |
18392 /** @domName Uint8Array.setElements; @docsEditable true */ | 18318 /// @domName Uint8Array.setElements; @docsEditable true |
18393 void setElements(Object array, [int offset]) native "set"; | 18319 void setElements(Object array, [int offset]) native "set"; |
18394 | 18320 |
18395 /** @domName Uint8Array.subarray; @docsEditable true */ | 18321 /// @domName Uint8Array.subarray; @docsEditable true |
18396 Uint8Array subarray(int start, [int end]) native; | 18322 Uint8Array subarray(int start, [int end]) native; |
18397 } | 18323 } |
18398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18399 // for details. All rights reserved. Use of this source code is governed by a | 18325 // for details. All rights reserved. Use of this source code is governed by a |
18400 // BSD-style license that can be found in the LICENSE file. | 18326 // BSD-style license that can be found in the LICENSE file. |
18401 | 18327 |
18402 | 18328 |
18403 /// @domName Uint8ClampedArray; @docsEditable true | 18329 /// @domName Uint8ClampedArray; @docsEditable true |
18404 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { | 18330 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { |
18405 | 18331 |
18406 factory Uint8ClampedArray(int length) => | 18332 factory Uint8ClampedArray(int length) => |
18407 _TypedArrayFactoryProvider.createUint8ClampedArray(length); | 18333 _TypedArrayFactoryProvider.createUint8ClampedArray(length); |
18408 | 18334 |
18409 factory Uint8ClampedArray.fromList(List<int> list) => | 18335 factory Uint8ClampedArray.fromList(List<int> list) => |
18410 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); | 18336 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); |
18411 | 18337 |
18412 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int
length]) => | 18338 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int
length]) => |
18413 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf
fset, length); | 18339 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf
fset, length); |
18414 | 18340 |
18415 // Use implementation from Uint8Array. | 18341 // Use implementation from Uint8Array. |
18416 // final int length; | 18342 // final int length; |
18417 | 18343 |
18418 /** @domName Uint8ClampedArray.setElements; @docsEditable true */ | 18344 /// @domName Uint8ClampedArray.setElements; @docsEditable true |
18419 void setElements(Object array, [int offset]) native "set"; | 18345 void setElements(Object array, [int offset]) native "set"; |
18420 | 18346 |
18421 /** @domName Uint8ClampedArray.subarray; @docsEditable true */ | 18347 /// @domName Uint8ClampedArray.subarray; @docsEditable true |
18422 Uint8ClampedArray subarray(int start, [int end]) native; | 18348 Uint8ClampedArray subarray(int start, [int end]) native; |
18423 } | 18349 } |
18424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18425 // for details. All rights reserved. Use of this source code is governed by a | 18351 // for details. All rights reserved. Use of this source code is governed by a |
18426 // BSD-style license that can be found in the LICENSE file. | 18352 // BSD-style license that can be found in the LICENSE file. |
18427 | 18353 |
18428 | 18354 |
18429 /// @domName HTMLUnknownElement; @docsEditable true | 18355 /// @domName HTMLUnknownElement; @docsEditable true |
18430 class UnknownElement extends Element implements Element native "*HTMLUnknownElem
ent" { | 18356 class UnknownElement extends Element implements Element native "*HTMLUnknownElem
ent" { |
18431 } | 18357 } |
(...skipping 15 matching lines...) Expand all Loading... |
18447 | 18373 |
18448 } | 18374 } |
18449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18450 // for details. All rights reserved. Use of this source code is governed by a | 18376 // for details. All rights reserved. Use of this source code is governed by a |
18451 // BSD-style license that can be found in the LICENSE file. | 18377 // BSD-style license that can be found in the LICENSE file. |
18452 | 18378 |
18453 | 18379 |
18454 /// @domName ValidityState; @docsEditable true | 18380 /// @domName ValidityState; @docsEditable true |
18455 class ValidityState native "*ValidityState" { | 18381 class ValidityState native "*ValidityState" { |
18456 | 18382 |
18457 /** @domName ValidityState.customError; @docsEditable true */ | 18383 /// @domName ValidityState.customError; @docsEditable true |
18458 final bool customError; | 18384 final bool customError; |
18459 | 18385 |
18460 /** @domName ValidityState.patternMismatch; @docsEditable true */ | 18386 /// @domName ValidityState.patternMismatch; @docsEditable true |
18461 final bool patternMismatch; | 18387 final bool patternMismatch; |
18462 | 18388 |
18463 /** @domName ValidityState.rangeOverflow; @docsEditable true */ | 18389 /// @domName ValidityState.rangeOverflow; @docsEditable true |
18464 final bool rangeOverflow; | 18390 final bool rangeOverflow; |
18465 | 18391 |
18466 /** @domName ValidityState.rangeUnderflow; @docsEditable true */ | 18392 /// @domName ValidityState.rangeUnderflow; @docsEditable true |
18467 final bool rangeUnderflow; | 18393 final bool rangeUnderflow; |
18468 | 18394 |
18469 /** @domName ValidityState.stepMismatch; @docsEditable true */ | 18395 /// @domName ValidityState.stepMismatch; @docsEditable true |
18470 final bool stepMismatch; | 18396 final bool stepMismatch; |
18471 | 18397 |
18472 /** @domName ValidityState.tooLong; @docsEditable true */ | 18398 /// @domName ValidityState.tooLong; @docsEditable true |
18473 final bool tooLong; | 18399 final bool tooLong; |
18474 | 18400 |
18475 /** @domName ValidityState.typeMismatch; @docsEditable true */ | 18401 /// @domName ValidityState.typeMismatch; @docsEditable true |
18476 final bool typeMismatch; | 18402 final bool typeMismatch; |
18477 | 18403 |
18478 /** @domName ValidityState.valid; @docsEditable true */ | 18404 /// @domName ValidityState.valid; @docsEditable true |
18479 final bool valid; | 18405 final bool valid; |
18480 | 18406 |
18481 /** @domName ValidityState.valueMissing; @docsEditable true */ | 18407 /// @domName ValidityState.valueMissing; @docsEditable true |
18482 final bool valueMissing; | 18408 final bool valueMissing; |
18483 } | 18409 } |
18484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18485 // for details. All rights reserved. Use of this source code is governed by a | 18411 // for details. All rights reserved. Use of this source code is governed by a |
18486 // BSD-style license that can be found in the LICENSE file. | 18412 // BSD-style license that can be found in the LICENSE file. |
18487 | 18413 |
18488 | 18414 |
18489 /// @domName HTMLVideoElement; @docsEditable true | 18415 /// @domName HTMLVideoElement; @docsEditable true |
18490 class VideoElement extends MediaElement native "*HTMLVideoElement" { | 18416 class VideoElement extends MediaElement native "*HTMLVideoElement" { |
18491 | 18417 |
18492 factory VideoElement() => document.$dom_createElement("video"); | 18418 factory VideoElement() => document.$dom_createElement("video"); |
18493 | 18419 |
18494 /** @domName HTMLVideoElement.height; @docsEditable true */ | 18420 /// @domName HTMLVideoElement.height; @docsEditable true |
18495 int height; | 18421 int height; |
18496 | 18422 |
18497 /** @domName HTMLVideoElement.poster; @docsEditable true */ | 18423 /// @domName HTMLVideoElement.poster; @docsEditable true |
18498 String poster; | 18424 String poster; |
18499 | 18425 |
18500 /** @domName HTMLVideoElement.videoHeight; @docsEditable true */ | 18426 /// @domName HTMLVideoElement.videoHeight; @docsEditable true |
18501 final int videoHeight; | 18427 final int videoHeight; |
18502 | 18428 |
18503 /** @domName HTMLVideoElement.videoWidth; @docsEditable true */ | 18429 /// @domName HTMLVideoElement.videoWidth; @docsEditable true |
18504 final int videoWidth; | 18430 final int videoWidth; |
18505 | 18431 |
18506 /** @domName HTMLVideoElement.webkitDecodedFrameCount; @docsEditable true */ | 18432 /// @domName HTMLVideoElement.webkitDecodedFrameCount; @docsEditable true |
18507 final int webkitDecodedFrameCount; | 18433 final int webkitDecodedFrameCount; |
18508 | 18434 |
18509 /** @domName HTMLVideoElement.webkitDisplayingFullscreen; @docsEditable true *
/ | 18435 /// @domName HTMLVideoElement.webkitDisplayingFullscreen; @docsEditable true |
18510 final bool webkitDisplayingFullscreen; | 18436 final bool webkitDisplayingFullscreen; |
18511 | 18437 |
18512 /** @domName HTMLVideoElement.webkitDroppedFrameCount; @docsEditable true */ | 18438 /// @domName HTMLVideoElement.webkitDroppedFrameCount; @docsEditable true |
18513 final int webkitDroppedFrameCount; | 18439 final int webkitDroppedFrameCount; |
18514 | 18440 |
18515 /** @domName HTMLVideoElement.webkitSupportsFullscreen; @docsEditable true */ | 18441 /// @domName HTMLVideoElement.webkitSupportsFullscreen; @docsEditable true |
18516 final bool webkitSupportsFullscreen; | 18442 final bool webkitSupportsFullscreen; |
18517 | 18443 |
18518 /** @domName HTMLVideoElement.width; @docsEditable true */ | 18444 /// @domName HTMLVideoElement.width; @docsEditable true |
18519 int width; | 18445 int width; |
18520 | 18446 |
18521 /** @domName HTMLVideoElement.webkitEnterFullScreen; @docsEditable true */ | 18447 /// @domName HTMLVideoElement.webkitEnterFullScreen; @docsEditable true |
18522 void webkitEnterFullScreen() native; | 18448 void webkitEnterFullScreen() native; |
18523 | 18449 |
18524 /** @domName HTMLVideoElement.webkitEnterFullscreen; @docsEditable true */ | 18450 /// @domName HTMLVideoElement.webkitEnterFullscreen; @docsEditable true |
18525 void webkitEnterFullscreen() native; | 18451 void webkitEnterFullscreen() native; |
18526 | 18452 |
18527 /** @domName HTMLVideoElement.webkitExitFullScreen; @docsEditable true */ | 18453 /// @domName HTMLVideoElement.webkitExitFullScreen; @docsEditable true |
18528 void webkitExitFullScreen() native; | 18454 void webkitExitFullScreen() native; |
18529 | 18455 |
18530 /** @domName HTMLVideoElement.webkitExitFullscreen; @docsEditable true */ | 18456 /// @domName HTMLVideoElement.webkitExitFullscreen; @docsEditable true |
18531 void webkitExitFullscreen() native; | 18457 void webkitExitFullscreen() native; |
18532 } | 18458 } |
18533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18534 // for details. All rights reserved. Use of this source code is governed by a | 18460 // for details. All rights reserved. Use of this source code is governed by a |
18535 // BSD-style license that can be found in the LICENSE file. | 18461 // BSD-style license that can be found in the LICENSE file. |
18536 | 18462 |
18537 // WARNING: Do not edit - generated code. | 18463 // WARNING: Do not edit - generated code. |
18538 | 18464 |
18539 | 18465 |
18540 typedef void VoidCallback(); | 18466 typedef void VoidCallback(); |
18541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18542 // for details. All rights reserved. Use of this source code is governed by a | 18468 // for details. All rights reserved. Use of this source code is governed by a |
18543 // BSD-style license that can be found in the LICENSE file. | 18469 // BSD-style license that can be found in the LICENSE file. |
18544 | 18470 |
18545 | 18471 |
18546 /// @domName WaveShaperNode; @docsEditable true | 18472 /// @domName WaveShaperNode; @docsEditable true |
18547 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { | 18473 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { |
18548 | 18474 |
18549 /** @domName WaveShaperNode.curve; @docsEditable true */ | 18475 /// @domName WaveShaperNode.curve; @docsEditable true |
18550 Float32Array curve; | 18476 Float32Array curve; |
18551 } | 18477 } |
18552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18553 // for details. All rights reserved. Use of this source code is governed by a | 18479 // for details. All rights reserved. Use of this source code is governed by a |
18554 // BSD-style license that can be found in the LICENSE file. | 18480 // BSD-style license that can be found in the LICENSE file. |
18555 | 18481 |
18556 | 18482 |
18557 /// @domName WaveTable; @docsEditable true | 18483 /// @domName WaveTable; @docsEditable true |
18558 class WaveTable native "*WaveTable" { | 18484 class WaveTable native "*WaveTable" { |
18559 } | 18485 } |
18560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18561 // for details. All rights reserved. Use of this source code is governed by a | 18487 // for details. All rights reserved. Use of this source code is governed by a |
18562 // BSD-style license that can be found in the LICENSE file. | 18488 // BSD-style license that can be found in the LICENSE file. |
18563 | 18489 |
18564 | 18490 |
18565 /// @domName WebGLActiveInfo; @docsEditable true | 18491 /// @domName WebGLActiveInfo; @docsEditable true |
18566 class WebGLActiveInfo native "*WebGLActiveInfo" { | 18492 class WebGLActiveInfo native "*WebGLActiveInfo" { |
18567 | 18493 |
18568 /** @domName WebGLActiveInfo.name; @docsEditable true */ | 18494 /// @domName WebGLActiveInfo.name; @docsEditable true |
18569 final String name; | 18495 final String name; |
18570 | 18496 |
18571 /** @domName WebGLActiveInfo.size; @docsEditable true */ | 18497 /// @domName WebGLActiveInfo.size; @docsEditable true |
18572 final int size; | 18498 final int size; |
18573 | 18499 |
18574 /** @domName WebGLActiveInfo.type; @docsEditable true */ | 18500 /// @domName WebGLActiveInfo.type; @docsEditable true |
18575 final int type; | 18501 final int type; |
18576 } | 18502 } |
18577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18578 // for details. All rights reserved. Use of this source code is governed by a | 18504 // for details. All rights reserved. Use of this source code is governed by a |
18579 // BSD-style license that can be found in the LICENSE file. | 18505 // BSD-style license that can be found in the LICENSE file. |
18580 | 18506 |
18581 | 18507 |
18582 /// @domName WebGLBuffer; @docsEditable true | 18508 /// @domName WebGLBuffer; @docsEditable true |
18583 class WebGLBuffer native "*WebGLBuffer" { | 18509 class WebGLBuffer native "*WebGLBuffer" { |
18584 } | 18510 } |
(...skipping 14 matching lines...) Expand all Loading... |
18599 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | 18525 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; |
18600 } | 18526 } |
18601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18602 // for details. All rights reserved. Use of this source code is governed by a | 18528 // for details. All rights reserved. Use of this source code is governed by a |
18603 // BSD-style license that can be found in the LICENSE file. | 18529 // BSD-style license that can be found in the LICENSE file. |
18604 | 18530 |
18605 | 18531 |
18606 /// @domName WebGLContextAttributes; @docsEditable true | 18532 /// @domName WebGLContextAttributes; @docsEditable true |
18607 class WebGLContextAttributes native "*WebGLContextAttributes" { | 18533 class WebGLContextAttributes native "*WebGLContextAttributes" { |
18608 | 18534 |
18609 /** @domName WebGLContextAttributes.alpha; @docsEditable true */ | 18535 /// @domName WebGLContextAttributes.alpha; @docsEditable true |
18610 bool alpha; | 18536 bool alpha; |
18611 | 18537 |
18612 /** @domName WebGLContextAttributes.antialias; @docsEditable true */ | 18538 /// @domName WebGLContextAttributes.antialias; @docsEditable true |
18613 bool antialias; | 18539 bool antialias; |
18614 | 18540 |
18615 /** @domName WebGLContextAttributes.depth; @docsEditable true */ | 18541 /// @domName WebGLContextAttributes.depth; @docsEditable true |
18616 bool depth; | 18542 bool depth; |
18617 | 18543 |
18618 /** @domName WebGLContextAttributes.premultipliedAlpha; @docsEditable true */ | 18544 /// @domName WebGLContextAttributes.premultipliedAlpha; @docsEditable true |
18619 bool premultipliedAlpha; | 18545 bool premultipliedAlpha; |
18620 | 18546 |
18621 /** @domName WebGLContextAttributes.preserveDrawingBuffer; @docsEditable true
*/ | 18547 /// @domName WebGLContextAttributes.preserveDrawingBuffer; @docsEditable true |
18622 bool preserveDrawingBuffer; | 18548 bool preserveDrawingBuffer; |
18623 | 18549 |
18624 /** @domName WebGLContextAttributes.stencil; @docsEditable true */ | 18550 /// @domName WebGLContextAttributes.stencil; @docsEditable true |
18625 bool stencil; | 18551 bool stencil; |
18626 } | 18552 } |
18627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18628 // for details. All rights reserved. Use of this source code is governed by a | 18554 // for details. All rights reserved. Use of this source code is governed by a |
18629 // BSD-style license that can be found in the LICENSE file. | 18555 // BSD-style license that can be found in the LICENSE file. |
18630 | 18556 |
18631 | 18557 |
18632 /// @domName WebGLContextEvent; @docsEditable true | 18558 /// @domName WebGLContextEvent; @docsEditable true |
18633 class WebGLContextEvent extends Event native "*WebGLContextEvent" { | 18559 class WebGLContextEvent extends Event native "*WebGLContextEvent" { |
18634 | 18560 |
18635 /** @domName WebGLContextEvent.statusMessage; @docsEditable true */ | 18561 /// @domName WebGLContextEvent.statusMessage; @docsEditable true |
18636 final String statusMessage; | 18562 final String statusMessage; |
18637 } | 18563 } |
18638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18639 // for details. All rights reserved. Use of this source code is governed by a | 18565 // for details. All rights reserved. Use of this source code is governed by a |
18640 // BSD-style license that can be found in the LICENSE file. | 18566 // BSD-style license that can be found in the LICENSE file. |
18641 | 18567 |
18642 | 18568 |
18643 /// @domName WebGLDebugRendererInfo; @docsEditable true | 18569 /// @domName WebGLDebugRendererInfo; @docsEditable true |
18644 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { | 18570 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { |
18645 | 18571 |
18646 static const int UNMASKED_RENDERER_WEBGL = 0x9246; | 18572 static const int UNMASKED_RENDERER_WEBGL = 0x9246; |
18647 | 18573 |
18648 static const int UNMASKED_VENDOR_WEBGL = 0x9245; | 18574 static const int UNMASKED_VENDOR_WEBGL = 0x9245; |
18649 } | 18575 } |
18650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18651 // for details. All rights reserved. Use of this source code is governed by a | 18577 // for details. All rights reserved. Use of this source code is governed by a |
18652 // BSD-style license that can be found in the LICENSE file. | 18578 // BSD-style license that can be found in the LICENSE file. |
18653 | 18579 |
18654 | 18580 |
18655 /// @domName WebGLDebugShaders; @docsEditable true | 18581 /// @domName WebGLDebugShaders; @docsEditable true |
18656 class WebGLDebugShaders native "*WebGLDebugShaders" { | 18582 class WebGLDebugShaders native "*WebGLDebugShaders" { |
18657 | 18583 |
18658 /** @domName WebGLDebugShaders.getTranslatedShaderSource; @docsEditable true *
/ | 18584 /// @domName WebGLDebugShaders.getTranslatedShaderSource; @docsEditable true |
18659 String getTranslatedShaderSource(WebGLShader shader) native; | 18585 String getTranslatedShaderSource(WebGLShader shader) native; |
18660 } | 18586 } |
18661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18662 // for details. All rights reserved. Use of this source code is governed by a | 18588 // for details. All rights reserved. Use of this source code is governed by a |
18663 // BSD-style license that can be found in the LICENSE file. | 18589 // BSD-style license that can be found in the LICENSE file. |
18664 | 18590 |
18665 | 18591 |
18666 /// @domName WebGLDepthTexture; @docsEditable true | 18592 /// @domName WebGLDepthTexture; @docsEditable true |
18667 class WebGLDepthTexture native "*WebGLDepthTexture" { | 18593 class WebGLDepthTexture native "*WebGLDepthTexture" { |
18668 | 18594 |
18669 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | 18595 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; |
18670 } | 18596 } |
18671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18672 // for details. All rights reserved. Use of this source code is governed by a | 18598 // for details. All rights reserved. Use of this source code is governed by a |
18673 // BSD-style license that can be found in the LICENSE file. | 18599 // BSD-style license that can be found in the LICENSE file. |
18674 | 18600 |
18675 | 18601 |
18676 /// @domName WebGLFramebuffer; @docsEditable true | 18602 /// @domName WebGLFramebuffer; @docsEditable true |
18677 class WebGLFramebuffer native "*WebGLFramebuffer" { | 18603 class WebGLFramebuffer native "*WebGLFramebuffer" { |
18678 } | 18604 } |
18679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18680 // for details. All rights reserved. Use of this source code is governed by a | 18606 // for details. All rights reserved. Use of this source code is governed by a |
18681 // BSD-style license that can be found in the LICENSE file. | 18607 // BSD-style license that can be found in the LICENSE file. |
18682 | 18608 |
18683 | 18609 |
18684 /// @domName WebGLLoseContext; @docsEditable true | 18610 /// @domName WebGLLoseContext; @docsEditable true |
18685 class WebGLLoseContext native "*WebGLLoseContext" { | 18611 class WebGLLoseContext native "*WebGLLoseContext" { |
18686 | 18612 |
18687 /** @domName WebGLLoseContext.loseContext; @docsEditable true */ | 18613 /// @domName WebGLLoseContext.loseContext; @docsEditable true |
18688 void loseContext() native; | 18614 void loseContext() native; |
18689 | 18615 |
18690 /** @domName WebGLLoseContext.restoreContext; @docsEditable true */ | 18616 /// @domName WebGLLoseContext.restoreContext; @docsEditable true |
18691 void restoreContext() native; | 18617 void restoreContext() native; |
18692 } | 18618 } |
18693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18694 // for details. All rights reserved. Use of this source code is governed by a | 18620 // for details. All rights reserved. Use of this source code is governed by a |
18695 // BSD-style license that can be found in the LICENSE file. | 18621 // BSD-style license that can be found in the LICENSE file. |
18696 | 18622 |
18697 | 18623 |
18698 /// @domName WebGLProgram; @docsEditable true | 18624 /// @domName WebGLProgram; @docsEditable true |
18699 class WebGLProgram native "*WebGLProgram" { | 18625 class WebGLProgram native "*WebGLProgram" { |
18700 } | 18626 } |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19297 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | 19223 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; |
19298 | 19224 |
19299 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | 19225 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; |
19300 | 19226 |
19301 static const int VERTEX_SHADER = 0x8B31; | 19227 static const int VERTEX_SHADER = 0x8B31; |
19302 | 19228 |
19303 static const int VIEWPORT = 0x0BA2; | 19229 static const int VIEWPORT = 0x0BA2; |
19304 | 19230 |
19305 static const int ZERO = 0; | 19231 static const int ZERO = 0; |
19306 | 19232 |
19307 /** @domName WebGLRenderingContext.drawingBufferHeight; @docsEditable true */ | 19233 /// @domName WebGLRenderingContext.drawingBufferHeight; @docsEditable true |
19308 final int drawingBufferHeight; | 19234 final int drawingBufferHeight; |
19309 | 19235 |
19310 /** @domName WebGLRenderingContext.drawingBufferWidth; @docsEditable true */ | 19236 /// @domName WebGLRenderingContext.drawingBufferWidth; @docsEditable true |
19311 final int drawingBufferWidth; | 19237 final int drawingBufferWidth; |
19312 | 19238 |
19313 /** @domName WebGLRenderingContext.activeTexture; @docsEditable true */ | 19239 /// @domName WebGLRenderingContext.activeTexture; @docsEditable true |
19314 void activeTexture(int texture) native; | 19240 void activeTexture(int texture) native; |
19315 | 19241 |
19316 /** @domName WebGLRenderingContext.attachShader; @docsEditable true */ | 19242 /// @domName WebGLRenderingContext.attachShader; @docsEditable true |
19317 void attachShader(WebGLProgram program, WebGLShader shader) native; | 19243 void attachShader(WebGLProgram program, WebGLShader shader) native; |
19318 | 19244 |
19319 /** @domName WebGLRenderingContext.bindAttribLocation; @docsEditable true */ | 19245 /// @domName WebGLRenderingContext.bindAttribLocation; @docsEditable true |
19320 void bindAttribLocation(WebGLProgram program, int index, String name) native; | 19246 void bindAttribLocation(WebGLProgram program, int index, String name) native; |
19321 | 19247 |
19322 /** @domName WebGLRenderingContext.bindBuffer; @docsEditable true */ | 19248 /// @domName WebGLRenderingContext.bindBuffer; @docsEditable true |
19323 void bindBuffer(int target, WebGLBuffer buffer) native; | 19249 void bindBuffer(int target, WebGLBuffer buffer) native; |
19324 | 19250 |
19325 /** @domName WebGLRenderingContext.bindFramebuffer; @docsEditable true */ | 19251 /// @domName WebGLRenderingContext.bindFramebuffer; @docsEditable true |
19326 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; | 19252 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; |
19327 | 19253 |
19328 /** @domName WebGLRenderingContext.bindRenderbuffer; @docsEditable true */ | 19254 /// @domName WebGLRenderingContext.bindRenderbuffer; @docsEditable true |
19329 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; | 19255 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; |
19330 | 19256 |
19331 /** @domName WebGLRenderingContext.bindTexture; @docsEditable true */ | 19257 /// @domName WebGLRenderingContext.bindTexture; @docsEditable true |
19332 void bindTexture(int target, WebGLTexture texture) native; | 19258 void bindTexture(int target, WebGLTexture texture) native; |
19333 | 19259 |
19334 /** @domName WebGLRenderingContext.blendColor; @docsEditable true */ | 19260 /// @domName WebGLRenderingContext.blendColor; @docsEditable true |
19335 void blendColor(num red, num green, num blue, num alpha) native; | 19261 void blendColor(num red, num green, num blue, num alpha) native; |
19336 | 19262 |
19337 /** @domName WebGLRenderingContext.blendEquation; @docsEditable true */ | 19263 /// @domName WebGLRenderingContext.blendEquation; @docsEditable true |
19338 void blendEquation(int mode) native; | 19264 void blendEquation(int mode) native; |
19339 | 19265 |
19340 /** @domName WebGLRenderingContext.blendEquationSeparate; @docsEditable true *
/ | 19266 /// @domName WebGLRenderingContext.blendEquationSeparate; @docsEditable true |
19341 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | 19267 void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
19342 | 19268 |
19343 /** @domName WebGLRenderingContext.blendFunc; @docsEditable true */ | 19269 /// @domName WebGLRenderingContext.blendFunc; @docsEditable true |
19344 void blendFunc(int sfactor, int dfactor) native; | 19270 void blendFunc(int sfactor, int dfactor) native; |
19345 | 19271 |
19346 /** @domName WebGLRenderingContext.blendFuncSeparate; @docsEditable true */ | 19272 /// @domName WebGLRenderingContext.blendFuncSeparate; @docsEditable true |
19347 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | 19273 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
19348 | 19274 |
19349 /** @domName WebGLRenderingContext.bufferData; @docsEditable true */ | 19275 /// @domName WebGLRenderingContext.bufferData; @docsEditable true |
19350 void bufferData(int target, data_OR_size, int usage) native; | 19276 void bufferData(int target, data_OR_size, int usage) native; |
19351 | 19277 |
19352 /** @domName WebGLRenderingContext.bufferSubData; @docsEditable true */ | 19278 /// @domName WebGLRenderingContext.bufferSubData; @docsEditable true |
19353 void bufferSubData(int target, int offset, data) native; | 19279 void bufferSubData(int target, int offset, data) native; |
19354 | 19280 |
19355 /** @domName WebGLRenderingContext.checkFramebufferStatus; @docsEditable true
*/ | 19281 /// @domName WebGLRenderingContext.checkFramebufferStatus; @docsEditable true |
19356 int checkFramebufferStatus(int target) native; | 19282 int checkFramebufferStatus(int target) native; |
19357 | 19283 |
19358 /** @domName WebGLRenderingContext.clear; @docsEditable true */ | 19284 /// @domName WebGLRenderingContext.clear; @docsEditable true |
19359 void clear(int mask) native; | 19285 void clear(int mask) native; |
19360 | 19286 |
19361 /** @domName WebGLRenderingContext.clearColor; @docsEditable true */ | 19287 /// @domName WebGLRenderingContext.clearColor; @docsEditable true |
19362 void clearColor(num red, num green, num blue, num alpha) native; | 19288 void clearColor(num red, num green, num blue, num alpha) native; |
19363 | 19289 |
19364 /** @domName WebGLRenderingContext.clearDepth; @docsEditable true */ | 19290 /// @domName WebGLRenderingContext.clearDepth; @docsEditable true |
19365 void clearDepth(num depth) native; | 19291 void clearDepth(num depth) native; |
19366 | 19292 |
19367 /** @domName WebGLRenderingContext.clearStencil; @docsEditable true */ | 19293 /// @domName WebGLRenderingContext.clearStencil; @docsEditable true |
19368 void clearStencil(int s) native; | 19294 void clearStencil(int s) native; |
19369 | 19295 |
19370 /** @domName WebGLRenderingContext.colorMask; @docsEditable true */ | 19296 /// @domName WebGLRenderingContext.colorMask; @docsEditable true |
19371 void colorMask(bool red, bool green, bool blue, bool alpha) native; | 19297 void colorMask(bool red, bool green, bool blue, bool alpha) native; |
19372 | 19298 |
19373 /** @domName WebGLRenderingContext.compileShader; @docsEditable true */ | 19299 /// @domName WebGLRenderingContext.compileShader; @docsEditable true |
19374 void compileShader(WebGLShader shader) native; | 19300 void compileShader(WebGLShader shader) native; |
19375 | 19301 |
19376 /** @domName WebGLRenderingContext.compressedTexImage2D; @docsEditable true */ | 19302 /// @domName WebGLRenderingContext.compressedTexImage2D; @docsEditable true |
19377 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, ArrayBufferView data) native; | 19303 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, ArrayBufferView data) native; |
19378 | 19304 |
19379 /** @domName WebGLRenderingContext.compressedTexSubImage2D; @docsEditable true
*/ | 19305 /// @domName WebGLRenderingContext.compressedTexSubImage2D; @docsEditable true |
19380 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, ArrayBufferView data) native; | 19306 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, ArrayBufferView data) native; |
19381 | 19307 |
19382 /** @domName WebGLRenderingContext.copyTexImage2D; @docsEditable true */ | 19308 /// @domName WebGLRenderingContext.copyTexImage2D; @docsEditable true |
19383 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; | 19309 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; |
19384 | 19310 |
19385 /** @domName WebGLRenderingContext.copyTexSubImage2D; @docsEditable true */ | 19311 /// @domName WebGLRenderingContext.copyTexSubImage2D; @docsEditable true |
19386 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; | 19312 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; |
19387 | 19313 |
19388 /** @domName WebGLRenderingContext.createBuffer; @docsEditable true */ | 19314 /// @domName WebGLRenderingContext.createBuffer; @docsEditable true |
19389 WebGLBuffer createBuffer() native; | 19315 WebGLBuffer createBuffer() native; |
19390 | 19316 |
19391 /** @domName WebGLRenderingContext.createFramebuffer; @docsEditable true */ | 19317 /// @domName WebGLRenderingContext.createFramebuffer; @docsEditable true |
19392 WebGLFramebuffer createFramebuffer() native; | 19318 WebGLFramebuffer createFramebuffer() native; |
19393 | 19319 |
19394 /** @domName WebGLRenderingContext.createProgram; @docsEditable true */ | 19320 /// @domName WebGLRenderingContext.createProgram; @docsEditable true |
19395 WebGLProgram createProgram() native; | 19321 WebGLProgram createProgram() native; |
19396 | 19322 |
19397 /** @domName WebGLRenderingContext.createRenderbuffer; @docsEditable true */ | 19323 /// @domName WebGLRenderingContext.createRenderbuffer; @docsEditable true |
19398 WebGLRenderbuffer createRenderbuffer() native; | 19324 WebGLRenderbuffer createRenderbuffer() native; |
19399 | 19325 |
19400 /** @domName WebGLRenderingContext.createShader; @docsEditable true */ | 19326 /// @domName WebGLRenderingContext.createShader; @docsEditable true |
19401 WebGLShader createShader(int type) native; | 19327 WebGLShader createShader(int type) native; |
19402 | 19328 |
19403 /** @domName WebGLRenderingContext.createTexture; @docsEditable true */ | 19329 /// @domName WebGLRenderingContext.createTexture; @docsEditable true |
19404 WebGLTexture createTexture() native; | 19330 WebGLTexture createTexture() native; |
19405 | 19331 |
19406 /** @domName WebGLRenderingContext.cullFace; @docsEditable true */ | 19332 /// @domName WebGLRenderingContext.cullFace; @docsEditable true |
19407 void cullFace(int mode) native; | 19333 void cullFace(int mode) native; |
19408 | 19334 |
19409 /** @domName WebGLRenderingContext.deleteBuffer; @docsEditable true */ | 19335 /// @domName WebGLRenderingContext.deleteBuffer; @docsEditable true |
19410 void deleteBuffer(WebGLBuffer buffer) native; | 19336 void deleteBuffer(WebGLBuffer buffer) native; |
19411 | 19337 |
19412 /** @domName WebGLRenderingContext.deleteFramebuffer; @docsEditable true */ | 19338 /// @domName WebGLRenderingContext.deleteFramebuffer; @docsEditable true |
19413 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; | 19339 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; |
19414 | 19340 |
19415 /** @domName WebGLRenderingContext.deleteProgram; @docsEditable true */ | 19341 /// @domName WebGLRenderingContext.deleteProgram; @docsEditable true |
19416 void deleteProgram(WebGLProgram program) native; | 19342 void deleteProgram(WebGLProgram program) native; |
19417 | 19343 |
19418 /** @domName WebGLRenderingContext.deleteRenderbuffer; @docsEditable true */ | 19344 /// @domName WebGLRenderingContext.deleteRenderbuffer; @docsEditable true |
19419 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; | 19345 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; |
19420 | 19346 |
19421 /** @domName WebGLRenderingContext.deleteShader; @docsEditable true */ | 19347 /// @domName WebGLRenderingContext.deleteShader; @docsEditable true |
19422 void deleteShader(WebGLShader shader) native; | 19348 void deleteShader(WebGLShader shader) native; |
19423 | 19349 |
19424 /** @domName WebGLRenderingContext.deleteTexture; @docsEditable true */ | 19350 /// @domName WebGLRenderingContext.deleteTexture; @docsEditable true |
19425 void deleteTexture(WebGLTexture texture) native; | 19351 void deleteTexture(WebGLTexture texture) native; |
19426 | 19352 |
19427 /** @domName WebGLRenderingContext.depthFunc; @docsEditable true */ | 19353 /// @domName WebGLRenderingContext.depthFunc; @docsEditable true |
19428 void depthFunc(int func) native; | 19354 void depthFunc(int func) native; |
19429 | 19355 |
19430 /** @domName WebGLRenderingContext.depthMask; @docsEditable true */ | 19356 /// @domName WebGLRenderingContext.depthMask; @docsEditable true |
19431 void depthMask(bool flag) native; | 19357 void depthMask(bool flag) native; |
19432 | 19358 |
19433 /** @domName WebGLRenderingContext.depthRange; @docsEditable true */ | 19359 /// @domName WebGLRenderingContext.depthRange; @docsEditable true |
19434 void depthRange(num zNear, num zFar) native; | 19360 void depthRange(num zNear, num zFar) native; |
19435 | 19361 |
19436 /** @domName WebGLRenderingContext.detachShader; @docsEditable true */ | 19362 /// @domName WebGLRenderingContext.detachShader; @docsEditable true |
19437 void detachShader(WebGLProgram program, WebGLShader shader) native; | 19363 void detachShader(WebGLProgram program, WebGLShader shader) native; |
19438 | 19364 |
19439 /** @domName WebGLRenderingContext.disable; @docsEditable true */ | 19365 /// @domName WebGLRenderingContext.disable; @docsEditable true |
19440 void disable(int cap) native; | 19366 void disable(int cap) native; |
19441 | 19367 |
19442 /** @domName WebGLRenderingContext.disableVertexAttribArray; @docsEditable tru
e */ | 19368 /// @domName WebGLRenderingContext.disableVertexAttribArray; @docsEditable tru
e |
19443 void disableVertexAttribArray(int index) native; | 19369 void disableVertexAttribArray(int index) native; |
19444 | 19370 |
19445 /** @domName WebGLRenderingContext.drawArrays; @docsEditable true */ | 19371 /// @domName WebGLRenderingContext.drawArrays; @docsEditable true |
19446 void drawArrays(int mode, int first, int count) native; | 19372 void drawArrays(int mode, int first, int count) native; |
19447 | 19373 |
19448 /** @domName WebGLRenderingContext.drawElements; @docsEditable true */ | 19374 /// @domName WebGLRenderingContext.drawElements; @docsEditable true |
19449 void drawElements(int mode, int count, int type, int offset) native; | 19375 void drawElements(int mode, int count, int type, int offset) native; |
19450 | 19376 |
19451 /** @domName WebGLRenderingContext.enable; @docsEditable true */ | 19377 /// @domName WebGLRenderingContext.enable; @docsEditable true |
19452 void enable(int cap) native; | 19378 void enable(int cap) native; |
19453 | 19379 |
19454 /** @domName WebGLRenderingContext.enableVertexAttribArray; @docsEditable true
*/ | 19380 /// @domName WebGLRenderingContext.enableVertexAttribArray; @docsEditable true |
19455 void enableVertexAttribArray(int index) native; | 19381 void enableVertexAttribArray(int index) native; |
19456 | 19382 |
19457 /** @domName WebGLRenderingContext.finish; @docsEditable true */ | 19383 /// @domName WebGLRenderingContext.finish; @docsEditable true |
19458 void finish() native; | 19384 void finish() native; |
19459 | 19385 |
19460 /** @domName WebGLRenderingContext.flush; @docsEditable true */ | 19386 /// @domName WebGLRenderingContext.flush; @docsEditable true |
19461 void flush() native; | 19387 void flush() native; |
19462 | 19388 |
19463 /** @domName WebGLRenderingContext.framebufferRenderbuffer; @docsEditable true
*/ | 19389 /// @domName WebGLRenderingContext.framebufferRenderbuffer; @docsEditable true |
19464 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer) native; | 19390 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer) native; |
19465 | 19391 |
19466 /** @domName WebGLRenderingContext.framebufferTexture2D; @docsEditable true */ | 19392 /// @domName WebGLRenderingContext.framebufferTexture2D; @docsEditable true |
19467 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) native; | 19393 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) native; |
19468 | 19394 |
19469 /** @domName WebGLRenderingContext.frontFace; @docsEditable true */ | 19395 /// @domName WebGLRenderingContext.frontFace; @docsEditable true |
19470 void frontFace(int mode) native; | 19396 void frontFace(int mode) native; |
19471 | 19397 |
19472 /** @domName WebGLRenderingContext.generateMipmap; @docsEditable true */ | 19398 /// @domName WebGLRenderingContext.generateMipmap; @docsEditable true |
19473 void generateMipmap(int target) native; | 19399 void generateMipmap(int target) native; |
19474 | 19400 |
19475 /** @domName WebGLRenderingContext.getActiveAttrib; @docsEditable true */ | 19401 /// @domName WebGLRenderingContext.getActiveAttrib; @docsEditable true |
19476 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; | 19402 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; |
19477 | 19403 |
19478 /** @domName WebGLRenderingContext.getActiveUniform; @docsEditable true */ | 19404 /// @domName WebGLRenderingContext.getActiveUniform; @docsEditable true |
19479 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; | 19405 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; |
19480 | 19406 |
19481 /** @domName WebGLRenderingContext.getAttachedShaders; @docsEditable true */ | 19407 /// @domName WebGLRenderingContext.getAttachedShaders; @docsEditable true |
19482 void getAttachedShaders(WebGLProgram program) native; | 19408 void getAttachedShaders(WebGLProgram program) native; |
19483 | 19409 |
19484 /** @domName WebGLRenderingContext.getAttribLocation; @docsEditable true */ | 19410 /// @domName WebGLRenderingContext.getAttribLocation; @docsEditable true |
19485 int getAttribLocation(WebGLProgram program, String name) native; | 19411 int getAttribLocation(WebGLProgram program, String name) native; |
19486 | 19412 |
19487 /** @domName WebGLRenderingContext.getBufferParameter; @docsEditable true */ | 19413 /// @domName WebGLRenderingContext.getBufferParameter; @docsEditable true |
19488 Object getBufferParameter(int target, int pname) native; | 19414 Object getBufferParameter(int target, int pname) native; |
19489 | 19415 |
19490 /** @domName WebGLRenderingContext.getContextAttributes; @docsEditable true */ | 19416 /// @domName WebGLRenderingContext.getContextAttributes; @docsEditable true |
19491 WebGLContextAttributes getContextAttributes() native; | 19417 WebGLContextAttributes getContextAttributes() native; |
19492 | 19418 |
19493 /** @domName WebGLRenderingContext.getError; @docsEditable true */ | 19419 /// @domName WebGLRenderingContext.getError; @docsEditable true |
19494 int getError() native; | 19420 int getError() native; |
19495 | 19421 |
19496 /** @domName WebGLRenderingContext.getExtension; @docsEditable true */ | 19422 /// @domName WebGLRenderingContext.getExtension; @docsEditable true |
19497 Object getExtension(String name) native; | 19423 Object getExtension(String name) native; |
19498 | 19424 |
19499 /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter; @docsEdi
table true */ | 19425 /// @domName WebGLRenderingContext.getFramebufferAttachmentParameter; @docsEdi
table true |
19500 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; | 19426 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; |
19501 | 19427 |
19502 /** @domName WebGLRenderingContext.getParameter; @docsEditable true */ | 19428 /// @domName WebGLRenderingContext.getParameter; @docsEditable true |
19503 Object getParameter(int pname) native; | 19429 Object getParameter(int pname) native; |
19504 | 19430 |
19505 /** @domName WebGLRenderingContext.getProgramInfoLog; @docsEditable true */ | 19431 /// @domName WebGLRenderingContext.getProgramInfoLog; @docsEditable true |
19506 String getProgramInfoLog(WebGLProgram program) native; | 19432 String getProgramInfoLog(WebGLProgram program) native; |
19507 | 19433 |
19508 /** @domName WebGLRenderingContext.getProgramParameter; @docsEditable true */ | 19434 /// @domName WebGLRenderingContext.getProgramParameter; @docsEditable true |
19509 Object getProgramParameter(WebGLProgram program, int pname) native; | 19435 Object getProgramParameter(WebGLProgram program, int pname) native; |
19510 | 19436 |
19511 /** @domName WebGLRenderingContext.getRenderbufferParameter; @docsEditable tru
e */ | 19437 /// @domName WebGLRenderingContext.getRenderbufferParameter; @docsEditable tru
e |
19512 Object getRenderbufferParameter(int target, int pname) native; | 19438 Object getRenderbufferParameter(int target, int pname) native; |
19513 | 19439 |
19514 /** @domName WebGLRenderingContext.getShaderInfoLog; @docsEditable true */ | 19440 /// @domName WebGLRenderingContext.getShaderInfoLog; @docsEditable true |
19515 String getShaderInfoLog(WebGLShader shader) native; | 19441 String getShaderInfoLog(WebGLShader shader) native; |
19516 | 19442 |
19517 /** @domName WebGLRenderingContext.getShaderParameter; @docsEditable true */ | 19443 /// @domName WebGLRenderingContext.getShaderParameter; @docsEditable true |
19518 Object getShaderParameter(WebGLShader shader, int pname) native; | 19444 Object getShaderParameter(WebGLShader shader, int pname) native; |
19519 | 19445 |
19520 /** @domName WebGLRenderingContext.getShaderPrecisionFormat; @docsEditable tru
e */ | 19446 /// @domName WebGLRenderingContext.getShaderPrecisionFormat; @docsEditable tru
e |
19521 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis
iontype) native; | 19447 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis
iontype) native; |
19522 | 19448 |
19523 /** @domName WebGLRenderingContext.getShaderSource; @docsEditable true */ | 19449 /// @domName WebGLRenderingContext.getShaderSource; @docsEditable true |
19524 String getShaderSource(WebGLShader shader) native; | 19450 String getShaderSource(WebGLShader shader) native; |
19525 | 19451 |
19526 /** @domName WebGLRenderingContext.getSupportedExtensions; @docsEditable true
*/ | 19452 /// @domName WebGLRenderingContext.getSupportedExtensions; @docsEditable true |
19527 List<String> getSupportedExtensions() native; | 19453 List<String> getSupportedExtensions() native; |
19528 | 19454 |
19529 /** @domName WebGLRenderingContext.getTexParameter; @docsEditable true */ | 19455 /// @domName WebGLRenderingContext.getTexParameter; @docsEditable true |
19530 Object getTexParameter(int target, int pname) native; | 19456 Object getTexParameter(int target, int pname) native; |
19531 | 19457 |
19532 /** @domName WebGLRenderingContext.getUniform; @docsEditable true */ | 19458 /// @domName WebGLRenderingContext.getUniform; @docsEditable true |
19533 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; | 19459 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; |
19534 | 19460 |
19535 /** @domName WebGLRenderingContext.getUniformLocation; @docsEditable true */ | 19461 /// @domName WebGLRenderingContext.getUniformLocation; @docsEditable true |
19536 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat
ive; | 19462 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat
ive; |
19537 | 19463 |
19538 /** @domName WebGLRenderingContext.getVertexAttrib; @docsEditable true */ | 19464 /// @domName WebGLRenderingContext.getVertexAttrib; @docsEditable true |
19539 Object getVertexAttrib(int index, int pname) native; | 19465 Object getVertexAttrib(int index, int pname) native; |
19540 | 19466 |
19541 /** @domName WebGLRenderingContext.getVertexAttribOffset; @docsEditable true *
/ | 19467 /// @domName WebGLRenderingContext.getVertexAttribOffset; @docsEditable true |
19542 int getVertexAttribOffset(int index, int pname) native; | 19468 int getVertexAttribOffset(int index, int pname) native; |
19543 | 19469 |
19544 /** @domName WebGLRenderingContext.hint; @docsEditable true */ | 19470 /// @domName WebGLRenderingContext.hint; @docsEditable true |
19545 void hint(int target, int mode) native; | 19471 void hint(int target, int mode) native; |
19546 | 19472 |
19547 /** @domName WebGLRenderingContext.isBuffer; @docsEditable true */ | 19473 /// @domName WebGLRenderingContext.isBuffer; @docsEditable true |
19548 bool isBuffer(WebGLBuffer buffer) native; | 19474 bool isBuffer(WebGLBuffer buffer) native; |
19549 | 19475 |
19550 /** @domName WebGLRenderingContext.isContextLost; @docsEditable true */ | 19476 /// @domName WebGLRenderingContext.isContextLost; @docsEditable true |
19551 bool isContextLost() native; | 19477 bool isContextLost() native; |
19552 | 19478 |
19553 /** @domName WebGLRenderingContext.isEnabled; @docsEditable true */ | 19479 /// @domName WebGLRenderingContext.isEnabled; @docsEditable true |
19554 bool isEnabled(int cap) native; | 19480 bool isEnabled(int cap) native; |
19555 | 19481 |
19556 /** @domName WebGLRenderingContext.isFramebuffer; @docsEditable true */ | 19482 /// @domName WebGLRenderingContext.isFramebuffer; @docsEditable true |
19557 bool isFramebuffer(WebGLFramebuffer framebuffer) native; | 19483 bool isFramebuffer(WebGLFramebuffer framebuffer) native; |
19558 | 19484 |
19559 /** @domName WebGLRenderingContext.isProgram; @docsEditable true */ | 19485 /// @domName WebGLRenderingContext.isProgram; @docsEditable true |
19560 bool isProgram(WebGLProgram program) native; | 19486 bool isProgram(WebGLProgram program) native; |
19561 | 19487 |
19562 /** @domName WebGLRenderingContext.isRenderbuffer; @docsEditable true */ | 19488 /// @domName WebGLRenderingContext.isRenderbuffer; @docsEditable true |
19563 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; | 19489 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; |
19564 | 19490 |
19565 /** @domName WebGLRenderingContext.isShader; @docsEditable true */ | 19491 /// @domName WebGLRenderingContext.isShader; @docsEditable true |
19566 bool isShader(WebGLShader shader) native; | 19492 bool isShader(WebGLShader shader) native; |
19567 | 19493 |
19568 /** @domName WebGLRenderingContext.isTexture; @docsEditable true */ | 19494 /// @domName WebGLRenderingContext.isTexture; @docsEditable true |
19569 bool isTexture(WebGLTexture texture) native; | 19495 bool isTexture(WebGLTexture texture) native; |
19570 | 19496 |
19571 /** @domName WebGLRenderingContext.lineWidth; @docsEditable true */ | 19497 /// @domName WebGLRenderingContext.lineWidth; @docsEditable true |
19572 void lineWidth(num width) native; | 19498 void lineWidth(num width) native; |
19573 | 19499 |
19574 /** @domName WebGLRenderingContext.linkProgram; @docsEditable true */ | 19500 /// @domName WebGLRenderingContext.linkProgram; @docsEditable true |
19575 void linkProgram(WebGLProgram program) native; | 19501 void linkProgram(WebGLProgram program) native; |
19576 | 19502 |
19577 /** @domName WebGLRenderingContext.pixelStorei; @docsEditable true */ | 19503 /// @domName WebGLRenderingContext.pixelStorei; @docsEditable true |
19578 void pixelStorei(int pname, int param) native; | 19504 void pixelStorei(int pname, int param) native; |
19579 | 19505 |
19580 /** @domName WebGLRenderingContext.polygonOffset; @docsEditable true */ | 19506 /// @domName WebGLRenderingContext.polygonOffset; @docsEditable true |
19581 void polygonOffset(num factor, num units) native; | 19507 void polygonOffset(num factor, num units) native; |
19582 | 19508 |
19583 /** @domName WebGLRenderingContext.readPixels; @docsEditable true */ | 19509 /// @domName WebGLRenderingContext.readPixels; @docsEditable true |
19584 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels) native; | 19510 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels) native; |
19585 | 19511 |
19586 /** @domName WebGLRenderingContext.releaseShaderCompiler; @docsEditable true *
/ | 19512 /// @domName WebGLRenderingContext.releaseShaderCompiler; @docsEditable true |
19587 void releaseShaderCompiler() native; | 19513 void releaseShaderCompiler() native; |
19588 | 19514 |
19589 /** @domName WebGLRenderingContext.renderbufferStorage; @docsEditable true */ | 19515 /// @domName WebGLRenderingContext.renderbufferStorage; @docsEditable true |
19590 void renderbufferStorage(int target, int internalformat, int width, int height
) native; | 19516 void renderbufferStorage(int target, int internalformat, int width, int height
) native; |
19591 | 19517 |
19592 /** @domName WebGLRenderingContext.sampleCoverage; @docsEditable true */ | 19518 /// @domName WebGLRenderingContext.sampleCoverage; @docsEditable true |
19593 void sampleCoverage(num value, bool invert) native; | 19519 void sampleCoverage(num value, bool invert) native; |
19594 | 19520 |
19595 /** @domName WebGLRenderingContext.scissor; @docsEditable true */ | 19521 /// @domName WebGLRenderingContext.scissor; @docsEditable true |
19596 void scissor(int x, int y, int width, int height) native; | 19522 void scissor(int x, int y, int width, int height) native; |
19597 | 19523 |
19598 /** @domName WebGLRenderingContext.shaderSource; @docsEditable true */ | 19524 /// @domName WebGLRenderingContext.shaderSource; @docsEditable true |
19599 void shaderSource(WebGLShader shader, String string) native; | 19525 void shaderSource(WebGLShader shader, String string) native; |
19600 | 19526 |
19601 /** @domName WebGLRenderingContext.stencilFunc; @docsEditable true */ | 19527 /// @domName WebGLRenderingContext.stencilFunc; @docsEditable true |
19602 void stencilFunc(int func, int ref, int mask) native; | 19528 void stencilFunc(int func, int ref, int mask) native; |
19603 | 19529 |
19604 /** @domName WebGLRenderingContext.stencilFuncSeparate; @docsEditable true */ | 19530 /// @domName WebGLRenderingContext.stencilFuncSeparate; @docsEditable true |
19605 void stencilFuncSeparate(int face, int func, int ref, int mask) native; | 19531 void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
19606 | 19532 |
19607 /** @domName WebGLRenderingContext.stencilMask; @docsEditable true */ | 19533 /// @domName WebGLRenderingContext.stencilMask; @docsEditable true |
19608 void stencilMask(int mask) native; | 19534 void stencilMask(int mask) native; |
19609 | 19535 |
19610 /** @domName WebGLRenderingContext.stencilMaskSeparate; @docsEditable true */ | 19536 /// @domName WebGLRenderingContext.stencilMaskSeparate; @docsEditable true |
19611 void stencilMaskSeparate(int face, int mask) native; | 19537 void stencilMaskSeparate(int face, int mask) native; |
19612 | 19538 |
19613 /** @domName WebGLRenderingContext.stencilOp; @docsEditable true */ | 19539 /// @domName WebGLRenderingContext.stencilOp; @docsEditable true |
19614 void stencilOp(int fail, int zfail, int zpass) native; | 19540 void stencilOp(int fail, int zfail, int zpass) native; |
19615 | 19541 |
19616 /** @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true */ | 19542 /// @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true |
19617 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 19543 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
19618 | 19544 |
19619 /** @domName WebGLRenderingContext.texImage2D; @docsEditable true */ | 19545 /// @domName WebGLRenderingContext.texImage2D; @docsEditable true |
19620 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]) { | 19546 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]) { |
19621 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video =
= null))) { | 19547 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video =
= null))) { |
19622 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 19548 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
19623 return; | 19549 return; |
19624 } | 19550 } |
19625 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_v
ideo == null)) && | 19551 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_v
ideo == null)) && |
19626 !?format && | 19552 !?format && |
19627 !?type && | 19553 !?type && |
19628 !?pixels) { | 19554 !?pixels) { |
19629 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 19555 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
(...skipping 22 matching lines...) Expand all Loading... |
19652 return; | 19578 return; |
19653 } | 19579 } |
19654 throw new ArgumentError("Incorrect number or type of arguments"); | 19580 throw new ArgumentError("Incorrect number or type of arguments"); |
19655 } | 19581 } |
19656 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native "texImage2D"; | 19582 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native "texImage2D"; |
19657 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
"texImage2D"; | 19583 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
"texImage2D"; |
19658 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native "texImage2D"; | 19584 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native "texImage2D"; |
19659 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native "texImage2D"; | 19585 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native "texImage2D"; |
19660 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native "texImage2D"; | 19586 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native "texImage2D"; |
19661 | 19587 |
19662 /** @domName WebGLRenderingContext.texParameterf; @docsEditable true */ | 19588 /// @domName WebGLRenderingContext.texParameterf; @docsEditable true |
19663 void texParameterf(int target, int pname, num param) native; | 19589 void texParameterf(int target, int pname, num param) native; |
19664 | 19590 |
19665 /** @domName WebGLRenderingContext.texParameteri; @docsEditable true */ | 19591 /// @domName WebGLRenderingContext.texParameteri; @docsEditable true |
19666 void texParameteri(int target, int pname, int param) native; | 19592 void texParameteri(int target, int pname, int param) native; |
19667 | 19593 |
19668 /** @domName WebGLRenderingContext.texSubImage2D; @docsEditable true */ | 19594 /// @domName WebGLRenderingContext.texSubImage2D; @docsEditable true |
19669 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]) { | 19595 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]) { |
19670 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video =
= null))) { | 19596 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video =
= null))) { |
19671 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 19597 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
19672 return; | 19598 return; |
19673 } | 19599 } |
19674 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_v
ideo == null)) && | 19600 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_v
ideo == null)) && |
19675 !?type && | 19601 !?type && |
19676 !?pixels) { | 19602 !?pixels) { |
19677 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 19603 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
19678 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 19604 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
(...skipping 18 matching lines...) Expand all Loading... |
19697 return; | 19623 return; |
19698 } | 19624 } |
19699 throw new ArgumentError("Incorrect number or type of arguments"); | 19625 throw new ArgumentError("Incorrect number or type of arguments"); |
19700 } | 19626 } |
19701 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native "texSubImage2D"; | 19627 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native "texSubImage2D"; |
19702 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n
ative "texSubImage2D"; | 19628 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n
ative "texSubImage2D"; |
19703 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem
ent image) native "texSubImage2D"; | 19629 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem
ent image) native "texSubImage2D"; |
19704 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native "texSubImage2D"; | 19630 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native "texSubImage2D"; |
19705 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native "texSubImage2D"; | 19631 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native "texSubImage2D"; |
19706 | 19632 |
19707 /** @domName WebGLRenderingContext.uniform1f; @docsEditable true */ | 19633 /// @domName WebGLRenderingContext.uniform1f; @docsEditable true |
19708 void uniform1f(WebGLUniformLocation location, num x) native; | 19634 void uniform1f(WebGLUniformLocation location, num x) native; |
19709 | 19635 |
19710 /** @domName WebGLRenderingContext.uniform1fv; @docsEditable true */ | 19636 /// @domName WebGLRenderingContext.uniform1fv; @docsEditable true |
19711 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; | 19637 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; |
19712 | 19638 |
19713 /** @domName WebGLRenderingContext.uniform1i; @docsEditable true */ | 19639 /// @domName WebGLRenderingContext.uniform1i; @docsEditable true |
19714 void uniform1i(WebGLUniformLocation location, int x) native; | 19640 void uniform1i(WebGLUniformLocation location, int x) native; |
19715 | 19641 |
19716 /** @domName WebGLRenderingContext.uniform1iv; @docsEditable true */ | 19642 /// @domName WebGLRenderingContext.uniform1iv; @docsEditable true |
19717 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; | 19643 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; |
19718 | 19644 |
19719 /** @domName WebGLRenderingContext.uniform2f; @docsEditable true */ | 19645 /// @domName WebGLRenderingContext.uniform2f; @docsEditable true |
19720 void uniform2f(WebGLUniformLocation location, num x, num y) native; | 19646 void uniform2f(WebGLUniformLocation location, num x, num y) native; |
19721 | 19647 |
19722 /** @domName WebGLRenderingContext.uniform2fv; @docsEditable true */ | 19648 /// @domName WebGLRenderingContext.uniform2fv; @docsEditable true |
19723 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; | 19649 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; |
19724 | 19650 |
19725 /** @domName WebGLRenderingContext.uniform2i; @docsEditable true */ | 19651 /// @domName WebGLRenderingContext.uniform2i; @docsEditable true |
19726 void uniform2i(WebGLUniformLocation location, int x, int y) native; | 19652 void uniform2i(WebGLUniformLocation location, int x, int y) native; |
19727 | 19653 |
19728 /** @domName WebGLRenderingContext.uniform2iv; @docsEditable true */ | 19654 /// @domName WebGLRenderingContext.uniform2iv; @docsEditable true |
19729 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; | 19655 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; |
19730 | 19656 |
19731 /** @domName WebGLRenderingContext.uniform3f; @docsEditable true */ | 19657 /// @domName WebGLRenderingContext.uniform3f; @docsEditable true |
19732 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; | 19658 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; |
19733 | 19659 |
19734 /** @domName WebGLRenderingContext.uniform3fv; @docsEditable true */ | 19660 /// @domName WebGLRenderingContext.uniform3fv; @docsEditable true |
19735 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; | 19661 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; |
19736 | 19662 |
19737 /** @domName WebGLRenderingContext.uniform3i; @docsEditable true */ | 19663 /// @domName WebGLRenderingContext.uniform3i; @docsEditable true |
19738 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; | 19664 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; |
19739 | 19665 |
19740 /** @domName WebGLRenderingContext.uniform3iv; @docsEditable true */ | 19666 /// @domName WebGLRenderingContext.uniform3iv; @docsEditable true |
19741 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; | 19667 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; |
19742 | 19668 |
19743 /** @domName WebGLRenderingContext.uniform4f; @docsEditable true */ | 19669 /// @domName WebGLRenderingContext.uniform4f; @docsEditable true |
19744 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati
ve; | 19670 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati
ve; |
19745 | 19671 |
19746 /** @domName WebGLRenderingContext.uniform4fv; @docsEditable true */ | 19672 /// @domName WebGLRenderingContext.uniform4fv; @docsEditable true |
19747 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; | 19673 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; |
19748 | 19674 |
19749 /** @domName WebGLRenderingContext.uniform4i; @docsEditable true */ | 19675 /// @domName WebGLRenderingContext.uniform4i; @docsEditable true |
19750 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati
ve; | 19676 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati
ve; |
19751 | 19677 |
19752 /** @domName WebGLRenderingContext.uniform4iv; @docsEditable true */ | 19678 /// @domName WebGLRenderingContext.uniform4iv; @docsEditable true |
19753 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; | 19679 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; |
19754 | 19680 |
19755 /** @domName WebGLRenderingContext.uniformMatrix2fv; @docsEditable true */ | 19681 /// @domName WebGLRenderingContext.uniformMatrix2fv; @docsEditable true |
19756 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; | 19682 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; |
19757 | 19683 |
19758 /** @domName WebGLRenderingContext.uniformMatrix3fv; @docsEditable true */ | 19684 /// @domName WebGLRenderingContext.uniformMatrix3fv; @docsEditable true |
19759 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; | 19685 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; |
19760 | 19686 |
19761 /** @domName WebGLRenderingContext.uniformMatrix4fv; @docsEditable true */ | 19687 /// @domName WebGLRenderingContext.uniformMatrix4fv; @docsEditable true |
19762 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; | 19688 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; |
19763 | 19689 |
19764 /** @domName WebGLRenderingContext.useProgram; @docsEditable true */ | 19690 /// @domName WebGLRenderingContext.useProgram; @docsEditable true |
19765 void useProgram(WebGLProgram program) native; | 19691 void useProgram(WebGLProgram program) native; |
19766 | 19692 |
19767 /** @domName WebGLRenderingContext.validateProgram; @docsEditable true */ | 19693 /// @domName WebGLRenderingContext.validateProgram; @docsEditable true |
19768 void validateProgram(WebGLProgram program) native; | 19694 void validateProgram(WebGLProgram program) native; |
19769 | 19695 |
19770 /** @domName WebGLRenderingContext.vertexAttrib1f; @docsEditable true */ | 19696 /// @domName WebGLRenderingContext.vertexAttrib1f; @docsEditable true |
19771 void vertexAttrib1f(int indx, num x) native; | 19697 void vertexAttrib1f(int indx, num x) native; |
19772 | 19698 |
19773 /** @domName WebGLRenderingContext.vertexAttrib1fv; @docsEditable true */ | 19699 /// @domName WebGLRenderingContext.vertexAttrib1fv; @docsEditable true |
19774 void vertexAttrib1fv(int indx, Float32Array values) native; | 19700 void vertexAttrib1fv(int indx, Float32Array values) native; |
19775 | 19701 |
19776 /** @domName WebGLRenderingContext.vertexAttrib2f; @docsEditable true */ | 19702 /// @domName WebGLRenderingContext.vertexAttrib2f; @docsEditable true |
19777 void vertexAttrib2f(int indx, num x, num y) native; | 19703 void vertexAttrib2f(int indx, num x, num y) native; |
19778 | 19704 |
19779 /** @domName WebGLRenderingContext.vertexAttrib2fv; @docsEditable true */ | 19705 /// @domName WebGLRenderingContext.vertexAttrib2fv; @docsEditable true |
19780 void vertexAttrib2fv(int indx, Float32Array values) native; | 19706 void vertexAttrib2fv(int indx, Float32Array values) native; |
19781 | 19707 |
19782 /** @domName WebGLRenderingContext.vertexAttrib3f; @docsEditable true */ | 19708 /// @domName WebGLRenderingContext.vertexAttrib3f; @docsEditable true |
19783 void vertexAttrib3f(int indx, num x, num y, num z) native; | 19709 void vertexAttrib3f(int indx, num x, num y, num z) native; |
19784 | 19710 |
19785 /** @domName WebGLRenderingContext.vertexAttrib3fv; @docsEditable true */ | 19711 /// @domName WebGLRenderingContext.vertexAttrib3fv; @docsEditable true |
19786 void vertexAttrib3fv(int indx, Float32Array values) native; | 19712 void vertexAttrib3fv(int indx, Float32Array values) native; |
19787 | 19713 |
19788 /** @domName WebGLRenderingContext.vertexAttrib4f; @docsEditable true */ | 19714 /// @domName WebGLRenderingContext.vertexAttrib4f; @docsEditable true |
19789 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; | 19715 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; |
19790 | 19716 |
19791 /** @domName WebGLRenderingContext.vertexAttrib4fv; @docsEditable true */ | 19717 /// @domName WebGLRenderingContext.vertexAttrib4fv; @docsEditable true |
19792 void vertexAttrib4fv(int indx, Float32Array values) native; | 19718 void vertexAttrib4fv(int indx, Float32Array values) native; |
19793 | 19719 |
19794 /** @domName WebGLRenderingContext.vertexAttribPointer; @docsEditable true */ | 19720 /// @domName WebGLRenderingContext.vertexAttribPointer; @docsEditable true |
19795 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; | 19721 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; |
19796 | 19722 |
19797 /** @domName WebGLRenderingContext.viewport; @docsEditable true */ | 19723 /// @domName WebGLRenderingContext.viewport; @docsEditable true |
19798 void viewport(int x, int y, int width, int height) native; | 19724 void viewport(int x, int y, int width, int height) native; |
19799 } | 19725 } |
19800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19801 // for details. All rights reserved. Use of this source code is governed by a | 19727 // for details. All rights reserved. Use of this source code is governed by a |
19802 // BSD-style license that can be found in the LICENSE file. | 19728 // BSD-style license that can be found in the LICENSE file. |
19803 | 19729 |
19804 | 19730 |
19805 /// @domName WebGLShader; @docsEditable true | 19731 /// @domName WebGLShader; @docsEditable true |
19806 class WebGLShader native "*WebGLShader" { | 19732 class WebGLShader native "*WebGLShader" { |
19807 } | 19733 } |
19808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19809 // for details. All rights reserved. Use of this source code is governed by a | 19735 // for details. All rights reserved. Use of this source code is governed by a |
19810 // BSD-style license that can be found in the LICENSE file. | 19736 // BSD-style license that can be found in the LICENSE file. |
19811 | 19737 |
19812 | 19738 |
19813 /// @domName WebGLShaderPrecisionFormat; @docsEditable true | 19739 /// @domName WebGLShaderPrecisionFormat; @docsEditable true |
19814 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { | 19740 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { |
19815 | 19741 |
19816 /** @domName WebGLShaderPrecisionFormat.precision; @docsEditable true */ | 19742 /// @domName WebGLShaderPrecisionFormat.precision; @docsEditable true |
19817 final int precision; | 19743 final int precision; |
19818 | 19744 |
19819 /** @domName WebGLShaderPrecisionFormat.rangeMax; @docsEditable true */ | 19745 /// @domName WebGLShaderPrecisionFormat.rangeMax; @docsEditable true |
19820 final int rangeMax; | 19746 final int rangeMax; |
19821 | 19747 |
19822 /** @domName WebGLShaderPrecisionFormat.rangeMin; @docsEditable true */ | 19748 /// @domName WebGLShaderPrecisionFormat.rangeMin; @docsEditable true |
19823 final int rangeMin; | 19749 final int rangeMin; |
19824 } | 19750 } |
19825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19826 // for details. All rights reserved. Use of this source code is governed by a | 19752 // for details. All rights reserved. Use of this source code is governed by a |
19827 // BSD-style license that can be found in the LICENSE file. | 19753 // BSD-style license that can be found in the LICENSE file. |
19828 | 19754 |
19829 | 19755 |
19830 /// @domName WebGLTexture; @docsEditable true | 19756 /// @domName WebGLTexture; @docsEditable true |
19831 class WebGLTexture native "*WebGLTexture" { | 19757 class WebGLTexture native "*WebGLTexture" { |
19832 } | 19758 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19871 static const int CSS_FILTER_INVERT = 6; | 19797 static const int CSS_FILTER_INVERT = 6; |
19872 | 19798 |
19873 static const int CSS_FILTER_OPACITY = 7; | 19799 static const int CSS_FILTER_OPACITY = 7; |
19874 | 19800 |
19875 static const int CSS_FILTER_REFERENCE = 1; | 19801 static const int CSS_FILTER_REFERENCE = 1; |
19876 | 19802 |
19877 static const int CSS_FILTER_SATURATE = 4; | 19803 static const int CSS_FILTER_SATURATE = 4; |
19878 | 19804 |
19879 static const int CSS_FILTER_SEPIA = 3; | 19805 static const int CSS_FILTER_SEPIA = 3; |
19880 | 19806 |
19881 /** @domName WebKitCSSFilterValue.operationType; @docsEditable true */ | 19807 /// @domName WebKitCSSFilterValue.operationType; @docsEditable true |
19882 final int operationType; | 19808 final int operationType; |
19883 } | 19809 } |
19884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19885 // for details. All rights reserved. Use of this source code is governed by a | 19811 // for details. All rights reserved. Use of this source code is governed by a |
19886 // BSD-style license that can be found in the LICENSE file. | 19812 // BSD-style license that can be found in the LICENSE file. |
19887 | 19813 |
19888 | 19814 |
19889 /// @domName WebKitNamedFlow; @docsEditable true | 19815 /// @domName WebKitNamedFlow; @docsEditable true |
19890 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { | 19816 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { |
19891 | 19817 |
19892 /** @domName WebKitNamedFlow.firstEmptyRegionIndex; @docsEditable true */ | 19818 /// @domName WebKitNamedFlow.firstEmptyRegionIndex; @docsEditable true |
19893 final int firstEmptyRegionIndex; | 19819 final int firstEmptyRegionIndex; |
19894 | 19820 |
19895 /** @domName WebKitNamedFlow.name; @docsEditable true */ | 19821 /// @domName WebKitNamedFlow.name; @docsEditable true |
19896 final String name; | 19822 final String name; |
19897 | 19823 |
19898 /** @domName WebKitNamedFlow.overset; @docsEditable true */ | 19824 /// @domName WebKitNamedFlow.overset; @docsEditable true |
19899 final bool overset; | 19825 final bool overset; |
19900 | 19826 |
19901 /** @domName WebKitNamedFlow.addEventListener; @docsEditable true */ | 19827 /// @domName WebKitNamedFlow.addEventListener; @docsEditable true |
19902 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 19828 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
19903 | 19829 |
19904 /** @domName WebKitNamedFlow.dispatchEvent; @docsEditable true */ | 19830 /// @domName WebKitNamedFlow.dispatchEvent; @docsEditable true |
19905 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 19831 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
19906 | 19832 |
19907 /** @domName WebKitNamedFlow.getContent; @docsEditable true */ | 19833 /// @domName WebKitNamedFlow.getContent; @docsEditable true |
19908 @Returns('_NodeList') @Creates('_NodeList') | 19834 @Returns('_NodeList') @Creates('_NodeList') |
19909 List<Node> getContent() native; | 19835 List<Node> getContent() native; |
19910 | 19836 |
19911 /** @domName WebKitNamedFlow.getRegions; @docsEditable true */ | 19837 /// @domName WebKitNamedFlow.getRegions; @docsEditable true |
19912 @Returns('_NodeList') @Creates('_NodeList') | 19838 @Returns('_NodeList') @Creates('_NodeList') |
19913 List<Node> getRegions() native; | 19839 List<Node> getRegions() native; |
19914 | 19840 |
19915 /** @domName WebKitNamedFlow.getRegionsByContent; @docsEditable true */ | 19841 /// @domName WebKitNamedFlow.getRegionsByContent; @docsEditable true |
19916 @Returns('_NodeList') @Creates('_NodeList') | 19842 @Returns('_NodeList') @Creates('_NodeList') |
19917 List<Node> getRegionsByContent(Node contentNode) native; | 19843 List<Node> getRegionsByContent(Node contentNode) native; |
19918 | 19844 |
19919 /** @domName WebKitNamedFlow.removeEventListener; @docsEditable true */ | 19845 /// @domName WebKitNamedFlow.removeEventListener; @docsEditable true |
19920 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 19846 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
19921 } | 19847 } |
19922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19923 // for details. All rights reserved. Use of this source code is governed by a | 19849 // for details. All rights reserved. Use of this source code is governed by a |
19924 // BSD-style license that can be found in the LICENSE file. | 19850 // BSD-style license that can be found in the LICENSE file. |
19925 | 19851 |
19926 // WARNING: Do not edit - generated code. | 19852 // WARNING: Do not edit - generated code. |
19927 | 19853 |
19928 | 19854 |
19929 class WebSocket extends EventTarget native "*WebSocket" { | 19855 class WebSocket extends EventTarget native "*WebSocket" { |
19930 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url
); | 19856 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url
); |
19931 | 19857 |
19932 /** | 19858 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
19933 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
19934 */ | |
19935 WebSocketEvents get on => | 19859 WebSocketEvents get on => |
19936 new WebSocketEvents(this); | 19860 new WebSocketEvents(this); |
19937 | 19861 |
19938 static const int CLOSED = 3; | 19862 static const int CLOSED = 3; |
19939 | 19863 |
19940 static const int CLOSING = 2; | 19864 static const int CLOSING = 2; |
19941 | 19865 |
19942 static const int CONNECTING = 0; | 19866 static const int CONNECTING = 0; |
19943 | 19867 |
19944 static const int OPEN = 1; | 19868 static const int OPEN = 1; |
19945 | 19869 |
19946 /** @domName WebSocket.URL; @docsEditable true */ | 19870 /// @domName WebSocket.URL; @docsEditable true |
19947 final String URL; | 19871 final String URL; |
19948 | 19872 |
19949 /** @domName WebSocket.binaryType; @docsEditable true */ | 19873 /// @domName WebSocket.binaryType; @docsEditable true |
19950 String binaryType; | 19874 String binaryType; |
19951 | 19875 |
19952 /** @domName WebSocket.bufferedAmount; @docsEditable true */ | 19876 /// @domName WebSocket.bufferedAmount; @docsEditable true |
19953 final int bufferedAmount; | 19877 final int bufferedAmount; |
19954 | 19878 |
19955 /** @domName WebSocket.extensions; @docsEditable true */ | 19879 /// @domName WebSocket.extensions; @docsEditable true |
19956 final String extensions; | 19880 final String extensions; |
19957 | 19881 |
19958 /** @domName WebSocket.protocol; @docsEditable true */ | 19882 /// @domName WebSocket.protocol; @docsEditable true |
19959 final String protocol; | 19883 final String protocol; |
19960 | 19884 |
19961 /** @domName WebSocket.readyState; @docsEditable true */ | 19885 /// @domName WebSocket.readyState; @docsEditable true |
19962 final int readyState; | 19886 final int readyState; |
19963 | 19887 |
19964 /** @domName WebSocket.url; @docsEditable true */ | 19888 /// @domName WebSocket.url; @docsEditable true |
19965 final String url; | 19889 final String url; |
19966 | 19890 |
19967 /** @domName WebSocket.addEventListener; @docsEditable true */ | 19891 /// @domName WebSocket.addEventListener; @docsEditable true |
19968 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 19892 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
19969 | 19893 |
19970 /** @domName WebSocket.close; @docsEditable true */ | 19894 /// @domName WebSocket.close; @docsEditable true |
19971 void close([int code, String reason]) native; | 19895 void close([int code, String reason]) native; |
19972 | 19896 |
19973 /** @domName WebSocket.dispatchEvent; @docsEditable true */ | 19897 /// @domName WebSocket.dispatchEvent; @docsEditable true |
19974 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 19898 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
19975 | 19899 |
19976 /** @domName WebSocket.removeEventListener; @docsEditable true */ | 19900 /// @domName WebSocket.removeEventListener; @docsEditable true |
19977 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 19901 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
19978 | 19902 |
19979 /** @domName WebSocket.send; @docsEditable true */ | 19903 /// @domName WebSocket.send; @docsEditable true |
19980 void send(data) native; | 19904 void send(data) native; |
19981 | 19905 |
19982 } | 19906 } |
19983 | 19907 |
19984 class WebSocketEvents extends Events { | 19908 class WebSocketEvents extends Events { |
19985 WebSocketEvents(EventTarget _ptr) : super(_ptr); | 19909 WebSocketEvents(EventTarget _ptr) : super(_ptr); |
19986 | 19910 |
19987 EventListenerList get close => this['close']; | 19911 EventListenerList get close => this['close']; |
19988 | 19912 |
19989 EventListenerList get error => this['error']; | 19913 EventListenerList get error => this['error']; |
19990 | 19914 |
19991 EventListenerList get message => this['message']; | 19915 EventListenerList get message => this['message']; |
19992 | 19916 |
19993 EventListenerList get open => this['open']; | 19917 EventListenerList get open => this['open']; |
19994 } | 19918 } |
19995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19996 // for details. All rights reserved. Use of this source code is governed by a | 19920 // for details. All rights reserved. Use of this source code is governed by a |
19997 // BSD-style license that can be found in the LICENSE file. | 19921 // BSD-style license that can be found in the LICENSE file. |
19998 | 19922 |
19999 | 19923 |
20000 class WheelEvent extends MouseEvent native "*WheelEvent" { | 19924 class WheelEvent extends MouseEvent native "*WheelEvent" { |
20001 | 19925 |
20002 /** @domName WheelEvent.webkitDirectionInvertedFromDevice; @docsEditable true
*/ | 19926 /// @domName WheelEvent.webkitDirectionInvertedFromDevice; @docsEditable true |
20003 final bool webkitDirectionInvertedFromDevice; | 19927 final bool webkitDirectionInvertedFromDevice; |
20004 | 19928 |
20005 /** @domName WheelEvent.initWebKitWheelEvent; @docsEditable true */ | 19929 /// @domName WheelEvent.initWebKitWheelEvent; @docsEditable true |
20006 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; | 19930 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; |
20007 | 19931 |
20008 | 19932 |
20009 /** @domName WheelEvent.deltaY */ | 19933 /** @domName WheelEvent.deltaY */ |
20010 num get deltaY { | 19934 num get deltaY { |
20011 if (JS('bool', '#.deltaY !== undefined', this)) { | 19935 if (JS('bool', '#.deltaY !== undefined', this)) { |
20012 // W3C WheelEvent | 19936 // W3C WheelEvent |
20013 return this._deltaY; | 19937 return this._deltaY; |
20014 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { | 19938 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { |
20015 // Chrome and IE | 19939 // Chrome and IE |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20082 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20083 // for details. All rights reserved. Use of this source code is governed by a | 20007 // for details. All rights reserved. Use of this source code is governed by a |
20084 // BSD-style license that can be found in the LICENSE file. | 20008 // BSD-style license that can be found in the LICENSE file. |
20085 | 20009 |
20086 | 20010 |
20087 /// @domName Worker; @docsEditable true | 20011 /// @domName Worker; @docsEditable true |
20088 class Worker extends AbstractWorker native "*Worker" { | 20012 class Worker extends AbstractWorker native "*Worker" { |
20089 | 20013 |
20090 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script
Url); | 20014 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script
Url); |
20091 | 20015 |
20092 /** | 20016 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
20093 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
20094 */ | |
20095 WorkerEvents get on => | 20017 WorkerEvents get on => |
20096 new WorkerEvents(this); | 20018 new WorkerEvents(this); |
20097 | 20019 |
20098 /** @domName Worker.postMessage; @docsEditable true */ | 20020 /// @domName Worker.postMessage; @docsEditable true |
20099 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { | 20021 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { |
20100 if (?messagePorts) { | 20022 if (?messagePorts) { |
20101 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 20023 var message_1 = _convertDartToNative_SerializedScriptValue(message); |
20102 _postMessage_1(message_1, messagePorts); | 20024 _postMessage_1(message_1, messagePorts); |
20103 return; | 20025 return; |
20104 } | 20026 } |
20105 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 20027 var message_2 = _convertDartToNative_SerializedScriptValue(message); |
20106 _postMessage_2(message_2); | 20028 _postMessage_2(message_2); |
20107 return; | 20029 return; |
20108 } | 20030 } |
20109 void _postMessage_1(message, List messagePorts) native "postMessage"; | 20031 void _postMessage_1(message, List messagePorts) native "postMessage"; |
20110 void _postMessage_2(message) native "postMessage"; | 20032 void _postMessage_2(message) native "postMessage"; |
20111 | 20033 |
20112 /** @domName Worker.terminate; @docsEditable true */ | 20034 /// @domName Worker.terminate; @docsEditable true |
20113 void terminate() native; | 20035 void terminate() native; |
20114 } | 20036 } |
20115 | 20037 |
20116 class WorkerEvents extends AbstractWorkerEvents { | 20038 class WorkerEvents extends AbstractWorkerEvents { |
20117 WorkerEvents(EventTarget _ptr) : super(_ptr); | 20039 WorkerEvents(EventTarget _ptr) : super(_ptr); |
20118 | 20040 |
20119 EventListenerList get message => this['message']; | 20041 EventListenerList get message => this['message']; |
20120 } | 20042 } |
20121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20122 // for details. All rights reserved. Use of this source code is governed by a | 20044 // for details. All rights reserved. Use of this source code is governed by a |
20123 // BSD-style license that can be found in the LICENSE file. | 20045 // BSD-style license that can be found in the LICENSE file. |
20124 | 20046 |
20125 | 20047 |
20126 /// @domName WorkerContext; @docsEditable true | 20048 /// @domName WorkerContext; @docsEditable true |
20127 class WorkerContext extends EventTarget native "*WorkerContext" { | 20049 class WorkerContext extends EventTarget native "*WorkerContext" { |
20128 | 20050 |
20129 /** | 20051 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
20130 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent; @docsEditable true | |
20131 */ | |
20132 WorkerContextEvents get on => | 20052 WorkerContextEvents get on => |
20133 new WorkerContextEvents(this); | 20053 new WorkerContextEvents(this); |
20134 | 20054 |
20135 static const int PERSISTENT = 1; | 20055 static const int PERSISTENT = 1; |
20136 | 20056 |
20137 static const int TEMPORARY = 0; | 20057 static const int TEMPORARY = 0; |
20138 | 20058 |
20139 /** @domName WorkerContext.indexedDB; @docsEditable true */ | 20059 /// @domName WorkerContext.indexedDB; @docsEditable true |
20140 final IDBFactory indexedDB; | 20060 final IDBFactory indexedDB; |
20141 | 20061 |
20142 /** @domName WorkerContext.location; @docsEditable true */ | 20062 /// @domName WorkerContext.location; @docsEditable true |
20143 final WorkerLocation location; | 20063 final WorkerLocation location; |
20144 | 20064 |
20145 /** @domName WorkerContext.navigator; @docsEditable true */ | 20065 /// @domName WorkerContext.navigator; @docsEditable true |
20146 final WorkerNavigator navigator; | 20066 final WorkerNavigator navigator; |
20147 | 20067 |
20148 /** @domName WorkerContext.self; @docsEditable true */ | 20068 /// @domName WorkerContext.self; @docsEditable true |
20149 final WorkerContext self; | 20069 final WorkerContext self; |
20150 | 20070 |
20151 /** @domName WorkerContext.webkitIndexedDB; @docsEditable true */ | 20071 /// @domName WorkerContext.webkitIndexedDB; @docsEditable true |
20152 final IDBFactory webkitIndexedDB; | 20072 final IDBFactory webkitIndexedDB; |
20153 | 20073 |
20154 /** @domName WorkerContext.webkitNotifications; @docsEditable true */ | 20074 /// @domName WorkerContext.webkitNotifications; @docsEditable true |
20155 final NotificationCenter webkitNotifications; | 20075 final NotificationCenter webkitNotifications; |
20156 | 20076 |
20157 /** @domName WorkerContext.addEventListener; @docsEditable true */ | 20077 /// @domName WorkerContext.addEventListener; @docsEditable true |
20158 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 20078 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
20159 | 20079 |
20160 /** @domName WorkerContext.clearInterval; @docsEditable true */ | 20080 /// @domName WorkerContext.clearInterval; @docsEditable true |
20161 void clearInterval(int handle) native; | 20081 void clearInterval(int handle) native; |
20162 | 20082 |
20163 /** @domName WorkerContext.clearTimeout; @docsEditable true */ | 20083 /// @domName WorkerContext.clearTimeout; @docsEditable true |
20164 void clearTimeout(int handle) native; | 20084 void clearTimeout(int handle) native; |
20165 | 20085 |
20166 /** @domName WorkerContext.close; @docsEditable true */ | 20086 /// @domName WorkerContext.close; @docsEditable true |
20167 void close() native; | 20087 void close() native; |
20168 | 20088 |
20169 /** @domName WorkerContext.dispatchEvent; @docsEditable true */ | 20089 /// @domName WorkerContext.dispatchEvent; @docsEditable true |
20170 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 20090 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
20171 | 20091 |
20172 /** @domName WorkerContext.importScripts; @docsEditable true */ | 20092 /// @domName WorkerContext.importScripts; @docsEditable true |
20173 void importScripts() native; | 20093 void importScripts() native; |
20174 | 20094 |
20175 /** @domName WorkerContext.openDatabase; @docsEditable true */ | 20095 /// @domName WorkerContext.openDatabase; @docsEditable true |
20176 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; | 20096 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; |
20177 | 20097 |
20178 /** @domName WorkerContext.openDatabaseSync; @docsEditable true */ | 20098 /// @domName WorkerContext.openDatabaseSync; @docsEditable true |
20179 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]) native; | 20099 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]) native; |
20180 | 20100 |
20181 /** @domName WorkerContext.removeEventListener; @docsEditable true */ | 20101 /// @domName WorkerContext.removeEventListener; @docsEditable true |
20182 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 20102 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
20183 | 20103 |
20184 /** @domName WorkerContext.setInterval; @docsEditable true */ | 20104 /// @domName WorkerContext.setInterval; @docsEditable true |
20185 int setInterval(TimeoutHandler handler, int timeout) native; | 20105 int setInterval(TimeoutHandler handler, int timeout) native; |
20186 | 20106 |
20187 /** @domName WorkerContext.setTimeout; @docsEditable true */ | 20107 /// @domName WorkerContext.setTimeout; @docsEditable true |
20188 int setTimeout(TimeoutHandler handler, int timeout) native; | 20108 int setTimeout(TimeoutHandler handler, int timeout) native; |
20189 | 20109 |
20190 /** @domName WorkerContext.webkitRequestFileSystem; @docsEditable true */ | 20110 /// @domName WorkerContext.webkitRequestFileSystem; @docsEditable true |
20191 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; | 20111 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; |
20192 | 20112 |
20193 /** @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true */ | 20113 /// @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true |
20194 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; | 20114 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; |
20195 | 20115 |
20196 /** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable
true */ | 20116 /// @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable
true |
20197 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; | 20117 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; |
20198 | 20118 |
20199 /** @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true
*/ | 20119 /// @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true |
20200 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 20120 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; |
20201 } | 20121 } |
20202 | 20122 |
20203 class WorkerContextEvents extends Events { | 20123 class WorkerContextEvents extends Events { |
20204 WorkerContextEvents(EventTarget _ptr) : super(_ptr); | 20124 WorkerContextEvents(EventTarget _ptr) : super(_ptr); |
20205 | 20125 |
20206 EventListenerList get error => this['error']; | 20126 EventListenerList get error => this['error']; |
20207 } | 20127 } |
20208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20209 // for details. All rights reserved. Use of this source code is governed by a | 20129 // for details. All rights reserved. Use of this source code is governed by a |
20210 // BSD-style license that can be found in the LICENSE file. | 20130 // BSD-style license that can be found in the LICENSE file. |
20211 | 20131 |
20212 | 20132 |
20213 /// @domName WorkerLocation; @docsEditable true | 20133 /// @domName WorkerLocation; @docsEditable true |
20214 class WorkerLocation native "*WorkerLocation" { | 20134 class WorkerLocation native "*WorkerLocation" { |
20215 | 20135 |
20216 /** @domName WorkerLocation.hash; @docsEditable true */ | 20136 /// @domName WorkerLocation.hash; @docsEditable true |
20217 final String hash; | 20137 final String hash; |
20218 | 20138 |
20219 /** @domName WorkerLocation.host; @docsEditable true */ | 20139 /// @domName WorkerLocation.host; @docsEditable true |
20220 final String host; | 20140 final String host; |
20221 | 20141 |
20222 /** @domName WorkerLocation.hostname; @docsEditable true */ | 20142 /// @domName WorkerLocation.hostname; @docsEditable true |
20223 final String hostname; | 20143 final String hostname; |
20224 | 20144 |
20225 /** @domName WorkerLocation.href; @docsEditable true */ | 20145 /// @domName WorkerLocation.href; @docsEditable true |
20226 final String href; | 20146 final String href; |
20227 | 20147 |
20228 /** @domName WorkerLocation.pathname; @docsEditable true */ | 20148 /// @domName WorkerLocation.pathname; @docsEditable true |
20229 final String pathname; | 20149 final String pathname; |
20230 | 20150 |
20231 /** @domName WorkerLocation.port; @docsEditable true */ | 20151 /// @domName WorkerLocation.port; @docsEditable true |
20232 final String port; | 20152 final String port; |
20233 | 20153 |
20234 /** @domName WorkerLocation.protocol; @docsEditable true */ | 20154 /// @domName WorkerLocation.protocol; @docsEditable true |
20235 final String protocol; | 20155 final String protocol; |
20236 | 20156 |
20237 /** @domName WorkerLocation.search; @docsEditable true */ | 20157 /// @domName WorkerLocation.search; @docsEditable true |
20238 final String search; | 20158 final String search; |
20239 | 20159 |
20240 /** @domName WorkerLocation.toString; @docsEditable true */ | 20160 /// @domName WorkerLocation.toString; @docsEditable true |
20241 String toString() native; | 20161 String toString() native; |
20242 } | 20162 } |
20243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20244 // for details. All rights reserved. Use of this source code is governed by a | 20164 // for details. All rights reserved. Use of this source code is governed by a |
20245 // BSD-style license that can be found in the LICENSE file. | 20165 // BSD-style license that can be found in the LICENSE file. |
20246 | 20166 |
20247 | 20167 |
20248 /// @domName WorkerNavigator; @docsEditable true | 20168 /// @domName WorkerNavigator; @docsEditable true |
20249 class WorkerNavigator native "*WorkerNavigator" { | 20169 class WorkerNavigator native "*WorkerNavigator" { |
20250 | 20170 |
20251 /** @domName WorkerNavigator.appName; @docsEditable true */ | 20171 /// @domName WorkerNavigator.appName; @docsEditable true |
20252 final String appName; | 20172 final String appName; |
20253 | 20173 |
20254 /** @domName WorkerNavigator.appVersion; @docsEditable true */ | 20174 /// @domName WorkerNavigator.appVersion; @docsEditable true |
20255 final String appVersion; | 20175 final String appVersion; |
20256 | 20176 |
20257 /** @domName WorkerNavigator.onLine; @docsEditable true */ | 20177 /// @domName WorkerNavigator.onLine; @docsEditable true |
20258 final bool onLine; | 20178 final bool onLine; |
20259 | 20179 |
20260 /** @domName WorkerNavigator.platform; @docsEditable true */ | 20180 /// @domName WorkerNavigator.platform; @docsEditable true |
20261 final String platform; | 20181 final String platform; |
20262 | 20182 |
20263 /** @domName WorkerNavigator.userAgent; @docsEditable true */ | 20183 /// @domName WorkerNavigator.userAgent; @docsEditable true |
20264 final String userAgent; | 20184 final String userAgent; |
20265 } | 20185 } |
20266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20267 // for details. All rights reserved. Use of this source code is governed by a | 20187 // for details. All rights reserved. Use of this source code is governed by a |
20268 // BSD-style license that can be found in the LICENSE file. | 20188 // BSD-style license that can be found in the LICENSE file. |
20269 | 20189 |
20270 | 20190 |
20271 /// @domName XMLSerializer; @docsEditable true | 20191 /// @domName XMLSerializer; @docsEditable true |
20272 class XMLSerializer native "*XMLSerializer" { | 20192 class XMLSerializer native "*XMLSerializer" { |
20273 | 20193 |
20274 factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer()
; | 20194 factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer()
; |
20275 | 20195 |
20276 /** @domName XMLSerializer.serializeToString; @docsEditable true */ | 20196 /// @domName XMLSerializer.serializeToString; @docsEditable true |
20277 String serializeToString(Node node) native; | 20197 String serializeToString(Node node) native; |
20278 } | 20198 } |
20279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20280 // for details. All rights reserved. Use of this source code is governed by a | 20200 // for details. All rights reserved. Use of this source code is governed by a |
20281 // BSD-style license that can be found in the LICENSE file. | 20201 // BSD-style license that can be found in the LICENSE file. |
20282 | 20202 |
20283 | 20203 |
20284 /// @domName XPathEvaluator; @docsEditable true | 20204 /// @domName XPathEvaluator; @docsEditable true |
20285 class XPathEvaluator native "*XPathEvaluator" { | 20205 class XPathEvaluator native "*XPathEvaluator" { |
20286 | 20206 |
20287 factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluato
r(); | 20207 factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluato
r(); |
20288 | 20208 |
20289 /** @domName XPathEvaluator.createExpression; @docsEditable true */ | 20209 /// @domName XPathEvaluator.createExpression; @docsEditable true |
20290 XPathExpression createExpression(String expression, XPathNSResolver resolver)
native; | 20210 XPathExpression createExpression(String expression, XPathNSResolver resolver)
native; |
20291 | 20211 |
20292 /** @domName XPathEvaluator.createNSResolver; @docsEditable true */ | 20212 /// @domName XPathEvaluator.createNSResolver; @docsEditable true |
20293 XPathNSResolver createNSResolver(Node nodeResolver) native; | 20213 XPathNSResolver createNSResolver(Node nodeResolver) native; |
20294 | 20214 |
20295 /** @domName XPathEvaluator.evaluate; @docsEditable true */ | 20215 /// @domName XPathEvaluator.evaluate; @docsEditable true |
20296 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult) native; | 20216 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult) native; |
20297 } | 20217 } |
20298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20299 // for details. All rights reserved. Use of this source code is governed by a | 20219 // for details. All rights reserved. Use of this source code is governed by a |
20300 // BSD-style license that can be found in the LICENSE file. | 20220 // BSD-style license that can be found in the LICENSE file. |
20301 | 20221 |
20302 | 20222 |
20303 /// @domName XPathException; @docsEditable true | 20223 /// @domName XPathException; @docsEditable true |
20304 class XPathException native "*XPathException" { | 20224 class XPathException native "*XPathException" { |
20305 | 20225 |
20306 static const int INVALID_EXPRESSION_ERR = 51; | 20226 static const int INVALID_EXPRESSION_ERR = 51; |
20307 | 20227 |
20308 static const int TYPE_ERR = 52; | 20228 static const int TYPE_ERR = 52; |
20309 | 20229 |
20310 /** @domName XPathException.code; @docsEditable true */ | 20230 /// @domName XPathException.code; @docsEditable true |
20311 final int code; | 20231 final int code; |
20312 | 20232 |
20313 /** @domName XPathException.message; @docsEditable true */ | 20233 /// @domName XPathException.message; @docsEditable true |
20314 final String message; | 20234 final String message; |
20315 | 20235 |
20316 /** @domName XPathException.name; @docsEditable true */ | 20236 /// @domName XPathException.name; @docsEditable true |
20317 final String name; | 20237 final String name; |
20318 | 20238 |
20319 /** @domName XPathException.toString; @docsEditable true */ | 20239 /// @domName XPathException.toString; @docsEditable true |
20320 String toString() native; | 20240 String toString() native; |
20321 } | 20241 } |
20322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20323 // for details. All rights reserved. Use of this source code is governed by a | 20243 // for details. All rights reserved. Use of this source code is governed by a |
20324 // BSD-style license that can be found in the LICENSE file. | 20244 // BSD-style license that can be found in the LICENSE file. |
20325 | 20245 |
20326 | 20246 |
20327 /// @domName XPathExpression; @docsEditable true | 20247 /// @domName XPathExpression; @docsEditable true |
20328 class XPathExpression native "*XPathExpression" { | 20248 class XPathExpression native "*XPathExpression" { |
20329 | 20249 |
20330 /** @domName XPathExpression.evaluate; @docsEditable true */ | 20250 /// @domName XPathExpression.evaluate; @docsEditable true |
20331 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; | 20251 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; |
20332 } | 20252 } |
20333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20334 // for details. All rights reserved. Use of this source code is governed by a | 20254 // for details. All rights reserved. Use of this source code is governed by a |
20335 // BSD-style license that can be found in the LICENSE file. | 20255 // BSD-style license that can be found in the LICENSE file. |
20336 | 20256 |
20337 | 20257 |
20338 /// @domName XPathNSResolver; @docsEditable true | 20258 /// @domName XPathNSResolver; @docsEditable true |
20339 class XPathNSResolver native "*XPathNSResolver" { | 20259 class XPathNSResolver native "*XPathNSResolver" { |
20340 | 20260 |
20341 /** @domName XPathNSResolver.lookupNamespaceURI; @docsEditable true */ | 20261 /// @domName XPathNSResolver.lookupNamespaceURI; @docsEditable true |
20342 String lookupNamespaceURI(String prefix) native; | 20262 String lookupNamespaceURI(String prefix) native; |
20343 } | 20263 } |
20344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20345 // for details. All rights reserved. Use of this source code is governed by a | 20265 // for details. All rights reserved. Use of this source code is governed by a |
20346 // BSD-style license that can be found in the LICENSE file. | 20266 // BSD-style license that can be found in the LICENSE file. |
20347 | 20267 |
20348 | 20268 |
20349 /// @domName XPathResult; @docsEditable true | 20269 /// @domName XPathResult; @docsEditable true |
20350 class XPathResult native "*XPathResult" { | 20270 class XPathResult native "*XPathResult" { |
20351 | 20271 |
(...skipping 10 matching lines...) Expand all Loading... |
20362 static const int ORDERED_NODE_ITERATOR_TYPE = 5; | 20282 static const int ORDERED_NODE_ITERATOR_TYPE = 5; |
20363 | 20283 |
20364 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; | 20284 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; |
20365 | 20285 |
20366 static const int STRING_TYPE = 2; | 20286 static const int STRING_TYPE = 2; |
20367 | 20287 |
20368 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; | 20288 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; |
20369 | 20289 |
20370 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | 20290 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; |
20371 | 20291 |
20372 /** @domName XPathResult.booleanValue; @docsEditable true */ | 20292 /// @domName XPathResult.booleanValue; @docsEditable true |
20373 final bool booleanValue; | 20293 final bool booleanValue; |
20374 | 20294 |
20375 /** @domName XPathResult.invalidIteratorState; @docsEditable true */ | 20295 /// @domName XPathResult.invalidIteratorState; @docsEditable true |
20376 final bool invalidIteratorState; | 20296 final bool invalidIteratorState; |
20377 | 20297 |
20378 /** @domName XPathResult.numberValue; @docsEditable true */ | 20298 /// @domName XPathResult.numberValue; @docsEditable true |
20379 final num numberValue; | 20299 final num numberValue; |
20380 | 20300 |
20381 /** @domName XPathResult.resultType; @docsEditable true */ | 20301 /// @domName XPathResult.resultType; @docsEditable true |
20382 final int resultType; | 20302 final int resultType; |
20383 | 20303 |
20384 /** @domName XPathResult.singleNodeValue; @docsEditable true */ | 20304 /// @domName XPathResult.singleNodeValue; @docsEditable true |
20385 final Node singleNodeValue; | 20305 final Node singleNodeValue; |
20386 | 20306 |
20387 /** @domName XPathResult.snapshotLength; @docsEditable true */ | 20307 /// @domName XPathResult.snapshotLength; @docsEditable true |
20388 final int snapshotLength; | 20308 final int snapshotLength; |
20389 | 20309 |
20390 /** @domName XPathResult.stringValue; @docsEditable true */ | 20310 /// @domName XPathResult.stringValue; @docsEditable true |
20391 final String stringValue; | 20311 final String stringValue; |
20392 | 20312 |
20393 /** @domName XPathResult.iterateNext; @docsEditable true */ | 20313 /// @domName XPathResult.iterateNext; @docsEditable true |
20394 Node iterateNext() native; | 20314 Node iterateNext() native; |
20395 | 20315 |
20396 /** @domName XPathResult.snapshotItem; @docsEditable true */ | 20316 /// @domName XPathResult.snapshotItem; @docsEditable true |
20397 Node snapshotItem(int index) native; | 20317 Node snapshotItem(int index) native; |
20398 } | 20318 } |
20399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20400 // for details. All rights reserved. Use of this source code is governed by a | 20320 // for details. All rights reserved. Use of this source code is governed by a |
20401 // BSD-style license that can be found in the LICENSE file. | 20321 // BSD-style license that can be found in the LICENSE file. |
20402 | 20322 |
20403 | 20323 |
20404 /// @domName XSLTProcessor; @docsEditable true | 20324 /// @domName XSLTProcessor; @docsEditable true |
20405 class XSLTProcessor native "*XSLTProcessor" { | 20325 class XSLTProcessor native "*XSLTProcessor" { |
20406 | 20326 |
20407 factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor()
; | 20327 factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor()
; |
20408 | 20328 |
20409 /** @domName XSLTProcessor.clearParameters; @docsEditable true */ | 20329 /// @domName XSLTProcessor.clearParameters; @docsEditable true |
20410 void clearParameters() native; | 20330 void clearParameters() native; |
20411 | 20331 |
20412 /** @domName XSLTProcessor.getParameter; @docsEditable true */ | 20332 /// @domName XSLTProcessor.getParameter; @docsEditable true |
20413 String getParameter(String namespaceURI, String localName) native; | 20333 String getParameter(String namespaceURI, String localName) native; |
20414 | 20334 |
20415 /** @domName XSLTProcessor.importStylesheet; @docsEditable true */ | 20335 /// @domName XSLTProcessor.importStylesheet; @docsEditable true |
20416 void importStylesheet(Node stylesheet) native; | 20336 void importStylesheet(Node stylesheet) native; |
20417 | 20337 |
20418 /** @domName XSLTProcessor.removeParameter; @docsEditable true */ | 20338 /// @domName XSLTProcessor.removeParameter; @docsEditable true |
20419 void removeParameter(String namespaceURI, String localName) native; | 20339 void removeParameter(String namespaceURI, String localName) native; |
20420 | 20340 |
20421 /** @domName XSLTProcessor.reset; @docsEditable true */ | 20341 /// @domName XSLTProcessor.reset; @docsEditable true |
20422 void reset() native; | 20342 void reset() native; |
20423 | 20343 |
20424 /** @domName XSLTProcessor.setParameter; @docsEditable true */ | 20344 /// @domName XSLTProcessor.setParameter; @docsEditable true |
20425 void setParameter(String namespaceURI, String localName, String value) native; | 20345 void setParameter(String namespaceURI, String localName, String value) native; |
20426 | 20346 |
20427 /** @domName XSLTProcessor.transformToDocument; @docsEditable true */ | 20347 /// @domName XSLTProcessor.transformToDocument; @docsEditable true |
20428 Document transformToDocument(Node source) native; | 20348 Document transformToDocument(Node source) native; |
20429 | 20349 |
20430 /** @domName XSLTProcessor.transformToFragment; @docsEditable true */ | 20350 /// @domName XSLTProcessor.transformToFragment; @docsEditable true |
20431 DocumentFragment transformToFragment(Node source, Document docVal) native; | 20351 DocumentFragment transformToFragment(Node source, Document docVal) native; |
20432 } | 20352 } |
20433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20434 // for details. All rights reserved. Use of this source code is governed by a | 20354 // for details. All rights reserved. Use of this source code is governed by a |
20435 // BSD-style license that can be found in the LICENSE file. | 20355 // BSD-style license that can be found in the LICENSE file. |
20436 | 20356 |
20437 | 20357 |
20438 class _ArrayBufferFactoryProvider { | 20358 class _ArrayBufferFactoryProvider { |
20439 static ArrayBuffer createArrayBuffer(int length) => | 20359 static ArrayBuffer createArrayBuffer(int length) => |
20440 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); | 20360 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20485 JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue); | 20405 JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue); |
20486 } | 20406 } |
20487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20488 // for details. All rights reserved. Use of this source code is governed by a | 20408 // for details. All rights reserved. Use of this source code is governed by a |
20489 // BSD-style license that can be found in the LICENSE file. | 20409 // BSD-style license that can be found in the LICENSE file. |
20490 | 20410 |
20491 | 20411 |
20492 /// @domName CSSRuleList; @docsEditable true | 20412 /// @domName CSSRuleList; @docsEditable true |
20493 class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native "
*CSSRuleList" { | 20413 class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native "
*CSSRuleList" { |
20494 | 20414 |
20495 /** @domName CSSRuleList.length; @docsEditable true */ | 20415 /// @domName CSSRuleList.length; @docsEditable true |
20496 final int length; | 20416 final int length; |
20497 | 20417 |
20498 CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index); | 20418 CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index); |
20499 | 20419 |
20500 void operator[]=(int index, CSSRule value) { | 20420 void operator[]=(int index, CSSRule value) { |
20501 throw new UnsupportedError("Cannot assign element of immutable List."); | 20421 throw new UnsupportedError("Cannot assign element of immutable List."); |
20502 } | 20422 } |
20503 // -- start List<CSSRule> mixins. | 20423 // -- start List<CSSRule> mixins. |
20504 // CSSRule is the element type. | 20424 // CSSRule is the element type. |
20505 | 20425 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20573 | 20493 |
20574 void insertRange(int start, int rangeLength, [CSSRule initialValue]) { | 20494 void insertRange(int start, int rangeLength, [CSSRule initialValue]) { |
20575 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20495 throw new UnsupportedError("Cannot insertRange on immutable List."); |
20576 } | 20496 } |
20577 | 20497 |
20578 List<CSSRule> getRange(int start, int rangeLength) => | 20498 List<CSSRule> getRange(int start, int rangeLength) => |
20579 _Lists.getRange(this, start, rangeLength, <CSSRule>[]); | 20499 _Lists.getRange(this, start, rangeLength, <CSSRule>[]); |
20580 | 20500 |
20581 // -- end List<CSSRule> mixins. | 20501 // -- end List<CSSRule> mixins. |
20582 | 20502 |
20583 /** @domName CSSRuleList.item; @docsEditable true */ | 20503 /// @domName CSSRuleList.item; @docsEditable true |
20584 CSSRule item(int index) native; | 20504 CSSRule item(int index) native; |
20585 } | 20505 } |
20586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20587 // for details. All rights reserved. Use of this source code is governed by a | 20507 // for details. All rights reserved. Use of this source code is governed by a |
20588 // BSD-style license that can be found in the LICENSE file. | 20508 // BSD-style license that can be found in the LICENSE file. |
20589 | 20509 |
20590 | 20510 |
20591 /// @domName CSSValueList; @docsEditable true | 20511 /// @domName CSSValueList; @docsEditable true |
20592 class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi
ngBehavior native "*CSSValueList" { | 20512 class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi
ngBehavior native "*CSSValueList" { |
20593 | 20513 |
20594 /** @domName CSSValueList.length; @docsEditable true */ | 20514 /// @domName CSSValueList.length; @docsEditable true |
20595 final int length; | 20515 final int length; |
20596 | 20516 |
20597 CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index); | 20517 CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index); |
20598 | 20518 |
20599 void operator[]=(int index, CSSValue value) { | 20519 void operator[]=(int index, CSSValue value) { |
20600 throw new UnsupportedError("Cannot assign element of immutable List."); | 20520 throw new UnsupportedError("Cannot assign element of immutable List."); |
20601 } | 20521 } |
20602 // -- start List<CSSValue> mixins. | 20522 // -- start List<CSSValue> mixins. |
20603 // CSSValue is the element type. | 20523 // CSSValue is the element type. |
20604 | 20524 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20672 | 20592 |
20673 void insertRange(int start, int rangeLength, [CSSValue initialValue]) { | 20593 void insertRange(int start, int rangeLength, [CSSValue initialValue]) { |
20674 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20594 throw new UnsupportedError("Cannot insertRange on immutable List."); |
20675 } | 20595 } |
20676 | 20596 |
20677 List<CSSValue> getRange(int start, int rangeLength) => | 20597 List<CSSValue> getRange(int start, int rangeLength) => |
20678 _Lists.getRange(this, start, rangeLength, <CSSValue>[]); | 20598 _Lists.getRange(this, start, rangeLength, <CSSValue>[]); |
20679 | 20599 |
20680 // -- end List<CSSValue> mixins. | 20600 // -- end List<CSSValue> mixins. |
20681 | 20601 |
20682 /** @domName CSSValueList.item; @docsEditable true */ | 20602 /// @domName CSSValueList.item; @docsEditable true |
20683 CSSValue item(int index) native; | 20603 CSSValue item(int index) native; |
20684 } | 20604 } |
20685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20686 // for details. All rights reserved. Use of this source code is governed by a | 20606 // for details. All rights reserved. Use of this source code is governed by a |
20687 // BSD-style license that can be found in the LICENSE file. | 20607 // BSD-style license that can be found in the LICENSE file. |
20688 | 20608 |
20689 | 20609 |
20690 /// @domName ClientRectList; @docsEditable true | 20610 /// @domName ClientRectList; @docsEditable true |
20691 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
tive "*ClientRectList" { | 20611 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
tive "*ClientRectList" { |
20692 | 20612 |
20693 /** @domName ClientRectList.length; @docsEditable true */ | 20613 /// @domName ClientRectList.length; @docsEditable true |
20694 final int length; | 20614 final int length; |
20695 | 20615 |
20696 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); | 20616 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); |
20697 | 20617 |
20698 void operator[]=(int index, ClientRect value) { | 20618 void operator[]=(int index, ClientRect value) { |
20699 throw new UnsupportedError("Cannot assign element of immutable List."); | 20619 throw new UnsupportedError("Cannot assign element of immutable List."); |
20700 } | 20620 } |
20701 // -- start List<ClientRect> mixins. | 20621 // -- start List<ClientRect> mixins. |
20702 // ClientRect is the element type. | 20622 // ClientRect is the element type. |
20703 | 20623 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20771 | 20691 |
20772 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { | 20692 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { |
20773 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20693 throw new UnsupportedError("Cannot insertRange on immutable List."); |
20774 } | 20694 } |
20775 | 20695 |
20776 List<ClientRect> getRange(int start, int rangeLength) => | 20696 List<ClientRect> getRange(int start, int rangeLength) => |
20777 _Lists.getRange(this, start, rangeLength, <ClientRect>[]); | 20697 _Lists.getRange(this, start, rangeLength, <ClientRect>[]); |
20778 | 20698 |
20779 // -- end List<ClientRect> mixins. | 20699 // -- end List<ClientRect> mixins. |
20780 | 20700 |
20781 /** @domName ClientRectList.item; @docsEditable true */ | 20701 /// @domName ClientRectList.item; @docsEditable true |
20782 ClientRect item(int index) native; | 20702 ClientRect item(int index) native; |
20783 } | 20703 } |
20784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20785 // for details. All rights reserved. Use of this source code is governed by a | 20705 // for details. All rights reserved. Use of this source code is governed by a |
20786 // BSD-style license that can be found in the LICENSE file. | 20706 // BSD-style license that can be found in the LICENSE file. |
20787 | 20707 |
20788 | 20708 |
20789 class _DOMParserFactoryProvider { | 20709 class _DOMParserFactoryProvider { |
20790 static DOMParser createDOMParser() => | 20710 static DOMParser createDOMParser() => |
20791 JS('DOMParser', 'new DOMParser()' ); | 20711 JS('DOMParser', 'new DOMParser()' ); |
20792 } | 20712 } |
20793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20794 // for details. All rights reserved. Use of this source code is governed by a | 20714 // for details. All rights reserved. Use of this source code is governed by a |
20795 // BSD-style license that can be found in the LICENSE file. | 20715 // BSD-style license that can be found in the LICENSE file. |
20796 | 20716 |
20797 | 20717 |
20798 /// @domName DOMStringList; @docsEditable true | 20718 /// @domName DOMStringList; @docsEditable true |
20799 class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native
"*DOMStringList" { | 20719 class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native
"*DOMStringList" { |
20800 | 20720 |
20801 /** @domName DOMStringList.length; @docsEditable true */ | 20721 /// @domName DOMStringList.length; @docsEditable true |
20802 final int length; | 20722 final int length; |
20803 | 20723 |
20804 String operator[](int index) => JS("String", "#[#]", this, index); | 20724 String operator[](int index) => JS("String", "#[#]", this, index); |
20805 | 20725 |
20806 void operator[]=(int index, String value) { | 20726 void operator[]=(int index, String value) { |
20807 throw new UnsupportedError("Cannot assign element of immutable List."); | 20727 throw new UnsupportedError("Cannot assign element of immutable List."); |
20808 } | 20728 } |
20809 // -- start List<String> mixins. | 20729 // -- start List<String> mixins. |
20810 // String is the element type. | 20730 // String is the element type. |
20811 | 20731 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20879 | 20799 |
20880 void insertRange(int start, int rangeLength, [String initialValue]) { | 20800 void insertRange(int start, int rangeLength, [String initialValue]) { |
20881 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20801 throw new UnsupportedError("Cannot insertRange on immutable List."); |
20882 } | 20802 } |
20883 | 20803 |
20884 List<String> getRange(int start, int rangeLength) => | 20804 List<String> getRange(int start, int rangeLength) => |
20885 _Lists.getRange(this, start, rangeLength, <String>[]); | 20805 _Lists.getRange(this, start, rangeLength, <String>[]); |
20886 | 20806 |
20887 // -- end List<String> mixins. | 20807 // -- end List<String> mixins. |
20888 | 20808 |
20889 /** @domName DOMStringList.contains; @docsEditable true */ | 20809 /// @domName DOMStringList.contains; @docsEditable true |
20890 bool contains(String string) native; | 20810 bool contains(String string) native; |
20891 | 20811 |
20892 /** @domName DOMStringList.item; @docsEditable true */ | 20812 /// @domName DOMStringList.item; @docsEditable true |
20893 String item(int index) native; | 20813 String item(int index) native; |
20894 } | 20814 } |
20895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20815 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20896 // for details. All rights reserved. Use of this source code is governed by a | 20816 // for details. All rights reserved. Use of this source code is governed by a |
20897 // BSD-style license that can be found in the LICENSE file. | 20817 // BSD-style license that can be found in the LICENSE file. |
20898 | 20818 |
20899 | 20819 |
20900 class _DataViewFactoryProvider { | 20820 class _DataViewFactoryProvider { |
20901 static DataView createDataView( | 20821 static DataView createDataView( |
20902 ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) { | 20822 ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) { |
20903 if (byteOffset == null) { | 20823 if (byteOffset == null) { |
20904 return JS('DataView', 'new DataView(#)', buffer); | 20824 return JS('DataView', 'new DataView(#)', buffer); |
20905 } | 20825 } |
20906 if (byteLength == null) { | 20826 if (byteLength == null) { |
20907 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); | 20827 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); |
20908 } | 20828 } |
20909 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength)
; | 20829 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength)
; |
20910 } | 20830 } |
20911 } | 20831 } |
20912 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20913 // for details. All rights reserved. Use of this source code is governed by a | 20833 // for details. All rights reserved. Use of this source code is governed by a |
20914 // BSD-style license that can be found in the LICENSE file. | 20834 // BSD-style license that can be found in the LICENSE file. |
20915 | 20835 |
20916 | 20836 |
20917 /// @domName EntryArray; @docsEditable true | 20837 /// @domName EntryArray; @docsEditable true |
20918 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
tryArray" { | 20838 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
tryArray" { |
20919 | 20839 |
20920 /** @domName EntryArray.length; @docsEditable true */ | 20840 /// @domName EntryArray.length; @docsEditable true |
20921 final int length; | 20841 final int length; |
20922 | 20842 |
20923 Entry operator[](int index) => JS("Entry", "#[#]", this, index); | 20843 Entry operator[](int index) => JS("Entry", "#[#]", this, index); |
20924 | 20844 |
20925 void operator[]=(int index, Entry value) { | 20845 void operator[]=(int index, Entry value) { |
20926 throw new UnsupportedError("Cannot assign element of immutable List."); | 20846 throw new UnsupportedError("Cannot assign element of immutable List."); |
20927 } | 20847 } |
20928 // -- start List<Entry> mixins. | 20848 // -- start List<Entry> mixins. |
20929 // Entry is the element type. | 20849 // Entry is the element type. |
20930 | 20850 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20998 | 20918 |
20999 void insertRange(int start, int rangeLength, [Entry initialValue]) { | 20919 void insertRange(int start, int rangeLength, [Entry initialValue]) { |
21000 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20920 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21001 } | 20921 } |
21002 | 20922 |
21003 List<Entry> getRange(int start, int rangeLength) => | 20923 List<Entry> getRange(int start, int rangeLength) => |
21004 _Lists.getRange(this, start, rangeLength, <Entry>[]); | 20924 _Lists.getRange(this, start, rangeLength, <Entry>[]); |
21005 | 20925 |
21006 // -- end List<Entry> mixins. | 20926 // -- end List<Entry> mixins. |
21007 | 20927 |
21008 /** @domName EntryArray.item; @docsEditable true */ | 20928 /// @domName EntryArray.item; @docsEditable true |
21009 Entry item(int index) native; | 20929 Entry item(int index) native; |
21010 } | 20930 } |
21011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21012 // for details. All rights reserved. Use of this source code is governed by a | 20932 // for details. All rights reserved. Use of this source code is governed by a |
21013 // BSD-style license that can be found in the LICENSE file. | 20933 // BSD-style license that can be found in the LICENSE file. |
21014 | 20934 |
21015 | 20935 |
21016 /// @domName EntryArraySync; @docsEditable true | 20936 /// @domName EntryArraySync; @docsEditable true |
21017 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
ive "*EntryArraySync" { | 20937 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
ive "*EntryArraySync" { |
21018 | 20938 |
21019 /** @domName EntryArraySync.length; @docsEditable true */ | 20939 /// @domName EntryArraySync.length; @docsEditable true |
21020 final int length; | 20940 final int length; |
21021 | 20941 |
21022 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); | 20942 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); |
21023 | 20943 |
21024 void operator[]=(int index, EntrySync value) { | 20944 void operator[]=(int index, EntrySync value) { |
21025 throw new UnsupportedError("Cannot assign element of immutable List."); | 20945 throw new UnsupportedError("Cannot assign element of immutable List."); |
21026 } | 20946 } |
21027 // -- start List<EntrySync> mixins. | 20947 // -- start List<EntrySync> mixins. |
21028 // EntrySync is the element type. | 20948 // EntrySync is the element type. |
21029 | 20949 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21097 | 21017 |
21098 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { | 21018 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { |
21099 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21019 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21100 } | 21020 } |
21101 | 21021 |
21102 List<EntrySync> getRange(int start, int rangeLength) => | 21022 List<EntrySync> getRange(int start, int rangeLength) => |
21103 _Lists.getRange(this, start, rangeLength, <EntrySync>[]); | 21023 _Lists.getRange(this, start, rangeLength, <EntrySync>[]); |
21104 | 21024 |
21105 // -- end List<EntrySync> mixins. | 21025 // -- end List<EntrySync> mixins. |
21106 | 21026 |
21107 /** @domName EntryArraySync.item; @docsEditable true */ | 21027 /// @domName EntryArraySync.item; @docsEditable true |
21108 EntrySync item(int index) native; | 21028 EntrySync item(int index) native; |
21109 } | 21029 } |
21110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21111 // for details. All rights reserved. Use of this source code is governed by a | 21031 // for details. All rights reserved. Use of this source code is governed by a |
21112 // BSD-style license that can be found in the LICENSE file. | 21032 // BSD-style license that can be found in the LICENSE file. |
21113 | 21033 |
21114 | 21034 |
21115 class _EventSourceFactoryProvider { | 21035 class _EventSourceFactoryProvider { |
21116 static EventSource createEventSource(String scriptUrl) => | 21036 static EventSource createEventSource(String scriptUrl) => |
21117 JS('EventSource', 'new EventSource(#)', scriptUrl); | 21037 JS('EventSource', 'new EventSource(#)', scriptUrl); |
21118 } | 21038 } |
21119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21120 // for details. All rights reserved. Use of this source code is governed by a | 21040 // for details. All rights reserved. Use of this source code is governed by a |
21121 // BSD-style license that can be found in the LICENSE file. | 21041 // BSD-style license that can be found in the LICENSE file. |
21122 | 21042 |
21123 | 21043 |
21124 /// @domName FileList; @docsEditable true | 21044 /// @domName FileList; @docsEditable true |
21125 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL
ist" { | 21045 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL
ist" { |
21126 | 21046 |
21127 /** @domName FileList.length; @docsEditable true */ | 21047 /// @domName FileList.length; @docsEditable true |
21128 final int length; | 21048 final int length; |
21129 | 21049 |
21130 File operator[](int index) => JS("File", "#[#]", this, index); | 21050 File operator[](int index) => JS("File", "#[#]", this, index); |
21131 | 21051 |
21132 void operator[]=(int index, File value) { | 21052 void operator[]=(int index, File value) { |
21133 throw new UnsupportedError("Cannot assign element of immutable List."); | 21053 throw new UnsupportedError("Cannot assign element of immutable List."); |
21134 } | 21054 } |
21135 // -- start List<File> mixins. | 21055 // -- start List<File> mixins. |
21136 // File is the element type. | 21056 // File is the element type. |
21137 | 21057 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21205 | 21125 |
21206 void insertRange(int start, int rangeLength, [File initialValue]) { | 21126 void insertRange(int start, int rangeLength, [File initialValue]) { |
21207 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21127 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21208 } | 21128 } |
21209 | 21129 |
21210 List<File> getRange(int start, int rangeLength) => | 21130 List<File> getRange(int start, int rangeLength) => |
21211 _Lists.getRange(this, start, rangeLength, <File>[]); | 21131 _Lists.getRange(this, start, rangeLength, <File>[]); |
21212 | 21132 |
21213 // -- end List<File> mixins. | 21133 // -- end List<File> mixins. |
21214 | 21134 |
21215 /** @domName FileList.item; @docsEditable true */ | 21135 /// @domName FileList.item; @docsEditable true |
21216 File item(int index) native; | 21136 File item(int index) native; |
21217 } | 21137 } |
21218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21219 // for details. All rights reserved. Use of this source code is governed by a | 21139 // for details. All rights reserved. Use of this source code is governed by a |
21220 // BSD-style license that can be found in the LICENSE file. | 21140 // BSD-style license that can be found in the LICENSE file. |
21221 | 21141 |
21222 | 21142 |
21223 class _FileReaderFactoryProvider { | 21143 class _FileReaderFactoryProvider { |
21224 static FileReader createFileReader() => | 21144 static FileReader createFileReader() => |
21225 JS('FileReader', 'new FileReader()' ); | 21145 JS('FileReader', 'new FileReader()' ); |
(...skipping 19 matching lines...) Expand all Loading... |
21245 } | 21165 } |
21246 } | 21166 } |
21247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21248 // for details. All rights reserved. Use of this source code is governed by a | 21168 // for details. All rights reserved. Use of this source code is governed by a |
21249 // BSD-style license that can be found in the LICENSE file. | 21169 // BSD-style license that can be found in the LICENSE file. |
21250 | 21170 |
21251 | 21171 |
21252 /// @domName GamepadList; @docsEditable true | 21172 /// @domName GamepadList; @docsEditable true |
21253 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
*GamepadList" { | 21173 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
*GamepadList" { |
21254 | 21174 |
21255 /** @domName GamepadList.length; @docsEditable true */ | 21175 /// @domName GamepadList.length; @docsEditable true |
21256 final int length; | 21176 final int length; |
21257 | 21177 |
21258 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); | 21178 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); |
21259 | 21179 |
21260 void operator[]=(int index, Gamepad value) { | 21180 void operator[]=(int index, Gamepad value) { |
21261 throw new UnsupportedError("Cannot assign element of immutable List."); | 21181 throw new UnsupportedError("Cannot assign element of immutable List."); |
21262 } | 21182 } |
21263 // -- start List<Gamepad> mixins. | 21183 // -- start List<Gamepad> mixins. |
21264 // Gamepad is the element type. | 21184 // Gamepad is the element type. |
21265 | 21185 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21333 | 21253 |
21334 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { | 21254 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { |
21335 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21255 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21336 } | 21256 } |
21337 | 21257 |
21338 List<Gamepad> getRange(int start, int rangeLength) => | 21258 List<Gamepad> getRange(int start, int rangeLength) => |
21339 _Lists.getRange(this, start, rangeLength, <Gamepad>[]); | 21259 _Lists.getRange(this, start, rangeLength, <Gamepad>[]); |
21340 | 21260 |
21341 // -- end List<Gamepad> mixins. | 21261 // -- end List<Gamepad> mixins. |
21342 | 21262 |
21343 /** @domName GamepadList.item; @docsEditable true */ | 21263 /// @domName GamepadList.item; @docsEditable true |
21344 Gamepad item(int index) native; | 21264 Gamepad item(int index) native; |
21345 } | 21265 } |
21346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21347 // for details. All rights reserved. Use of this source code is governed by a | 21267 // for details. All rights reserved. Use of this source code is governed by a |
21348 // BSD-style license that can be found in the LICENSE file. | 21268 // BSD-style license that can be found in the LICENSE file. |
21349 | 21269 |
21350 | 21270 |
21351 class _HttpRequestFactoryProvider { | 21271 class _HttpRequestFactoryProvider { |
21352 static HttpRequest createHttpRequest() => | 21272 static HttpRequest createHttpRequest() => |
21353 JS('HttpRequest', 'new XMLHttpRequest()'); | 21273 JS('HttpRequest', 'new XMLHttpRequest()'); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21397 JS('MediaStream', 'new MediaStream(#,#)', audioTracks, videoTracks); | 21317 JS('MediaStream', 'new MediaStream(#,#)', audioTracks, videoTracks); |
21398 } | 21318 } |
21399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21400 // for details. All rights reserved. Use of this source code is governed by a | 21320 // for details. All rights reserved. Use of this source code is governed by a |
21401 // BSD-style license that can be found in the LICENSE file. | 21321 // BSD-style license that can be found in the LICENSE file. |
21402 | 21322 |
21403 | 21323 |
21404 /// @domName MediaStreamList; @docsEditable true | 21324 /// @domName MediaStreamList; @docsEditable true |
21405 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
native "*MediaStreamList" { | 21325 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
native "*MediaStreamList" { |
21406 | 21326 |
21407 /** @domName MediaStreamList.length; @docsEditable true */ | 21327 /// @domName MediaStreamList.length; @docsEditable true |
21408 final int length; | 21328 final int length; |
21409 | 21329 |
21410 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); | 21330 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); |
21411 | 21331 |
21412 void operator[]=(int index, MediaStream value) { | 21332 void operator[]=(int index, MediaStream value) { |
21413 throw new UnsupportedError("Cannot assign element of immutable List."); | 21333 throw new UnsupportedError("Cannot assign element of immutable List."); |
21414 } | 21334 } |
21415 // -- start List<MediaStream> mixins. | 21335 // -- start List<MediaStream> mixins. |
21416 // MediaStream is the element type. | 21336 // MediaStream is the element type. |
21417 | 21337 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21485 | 21405 |
21486 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { | 21406 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { |
21487 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21407 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21488 } | 21408 } |
21489 | 21409 |
21490 List<MediaStream> getRange(int start, int rangeLength) => | 21410 List<MediaStream> getRange(int start, int rangeLength) => |
21491 _Lists.getRange(this, start, rangeLength, <MediaStream>[]); | 21411 _Lists.getRange(this, start, rangeLength, <MediaStream>[]); |
21492 | 21412 |
21493 // -- end List<MediaStream> mixins. | 21413 // -- end List<MediaStream> mixins. |
21494 | 21414 |
21495 /** @domName MediaStreamList.item; @docsEditable true */ | 21415 /// @domName MediaStreamList.item; @docsEditable true |
21496 MediaStream item(int index) native; | 21416 MediaStream item(int index) native; |
21497 } | 21417 } |
21498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21499 // for details. All rights reserved. Use of this source code is governed by a | 21419 // for details. All rights reserved. Use of this source code is governed by a |
21500 // BSD-style license that can be found in the LICENSE file. | 21420 // BSD-style license that can be found in the LICENSE file. |
21501 | 21421 |
21502 | 21422 |
21503 class _MessageChannelFactoryProvider { | 21423 class _MessageChannelFactoryProvider { |
21504 static MessageChannel createMessageChannel() => | 21424 static MessageChannel createMessageChannel() => |
21505 JS('MessageChannel', 'new MessageChannel()' ); | 21425 JS('MessageChannel', 'new MessageChannel()' ); |
(...skipping 25 matching lines...) Expand all Loading... |
21531 // JS('var', 'new (window.MutationObserver)(#)', callback); | 21451 // JS('var', 'new (window.MutationObserver)(#)', callback); |
21532 } | 21452 } |
21533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21534 // for details. All rights reserved. Use of this source code is governed by a | 21454 // for details. All rights reserved. Use of this source code is governed by a |
21535 // BSD-style license that can be found in the LICENSE file. | 21455 // BSD-style license that can be found in the LICENSE file. |
21536 | 21456 |
21537 | 21457 |
21538 /// @domName NodeList; @docsEditable true | 21458 /// @domName NodeList; @docsEditable true |
21539 class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeL
ist" { | 21459 class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeL
ist" { |
21540 | 21460 |
21541 /** @domName NodeList.length; @docsEditable true */ | 21461 /// @domName NodeList.length; @docsEditable true |
21542 final int length; | 21462 final int length; |
21543 | 21463 |
21544 Node operator[](int index) => JS("Node", "#[#]", this, index); | 21464 Node operator[](int index) => JS("Node", "#[#]", this, index); |
21545 | 21465 |
21546 void operator[]=(int index, Node value) { | 21466 void operator[]=(int index, Node value) { |
21547 throw new UnsupportedError("Cannot assign element of immutable List."); | 21467 throw new UnsupportedError("Cannot assign element of immutable List."); |
21548 } | 21468 } |
21549 // -- start List<Node> mixins. | 21469 // -- start List<Node> mixins. |
21550 // Node is the element type. | 21470 // Node is the element type. |
21551 | 21471 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21619 | 21539 |
21620 void insertRange(int start, int rangeLength, [Node initialValue]) { | 21540 void insertRange(int start, int rangeLength, [Node initialValue]) { |
21621 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21541 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21622 } | 21542 } |
21623 | 21543 |
21624 List<Node> getRange(int start, int rangeLength) => | 21544 List<Node> getRange(int start, int rangeLength) => |
21625 _Lists.getRange(this, start, rangeLength, <Node>[]); | 21545 _Lists.getRange(this, start, rangeLength, <Node>[]); |
21626 | 21546 |
21627 // -- end List<Node> mixins. | 21547 // -- end List<Node> mixins. |
21628 | 21548 |
21629 /** @domName NodeList.item; @docsEditable true */ | 21549 /// @domName NodeList.item; @docsEditable true |
21630 Node _item(int index) native "item"; | 21550 Node _item(int index) native "item"; |
21631 } | 21551 } |
21632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21633 // for details. All rights reserved. Use of this source code is governed by a | 21553 // for details. All rights reserved. Use of this source code is governed by a |
21634 // BSD-style license that can be found in the LICENSE file. | 21554 // BSD-style license that can be found in the LICENSE file. |
21635 | 21555 |
21636 | 21556 |
21637 class _NotificationFactoryProvider { | 21557 class _NotificationFactoryProvider { |
21638 static Notification createNotification(String title, [Map options]) => | 21558 static Notification createNotification(String title, [Map options]) => |
21639 JS('Notification', 'new Notification(#,#)', title, options); | 21559 JS('Notification', 'new Notification(#,#)', title, options); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21748 JS('SpeechGrammarList', 'new SpeechGrammarList()' ); | 21668 JS('SpeechGrammarList', 'new SpeechGrammarList()' ); |
21749 } | 21669 } |
21750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21751 // for details. All rights reserved. Use of this source code is governed by a | 21671 // for details. All rights reserved. Use of this source code is governed by a |
21752 // BSD-style license that can be found in the LICENSE file. | 21672 // BSD-style license that can be found in the LICENSE file. |
21753 | 21673 |
21754 | 21674 |
21755 /// @domName SpeechInputResultList; @docsEditable true | 21675 /// @domName SpeechInputResultList; @docsEditable true |
21756 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
nputResult> native "*SpeechInputResultList" { | 21676 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
nputResult> native "*SpeechInputResultList" { |
21757 | 21677 |
21758 /** @domName SpeechInputResultList.length; @docsEditable true */ | 21678 /// @domName SpeechInputResultList.length; @docsEditable true |
21759 final int length; | 21679 final int length; |
21760 | 21680 |
21761 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi
s, index); | 21681 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi
s, index); |
21762 | 21682 |
21763 void operator[]=(int index, SpeechInputResult value) { | 21683 void operator[]=(int index, SpeechInputResult value) { |
21764 throw new UnsupportedError("Cannot assign element of immutable List."); | 21684 throw new UnsupportedError("Cannot assign element of immutable List."); |
21765 } | 21685 } |
21766 // -- start List<SpeechInputResult> mixins. | 21686 // -- start List<SpeechInputResult> mixins. |
21767 // SpeechInputResult is the element type. | 21687 // SpeechInputResult is the element type. |
21768 | 21688 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21836 | 21756 |
21837 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue])
{ | 21757 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue])
{ |
21838 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21758 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21839 } | 21759 } |
21840 | 21760 |
21841 List<SpeechInputResult> getRange(int start, int rangeLength) => | 21761 List<SpeechInputResult> getRange(int start, int rangeLength) => |
21842 _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); | 21762 _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); |
21843 | 21763 |
21844 // -- end List<SpeechInputResult> mixins. | 21764 // -- end List<SpeechInputResult> mixins. |
21845 | 21765 |
21846 /** @domName SpeechInputResultList.item; @docsEditable true */ | 21766 /// @domName SpeechInputResultList.item; @docsEditable true |
21847 SpeechInputResult item(int index) native; | 21767 SpeechInputResult item(int index) native; |
21848 } | 21768 } |
21849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21850 // for details. All rights reserved. Use of this source code is governed by a | 21770 // for details. All rights reserved. Use of this source code is governed by a |
21851 // BSD-style license that can be found in the LICENSE file. | 21771 // BSD-style license that can be found in the LICENSE file. |
21852 | 21772 |
21853 | 21773 |
21854 class _SpeechRecognitionFactoryProvider { | 21774 class _SpeechRecognitionFactoryProvider { |
21855 static SpeechRecognition createSpeechRecognition() => | 21775 static SpeechRecognition createSpeechRecognition() => |
21856 JS('SpeechRecognition', 'new SpeechRecognition()' ); | 21776 JS('SpeechRecognition', 'new SpeechRecognition()' ); |
21857 } | 21777 } |
21858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21859 // for details. All rights reserved. Use of this source code is governed by a | 21779 // for details. All rights reserved. Use of this source code is governed by a |
21860 // BSD-style license that can be found in the LICENSE file. | 21780 // BSD-style license that can be found in the LICENSE file. |
21861 | 21781 |
21862 | 21782 |
21863 /// @domName SpeechRecognitionResultList; @docsEditable true | 21783 /// @domName SpeechRecognitionResultList; @docsEditable true |
21864 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
peechRecognitionResult> native "*SpeechRecognitionResultList" { | 21784 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
peechRecognitionResult> native "*SpeechRecognitionResultList" { |
21865 | 21785 |
21866 /** @domName SpeechRecognitionResultList.length; @docsEditable true */ | 21786 /// @domName SpeechRecognitionResultList.length; @docsEditable true |
21867 final int length; | 21787 final int length; |
21868 | 21788 |
21869 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult",
"#[#]", this, index); | 21789 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult",
"#[#]", this, index); |
21870 | 21790 |
21871 void operator[]=(int index, SpeechRecognitionResult value) { | 21791 void operator[]=(int index, SpeechRecognitionResult value) { |
21872 throw new UnsupportedError("Cannot assign element of immutable List."); | 21792 throw new UnsupportedError("Cannot assign element of immutable List."); |
21873 } | 21793 } |
21874 // -- start List<SpeechRecognitionResult> mixins. | 21794 // -- start List<SpeechRecognitionResult> mixins. |
21875 // SpeechRecognitionResult is the element type. | 21795 // SpeechRecognitionResult is the element type. |
21876 | 21796 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21944 | 21864 |
21945 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV
alue]) { | 21865 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV
alue]) { |
21946 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21866 throw new UnsupportedError("Cannot insertRange on immutable List."); |
21947 } | 21867 } |
21948 | 21868 |
21949 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => | 21869 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => |
21950 _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); | 21870 _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); |
21951 | 21871 |
21952 // -- end List<SpeechRecognitionResult> mixins. | 21872 // -- end List<SpeechRecognitionResult> mixins. |
21953 | 21873 |
21954 /** @domName SpeechRecognitionResultList.item; @docsEditable true */ | 21874 /// @domName SpeechRecognitionResultList.item; @docsEditable true |
21955 SpeechRecognitionResult item(int index) native; | 21875 SpeechRecognitionResult item(int index) native; |
21956 } | 21876 } |
21957 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21958 // for details. All rights reserved. Use of this source code is governed by a | 21878 // for details. All rights reserved. Use of this source code is governed by a |
21959 // BSD-style license that can be found in the LICENSE file. | 21879 // BSD-style license that can be found in the LICENSE file. |
21960 | 21880 |
21961 | 21881 |
21962 /// @domName StyleSheetList; @docsEditable true | 21882 /// @domName StyleSheetList; @docsEditable true |
21963 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
tive "*StyleSheetList" { | 21883 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
tive "*StyleSheetList" { |
21964 | 21884 |
21965 /** @domName StyleSheetList.length; @docsEditable true */ | 21885 /// @domName StyleSheetList.length; @docsEditable true |
21966 final int length; | 21886 final int length; |
21967 | 21887 |
21968 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); | 21888 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); |
21969 | 21889 |
21970 void operator[]=(int index, StyleSheet value) { | 21890 void operator[]=(int index, StyleSheet value) { |
21971 throw new UnsupportedError("Cannot assign element of immutable List."); | 21891 throw new UnsupportedError("Cannot assign element of immutable List."); |
21972 } | 21892 } |
21973 // -- start List<StyleSheet> mixins. | 21893 // -- start List<StyleSheet> mixins. |
21974 // StyleSheet is the element type. | 21894 // StyleSheet is the element type. |
21975 | 21895 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22043 | 21963 |
22044 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { | 21964 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { |
22045 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21965 throw new UnsupportedError("Cannot insertRange on immutable List."); |
22046 } | 21966 } |
22047 | 21967 |
22048 List<StyleSheet> getRange(int start, int rangeLength) => | 21968 List<StyleSheet> getRange(int start, int rangeLength) => |
22049 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); | 21969 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); |
22050 | 21970 |
22051 // -- end List<StyleSheet> mixins. | 21971 // -- end List<StyleSheet> mixins. |
22052 | 21972 |
22053 /** @domName StyleSheetList.item; @docsEditable true */ | 21973 /// @domName StyleSheetList.item; @docsEditable true |
22054 StyleSheet item(int index) native; | 21974 StyleSheet item(int index) native; |
22055 } | 21975 } |
22056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22057 // for details. All rights reserved. Use of this source code is governed by a | 21977 // for details. All rights reserved. Use of this source code is governed by a |
22058 // BSD-style license that can be found in the LICENSE file. | 21978 // BSD-style license that can be found in the LICENSE file. |
22059 | 21979 |
22060 | 21980 |
22061 class _TextTrackCueFactoryProvider { | 21981 class _TextTrackCueFactoryProvider { |
22062 static TextTrackCue createTextTrackCue( | 21982 static TextTrackCue createTextTrackCue( |
22063 num startTime, num endTime, String text, | 21983 num startTime, num endTime, String text, |
(...skipping 14 matching lines...) Expand all Loading... |
22078 } | 21998 } |
22079 } | 21999 } |
22080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22081 // for details. All rights reserved. Use of this source code is governed by a | 22001 // for details. All rights reserved. Use of this source code is governed by a |
22082 // BSD-style license that can be found in the LICENSE file. | 22002 // BSD-style license that can be found in the LICENSE file. |
22083 | 22003 |
22084 | 22004 |
22085 /// @domName WebKitAnimationList; @docsEditable true | 22005 /// @domName WebKitAnimationList; @docsEditable true |
22086 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation
> native "*WebKitAnimationList" { | 22006 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation
> native "*WebKitAnimationList" { |
22087 | 22007 |
22088 /** @domName WebKitAnimationList.length; @docsEditable true */ | 22008 /// @domName WebKitAnimationList.length; @docsEditable true |
22089 final int length; | 22009 final int length; |
22090 | 22010 |
22091 Animation operator[](int index) => JS("Animation", "#[#]", this, index); | 22011 Animation operator[](int index) => JS("Animation", "#[#]", this, index); |
22092 | 22012 |
22093 void operator[]=(int index, Animation value) { | 22013 void operator[]=(int index, Animation value) { |
22094 throw new UnsupportedError("Cannot assign element of immutable List."); | 22014 throw new UnsupportedError("Cannot assign element of immutable List."); |
22095 } | 22015 } |
22096 // -- start List<Animation> mixins. | 22016 // -- start List<Animation> mixins. |
22097 // Animation is the element type. | 22017 // Animation is the element type. |
22098 | 22018 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22166 | 22086 |
22167 void insertRange(int start, int rangeLength, [Animation initialValue]) { | 22087 void insertRange(int start, int rangeLength, [Animation initialValue]) { |
22168 throw new UnsupportedError("Cannot insertRange on immutable List."); | 22088 throw new UnsupportedError("Cannot insertRange on immutable List."); |
22169 } | 22089 } |
22170 | 22090 |
22171 List<Animation> getRange(int start, int rangeLength) => | 22091 List<Animation> getRange(int start, int rangeLength) => |
22172 _Lists.getRange(this, start, rangeLength, <Animation>[]); | 22092 _Lists.getRange(this, start, rangeLength, <Animation>[]); |
22173 | 22093 |
22174 // -- end List<Animation> mixins. | 22094 // -- end List<Animation> mixins. |
22175 | 22095 |
22176 /** @domName WebKitAnimationList.item; @docsEditable true */ | 22096 /// @domName WebKitAnimationList.item; @docsEditable true |
22177 Animation item(int index) native; | 22097 Animation item(int index) native; |
22178 } | 22098 } |
22179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22099 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22180 // for details. All rights reserved. Use of this source code is governed by a | 22100 // for details. All rights reserved. Use of this source code is governed by a |
22181 // BSD-style license that can be found in the LICENSE file. | 22101 // BSD-style license that can be found in the LICENSE file. |
22182 | 22102 |
22183 | 22103 |
22184 class _WorkerFactoryProvider { | 22104 class _WorkerFactoryProvider { |
22185 static Worker createWorker(String scriptUrl) => | 22105 static Worker createWorker(String scriptUrl) => |
22186 JS('Worker', 'new Worker(#)', scriptUrl); | 22106 JS('Worker', 'new Worker(#)', scriptUrl); |
(...skipping 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25148 if (length < 0) throw new ArgumentError('length'); | 25068 if (length < 0) throw new ArgumentError('length'); |
25149 if (start < 0) throw new RangeError.value(start); | 25069 if (start < 0) throw new RangeError.value(start); |
25150 int end = start + length; | 25070 int end = start + length; |
25151 if (end > a.length) throw new RangeError.value(end); | 25071 if (end > a.length) throw new RangeError.value(end); |
25152 for (int i = start; i < end; i++) { | 25072 for (int i = start; i < end; i++) { |
25153 accumulator.add(a[i]); | 25073 accumulator.add(a[i]); |
25154 } | 25074 } |
25155 return accumulator; | 25075 return accumulator; |
25156 } | 25076 } |
25157 } | 25077 } |
OLD | NEW |