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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11308087: Added "/// @docsEditable" to all generated members in the HTML lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot a thing. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
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 51 /// @domName AbstractWorker
52 /// @docsEditable
52 class AbstractWorker extends EventTarget native "*AbstractWorker" { 53 class AbstractWorker extends EventTarget native "*AbstractWorker" {
53 54
54 /** 55 /**
55 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 56 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
56 */ 57 */
58 /// @docsEditable
57 AbstractWorkerEvents get on => 59 AbstractWorkerEvents get on =>
58 new AbstractWorkerEvents(this); 60 new AbstractWorkerEvents(this);
59 61
60 /** @domName AbstractWorker.addEventListener */ 62 /** @domName AbstractWorker.addEventListener */
63 /// @docsEditable
61 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 64 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
62 65
63 /** @domName AbstractWorker.dispatchEvent */ 66 /** @domName AbstractWorker.dispatchEvent */
67 /// @docsEditable
64 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 68 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
65 69
66 /** @domName AbstractWorker.removeEventListener */ 70 /** @domName AbstractWorker.removeEventListener */
71 /// @docsEditable
67 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 72 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
68 } 73 }
69 74
70 class AbstractWorkerEvents extends Events { 75 class AbstractWorkerEvents extends Events {
71 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); 76 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr);
72 77
73 EventListenerList get error => this['error']; 78 EventListenerList get error => this['error'];
74 } 79 }
75 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 80 // 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 81 // 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. 82 // BSD-style license that can be found in the LICENSE file.
78 83
79 84
80 /// @domName AnalyserNode 85 /// @domName AnalyserNode
86 /// @docsEditable
81 class AnalyserNode extends AudioNode native "*AnalyserNode" { 87 class AnalyserNode extends AudioNode native "*AnalyserNode" {
82 88
83 /** @domName AnalyserNode.fftSize */ 89 /** @domName AnalyserNode.fftSize */
90 /// @docsEditable
84 int fftSize; 91 int fftSize;
85 92
86 /** @domName AnalyserNode.frequencyBinCount */ 93 /** @domName AnalyserNode.frequencyBinCount */
94 /// @docsEditable
87 final int frequencyBinCount; 95 final int frequencyBinCount;
88 96
89 /** @domName AnalyserNode.maxDecibels */ 97 /** @domName AnalyserNode.maxDecibels */
98 /// @docsEditable
90 num maxDecibels; 99 num maxDecibels;
91 100
92 /** @domName AnalyserNode.minDecibels */ 101 /** @domName AnalyserNode.minDecibels */
102 /// @docsEditable
93 num minDecibels; 103 num minDecibels;
94 104
95 /** @domName AnalyserNode.smoothingTimeConstant */ 105 /** @domName AnalyserNode.smoothingTimeConstant */
106 /// @docsEditable
96 num smoothingTimeConstant; 107 num smoothingTimeConstant;
97 108
98 /** @domName AnalyserNode.getByteFrequencyData */ 109 /** @domName AnalyserNode.getByteFrequencyData */
110 /// @docsEditable
99 void getByteFrequencyData(Uint8Array array) native; 111 void getByteFrequencyData(Uint8Array array) native;
100 112
101 /** @domName AnalyserNode.getByteTimeDomainData */ 113 /** @domName AnalyserNode.getByteTimeDomainData */
114 /// @docsEditable
102 void getByteTimeDomainData(Uint8Array array) native; 115 void getByteTimeDomainData(Uint8Array array) native;
103 116
104 /** @domName AnalyserNode.getFloatFrequencyData */ 117 /** @domName AnalyserNode.getFloatFrequencyData */
118 /// @docsEditable
105 void getFloatFrequencyData(Float32Array array) native; 119 void getFloatFrequencyData(Float32Array array) native;
106 } 120 }
107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 121 // 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 122 // 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. 123 // BSD-style license that can be found in the LICENSE file.
110 124
111 125
112 /// @domName HTMLAnchorElement 126 /// @domName HTMLAnchorElement
127 /// @docsEditable
113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" { 128 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" {
114 129
115 factory AnchorElement({String href}) { 130 factory AnchorElement({String href}) {
116 var e = document.$dom_createElement("a"); 131 var e = document.$dom_createElement("a");
117 if (href != null) e.href = href; 132 if (href != null) e.href = href;
118 return e; 133 return e;
119 } 134 }
120 135
121 /** @domName HTMLAnchorElement.charset */ 136 /** @domName HTMLAnchorElement.charset */
137 /// @docsEditable
122 String charset; 138 String charset;
123 139
124 /** @domName HTMLAnchorElement.coords */ 140 /** @domName HTMLAnchorElement.coords */
141 /// @docsEditable
125 String coords; 142 String coords;
126 143
127 /** @domName HTMLAnchorElement.download */ 144 /** @domName HTMLAnchorElement.download */
145 /// @docsEditable
128 String download; 146 String download;
129 147
130 /** @domName HTMLAnchorElement.hash */ 148 /** @domName HTMLAnchorElement.hash */
149 /// @docsEditable
131 String hash; 150 String hash;
132 151
133 /** @domName HTMLAnchorElement.host */ 152 /** @domName HTMLAnchorElement.host */
153 /// @docsEditable
134 String host; 154 String host;
135 155
136 /** @domName HTMLAnchorElement.hostname */ 156 /** @domName HTMLAnchorElement.hostname */
157 /// @docsEditable
137 String hostname; 158 String hostname;
138 159
139 /** @domName HTMLAnchorElement.href */ 160 /** @domName HTMLAnchorElement.href */
161 /// @docsEditable
140 String href; 162 String href;
141 163
142 /** @domName HTMLAnchorElement.hreflang */ 164 /** @domName HTMLAnchorElement.hreflang */
165 /// @docsEditable
143 String hreflang; 166 String hreflang;
144 167
145 /** @domName HTMLAnchorElement.name */ 168 /** @domName HTMLAnchorElement.name */
169 /// @docsEditable
146 String name; 170 String name;
147 171
148 /** @domName HTMLAnchorElement.origin */ 172 /** @domName HTMLAnchorElement.origin */
173 /// @docsEditable
149 final String origin; 174 final String origin;
150 175
151 /** @domName HTMLAnchorElement.pathname */ 176 /** @domName HTMLAnchorElement.pathname */
177 /// @docsEditable
152 String pathname; 178 String pathname;
153 179
154 /** @domName HTMLAnchorElement.ping */ 180 /** @domName HTMLAnchorElement.ping */
181 /// @docsEditable
155 String ping; 182 String ping;
156 183
157 /** @domName HTMLAnchorElement.port */ 184 /** @domName HTMLAnchorElement.port */
185 /// @docsEditable
158 String port; 186 String port;
159 187
160 /** @domName HTMLAnchorElement.protocol */ 188 /** @domName HTMLAnchorElement.protocol */
189 /// @docsEditable
161 String protocol; 190 String protocol;
162 191
163 /** @domName HTMLAnchorElement.rel */ 192 /** @domName HTMLAnchorElement.rel */
193 /// @docsEditable
164 String rel; 194 String rel;
165 195
166 /** @domName HTMLAnchorElement.rev */ 196 /** @domName HTMLAnchorElement.rev */
197 /// @docsEditable
167 String rev; 198 String rev;
168 199
169 /** @domName HTMLAnchorElement.search */ 200 /** @domName HTMLAnchorElement.search */
201 /// @docsEditable
170 String search; 202 String search;
171 203
172 /** @domName HTMLAnchorElement.shape */ 204 /** @domName HTMLAnchorElement.shape */
205 /// @docsEditable
173 String shape; 206 String shape;
174 207
175 /** @domName HTMLAnchorElement.target */ 208 /** @domName HTMLAnchorElement.target */
209 /// @docsEditable
176 String target; 210 String target;
177 211
178 /** @domName HTMLAnchorElement.type */ 212 /** @domName HTMLAnchorElement.type */
213 /// @docsEditable
179 String type; 214 String type;
180 215
181 /** @domName HTMLAnchorElement.toString */ 216 /** @domName HTMLAnchorElement.toString */
217 /// @docsEditable
182 String toString() native; 218 String toString() native;
183 } 219 }
184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 220 // 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 221 // 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. 222 // BSD-style license that can be found in the LICENSE file.
187 223
188 224
189 /// @domName WebKitAnimation 225 /// @domName WebKitAnimation
226 /// @docsEditable
190 class Animation native "*WebKitAnimation" { 227 class Animation native "*WebKitAnimation" {
191 228
192 static const int DIRECTION_ALTERNATE = 1; 229 static const int DIRECTION_ALTERNATE = 1;
193 230
194 static const int DIRECTION_NORMAL = 0; 231 static const int DIRECTION_NORMAL = 0;
195 232
196 static const int FILL_BACKWARDS = 1; 233 static const int FILL_BACKWARDS = 1;
197 234
198 static const int FILL_BOTH = 3; 235 static const int FILL_BOTH = 3;
199 236
200 static const int FILL_FORWARDS = 2; 237 static const int FILL_FORWARDS = 2;
201 238
202 static const int FILL_NONE = 0; 239 static const int FILL_NONE = 0;
203 240
204 /** @domName WebKitAnimation.delay */ 241 /** @domName WebKitAnimation.delay */
242 /// @docsEditable
205 final num delay; 243 final num delay;
206 244
207 /** @domName WebKitAnimation.direction */ 245 /** @domName WebKitAnimation.direction */
246 /// @docsEditable
208 final int direction; 247 final int direction;
209 248
210 /** @domName WebKitAnimation.duration */ 249 /** @domName WebKitAnimation.duration */
250 /// @docsEditable
211 final num duration; 251 final num duration;
212 252
213 /** @domName WebKitAnimation.elapsedTime */ 253 /** @domName WebKitAnimation.elapsedTime */
254 /// @docsEditable
214 num elapsedTime; 255 num elapsedTime;
215 256
216 /** @domName WebKitAnimation.ended */ 257 /** @domName WebKitAnimation.ended */
258 /// @docsEditable
217 final bool ended; 259 final bool ended;
218 260
219 /** @domName WebKitAnimation.fillMode */ 261 /** @domName WebKitAnimation.fillMode */
262 /// @docsEditable
220 final int fillMode; 263 final int fillMode;
221 264
222 /** @domName WebKitAnimation.iterationCount */ 265 /** @domName WebKitAnimation.iterationCount */
266 /// @docsEditable
223 final int iterationCount; 267 final int iterationCount;
224 268
225 /** @domName WebKitAnimation.name */ 269 /** @domName WebKitAnimation.name */
270 /// @docsEditable
226 final String name; 271 final String name;
227 272
228 /** @domName WebKitAnimation.paused */ 273 /** @domName WebKitAnimation.paused */
274 /// @docsEditable
229 final bool paused; 275 final bool paused;
230 276
231 /** @domName WebKitAnimation.pause */ 277 /** @domName WebKitAnimation.pause */
278 /// @docsEditable
232 void pause() native; 279 void pause() native;
233 280
234 /** @domName WebKitAnimation.play */ 281 /** @domName WebKitAnimation.play */
282 /// @docsEditable
235 void play() native; 283 void play() native;
236 } 284 }
237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 285 // 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 286 // 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. 287 // BSD-style license that can be found in the LICENSE file.
240 288
241 289
242 /// @domName WebKitAnimationEvent 290 /// @domName WebKitAnimationEvent
291 /// @docsEditable
243 class AnimationEvent extends Event native "*WebKitAnimationEvent" { 292 class AnimationEvent extends Event native "*WebKitAnimationEvent" {
244 293
245 /** @domName WebKitAnimationEvent.animationName */ 294 /** @domName WebKitAnimationEvent.animationName */
295 /// @docsEditable
246 final String animationName; 296 final String animationName;
247 297
248 /** @domName WebKitAnimationEvent.elapsedTime */ 298 /** @domName WebKitAnimationEvent.elapsedTime */
299 /// @docsEditable
249 final num elapsedTime; 300 final num elapsedTime;
250 } 301 }
251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 302 // 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 303 // 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. 304 // BSD-style license that can be found in the LICENSE file.
254 305
255 306
256 /// @domName HTMLAppletElement 307 /// @domName HTMLAppletElement
308 /// @docsEditable
257 class AppletElement extends Element implements Element native "*HTMLAppletElemen t" { 309 class AppletElement extends Element implements Element native "*HTMLAppletElemen t" {
258 310
259 /** @domName HTMLAppletElement.align */ 311 /** @domName HTMLAppletElement.align */
312 /// @docsEditable
260 String align; 313 String align;
261 314
262 /** @domName HTMLAppletElement.alt */ 315 /** @domName HTMLAppletElement.alt */
316 /// @docsEditable
263 String alt; 317 String alt;
264 318
265 /** @domName HTMLAppletElement.archive */ 319 /** @domName HTMLAppletElement.archive */
320 /// @docsEditable
266 String archive; 321 String archive;
267 322
268 /** @domName HTMLAppletElement.code */ 323 /** @domName HTMLAppletElement.code */
324 /// @docsEditable
269 String code; 325 String code;
270 326
271 /** @domName HTMLAppletElement.codeBase */ 327 /** @domName HTMLAppletElement.codeBase */
328 /// @docsEditable
272 String codeBase; 329 String codeBase;
273 330
274 /** @domName HTMLAppletElement.height */ 331 /** @domName HTMLAppletElement.height */
332 /// @docsEditable
275 String height; 333 String height;
276 334
277 /** @domName HTMLAppletElement.hspace */ 335 /** @domName HTMLAppletElement.hspace */
336 /// @docsEditable
278 String hspace; 337 String hspace;
279 338
280 /** @domName HTMLAppletElement.name */ 339 /** @domName HTMLAppletElement.name */
340 /// @docsEditable
281 String name; 341 String name;
282 342
283 /** @domName HTMLAppletElement.object */ 343 /** @domName HTMLAppletElement.object */
344 /// @docsEditable
284 String object; 345 String object;
285 346
286 /** @domName HTMLAppletElement.vspace */ 347 /** @domName HTMLAppletElement.vspace */
348 /// @docsEditable
287 String vspace; 349 String vspace;
288 350
289 /** @domName HTMLAppletElement.width */ 351 /** @domName HTMLAppletElement.width */
352 /// @docsEditable
290 String width; 353 String width;
291 } 354 }
292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 355 // 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 356 // 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. 357 // BSD-style license that can be found in the LICENSE file.
295 358
296 359
297 /// @domName HTMLAreaElement 360 /// @domName HTMLAreaElement
361 /// @docsEditable
298 class AreaElement extends Element implements Element native "*HTMLAreaElement" { 362 class AreaElement extends Element implements Element native "*HTMLAreaElement" {
299 363
300 factory AreaElement() => document.$dom_createElement("area"); 364 factory AreaElement() => document.$dom_createElement("area");
301 365
302 /** @domName HTMLAreaElement.alt */ 366 /** @domName HTMLAreaElement.alt */
367 /// @docsEditable
303 String alt; 368 String alt;
304 369
305 /** @domName HTMLAreaElement.coords */ 370 /** @domName HTMLAreaElement.coords */
371 /// @docsEditable
306 String coords; 372 String coords;
307 373
308 /** @domName HTMLAreaElement.hash */ 374 /** @domName HTMLAreaElement.hash */
375 /// @docsEditable
309 final String hash; 376 final String hash;
310 377
311 /** @domName HTMLAreaElement.host */ 378 /** @domName HTMLAreaElement.host */
379 /// @docsEditable
312 final String host; 380 final String host;
313 381
314 /** @domName HTMLAreaElement.hostname */ 382 /** @domName HTMLAreaElement.hostname */
383 /// @docsEditable
315 final String hostname; 384 final String hostname;
316 385
317 /** @domName HTMLAreaElement.href */ 386 /** @domName HTMLAreaElement.href */
387 /// @docsEditable
318 String href; 388 String href;
319 389
320 /** @domName HTMLAreaElement.noHref */ 390 /** @domName HTMLAreaElement.noHref */
391 /// @docsEditable
321 bool noHref; 392 bool noHref;
322 393
323 /** @domName HTMLAreaElement.pathname */ 394 /** @domName HTMLAreaElement.pathname */
395 /// @docsEditable
324 final String pathname; 396 final String pathname;
325 397
326 /** @domName HTMLAreaElement.ping */ 398 /** @domName HTMLAreaElement.ping */
399 /// @docsEditable
327 String ping; 400 String ping;
328 401
329 /** @domName HTMLAreaElement.port */ 402 /** @domName HTMLAreaElement.port */
403 /// @docsEditable
330 final String port; 404 final String port;
331 405
332 /** @domName HTMLAreaElement.protocol */ 406 /** @domName HTMLAreaElement.protocol */
407 /// @docsEditable
333 final String protocol; 408 final String protocol;
334 409
335 /** @domName HTMLAreaElement.search */ 410 /** @domName HTMLAreaElement.search */
411 /// @docsEditable
336 final String search; 412 final String search;
337 413
338 /** @domName HTMLAreaElement.shape */ 414 /** @domName HTMLAreaElement.shape */
415 /// @docsEditable
339 String shape; 416 String shape;
340 417
341 /** @domName HTMLAreaElement.target */ 418 /** @domName HTMLAreaElement.target */
419 /// @docsEditable
342 String target; 420 String target;
343 } 421 }
344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 422 // 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 423 // 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. 424 // BSD-style license that can be found in the LICENSE file.
347 425
348 426
349 /// @domName ArrayBuffer 427 /// @domName ArrayBuffer
428 /// @docsEditable
350 class ArrayBuffer native "*ArrayBuffer" { 429 class ArrayBuffer native "*ArrayBuffer" {
351 430
352 factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuff er(length); 431 factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuff er(length);
353 432
354 /** @domName ArrayBuffer.byteLength */ 433 /** @domName ArrayBuffer.byteLength */
434 /// @docsEditable
355 final int byteLength; 435 final int byteLength;
356 436
357 /** @domName ArrayBuffer.slice */ 437 /** @domName ArrayBuffer.slice */
438 /// @docsEditable
358 ArrayBuffer slice(int begin, [int end]) native; 439 ArrayBuffer slice(int begin, [int end]) native;
359 } 440 }
360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 441 // 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 442 // 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. 443 // BSD-style license that can be found in the LICENSE file.
363 444
364 445
365 /// @domName ArrayBufferView 446 /// @domName ArrayBufferView
447 /// @docsEditable
366 class ArrayBufferView native "*ArrayBufferView" { 448 class ArrayBufferView native "*ArrayBufferView" {
367 449
368 /** @domName ArrayBufferView.buffer */ 450 /** @domName ArrayBufferView.buffer */
451 /// @docsEditable
369 final ArrayBuffer buffer; 452 final ArrayBuffer buffer;
370 453
371 /** @domName ArrayBufferView.byteLength */ 454 /** @domName ArrayBufferView.byteLength */
455 /// @docsEditable
372 final int byteLength; 456 final int byteLength;
373 457
374 /** @domName ArrayBufferView.byteOffset */ 458 /** @domName ArrayBufferView.byteOffset */
459 /// @docsEditable
375 final int byteOffset; 460 final int byteOffset;
376 } 461 }
377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 462 // 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 463 // 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. 464 // BSD-style license that can be found in the LICENSE file.
380 465
381 466
382 /// @domName Attr 467 /// @domName Attr
468 /// @docsEditable
383 class Attr extends Node native "*Attr" { 469 class Attr extends Node native "*Attr" {
384 470
385 /** @domName Attr.isId */ 471 /** @domName Attr.isId */
472 /// @docsEditable
386 final bool isId; 473 final bool isId;
387 474
388 /** @domName Attr.name */ 475 /** @domName Attr.name */
476 /// @docsEditable
389 final String name; 477 final String name;
390 478
391 /** @domName Attr.ownerElement */ 479 /** @domName Attr.ownerElement */
480 /// @docsEditable
392 final Element ownerElement; 481 final Element ownerElement;
393 482
394 /** @domName Attr.specified */ 483 /** @domName Attr.specified */
484 /// @docsEditable
395 final bool specified; 485 final bool specified;
396 486
397 /** @domName Attr.value */ 487 /** @domName Attr.value */
488 /// @docsEditable
398 String value; 489 String value;
399 } 490 }
400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 491 // 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 492 // 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. 493 // BSD-style license that can be found in the LICENSE file.
403 494
404 495
405 /// @domName AudioBuffer 496 /// @domName AudioBuffer
497 /// @docsEditable
406 class AudioBuffer native "*AudioBuffer" { 498 class AudioBuffer native "*AudioBuffer" {
407 499
408 /** @domName AudioBuffer.duration */ 500 /** @domName AudioBuffer.duration */
501 /// @docsEditable
409 final num duration; 502 final num duration;
410 503
411 /** @domName AudioBuffer.gain */ 504 /** @domName AudioBuffer.gain */
505 /// @docsEditable
412 num gain; 506 num gain;
413 507
414 /** @domName AudioBuffer.length */ 508 /** @domName AudioBuffer.length */
509 /// @docsEditable
415 final int length; 510 final int length;
416 511
417 /** @domName AudioBuffer.numberOfChannels */ 512 /** @domName AudioBuffer.numberOfChannels */
513 /// @docsEditable
418 final int numberOfChannels; 514 final int numberOfChannels;
419 515
420 /** @domName AudioBuffer.sampleRate */ 516 /** @domName AudioBuffer.sampleRate */
517 /// @docsEditable
421 final num sampleRate; 518 final num sampleRate;
422 519
423 /** @domName AudioBuffer.getChannelData */ 520 /** @domName AudioBuffer.getChannelData */
521 /// @docsEditable
424 Float32Array getChannelData(int channelIndex) native; 522 Float32Array getChannelData(int channelIndex) native;
425 } 523 }
426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 524 // 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 525 // 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. 526 // BSD-style license that can be found in the LICENSE file.
429 527
430 // WARNING: Do not edit - generated code. 528 // WARNING: Do not edit - generated code.
431 529
432 530
433 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 531 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 568
471 static const int FINISHED_STATE = 3; 569 static const int FINISHED_STATE = 3;
472 570
473 static const int PLAYING_STATE = 2; 571 static const int PLAYING_STATE = 2;
474 572
475 static const int SCHEDULED_STATE = 1; 573 static const int SCHEDULED_STATE = 1;
476 574
477 static const int UNSCHEDULED_STATE = 0; 575 static const int UNSCHEDULED_STATE = 0;
478 576
479 /** @domName AudioBufferSourceNode.buffer */ 577 /** @domName AudioBufferSourceNode.buffer */
578 /// @docsEditable
480 AudioBuffer buffer; 579 AudioBuffer buffer;
481 580
482 /** @domName AudioBufferSourceNode.gain */ 581 /** @domName AudioBufferSourceNode.gain */
582 /// @docsEditable
483 final AudioGain gain; 583 final AudioGain gain;
484 584
485 /** @domName AudioBufferSourceNode.loop */ 585 /** @domName AudioBufferSourceNode.loop */
586 /// @docsEditable
486 bool loop; 587 bool loop;
487 588
488 /** @domName AudioBufferSourceNode.loopEnd */ 589 /** @domName AudioBufferSourceNode.loopEnd */
590 /// @docsEditable
489 num loopEnd; 591 num loopEnd;
490 592
491 /** @domName AudioBufferSourceNode.loopStart */ 593 /** @domName AudioBufferSourceNode.loopStart */
594 /// @docsEditable
492 num loopStart; 595 num loopStart;
493 596
494 /** @domName AudioBufferSourceNode.playbackRate */ 597 /** @domName AudioBufferSourceNode.playbackRate */
598 /// @docsEditable
495 final AudioParam playbackRate; 599 final AudioParam playbackRate;
496 600
497 /** @domName AudioBufferSourceNode.playbackState */ 601 /** @domName AudioBufferSourceNode.playbackState */
602 /// @docsEditable
498 final int playbackState; 603 final int playbackState;
499 604
500 } 605 }
501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 606 // 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 607 // 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. 608 // BSD-style license that can be found in the LICENSE file.
504 609
505 610
506 class AudioContext extends EventTarget native "*AudioContext" { 611 class AudioContext extends EventTarget native "*AudioContext" {
507 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext(); 612 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext();
508 613
509 /** 614 /**
510 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 615 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
511 */ 616 */
617 /// @docsEditable
512 AudioContextEvents get on => 618 AudioContextEvents get on =>
513 new AudioContextEvents(this); 619 new AudioContextEvents(this);
514 620
515 /** @domName AudioContext.activeSourceCount */ 621 /** @domName AudioContext.activeSourceCount */
622 /// @docsEditable
516 final int activeSourceCount; 623 final int activeSourceCount;
517 624
518 /** @domName AudioContext.currentTime */ 625 /** @domName AudioContext.currentTime */
626 /// @docsEditable
519 final num currentTime; 627 final num currentTime;
520 628
521 /** @domName AudioContext.destination */ 629 /** @domName AudioContext.destination */
630 /// @docsEditable
522 final AudioDestinationNode destination; 631 final AudioDestinationNode destination;
523 632
524 /** @domName AudioContext.listener */ 633 /** @domName AudioContext.listener */
634 /// @docsEditable
525 final AudioListener listener; 635 final AudioListener listener;
526 636
527 /** @domName AudioContext.sampleRate */ 637 /** @domName AudioContext.sampleRate */
638 /// @docsEditable
528 final num sampleRate; 639 final num sampleRate;
529 640
530 /** @domName AudioContext.createAnalyser */ 641 /** @domName AudioContext.createAnalyser */
642 /// @docsEditable
531 AnalyserNode createAnalyser() native; 643 AnalyserNode createAnalyser() native;
532 644
533 /** @domName AudioContext.createBiquadFilter */ 645 /** @domName AudioContext.createBiquadFilter */
646 /// @docsEditable
534 BiquadFilterNode createBiquadFilter() native; 647 BiquadFilterNode createBiquadFilter() native;
535 648
536 /** @domName AudioContext.createBuffer */ 649 /** @domName AudioContext.createBuffer */
650 /// @docsEditable
537 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native; 651 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native;
538 652
539 /** @domName AudioContext.createBufferSource */ 653 /** @domName AudioContext.createBufferSource */
654 /// @docsEditable
540 AudioBufferSourceNode createBufferSource() native; 655 AudioBufferSourceNode createBufferSource() native;
541 656
542 /** @domName AudioContext.createChannelMerger */ 657 /** @domName AudioContext.createChannelMerger */
658 /// @docsEditable
543 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; 659 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
544 660
545 /** @domName AudioContext.createChannelSplitter */ 661 /** @domName AudioContext.createChannelSplitter */
662 /// @docsEditable
546 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; 663 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native;
547 664
548 /** @domName AudioContext.createConvolver */ 665 /** @domName AudioContext.createConvolver */
666 /// @docsEditable
549 ConvolverNode createConvolver() native; 667 ConvolverNode createConvolver() native;
550 668
551 /** @domName AudioContext.createDelay */ 669 /** @domName AudioContext.createDelay */
670 /// @docsEditable
552 DelayNode createDelay([num maxDelayTime]) native; 671 DelayNode createDelay([num maxDelayTime]) native;
553 672
554 /** @domName AudioContext.createDynamicsCompressor */ 673 /** @domName AudioContext.createDynamicsCompressor */
674 /// @docsEditable
555 DynamicsCompressorNode createDynamicsCompressor() native; 675 DynamicsCompressorNode createDynamicsCompressor() native;
556 676
557 /** @domName AudioContext.createMediaElementSource */ 677 /** @domName AudioContext.createMediaElementSource */
678 /// @docsEditable
558 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native; 679 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native;
559 680
560 /** @domName AudioContext.createMediaStreamSource */ 681 /** @domName AudioContext.createMediaStreamSource */
682 /// @docsEditable
561 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive; 683 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive;
562 684
563 /** @domName AudioContext.createOscillator */ 685 /** @domName AudioContext.createOscillator */
686 /// @docsEditable
564 OscillatorNode createOscillator() native; 687 OscillatorNode createOscillator() native;
565 688
566 /** @domName AudioContext.createPanner */ 689 /** @domName AudioContext.createPanner */
690 /// @docsEditable
567 PannerNode createPanner() native; 691 PannerNode createPanner() native;
568 692
569 /** @domName AudioContext.createWaveShaper */ 693 /** @domName AudioContext.createWaveShaper */
694 /// @docsEditable
570 WaveShaperNode createWaveShaper() native; 695 WaveShaperNode createWaveShaper() native;
571 696
572 /** @domName AudioContext.createWaveTable */ 697 /** @domName AudioContext.createWaveTable */
698 /// @docsEditable
573 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; 699 WaveTable createWaveTable(Float32Array real, Float32Array imag) native;
574 700
575 /** @domName AudioContext.decodeAudioData */ 701 /** @domName AudioContext.decodeAudioData */
702 /// @docsEditable
576 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native; 703 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native;
577 704
578 /** @domName AudioContext.startRendering */ 705 /** @domName AudioContext.startRendering */
706 /// @docsEditable
579 void startRendering() native; 707 void startRendering() native;
580 708
581 GainNode createGain() { 709 GainNode createGain() {
582 if (JS('bool', '#.createGain !== undefined', this)) { 710 if (JS('bool', '#.createGain !== undefined', this)) {
583 return JS('GainNode', '#.createGain()', this); 711 return JS('GainNode', '#.createGain()', this);
584 } else { 712 } else {
585 return JS('GainNode', '#.createGainNode()', this); 713 return JS('GainNode', '#.createGainNode()', this);
586 } 714 }
587 } 715 }
588 716
(...skipping 18 matching lines...) Expand all
607 AudioContextEvents(EventTarget _ptr) : super(_ptr); 735 AudioContextEvents(EventTarget _ptr) : super(_ptr);
608 736
609 EventListenerList get complete => this['complete']; 737 EventListenerList get complete => this['complete'];
610 } 738 }
611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 739 // 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 740 // 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. 741 // BSD-style license that can be found in the LICENSE file.
614 742
615 743
616 /// @domName AudioDestinationNode 744 /// @domName AudioDestinationNode
745 /// @docsEditable
617 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { 746 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
618 747
619 /** @domName AudioDestinationNode.numberOfChannels */ 748 /** @domName AudioDestinationNode.numberOfChannels */
749 /// @docsEditable
620 final int numberOfChannels; 750 final int numberOfChannels;
621 } 751 }
622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 752 // 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 753 // 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. 754 // BSD-style license that can be found in the LICENSE file.
625 755
626 756
627 /// @domName HTMLAudioElement 757 /// @domName HTMLAudioElement
758 /// @docsEditable
628 class AudioElement extends MediaElement native "*HTMLAudioElement" { 759 class AudioElement extends MediaElement native "*HTMLAudioElement" {
629 760
630 factory AudioElement([String src]) { 761 factory AudioElement([String src]) {
631 if (!?src) { 762 if (!?src) {
632 return _AudioElementFactoryProvider.createAudioElement(); 763 return _AudioElementFactoryProvider.createAudioElement();
633 } 764 }
634 return _AudioElementFactoryProvider.createAudioElement(src); 765 return _AudioElementFactoryProvider.createAudioElement(src);
635 } 766 }
636 } 767 }
637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
638 // for details. All rights reserved. Use of this source code is governed by a 769 // for details. All rights reserved. Use of this source code is governed by a
639 // BSD-style license that can be found in the LICENSE file. 770 // BSD-style license that can be found in the LICENSE file.
640 771
641 772
642 /// @domName AudioGain 773 /// @domName AudioGain
774 /// @docsEditable
643 class AudioGain extends AudioParam native "*AudioGain" { 775 class AudioGain extends AudioParam native "*AudioGain" {
644 } 776 }
645 // 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
646 // 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
647 // BSD-style license that can be found in the LICENSE file. 779 // BSD-style license that can be found in the LICENSE file.
648 780
649 781
650 /// @domName AudioListener 782 /// @domName AudioListener
783 /// @docsEditable
651 class AudioListener native "*AudioListener" { 784 class AudioListener native "*AudioListener" {
652 785
653 /** @domName AudioListener.dopplerFactor */ 786 /** @domName AudioListener.dopplerFactor */
787 /// @docsEditable
654 num dopplerFactor; 788 num dopplerFactor;
655 789
656 /** @domName AudioListener.speedOfSound */ 790 /** @domName AudioListener.speedOfSound */
791 /// @docsEditable
657 num speedOfSound; 792 num speedOfSound;
658 793
659 /** @domName AudioListener.setOrientation */ 794 /** @domName AudioListener.setOrientation */
795 /// @docsEditable
660 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; 796 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
661 797
662 /** @domName AudioListener.setPosition */ 798 /** @domName AudioListener.setPosition */
799 /// @docsEditable
663 void setPosition(num x, num y, num z) native; 800 void setPosition(num x, num y, num z) native;
664 801
665 /** @domName AudioListener.setVelocity */ 802 /** @domName AudioListener.setVelocity */
803 /// @docsEditable
666 void setVelocity(num x, num y, num z) native; 804 void setVelocity(num x, num y, num z) native;
667 } 805 }
668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 806 // 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 807 // 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. 808 // BSD-style license that can be found in the LICENSE file.
671 809
672 810
673 /// @domName AudioNode 811 /// @domName AudioNode
812 /// @docsEditable
674 class AudioNode native "*AudioNode" { 813 class AudioNode native "*AudioNode" {
675 814
676 /** @domName AudioNode.context */ 815 /** @domName AudioNode.context */
816 /// @docsEditable
677 final AudioContext context; 817 final AudioContext context;
678 818
679 /** @domName AudioNode.numberOfInputs */ 819 /** @domName AudioNode.numberOfInputs */
820 /// @docsEditable
680 final int numberOfInputs; 821 final int numberOfInputs;
681 822
682 /** @domName AudioNode.numberOfOutputs */ 823 /** @domName AudioNode.numberOfOutputs */
824 /// @docsEditable
683 final int numberOfOutputs; 825 final int numberOfOutputs;
684 826
685 /** @domName AudioNode.connect */ 827 /** @domName AudioNode.connect */
828 /// @docsEditable
686 void connect(destination, int output, [int input]) native; 829 void connect(destination, int output, [int input]) native;
687 830
688 /** @domName AudioNode.disconnect */ 831 /** @domName AudioNode.disconnect */
832 /// @docsEditable
689 void disconnect(int output) native; 833 void disconnect(int output) native;
690 } 834 }
691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 835 // 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 836 // 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. 837 // BSD-style license that can be found in the LICENSE file.
694 838
695 839
696 /// @domName AudioParam 840 /// @domName AudioParam
841 /// @docsEditable
697 class AudioParam native "*AudioParam" { 842 class AudioParam native "*AudioParam" {
698 843
699 /** @domName AudioParam.defaultValue */ 844 /** @domName AudioParam.defaultValue */
845 /// @docsEditable
700 final num defaultValue; 846 final num defaultValue;
701 847
702 /** @domName AudioParam.maxValue */ 848 /** @domName AudioParam.maxValue */
849 /// @docsEditable
703 final num maxValue; 850 final num maxValue;
704 851
705 /** @domName AudioParam.minValue */ 852 /** @domName AudioParam.minValue */
853 /// @docsEditable
706 final num minValue; 854 final num minValue;
707 855
708 /** @domName AudioParam.name */ 856 /** @domName AudioParam.name */
857 /// @docsEditable
709 final String name; 858 final String name;
710 859
711 /** @domName AudioParam.units */ 860 /** @domName AudioParam.units */
861 /// @docsEditable
712 final int units; 862 final int units;
713 863
714 /** @domName AudioParam.value */ 864 /** @domName AudioParam.value */
865 /// @docsEditable
715 num value; 866 num value;
716 867
717 /** @domName AudioParam.cancelScheduledValues */ 868 /** @domName AudioParam.cancelScheduledValues */
869 /// @docsEditable
718 void cancelScheduledValues(num startTime) native; 870 void cancelScheduledValues(num startTime) native;
719 871
720 /** @domName AudioParam.exponentialRampToValueAtTime */ 872 /** @domName AudioParam.exponentialRampToValueAtTime */
873 /// @docsEditable
721 void exponentialRampToValueAtTime(num value, num time) native; 874 void exponentialRampToValueAtTime(num value, num time) native;
722 875
723 /** @domName AudioParam.linearRampToValueAtTime */ 876 /** @domName AudioParam.linearRampToValueAtTime */
877 /// @docsEditable
724 void linearRampToValueAtTime(num value, num time) native; 878 void linearRampToValueAtTime(num value, num time) native;
725 879
726 /** @domName AudioParam.setTargetAtTime */ 880 /** @domName AudioParam.setTargetAtTime */
881 /// @docsEditable
727 void setTargetAtTime(num target, num time, num timeConstant) native; 882 void setTargetAtTime(num target, num time, num timeConstant) native;
728 883
729 /** @domName AudioParam.setValueAtTime */ 884 /** @domName AudioParam.setValueAtTime */
885 /// @docsEditable
730 void setValueAtTime(num value, num time) native; 886 void setValueAtTime(num value, num time) native;
731 887
732 /** @domName AudioParam.setValueCurveAtTime */ 888 /** @domName AudioParam.setValueCurveAtTime */
889 /// @docsEditable
733 void setValueCurveAtTime(Float32Array values, num time, num duration) native; 890 void setValueCurveAtTime(Float32Array values, num time, num duration) native;
734 } 891 }
735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 892 // 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 893 // 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. 894 // BSD-style license that can be found in the LICENSE file.
738 895
739 896
740 /// @domName AudioProcessingEvent 897 /// @domName AudioProcessingEvent
898 /// @docsEditable
741 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { 899 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
742 900
743 /** @domName AudioProcessingEvent.inputBuffer */ 901 /** @domName AudioProcessingEvent.inputBuffer */
902 /// @docsEditable
744 final AudioBuffer inputBuffer; 903 final AudioBuffer inputBuffer;
745 904
746 /** @domName AudioProcessingEvent.outputBuffer */ 905 /** @domName AudioProcessingEvent.outputBuffer */
906 /// @docsEditable
747 final AudioBuffer outputBuffer; 907 final AudioBuffer outputBuffer;
748 } 908 }
749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 909 // 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 910 // 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. 911 // BSD-style license that can be found in the LICENSE file.
752 912
753 913
754 /// @domName AudioSourceNode 914 /// @domName AudioSourceNode
915 /// @docsEditable
755 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { 916 class AudioSourceNode extends AudioNode native "*AudioSourceNode" {
756 } 917 }
757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 918 // 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 919 // 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. 920 // BSD-style license that can be found in the LICENSE file.
760 921
761 922
762 /// @domName HTMLBRElement 923 /// @domName HTMLBRElement
924 /// @docsEditable
763 class BRElement extends Element implements Element native "*HTMLBRElement" { 925 class BRElement extends Element implements Element native "*HTMLBRElement" {
764 926
765 factory BRElement() => document.$dom_createElement("br"); 927 factory BRElement() => document.$dom_createElement("br");
766 928
767 /** @domName HTMLBRElement.clear */ 929 /** @domName HTMLBRElement.clear */
930 /// @docsEditable
768 String clear; 931 String clear;
769 } 932 }
770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 933 // 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 934 // 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. 935 // BSD-style license that can be found in the LICENSE file.
773 936
774 937
775 /// @domName BarInfo 938 /// @domName BarInfo
939 /// @docsEditable
776 class BarInfo native "*BarInfo" { 940 class BarInfo native "*BarInfo" {
777 941
778 /** @domName BarInfo.visible */ 942 /** @domName BarInfo.visible */
943 /// @docsEditable
779 final bool visible; 944 final bool visible;
780 } 945 }
781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 946 // 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 947 // 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. 948 // BSD-style license that can be found in the LICENSE file.
784 949
785 950
786 /// @domName HTMLBaseElement 951 /// @domName HTMLBaseElement
952 /// @docsEditable
787 class BaseElement extends Element implements Element native "*HTMLBaseElement" { 953 class BaseElement extends Element implements Element native "*HTMLBaseElement" {
788 954
789 factory BaseElement() => document.$dom_createElement("base"); 955 factory BaseElement() => document.$dom_createElement("base");
790 956
791 /** @domName HTMLBaseElement.href */ 957 /** @domName HTMLBaseElement.href */
958 /// @docsEditable
792 String href; 959 String href;
793 960
794 /** @domName HTMLBaseElement.target */ 961 /** @domName HTMLBaseElement.target */
962 /// @docsEditable
795 String target; 963 String target;
796 } 964 }
797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 965 // 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 966 // 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. 967 // BSD-style license that can be found in the LICENSE file.
800 968
801 969
802 /// @domName HTMLBaseFontElement 970 /// @domName HTMLBaseFontElement
971 /// @docsEditable
803 class BaseFontElement extends Element implements Element native "*HTMLBaseFontEl ement" { 972 class BaseFontElement extends Element implements Element native "*HTMLBaseFontEl ement" {
804 973
805 /** @domName HTMLBaseFontElement.color */ 974 /** @domName HTMLBaseFontElement.color */
975 /// @docsEditable
806 String color; 976 String color;
807 977
808 /** @domName HTMLBaseFontElement.face */ 978 /** @domName HTMLBaseFontElement.face */
979 /// @docsEditable
809 String face; 980 String face;
810 981
811 /** @domName HTMLBaseFontElement.size */ 982 /** @domName HTMLBaseFontElement.size */
983 /// @docsEditable
812 int size; 984 int size;
813 } 985 }
814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 986 // 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 987 // 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. 988 // BSD-style license that can be found in the LICENSE file.
817 989
818 990
819 /// @domName BatteryManager 991 /// @domName BatteryManager
992 /// @docsEditable
820 class BatteryManager extends EventTarget native "*BatteryManager" { 993 class BatteryManager extends EventTarget native "*BatteryManager" {
821 994
822 /** 995 /**
823 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 996 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
824 */ 997 */
998 /// @docsEditable
825 BatteryManagerEvents get on => 999 BatteryManagerEvents get on =>
826 new BatteryManagerEvents(this); 1000 new BatteryManagerEvents(this);
827 1001
828 /** @domName BatteryManager.charging */ 1002 /** @domName BatteryManager.charging */
1003 /// @docsEditable
829 final bool charging; 1004 final bool charging;
830 1005
831 /** @domName BatteryManager.chargingTime */ 1006 /** @domName BatteryManager.chargingTime */
1007 /// @docsEditable
832 final num chargingTime; 1008 final num chargingTime;
833 1009
834 /** @domName BatteryManager.dischargingTime */ 1010 /** @domName BatteryManager.dischargingTime */
1011 /// @docsEditable
835 final num dischargingTime; 1012 final num dischargingTime;
836 1013
837 /** @domName BatteryManager.level */ 1014 /** @domName BatteryManager.level */
1015 /// @docsEditable
838 final num level; 1016 final num level;
839 1017
840 /** @domName BatteryManager.addEventListener */ 1018 /** @domName BatteryManager.addEventListener */
1019 /// @docsEditable
841 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 1020 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
842 1021
843 /** @domName BatteryManager.dispatchEvent */ 1022 /** @domName BatteryManager.dispatchEvent */
1023 /// @docsEditable
844 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 1024 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
845 1025
846 /** @domName BatteryManager.removeEventListener */ 1026 /** @domName BatteryManager.removeEventListener */
1027 /// @docsEditable
847 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 1028 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
848 } 1029 }
849 1030
850 class BatteryManagerEvents extends Events { 1031 class BatteryManagerEvents extends Events {
851 BatteryManagerEvents(EventTarget _ptr) : super(_ptr); 1032 BatteryManagerEvents(EventTarget _ptr) : super(_ptr);
852 1033
853 EventListenerList get chargingChange => this['chargingchange']; 1034 EventListenerList get chargingChange => this['chargingchange'];
854 1035
855 EventListenerList get chargingTimeChange => this['chargingtimechange']; 1036 EventListenerList get chargingTimeChange => this['chargingtimechange'];
856 1037
857 EventListenerList get dischargingTimeChange => this['dischargingtimechange']; 1038 EventListenerList get dischargingTimeChange => this['dischargingtimechange'];
858 1039
859 EventListenerList get levelChange => this['levelchange']; 1040 EventListenerList get levelChange => this['levelchange'];
860 } 1041 }
861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1042 // 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 1043 // 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. 1044 // BSD-style license that can be found in the LICENSE file.
864 1045
865 1046
866 /// @domName BeforeLoadEvent 1047 /// @domName BeforeLoadEvent
1048 /// @docsEditable
867 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 1049 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
868 1050
869 /** @domName BeforeLoadEvent.url */ 1051 /** @domName BeforeLoadEvent.url */
1052 /// @docsEditable
870 final String url; 1053 final String url;
871 } 1054 }
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1055 // 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 1056 // 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. 1057 // BSD-style license that can be found in the LICENSE file.
875 1058
876 1059
877 /// @domName BiquadFilterNode 1060 /// @domName BiquadFilterNode
1061 /// @docsEditable
878 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" { 1062 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
879 1063
880 static const int ALLPASS = 7; 1064 static const int ALLPASS = 7;
881 1065
882 static const int BANDPASS = 2; 1066 static const int BANDPASS = 2;
883 1067
884 static const int HIGHPASS = 1; 1068 static const int HIGHPASS = 1;
885 1069
886 static const int HIGHSHELF = 4; 1070 static const int HIGHSHELF = 4;
887 1071
888 static const int LOWPASS = 0; 1072 static const int LOWPASS = 0;
889 1073
890 static const int LOWSHELF = 3; 1074 static const int LOWSHELF = 3;
891 1075
892 static const int NOTCH = 6; 1076 static const int NOTCH = 6;
893 1077
894 static const int PEAKING = 5; 1078 static const int PEAKING = 5;
895 1079
896 /** @domName BiquadFilterNode.Q */ 1080 /** @domName BiquadFilterNode.Q */
1081 /// @docsEditable
897 final AudioParam Q; 1082 final AudioParam Q;
898 1083
899 /** @domName BiquadFilterNode.frequency */ 1084 /** @domName BiquadFilterNode.frequency */
1085 /// @docsEditable
900 final AudioParam frequency; 1086 final AudioParam frequency;
901 1087
902 /** @domName BiquadFilterNode.gain */ 1088 /** @domName BiquadFilterNode.gain */
1089 /// @docsEditable
903 final AudioParam gain; 1090 final AudioParam gain;
904 1091
905 /** @domName BiquadFilterNode.type */ 1092 /** @domName BiquadFilterNode.type */
1093 /// @docsEditable
906 int type; 1094 int type;
907 1095
908 /** @domName BiquadFilterNode.getFrequencyResponse */ 1096 /** @domName BiquadFilterNode.getFrequencyResponse */
1097 /// @docsEditable
909 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native; 1098 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native;
910 } 1099 }
911 // 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
912 // 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
913 // BSD-style license that can be found in the LICENSE file. 1102 // BSD-style license that can be found in the LICENSE file.
914 1103
915 1104
916 /// @domName Blob 1105 /// @domName Blob
1106 /// @docsEditable
917 class Blob native "*Blob" { 1107 class Blob native "*Blob" {
918 1108
919 factory Blob(List blobParts, [String type, String endings]) { 1109 factory Blob(List blobParts, [String type, String endings]) {
920 if (!?type) { 1110 if (!?type) {
921 return _BlobFactoryProvider.createBlob(blobParts); 1111 return _BlobFactoryProvider.createBlob(blobParts);
922 } 1112 }
923 if (!?endings) { 1113 if (!?endings) {
924 return _BlobFactoryProvider.createBlob(blobParts, type); 1114 return _BlobFactoryProvider.createBlob(blobParts, type);
925 } 1115 }
926 return _BlobFactoryProvider.createBlob(blobParts, type, endings); 1116 return _BlobFactoryProvider.createBlob(blobParts, type, endings);
927 } 1117 }
928 1118
929 /** @domName Blob.size */ 1119 /** @domName Blob.size */
1120 /// @docsEditable
930 final int size; 1121 final int size;
931 1122
932 /** @domName Blob.type */ 1123 /** @domName Blob.type */
1124 /// @docsEditable
933 final String type; 1125 final String type;
934 1126
935 /** @domName Blob.slice */ 1127 /** @domName Blob.slice */
1128 /// @docsEditable
936 Blob slice([int start, int end, String contentType]) native; 1129 Blob slice([int start, int end, String contentType]) native;
937 } 1130 }
938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1131 // 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 1132 // 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. 1133 // BSD-style license that can be found in the LICENSE file.
941 1134
942 1135
943 /// @domName HTMLBodyElement 1136 /// @domName HTMLBodyElement
1137 /// @docsEditable
944 class BodyElement extends Element implements Element native "*HTMLBodyElement" { 1138 class BodyElement extends Element implements Element native "*HTMLBodyElement" {
945 1139
946 factory BodyElement() => document.$dom_createElement("body"); 1140 factory BodyElement() => document.$dom_createElement("body");
947 1141
948 /** 1142 /**
949 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 1143 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
950 */ 1144 */
1145 /// @docsEditable
951 BodyElementEvents get on => 1146 BodyElementEvents get on =>
952 new BodyElementEvents(this); 1147 new BodyElementEvents(this);
953 1148
954 /** @domName HTMLBodyElement.aLink */ 1149 /** @domName HTMLBodyElement.aLink */
1150 /// @docsEditable
955 String aLink; 1151 String aLink;
956 1152
957 /** @domName HTMLBodyElement.background */ 1153 /** @domName HTMLBodyElement.background */
1154 /// @docsEditable
958 String background; 1155 String background;
959 1156
960 /** @domName HTMLBodyElement.bgColor */ 1157 /** @domName HTMLBodyElement.bgColor */
1158 /// @docsEditable
961 String bgColor; 1159 String bgColor;
962 1160
963 /** @domName HTMLBodyElement.link */ 1161 /** @domName HTMLBodyElement.link */
1162 /// @docsEditable
964 String link; 1163 String link;
965 1164
966 /** @domName HTMLBodyElement.vLink */ 1165 /** @domName HTMLBodyElement.vLink */
1166 /// @docsEditable
967 String vLink; 1167 String vLink;
968 } 1168 }
969 1169
970 class BodyElementEvents extends ElementEvents { 1170 class BodyElementEvents extends ElementEvents {
971 BodyElementEvents(EventTarget _ptr) : super(_ptr); 1171 BodyElementEvents(EventTarget _ptr) : super(_ptr);
972 1172
973 EventListenerList get beforeUnload => this['beforeunload']; 1173 EventListenerList get beforeUnload => this['beforeunload'];
974 1174
975 EventListenerList get blur => this['blur']; 1175 EventListenerList get blur => this['blur'];
976 1176
(...skipping 18 matching lines...) Expand all
995 EventListenerList get storage => this['storage']; 1195 EventListenerList get storage => this['storage'];
996 1196
997 EventListenerList get unload => this['unload']; 1197 EventListenerList get unload => this['unload'];
998 } 1198 }
999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1199 // 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 1200 // 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. 1201 // BSD-style license that can be found in the LICENSE file.
1002 1202
1003 1203
1004 /// @domName HTMLButtonElement 1204 /// @domName HTMLButtonElement
1205 /// @docsEditable
1005 class ButtonElement extends Element implements Element native "*HTMLButtonElemen t" { 1206 class ButtonElement extends Element implements Element native "*HTMLButtonElemen t" {
1006 1207
1007 factory ButtonElement() => document.$dom_createElement("button"); 1208 factory ButtonElement() => document.$dom_createElement("button");
1008 1209
1009 /** @domName HTMLButtonElement.autofocus */ 1210 /** @domName HTMLButtonElement.autofocus */
1211 /// @docsEditable
1010 bool autofocus; 1212 bool autofocus;
1011 1213
1012 /** @domName HTMLButtonElement.disabled */ 1214 /** @domName HTMLButtonElement.disabled */
1215 /// @docsEditable
1013 bool disabled; 1216 bool disabled;
1014 1217
1015 /** @domName HTMLButtonElement.form */ 1218 /** @domName HTMLButtonElement.form */
1219 /// @docsEditable
1016 final FormElement form; 1220 final FormElement form;
1017 1221
1018 /** @domName HTMLButtonElement.formAction */ 1222 /** @domName HTMLButtonElement.formAction */
1223 /// @docsEditable
1019 String formAction; 1224 String formAction;
1020 1225
1021 /** @domName HTMLButtonElement.formEnctype */ 1226 /** @domName HTMLButtonElement.formEnctype */
1227 /// @docsEditable
1022 String formEnctype; 1228 String formEnctype;
1023 1229
1024 /** @domName HTMLButtonElement.formMethod */ 1230 /** @domName HTMLButtonElement.formMethod */
1231 /// @docsEditable
1025 String formMethod; 1232 String formMethod;
1026 1233
1027 /** @domName HTMLButtonElement.formNoValidate */ 1234 /** @domName HTMLButtonElement.formNoValidate */
1235 /// @docsEditable
1028 bool formNoValidate; 1236 bool formNoValidate;
1029 1237
1030 /** @domName HTMLButtonElement.formTarget */ 1238 /** @domName HTMLButtonElement.formTarget */
1239 /// @docsEditable
1031 String formTarget; 1240 String formTarget;
1032 1241
1033 /** @domName HTMLButtonElement.labels */ 1242 /** @domName HTMLButtonElement.labels */
1243 /// @docsEditable
1034 final List<Node> labels; 1244 final List<Node> labels;
1035 1245
1036 /** @domName HTMLButtonElement.name */ 1246 /** @domName HTMLButtonElement.name */
1247 /// @docsEditable
1037 String name; 1248 String name;
1038 1249
1039 /** @domName HTMLButtonElement.type */ 1250 /** @domName HTMLButtonElement.type */
1251 /// @docsEditable
1040 String type; 1252 String type;
1041 1253
1042 /** @domName HTMLButtonElement.validationMessage */ 1254 /** @domName HTMLButtonElement.validationMessage */
1255 /// @docsEditable
1043 final String validationMessage; 1256 final String validationMessage;
1044 1257
1045 /** @domName HTMLButtonElement.validity */ 1258 /** @domName HTMLButtonElement.validity */
1259 /// @docsEditable
1046 final ValidityState validity; 1260 final ValidityState validity;
1047 1261
1048 /** @domName HTMLButtonElement.value */ 1262 /** @domName HTMLButtonElement.value */
1263 /// @docsEditable
1049 String value; 1264 String value;
1050 1265
1051 /** @domName HTMLButtonElement.willValidate */ 1266 /** @domName HTMLButtonElement.willValidate */
1267 /// @docsEditable
1052 final bool willValidate; 1268 final bool willValidate;
1053 1269
1054 /** @domName HTMLButtonElement.checkValidity */ 1270 /** @domName HTMLButtonElement.checkValidity */
1271 /// @docsEditable
1055 bool checkValidity() native; 1272 bool checkValidity() native;
1056 1273
1057 /** @domName HTMLButtonElement.setCustomValidity */ 1274 /** @domName HTMLButtonElement.setCustomValidity */
1275 /// @docsEditable
1058 void setCustomValidity(String error) native; 1276 void setCustomValidity(String error) native;
1059 } 1277 }
1060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1061 // for details. All rights reserved. Use of this source code is governed by a 1279 // for details. All rights reserved. Use of this source code is governed by a
1062 // BSD-style license that can be found in the LICENSE file. 1280 // BSD-style license that can be found in the LICENSE file.
1063 1281
1064 1282
1065 /// @domName CDATASection 1283 /// @domName CDATASection
1284 /// @docsEditable
1066 class CDATASection extends Text native "*CDATASection" { 1285 class CDATASection extends Text native "*CDATASection" {
1067 } 1286 }
1068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1287 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1069 // for details. All rights reserved. Use of this source code is governed by a 1288 // for details. All rights reserved. Use of this source code is governed by a
1070 // BSD-style license that can be found in the LICENSE file. 1289 // BSD-style license that can be found in the LICENSE file.
1071 1290
1072 1291
1073 /// @domName CSSCharsetRule 1292 /// @domName CSSCharsetRule
1293 /// @docsEditable
1074 class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" { 1294 class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" {
1075 1295
1076 /** @domName CSSCharsetRule.encoding */ 1296 /** @domName CSSCharsetRule.encoding */
1297 /// @docsEditable
1077 String encoding; 1298 String encoding;
1078 } 1299 }
1079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1080 // for details. All rights reserved. Use of this source code is governed by a 1301 // for details. All rights reserved. Use of this source code is governed by a
1081 // BSD-style license that can be found in the LICENSE file. 1302 // BSD-style license that can be found in the LICENSE file.
1082 1303
1083 1304
1084 /// @domName CSSFontFaceRule 1305 /// @domName CSSFontFaceRule
1306 /// @docsEditable
1085 class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" { 1307 class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" {
1086 1308
1087 /** @domName CSSFontFaceRule.style */ 1309 /** @domName CSSFontFaceRule.style */
1310 /// @docsEditable
1088 final CSSStyleDeclaration style; 1311 final CSSStyleDeclaration style;
1089 } 1312 }
1090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1091 // for details. All rights reserved. Use of this source code is governed by a 1314 // for details. All rights reserved. Use of this source code is governed by a
1092 // BSD-style license that can be found in the LICENSE file. 1315 // BSD-style license that can be found in the LICENSE file.
1093 1316
1094 1317
1095 /// @domName CSSImportRule 1318 /// @domName CSSImportRule
1319 /// @docsEditable
1096 class CSSImportRule extends CSSRule native "*CSSImportRule" { 1320 class CSSImportRule extends CSSRule native "*CSSImportRule" {
1097 1321
1098 /** @domName CSSImportRule.href */ 1322 /** @domName CSSImportRule.href */
1323 /// @docsEditable
1099 final String href; 1324 final String href;
1100 1325
1101 /** @domName CSSImportRule.media */ 1326 /** @domName CSSImportRule.media */
1327 /// @docsEditable
1102 final MediaList media; 1328 final MediaList media;
1103 1329
1104 /** @domName CSSImportRule.styleSheet */ 1330 /** @domName CSSImportRule.styleSheet */
1331 /// @docsEditable
1105 final CSSStyleSheet styleSheet; 1332 final CSSStyleSheet styleSheet;
1106 } 1333 }
1107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1108 // for details. All rights reserved. Use of this source code is governed by a 1335 // for details. All rights reserved. Use of this source code is governed by a
1109 // BSD-style license that can be found in the LICENSE file. 1336 // BSD-style license that can be found in the LICENSE file.
1110 1337
1111 1338
1112 /// @domName WebKitCSSKeyframeRule 1339 /// @domName WebKitCSSKeyframeRule
1340 /// @docsEditable
1113 class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" { 1341 class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" {
1114 1342
1115 /** @domName WebKitCSSKeyframeRule.keyText */ 1343 /** @domName WebKitCSSKeyframeRule.keyText */
1344 /// @docsEditable
1116 String keyText; 1345 String keyText;
1117 1346
1118 /** @domName WebKitCSSKeyframeRule.style */ 1347 /** @domName WebKitCSSKeyframeRule.style */
1348 /// @docsEditable
1119 final CSSStyleDeclaration style; 1349 final CSSStyleDeclaration style;
1120 } 1350 }
1121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1122 // for details. All rights reserved. Use of this source code is governed by a 1352 // for details. All rights reserved. Use of this source code is governed by a
1123 // BSD-style license that can be found in the LICENSE file. 1353 // BSD-style license that can be found in the LICENSE file.
1124 1354
1125 1355
1126 /// @domName WebKitCSSKeyframesRule 1356 /// @domName WebKitCSSKeyframesRule
1357 /// @docsEditable
1127 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" { 1358 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" {
1128 1359
1129 /** @domName WebKitCSSKeyframesRule.cssRules */ 1360 /** @domName WebKitCSSKeyframesRule.cssRules */
1361 /// @docsEditable
1130 final List<CSSRule> cssRules; 1362 final List<CSSRule> cssRules;
1131 1363
1132 /** @domName WebKitCSSKeyframesRule.name */ 1364 /** @domName WebKitCSSKeyframesRule.name */
1365 /// @docsEditable
1133 String name; 1366 String name;
1134 1367
1135 /** @domName WebKitCSSKeyframesRule.deleteRule */ 1368 /** @domName WebKitCSSKeyframesRule.deleteRule */
1369 /// @docsEditable
1136 void deleteRule(String key) native; 1370 void deleteRule(String key) native;
1137 1371
1138 /** @domName WebKitCSSKeyframesRule.findRule */ 1372 /** @domName WebKitCSSKeyframesRule.findRule */
1373 /// @docsEditable
1139 CSSKeyframeRule findRule(String key) native; 1374 CSSKeyframeRule findRule(String key) native;
1140 1375
1141 /** @domName WebKitCSSKeyframesRule.insertRule */ 1376 /** @domName WebKitCSSKeyframesRule.insertRule */
1377 /// @docsEditable
1142 void insertRule(String rule) native; 1378 void insertRule(String rule) native;
1143 } 1379 }
1144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1145 // for details. All rights reserved. Use of this source code is governed by a 1381 // for details. All rights reserved. Use of this source code is governed by a
1146 // BSD-style license that can be found in the LICENSE file. 1382 // BSD-style license that can be found in the LICENSE file.
1147 1383
1148 1384
1149 /// @domName WebKitCSSMatrix 1385 /// @domName WebKitCSSMatrix
1386 /// @docsEditable
1150 class CSSMatrix native "*WebKitCSSMatrix" { 1387 class CSSMatrix native "*WebKitCSSMatrix" {
1151 1388
1152 factory CSSMatrix([String cssValue]) { 1389 factory CSSMatrix([String cssValue]) {
1153 if (!?cssValue) { 1390 if (!?cssValue) {
1154 return _CSSMatrixFactoryProvider.createCSSMatrix(); 1391 return _CSSMatrixFactoryProvider.createCSSMatrix();
1155 } 1392 }
1156 return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue); 1393 return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue);
1157 } 1394 }
1158 1395
1159 /** @domName WebKitCSSMatrix.a */ 1396 /** @domName WebKitCSSMatrix.a */
1397 /// @docsEditable
1160 num a; 1398 num a;
1161 1399
1162 /** @domName WebKitCSSMatrix.b */ 1400 /** @domName WebKitCSSMatrix.b */
1401 /// @docsEditable
1163 num b; 1402 num b;
1164 1403
1165 /** @domName WebKitCSSMatrix.c */ 1404 /** @domName WebKitCSSMatrix.c */
1405 /// @docsEditable
1166 num c; 1406 num c;
1167 1407
1168 /** @domName WebKitCSSMatrix.d */ 1408 /** @domName WebKitCSSMatrix.d */
1409 /// @docsEditable
1169 num d; 1410 num d;
1170 1411
1171 /** @domName WebKitCSSMatrix.e */ 1412 /** @domName WebKitCSSMatrix.e */
1413 /// @docsEditable
1172 num e; 1414 num e;
1173 1415
1174 /** @domName WebKitCSSMatrix.f */ 1416 /** @domName WebKitCSSMatrix.f */
1417 /// @docsEditable
1175 num f; 1418 num f;
1176 1419
1177 /** @domName WebKitCSSMatrix.m11 */ 1420 /** @domName WebKitCSSMatrix.m11 */
1421 /// @docsEditable
1178 num m11; 1422 num m11;
1179 1423
1180 /** @domName WebKitCSSMatrix.m12 */ 1424 /** @domName WebKitCSSMatrix.m12 */
1425 /// @docsEditable
1181 num m12; 1426 num m12;
1182 1427
1183 /** @domName WebKitCSSMatrix.m13 */ 1428 /** @domName WebKitCSSMatrix.m13 */
1429 /// @docsEditable
1184 num m13; 1430 num m13;
1185 1431
1186 /** @domName WebKitCSSMatrix.m14 */ 1432 /** @domName WebKitCSSMatrix.m14 */
1433 /// @docsEditable
1187 num m14; 1434 num m14;
1188 1435
1189 /** @domName WebKitCSSMatrix.m21 */ 1436 /** @domName WebKitCSSMatrix.m21 */
1437 /// @docsEditable
1190 num m21; 1438 num m21;
1191 1439
1192 /** @domName WebKitCSSMatrix.m22 */ 1440 /** @domName WebKitCSSMatrix.m22 */
1441 /// @docsEditable
1193 num m22; 1442 num m22;
1194 1443
1195 /** @domName WebKitCSSMatrix.m23 */ 1444 /** @domName WebKitCSSMatrix.m23 */
1445 /// @docsEditable
1196 num m23; 1446 num m23;
1197 1447
1198 /** @domName WebKitCSSMatrix.m24 */ 1448 /** @domName WebKitCSSMatrix.m24 */
1449 /// @docsEditable
1199 num m24; 1450 num m24;
1200 1451
1201 /** @domName WebKitCSSMatrix.m31 */ 1452 /** @domName WebKitCSSMatrix.m31 */
1453 /// @docsEditable
1202 num m31; 1454 num m31;
1203 1455
1204 /** @domName WebKitCSSMatrix.m32 */ 1456 /** @domName WebKitCSSMatrix.m32 */
1457 /// @docsEditable
1205 num m32; 1458 num m32;
1206 1459
1207 /** @domName WebKitCSSMatrix.m33 */ 1460 /** @domName WebKitCSSMatrix.m33 */
1461 /// @docsEditable
1208 num m33; 1462 num m33;
1209 1463
1210 /** @domName WebKitCSSMatrix.m34 */ 1464 /** @domName WebKitCSSMatrix.m34 */
1465 /// @docsEditable
1211 num m34; 1466 num m34;
1212 1467
1213 /** @domName WebKitCSSMatrix.m41 */ 1468 /** @domName WebKitCSSMatrix.m41 */
1469 /// @docsEditable
1214 num m41; 1470 num m41;
1215 1471
1216 /** @domName WebKitCSSMatrix.m42 */ 1472 /** @domName WebKitCSSMatrix.m42 */
1473 /// @docsEditable
1217 num m42; 1474 num m42;
1218 1475
1219 /** @domName WebKitCSSMatrix.m43 */ 1476 /** @domName WebKitCSSMatrix.m43 */
1477 /// @docsEditable
1220 num m43; 1478 num m43;
1221 1479
1222 /** @domName WebKitCSSMatrix.m44 */ 1480 /** @domName WebKitCSSMatrix.m44 */
1481 /// @docsEditable
1223 num m44; 1482 num m44;
1224 1483
1225 /** @domName WebKitCSSMatrix.inverse */ 1484 /** @domName WebKitCSSMatrix.inverse */
1485 /// @docsEditable
1226 CSSMatrix inverse() native; 1486 CSSMatrix inverse() native;
1227 1487
1228 /** @domName WebKitCSSMatrix.multiply */ 1488 /** @domName WebKitCSSMatrix.multiply */
1489 /// @docsEditable
1229 CSSMatrix multiply(CSSMatrix secondMatrix) native; 1490 CSSMatrix multiply(CSSMatrix secondMatrix) native;
1230 1491
1231 /** @domName WebKitCSSMatrix.rotate */ 1492 /** @domName WebKitCSSMatrix.rotate */
1493 /// @docsEditable
1232 CSSMatrix rotate(num rotX, num rotY, num rotZ) native; 1494 CSSMatrix rotate(num rotX, num rotY, num rotZ) native;
1233 1495
1234 /** @domName WebKitCSSMatrix.rotateAxisAngle */ 1496 /** @domName WebKitCSSMatrix.rotateAxisAngle */
1497 /// @docsEditable
1235 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native; 1498 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native;
1236 1499
1237 /** @domName WebKitCSSMatrix.scale */ 1500 /** @domName WebKitCSSMatrix.scale */
1501 /// @docsEditable
1238 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native; 1502 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native;
1239 1503
1240 /** @domName WebKitCSSMatrix.setMatrixValue */ 1504 /** @domName WebKitCSSMatrix.setMatrixValue */
1505 /// @docsEditable
1241 void setMatrixValue(String string) native; 1506 void setMatrixValue(String string) native;
1242 1507
1243 /** @domName WebKitCSSMatrix.skewX */ 1508 /** @domName WebKitCSSMatrix.skewX */
1509 /// @docsEditable
1244 CSSMatrix skewX(num angle) native; 1510 CSSMatrix skewX(num angle) native;
1245 1511
1246 /** @domName WebKitCSSMatrix.skewY */ 1512 /** @domName WebKitCSSMatrix.skewY */
1513 /// @docsEditable
1247 CSSMatrix skewY(num angle) native; 1514 CSSMatrix skewY(num angle) native;
1248 1515
1249 /** @domName WebKitCSSMatrix.toString */ 1516 /** @domName WebKitCSSMatrix.toString */
1517 /// @docsEditable
1250 String toString() native; 1518 String toString() native;
1251 1519
1252 /** @domName WebKitCSSMatrix.translate */ 1520 /** @domName WebKitCSSMatrix.translate */
1521 /// @docsEditable
1253 CSSMatrix translate(num x, num y, num z) native; 1522 CSSMatrix translate(num x, num y, num z) native;
1254 } 1523 }
1255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1256 // for details. All rights reserved. Use of this source code is governed by a 1525 // for details. All rights reserved. Use of this source code is governed by a
1257 // BSD-style license that can be found in the LICENSE file. 1526 // BSD-style license that can be found in the LICENSE file.
1258 1527
1259 1528
1260 /// @domName CSSMediaRule 1529 /// @domName CSSMediaRule
1530 /// @docsEditable
1261 class CSSMediaRule extends CSSRule native "*CSSMediaRule" { 1531 class CSSMediaRule extends CSSRule native "*CSSMediaRule" {
1262 1532
1263 /** @domName CSSMediaRule.cssRules */ 1533 /** @domName CSSMediaRule.cssRules */
1534 /// @docsEditable
1264 final List<CSSRule> cssRules; 1535 final List<CSSRule> cssRules;
1265 1536
1266 /** @domName CSSMediaRule.media */ 1537 /** @domName CSSMediaRule.media */
1538 /// @docsEditable
1267 final MediaList media; 1539 final MediaList media;
1268 1540
1269 /** @domName CSSMediaRule.deleteRule */ 1541 /** @domName CSSMediaRule.deleteRule */
1542 /// @docsEditable
1270 void deleteRule(int index) native; 1543 void deleteRule(int index) native;
1271 1544
1272 /** @domName CSSMediaRule.insertRule */ 1545 /** @domName CSSMediaRule.insertRule */
1546 /// @docsEditable
1273 int insertRule(String rule, int index) native; 1547 int insertRule(String rule, int index) native;
1274 } 1548 }
1275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1276 // for details. All rights reserved. Use of this source code is governed by a 1550 // for details. All rights reserved. Use of this source code is governed by a
1277 // BSD-style license that can be found in the LICENSE file. 1551 // BSD-style license that can be found in the LICENSE file.
1278 1552
1279 1553
1280 /// @domName CSSPageRule 1554 /// @domName CSSPageRule
1555 /// @docsEditable
1281 class CSSPageRule extends CSSRule native "*CSSPageRule" { 1556 class CSSPageRule extends CSSRule native "*CSSPageRule" {
1282 1557
1283 /** @domName CSSPageRule.selectorText */ 1558 /** @domName CSSPageRule.selectorText */
1559 /// @docsEditable
1284 String selectorText; 1560 String selectorText;
1285 1561
1286 /** @domName CSSPageRule.style */ 1562 /** @domName CSSPageRule.style */
1563 /// @docsEditable
1287 final CSSStyleDeclaration style; 1564 final CSSStyleDeclaration style;
1288 } 1565 }
1289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1290 // for details. All rights reserved. Use of this source code is governed by a 1567 // for details. All rights reserved. Use of this source code is governed by a
1291 // BSD-style license that can be found in the LICENSE file. 1568 // BSD-style license that can be found in the LICENSE file.
1292 1569
1293 1570
1294 /// @domName CSSPrimitiveValue 1571 /// @domName CSSPrimitiveValue
1572 /// @docsEditable
1295 class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" { 1573 class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" {
1296 1574
1297 static const int CSS_ATTR = 22; 1575 static const int CSS_ATTR = 22;
1298 1576
1299 static const int CSS_CM = 6; 1577 static const int CSS_CM = 6;
1300 1578
1301 static const int CSS_COUNTER = 23; 1579 static const int CSS_COUNTER = 23;
1302 1580
1303 static const int CSS_DEG = 11; 1581 static const int CSS_DEG = 11;
1304 1582
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 1624
1347 static const int CSS_URI = 20; 1625 static const int CSS_URI = 20;
1348 1626
1349 static const int CSS_VH = 27; 1627 static const int CSS_VH = 27;
1350 1628
1351 static const int CSS_VMIN = 28; 1629 static const int CSS_VMIN = 28;
1352 1630
1353 static const int CSS_VW = 26; 1631 static const int CSS_VW = 26;
1354 1632
1355 /** @domName CSSPrimitiveValue.primitiveType */ 1633 /** @domName CSSPrimitiveValue.primitiveType */
1634 /// @docsEditable
1356 final int primitiveType; 1635 final int primitiveType;
1357 1636
1358 /** @domName CSSPrimitiveValue.getCounterValue */ 1637 /** @domName CSSPrimitiveValue.getCounterValue */
1638 /// @docsEditable
1359 Counter getCounterValue() native; 1639 Counter getCounterValue() native;
1360 1640
1361 /** @domName CSSPrimitiveValue.getFloatValue */ 1641 /** @domName CSSPrimitiveValue.getFloatValue */
1642 /// @docsEditable
1362 num getFloatValue(int unitType) native; 1643 num getFloatValue(int unitType) native;
1363 1644
1364 /** @domName CSSPrimitiveValue.getRGBColorValue */ 1645 /** @domName CSSPrimitiveValue.getRGBColorValue */
1646 /// @docsEditable
1365 RGBColor getRGBColorValue() native; 1647 RGBColor getRGBColorValue() native;
1366 1648
1367 /** @domName CSSPrimitiveValue.getRectValue */ 1649 /** @domName CSSPrimitiveValue.getRectValue */
1650 /// @docsEditable
1368 Rect getRectValue() native; 1651 Rect getRectValue() native;
1369 1652
1370 /** @domName CSSPrimitiveValue.getStringValue */ 1653 /** @domName CSSPrimitiveValue.getStringValue */
1654 /// @docsEditable
1371 String getStringValue() native; 1655 String getStringValue() native;
1372 1656
1373 /** @domName CSSPrimitiveValue.setFloatValue */ 1657 /** @domName CSSPrimitiveValue.setFloatValue */
1658 /// @docsEditable
1374 void setFloatValue(int unitType, num floatValue) native; 1659 void setFloatValue(int unitType, num floatValue) native;
1375 1660
1376 /** @domName CSSPrimitiveValue.setStringValue */ 1661 /** @domName CSSPrimitiveValue.setStringValue */
1662 /// @docsEditable
1377 void setStringValue(int stringType, String stringValue) native; 1663 void setStringValue(int stringType, String stringValue) native;
1378 } 1664 }
1379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1380 // for details. All rights reserved. Use of this source code is governed by a 1666 // for details. All rights reserved. Use of this source code is governed by a
1381 // BSD-style license that can be found in the LICENSE file. 1667 // BSD-style license that can be found in the LICENSE file.
1382 1668
1383 1669
1384 /// @domName CSSRule 1670 /// @domName CSSRule
1671 /// @docsEditable
1385 class CSSRule native "*CSSRule" { 1672 class CSSRule native "*CSSRule" {
1386 1673
1387 static const int CHARSET_RULE = 2; 1674 static const int CHARSET_RULE = 2;
1388 1675
1389 static const int FONT_FACE_RULE = 5; 1676 static const int FONT_FACE_RULE = 5;
1390 1677
1391 static const int IMPORT_RULE = 3; 1678 static const int IMPORT_RULE = 3;
1392 1679
1393 static const int MEDIA_RULE = 4; 1680 static const int MEDIA_RULE = 4;
1394 1681
1395 static const int PAGE_RULE = 6; 1682 static const int PAGE_RULE = 6;
1396 1683
1397 static const int STYLE_RULE = 1; 1684 static const int STYLE_RULE = 1;
1398 1685
1399 static const int UNKNOWN_RULE = 0; 1686 static const int UNKNOWN_RULE = 0;
1400 1687
1401 static const int WEBKIT_KEYFRAMES_RULE = 7; 1688 static const int WEBKIT_KEYFRAMES_RULE = 7;
1402 1689
1403 static const int WEBKIT_KEYFRAME_RULE = 8; 1690 static const int WEBKIT_KEYFRAME_RULE = 8;
1404 1691
1405 /** @domName CSSRule.cssText */ 1692 /** @domName CSSRule.cssText */
1693 /// @docsEditable
1406 String cssText; 1694 String cssText;
1407 1695
1408 /** @domName CSSRule.parentRule */ 1696 /** @domName CSSRule.parentRule */
1697 /// @docsEditable
1409 final CSSRule parentRule; 1698 final CSSRule parentRule;
1410 1699
1411 /** @domName CSSRule.parentStyleSheet */ 1700 /** @domName CSSRule.parentStyleSheet */
1701 /// @docsEditable
1412 final CSSStyleSheet parentStyleSheet; 1702 final CSSStyleSheet parentStyleSheet;
1413 1703
1414 /** @domName CSSRule.type */ 1704 /** @domName CSSRule.type */
1705 /// @docsEditable
1415 final int type; 1706 final int type;
1416 } 1707 }
1417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1418 // for details. All rights reserved. Use of this source code is governed by a 1709 // for details. All rights reserved. Use of this source code is governed by a
1419 // BSD-style license that can be found in the LICENSE file. 1710 // BSD-style license that can be found in the LICENSE file.
1420 1711
1421 1712
1422 String _cachedBrowserPrefix; 1713 String _cachedBrowserPrefix;
1423 1714
1424 String get _browserPrefix { 1715 String get _browserPrefix {
(...skipping 11 matching lines...) Expand all
1436 return _cachedBrowserPrefix; 1727 return _cachedBrowserPrefix;
1437 } 1728 }
1438 1729
1439 class CSSStyleDeclaration native "*CSSStyleDeclaration" { 1730 class CSSStyleDeclaration native "*CSSStyleDeclaration" {
1440 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS StyleDeclaration(); 1731 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS StyleDeclaration();
1441 factory CSSStyleDeclaration.css(String css) => 1732 factory CSSStyleDeclaration.css(String css) =>
1442 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css); 1733 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css);
1443 1734
1444 1735
1445 /** @domName CSSStyleDeclaration.cssText */ 1736 /** @domName CSSStyleDeclaration.cssText */
1737 /// @docsEditable
1446 String cssText; 1738 String cssText;
1447 1739
1448 /** @domName CSSStyleDeclaration.length */ 1740 /** @domName CSSStyleDeclaration.length */
1741 /// @docsEditable
1449 final int length; 1742 final int length;
1450 1743
1451 /** @domName CSSStyleDeclaration.parentRule */ 1744 /** @domName CSSStyleDeclaration.parentRule */
1745 /// @docsEditable
1452 final CSSRule parentRule; 1746 final CSSRule parentRule;
1453 1747
1454 /** @domName CSSStyleDeclaration.getPropertyCSSValue */ 1748 /** @domName CSSStyleDeclaration.getPropertyCSSValue */
1749 /// @docsEditable
1455 CSSValue getPropertyCSSValue(String propertyName) native; 1750 CSSValue getPropertyCSSValue(String propertyName) native;
1456 1751
1457 /** @domName CSSStyleDeclaration.getPropertyPriority */ 1752 /** @domName CSSStyleDeclaration.getPropertyPriority */
1753 /// @docsEditable
1458 String getPropertyPriority(String propertyName) native; 1754 String getPropertyPriority(String propertyName) native;
1459 1755
1460 /** @domName CSSStyleDeclaration.getPropertyShorthand */ 1756 /** @domName CSSStyleDeclaration.getPropertyShorthand */
1757 /// @docsEditable
1461 String getPropertyShorthand(String propertyName) native; 1758 String getPropertyShorthand(String propertyName) native;
1462 1759
1463 /** @domName CSSStyleDeclaration._getPropertyValue */ 1760 /** @domName CSSStyleDeclaration._getPropertyValue */
1761 /// @docsEditable
1464 String _getPropertyValue(String propertyName) native "getPropertyValue"; 1762 String _getPropertyValue(String propertyName) native "getPropertyValue";
1465 1763
1466 /** @domName CSSStyleDeclaration.isPropertyImplicit */ 1764 /** @domName CSSStyleDeclaration.isPropertyImplicit */
1765 /// @docsEditable
1467 bool isPropertyImplicit(String propertyName) native; 1766 bool isPropertyImplicit(String propertyName) native;
1468 1767
1469 /** @domName CSSStyleDeclaration.item */ 1768 /** @domName CSSStyleDeclaration.item */
1769 /// @docsEditable
1470 String item(int index) native; 1770 String item(int index) native;
1471 1771
1472 /** @domName CSSStyleDeclaration.removeProperty */ 1772 /** @domName CSSStyleDeclaration.removeProperty */
1773 /// @docsEditable
1473 String removeProperty(String propertyName) native; 1774 String removeProperty(String propertyName) native;
1474 1775
1475 1776
1476 String getPropertyValue(String propertyName) { 1777 String getPropertyValue(String propertyName) {
1477 var propValue = _getPropertyValue(propertyName); 1778 var propValue = _getPropertyValue(propertyName);
1478 return propValue != null ? propValue : ''; 1779 return propValue != null ? propValue : '';
1479 } 1780 }
1480 1781
1481 void setProperty(String propertyName, String value, [String priority]) { 1782 void setProperty(String propertyName, String value, [String priority]) {
1482 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); 1783 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority);
(...skipping 3153 matching lines...) Expand 10 before | Expand all | Expand 10 after
4636 void set zoom(String value) { 4937 void set zoom(String value) {
4637 setProperty('zoom', value, ''); 4938 setProperty('zoom', value, '');
4638 } 4939 }
4639 } 4940 }
4640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4641 // for details. All rights reserved. Use of this source code is governed by a 4942 // for details. All rights reserved. Use of this source code is governed by a
4642 // BSD-style license that can be found in the LICENSE file. 4943 // BSD-style license that can be found in the LICENSE file.
4643 4944
4644 4945
4645 /// @domName CSSStyleRule 4946 /// @domName CSSStyleRule
4947 /// @docsEditable
4646 class CSSStyleRule extends CSSRule native "*CSSStyleRule" { 4948 class CSSStyleRule extends CSSRule native "*CSSStyleRule" {
4647 4949
4648 /** @domName CSSStyleRule.selectorText */ 4950 /** @domName CSSStyleRule.selectorText */
4951 /// @docsEditable
4649 String selectorText; 4952 String selectorText;
4650 4953
4651 /** @domName CSSStyleRule.style */ 4954 /** @domName CSSStyleRule.style */
4955 /// @docsEditable
4652 final CSSStyleDeclaration style; 4956 final CSSStyleDeclaration style;
4653 } 4957 }
4654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4655 // for details. All rights reserved. Use of this source code is governed by a 4959 // for details. All rights reserved. Use of this source code is governed by a
4656 // BSD-style license that can be found in the LICENSE file. 4960 // BSD-style license that can be found in the LICENSE file.
4657 4961
4658 4962
4659 /// @domName CSSStyleSheet 4963 /// @domName CSSStyleSheet
4964 /// @docsEditable
4660 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" { 4965 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" {
4661 4966
4662 /** @domName CSSStyleSheet.cssRules */ 4967 /** @domName CSSStyleSheet.cssRules */
4968 /// @docsEditable
4663 final List<CSSRule> cssRules; 4969 final List<CSSRule> cssRules;
4664 4970
4665 /** @domName CSSStyleSheet.ownerRule */ 4971 /** @domName CSSStyleSheet.ownerRule */
4972 /// @docsEditable
4666 final CSSRule ownerRule; 4973 final CSSRule ownerRule;
4667 4974
4668 /** @domName CSSStyleSheet.rules */ 4975 /** @domName CSSStyleSheet.rules */
4976 /// @docsEditable
4669 final List<CSSRule> rules; 4977 final List<CSSRule> rules;
4670 4978
4671 /** @domName CSSStyleSheet.addRule */ 4979 /** @domName CSSStyleSheet.addRule */
4980 /// @docsEditable
4672 int addRule(String selector, String style, [int index]) native; 4981 int addRule(String selector, String style, [int index]) native;
4673 4982
4674 /** @domName CSSStyleSheet.deleteRule */ 4983 /** @domName CSSStyleSheet.deleteRule */
4984 /// @docsEditable
4675 void deleteRule(int index) native; 4985 void deleteRule(int index) native;
4676 4986
4677 /** @domName CSSStyleSheet.insertRule */ 4987 /** @domName CSSStyleSheet.insertRule */
4988 /// @docsEditable
4678 int insertRule(String rule, int index) native; 4989 int insertRule(String rule, int index) native;
4679 4990
4680 /** @domName CSSStyleSheet.removeRule */ 4991 /** @domName CSSStyleSheet.removeRule */
4992 /// @docsEditable
4681 void removeRule(int index) native; 4993 void removeRule(int index) native;
4682 } 4994 }
4683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4684 // for details. All rights reserved. Use of this source code is governed by a 4996 // for details. All rights reserved. Use of this source code is governed by a
4685 // BSD-style license that can be found in the LICENSE file. 4997 // BSD-style license that can be found in the LICENSE file.
4686 4998
4687 4999
4688 /// @domName WebKitCSSTransformValue 5000 /// @domName WebKitCSSTransformValue
5001 /// @docsEditable
4689 class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue" { 5002 class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue" {
4690 5003
4691 static const int CSS_MATRIX = 11; 5004 static const int CSS_MATRIX = 11;
4692 5005
4693 static const int CSS_MATRIX3D = 21; 5006 static const int CSS_MATRIX3D = 21;
4694 5007
4695 static const int CSS_PERSPECTIVE = 20; 5008 static const int CSS_PERSPECTIVE = 20;
4696 5009
4697 static const int CSS_ROTATE = 4; 5010 static const int CSS_ROTATE = 4;
4698 5011
(...skipping 25 matching lines...) Expand all
4724 5037
4725 static const int CSS_TRANSLATE3D = 13; 5038 static const int CSS_TRANSLATE3D = 13;
4726 5039
4727 static const int CSS_TRANSLATEX = 2; 5040 static const int CSS_TRANSLATEX = 2;
4728 5041
4729 static const int CSS_TRANSLATEY = 3; 5042 static const int CSS_TRANSLATEY = 3;
4730 5043
4731 static const int CSS_TRANSLATEZ = 12; 5044 static const int CSS_TRANSLATEZ = 12;
4732 5045
4733 /** @domName WebKitCSSTransformValue.operationType */ 5046 /** @domName WebKitCSSTransformValue.operationType */
5047 /// @docsEditable
4734 final int operationType; 5048 final int operationType;
4735 } 5049 }
4736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5050 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4737 // for details. All rights reserved. Use of this source code is governed by a 5051 // for details. All rights reserved. Use of this source code is governed by a
4738 // BSD-style license that can be found in the LICENSE file. 5052 // BSD-style license that can be found in the LICENSE file.
4739 5053
4740 5054
4741 /// @domName CSSUnknownRule 5055 /// @domName CSSUnknownRule
5056 /// @docsEditable
4742 class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" { 5057 class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" {
4743 } 5058 }
4744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4745 // for details. All rights reserved. Use of this source code is governed by a 5060 // for details. All rights reserved. Use of this source code is governed by a
4746 // BSD-style license that can be found in the LICENSE file. 5061 // BSD-style license that can be found in the LICENSE file.
4747 5062
4748 5063
4749 /// @domName CSSValue 5064 /// @domName CSSValue
5065 /// @docsEditable
4750 class CSSValue native "*CSSValue" { 5066 class CSSValue native "*CSSValue" {
4751 5067
4752 static const int CSS_CUSTOM = 3; 5068 static const int CSS_CUSTOM = 3;
4753 5069
4754 static const int CSS_INHERIT = 0; 5070 static const int CSS_INHERIT = 0;
4755 5071
4756 static const int CSS_PRIMITIVE_VALUE = 1; 5072 static const int CSS_PRIMITIVE_VALUE = 1;
4757 5073
4758 static const int CSS_VALUE_LIST = 2; 5074 static const int CSS_VALUE_LIST = 2;
4759 5075
4760 /** @domName CSSValue.cssText */ 5076 /** @domName CSSValue.cssText */
5077 /// @docsEditable
4761 String cssText; 5078 String cssText;
4762 5079
4763 /** @domName CSSValue.cssValueType */ 5080 /** @domName CSSValue.cssValueType */
5081 /// @docsEditable
4764 final int cssValueType; 5082 final int cssValueType;
4765 } 5083 }
4766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4767 // for details. All rights reserved. Use of this source code is governed by a 5085 // for details. All rights reserved. Use of this source code is governed by a
4768 // BSD-style license that can be found in the LICENSE file. 5086 // BSD-style license that can be found in the LICENSE file.
4769 5087
4770 5088
4771 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" { 5089 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" {
4772 5090
4773 factory CanvasElement({int width, int height}) { 5091 factory CanvasElement({int width, int height}) {
4774 var e = document.$dom_createElement("canvas"); 5092 var e = document.$dom_createElement("canvas");
4775 if (width != null) e.width = width; 5093 if (width != null) e.width = width;
4776 if (height != null) e.height = height; 5094 if (height != null) e.height = height;
4777 return e; 5095 return e;
4778 } 5096 }
4779 5097
4780 /** @domName HTMLCanvasElement.height */ 5098 /** @domName HTMLCanvasElement.height */
5099 /// @docsEditable
4781 int height; 5100 int height;
4782 5101
4783 /** @domName HTMLCanvasElement.width */ 5102 /** @domName HTMLCanvasElement.width */
5103 /// @docsEditable
4784 int width; 5104 int width;
4785 5105
4786 /** @domName HTMLCanvasElement.toDataURL */ 5106 /** @domName HTMLCanvasElement.toDataURL */
5107 /// @docsEditable
4787 String toDataURL(String type, [num quality]) native; 5108 String toDataURL(String type, [num quality]) native;
4788 5109
4789 5110
4790 CanvasRenderingContext getContext(String contextId) native; 5111 CanvasRenderingContext getContext(String contextId) native;
4791 CanvasRenderingContext2D get context2d => getContext('2d'); 5112 CanvasRenderingContext2D get context2d => getContext('2d');
4792 } 5113 }
4793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4794 // for details. All rights reserved. Use of this source code is governed by a 5115 // for details. All rights reserved. Use of this source code is governed by a
4795 // BSD-style license that can be found in the LICENSE file. 5116 // BSD-style license that can be found in the LICENSE file.
4796 5117
4797 5118
4798 /// @domName CanvasGradient 5119 /// @domName CanvasGradient
5120 /// @docsEditable
4799 class CanvasGradient native "*CanvasGradient" { 5121 class CanvasGradient native "*CanvasGradient" {
4800 5122
4801 /** @domName CanvasGradient.addColorStop */ 5123 /** @domName CanvasGradient.addColorStop */
5124 /// @docsEditable
4802 void addColorStop(num offset, String color) native; 5125 void addColorStop(num offset, String color) native;
4803 } 5126 }
4804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4805 // for details. All rights reserved. Use of this source code is governed by a 5128 // for details. All rights reserved. Use of this source code is governed by a
4806 // BSD-style license that can be found in the LICENSE file. 5129 // BSD-style license that can be found in the LICENSE file.
4807 5130
4808 5131
4809 /// @domName CanvasPattern 5132 /// @domName CanvasPattern
5133 /// @docsEditable
4810 class CanvasPattern native "*CanvasPattern" { 5134 class CanvasPattern native "*CanvasPattern" {
4811 } 5135 }
4812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4813 // for details. All rights reserved. Use of this source code is governed by a 5137 // for details. All rights reserved. Use of this source code is governed by a
4814 // BSD-style license that can be found in the LICENSE file. 5138 // BSD-style license that can be found in the LICENSE file.
4815 5139
4816 5140
4817 /// @domName CanvasRenderingContext 5141 /// @domName CanvasRenderingContext
5142 /// @docsEditable
4818 class CanvasRenderingContext native "*CanvasRenderingContext" { 5143 class CanvasRenderingContext native "*CanvasRenderingContext" {
4819 5144
4820 /** @domName CanvasRenderingContext.canvas */ 5145 /** @domName CanvasRenderingContext.canvas */
5146 /// @docsEditable
4821 final CanvasElement canvas; 5147 final CanvasElement canvas;
4822 } 5148 }
4823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4824 // for details. All rights reserved. Use of this source code is governed by a 5150 // for details. All rights reserved. Use of this source code is governed by a
4825 // BSD-style license that can be found in the LICENSE file. 5151 // BSD-style license that can be found in the LICENSE file.
4826 5152
4827 5153
4828 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" { 5154 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" {
4829 5155
4830 /** @domName CanvasRenderingContext2D.fillStyle */ 5156 /** @domName CanvasRenderingContext2D.fillStyle */
5157 /// @docsEditable
4831 dynamic fillStyle; 5158 dynamic fillStyle;
4832 5159
4833 /** @domName CanvasRenderingContext2D.font */ 5160 /** @domName CanvasRenderingContext2D.font */
5161 /// @docsEditable
4834 String font; 5162 String font;
4835 5163
4836 /** @domName CanvasRenderingContext2D.globalAlpha */ 5164 /** @domName CanvasRenderingContext2D.globalAlpha */
5165 /// @docsEditable
4837 num globalAlpha; 5166 num globalAlpha;
4838 5167
4839 /** @domName CanvasRenderingContext2D.globalCompositeOperation */ 5168 /** @domName CanvasRenderingContext2D.globalCompositeOperation */
5169 /// @docsEditable
4840 String globalCompositeOperation; 5170 String globalCompositeOperation;
4841 5171
4842 /** @domName CanvasRenderingContext2D.lineCap */ 5172 /** @domName CanvasRenderingContext2D.lineCap */
5173 /// @docsEditable
4843 String lineCap; 5174 String lineCap;
4844 5175
4845 /** @domName CanvasRenderingContext2D.lineDashOffset */ 5176 /** @domName CanvasRenderingContext2D.lineDashOffset */
5177 /// @docsEditable
4846 num lineDashOffset; 5178 num lineDashOffset;
4847 5179
4848 /** @domName CanvasRenderingContext2D.lineJoin */ 5180 /** @domName CanvasRenderingContext2D.lineJoin */
5181 /// @docsEditable
4849 String lineJoin; 5182 String lineJoin;
4850 5183
4851 /** @domName CanvasRenderingContext2D.lineWidth */ 5184 /** @domName CanvasRenderingContext2D.lineWidth */
5185 /// @docsEditable
4852 num lineWidth; 5186 num lineWidth;
4853 5187
4854 /** @domName CanvasRenderingContext2D.miterLimit */ 5188 /** @domName CanvasRenderingContext2D.miterLimit */
5189 /// @docsEditable
4855 num miterLimit; 5190 num miterLimit;
4856 5191
4857 /** @domName CanvasRenderingContext2D.shadowBlur */ 5192 /** @domName CanvasRenderingContext2D.shadowBlur */
5193 /// @docsEditable
4858 num shadowBlur; 5194 num shadowBlur;
4859 5195
4860 /** @domName CanvasRenderingContext2D.shadowColor */ 5196 /** @domName CanvasRenderingContext2D.shadowColor */
5197 /// @docsEditable
4861 String shadowColor; 5198 String shadowColor;
4862 5199
4863 /** @domName CanvasRenderingContext2D.shadowOffsetX */ 5200 /** @domName CanvasRenderingContext2D.shadowOffsetX */
5201 /// @docsEditable
4864 num shadowOffsetX; 5202 num shadowOffsetX;
4865 5203
4866 /** @domName CanvasRenderingContext2D.shadowOffsetY */ 5204 /** @domName CanvasRenderingContext2D.shadowOffsetY */
5205 /// @docsEditable
4867 num shadowOffsetY; 5206 num shadowOffsetY;
4868 5207
4869 /** @domName CanvasRenderingContext2D.strokeStyle */ 5208 /** @domName CanvasRenderingContext2D.strokeStyle */
5209 /// @docsEditable
4870 dynamic strokeStyle; 5210 dynamic strokeStyle;
4871 5211
4872 /** @domName CanvasRenderingContext2D.textAlign */ 5212 /** @domName CanvasRenderingContext2D.textAlign */
5213 /// @docsEditable
4873 String textAlign; 5214 String textAlign;
4874 5215
4875 /** @domName CanvasRenderingContext2D.textBaseline */ 5216 /** @domName CanvasRenderingContext2D.textBaseline */
5217 /// @docsEditable
4876 String textBaseline; 5218 String textBaseline;
4877 5219
4878 /** @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio */ 5220 /** @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio */
5221 /// @docsEditable
4879 final num webkitBackingStorePixelRatio; 5222 final num webkitBackingStorePixelRatio;
4880 5223
4881 /** @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled */ 5224 /** @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled */
5225 /// @docsEditable
4882 bool webkitImageSmoothingEnabled; 5226 bool webkitImageSmoothingEnabled;
4883 5227
4884 /** @domName CanvasRenderingContext2D.webkitLineDash */ 5228 /** @domName CanvasRenderingContext2D.webkitLineDash */
5229 /// @docsEditable
4885 List webkitLineDash; 5230 List webkitLineDash;
4886 5231
4887 /** @domName CanvasRenderingContext2D.webkitLineDashOffset */ 5232 /** @domName CanvasRenderingContext2D.webkitLineDashOffset */
5233 /// @docsEditable
4888 num webkitLineDashOffset; 5234 num webkitLineDashOffset;
4889 5235
4890 /** @domName CanvasRenderingContext2D.arc */ 5236 /** @domName CanvasRenderingContext2D.arc */
5237 /// @docsEditable
4891 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; 5238 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
4892 5239
4893 /** @domName CanvasRenderingContext2D.arcTo */ 5240 /** @domName CanvasRenderingContext2D.arcTo */
5241 /// @docsEditable
4894 void arcTo(num x1, num y1, num x2, num y2, num radius) native; 5242 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
4895 5243
4896 /** @domName CanvasRenderingContext2D.beginPath */ 5244 /** @domName CanvasRenderingContext2D.beginPath */
5245 /// @docsEditable
4897 void beginPath() native; 5246 void beginPath() native;
4898 5247
4899 /** @domName CanvasRenderingContext2D.bezierCurveTo */ 5248 /** @domName CanvasRenderingContext2D.bezierCurveTo */
5249 /// @docsEditable
4900 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; 5250 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
4901 5251
4902 /** @domName CanvasRenderingContext2D.clearRect */ 5252 /** @domName CanvasRenderingContext2D.clearRect */
5253 /// @docsEditable
4903 void clearRect(num x, num y, num width, num height) native; 5254 void clearRect(num x, num y, num width, num height) native;
4904 5255
4905 /** @domName CanvasRenderingContext2D.clearShadow */ 5256 /** @domName CanvasRenderingContext2D.clearShadow */
5257 /// @docsEditable
4906 void clearShadow() native; 5258 void clearShadow() native;
4907 5259
4908 /** @domName CanvasRenderingContext2D.clip */ 5260 /** @domName CanvasRenderingContext2D.clip */
5261 /// @docsEditable
4909 void clip() native; 5262 void clip() native;
4910 5263
4911 /** @domName CanvasRenderingContext2D.closePath */ 5264 /** @domName CanvasRenderingContext2D.closePath */
5265 /// @docsEditable
4912 void closePath() native; 5266 void closePath() native;
4913 5267
4914 /** @domName CanvasRenderingContext2D.createImageData */ 5268 /** @domName CanvasRenderingContext2D.createImageData */
5269 /// @docsEditable
4915 ImageData createImageData(imagedata_OR_sw, [num sh]) { 5270 ImageData createImageData(imagedata_OR_sw, [num sh]) {
4916 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw == null)) && 5271 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw == null)) &&
4917 !?sh) { 5272 !?sh) {
4918 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); 5273 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw);
4919 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); 5274 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
4920 } 5275 }
4921 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null) )) { 5276 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null) )) {
4922 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh)); 5277 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh));
4923 } 5278 }
4924 throw new ArgumentError("Incorrect number or type of arguments"); 5279 throw new ArgumentError("Incorrect number or type of arguments");
4925 } 5280 }
4926 _createImageData_1(imagedata) native "createImageData"; 5281 _createImageData_1(imagedata) native "createImageData";
4927 _createImageData_2(num sw, sh) native "createImageData"; 5282 _createImageData_2(num sw, sh) native "createImageData";
4928 5283
4929 /** @domName CanvasRenderingContext2D.createLinearGradient */ 5284 /** @domName CanvasRenderingContext2D.createLinearGradient */
5285 /// @docsEditable
4930 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; 5286 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native;
4931 5287
4932 /** @domName CanvasRenderingContext2D.createPattern */ 5288 /** @domName CanvasRenderingContext2D.createPattern */
5289 /// @docsEditable
4933 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; 5290 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native;
4934 5291
4935 /** @domName CanvasRenderingContext2D.createRadialGradient */ 5292 /** @domName CanvasRenderingContext2D.createRadialGradient */
5293 /// @docsEditable
4936 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native; 5294 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native;
4937 5295
4938 /** @domName CanvasRenderingContext2D.drawImage */ 5296 /** @domName CanvasRenderingContext2D.drawImage */
5297 /// @docsEditable
4939 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; 5298 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;
4940 5299
4941 /** @domName CanvasRenderingContext2D.drawImageFromRect */ 5300 /** @domName CanvasRenderingContext2D.drawImageFromRect */
5301 /// @docsEditable
4942 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu m dx, num dy, num dw, num dh, String compositeOperation]) native; 5302 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu m dx, num dy, num dw, num dh, String compositeOperation]) native;
4943 5303
4944 /** @domName CanvasRenderingContext2D.fill */ 5304 /** @domName CanvasRenderingContext2D.fill */
5305 /// @docsEditable
4945 void fill() native; 5306 void fill() native;
4946 5307
4947 /** @domName CanvasRenderingContext2D.fillRect */ 5308 /** @domName CanvasRenderingContext2D.fillRect */
5309 /// @docsEditable
4948 void fillRect(num x, num y, num width, num height) native; 5310 void fillRect(num x, num y, num width, num height) native;
4949 5311
4950 /** @domName CanvasRenderingContext2D.fillText */ 5312 /** @domName CanvasRenderingContext2D.fillText */
5313 /// @docsEditable
4951 void fillText(String text, num x, num y, [num maxWidth]) native; 5314 void fillText(String text, num x, num y, [num maxWidth]) native;
4952 5315
4953 /** @domName CanvasRenderingContext2D.getImageData */ 5316 /** @domName CanvasRenderingContext2D.getImageData */
5317 /// @docsEditable
4954 ImageData getImageData(num sx, num sy, num sw, num sh) { 5318 ImageData getImageData(num sx, num sy, num sw, num sh) {
4955 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); 5319 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh));
4956 } 5320 }
4957 _getImageData_1(sx, sy, sw, sh) native "getImageData"; 5321 _getImageData_1(sx, sy, sw, sh) native "getImageData";
4958 5322
4959 /** @domName CanvasRenderingContext2D.getLineDash */ 5323 /** @domName CanvasRenderingContext2D.getLineDash */
5324 /// @docsEditable
4960 List<num> getLineDash() native; 5325 List<num> getLineDash() native;
4961 5326
4962 /** @domName CanvasRenderingContext2D.isPointInPath */ 5327 /** @domName CanvasRenderingContext2D.isPointInPath */
5328 /// @docsEditable
4963 bool isPointInPath(num x, num y) native; 5329 bool isPointInPath(num x, num y) native;
4964 5330
4965 /** @domName CanvasRenderingContext2D.lineTo */ 5331 /** @domName CanvasRenderingContext2D.lineTo */
5332 /// @docsEditable
4966 void lineTo(num x, num y) native; 5333 void lineTo(num x, num y) native;
4967 5334
4968 /** @domName CanvasRenderingContext2D.measureText */ 5335 /** @domName CanvasRenderingContext2D.measureText */
5336 /// @docsEditable
4969 TextMetrics measureText(String text) native; 5337 TextMetrics measureText(String text) native;
4970 5338
4971 /** @domName CanvasRenderingContext2D.moveTo */ 5339 /** @domName CanvasRenderingContext2D.moveTo */
5340 /// @docsEditable
4972 void moveTo(num x, num y) native; 5341 void moveTo(num x, num y) native;
4973 5342
4974 /** @domName CanvasRenderingContext2D.putImageData */ 5343 /** @domName CanvasRenderingContext2D.putImageData */
5344 /// @docsEditable
4975 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) { 5345 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) {
4976 if (!?dirtyX && 5346 if (!?dirtyX &&
4977 !?dirtyY && 5347 !?dirtyY &&
4978 !?dirtyWidth && 5348 !?dirtyWidth &&
4979 !?dirtyHeight) { 5349 !?dirtyHeight) {
4980 var imagedata_1 = _convertDartToNative_ImageData(imagedata); 5350 var imagedata_1 = _convertDartToNative_ImageData(imagedata);
4981 _putImageData_1(imagedata_1, dx, dy); 5351 _putImageData_1(imagedata_1, dx, dy);
4982 return; 5352 return;
4983 } 5353 }
4984 var imagedata_2 = _convertDartToNative_ImageData(imagedata); 5354 var imagedata_2 = _convertDartToNative_ImageData(imagedata);
4985 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight ); 5355 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight );
4986 return; 5356 return;
4987 throw new ArgumentError("Incorrect number or type of arguments"); 5357 throw new ArgumentError("Incorrect number or type of arguments");
4988 } 5358 }
4989 void _putImageData_1(imagedata, dx, dy) native "putImageData"; 5359 void _putImageData_1(imagedata, dx, dy) native "putImageData";
4990 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh t) native "putImageData"; 5360 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh t) native "putImageData";
4991 5361
4992 /** @domName CanvasRenderingContext2D.quadraticCurveTo */ 5362 /** @domName CanvasRenderingContext2D.quadraticCurveTo */
5363 /// @docsEditable
4993 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; 5364 void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
4994 5365
4995 /** @domName CanvasRenderingContext2D.rect */ 5366 /** @domName CanvasRenderingContext2D.rect */
5367 /// @docsEditable
4996 void rect(num x, num y, num width, num height) native; 5368 void rect(num x, num y, num width, num height) native;
4997 5369
4998 /** @domName CanvasRenderingContext2D.restore */ 5370 /** @domName CanvasRenderingContext2D.restore */
5371 /// @docsEditable
4999 void restore() native; 5372 void restore() native;
5000 5373
5001 /** @domName CanvasRenderingContext2D.rotate */ 5374 /** @domName CanvasRenderingContext2D.rotate */
5375 /// @docsEditable
5002 void rotate(num angle) native; 5376 void rotate(num angle) native;
5003 5377
5004 /** @domName CanvasRenderingContext2D.save */ 5378 /** @domName CanvasRenderingContext2D.save */
5379 /// @docsEditable
5005 void save() native; 5380 void save() native;
5006 5381
5007 /** @domName CanvasRenderingContext2D.scale */ 5382 /** @domName CanvasRenderingContext2D.scale */
5383 /// @docsEditable
5008 void scale(num sx, num sy) native; 5384 void scale(num sx, num sy) native;
5009 5385
5010 /** @domName CanvasRenderingContext2D.setAlpha */ 5386 /** @domName CanvasRenderingContext2D.setAlpha */
5387 /// @docsEditable
5011 void setAlpha(num alpha) native; 5388 void setAlpha(num alpha) native;
5012 5389
5013 /** @domName CanvasRenderingContext2D.setCompositeOperation */ 5390 /** @domName CanvasRenderingContext2D.setCompositeOperation */
5391 /// @docsEditable
5014 void setCompositeOperation(String compositeOperation) native; 5392 void setCompositeOperation(String compositeOperation) native;
5015 5393
5016 /** @domName CanvasRenderingContext2D.setLineCap */ 5394 /** @domName CanvasRenderingContext2D.setLineCap */
5395 /// @docsEditable
5017 void setLineCap(String cap) native; 5396 void setLineCap(String cap) native;
5018 5397
5019 /** @domName CanvasRenderingContext2D.setLineDash */ 5398 /** @domName CanvasRenderingContext2D.setLineDash */
5399 /// @docsEditable
5020 void setLineDash(List<num> dash) native; 5400 void setLineDash(List<num> dash) native;
5021 5401
5022 /** @domName CanvasRenderingContext2D.setLineJoin */ 5402 /** @domName CanvasRenderingContext2D.setLineJoin */
5403 /// @docsEditable
5023 void setLineJoin(String join) native; 5404 void setLineJoin(String join) native;
5024 5405
5025 /** @domName CanvasRenderingContext2D.setLineWidth */ 5406 /** @domName CanvasRenderingContext2D.setLineWidth */
5407 /// @docsEditable
5026 void setLineWidth(num width) native; 5408 void setLineWidth(num width) native;
5027 5409
5028 /** @domName CanvasRenderingContext2D.setMiterLimit */ 5410 /** @domName CanvasRenderingContext2D.setMiterLimit */
5411 /// @docsEditable
5029 void setMiterLimit(num limit) native; 5412 void setMiterLimit(num limit) native;
5030 5413
5031 /** @domName CanvasRenderingContext2D.setShadow */ 5414 /** @domName CanvasRenderingContext2D.setShadow */
5415 /// @docsEditable
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; 5416 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;
5033 5417
5034 /** @domName CanvasRenderingContext2D.setTransform */ 5418 /** @domName CanvasRenderingContext2D.setTransform */
5419 /// @docsEditable
5035 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; 5420 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
5036 5421
5037 /** @domName CanvasRenderingContext2D.stroke */ 5422 /** @domName CanvasRenderingContext2D.stroke */
5423 /// @docsEditable
5038 void stroke() native; 5424 void stroke() native;
5039 5425
5040 /** @domName CanvasRenderingContext2D.strokeRect */ 5426 /** @domName CanvasRenderingContext2D.strokeRect */
5427 /// @docsEditable
5041 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; 5428 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native;
5042 5429
5043 /** @domName CanvasRenderingContext2D.strokeText */ 5430 /** @domName CanvasRenderingContext2D.strokeText */
5431 /// @docsEditable
5044 void strokeText(String text, num x, num y, [num maxWidth]) native; 5432 void strokeText(String text, num x, num y, [num maxWidth]) native;
5045 5433
5046 /** @domName CanvasRenderingContext2D.transform */ 5434 /** @domName CanvasRenderingContext2D.transform */
5435 /// @docsEditable
5047 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; 5436 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
5048 5437
5049 /** @domName CanvasRenderingContext2D.translate */ 5438 /** @domName CanvasRenderingContext2D.translate */
5439 /// @docsEditable
5050 void translate(num tx, num ty) native; 5440 void translate(num tx, num ty) native;
5051 5441
5052 /** @domName CanvasRenderingContext2D.webkitGetImageDataHD */ 5442 /** @domName CanvasRenderingContext2D.webkitGetImageDataHD */
5443 /// @docsEditable
5053 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { 5444 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) {
5054 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh )); 5445 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh ));
5055 } 5446 }
5056 _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD"; 5447 _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD";
5057 5448
5058 /** @domName CanvasRenderingContext2D.webkitPutImageDataHD */ 5449 /** @domName CanvasRenderingContext2D.webkitPutImageDataHD */
5450 /// @docsEditable
5059 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu m dirtyY, num dirtyWidth, num dirtyHeight]) { 5451 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu m dirtyY, num dirtyWidth, num dirtyHeight]) {
5060 if (!?dirtyX && 5452 if (!?dirtyX &&
5061 !?dirtyY && 5453 !?dirtyY &&
5062 !?dirtyWidth && 5454 !?dirtyWidth &&
5063 !?dirtyHeight) { 5455 !?dirtyHeight) {
5064 var imagedata_1 = _convertDartToNative_ImageData(imagedata); 5456 var imagedata_1 = _convertDartToNative_ImageData(imagedata);
5065 _webkitPutImageDataHD_1(imagedata_1, dx, dy); 5457 _webkitPutImageDataHD_1(imagedata_1, dx, dy);
5066 return; 5458 return;
5067 } 5459 }
5068 var imagedata_2 = _convertDartToNative_ImageData(imagedata); 5460 var imagedata_2 = _convertDartToNative_ImageData(imagedata);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
5109 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { 5501 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) {
5110 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; 5502 this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
5111 } 5503 }
5112 } 5504 }
5113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5114 // for details. All rights reserved. Use of this source code is governed by a 5506 // for details. All rights reserved. Use of this source code is governed by a
5115 // BSD-style license that can be found in the LICENSE file. 5507 // BSD-style license that can be found in the LICENSE file.
5116 5508
5117 5509
5118 /// @domName ChannelMergerNode 5510 /// @domName ChannelMergerNode
5511 /// @docsEditable
5119 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { 5512 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" {
5120 } 5513 }
5121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5122 // for details. All rights reserved. Use of this source code is governed by a 5515 // for details. All rights reserved. Use of this source code is governed by a
5123 // BSD-style license that can be found in the LICENSE file. 5516 // BSD-style license that can be found in the LICENSE file.
5124 5517
5125 5518
5126 /// @domName ChannelSplitterNode 5519 /// @domName ChannelSplitterNode
5520 /// @docsEditable
5127 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" { 5521 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" {
5128 } 5522 }
5129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5130 // for details. All rights reserved. Use of this source code is governed by a 5524 // for details. All rights reserved. Use of this source code is governed by a
5131 // BSD-style license that can be found in the LICENSE file. 5525 // BSD-style license that can be found in the LICENSE file.
5132 5526
5133 5527
5134 /// @domName CharacterData 5528 /// @domName CharacterData
5529 /// @docsEditable
5135 class CharacterData extends Node native "*CharacterData" { 5530 class CharacterData extends Node native "*CharacterData" {
5136 5531
5137 /** @domName CharacterData.data */ 5532 /** @domName CharacterData.data */
5533 /// @docsEditable
5138 String data; 5534 String data;
5139 5535
5140 /** @domName CharacterData.length */ 5536 /** @domName CharacterData.length */
5537 /// @docsEditable
5141 final int length; 5538 final int length;
5142 5539
5143 /** @domName CharacterData.appendData */ 5540 /** @domName CharacterData.appendData */
5541 /// @docsEditable
5144 void appendData(String data) native; 5542 void appendData(String data) native;
5145 5543
5146 /** @domName CharacterData.deleteData */ 5544 /** @domName CharacterData.deleteData */
5545 /// @docsEditable
5147 void deleteData(int offset, int length) native; 5546 void deleteData(int offset, int length) native;
5148 5547
5149 /** @domName CharacterData.insertData */ 5548 /** @domName CharacterData.insertData */
5549 /// @docsEditable
5150 void insertData(int offset, String data) native; 5550 void insertData(int offset, String data) native;
5151 5551
5152 /** @domName CharacterData.remove */ 5552 /** @domName CharacterData.remove */
5553 /// @docsEditable
5153 void remove() native; 5554 void remove() native;
5154 5555
5155 /** @domName CharacterData.replaceData */ 5556 /** @domName CharacterData.replaceData */
5557 /// @docsEditable
5156 void replaceData(int offset, int length, String data) native; 5558 void replaceData(int offset, int length, String data) native;
5157 5559
5158 /** @domName CharacterData.substringData */ 5560 /** @domName CharacterData.substringData */
5561 /// @docsEditable
5159 String substringData(int offset, int length) native; 5562 String substringData(int offset, int length) native;
5160 } 5563 }
5161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5162 // for details. All rights reserved. Use of this source code is governed by a 5565 // for details. All rights reserved. Use of this source code is governed by a
5163 // BSD-style license that can be found in the LICENSE file. 5566 // BSD-style license that can be found in the LICENSE file.
5164 5567
5165 5568
5166 /// @domName ClientRect 5569 /// @domName ClientRect
5570 /// @docsEditable
5167 class ClientRect native "*ClientRect" { 5571 class ClientRect native "*ClientRect" {
5168 5572
5169 /** @domName ClientRect.bottom */ 5573 /** @domName ClientRect.bottom */
5574 /// @docsEditable
5170 final num bottom; 5575 final num bottom;
5171 5576
5172 /** @domName ClientRect.height */ 5577 /** @domName ClientRect.height */
5578 /// @docsEditable
5173 final num height; 5579 final num height;
5174 5580
5175 /** @domName ClientRect.left */ 5581 /** @domName ClientRect.left */
5582 /// @docsEditable
5176 final num left; 5583 final num left;
5177 5584
5178 /** @domName ClientRect.right */ 5585 /** @domName ClientRect.right */
5586 /// @docsEditable
5179 final num right; 5587 final num right;
5180 5588
5181 /** @domName ClientRect.top */ 5589 /** @domName ClientRect.top */
5590 /// @docsEditable
5182 final num top; 5591 final num top;
5183 5592
5184 /** @domName ClientRect.width */ 5593 /** @domName ClientRect.width */
5594 /// @docsEditable
5185 final num width; 5595 final num width;
5186 } 5596 }
5187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5188 // for details. All rights reserved. Use of this source code is governed by a 5598 // for details. All rights reserved. Use of this source code is governed by a
5189 // BSD-style license that can be found in the LICENSE file. 5599 // BSD-style license that can be found in the LICENSE file.
5190 5600
5191 5601
5192 /// @domName Clipboard 5602 /// @domName Clipboard
5603 /// @docsEditable
5193 class Clipboard native "*Clipboard" { 5604 class Clipboard native "*Clipboard" {
5194 5605
5195 /** @domName Clipboard.dropEffect */ 5606 /** @domName Clipboard.dropEffect */
5607 /// @docsEditable
5196 String dropEffect; 5608 String dropEffect;
5197 5609
5198 /** @domName Clipboard.effectAllowed */ 5610 /** @domName Clipboard.effectAllowed */
5611 /// @docsEditable
5199 String effectAllowed; 5612 String effectAllowed;
5200 5613
5201 /** @domName Clipboard.files */ 5614 /** @domName Clipboard.files */
5615 /// @docsEditable
5202 final List<File> files; 5616 final List<File> files;
5203 5617
5204 /** @domName Clipboard.items */ 5618 /** @domName Clipboard.items */
5619 /// @docsEditable
5205 final DataTransferItemList items; 5620 final DataTransferItemList items;
5206 5621
5207 /** @domName Clipboard.types */ 5622 /** @domName Clipboard.types */
5623 /// @docsEditable
5208 final List types; 5624 final List types;
5209 5625
5210 /** @domName Clipboard.clearData */ 5626 /** @domName Clipboard.clearData */
5627 /// @docsEditable
5211 void clearData([String type]) native; 5628 void clearData([String type]) native;
5212 5629
5213 /** @domName Clipboard.getData */ 5630 /** @domName Clipboard.getData */
5631 /// @docsEditable
5214 String getData(String type) native; 5632 String getData(String type) native;
5215 5633
5216 /** @domName Clipboard.setData */ 5634 /** @domName Clipboard.setData */
5635 /// @docsEditable
5217 bool setData(String type, String data) native; 5636 bool setData(String type, String data) native;
5218 5637
5219 /** @domName Clipboard.setDragImage */ 5638 /** @domName Clipboard.setDragImage */
5639 /// @docsEditable
5220 void setDragImage(ImageElement image, int x, int y) native; 5640 void setDragImage(ImageElement image, int x, int y) native;
5221 } 5641 }
5222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5223 // for details. All rights reserved. Use of this source code is governed by a 5643 // for details. All rights reserved. Use of this source code is governed by a
5224 // BSD-style license that can be found in the LICENSE file. 5644 // BSD-style license that can be found in the LICENSE file.
5225 5645
5226 5646
5227 /// @domName CloseEvent 5647 /// @domName CloseEvent
5648 /// @docsEditable
5228 class CloseEvent extends Event native "*CloseEvent" { 5649 class CloseEvent extends Event native "*CloseEvent" {
5229 5650
5230 /** @domName CloseEvent.code */ 5651 /** @domName CloseEvent.code */
5652 /// @docsEditable
5231 final int code; 5653 final int code;
5232 5654
5233 /** @domName CloseEvent.reason */ 5655 /** @domName CloseEvent.reason */
5656 /// @docsEditable
5234 final String reason; 5657 final String reason;
5235 5658
5236 /** @domName CloseEvent.wasClean */ 5659 /** @domName CloseEvent.wasClean */
5660 /// @docsEditable
5237 final bool wasClean; 5661 final bool wasClean;
5238 } 5662 }
5239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5240 // for details. All rights reserved. Use of this source code is governed by a 5664 // for details. All rights reserved. Use of this source code is governed by a
5241 // BSD-style license that can be found in the LICENSE file. 5665 // BSD-style license that can be found in the LICENSE file.
5242 5666
5243 5667
5244 /// @domName Comment 5668 /// @domName Comment
5669 /// @docsEditable
5245 class Comment extends CharacterData native "*Comment" { 5670 class Comment extends CharacterData native "*Comment" {
5246 } 5671 }
5247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5248 // for details. All rights reserved. Use of this source code is governed by a 5673 // for details. All rights reserved. Use of this source code is governed by a
5249 // BSD-style license that can be found in the LICENSE file. 5674 // BSD-style license that can be found in the LICENSE file.
5250 5675
5251 5676
5252 /// @domName CompositionEvent 5677 /// @domName CompositionEvent
5678 /// @docsEditable
5253 class CompositionEvent extends UIEvent native "*CompositionEvent" { 5679 class CompositionEvent extends UIEvent native "*CompositionEvent" {
5254 5680
5255 /** @domName CompositionEvent.data */ 5681 /** @domName CompositionEvent.data */
5682 /// @docsEditable
5256 final String data; 5683 final String data;
5257 5684
5258 /** @domName CompositionEvent.initCompositionEvent */ 5685 /** @domName CompositionEvent.initCompositionEvent */
5686 /// @docsEditable
5259 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, LocalWindow viewArg, String dataArg) native; 5687 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, LocalWindow viewArg, String dataArg) native;
5260 } 5688 }
5261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5262 // for details. All rights reserved. Use of this source code is governed by a 5690 // for details. All rights reserved. Use of this source code is governed by a
5263 // BSD-style license that can be found in the LICENSE file. 5691 // BSD-style license that can be found in the LICENSE file.
5264 5692
5265 5693
5266 class Console 5694 class Console
5267 // Console is sometimes a singleton bag-of-properties without a prototype. 5695 // Console is sometimes a singleton bag-of-properties without a prototype.
5268 native "=(typeof console == 'undefined' ? {} : console)" { 5696 native "=(typeof console == 'undefined' ? {} : console)" {
5269 5697
5270 /** @domName Console.memory */ 5698 /** @domName Console.memory */
5699 /// @docsEditable
5271 final MemoryInfo memory; 5700 final MemoryInfo memory;
5272 5701
5273 /** @domName Console.profiles */ 5702 /** @domName Console.profiles */
5703 /// @docsEditable
5274 final List<ScriptProfile> profiles; 5704 final List<ScriptProfile> profiles;
5275 5705
5276 /** @domName Console.assertCondition */ 5706 /** @domName Console.assertCondition */
5707 /// @docsEditable
5277 void assertCondition(bool condition, Object arg) native; 5708 void assertCondition(bool condition, Object arg) native;
5278 5709
5279 /** @domName Console.count */ 5710 /** @domName Console.count */
5711 /// @docsEditable
5280 void count(Object arg) native; 5712 void count(Object arg) native;
5281 5713
5282 /** @domName Console.debug */ 5714 /** @domName Console.debug */
5715 /// @docsEditable
5283 void debug(Object arg) native; 5716 void debug(Object arg) native;
5284 5717
5285 /** @domName Console.dir */ 5718 /** @domName Console.dir */
5719 /// @docsEditable
5286 void dir(Object arg) native; 5720 void dir(Object arg) native;
5287 5721
5288 /** @domName Console.dirxml */ 5722 /** @domName Console.dirxml */
5723 /// @docsEditable
5289 void dirxml(Object arg) native; 5724 void dirxml(Object arg) native;
5290 5725
5291 /** @domName Console.error */ 5726 /** @domName Console.error */
5727 /// @docsEditable
5292 void error(Object arg) native; 5728 void error(Object arg) native;
5293 5729
5294 /** @domName Console.group */ 5730 /** @domName Console.group */
5731 /// @docsEditable
5295 void group(Object arg) native; 5732 void group(Object arg) native;
5296 5733
5297 /** @domName Console.groupCollapsed */ 5734 /** @domName Console.groupCollapsed */
5735 /// @docsEditable
5298 void groupCollapsed(Object arg) native; 5736 void groupCollapsed(Object arg) native;
5299 5737
5300 /** @domName Console.groupEnd */ 5738 /** @domName Console.groupEnd */
5739 /// @docsEditable
5301 void groupEnd() native; 5740 void groupEnd() native;
5302 5741
5303 /** @domName Console.info */ 5742 /** @domName Console.info */
5743 /// @docsEditable
5304 void info(Object arg) native; 5744 void info(Object arg) native;
5305 5745
5306 /** @domName Console.log */ 5746 /** @domName Console.log */
5747 /// @docsEditable
5307 void log(Object arg) native; 5748 void log(Object arg) native;
5308 5749
5309 /** @domName Console.markTimeline */ 5750 /** @domName Console.markTimeline */
5751 /// @docsEditable
5310 void markTimeline(Object arg) native; 5752 void markTimeline(Object arg) native;
5311 5753
5312 /** @domName Console.profile */ 5754 /** @domName Console.profile */
5755 /// @docsEditable
5313 void profile(String title) native; 5756 void profile(String title) native;
5314 5757
5315 /** @domName Console.profileEnd */ 5758 /** @domName Console.profileEnd */
5759 /// @docsEditable
5316 void profileEnd(String title) native; 5760 void profileEnd(String title) native;
5317 5761
5318 /** @domName Console.time */ 5762 /** @domName Console.time */
5763 /// @docsEditable
5319 void time(String title) native; 5764 void time(String title) native;
5320 5765
5321 /** @domName Console.timeEnd */ 5766 /** @domName Console.timeEnd */
5767 /// @docsEditable
5322 void timeEnd(String title, Object arg) native; 5768 void timeEnd(String title, Object arg) native;
5323 5769
5324 /** @domName Console.timeStamp */ 5770 /** @domName Console.timeStamp */
5771 /// @docsEditable
5325 void timeStamp(Object arg) native; 5772 void timeStamp(Object arg) native;
5326 5773
5327 /** @domName Console.trace */ 5774 /** @domName Console.trace */
5775 /// @docsEditable
5328 void trace(Object arg) native; 5776 void trace(Object arg) native;
5329 5777
5330 /** @domName Console.warn */ 5778 /** @domName Console.warn */
5779 /// @docsEditable
5331 void warn(Object arg) native; 5780 void warn(Object arg) native;
5332 5781
5333 } 5782 }
5334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5335 // for details. All rights reserved. Use of this source code is governed by a 5784 // for details. All rights reserved. Use of this source code is governed by a
5336 // BSD-style license that can be found in the LICENSE file. 5785 // BSD-style license that can be found in the LICENSE file.
5337 5786
5338 5787
5339 /// @domName HTMLContentElement 5788 /// @domName HTMLContentElement
5789 /// @docsEditable
5340 class ContentElement extends Element implements Element native "*HTMLContentElem ent" { 5790 class ContentElement extends Element implements Element native "*HTMLContentElem ent" {
5341 5791
5342 factory ContentElement() => document.$dom_createElement("content"); 5792 factory ContentElement() => document.$dom_createElement("content");
5343 5793
5344 /** @domName HTMLContentElement.resetStyleInheritance */ 5794 /** @domName HTMLContentElement.resetStyleInheritance */
5795 /// @docsEditable
5345 bool resetStyleInheritance; 5796 bool resetStyleInheritance;
5346 5797
5347 /** @domName HTMLContentElement.select */ 5798 /** @domName HTMLContentElement.select */
5799 /// @docsEditable
5348 String select; 5800 String select;
5349 5801
5350 /** @domName HTMLContentElement.getDistributedNodes */ 5802 /** @domName HTMLContentElement.getDistributedNodes */
5803 /// @docsEditable
5351 List<Node> getDistributedNodes() native; 5804 List<Node> getDistributedNodes() native;
5352 } 5805 }
5353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5354 // for details. All rights reserved. Use of this source code is governed by a 5807 // for details. All rights reserved. Use of this source code is governed by a
5355 // BSD-style license that can be found in the LICENSE file. 5808 // BSD-style license that can be found in the LICENSE file.
5356 5809
5357 5810
5358 /// @domName ConvolverNode 5811 /// @domName ConvolverNode
5812 /// @docsEditable
5359 class ConvolverNode extends AudioNode native "*ConvolverNode" { 5813 class ConvolverNode extends AudioNode native "*ConvolverNode" {
5360 5814
5361 /** @domName ConvolverNode.buffer */ 5815 /** @domName ConvolverNode.buffer */
5816 /// @docsEditable
5362 AudioBuffer buffer; 5817 AudioBuffer buffer;
5363 5818
5364 /** @domName ConvolverNode.normalize */ 5819 /** @domName ConvolverNode.normalize */
5820 /// @docsEditable
5365 bool normalize; 5821 bool normalize;
5366 } 5822 }
5367 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5368 // for details. All rights reserved. Use of this source code is governed by a 5824 // for details. All rights reserved. Use of this source code is governed by a
5369 // BSD-style license that can be found in the LICENSE file. 5825 // BSD-style license that can be found in the LICENSE file.
5370 5826
5371 5827
5372 /// @domName Coordinates 5828 /// @domName Coordinates
5829 /// @docsEditable
5373 class Coordinates native "*Coordinates" { 5830 class Coordinates native "*Coordinates" {
5374 5831
5375 /** @domName Coordinates.accuracy */ 5832 /** @domName Coordinates.accuracy */
5833 /// @docsEditable
5376 final num accuracy; 5834 final num accuracy;
5377 5835
5378 /** @domName Coordinates.altitude */ 5836 /** @domName Coordinates.altitude */
5837 /// @docsEditable
5379 final num altitude; 5838 final num altitude;
5380 5839
5381 /** @domName Coordinates.altitudeAccuracy */ 5840 /** @domName Coordinates.altitudeAccuracy */
5841 /// @docsEditable
5382 final num altitudeAccuracy; 5842 final num altitudeAccuracy;
5383 5843
5384 /** @domName Coordinates.heading */ 5844 /** @domName Coordinates.heading */
5845 /// @docsEditable
5385 final num heading; 5846 final num heading;
5386 5847
5387 /** @domName Coordinates.latitude */ 5848 /** @domName Coordinates.latitude */
5849 /// @docsEditable
5388 final num latitude; 5850 final num latitude;
5389 5851
5390 /** @domName Coordinates.longitude */ 5852 /** @domName Coordinates.longitude */
5853 /// @docsEditable
5391 final num longitude; 5854 final num longitude;
5392 5855
5393 /** @domName Coordinates.speed */ 5856 /** @domName Coordinates.speed */
5857 /// @docsEditable
5394 final num speed; 5858 final num speed;
5395 } 5859 }
5396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5397 // for details. All rights reserved. Use of this source code is governed by a 5861 // for details. All rights reserved. Use of this source code is governed by a
5398 // BSD-style license that can be found in the LICENSE file. 5862 // BSD-style license that can be found in the LICENSE file.
5399 5863
5400 5864
5401 /// @domName Counter 5865 /// @domName Counter
5866 /// @docsEditable
5402 class Counter native "*Counter" { 5867 class Counter native "*Counter" {
5403 5868
5404 /** @domName Counter.identifier */ 5869 /** @domName Counter.identifier */
5870 /// @docsEditable
5405 final String identifier; 5871 final String identifier;
5406 5872
5407 /** @domName Counter.listStyle */ 5873 /** @domName Counter.listStyle */
5874 /// @docsEditable
5408 final String listStyle; 5875 final String listStyle;
5409 5876
5410 /** @domName Counter.separator */ 5877 /** @domName Counter.separator */
5878 /// @docsEditable
5411 final String separator; 5879 final String separator;
5412 } 5880 }
5413 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5414 // for details. All rights reserved. Use of this source code is governed by a 5882 // for details. All rights reserved. Use of this source code is governed by a
5415 // BSD-style license that can be found in the LICENSE file. 5883 // BSD-style license that can be found in the LICENSE file.
5416 5884
5417 5885
5418 /// @domName Crypto 5886 /// @domName Crypto
5887 /// @docsEditable
5419 class Crypto native "*Crypto" { 5888 class Crypto native "*Crypto" {
5420 5889
5421 /** @domName Crypto.getRandomValues */ 5890 /** @domName Crypto.getRandomValues */
5891 /// @docsEditable
5422 void getRandomValues(ArrayBufferView array) native; 5892 void getRandomValues(ArrayBufferView array) native;
5423 } 5893 }
5424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5894 // 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 5895 // 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. 5896 // BSD-style license that can be found in the LICENSE file.
5427 5897
5428 // WARNING: Do not edit - generated code. 5898 // WARNING: Do not edit - generated code.
5429 5899
5430 5900
5431 class CustomEvent extends Event native "*CustomEvent" { 5901 class CustomEvent extends Event native "*CustomEvent" {
5432 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e, 5902 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e,
5433 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( 5903 Object detail]) => _CustomEventFactoryProvider.createCustomEvent(
5434 type, canBubble, cancelable, detail); 5904 type, canBubble, cancelable, detail);
5435 5905
5436 /** @domName CustomEvent.detail */ 5906 /** @domName CustomEvent.detail */
5907 /// @docsEditable
5437 final Object detail; 5908 final Object detail;
5438 5909
5439 /** @domName CustomEvent.initCustomEvent */ 5910 /** @domName CustomEvent.initCustomEvent */
5911 /// @docsEditable
5440 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native "initCustomEvent"; 5912 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native "initCustomEvent";
5441 5913
5442 } 5914 }
5443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5444 // for details. All rights reserved. Use of this source code is governed by a 5916 // for details. All rights reserved. Use of this source code is governed by a
5445 // BSD-style license that can be found in the LICENSE file. 5917 // BSD-style license that can be found in the LICENSE file.
5446 5918
5447 5919
5448 /// @domName HTMLDListElement 5920 /// @domName HTMLDListElement
5921 /// @docsEditable
5449 class DListElement extends Element implements Element native "*HTMLDListElement" { 5922 class DListElement extends Element implements Element native "*HTMLDListElement" {
5450 5923
5451 factory DListElement() => document.$dom_createElement("dl"); 5924 factory DListElement() => document.$dom_createElement("dl");
5452 5925
5453 /** @domName HTMLDListElement.compact */ 5926 /** @domName HTMLDListElement.compact */
5927 /// @docsEditable
5454 bool compact; 5928 bool compact;
5455 } 5929 }
5456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5457 // for details. All rights reserved. Use of this source code is governed by a 5931 // for details. All rights reserved. Use of this source code is governed by a
5458 // BSD-style license that can be found in the LICENSE file. 5932 // BSD-style license that can be found in the LICENSE file.
5459 5933
5460 5934
5461 /// @domName DOMApplicationCache 5935 /// @domName DOMApplicationCache
5936 /// @docsEditable
5462 class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" { 5937 class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" {
5463 5938
5464 /** 5939 /**
5465 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 5940 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
5466 */ 5941 */
5942 /// @docsEditable
5467 DOMApplicationCacheEvents get on => 5943 DOMApplicationCacheEvents get on =>
5468 new DOMApplicationCacheEvents(this); 5944 new DOMApplicationCacheEvents(this);
5469 5945
5470 static const int CHECKING = 2; 5946 static const int CHECKING = 2;
5471 5947
5472 static const int DOWNLOADING = 3; 5948 static const int DOWNLOADING = 3;
5473 5949
5474 static const int IDLE = 1; 5950 static const int IDLE = 1;
5475 5951
5476 static const int OBSOLETE = 5; 5952 static const int OBSOLETE = 5;
5477 5953
5478 static const int UNCACHED = 0; 5954 static const int UNCACHED = 0;
5479 5955
5480 static const int UPDATEREADY = 4; 5956 static const int UPDATEREADY = 4;
5481 5957
5482 /** @domName DOMApplicationCache.status */ 5958 /** @domName DOMApplicationCache.status */
5959 /// @docsEditable
5483 final int status; 5960 final int status;
5484 5961
5485 /** @domName DOMApplicationCache.abort */ 5962 /** @domName DOMApplicationCache.abort */
5963 /// @docsEditable
5486 void abort() native; 5964 void abort() native;
5487 5965
5488 /** @domName DOMApplicationCache.addEventListener */ 5966 /** @domName DOMApplicationCache.addEventListener */
5967 /// @docsEditable
5489 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 5968 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
5490 5969
5491 /** @domName DOMApplicationCache.dispatchEvent */ 5970 /** @domName DOMApplicationCache.dispatchEvent */
5971 /// @docsEditable
5492 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 5972 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
5493 5973
5494 /** @domName DOMApplicationCache.removeEventListener */ 5974 /** @domName DOMApplicationCache.removeEventListener */
5975 /// @docsEditable
5495 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 5976 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
5496 5977
5497 /** @domName DOMApplicationCache.swapCache */ 5978 /** @domName DOMApplicationCache.swapCache */
5979 /// @docsEditable
5498 void swapCache() native; 5980 void swapCache() native;
5499 5981
5500 /** @domName DOMApplicationCache.update */ 5982 /** @domName DOMApplicationCache.update */
5983 /// @docsEditable
5501 void update() native; 5984 void update() native;
5502 } 5985 }
5503 5986
5504 class DOMApplicationCacheEvents extends Events { 5987 class DOMApplicationCacheEvents extends Events {
5505 DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr); 5988 DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr);
5506 5989
5507 EventListenerList get cached => this['cached']; 5990 EventListenerList get cached => this['cached'];
5508 5991
5509 EventListenerList get checking => this['checking']; 5992 EventListenerList get checking => this['checking'];
5510 5993
5511 EventListenerList get downloading => this['downloading']; 5994 EventListenerList get downloading => this['downloading'];
5512 5995
5513 EventListenerList get error => this['error']; 5996 EventListenerList get error => this['error'];
5514 5997
5515 EventListenerList get noUpdate => this['noupdate']; 5998 EventListenerList get noUpdate => this['noupdate'];
5516 5999
5517 EventListenerList get obsolete => this['obsolete']; 6000 EventListenerList get obsolete => this['obsolete'];
5518 6001
5519 EventListenerList get progress => this['progress']; 6002 EventListenerList get progress => this['progress'];
5520 6003
5521 EventListenerList get updateReady => this['updateready']; 6004 EventListenerList get updateReady => this['updateready'];
5522 } 6005 }
5523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5524 // for details. All rights reserved. Use of this source code is governed by a 6007 // for details. All rights reserved. Use of this source code is governed by a
5525 // BSD-style license that can be found in the LICENSE file. 6008 // BSD-style license that can be found in the LICENSE file.
5526 6009
5527 6010
5528 /// @domName DOMError 6011 /// @domName DOMError
6012 /// @docsEditable
5529 class DOMError native "*DOMError" { 6013 class DOMError native "*DOMError" {
5530 6014
5531 /** @domName DOMError.name */ 6015 /** @domName DOMError.name */
6016 /// @docsEditable
5532 final String name; 6017 final String name;
5533 } 6018 }
5534 // 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
5535 // 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
5536 // BSD-style license that can be found in the LICENSE file. 6021 // BSD-style license that can be found in the LICENSE file.
5537 6022
5538 6023
5539 /// @domName DOMException 6024 /// @domName DOMException
6025 /// @docsEditable
5540 class DOMException native "*DOMException" { 6026 class DOMException native "*DOMException" {
5541 6027
5542 static const int ABORT_ERR = 20; 6028 static const int ABORT_ERR = 20;
5543 6029
5544 static const int DATA_CLONE_ERR = 25; 6030 static const int DATA_CLONE_ERR = 25;
5545 6031
5546 static const int DOMSTRING_SIZE_ERR = 2; 6032 static const int DOMSTRING_SIZE_ERR = 2;
5547 6033
5548 static const int HIERARCHY_REQUEST_ERR = 3; 6034 static const int HIERARCHY_REQUEST_ERR = 3;
5549 6035
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
5583 6069
5584 static const int TYPE_MISMATCH_ERR = 17; 6070 static const int TYPE_MISMATCH_ERR = 17;
5585 6071
5586 static const int URL_MISMATCH_ERR = 21; 6072 static const int URL_MISMATCH_ERR = 21;
5587 6073
5588 static const int VALIDATION_ERR = 16; 6074 static const int VALIDATION_ERR = 16;
5589 6075
5590 static const int WRONG_DOCUMENT_ERR = 4; 6076 static const int WRONG_DOCUMENT_ERR = 4;
5591 6077
5592 /** @domName DOMException.code */ 6078 /** @domName DOMException.code */
6079 /// @docsEditable
5593 final int code; 6080 final int code;
5594 6081
5595 /** @domName DOMException.message */ 6082 /** @domName DOMException.message */
6083 /// @docsEditable
5596 final String message; 6084 final String message;
5597 6085
5598 /** @domName DOMException.name */ 6086 /** @domName DOMException.name */
6087 /// @docsEditable
5599 final String name; 6088 final String name;
5600 6089
5601 /** @domName DOMException.toString */ 6090 /** @domName DOMException.toString */
6091 /// @docsEditable
5602 String toString() native; 6092 String toString() native;
5603 } 6093 }
5604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5605 // for details. All rights reserved. Use of this source code is governed by a 6095 // for details. All rights reserved. Use of this source code is governed by a
5606 // BSD-style license that can be found in the LICENSE file. 6096 // BSD-style license that can be found in the LICENSE file.
5607 6097
5608 6098
5609 /// @domName DOMFileSystem 6099 /// @domName DOMFileSystem
6100 /// @docsEditable
5610 class DOMFileSystem native "*DOMFileSystem" { 6101 class DOMFileSystem native "*DOMFileSystem" {
5611 6102
5612 /** @domName DOMFileSystem.name */ 6103 /** @domName DOMFileSystem.name */
6104 /// @docsEditable
5613 final String name; 6105 final String name;
5614 6106
5615 /** @domName DOMFileSystem.root */ 6107 /** @domName DOMFileSystem.root */
6108 /// @docsEditable
5616 final DirectoryEntry root; 6109 final DirectoryEntry root;
5617 } 6110 }
5618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5619 // for details. All rights reserved. Use of this source code is governed by a 6112 // for details. All rights reserved. Use of this source code is governed by a
5620 // BSD-style license that can be found in the LICENSE file. 6113 // BSD-style license that can be found in the LICENSE file.
5621 6114
5622 6115
5623 /// @domName DOMFileSystemSync 6116 /// @domName DOMFileSystemSync
6117 /// @docsEditable
5624 class DOMFileSystemSync native "*DOMFileSystemSync" { 6118 class DOMFileSystemSync native "*DOMFileSystemSync" {
5625 6119
5626 /** @domName DOMFileSystemSync.name */ 6120 /** @domName DOMFileSystemSync.name */
6121 /// @docsEditable
5627 final String name; 6122 final String name;
5628 6123
5629 /** @domName DOMFileSystemSync.root */ 6124 /** @domName DOMFileSystemSync.root */
6125 /// @docsEditable
5630 final DirectoryEntrySync root; 6126 final DirectoryEntrySync root;
5631 } 6127 }
5632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5633 // for details. All rights reserved. Use of this source code is governed by a 6129 // for details. All rights reserved. Use of this source code is governed by a
5634 // BSD-style license that can be found in the LICENSE file. 6130 // BSD-style license that can be found in the LICENSE file.
5635 6131
5636 6132
5637 /// @domName DOMImplementation 6133 /// @domName DOMImplementation
6134 /// @docsEditable
5638 class DOMImplementation native "*DOMImplementation" { 6135 class DOMImplementation native "*DOMImplementation" {
5639 6136
5640 /** @domName DOMImplementation.createCSSStyleSheet */ 6137 /** @domName DOMImplementation.createCSSStyleSheet */
6138 /// @docsEditable
5641 CSSStyleSheet createCSSStyleSheet(String title, String media) native; 6139 CSSStyleSheet createCSSStyleSheet(String title, String media) native;
5642 6140
5643 /** @domName DOMImplementation.createDocument */ 6141 /** @domName DOMImplementation.createDocument */
6142 /// @docsEditable
5644 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native; 6143 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native;
5645 6144
5646 /** @domName DOMImplementation.createDocumentType */ 6145 /** @domName DOMImplementation.createDocumentType */
6146 /// @docsEditable
5647 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native; 6147 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native;
5648 6148
5649 /** @domName DOMImplementation.createHTMLDocument */ 6149 /** @domName DOMImplementation.createHTMLDocument */
6150 /// @docsEditable
5650 HtmlDocument createHTMLDocument(String title) native; 6151 HtmlDocument createHTMLDocument(String title) native;
5651 6152
5652 /** @domName DOMImplementation.hasFeature */ 6153 /** @domName DOMImplementation.hasFeature */
6154 /// @docsEditable
5653 bool hasFeature(String feature, String version) native; 6155 bool hasFeature(String feature, String version) native;
5654 } 6156 }
5655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5656 // for details. All rights reserved. Use of this source code is governed by a 6158 // for details. All rights reserved. Use of this source code is governed by a
5657 // BSD-style license that can be found in the LICENSE file. 6159 // BSD-style license that can be found in the LICENSE file.
5658 6160
5659 6161
5660 /// @domName MimeType 6162 /// @domName MimeType
6163 /// @docsEditable
5661 class DOMMimeType native "*MimeType" { 6164 class DOMMimeType native "*MimeType" {
5662 6165
5663 /** @domName MimeType.description */ 6166 /** @domName MimeType.description */
6167 /// @docsEditable
5664 final String description; 6168 final String description;
5665 6169
5666 /** @domName MimeType.enabledPlugin */ 6170 /** @domName MimeType.enabledPlugin */
6171 /// @docsEditable
5667 final DOMPlugin enabledPlugin; 6172 final DOMPlugin enabledPlugin;
5668 6173
5669 /** @domName MimeType.suffixes */ 6174 /** @domName MimeType.suffixes */
6175 /// @docsEditable
5670 final String suffixes; 6176 final String suffixes;
5671 6177
5672 /** @domName MimeType.type */ 6178 /** @domName MimeType.type */
6179 /// @docsEditable
5673 final String type; 6180 final String type;
5674 } 6181 }
5675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5676 // for details. All rights reserved. Use of this source code is governed by a 6183 // for details. All rights reserved. Use of this source code is governed by a
5677 // BSD-style license that can be found in the LICENSE file. 6184 // BSD-style license that can be found in the LICENSE file.
5678 6185
5679 6186
5680 /// @domName MimeTypeArray 6187 /// @domName MimeTypeArray
6188 /// @docsEditable
5681 class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType> native "*MimeTypeArray" { 6189 class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType> native "*MimeTypeArray" {
5682 6190
5683 /** @domName MimeTypeArray.length */ 6191 /** @domName MimeTypeArray.length */
6192 /// @docsEditable
5684 final int length; 6193 final int length;
5685 6194
5686 DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index); 6195 DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index);
5687 6196
5688 void operator[]=(int index, DOMMimeType value) { 6197 void operator[]=(int index, DOMMimeType value) {
5689 throw new UnsupportedError("Cannot assign element of immutable List."); 6198 throw new UnsupportedError("Cannot assign element of immutable List.");
5690 } 6199 }
5691 // -- start List<DOMMimeType> mixins. 6200 // -- start List<DOMMimeType> mixins.
5692 // DOMMimeType is the element type. 6201 // DOMMimeType is the element type.
5693 6202
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
5762 void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) { 6271 void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) {
5763 throw new UnsupportedError("Cannot insertRange on immutable List."); 6272 throw new UnsupportedError("Cannot insertRange on immutable List.");
5764 } 6273 }
5765 6274
5766 List<DOMMimeType> getRange(int start, int rangeLength) => 6275 List<DOMMimeType> getRange(int start, int rangeLength) =>
5767 _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]); 6276 _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]);
5768 6277
5769 // -- end List<DOMMimeType> mixins. 6278 // -- end List<DOMMimeType> mixins.
5770 6279
5771 /** @domName MimeTypeArray.item */ 6280 /** @domName MimeTypeArray.item */
6281 /// @docsEditable
5772 DOMMimeType item(int index) native; 6282 DOMMimeType item(int index) native;
5773 6283
5774 /** @domName MimeTypeArray.namedItem */ 6284 /** @domName MimeTypeArray.namedItem */
6285 /// @docsEditable
5775 DOMMimeType namedItem(String name) native; 6286 DOMMimeType namedItem(String name) native;
5776 } 6287 }
5777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5778 // for details. All rights reserved. Use of this source code is governed by a 6289 // for details. All rights reserved. Use of this source code is governed by a
5779 // BSD-style license that can be found in the LICENSE file. 6290 // BSD-style license that can be found in the LICENSE file.
5780 6291
5781 6292
5782 /// @domName DOMParser 6293 /// @domName DOMParser
6294 /// @docsEditable
5783 class DOMParser native "*DOMParser" { 6295 class DOMParser native "*DOMParser" {
5784 6296
5785 factory DOMParser() => _DOMParserFactoryProvider.createDOMParser(); 6297 factory DOMParser() => _DOMParserFactoryProvider.createDOMParser();
5786 6298
5787 /** @domName DOMParser.parseFromString */ 6299 /** @domName DOMParser.parseFromString */
6300 /// @docsEditable
5788 Document parseFromString(String str, String contentType) native; 6301 Document parseFromString(String str, String contentType) native;
5789 } 6302 }
5790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5791 // for details. All rights reserved. Use of this source code is governed by a 6304 // for details. All rights reserved. Use of this source code is governed by a
5792 // BSD-style license that can be found in the LICENSE file. 6305 // BSD-style license that can be found in the LICENSE file.
5793 6306
5794 6307
5795 /// @domName Plugin 6308 /// @domName Plugin
6309 /// @docsEditable
5796 class DOMPlugin native "*Plugin" { 6310 class DOMPlugin native "*Plugin" {
5797 6311
5798 /** @domName Plugin.description */ 6312 /** @domName Plugin.description */
6313 /// @docsEditable
5799 final String description; 6314 final String description;
5800 6315
5801 /** @domName Plugin.filename */ 6316 /** @domName Plugin.filename */
6317 /// @docsEditable
5802 final String filename; 6318 final String filename;
5803 6319
5804 /** @domName Plugin.length */ 6320 /** @domName Plugin.length */
6321 /// @docsEditable
5805 final int length; 6322 final int length;
5806 6323
5807 /** @domName Plugin.name */ 6324 /** @domName Plugin.name */
6325 /// @docsEditable
5808 final String name; 6326 final String name;
5809 6327
5810 /** @domName Plugin.item */ 6328 /** @domName Plugin.item */
6329 /// @docsEditable
5811 DOMMimeType item(int index) native; 6330 DOMMimeType item(int index) native;
5812 6331
5813 /** @domName Plugin.namedItem */ 6332 /** @domName Plugin.namedItem */
6333 /// @docsEditable
5814 DOMMimeType namedItem(String name) native; 6334 DOMMimeType namedItem(String name) native;
5815 } 6335 }
5816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5817 // for details. All rights reserved. Use of this source code is governed by a 6337 // for details. All rights reserved. Use of this source code is governed by a
5818 // BSD-style license that can be found in the LICENSE file. 6338 // BSD-style license that can be found in the LICENSE file.
5819 6339
5820 6340
5821 /// @domName PluginArray 6341 /// @domName PluginArray
6342 /// @docsEditable
5822 class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati ve "*PluginArray" { 6343 class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati ve "*PluginArray" {
5823 6344
5824 /** @domName PluginArray.length */ 6345 /** @domName PluginArray.length */
6346 /// @docsEditable
5825 final int length; 6347 final int length;
5826 6348
5827 DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index); 6349 DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index);
5828 6350
5829 void operator[]=(int index, DOMPlugin value) { 6351 void operator[]=(int index, DOMPlugin value) {
5830 throw new UnsupportedError("Cannot assign element of immutable List."); 6352 throw new UnsupportedError("Cannot assign element of immutable List.");
5831 } 6353 }
5832 // -- start List<DOMPlugin> mixins. 6354 // -- start List<DOMPlugin> mixins.
5833 // DOMPlugin is the element type. 6355 // DOMPlugin is the element type.
5834 6356
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
5903 void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) { 6425 void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) {
5904 throw new UnsupportedError("Cannot insertRange on immutable List."); 6426 throw new UnsupportedError("Cannot insertRange on immutable List.");
5905 } 6427 }
5906 6428
5907 List<DOMPlugin> getRange(int start, int rangeLength) => 6429 List<DOMPlugin> getRange(int start, int rangeLength) =>
5908 _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]); 6430 _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]);
5909 6431
5910 // -- end List<DOMPlugin> mixins. 6432 // -- end List<DOMPlugin> mixins.
5911 6433
5912 /** @domName PluginArray.item */ 6434 /** @domName PluginArray.item */
6435 /// @docsEditable
5913 DOMPlugin item(int index) native; 6436 DOMPlugin item(int index) native;
5914 6437
5915 /** @domName PluginArray.namedItem */ 6438 /** @domName PluginArray.namedItem */
6439 /// @docsEditable
5916 DOMPlugin namedItem(String name) native; 6440 DOMPlugin namedItem(String name) native;
5917 6441
5918 /** @domName PluginArray.refresh */ 6442 /** @domName PluginArray.refresh */
6443 /// @docsEditable
5919 void refresh(bool reload) native; 6444 void refresh(bool reload) native;
5920 } 6445 }
5921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5922 // for details. All rights reserved. Use of this source code is governed by a 6447 // for details. All rights reserved. Use of this source code is governed by a
5923 // BSD-style license that can be found in the LICENSE file. 6448 // BSD-style license that can be found in the LICENSE file.
5924 6449
5925 6450
5926 /// @domName Selection 6451 /// @domName Selection
6452 /// @docsEditable
5927 class DOMSelection native "*Selection" { 6453 class DOMSelection native "*Selection" {
5928 6454
5929 /** @domName Selection.anchorNode */ 6455 /** @domName Selection.anchorNode */
6456 /// @docsEditable
5930 final Node anchorNode; 6457 final Node anchorNode;
5931 6458
5932 /** @domName Selection.anchorOffset */ 6459 /** @domName Selection.anchorOffset */
6460 /// @docsEditable
5933 final int anchorOffset; 6461 final int anchorOffset;
5934 6462
5935 /** @domName Selection.baseNode */ 6463 /** @domName Selection.baseNode */
6464 /// @docsEditable
5936 final Node baseNode; 6465 final Node baseNode;
5937 6466
5938 /** @domName Selection.baseOffset */ 6467 /** @domName Selection.baseOffset */
6468 /// @docsEditable
5939 final int baseOffset; 6469 final int baseOffset;
5940 6470
5941 /** @domName Selection.extentNode */ 6471 /** @domName Selection.extentNode */
6472 /// @docsEditable
5942 final Node extentNode; 6473 final Node extentNode;
5943 6474
5944 /** @domName Selection.extentOffset */ 6475 /** @domName Selection.extentOffset */
6476 /// @docsEditable
5945 final int extentOffset; 6477 final int extentOffset;
5946 6478
5947 /** @domName Selection.focusNode */ 6479 /** @domName Selection.focusNode */
6480 /// @docsEditable
5948 final Node focusNode; 6481 final Node focusNode;
5949 6482
5950 /** @domName Selection.focusOffset */ 6483 /** @domName Selection.focusOffset */
6484 /// @docsEditable
5951 final int focusOffset; 6485 final int focusOffset;
5952 6486
5953 /** @domName Selection.isCollapsed */ 6487 /** @domName Selection.isCollapsed */
6488 /// @docsEditable
5954 final bool isCollapsed; 6489 final bool isCollapsed;
5955 6490
5956 /** @domName Selection.rangeCount */ 6491 /** @domName Selection.rangeCount */
6492 /// @docsEditable
5957 final int rangeCount; 6493 final int rangeCount;
5958 6494
5959 /** @domName Selection.type */ 6495 /** @domName Selection.type */
6496 /// @docsEditable
5960 final String type; 6497 final String type;
5961 6498
5962 /** @domName Selection.addRange */ 6499 /** @domName Selection.addRange */
6500 /// @docsEditable
5963 void addRange(Range range) native; 6501 void addRange(Range range) native;
5964 6502
5965 /** @domName Selection.collapse */ 6503 /** @domName Selection.collapse */
6504 /// @docsEditable
5966 void collapse(Node node, int index) native; 6505 void collapse(Node node, int index) native;
5967 6506
5968 /** @domName Selection.collapseToEnd */ 6507 /** @domName Selection.collapseToEnd */
6508 /// @docsEditable
5969 void collapseToEnd() native; 6509 void collapseToEnd() native;
5970 6510
5971 /** @domName Selection.collapseToStart */ 6511 /** @domName Selection.collapseToStart */
6512 /// @docsEditable
5972 void collapseToStart() native; 6513 void collapseToStart() native;
5973 6514
5974 /** @domName Selection.containsNode */ 6515 /** @domName Selection.containsNode */
6516 /// @docsEditable
5975 bool containsNode(Node node, bool allowPartial) native; 6517 bool containsNode(Node node, bool allowPartial) native;
5976 6518
5977 /** @domName Selection.deleteFromDocument */ 6519 /** @domName Selection.deleteFromDocument */
6520 /// @docsEditable
5978 void deleteFromDocument() native; 6521 void deleteFromDocument() native;
5979 6522
5980 /** @domName Selection.empty */ 6523 /** @domName Selection.empty */
6524 /// @docsEditable
5981 void empty() native; 6525 void empty() native;
5982 6526
5983 /** @domName Selection.extend */ 6527 /** @domName Selection.extend */
6528 /// @docsEditable
5984 void extend(Node node, int offset) native; 6529 void extend(Node node, int offset) native;
5985 6530
5986 /** @domName Selection.getRangeAt */ 6531 /** @domName Selection.getRangeAt */
6532 /// @docsEditable
5987 Range getRangeAt(int index) native; 6533 Range getRangeAt(int index) native;
5988 6534
5989 /** @domName Selection.modify */ 6535 /** @domName Selection.modify */
6536 /// @docsEditable
5990 void modify(String alter, String direction, String granularity) native; 6537 void modify(String alter, String direction, String granularity) native;
5991 6538
5992 /** @domName Selection.removeAllRanges */ 6539 /** @domName Selection.removeAllRanges */
6540 /// @docsEditable
5993 void removeAllRanges() native; 6541 void removeAllRanges() native;
5994 6542
5995 /** @domName Selection.selectAllChildren */ 6543 /** @domName Selection.selectAllChildren */
6544 /// @docsEditable
5996 void selectAllChildren(Node node) native; 6545 void selectAllChildren(Node node) native;
5997 6546
5998 /** @domName Selection.setBaseAndExtent */ 6547 /** @domName Selection.setBaseAndExtent */
6548 /// @docsEditable
5999 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native; 6549 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native;
6000 6550
6001 /** @domName Selection.setPosition */ 6551 /** @domName Selection.setPosition */
6552 /// @docsEditable
6002 void setPosition(Node node, int offset) native; 6553 void setPosition(Node node, int offset) native;
6003 6554
6004 /** @domName Selection.toString */ 6555 /** @domName Selection.toString */
6556 /// @docsEditable
6005 String toString() native; 6557 String toString() native;
6006 } 6558 }
6007 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6008 // for details. All rights reserved. Use of this source code is governed by a 6560 // for details. All rights reserved. Use of this source code is governed by a
6009 // BSD-style license that can be found in the LICENSE file. 6561 // BSD-style license that can be found in the LICENSE file.
6010 6562
6011 6563
6012 /// @domName DOMSettableTokenList 6564 /// @domName DOMSettableTokenList
6565 /// @docsEditable
6013 class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" { 6566 class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" {
6014 6567
6015 /** @domName DOMSettableTokenList.value */ 6568 /** @domName DOMSettableTokenList.value */
6569 /// @docsEditable
6016 String value; 6570 String value;
6017 } 6571 }
6018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6572 // 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 6573 // 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. 6574 // BSD-style license that can be found in the LICENSE file.
6021 6575
6022 6576
6023 /// @domName DOMStringMap 6577 /// @domName DOMStringMap
6024 abstract class DOMStringMap { 6578 abstract class DOMStringMap {
6025 } 6579 }
6026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6027 // for details. All rights reserved. Use of this source code is governed by a 6581 // for details. All rights reserved. Use of this source code is governed by a
6028 // BSD-style license that can be found in the LICENSE file. 6582 // BSD-style license that can be found in the LICENSE file.
6029 6583
6030 6584
6031 /// @domName DOMTokenList 6585 /// @domName DOMTokenList
6586 /// @docsEditable
6032 class DOMTokenList native "*DOMTokenList" { 6587 class DOMTokenList native "*DOMTokenList" {
6033 6588
6034 /** @domName DOMTokenList.length */ 6589 /** @domName DOMTokenList.length */
6590 /// @docsEditable
6035 final int length; 6591 final int length;
6036 6592
6037 /** @domName DOMTokenList.contains */ 6593 /** @domName DOMTokenList.contains */
6594 /// @docsEditable
6038 bool contains(String token) native; 6595 bool contains(String token) native;
6039 6596
6040 /** @domName DOMTokenList.item */ 6597 /** @domName DOMTokenList.item */
6598 /// @docsEditable
6041 String item(int index) native; 6599 String item(int index) native;
6042 6600
6043 /** @domName DOMTokenList.toString */ 6601 /** @domName DOMTokenList.toString */
6602 /// @docsEditable
6044 String toString() native; 6603 String toString() native;
6045 6604
6046 /** @domName DOMTokenList.toggle */ 6605 /** @domName DOMTokenList.toggle */
6606 /// @docsEditable
6047 bool toggle(String token, [bool force]) native; 6607 bool toggle(String token, [bool force]) native;
6048 } 6608 }
6049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6609 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6050 // for details. All rights reserved. Use of this source code is governed by a 6610 // for details. All rights reserved. Use of this source code is governed by a
6051 // BSD-style license that can be found in the LICENSE file. 6611 // BSD-style license that can be found in the LICENSE file.
6052 6612
6053 6613
6054 /// @domName HTMLDataListElement 6614 /// @domName HTMLDataListElement
6615 /// @docsEditable
6055 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" { 6616 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" {
6056 6617
6057 factory DataListElement() => document.$dom_createElement("datalist"); 6618 factory DataListElement() => document.$dom_createElement("datalist");
6058 6619
6059 /** @domName HTMLDataListElement.options */ 6620 /** @domName HTMLDataListElement.options */
6621 /// @docsEditable
6060 final HTMLCollection options; 6622 final HTMLCollection options;
6061 } 6623 }
6062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6063 // for details. All rights reserved. Use of this source code is governed by a 6625 // for details. All rights reserved. Use of this source code is governed by a
6064 // BSD-style license that can be found in the LICENSE file. 6626 // BSD-style license that can be found in the LICENSE file.
6065 6627
6066 6628
6067 /// @domName DataTransferItem 6629 /// @domName DataTransferItem
6630 /// @docsEditable
6068 class DataTransferItem native "*DataTransferItem" { 6631 class DataTransferItem native "*DataTransferItem" {
6069 6632
6070 /** @domName DataTransferItem.kind */ 6633 /** @domName DataTransferItem.kind */
6634 /// @docsEditable
6071 final String kind; 6635 final String kind;
6072 6636
6073 /** @domName DataTransferItem.type */ 6637 /** @domName DataTransferItem.type */
6638 /// @docsEditable
6074 final String type; 6639 final String type;
6075 6640
6076 /** @domName DataTransferItem.getAsFile */ 6641 /** @domName DataTransferItem.getAsFile */
6642 /// @docsEditable
6077 Blob getAsFile() native; 6643 Blob getAsFile() native;
6078 6644
6079 /** @domName DataTransferItem.getAsString */ 6645 /** @domName DataTransferItem.getAsString */
6646 /// @docsEditable
6080 void getAsString([StringCallback callback]) native; 6647 void getAsString([StringCallback callback]) native;
6081 6648
6082 /** @domName DataTransferItem.webkitGetAsEntry */ 6649 /** @domName DataTransferItem.webkitGetAsEntry */
6650 /// @docsEditable
6083 Entry webkitGetAsEntry() native; 6651 Entry webkitGetAsEntry() native;
6084 } 6652 }
6085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6086 // for details. All rights reserved. Use of this source code is governed by a 6654 // for details. All rights reserved. Use of this source code is governed by a
6087 // BSD-style license that can be found in the LICENSE file. 6655 // BSD-style license that can be found in the LICENSE file.
6088 6656
6089 6657
6090 /// @domName DataTransferItemList 6658 /// @domName DataTransferItemList
6659 /// @docsEditable
6091 class DataTransferItemList native "*DataTransferItemList" { 6660 class DataTransferItemList native "*DataTransferItemList" {
6092 6661
6093 /** @domName DataTransferItemList.length */ 6662 /** @domName DataTransferItemList.length */
6663 /// @docsEditable
6094 final int length; 6664 final int length;
6095 6665
6096 /** @domName DataTransferItemList.add */ 6666 /** @domName DataTransferItemList.add */
6667 /// @docsEditable
6097 void add(data_OR_file, [String type]) native; 6668 void add(data_OR_file, [String type]) native;
6098 6669
6099 /** @domName DataTransferItemList.clear */ 6670 /** @domName DataTransferItemList.clear */
6671 /// @docsEditable
6100 void clear() native; 6672 void clear() native;
6101 6673
6102 /** @domName DataTransferItemList.item */ 6674 /** @domName DataTransferItemList.item */
6675 /// @docsEditable
6103 DataTransferItem item(int index) native; 6676 DataTransferItem item(int index) native;
6104 } 6677 }
6105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6106 // for details. All rights reserved. Use of this source code is governed by a 6679 // for details. All rights reserved. Use of this source code is governed by a
6107 // BSD-style license that can be found in the LICENSE file. 6680 // BSD-style license that can be found in the LICENSE file.
6108 6681
6109 6682
6110 /// @domName DataView 6683 /// @domName DataView
6684 /// @docsEditable
6111 class DataView extends ArrayBufferView native "*DataView" { 6685 class DataView extends ArrayBufferView native "*DataView" {
6112 6686
6113 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { 6687 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) {
6114 if (!?byteOffset) { 6688 if (!?byteOffset) {
6115 return _DataViewFactoryProvider.createDataView(buffer); 6689 return _DataViewFactoryProvider.createDataView(buffer);
6116 } 6690 }
6117 if (!?byteLength) { 6691 if (!?byteLength) {
6118 return _DataViewFactoryProvider.createDataView(buffer, byteOffset); 6692 return _DataViewFactoryProvider.createDataView(buffer, byteOffset);
6119 } 6693 }
6120 return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLengt h); 6694 return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLengt h);
6121 } 6695 }
6122 6696
6123 /** @domName DataView.getFloat32 */ 6697 /** @domName DataView.getFloat32 */
6698 /// @docsEditable
6124 num getFloat32(int byteOffset, {bool littleEndian}) native; 6699 num getFloat32(int byteOffset, {bool littleEndian}) native;
6125 6700
6126 /** @domName DataView.getFloat64 */ 6701 /** @domName DataView.getFloat64 */
6702 /// @docsEditable
6127 num getFloat64(int byteOffset, {bool littleEndian}) native; 6703 num getFloat64(int byteOffset, {bool littleEndian}) native;
6128 6704
6129 /** @domName DataView.getInt16 */ 6705 /** @domName DataView.getInt16 */
6706 /// @docsEditable
6130 int getInt16(int byteOffset, {bool littleEndian}) native; 6707 int getInt16(int byteOffset, {bool littleEndian}) native;
6131 6708
6132 /** @domName DataView.getInt32 */ 6709 /** @domName DataView.getInt32 */
6710 /// @docsEditable
6133 int getInt32(int byteOffset, {bool littleEndian}) native; 6711 int getInt32(int byteOffset, {bool littleEndian}) native;
6134 6712
6135 /** @domName DataView.getInt8 */ 6713 /** @domName DataView.getInt8 */
6714 /// @docsEditable
6136 int getInt8(int byteOffset) native; 6715 int getInt8(int byteOffset) native;
6137 6716
6138 /** @domName DataView.getUint16 */ 6717 /** @domName DataView.getUint16 */
6718 /// @docsEditable
6139 int getUint16(int byteOffset, {bool littleEndian}) native; 6719 int getUint16(int byteOffset, {bool littleEndian}) native;
6140 6720
6141 /** @domName DataView.getUint32 */ 6721 /** @domName DataView.getUint32 */
6722 /// @docsEditable
6142 int getUint32(int byteOffset, {bool littleEndian}) native; 6723 int getUint32(int byteOffset, {bool littleEndian}) native;
6143 6724
6144 /** @domName DataView.getUint8 */ 6725 /** @domName DataView.getUint8 */
6726 /// @docsEditable
6145 int getUint8(int byteOffset) native; 6727 int getUint8(int byteOffset) native;
6146 6728
6147 /** @domName DataView.setFloat32 */ 6729 /** @domName DataView.setFloat32 */
6730 /// @docsEditable
6148 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; 6731 void setFloat32(int byteOffset, num value, {bool littleEndian}) native;
6149 6732
6150 /** @domName DataView.setFloat64 */ 6733 /** @domName DataView.setFloat64 */
6734 /// @docsEditable
6151 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; 6735 void setFloat64(int byteOffset, num value, {bool littleEndian}) native;
6152 6736
6153 /** @domName DataView.setInt16 */ 6737 /** @domName DataView.setInt16 */
6738 /// @docsEditable
6154 void setInt16(int byteOffset, int value, {bool littleEndian}) native; 6739 void setInt16(int byteOffset, int value, {bool littleEndian}) native;
6155 6740
6156 /** @domName DataView.setInt32 */ 6741 /** @domName DataView.setInt32 */
6742 /// @docsEditable
6157 void setInt32(int byteOffset, int value, {bool littleEndian}) native; 6743 void setInt32(int byteOffset, int value, {bool littleEndian}) native;
6158 6744
6159 /** @domName DataView.setInt8 */ 6745 /** @domName DataView.setInt8 */
6746 /// @docsEditable
6160 void setInt8(int byteOffset, int value) native; 6747 void setInt8(int byteOffset, int value) native;
6161 6748
6162 /** @domName DataView.setUint16 */ 6749 /** @domName DataView.setUint16 */
6750 /// @docsEditable
6163 void setUint16(int byteOffset, int value, {bool littleEndian}) native; 6751 void setUint16(int byteOffset, int value, {bool littleEndian}) native;
6164 6752
6165 /** @domName DataView.setUint32 */ 6753 /** @domName DataView.setUint32 */
6754 /// @docsEditable
6166 void setUint32(int byteOffset, int value, {bool littleEndian}) native; 6755 void setUint32(int byteOffset, int value, {bool littleEndian}) native;
6167 6756
6168 /** @domName DataView.setUint8 */ 6757 /** @domName DataView.setUint8 */
6758 /// @docsEditable
6169 void setUint8(int byteOffset, int value) native; 6759 void setUint8(int byteOffset, int value) native;
6170 } 6760 }
6171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6172 // for details. All rights reserved. Use of this source code is governed by a 6762 // for details. All rights reserved. Use of this source code is governed by a
6173 // BSD-style license that can be found in the LICENSE file. 6763 // BSD-style license that can be found in the LICENSE file.
6174 6764
6175 6765
6176 /// @domName Database 6766 /// @domName Database
6767 /// @docsEditable
6177 class Database native "*Database" { 6768 class Database native "*Database" {
6178 6769
6179 /** @domName Database.version */ 6770 /** @domName Database.version */
6771 /// @docsEditable
6180 final String version; 6772 final String version;
6181 6773
6182 /** @domName Database.changeVersion */ 6774 /** @domName Database.changeVersion */
6775 /// @docsEditable
6183 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall back]) native; 6776 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall back]) native;
6184 6777
6185 /** @domName Database.readTransaction */ 6778 /** @domName Database.readTransaction */
6779 /// @docsEditable
6186 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback, VoidCallback successCallback]) native; 6780 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback, VoidCallback successCallback]) native;
6187 6781
6188 /** @domName Database.transaction */ 6782 /** @domName Database.transaction */
6783 /// @docsEditable
6189 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; 6784 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
6190 } 6785 }
6191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6192 // for details. All rights reserved. Use of this source code is governed by a 6787 // for details. All rights reserved. Use of this source code is governed by a
6193 // BSD-style license that can be found in the LICENSE file. 6788 // BSD-style license that can be found in the LICENSE file.
6194 6789
6195 // WARNING: Do not edit - generated code. 6790 // WARNING: Do not edit - generated code.
6196 6791
6197 6792
6198 typedef void DatabaseCallback(database); 6793 typedef void DatabaseCallback(database);
6199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6200 // for details. All rights reserved. Use of this source code is governed by a 6795 // for details. All rights reserved. Use of this source code is governed by a
6201 // BSD-style license that can be found in the LICENSE file. 6796 // BSD-style license that can be found in the LICENSE file.
6202 6797
6203 6798
6204 /// @domName DatabaseSync 6799 /// @domName DatabaseSync
6800 /// @docsEditable
6205 class DatabaseSync native "*DatabaseSync" { 6801 class DatabaseSync native "*DatabaseSync" {
6206 6802
6207 /** @domName DatabaseSync.lastErrorMessage */ 6803 /** @domName DatabaseSync.lastErrorMessage */
6804 /// @docsEditable
6208 final String lastErrorMessage; 6805 final String lastErrorMessage;
6209 6806
6210 /** @domName DatabaseSync.version */ 6807 /** @domName DatabaseSync.version */
6808 /// @docsEditable
6211 final String version; 6809 final String version;
6212 6810
6213 /** @domName DatabaseSync.changeVersion */ 6811 /** @domName DatabaseSync.changeVersion */
6812 /// @docsEditable
6214 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa llback callback]) native; 6813 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa llback callback]) native;
6215 6814
6216 /** @domName DatabaseSync.readTransaction */ 6815 /** @domName DatabaseSync.readTransaction */
6816 /// @docsEditable
6217 void readTransaction(SQLTransactionSyncCallback callback) native; 6817 void readTransaction(SQLTransactionSyncCallback callback) native;
6218 6818
6219 /** @domName DatabaseSync.transaction */ 6819 /** @domName DatabaseSync.transaction */
6820 /// @docsEditable
6220 void transaction(SQLTransactionSyncCallback callback) native; 6821 void transaction(SQLTransactionSyncCallback callback) native;
6221 } 6822 }
6222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6223 // for details. All rights reserved. Use of this source code is governed by a 6824 // for details. All rights reserved. Use of this source code is governed by a
6224 // BSD-style license that can be found in the LICENSE file. 6825 // BSD-style license that can be found in the LICENSE file.
6225 6826
6226 6827
6227 /// @domName DedicatedWorkerContext 6828 /// @domName DedicatedWorkerContext
6829 /// @docsEditable
6228 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" { 6830 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" {
6229 6831
6230 /** 6832 /**
6231 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 6833 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
6232 */ 6834 */
6835 /// @docsEditable
6233 DedicatedWorkerContextEvents get on => 6836 DedicatedWorkerContextEvents get on =>
6234 new DedicatedWorkerContextEvents(this); 6837 new DedicatedWorkerContextEvents(this);
6235 6838
6236 /** @domName DedicatedWorkerContext.postMessage */ 6839 /** @domName DedicatedWorkerContext.postMessage */
6840 /// @docsEditable
6237 void postMessage(/*any*/ message, [List messagePorts]) { 6841 void postMessage(/*any*/ message, [List messagePorts]) {
6238 if (?messagePorts) { 6842 if (?messagePorts) {
6239 var message_1 = _convertDartToNative_SerializedScriptValue(message); 6843 var message_1 = _convertDartToNative_SerializedScriptValue(message);
6240 _postMessage_1(message_1, messagePorts); 6844 _postMessage_1(message_1, messagePorts);
6241 return; 6845 return;
6242 } 6846 }
6243 var message_2 = _convertDartToNative_SerializedScriptValue(message); 6847 var message_2 = _convertDartToNative_SerializedScriptValue(message);
6244 _postMessage_2(message_2); 6848 _postMessage_2(message_2);
6245 return; 6849 return;
6246 } 6850 }
6247 void _postMessage_1(message, List messagePorts) native "postMessage"; 6851 void _postMessage_1(message, List messagePorts) native "postMessage";
6248 void _postMessage_2(message) native "postMessage"; 6852 void _postMessage_2(message) native "postMessage";
6249 } 6853 }
6250 6854
6251 class DedicatedWorkerContextEvents extends WorkerContextEvents { 6855 class DedicatedWorkerContextEvents extends WorkerContextEvents {
6252 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 6856 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
6253 6857
6254 EventListenerList get message => this['message']; 6858 EventListenerList get message => this['message'];
6255 } 6859 }
6256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6257 // for details. All rights reserved. Use of this source code is governed by a 6861 // for details. All rights reserved. Use of this source code is governed by a
6258 // BSD-style license that can be found in the LICENSE file. 6862 // BSD-style license that can be found in the LICENSE file.
6259 6863
6260 6864
6261 /// @domName DelayNode 6865 /// @domName DelayNode
6866 /// @docsEditable
6262 class DelayNode extends AudioNode native "*DelayNode" { 6867 class DelayNode extends AudioNode native "*DelayNode" {
6263 6868
6264 /** @domName DelayNode.delayTime */ 6869 /** @domName DelayNode.delayTime */
6870 /// @docsEditable
6265 final AudioParam delayTime; 6871 final AudioParam delayTime;
6266 } 6872 }
6267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6873 // 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 6874 // 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. 6875 // BSD-style license that can be found in the LICENSE file.
6270 6876
6271 6877
6272 /// @domName HTMLDetailsElement 6878 /// @domName HTMLDetailsElement
6879 /// @docsEditable
6273 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" { 6880 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" {
6274 6881
6275 factory DetailsElement() => document.$dom_createElement("details"); 6882 factory DetailsElement() => document.$dom_createElement("details");
6276 6883
6277 /** @domName HTMLDetailsElement.open */ 6884 /** @domName HTMLDetailsElement.open */
6885 /// @docsEditable
6278 bool open; 6886 bool open;
6279 } 6887 }
6280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6281 // for details. All rights reserved. Use of this source code is governed by a 6889 // for details. All rights reserved. Use of this source code is governed by a
6282 // BSD-style license that can be found in the LICENSE file. 6890 // BSD-style license that can be found in the LICENSE file.
6283 6891
6284 6892
6285 /// @domName DeviceMotionEvent 6893 /// @domName DeviceMotionEvent
6894 /// @docsEditable
6286 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { 6895 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" {
6287 6896
6288 /** @domName DeviceMotionEvent.interval */ 6897 /** @domName DeviceMotionEvent.interval */
6898 /// @docsEditable
6289 final num interval; 6899 final num interval;
6290 } 6900 }
6291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6901 // 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 6902 // 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. 6903 // BSD-style license that can be found in the LICENSE file.
6294 6904
6295 6905
6296 /// @domName DeviceOrientationEvent 6906 /// @domName DeviceOrientationEvent
6907 /// @docsEditable
6297 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { 6908 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" {
6298 6909
6299 /** @domName DeviceOrientationEvent.absolute */ 6910 /** @domName DeviceOrientationEvent.absolute */
6911 /// @docsEditable
6300 final bool absolute; 6912 final bool absolute;
6301 6913
6302 /** @domName DeviceOrientationEvent.alpha */ 6914 /** @domName DeviceOrientationEvent.alpha */
6915 /// @docsEditable
6303 final num alpha; 6916 final num alpha;
6304 6917
6305 /** @domName DeviceOrientationEvent.beta */ 6918 /** @domName DeviceOrientationEvent.beta */
6919 /// @docsEditable
6306 final num beta; 6920 final num beta;
6307 6921
6308 /** @domName DeviceOrientationEvent.gamma */ 6922 /** @domName DeviceOrientationEvent.gamma */
6923 /// @docsEditable
6309 final num gamma; 6924 final num gamma;
6310 6925
6311 /** @domName DeviceOrientationEvent.initDeviceOrientationEvent */ 6926 /** @domName DeviceOrientationEvent.initDeviceOrientationEvent */
6927 /// @docsEditable
6312 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native; 6928 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native;
6313 } 6929 }
6314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6315 // for details. All rights reserved. Use of this source code is governed by a 6931 // for details. All rights reserved. Use of this source code is governed by a
6316 // BSD-style license that can be found in the LICENSE file. 6932 // BSD-style license that can be found in the LICENSE file.
6317 6933
6318 6934
6319 /// @domName HTMLDirectoryElement 6935 /// @domName HTMLDirectoryElement
6936 /// @docsEditable
6320 class DirectoryElement extends Element implements Element native "*HTMLDirectory Element" { 6937 class DirectoryElement extends Element implements Element native "*HTMLDirectory Element" {
6321 6938
6322 /** @domName HTMLDirectoryElement.compact */ 6939 /** @domName HTMLDirectoryElement.compact */
6940 /// @docsEditable
6323 bool compact; 6941 bool compact;
6324 } 6942 }
6325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6943 // 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 6944 // 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. 6945 // BSD-style license that can be found in the LICENSE file.
6328 6946
6329 6947
6330 /// @domName DirectoryEntry 6948 /// @domName DirectoryEntry
6949 /// @docsEditable
6331 class DirectoryEntry extends Entry native "*DirectoryEntry" { 6950 class DirectoryEntry extends Entry native "*DirectoryEntry" {
6332 6951
6333 /** @domName DirectoryEntry.createReader */ 6952 /** @domName DirectoryEntry.createReader */
6953 /// @docsEditable
6334 DirectoryReader createReader() native; 6954 DirectoryReader createReader() native;
6335 6955
6336 /** @domName DirectoryEntry.getDirectory */ 6956 /** @domName DirectoryEntry.getDirectory */
6957 /// @docsEditable
6337 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) { 6958 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) {
6338 if (?errorCallback) { 6959 if (?errorCallback) {
6339 var options_1 = _convertDartToNative_Dictionary(options); 6960 var options_1 = _convertDartToNative_Dictionary(options);
6340 _getDirectory_1(path, options_1, successCallback, errorCallback); 6961 _getDirectory_1(path, options_1, successCallback, errorCallback);
6341 return; 6962 return;
6342 } 6963 }
6343 if (?successCallback) { 6964 if (?successCallback) {
6344 var options_2 = _convertDartToNative_Dictionary(options); 6965 var options_2 = _convertDartToNative_Dictionary(options);
6345 _getDirectory_2(path, options_2, successCallback); 6966 _getDirectory_2(path, options_2, successCallback);
6346 return; 6967 return;
6347 } 6968 }
6348 if (?options) { 6969 if (?options) {
6349 var options_3 = _convertDartToNative_Dictionary(options); 6970 var options_3 = _convertDartToNative_Dictionary(options);
6350 _getDirectory_3(path, options_3); 6971 _getDirectory_3(path, options_3);
6351 return; 6972 return;
6352 } 6973 }
6353 _getDirectory_4(path); 6974 _getDirectory_4(path);
6354 return; 6975 return;
6355 } 6976 }
6356 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native "getDirectory"; 6977 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native "getDirectory";
6357 void _getDirectory_2(path, options, EntryCallback successCallback) native "get Directory"; 6978 void _getDirectory_2(path, options, EntryCallback successCallback) native "get Directory";
6358 void _getDirectory_3(path, options) native "getDirectory"; 6979 void _getDirectory_3(path, options) native "getDirectory";
6359 void _getDirectory_4(path) native "getDirectory"; 6980 void _getDirectory_4(path) native "getDirectory";
6360 6981
6361 /** @domName DirectoryEntry.getFile */ 6982 /** @domName DirectoryEntry.getFile */
6983 /// @docsEditable
6362 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) { 6984 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) {
6363 if (?errorCallback) { 6985 if (?errorCallback) {
6364 var options_1 = _convertDartToNative_Dictionary(options); 6986 var options_1 = _convertDartToNative_Dictionary(options);
6365 _getFile_1(path, options_1, successCallback, errorCallback); 6987 _getFile_1(path, options_1, successCallback, errorCallback);
6366 return; 6988 return;
6367 } 6989 }
6368 if (?successCallback) { 6990 if (?successCallback) {
6369 var options_2 = _convertDartToNative_Dictionary(options); 6991 var options_2 = _convertDartToNative_Dictionary(options);
6370 _getFile_2(path, options_2, successCallback); 6992 _getFile_2(path, options_2, successCallback);
6371 return; 6993 return;
6372 } 6994 }
6373 if (?options) { 6995 if (?options) {
6374 var options_3 = _convertDartToNative_Dictionary(options); 6996 var options_3 = _convertDartToNative_Dictionary(options);
6375 _getFile_3(path, options_3); 6997 _getFile_3(path, options_3);
6376 return; 6998 return;
6377 } 6999 }
6378 _getFile_4(path); 7000 _getFile_4(path);
6379 return; 7001 return;
6380 } 7002 }
6381 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native "getFile"; 7003 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native "getFile";
6382 void _getFile_2(path, options, EntryCallback successCallback) native "getFile" ; 7004 void _getFile_2(path, options, EntryCallback successCallback) native "getFile" ;
6383 void _getFile_3(path, options) native "getFile"; 7005 void _getFile_3(path, options) native "getFile";
6384 void _getFile_4(path) native "getFile"; 7006 void _getFile_4(path) native "getFile";
6385 7007
6386 /** @domName DirectoryEntry.removeRecursively */ 7008 /** @domName DirectoryEntry.removeRecursively */
7009 /// @docsEditable
6387 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native; 7010 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native;
6388 } 7011 }
6389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6390 // for details. All rights reserved. Use of this source code is governed by a 7013 // for details. All rights reserved. Use of this source code is governed by a
6391 // BSD-style license that can be found in the LICENSE file. 7014 // BSD-style license that can be found in the LICENSE file.
6392 7015
6393 7016
6394 /// @domName DirectoryEntrySync 7017 /// @domName DirectoryEntrySync
7018 /// @docsEditable
6395 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { 7019 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" {
6396 7020
6397 /** @domName DirectoryEntrySync.createReader */ 7021 /** @domName DirectoryEntrySync.createReader */
7022 /// @docsEditable
6398 DirectoryReaderSync createReader() native; 7023 DirectoryReaderSync createReader() native;
6399 7024
6400 /** @domName DirectoryEntrySync.getDirectory */ 7025 /** @domName DirectoryEntrySync.getDirectory */
7026 /// @docsEditable
6401 DirectoryEntrySync getDirectory(String path, Map flags) { 7027 DirectoryEntrySync getDirectory(String path, Map flags) {
6402 var flags_1 = _convertDartToNative_Dictionary(flags); 7028 var flags_1 = _convertDartToNative_Dictionary(flags);
6403 return _getDirectory_1(path, flags_1); 7029 return _getDirectory_1(path, flags_1);
6404 } 7030 }
6405 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; 7031 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory";
6406 7032
6407 /** @domName DirectoryEntrySync.getFile */ 7033 /** @domName DirectoryEntrySync.getFile */
7034 /// @docsEditable
6408 FileEntrySync getFile(String path, Map flags) { 7035 FileEntrySync getFile(String path, Map flags) {
6409 var flags_1 = _convertDartToNative_Dictionary(flags); 7036 var flags_1 = _convertDartToNative_Dictionary(flags);
6410 return _getFile_1(path, flags_1); 7037 return _getFile_1(path, flags_1);
6411 } 7038 }
6412 FileEntrySync _getFile_1(path, flags) native "getFile"; 7039 FileEntrySync _getFile_1(path, flags) native "getFile";
6413 7040
6414 /** @domName DirectoryEntrySync.removeRecursively */ 7041 /** @domName DirectoryEntrySync.removeRecursively */
7042 /// @docsEditable
6415 void removeRecursively() native; 7043 void removeRecursively() native;
6416 } 7044 }
6417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6418 // for details. All rights reserved. Use of this source code is governed by a 7046 // for details. All rights reserved. Use of this source code is governed by a
6419 // BSD-style license that can be found in the LICENSE file. 7047 // BSD-style license that can be found in the LICENSE file.
6420 7048
6421 7049
6422 /// @domName DirectoryReader 7050 /// @domName DirectoryReader
7051 /// @docsEditable
6423 class DirectoryReader native "*DirectoryReader" { 7052 class DirectoryReader native "*DirectoryReader" {
6424 7053
6425 /** @domName DirectoryReader.readEntries */ 7054 /** @domName DirectoryReader.readEntries */
7055 /// @docsEditable
6426 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]) native; 7056 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]) native;
6427 } 7057 }
6428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7058 // 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 7059 // 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. 7060 // BSD-style license that can be found in the LICENSE file.
6431 7061
6432 7062
6433 /// @domName DirectoryReaderSync 7063 /// @domName DirectoryReaderSync
7064 /// @docsEditable
6434 class DirectoryReaderSync native "*DirectoryReaderSync" { 7065 class DirectoryReaderSync native "*DirectoryReaderSync" {
6435 7066
6436 /** @domName DirectoryReaderSync.readEntries */ 7067 /** @domName DirectoryReaderSync.readEntries */
7068 /// @docsEditable
6437 List<EntrySync> readEntries() native; 7069 List<EntrySync> readEntries() native;
6438 } 7070 }
6439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7071 // 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 7072 // 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. 7073 // BSD-style license that can be found in the LICENSE file.
6442 7074
6443 7075
6444 /// @domName HTMLDivElement 7076 /// @domName HTMLDivElement
7077 /// @docsEditable
6445 class DivElement extends Element implements Element native "*HTMLDivElement" { 7078 class DivElement extends Element implements Element native "*HTMLDivElement" {
6446 7079
6447 factory DivElement() => document.$dom_createElement("div"); 7080 factory DivElement() => document.$dom_createElement("div");
6448 } 7081 }
6449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7082 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6450 // for details. All rights reserved. Use of this source code is governed by a 7083 // for details. All rights reserved. Use of this source code is governed by a
6451 // BSD-style license that can be found in the LICENSE file. 7084 // BSD-style license that can be found in the LICENSE file.
6452 7085
6453 7086
6454 class Document extends Node native "*Document" 7087 class Document extends Node native "*Document"
6455 { 7088 {
6456 7089
6457 7090
6458 /** 7091 /**
6459 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 7092 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
6460 */ 7093 */
7094 /// @docsEditable
6461 DocumentEvents get on => 7095 DocumentEvents get on =>
6462 new DocumentEvents(this); 7096 new DocumentEvents(this);
6463 7097
6464 /** @domName Document.body */ 7098 /** @domName Document.body */
7099 /// @docsEditable
6465 Element get $dom_body => JS("Element", "#.body", this); 7100 Element get $dom_body => JS("Element", "#.body", this);
6466 7101
6467 /** @domName Document.body */ 7102 /** @domName Document.body */
7103 /// @docsEditable
6468 void set $dom_body(Element value) { 7104 void set $dom_body(Element value) {
6469 JS("void", "#.body = #", this, value); 7105 JS("void", "#.body = #", this, value);
6470 } 7106 }
6471 7107
6472 /** @domName Document.charset */ 7108 /** @domName Document.charset */
7109 /// @docsEditable
6473 String charset; 7110 String charset;
6474 7111
6475 /** @domName Document.cookie */ 7112 /** @domName Document.cookie */
7113 /// @docsEditable
6476 String cookie; 7114 String cookie;
6477 7115
6478 /** @domName Document.defaultView */ 7116 /** @domName Document.defaultView */
7117 /// @docsEditable
6479 Window get window => _convertNativeToDart_Window(this._window); 7118 Window get window => _convertNativeToDart_Window(this._window);
6480 dynamic get _window => JS("dynamic", "#.defaultView", this); 7119 dynamic get _window => JS("dynamic", "#.defaultView", this);
6481 7120
6482 /** @domName Document.documentElement */ 7121 /** @domName Document.documentElement */
7122 /// @docsEditable
6483 final Element documentElement; 7123 final Element documentElement;
6484 7124
6485 /** @domName Document.domain */ 7125 /** @domName Document.domain */
7126 /// @docsEditable
6486 final String domain; 7127 final String domain;
6487 7128
6488 /** @domName Document.head */ 7129 /** @domName Document.head */
7130 /// @docsEditable
6489 HeadElement get $dom_head => JS("HeadElement", "#.head", this); 7131 HeadElement get $dom_head => JS("HeadElement", "#.head", this);
6490 7132
6491 /** @domName Document.implementation */ 7133 /** @domName Document.implementation */
7134 /// @docsEditable
6492 final DOMImplementation implementation; 7135 final DOMImplementation implementation;
6493 7136
6494 /** @domName Document.lastModified */ 7137 /** @domName Document.lastModified */
7138 /// @docsEditable
6495 String get $dom_lastModified => JS("String", "#.lastModified", this); 7139 String get $dom_lastModified => JS("String", "#.lastModified", this);
6496 7140
6497 /** @domName Document.preferredStylesheetSet */ 7141 /** @domName Document.preferredStylesheetSet */
7142 /// @docsEditable
6498 final String preferredStylesheetSet; 7143 final String preferredStylesheetSet;
6499 7144
6500 /** @domName Document.readyState */ 7145 /** @domName Document.readyState */
7146 /// @docsEditable
6501 final String readyState; 7147 final String readyState;
6502 7148
6503 /** @domName Document.referrer */ 7149 /** @domName Document.referrer */
7150 /// @docsEditable
6504 String get $dom_referrer => JS("String", "#.referrer", this); 7151 String get $dom_referrer => JS("String", "#.referrer", this);
6505 7152
6506 /** @domName Document.selectedStylesheetSet */ 7153 /** @domName Document.selectedStylesheetSet */
7154 /// @docsEditable
6507 String selectedStylesheetSet; 7155 String selectedStylesheetSet;
6508 7156
6509 /** @domName Document.styleSheets */ 7157 /** @domName Document.styleSheets */
7158 /// @docsEditable
6510 List<StyleSheet> get $dom_styleSheets => JS("List<StyleSheet>", "#.styleSheets ", this); 7159 List<StyleSheet> get $dom_styleSheets => JS("List<StyleSheet>", "#.styleSheets ", this);
6511 7160
6512 /** @domName Document.title */ 7161 /** @domName Document.title */
7162 /// @docsEditable
6513 String get $dom_title => JS("String", "#.title", this); 7163 String get $dom_title => JS("String", "#.title", this);
6514 7164
6515 /** @domName Document.title */ 7165 /** @domName Document.title */
7166 /// @docsEditable
6516 void set $dom_title(String value) { 7167 void set $dom_title(String value) {
6517 JS("void", "#.title = #", this, value); 7168 JS("void", "#.title = #", this, value);
6518 } 7169 }
6519 7170
6520 /** @domName Document.webkitFullscreenElement */ 7171 /** @domName Document.webkitFullscreenElement */
7172 /// @docsEditable
6521 Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenE lement", this); 7173 Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenE lement", this);
6522 7174
6523 /** @domName Document.webkitFullscreenEnabled */ 7175 /** @domName Document.webkitFullscreenEnabled */
7176 /// @docsEditable
6524 bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled ", this); 7177 bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled ", this);
6525 7178
6526 /** @domName Document.webkitHidden */ 7179 /** @domName Document.webkitHidden */
7180 /// @docsEditable
6527 bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this); 7181 bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this);
6528 7182
6529 /** @domName Document.webkitIsFullScreen */ 7183 /** @domName Document.webkitIsFullScreen */
7184 /// @docsEditable
6530 bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this); 7185 bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this);
6531 7186
6532 /** @domName Document.webkitPointerLockElement */ 7187 /** @domName Document.webkitPointerLockElement */
7188 /// @docsEditable
6533 Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLoc kElement", this); 7189 Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLoc kElement", this);
6534 7190
6535 /** @domName Document.webkitVisibilityState */ 7191 /** @domName Document.webkitVisibilityState */
7192 /// @docsEditable
6536 String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState ", this); 7193 String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState ", this);
6537 7194
6538 /** @domName Document.caretRangeFromPoint */ 7195 /** @domName Document.caretRangeFromPoint */
7196 /// @docsEditable
6539 Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint"; 7197 Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint";
6540 7198
6541 /** @domName Document.createCDATASection */ 7199 /** @domName Document.createCDATASection */
7200 /// @docsEditable
6542 CDATASection createCDATASection(String data) native; 7201 CDATASection createCDATASection(String data) native;
6543 7202
6544 /** @domName Document.createDocumentFragment */ 7203 /** @domName Document.createDocumentFragment */
7204 /// @docsEditable
6545 DocumentFragment createDocumentFragment() native; 7205 DocumentFragment createDocumentFragment() native;
6546 7206
6547 /** @domName Document.createElement */ 7207 /** @domName Document.createElement */
7208 /// @docsEditable
6548 Element $dom_createElement(String tagName) native "createElement"; 7209 Element $dom_createElement(String tagName) native "createElement";
6549 7210
6550 /** @domName Document.createElementNS */ 7211 /** @domName Document.createElementNS */
7212 /// @docsEditable
6551 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native "createElementNS"; 7213 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native "createElementNS";
6552 7214
6553 /** @domName Document.createEvent */ 7215 /** @domName Document.createEvent */
7216 /// @docsEditable
6554 Event $dom_createEvent(String eventType) native "createEvent"; 7217 Event $dom_createEvent(String eventType) native "createEvent";
6555 7218
6556 /** @domName Document.createRange */ 7219 /** @domName Document.createRange */
7220 /// @docsEditable
6557 Range createRange() native; 7221 Range createRange() native;
6558 7222
6559 /** @domName Document.createTextNode */ 7223 /** @domName Document.createTextNode */
7224 /// @docsEditable
6560 Text $dom_createTextNode(String data) native "createTextNode"; 7225 Text $dom_createTextNode(String data) native "createTextNode";
6561 7226
6562 /** @domName Document.createTouch */ 7227 /** @domName Document.createTouch */
7228 /// @docsEditable
6563 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY , num webkitRotationAngle, num webkitForce) { 7229 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY , num webkitRotationAngle, num webkitForce) {
6564 var target_1 = _convertDartToNative_EventTarget(target); 7230 var target_1 = _convertDartToNative_EventTarget(target);
6565 return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, s creenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); 7231 return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, s creenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);
6566 } 7232 }
6567 Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, scr eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n ative "createTouch"; 7233 Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, scr eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n ative "createTouch";
6568 7234
6569 /** @domName Document.createTouchList */ 7235 /** @domName Document.createTouchList */
7236 /// @docsEditable
6570 TouchList $dom_createTouchList() native "createTouchList"; 7237 TouchList $dom_createTouchList() native "createTouchList";
6571 7238
6572 /** @domName Document.elementFromPoint */ 7239 /** @domName Document.elementFromPoint */
7240 /// @docsEditable
6573 Element $dom_elementFromPoint(int x, int y) native "elementFromPoint"; 7241 Element $dom_elementFromPoint(int x, int y) native "elementFromPoint";
6574 7242
6575 /** @domName Document.execCommand */ 7243 /** @domName Document.execCommand */
7244 /// @docsEditable
6576 bool execCommand(String command, bool userInterface, String value) native; 7245 bool execCommand(String command, bool userInterface, String value) native;
6577 7246
6578 /** @domName Document.getCSSCanvasContext */ 7247 /** @domName Document.getCSSCanvasContext */
7248 /// @docsEditable
6579 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native; 7249 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native;
6580 7250
6581 /** @domName Document.getElementById */ 7251 /** @domName Document.getElementById */
7252 /// @docsEditable
6582 Element $dom_getElementById(String elementId) native "getElementById"; 7253 Element $dom_getElementById(String elementId) native "getElementById";
6583 7254
6584 /** @domName Document.getElementsByClassName */ 7255 /** @domName Document.getElementsByClassName */
7256 /// @docsEditable
6585 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl assName"; 7257 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl assName";
6586 7258
6587 /** @domName Document.getElementsByName */ 7259 /** @domName Document.getElementsByName */
7260 /// @docsEditable
6588 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam e"; 7261 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam e";
6589 7262
6590 /** @domName Document.getElementsByTagName */ 7263 /** @domName Document.getElementsByTagName */
7264 /// @docsEditable
6591 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN ame"; 7265 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN ame";
6592 7266
6593 /** @domName Document.queryCommandEnabled */ 7267 /** @domName Document.queryCommandEnabled */
7268 /// @docsEditable
6594 bool queryCommandEnabled(String command) native; 7269 bool queryCommandEnabled(String command) native;
6595 7270
6596 /** @domName Document.queryCommandIndeterm */ 7271 /** @domName Document.queryCommandIndeterm */
7272 /// @docsEditable
6597 bool queryCommandIndeterm(String command) native; 7273 bool queryCommandIndeterm(String command) native;
6598 7274
6599 /** @domName Document.queryCommandState */ 7275 /** @domName Document.queryCommandState */
7276 /// @docsEditable
6600 bool queryCommandState(String command) native; 7277 bool queryCommandState(String command) native;
6601 7278
6602 /** @domName Document.queryCommandSupported */ 7279 /** @domName Document.queryCommandSupported */
7280 /// @docsEditable
6603 bool queryCommandSupported(String command) native; 7281 bool queryCommandSupported(String command) native;
6604 7282
6605 /** @domName Document.queryCommandValue */ 7283 /** @domName Document.queryCommandValue */
7284 /// @docsEditable
6606 String queryCommandValue(String command) native; 7285 String queryCommandValue(String command) native;
6607 7286
6608 /** @domName Document.querySelector */ 7287 /** @domName Document.querySelector */
7288 /// @docsEditable
6609 Element $dom_querySelector(String selectors) native "querySelector"; 7289 Element $dom_querySelector(String selectors) native "querySelector";
6610 7290
6611 /** @domName Document.querySelectorAll */ 7291 /** @domName Document.querySelectorAll */
7292 /// @docsEditable
6612 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 7293 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
6613 7294
6614 /** @domName Document.webkitCancelFullScreen */ 7295 /** @domName Document.webkitCancelFullScreen */
7296 /// @docsEditable
6615 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen"; 7297 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen";
6616 7298
6617 /** @domName Document.webkitExitFullscreen */ 7299 /** @domName Document.webkitExitFullscreen */
7300 /// @docsEditable
6618 void $dom_webkitExitFullscreen() native "webkitExitFullscreen"; 7301 void $dom_webkitExitFullscreen() native "webkitExitFullscreen";
6619 7302
6620 /** @domName Document.webkitExitPointerLock */ 7303 /** @domName Document.webkitExitPointerLock */
7304 /// @docsEditable
6621 void $dom_webkitExitPointerLock() native "webkitExitPointerLock"; 7305 void $dom_webkitExitPointerLock() native "webkitExitPointerLock";
6622 7306
6623 // TODO(jacobr): implement all Element methods not on Document. 7307 // TODO(jacobr): implement all Element methods not on Document.
6624 7308
6625 Element query(String selectors) { 7309 Element query(String selectors) {
6626 // It is fine for our RegExp to detect element id query selectors to have 7310 // It is fine for our RegExp to detect element id query selectors to have
6627 // false negatives but not false positives. 7311 // false negatives but not false positives.
6628 if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) { 7312 if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) {
6629 return $dom_getElementById(selectors.substring(1)); 7313 return $dom_getElementById(selectors.substring(1));
6630 } 7314 }
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
7005 7689
7006 void set webkitRegionOverflow(String value) { 7690 void set webkitRegionOverflow(String value) {
7007 throw new UnsupportedError( 7691 throw new UnsupportedError(
7008 "WebKit region overflow can't be set for document fragments."); 7692 "WebKit region overflow can't be set for document fragments.");
7009 } 7693 }
7010 7694
7011 7695
7012 /** 7696 /**
7013 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 7697 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
7014 */ 7698 */
7699 /// @docsEditable
7015 ElementEvents get on => 7700 ElementEvents get on =>
7016 new ElementEvents(this); 7701 new ElementEvents(this);
7017 7702
7018 /** @domName DocumentFragment.querySelector */ 7703 /** @domName DocumentFragment.querySelector */
7704 /// @docsEditable
7019 Element $dom_querySelector(String selectors) native "querySelector"; 7705 Element $dom_querySelector(String selectors) native "querySelector";
7020 7706
7021 /** @domName DocumentFragment.querySelectorAll */ 7707 /** @domName DocumentFragment.querySelectorAll */
7708 /// @docsEditable
7022 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 7709 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
7023 7710
7024 } 7711 }
7025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7026 // for details. All rights reserved. Use of this source code is governed by a 7713 // for details. All rights reserved. Use of this source code is governed by a
7027 // BSD-style license that can be found in the LICENSE file. 7714 // BSD-style license that can be found in the LICENSE file.
7028 7715
7029 7716
7030 /// @domName DocumentType 7717 /// @domName DocumentType
7718 /// @docsEditable
7031 class DocumentType extends Node native "*DocumentType" { 7719 class DocumentType extends Node native "*DocumentType" {
7032 7720
7033 /** @domName DocumentType.entities */ 7721 /** @domName DocumentType.entities */
7722 /// @docsEditable
7034 final NamedNodeMap entities; 7723 final NamedNodeMap entities;
7035 7724
7036 /** @domName DocumentType.internalSubset */ 7725 /** @domName DocumentType.internalSubset */
7726 /// @docsEditable
7037 final String internalSubset; 7727 final String internalSubset;
7038 7728
7039 /** @domName DocumentType.name */ 7729 /** @domName DocumentType.name */
7730 /// @docsEditable
7040 final String name; 7731 final String name;
7041 7732
7042 /** @domName DocumentType.notations */ 7733 /** @domName DocumentType.notations */
7734 /// @docsEditable
7043 final NamedNodeMap notations; 7735 final NamedNodeMap notations;
7044 7736
7045 /** @domName DocumentType.publicId */ 7737 /** @domName DocumentType.publicId */
7738 /// @docsEditable
7046 final String publicId; 7739 final String publicId;
7047 7740
7048 /** @domName DocumentType.systemId */ 7741 /** @domName DocumentType.systemId */
7742 /// @docsEditable
7049 final String systemId; 7743 final String systemId;
7050 7744
7051 /** @domName DocumentType.remove */ 7745 /** @domName DocumentType.remove */
7746 /// @docsEditable
7052 void remove() native; 7747 void remove() native;
7053 } 7748 }
7054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7055 // for details. All rights reserved. Use of this source code is governed by a 7750 // for details. All rights reserved. Use of this source code is governed by a
7056 // BSD-style license that can be found in the LICENSE file. 7751 // BSD-style license that can be found in the LICENSE file.
7057 7752
7058 7753
7059 /// @domName DynamicsCompressorNode 7754 /// @domName DynamicsCompressorNode
7755 /// @docsEditable
7060 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" { 7756 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
7061 7757
7062 /** @domName DynamicsCompressorNode.attack */ 7758 /** @domName DynamicsCompressorNode.attack */
7759 /// @docsEditable
7063 final AudioParam attack; 7760 final AudioParam attack;
7064 7761
7065 /** @domName DynamicsCompressorNode.knee */ 7762 /** @domName DynamicsCompressorNode.knee */
7763 /// @docsEditable
7066 final AudioParam knee; 7764 final AudioParam knee;
7067 7765
7068 /** @domName DynamicsCompressorNode.ratio */ 7766 /** @domName DynamicsCompressorNode.ratio */
7767 /// @docsEditable
7069 final AudioParam ratio; 7768 final AudioParam ratio;
7070 7769
7071 /** @domName DynamicsCompressorNode.reduction */ 7770 /** @domName DynamicsCompressorNode.reduction */
7771 /// @docsEditable
7072 final AudioParam reduction; 7772 final AudioParam reduction;
7073 7773
7074 /** @domName DynamicsCompressorNode.release */ 7774 /** @domName DynamicsCompressorNode.release */
7775 /// @docsEditable
7075 final AudioParam release; 7776 final AudioParam release;
7076 7777
7077 /** @domName DynamicsCompressorNode.threshold */ 7778 /** @domName DynamicsCompressorNode.threshold */
7779 /// @docsEditable
7078 final AudioParam threshold; 7780 final AudioParam threshold;
7079 } 7781 }
7080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7782 // 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 7783 // 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. 7784 // BSD-style license that can be found in the LICENSE file.
7083 7785
7084 7786
7085 /// @domName EXTTextureFilterAnisotropic 7787 /// @domName EXTTextureFilterAnisotropic
7788 /// @docsEditable
7086 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { 7789 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" {
7087 7790
7088 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 7791 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
7089 7792
7090 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 7793 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
7091 } 7794 }
7092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7093 // for details. All rights reserved. Use of this source code is governed by a 7796 // for details. All rights reserved. Use of this source code is governed by a
7094 // BSD-style license that can be found in the LICENSE file. 7797 // BSD-style license that can be found in the LICENSE file.
7095 7798
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
7754 break; 8457 break;
7755 default: 8458 default:
7756 throw new ArgumentError("Invalid position ${where}"); 8459 throw new ArgumentError("Invalid position ${where}");
7757 } 8460 }
7758 } 8461 }
7759 8462
7760 8463
7761 /** 8464 /**
7762 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 8465 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
7763 */ 8466 */
8467 /// @docsEditable
7764 ElementEvents get on => 8468 ElementEvents get on =>
7765 new ElementEvents(this); 8469 new ElementEvents(this);
7766 8470
7767 /** @domName HTMLElement.children */ 8471 /** @domName HTMLElement.children */
8472 /// @docsEditable
7768 HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this); 8473 HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this);
7769 8474
7770 /** @domName HTMLElement.contentEditable */ 8475 /** @domName HTMLElement.contentEditable */
8476 /// @docsEditable
7771 String contentEditable; 8477 String contentEditable;
7772 8478
7773 /** @domName HTMLElement.dir */ 8479 /** @domName HTMLElement.dir */
8480 /// @docsEditable
7774 String dir; 8481 String dir;
7775 8482
7776 /** @domName HTMLElement.draggable */ 8483 /** @domName HTMLElement.draggable */
8484 /// @docsEditable
7777 bool draggable; 8485 bool draggable;
7778 8486
7779 /** @domName HTMLElement.hidden */ 8487 /** @domName HTMLElement.hidden */
8488 /// @docsEditable
7780 bool hidden; 8489 bool hidden;
7781 8490
7782 /** @domName HTMLElement.id */ 8491 /** @domName HTMLElement.id */
8492 /// @docsEditable
7783 String id; 8493 String id;
7784 8494
7785 /** @domName HTMLElement.innerHTML */ 8495 /** @domName HTMLElement.innerHTML */
8496 /// @docsEditable
7786 String innerHTML; 8497 String innerHTML;
7787 8498
7788 /** @domName HTMLElement.isContentEditable */ 8499 /** @domName HTMLElement.isContentEditable */
8500 /// @docsEditable
7789 final bool isContentEditable; 8501 final bool isContentEditable;
7790 8502
7791 /** @domName HTMLElement.lang */ 8503 /** @domName HTMLElement.lang */
8504 /// @docsEditable
7792 String lang; 8505 String lang;
7793 8506
7794 /** @domName HTMLElement.outerHTML */ 8507 /** @domName HTMLElement.outerHTML */
8508 /// @docsEditable
7795 final String outerHTML; 8509 final String outerHTML;
7796 8510
7797 /** @domName HTMLElement.spellcheck */ 8511 /** @domName HTMLElement.spellcheck */
8512 /// @docsEditable
7798 bool spellcheck; 8513 bool spellcheck;
7799 8514
7800 /** @domName HTMLElement.tabIndex */ 8515 /** @domName HTMLElement.tabIndex */
8516 /// @docsEditable
7801 int tabIndex; 8517 int tabIndex;
7802 8518
7803 /** @domName HTMLElement.title */ 8519 /** @domName HTMLElement.title */
8520 /// @docsEditable
7804 String title; 8521 String title;
7805 8522
7806 /** @domName HTMLElement.translate */ 8523 /** @domName HTMLElement.translate */
8524 /// @docsEditable
7807 bool translate; 8525 bool translate;
7808 8526
7809 /** @domName HTMLElement.webkitdropzone */ 8527 /** @domName HTMLElement.webkitdropzone */
8528 /// @docsEditable
7810 String webkitdropzone; 8529 String webkitdropzone;
7811 8530
7812 /** @domName HTMLElement.click */ 8531 /** @domName HTMLElement.click */
8532 /// @docsEditable
7813 void click() native; 8533 void click() native;
7814 8534
7815 static const int ALLOW_KEYBOARD_INPUT = 1; 8535 static const int ALLOW_KEYBOARD_INPUT = 1;
7816 8536
7817 /** @domName Element.childElementCount */ 8537 /** @domName Element.childElementCount */
8538 /// @docsEditable
7818 int get $dom_childElementCount => JS("int", "#.childElementCount", this); 8539 int get $dom_childElementCount => JS("int", "#.childElementCount", this);
7819 8540
7820 /** @domName Element.className */ 8541 /** @domName Element.className */
8542 /// @docsEditable
7821 String get $dom_className => JS("String", "#.className", this); 8543 String get $dom_className => JS("String", "#.className", this);
7822 8544
7823 /** @domName Element.className */ 8545 /** @domName Element.className */
8546 /// @docsEditable
7824 void set $dom_className(String value) { 8547 void set $dom_className(String value) {
7825 JS("void", "#.className = #", this, value); 8548 JS("void", "#.className = #", this, value);
7826 } 8549 }
7827 8550
7828 /** @domName Element.clientHeight */ 8551 /** @domName Element.clientHeight */
8552 /// @docsEditable
7829 final int clientHeight; 8553 final int clientHeight;
7830 8554
7831 /** @domName Element.clientLeft */ 8555 /** @domName Element.clientLeft */
8556 /// @docsEditable
7832 final int clientLeft; 8557 final int clientLeft;
7833 8558
7834 /** @domName Element.clientTop */ 8559 /** @domName Element.clientTop */
8560 /// @docsEditable
7835 final int clientTop; 8561 final int clientTop;
7836 8562
7837 /** @domName Element.clientWidth */ 8563 /** @domName Element.clientWidth */
8564 /// @docsEditable
7838 final int clientWidth; 8565 final int clientWidth;
7839 8566
7840 /** @domName Element.dataset */ 8567 /** @domName Element.dataset */
8568 /// @docsEditable
7841 final Map<String, String> dataset; 8569 final Map<String, String> dataset;
7842 8570
7843 /** @domName Element.firstElementChild */ 8571 /** @domName Element.firstElementChild */
8572 /// @docsEditable
7844 Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", thi s); 8573 Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", thi s);
7845 8574
7846 /** @domName Element.lastElementChild */ 8575 /** @domName Element.lastElementChild */
8576 /// @docsEditable
7847 Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this) ; 8577 Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this) ;
7848 8578
7849 /** @domName Element.nextElementSibling */ 8579 /** @domName Element.nextElementSibling */
8580 /// @docsEditable
7850 final Element nextElementSibling; 8581 final Element nextElementSibling;
7851 8582
7852 /** @domName Element.offsetHeight */ 8583 /** @domName Element.offsetHeight */
8584 /// @docsEditable
7853 final int offsetHeight; 8585 final int offsetHeight;
7854 8586
7855 /** @domName Element.offsetLeft */ 8587 /** @domName Element.offsetLeft */
8588 /// @docsEditable
7856 final int offsetLeft; 8589 final int offsetLeft;
7857 8590
7858 /** @domName Element.offsetParent */ 8591 /** @domName Element.offsetParent */
8592 /// @docsEditable
7859 final Element offsetParent; 8593 final Element offsetParent;
7860 8594
7861 /** @domName Element.offsetTop */ 8595 /** @domName Element.offsetTop */
8596 /// @docsEditable
7862 final int offsetTop; 8597 final int offsetTop;
7863 8598
7864 /** @domName Element.offsetWidth */ 8599 /** @domName Element.offsetWidth */
8600 /// @docsEditable
7865 final int offsetWidth; 8601 final int offsetWidth;
7866 8602
7867 /** @domName Element.previousElementSibling */ 8603 /** @domName Element.previousElementSibling */
8604 /// @docsEditable
7868 final Element previousElementSibling; 8605 final Element previousElementSibling;
7869 8606
7870 /** @domName Element.scrollHeight */ 8607 /** @domName Element.scrollHeight */
8608 /// @docsEditable
7871 final int scrollHeight; 8609 final int scrollHeight;
7872 8610
7873 /** @domName Element.scrollLeft */ 8611 /** @domName Element.scrollLeft */
8612 /// @docsEditable
7874 int scrollLeft; 8613 int scrollLeft;
7875 8614
7876 /** @domName Element.scrollTop */ 8615 /** @domName Element.scrollTop */
8616 /// @docsEditable
7877 int scrollTop; 8617 int scrollTop;
7878 8618
7879 /** @domName Element.scrollWidth */ 8619 /** @domName Element.scrollWidth */
8620 /// @docsEditable
7880 final int scrollWidth; 8621 final int scrollWidth;
7881 8622
7882 /** @domName Element.style */ 8623 /** @domName Element.style */
8624 /// @docsEditable
7883 final CSSStyleDeclaration style; 8625 final CSSStyleDeclaration style;
7884 8626
7885 /** @domName Element.tagName */ 8627 /** @domName Element.tagName */
8628 /// @docsEditable
7886 final String tagName; 8629 final String tagName;
7887 8630
7888 /** @domName Element.blur */ 8631 /** @domName Element.blur */
8632 /// @docsEditable
7889 void blur() native; 8633 void blur() native;
7890 8634
7891 /** @domName Element.focus */ 8635 /** @domName Element.focus */
8636 /// @docsEditable
7892 void focus() native; 8637 void focus() native;
7893 8638
7894 /** @domName Element.getAttribute */ 8639 /** @domName Element.getAttribute */
8640 /// @docsEditable
7895 String $dom_getAttribute(String name) native "getAttribute"; 8641 String $dom_getAttribute(String name) native "getAttribute";
7896 8642
7897 /** @domName Element.getBoundingClientRect */ 8643 /** @domName Element.getBoundingClientRect */
8644 /// @docsEditable
7898 ClientRect getBoundingClientRect() native; 8645 ClientRect getBoundingClientRect() native;
7899 8646
7900 /** @domName Element.getClientRects */ 8647 /** @domName Element.getClientRects */
8648 /// @docsEditable
7901 List<ClientRect> getClientRects() native; 8649 List<ClientRect> getClientRects() native;
7902 8650
7903 /** @domName Element.getElementsByClassName */ 8651 /** @domName Element.getElementsByClassName */
8652 /// @docsEditable
7904 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass Name"; 8653 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass Name";
7905 8654
7906 /** @domName Element.getElementsByTagName */ 8655 /** @domName Element.getElementsByTagName */
8656 /// @docsEditable
7907 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName "; 8657 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName ";
7908 8658
7909 /** @domName Element.hasAttribute */ 8659 /** @domName Element.hasAttribute */
8660 /// @docsEditable
7910 bool $dom_hasAttribute(String name) native "hasAttribute"; 8661 bool $dom_hasAttribute(String name) native "hasAttribute";
7911 8662
7912 /** @domName Element.querySelector */ 8663 /** @domName Element.querySelector */
8664 /// @docsEditable
7913 Element $dom_querySelector(String selectors) native "querySelector"; 8665 Element $dom_querySelector(String selectors) native "querySelector";
7914 8666
7915 /** @domName Element.querySelectorAll */ 8667 /** @domName Element.querySelectorAll */
8668 /// @docsEditable
7916 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 8669 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
7917 8670
7918 /** @domName Element.removeAttribute */ 8671 /** @domName Element.removeAttribute */
8672 /// @docsEditable
7919 void $dom_removeAttribute(String name) native "removeAttribute"; 8673 void $dom_removeAttribute(String name) native "removeAttribute";
7920 8674
7921 /** @domName Element.scrollByLines */ 8675 /** @domName Element.scrollByLines */
8676 /// @docsEditable
7922 void scrollByLines(int lines) native; 8677 void scrollByLines(int lines) native;
7923 8678
7924 /** @domName Element.scrollByPages */ 8679 /** @domName Element.scrollByPages */
8680 /// @docsEditable
7925 void scrollByPages(int pages) native; 8681 void scrollByPages(int pages) native;
7926 8682
7927 /** @domName Element.scrollIntoViewIfNeeded */ 8683 /** @domName Element.scrollIntoViewIfNeeded */
8684 /// @docsEditable
7928 void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded"; 8685 void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded";
7929 8686
7930 /** @domName Element.setAttribute */ 8687 /** @domName Element.setAttribute */
8688 /// @docsEditable
7931 void $dom_setAttribute(String name, String value) native "setAttribute"; 8689 void $dom_setAttribute(String name, String value) native "setAttribute";
7932 8690
7933 /** @domName Element.webkitMatchesSelector */ 8691 /** @domName Element.webkitMatchesSelector */
8692 /// @docsEditable
7934 bool matchesSelector(String selectors) native "webkitMatchesSelector"; 8693 bool matchesSelector(String selectors) native "webkitMatchesSelector";
7935 8694
7936 /** @domName Element.webkitRequestFullScreen */ 8695 /** @domName Element.webkitRequestFullScreen */
8696 /// @docsEditable
7937 void webkitRequestFullScreen(int flags) native; 8697 void webkitRequestFullScreen(int flags) native;
7938 8698
7939 /** @domName Element.webkitRequestFullscreen */ 8699 /** @domName Element.webkitRequestFullscreen */
8700 /// @docsEditable
7940 void webkitRequestFullscreen() native; 8701 void webkitRequestFullscreen() native;
7941 8702
7942 /** @domName Element.webkitRequestPointerLock */ 8703 /** @domName Element.webkitRequestPointerLock */
8704 /// @docsEditable
7943 void webkitRequestPointerLock() native; 8705 void webkitRequestPointerLock() native;
7944 8706
7945 } 8707 }
7946 8708
7947 // Temporary dispatch hook to support WebComponents. 8709 // Temporary dispatch hook to support WebComponents.
7948 Function dynamicUnknownElementDispatcher; 8710 Function dynamicUnknownElementDispatcher;
7949 8711
7950 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); 8712 final _START_TAG_REGEXP = new RegExp('<(\\w+)');
7951 class _ElementFactoryProvider { 8713 class _ElementFactoryProvider {
7952 static final _CUSTOM_PARENT_TAG_MAP = const { 8714 static final _CUSTOM_PARENT_TAG_MAP = const {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
8122 } 8884 }
8123 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8124 // for details. All rights reserved. Use of this source code is governed by a 8886 // for details. All rights reserved. Use of this source code is governed by a
8125 // BSD-style license that can be found in the LICENSE file. 8887 // BSD-style license that can be found in the LICENSE file.
8126 8888
8127 8889
8128 /// @domName ElementTimeControl 8890 /// @domName ElementTimeControl
8129 abstract class ElementTimeControl { 8891 abstract class ElementTimeControl {
8130 8892
8131 /** @domName ElementTimeControl.beginElement */ 8893 /** @domName ElementTimeControl.beginElement */
8894 /// @docsEditable
8132 void beginElement(); 8895 void beginElement();
8133 8896
8134 /** @domName ElementTimeControl.beginElementAt */ 8897 /** @domName ElementTimeControl.beginElementAt */
8898 /// @docsEditable
8135 void beginElementAt(num offset); 8899 void beginElementAt(num offset);
8136 8900
8137 /** @domName ElementTimeControl.endElement */ 8901 /** @domName ElementTimeControl.endElement */
8902 /// @docsEditable
8138 void endElement(); 8903 void endElement();
8139 8904
8140 /** @domName ElementTimeControl.endElementAt */ 8905 /** @domName ElementTimeControl.endElementAt */
8906 /// @docsEditable
8141 void endElementAt(num offset); 8907 void endElementAt(num offset);
8142 } 8908 }
8143 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8144 // for details. All rights reserved. Use of this source code is governed by a 8910 // for details. All rights reserved. Use of this source code is governed by a
8145 // BSD-style license that can be found in the LICENSE file. 8911 // BSD-style license that can be found in the LICENSE file.
8146 8912
8147 8913
8148 /// @domName ElementTraversal 8914 /// @domName ElementTraversal
8149 abstract class ElementTraversal { 8915 abstract class ElementTraversal {
8150 8916
8151 int childElementCount; 8917 int childElementCount;
8152 8918
8153 Element firstElementChild; 8919 Element firstElementChild;
8154 8920
8155 Element lastElementChild; 8921 Element lastElementChild;
8156 8922
8157 Element nextElementSibling; 8923 Element nextElementSibling;
8158 8924
8159 Element previousElementSibling; 8925 Element previousElementSibling;
8160 } 8926 }
8161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8927 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8162 // for details. All rights reserved. Use of this source code is governed by a 8928 // for details. All rights reserved. Use of this source code is governed by a
8163 // BSD-style license that can be found in the LICENSE file. 8929 // BSD-style license that can be found in the LICENSE file.
8164 8930
8165 8931
8166 /// @domName HTMLEmbedElement 8932 /// @domName HTMLEmbedElement
8933 /// @docsEditable
8167 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" { 8934 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" {
8168 8935
8169 factory EmbedElement() => document.$dom_createElement("embed"); 8936 factory EmbedElement() => document.$dom_createElement("embed");
8170 8937
8171 /** @domName HTMLEmbedElement.align */ 8938 /** @domName HTMLEmbedElement.align */
8939 /// @docsEditable
8172 String align; 8940 String align;
8173 8941
8174 /** @domName HTMLEmbedElement.height */ 8942 /** @domName HTMLEmbedElement.height */
8943 /// @docsEditable
8175 String height; 8944 String height;
8176 8945
8177 /** @domName HTMLEmbedElement.name */ 8946 /** @domName HTMLEmbedElement.name */
8947 /// @docsEditable
8178 String name; 8948 String name;
8179 8949
8180 /** @domName HTMLEmbedElement.src */ 8950 /** @domName HTMLEmbedElement.src */
8951 /// @docsEditable
8181 String src; 8952 String src;
8182 8953
8183 /** @domName HTMLEmbedElement.type */ 8954 /** @domName HTMLEmbedElement.type */
8955 /// @docsEditable
8184 String type; 8956 String type;
8185 8957
8186 /** @domName HTMLEmbedElement.width */ 8958 /** @domName HTMLEmbedElement.width */
8959 /// @docsEditable
8187 String width; 8960 String width;
8188 } 8961 }
8189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8190 // for details. All rights reserved. Use of this source code is governed by a 8963 // for details. All rights reserved. Use of this source code is governed by a
8191 // BSD-style license that can be found in the LICENSE file. 8964 // BSD-style license that can be found in the LICENSE file.
8192 8965
8193 8966
8194 /// @domName EntityReference 8967 /// @domName EntityReference
8968 /// @docsEditable
8195 class EntityReference extends Node native "*EntityReference" { 8969 class EntityReference extends Node native "*EntityReference" {
8196 } 8970 }
8197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8198 // for details. All rights reserved. Use of this source code is governed by a 8972 // for details. All rights reserved. Use of this source code is governed by a
8199 // BSD-style license that can be found in the LICENSE file. 8973 // BSD-style license that can be found in the LICENSE file.
8200 8974
8201 // WARNING: Do not edit - generated code. 8975 // WARNING: Do not edit - generated code.
8202 8976
8203 8977
8204 typedef void EntriesCallback(List<Entry> entries); 8978 typedef void EntriesCallback(List<Entry> entries);
8205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8979 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8206 // for details. All rights reserved. Use of this source code is governed by a 8980 // for details. All rights reserved. Use of this source code is governed by a
8207 // BSD-style license that can be found in the LICENSE file. 8981 // BSD-style license that can be found in the LICENSE file.
8208 8982
8209 8983
8210 /// @domName Entry 8984 /// @domName Entry
8985 /// @docsEditable
8211 class Entry native "*Entry" { 8986 class Entry native "*Entry" {
8212 8987
8213 /** @domName Entry.filesystem */ 8988 /** @domName Entry.filesystem */
8989 /// @docsEditable
8214 final DOMFileSystem filesystem; 8990 final DOMFileSystem filesystem;
8215 8991
8216 /** @domName Entry.fullPath */ 8992 /** @domName Entry.fullPath */
8993 /// @docsEditable
8217 final String fullPath; 8994 final String fullPath;
8218 8995
8219 /** @domName Entry.isDirectory */ 8996 /** @domName Entry.isDirectory */
8997 /// @docsEditable
8220 final bool isDirectory; 8998 final bool isDirectory;
8221 8999
8222 /** @domName Entry.isFile */ 9000 /** @domName Entry.isFile */
9001 /// @docsEditable
8223 final bool isFile; 9002 final bool isFile;
8224 9003
8225 /** @domName Entry.name */ 9004 /** @domName Entry.name */
9005 /// @docsEditable
8226 final String name; 9006 final String name;
8227 9007
8228 /** @domName Entry.copyTo */ 9008 /** @domName Entry.copyTo */
9009 /// @docsEditable
8229 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native; 9010 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native;
8230 9011
8231 /** @domName Entry.getMetadata */ 9012 /** @domName Entry.getMetadata */
9013 /// @docsEditable
8232 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]) native; 9014 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]) native;
8233 9015
8234 /** @domName Entry.getParent */ 9016 /** @domName Entry.getParent */
9017 /// @docsEditable
8235 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n ative; 9018 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n ative;
8236 9019
8237 /** @domName Entry.moveTo */ 9020 /** @domName Entry.moveTo */
9021 /// @docsEditable
8238 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native; 9022 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native;
8239 9023
8240 /** @domName Entry.remove */ 9024 /** @domName Entry.remove */
9025 /// @docsEditable
8241 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ e; 9026 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ e;
8242 9027
8243 /** @domName Entry.toURL */ 9028 /** @domName Entry.toURL */
9029 /// @docsEditable
8244 String toURL() native; 9030 String toURL() native;
8245 } 9031 }
8246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8247 // for details. All rights reserved. Use of this source code is governed by a 9033 // for details. All rights reserved. Use of this source code is governed by a
8248 // BSD-style license that can be found in the LICENSE file. 9034 // BSD-style license that can be found in the LICENSE file.
8249 9035
8250 // WARNING: Do not edit - generated code. 9036 // WARNING: Do not edit - generated code.
8251 9037
8252 9038
8253 typedef void EntryCallback(Entry entry); 9039 typedef void EntryCallback(Entry entry);
8254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8255 // for details. All rights reserved. Use of this source code is governed by a 9041 // for details. All rights reserved. Use of this source code is governed by a
8256 // BSD-style license that can be found in the LICENSE file. 9042 // BSD-style license that can be found in the LICENSE file.
8257 9043
8258 9044
8259 /// @domName EntrySync 9045 /// @domName EntrySync
9046 /// @docsEditable
8260 class EntrySync native "*EntrySync" { 9047 class EntrySync native "*EntrySync" {
8261 9048
8262 /** @domName EntrySync.filesystem */ 9049 /** @domName EntrySync.filesystem */
9050 /// @docsEditable
8263 final DOMFileSystemSync filesystem; 9051 final DOMFileSystemSync filesystem;
8264 9052
8265 /** @domName EntrySync.fullPath */ 9053 /** @domName EntrySync.fullPath */
9054 /// @docsEditable
8266 final String fullPath; 9055 final String fullPath;
8267 9056
8268 /** @domName EntrySync.isDirectory */ 9057 /** @domName EntrySync.isDirectory */
9058 /// @docsEditable
8269 final bool isDirectory; 9059 final bool isDirectory;
8270 9060
8271 /** @domName EntrySync.isFile */ 9061 /** @domName EntrySync.isFile */
9062 /// @docsEditable
8272 final bool isFile; 9063 final bool isFile;
8273 9064
8274 /** @domName EntrySync.name */ 9065 /** @domName EntrySync.name */
9066 /// @docsEditable
8275 final String name; 9067 final String name;
8276 9068
8277 /** @domName EntrySync.copyTo */ 9069 /** @domName EntrySync.copyTo */
9070 /// @docsEditable
8278 EntrySync copyTo(DirectoryEntrySync parent, String name) native; 9071 EntrySync copyTo(DirectoryEntrySync parent, String name) native;
8279 9072
8280 /** @domName EntrySync.getMetadata */ 9073 /** @domName EntrySync.getMetadata */
9074 /// @docsEditable
8281 Metadata getMetadata() native; 9075 Metadata getMetadata() native;
8282 9076
8283 /** @domName EntrySync.getParent */ 9077 /** @domName EntrySync.getParent */
9078 /// @docsEditable
8284 EntrySync getParent() native; 9079 EntrySync getParent() native;
8285 9080
8286 /** @domName EntrySync.moveTo */ 9081 /** @domName EntrySync.moveTo */
9082 /// @docsEditable
8287 EntrySync moveTo(DirectoryEntrySync parent, String name) native; 9083 EntrySync moveTo(DirectoryEntrySync parent, String name) native;
8288 9084
8289 /** @domName EntrySync.remove */ 9085 /** @domName EntrySync.remove */
9086 /// @docsEditable
8290 void remove() native; 9087 void remove() native;
8291 9088
8292 /** @domName EntrySync.toURL */ 9089 /** @domName EntrySync.toURL */
9090 /// @docsEditable
8293 String toURL() native; 9091 String toURL() native;
8294 } 9092 }
8295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8296 // for details. All rights reserved. Use of this source code is governed by a 9094 // for details. All rights reserved. Use of this source code is governed by a
8297 // BSD-style license that can be found in the LICENSE file. 9095 // BSD-style license that can be found in the LICENSE file.
8298 9096
8299 // WARNING: Do not edit - generated code. 9097 // WARNING: Do not edit - generated code.
8300 9098
8301 9099
8302 typedef void ErrorCallback(FileError error); 9100 typedef void ErrorCallback(FileError error);
8303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8304 // for details. All rights reserved. Use of this source code is governed by a 9102 // for details. All rights reserved. Use of this source code is governed by a
8305 // BSD-style license that can be found in the LICENSE file. 9103 // BSD-style license that can be found in the LICENSE file.
8306 9104
8307 9105
8308 /// @domName ErrorEvent 9106 /// @domName ErrorEvent
9107 /// @docsEditable
8309 class ErrorEvent extends Event native "*ErrorEvent" { 9108 class ErrorEvent extends Event native "*ErrorEvent" {
8310 9109
8311 /** @domName ErrorEvent.filename */ 9110 /** @domName ErrorEvent.filename */
9111 /// @docsEditable
8312 final String filename; 9112 final String filename;
8313 9113
8314 /** @domName ErrorEvent.lineno */ 9114 /** @domName ErrorEvent.lineno */
9115 /// @docsEditable
8315 final int lineno; 9116 final int lineno;
8316 9117
8317 /** @domName ErrorEvent.message */ 9118 /** @domName ErrorEvent.message */
9119 /// @docsEditable
8318 final String message; 9120 final String message;
8319 } 9121 }
8320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8321 // for details. All rights reserved. Use of this source code is governed by a 9123 // for details. All rights reserved. Use of this source code is governed by a
8322 // BSD-style license that can be found in the LICENSE file. 9124 // BSD-style license that can be found in the LICENSE file.
8323 9125
8324 // WARNING: Do not edit - generated code. 9126 // WARNING: Do not edit - generated code.
8325 9127
8326 9128
8327 class Event native "*Event" { 9129 class Event native "*Event" {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
8368 9170
8369 static const int MOUSEOVER = 4; 9171 static const int MOUSEOVER = 4;
8370 9172
8371 static const int MOUSEUP = 2; 9173 static const int MOUSEUP = 2;
8372 9174
8373 static const int NONE = 0; 9175 static const int NONE = 0;
8374 9176
8375 static const int SELECT = 16384; 9177 static const int SELECT = 16384;
8376 9178
8377 /** @domName Event.bubbles */ 9179 /** @domName Event.bubbles */
9180 /// @docsEditable
8378 final bool bubbles; 9181 final bool bubbles;
8379 9182
8380 /** @domName Event.cancelBubble */ 9183 /** @domName Event.cancelBubble */
9184 /// @docsEditable
8381 bool cancelBubble; 9185 bool cancelBubble;
8382 9186
8383 /** @domName Event.cancelable */ 9187 /** @domName Event.cancelable */
9188 /// @docsEditable
8384 final bool cancelable; 9189 final bool cancelable;
8385 9190
8386 /** @domName Event.clipboardData */ 9191 /** @domName Event.clipboardData */
9192 /// @docsEditable
8387 final Clipboard clipboardData; 9193 final Clipboard clipboardData;
8388 9194
8389 /** @domName Event.currentTarget */ 9195 /** @domName Event.currentTarget */
9196 /// @docsEditable
8390 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren tTarget); 9197 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren tTarget);
8391 dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this); 9198 dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this);
8392 9199
8393 /** @domName Event.defaultPrevented */ 9200 /** @domName Event.defaultPrevented */
9201 /// @docsEditable
8394 final bool defaultPrevented; 9202 final bool defaultPrevented;
8395 9203
8396 /** @domName Event.eventPhase */ 9204 /** @domName Event.eventPhase */
9205 /// @docsEditable
8397 final int eventPhase; 9206 final int eventPhase;
8398 9207
8399 /** @domName Event.returnValue */ 9208 /** @domName Event.returnValue */
9209 /// @docsEditable
8400 bool returnValue; 9210 bool returnValue;
8401 9211
8402 /** @domName Event.target */ 9212 /** @domName Event.target */
9213 /// @docsEditable
8403 EventTarget get target => _convertNativeToDart_EventTarget(this._target); 9214 EventTarget get target => _convertNativeToDart_EventTarget(this._target);
8404 dynamic get _target => JS("dynamic", "#.target", this); 9215 dynamic get _target => JS("dynamic", "#.target", this);
8405 9216
8406 /** @domName Event.timeStamp */ 9217 /** @domName Event.timeStamp */
9218 /// @docsEditable
8407 final int timeStamp; 9219 final int timeStamp;
8408 9220
8409 /** @domName Event.type */ 9221 /** @domName Event.type */
9222 /// @docsEditable
8410 final String type; 9223 final String type;
8411 9224
8412 /** @domName Event.initEvent */ 9225 /** @domName Event.initEvent */
9226 /// @docsEditable
8413 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native "initEvent"; 9227 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native "initEvent";
8414 9228
8415 /** @domName Event.preventDefault */ 9229 /** @domName Event.preventDefault */
9230 /// @docsEditable
8416 void preventDefault() native; 9231 void preventDefault() native;
8417 9232
8418 /** @domName Event.stopImmediatePropagation */ 9233 /** @domName Event.stopImmediatePropagation */
9234 /// @docsEditable
8419 void stopImmediatePropagation() native; 9235 void stopImmediatePropagation() native;
8420 9236
8421 /** @domName Event.stopPropagation */ 9237 /** @domName Event.stopPropagation */
9238 /// @docsEditable
8422 void stopPropagation() native; 9239 void stopPropagation() native;
8423 9240
8424 } 9241 }
8425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8426 // for details. All rights reserved. Use of this source code is governed by a 9243 // for details. All rights reserved. Use of this source code is governed by a
8427 // BSD-style license that can be found in the LICENSE file. 9244 // BSD-style license that can be found in the LICENSE file.
8428 9245
8429 9246
8430 /// @domName EventException 9247 /// @domName EventException
9248 /// @docsEditable
8431 class EventException native "*EventException" { 9249 class EventException native "*EventException" {
8432 9250
8433 static const int DISPATCH_REQUEST_ERR = 1; 9251 static const int DISPATCH_REQUEST_ERR = 1;
8434 9252
8435 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; 9253 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
8436 9254
8437 /** @domName EventException.code */ 9255 /** @domName EventException.code */
9256 /// @docsEditable
8438 final int code; 9257 final int code;
8439 9258
8440 /** @domName EventException.message */ 9259 /** @domName EventException.message */
9260 /// @docsEditable
8441 final String message; 9261 final String message;
8442 9262
8443 /** @domName EventException.name */ 9263 /** @domName EventException.name */
9264 /// @docsEditable
8444 final String name; 9265 final String name;
8445 9266
8446 /** @domName EventException.toString */ 9267 /** @domName EventException.toString */
9268 /// @docsEditable
8447 String toString() native; 9269 String toString() native;
8448 } 9270 }
8449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8450 // for details. All rights reserved. Use of this source code is governed by a 9272 // for details. All rights reserved. Use of this source code is governed by a
8451 // BSD-style license that can be found in the LICENSE file. 9273 // BSD-style license that can be found in the LICENSE file.
8452 9274
8453 9275
8454 /// @domName EventSource 9276 /// @domName EventSource
9277 /// @docsEditable
8455 class EventSource extends EventTarget native "*EventSource" { 9278 class EventSource extends EventTarget native "*EventSource" {
8456 9279
8457 factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEve ntSource(scriptUrl); 9280 factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEve ntSource(scriptUrl);
8458 9281
8459 /** 9282 /**
8460 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 9283 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
8461 */ 9284 */
9285 /// @docsEditable
8462 EventSourceEvents get on => 9286 EventSourceEvents get on =>
8463 new EventSourceEvents(this); 9287 new EventSourceEvents(this);
8464 9288
8465 static const int CLOSED = 2; 9289 static const int CLOSED = 2;
8466 9290
8467 static const int CONNECTING = 0; 9291 static const int CONNECTING = 0;
8468 9292
8469 static const int OPEN = 1; 9293 static const int OPEN = 1;
8470 9294
8471 /** @domName EventSource.URL */ 9295 /** @domName EventSource.URL */
9296 /// @docsEditable
8472 final String URL; 9297 final String URL;
8473 9298
8474 /** @domName EventSource.readyState */ 9299 /** @domName EventSource.readyState */
9300 /// @docsEditable
8475 final int readyState; 9301 final int readyState;
8476 9302
8477 /** @domName EventSource.url */ 9303 /** @domName EventSource.url */
9304 /// @docsEditable
8478 final String url; 9305 final String url;
8479 9306
8480 /** @domName EventSource.addEventListener */ 9307 /** @domName EventSource.addEventListener */
9308 /// @docsEditable
8481 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9309 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8482 9310
8483 /** @domName EventSource.close */ 9311 /** @domName EventSource.close */
9312 /// @docsEditable
8484 void close() native; 9313 void close() native;
8485 9314
8486 /** @domName EventSource.dispatchEvent */ 9315 /** @domName EventSource.dispatchEvent */
9316 /// @docsEditable
8487 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 9317 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
8488 9318
8489 /** @domName EventSource.removeEventListener */ 9319 /** @domName EventSource.removeEventListener */
9320 /// @docsEditable
8490 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 9321 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8491 } 9322 }
8492 9323
8493 class EventSourceEvents extends Events { 9324 class EventSourceEvents extends Events {
8494 EventSourceEvents(EventTarget _ptr) : super(_ptr); 9325 EventSourceEvents(EventTarget _ptr) : super(_ptr);
8495 9326
8496 EventListenerList get error => this['error']; 9327 EventListenerList get error => this['error'];
8497 9328
8498 EventListenerList get message => this['message']; 9329 EventListenerList get message => this['message'];
8499 9330
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
8549 } 9380 }
8550 } 9381 }
8551 9382
8552 9383
8553 class EventTarget native "*EventTarget" { 9384 class EventTarget native "*EventTarget" {
8554 9385
8555 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent */ 9386 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent */
8556 Events get on => new Events(this); 9387 Events get on => new Events(this);
8557 9388
8558 /** @domName EventTarget.addEventListener */ 9389 /** @domName EventTarget.addEventListener */
9390 /// @docsEditable
8559 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9391 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8560 9392
8561 /** @domName EventTarget.dispatchEvent */ 9393 /** @domName EventTarget.dispatchEvent */
9394 /// @docsEditable
8562 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 9395 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
8563 9396
8564 /** @domName EventTarget.removeEventListener */ 9397 /** @domName EventTarget.removeEventListener */
9398 /// @docsEditable
8565 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 9399 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8566 9400
8567 } 9401 }
8568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8569 // for details. All rights reserved. Use of this source code is governed by a 9403 // for details. All rights reserved. Use of this source code is governed by a
8570 // BSD-style license that can be found in the LICENSE file. 9404 // BSD-style license that can be found in the LICENSE file.
8571 9405
8572 9406
8573 /// @domName HTMLFieldSetElement 9407 /// @domName HTMLFieldSetElement
9408 /// @docsEditable
8574 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" { 9409 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" {
8575 9410
8576 factory FieldSetElement() => document.$dom_createElement("fieldset"); 9411 factory FieldSetElement() => document.$dom_createElement("fieldset");
8577 9412
8578 /** @domName HTMLFieldSetElement.disabled */ 9413 /** @domName HTMLFieldSetElement.disabled */
9414 /// @docsEditable
8579 bool disabled; 9415 bool disabled;
8580 9416
8581 /** @domName HTMLFieldSetElement.elements */ 9417 /** @domName HTMLFieldSetElement.elements */
9418 /// @docsEditable
8582 final HTMLCollection elements; 9419 final HTMLCollection elements;
8583 9420
8584 /** @domName HTMLFieldSetElement.form */ 9421 /** @domName HTMLFieldSetElement.form */
9422 /// @docsEditable
8585 final FormElement form; 9423 final FormElement form;
8586 9424
8587 /** @domName HTMLFieldSetElement.name */ 9425 /** @domName HTMLFieldSetElement.name */
9426 /// @docsEditable
8588 String name; 9427 String name;
8589 9428
8590 /** @domName HTMLFieldSetElement.type */ 9429 /** @domName HTMLFieldSetElement.type */
9430 /// @docsEditable
8591 final String type; 9431 final String type;
8592 9432
8593 /** @domName HTMLFieldSetElement.validationMessage */ 9433 /** @domName HTMLFieldSetElement.validationMessage */
9434 /// @docsEditable
8594 final String validationMessage; 9435 final String validationMessage;
8595 9436
8596 /** @domName HTMLFieldSetElement.validity */ 9437 /** @domName HTMLFieldSetElement.validity */
9438 /// @docsEditable
8597 final ValidityState validity; 9439 final ValidityState validity;
8598 9440
8599 /** @domName HTMLFieldSetElement.willValidate */ 9441 /** @domName HTMLFieldSetElement.willValidate */
9442 /// @docsEditable
8600 final bool willValidate; 9443 final bool willValidate;
8601 9444
8602 /** @domName HTMLFieldSetElement.checkValidity */ 9445 /** @domName HTMLFieldSetElement.checkValidity */
9446 /// @docsEditable
8603 bool checkValidity() native; 9447 bool checkValidity() native;
8604 9448
8605 /** @domName HTMLFieldSetElement.setCustomValidity */ 9449 /** @domName HTMLFieldSetElement.setCustomValidity */
9450 /// @docsEditable
8606 void setCustomValidity(String error) native; 9451 void setCustomValidity(String error) native;
8607 } 9452 }
8608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8609 // for details. All rights reserved. Use of this source code is governed by a 9454 // for details. All rights reserved. Use of this source code is governed by a
8610 // BSD-style license that can be found in the LICENSE file. 9455 // BSD-style license that can be found in the LICENSE file.
8611 9456
8612 9457
8613 /// @domName File 9458 /// @domName File
9459 /// @docsEditable
8614 class File extends Blob native "*File" { 9460 class File extends Blob native "*File" {
8615 9461
8616 /** @domName File.lastModifiedDate */ 9462 /** @domName File.lastModifiedDate */
9463 /// @docsEditable
8617 final Date lastModifiedDate; 9464 final Date lastModifiedDate;
8618 9465
8619 /** @domName File.name */ 9466 /** @domName File.name */
9467 /// @docsEditable
8620 final String name; 9468 final String name;
8621 9469
8622 /** @domName File.webkitRelativePath */ 9470 /** @domName File.webkitRelativePath */
9471 /// @docsEditable
8623 final String webkitRelativePath; 9472 final String webkitRelativePath;
8624 } 9473 }
8625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8626 // for details. All rights reserved. Use of this source code is governed by a 9475 // for details. All rights reserved. Use of this source code is governed by a
8627 // BSD-style license that can be found in the LICENSE file. 9476 // BSD-style license that can be found in the LICENSE file.
8628 9477
8629 // WARNING: Do not edit - generated code. 9478 // WARNING: Do not edit - generated code.
8630 9479
8631 9480
8632 typedef void FileCallback(File file); 9481 typedef void FileCallback(File file);
8633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8634 // for details. All rights reserved. Use of this source code is governed by a 9483 // for details. All rights reserved. Use of this source code is governed by a
8635 // BSD-style license that can be found in the LICENSE file. 9484 // BSD-style license that can be found in the LICENSE file.
8636 9485
8637 9486
8638 /// @domName FileEntry 9487 /// @domName FileEntry
9488 /// @docsEditable
8639 class FileEntry extends Entry native "*FileEntry" { 9489 class FileEntry extends Entry native "*FileEntry" {
8640 9490
8641 /** @domName FileEntry.createWriter */ 9491 /** @domName FileEntry.createWriter */
9492 /// @docsEditable
8642 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]) native; 9493 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]) native;
8643 9494
8644 /** @domName FileEntry.file */ 9495 /** @domName FileEntry.file */
9496 /// @docsEditable
8645 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; 9497 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native;
8646 } 9498 }
8647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8648 // for details. All rights reserved. Use of this source code is governed by a 9500 // for details. All rights reserved. Use of this source code is governed by a
8649 // BSD-style license that can be found in the LICENSE file. 9501 // BSD-style license that can be found in the LICENSE file.
8650 9502
8651 9503
8652 /// @domName FileEntrySync 9504 /// @domName FileEntrySync
9505 /// @docsEditable
8653 class FileEntrySync extends EntrySync native "*FileEntrySync" { 9506 class FileEntrySync extends EntrySync native "*FileEntrySync" {
8654 9507
8655 /** @domName FileEntrySync.createWriter */ 9508 /** @domName FileEntrySync.createWriter */
9509 /// @docsEditable
8656 FileWriterSync createWriter() native; 9510 FileWriterSync createWriter() native;
8657 9511
8658 /** @domName FileEntrySync.file */ 9512 /** @domName FileEntrySync.file */
9513 /// @docsEditable
8659 File file() native; 9514 File file() native;
8660 } 9515 }
8661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8662 // for details. All rights reserved. Use of this source code is governed by a 9517 // for details. All rights reserved. Use of this source code is governed by a
8663 // BSD-style license that can be found in the LICENSE file. 9518 // BSD-style license that can be found in the LICENSE file.
8664 9519
8665 9520
8666 /// @domName FileError 9521 /// @domName FileError
9522 /// @docsEditable
8667 class FileError native "*FileError" { 9523 class FileError native "*FileError" {
8668 9524
8669 static const int ABORT_ERR = 3; 9525 static const int ABORT_ERR = 3;
8670 9526
8671 static const int ENCODING_ERR = 5; 9527 static const int ENCODING_ERR = 5;
8672 9528
8673 static const int INVALID_MODIFICATION_ERR = 9; 9529 static const int INVALID_MODIFICATION_ERR = 9;
8674 9530
8675 static const int INVALID_STATE_ERR = 7; 9531 static const int INVALID_STATE_ERR = 7;
8676 9532
8677 static const int NOT_FOUND_ERR = 1; 9533 static const int NOT_FOUND_ERR = 1;
8678 9534
8679 static const int NOT_READABLE_ERR = 4; 9535 static const int NOT_READABLE_ERR = 4;
8680 9536
8681 static const int NO_MODIFICATION_ALLOWED_ERR = 6; 9537 static const int NO_MODIFICATION_ALLOWED_ERR = 6;
8682 9538
8683 static const int PATH_EXISTS_ERR = 12; 9539 static const int PATH_EXISTS_ERR = 12;
8684 9540
8685 static const int QUOTA_EXCEEDED_ERR = 10; 9541 static const int QUOTA_EXCEEDED_ERR = 10;
8686 9542
8687 static const int SECURITY_ERR = 2; 9543 static const int SECURITY_ERR = 2;
8688 9544
8689 static const int SYNTAX_ERR = 8; 9545 static const int SYNTAX_ERR = 8;
8690 9546
8691 static const int TYPE_MISMATCH_ERR = 11; 9547 static const int TYPE_MISMATCH_ERR = 11;
8692 9548
8693 /** @domName FileError.code */ 9549 /** @domName FileError.code */
9550 /// @docsEditable
8694 final int code; 9551 final int code;
8695 } 9552 }
8696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8697 // for details. All rights reserved. Use of this source code is governed by a 9554 // for details. All rights reserved. Use of this source code is governed by a
8698 // BSD-style license that can be found in the LICENSE file. 9555 // BSD-style license that can be found in the LICENSE file.
8699 9556
8700 9557
8701 /// @domName FileException 9558 /// @domName FileException
9559 /// @docsEditable
8702 class FileException native "*FileException" { 9560 class FileException native "*FileException" {
8703 9561
8704 static const int ABORT_ERR = 3; 9562 static const int ABORT_ERR = 3;
8705 9563
8706 static const int ENCODING_ERR = 5; 9564 static const int ENCODING_ERR = 5;
8707 9565
8708 static const int INVALID_MODIFICATION_ERR = 9; 9566 static const int INVALID_MODIFICATION_ERR = 9;
8709 9567
8710 static const int INVALID_STATE_ERR = 7; 9568 static const int INVALID_STATE_ERR = 7;
8711 9569
8712 static const int NOT_FOUND_ERR = 1; 9570 static const int NOT_FOUND_ERR = 1;
8713 9571
8714 static const int NOT_READABLE_ERR = 4; 9572 static const int NOT_READABLE_ERR = 4;
8715 9573
8716 static const int NO_MODIFICATION_ALLOWED_ERR = 6; 9574 static const int NO_MODIFICATION_ALLOWED_ERR = 6;
8717 9575
8718 static const int PATH_EXISTS_ERR = 12; 9576 static const int PATH_EXISTS_ERR = 12;
8719 9577
8720 static const int QUOTA_EXCEEDED_ERR = 10; 9578 static const int QUOTA_EXCEEDED_ERR = 10;
8721 9579
8722 static const int SECURITY_ERR = 2; 9580 static const int SECURITY_ERR = 2;
8723 9581
8724 static const int SYNTAX_ERR = 8; 9582 static const int SYNTAX_ERR = 8;
8725 9583
8726 static const int TYPE_MISMATCH_ERR = 11; 9584 static const int TYPE_MISMATCH_ERR = 11;
8727 9585
8728 /** @domName FileException.code */ 9586 /** @domName FileException.code */
9587 /// @docsEditable
8729 final int code; 9588 final int code;
8730 9589
8731 /** @domName FileException.message */ 9590 /** @domName FileException.message */
9591 /// @docsEditable
8732 final String message; 9592 final String message;
8733 9593
8734 /** @domName FileException.name */ 9594 /** @domName FileException.name */
9595 /// @docsEditable
8735 final String name; 9596 final String name;
8736 9597
8737 /** @domName FileException.toString */ 9598 /** @domName FileException.toString */
9599 /// @docsEditable
8738 String toString() native; 9600 String toString() native;
8739 } 9601 }
8740 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8741 // for details. All rights reserved. Use of this source code is governed by a 9603 // for details. All rights reserved. Use of this source code is governed by a
8742 // BSD-style license that can be found in the LICENSE file. 9604 // BSD-style license that can be found in the LICENSE file.
8743 9605
8744 9606
8745 /// @domName FileReader 9607 /// @domName FileReader
9608 /// @docsEditable
8746 class FileReader extends EventTarget native "*FileReader" { 9609 class FileReader extends EventTarget native "*FileReader" {
8747 9610
8748 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); 9611 factory FileReader() => _FileReaderFactoryProvider.createFileReader();
8749 9612
8750 /** 9613 /**
8751 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 9614 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
8752 */ 9615 */
9616 /// @docsEditable
8753 FileReaderEvents get on => 9617 FileReaderEvents get on =>
8754 new FileReaderEvents(this); 9618 new FileReaderEvents(this);
8755 9619
8756 static const int DONE = 2; 9620 static const int DONE = 2;
8757 9621
8758 static const int EMPTY = 0; 9622 static const int EMPTY = 0;
8759 9623
8760 static const int LOADING = 1; 9624 static const int LOADING = 1;
8761 9625
8762 /** @domName FileReader.error */ 9626 /** @domName FileReader.error */
9627 /// @docsEditable
8763 final FileError error; 9628 final FileError error;
8764 9629
8765 /** @domName FileReader.readyState */ 9630 /** @domName FileReader.readyState */
9631 /// @docsEditable
8766 final int readyState; 9632 final int readyState;
8767 9633
8768 /** @domName FileReader.result */ 9634 /** @domName FileReader.result */
9635 /// @docsEditable
8769 final Object result; 9636 final Object result;
8770 9637
8771 /** @domName FileReader.abort */ 9638 /** @domName FileReader.abort */
9639 /// @docsEditable
8772 void abort() native; 9640 void abort() native;
8773 9641
8774 /** @domName FileReader.addEventListener */ 9642 /** @domName FileReader.addEventListener */
9643 /// @docsEditable
8775 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9644 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8776 9645
8777 /** @domName FileReader.dispatchEvent */ 9646 /** @domName FileReader.dispatchEvent */
9647 /// @docsEditable
8778 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 9648 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
8779 9649
8780 /** @domName FileReader.readAsArrayBuffer */ 9650 /** @domName FileReader.readAsArrayBuffer */
9651 /// @docsEditable
8781 void readAsArrayBuffer(Blob blob) native; 9652 void readAsArrayBuffer(Blob blob) native;
8782 9653
8783 /** @domName FileReader.readAsBinaryString */ 9654 /** @domName FileReader.readAsBinaryString */
9655 /// @docsEditable
8784 void readAsBinaryString(Blob blob) native; 9656 void readAsBinaryString(Blob blob) native;
8785 9657
8786 /** @domName FileReader.readAsDataURL */ 9658 /** @domName FileReader.readAsDataURL */
9659 /// @docsEditable
8787 void readAsDataURL(Blob blob) native; 9660 void readAsDataURL(Blob blob) native;
8788 9661
8789 /** @domName FileReader.readAsText */ 9662 /** @domName FileReader.readAsText */
9663 /// @docsEditable
8790 void readAsText(Blob blob, [String encoding]) native; 9664 void readAsText(Blob blob, [String encoding]) native;
8791 9665
8792 /** @domName FileReader.removeEventListener */ 9666 /** @domName FileReader.removeEventListener */
9667 /// @docsEditable
8793 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 9668 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8794 } 9669 }
8795 9670
8796 class FileReaderEvents extends Events { 9671 class FileReaderEvents extends Events {
8797 FileReaderEvents(EventTarget _ptr) : super(_ptr); 9672 FileReaderEvents(EventTarget _ptr) : super(_ptr);
8798 9673
8799 EventListenerList get abort => this['abort']; 9674 EventListenerList get abort => this['abort'];
8800 9675
8801 EventListenerList get error => this['error']; 9676 EventListenerList get error => this['error'];
8802 9677
8803 EventListenerList get load => this['load']; 9678 EventListenerList get load => this['load'];
8804 9679
8805 EventListenerList get loadEnd => this['loadend']; 9680 EventListenerList get loadEnd => this['loadend'];
8806 9681
8807 EventListenerList get loadStart => this['loadstart']; 9682 EventListenerList get loadStart => this['loadstart'];
8808 9683
8809 EventListenerList get progress => this['progress']; 9684 EventListenerList get progress => this['progress'];
8810 } 9685 }
8811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8812 // for details. All rights reserved. Use of this source code is governed by a 9687 // for details. All rights reserved. Use of this source code is governed by a
8813 // BSD-style license that can be found in the LICENSE file. 9688 // BSD-style license that can be found in the LICENSE file.
8814 9689
8815 9690
8816 /// @domName FileReaderSync 9691 /// @domName FileReaderSync
9692 /// @docsEditable
8817 class FileReaderSync native "*FileReaderSync" { 9693 class FileReaderSync native "*FileReaderSync" {
8818 9694
8819 factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSyn c(); 9695 factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSyn c();
8820 9696
8821 /** @domName FileReaderSync.readAsArrayBuffer */ 9697 /** @domName FileReaderSync.readAsArrayBuffer */
9698 /// @docsEditable
8822 ArrayBuffer readAsArrayBuffer(Blob blob) native; 9699 ArrayBuffer readAsArrayBuffer(Blob blob) native;
8823 9700
8824 /** @domName FileReaderSync.readAsBinaryString */ 9701 /** @domName FileReaderSync.readAsBinaryString */
9702 /// @docsEditable
8825 String readAsBinaryString(Blob blob) native; 9703 String readAsBinaryString(Blob blob) native;
8826 9704
8827 /** @domName FileReaderSync.readAsDataURL */ 9705 /** @domName FileReaderSync.readAsDataURL */
9706 /// @docsEditable
8828 String readAsDataURL(Blob blob) native; 9707 String readAsDataURL(Blob blob) native;
8829 9708
8830 /** @domName FileReaderSync.readAsText */ 9709 /** @domName FileReaderSync.readAsText */
9710 /// @docsEditable
8831 String readAsText(Blob blob, [String encoding]) native; 9711 String readAsText(Blob blob, [String encoding]) native;
8832 } 9712 }
8833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8834 // for details. All rights reserved. Use of this source code is governed by a 9714 // for details. All rights reserved. Use of this source code is governed by a
8835 // BSD-style license that can be found in the LICENSE file. 9715 // BSD-style license that can be found in the LICENSE file.
8836 9716
8837 // WARNING: Do not edit - generated code. 9717 // WARNING: Do not edit - generated code.
8838 9718
8839 9719
8840 typedef void FileSystemCallback(DOMFileSystem fileSystem); 9720 typedef void FileSystemCallback(DOMFileSystem fileSystem);
8841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8842 // for details. All rights reserved. Use of this source code is governed by a 9722 // for details. All rights reserved. Use of this source code is governed by a
8843 // BSD-style license that can be found in the LICENSE file. 9723 // BSD-style license that can be found in the LICENSE file.
8844 9724
8845 9725
8846 /// @domName FileWriter 9726 /// @domName FileWriter
9727 /// @docsEditable
8847 class FileWriter extends EventTarget native "*FileWriter" { 9728 class FileWriter extends EventTarget native "*FileWriter" {
8848 9729
8849 /** 9730 /**
8850 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 9731 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
8851 */ 9732 */
9733 /// @docsEditable
8852 FileWriterEvents get on => 9734 FileWriterEvents get on =>
8853 new FileWriterEvents(this); 9735 new FileWriterEvents(this);
8854 9736
8855 static const int DONE = 2; 9737 static const int DONE = 2;
8856 9738
8857 static const int INIT = 0; 9739 static const int INIT = 0;
8858 9740
8859 static const int WRITING = 1; 9741 static const int WRITING = 1;
8860 9742
8861 /** @domName FileWriter.error */ 9743 /** @domName FileWriter.error */
9744 /// @docsEditable
8862 final FileError error; 9745 final FileError error;
8863 9746
8864 /** @domName FileWriter.length */ 9747 /** @domName FileWriter.length */
9748 /// @docsEditable
8865 final int length; 9749 final int length;
8866 9750
8867 /** @domName FileWriter.position */ 9751 /** @domName FileWriter.position */
9752 /// @docsEditable
8868 final int position; 9753 final int position;
8869 9754
8870 /** @domName FileWriter.readyState */ 9755 /** @domName FileWriter.readyState */
9756 /// @docsEditable
8871 final int readyState; 9757 final int readyState;
8872 9758
8873 /** @domName FileWriter.abort */ 9759 /** @domName FileWriter.abort */
9760 /// @docsEditable
8874 void abort() native; 9761 void abort() native;
8875 9762
8876 /** @domName FileWriter.addEventListener */ 9763 /** @domName FileWriter.addEventListener */
9764 /// @docsEditable
8877 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9765 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8878 9766
8879 /** @domName FileWriter.dispatchEvent */ 9767 /** @domName FileWriter.dispatchEvent */
9768 /// @docsEditable
8880 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 9769 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
8881 9770
8882 /** @domName FileWriter.removeEventListener */ 9771 /** @domName FileWriter.removeEventListener */
9772 /// @docsEditable
8883 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 9773 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8884 9774
8885 /** @domName FileWriter.seek */ 9775 /** @domName FileWriter.seek */
9776 /// @docsEditable
8886 void seek(int position) native; 9777 void seek(int position) native;
8887 9778
8888 /** @domName FileWriter.truncate */ 9779 /** @domName FileWriter.truncate */
9780 /// @docsEditable
8889 void truncate(int size) native; 9781 void truncate(int size) native;
8890 9782
8891 /** @domName FileWriter.write */ 9783 /** @domName FileWriter.write */
9784 /// @docsEditable
8892 void write(Blob data) native; 9785 void write(Blob data) native;
8893 } 9786 }
8894 9787
8895 class FileWriterEvents extends Events { 9788 class FileWriterEvents extends Events {
8896 FileWriterEvents(EventTarget _ptr) : super(_ptr); 9789 FileWriterEvents(EventTarget _ptr) : super(_ptr);
8897 9790
8898 EventListenerList get abort => this['abort']; 9791 EventListenerList get abort => this['abort'];
8899 9792
8900 EventListenerList get error => this['error']; 9793 EventListenerList get error => this['error'];
8901 9794
(...skipping 12 matching lines...) Expand all
8914 // WARNING: Do not edit - generated code. 9807 // WARNING: Do not edit - generated code.
8915 9808
8916 9809
8917 typedef void FileWriterCallback(FileWriter fileWriter); 9810 typedef void FileWriterCallback(FileWriter fileWriter);
8918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8919 // for details. All rights reserved. Use of this source code is governed by a 9812 // for details. All rights reserved. Use of this source code is governed by a
8920 // BSD-style license that can be found in the LICENSE file. 9813 // BSD-style license that can be found in the LICENSE file.
8921 9814
8922 9815
8923 /// @domName FileWriterSync 9816 /// @domName FileWriterSync
9817 /// @docsEditable
8924 class FileWriterSync native "*FileWriterSync" { 9818 class FileWriterSync native "*FileWriterSync" {
8925 9819
8926 /** @domName FileWriterSync.length */ 9820 /** @domName FileWriterSync.length */
9821 /// @docsEditable
8927 final int length; 9822 final int length;
8928 9823
8929 /** @domName FileWriterSync.position */ 9824 /** @domName FileWriterSync.position */
9825 /// @docsEditable
8930 final int position; 9826 final int position;
8931 9827
8932 /** @domName FileWriterSync.seek */ 9828 /** @domName FileWriterSync.seek */
9829 /// @docsEditable
8933 void seek(int position) native; 9830 void seek(int position) native;
8934 9831
8935 /** @domName FileWriterSync.truncate */ 9832 /** @domName FileWriterSync.truncate */
9833 /// @docsEditable
8936 void truncate(int size) native; 9834 void truncate(int size) native;
8937 9835
8938 /** @domName FileWriterSync.write */ 9836 /** @domName FileWriterSync.write */
9837 /// @docsEditable
8939 void write(Blob data) native; 9838 void write(Blob data) native;
8940 } 9839 }
8941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8942 // for details. All rights reserved. Use of this source code is governed by a 9841 // for details. All rights reserved. Use of this source code is governed by a
8943 // BSD-style license that can be found in the LICENSE file. 9842 // BSD-style license that can be found in the LICENSE file.
8944 9843
8945 9844
8946 /// @domName Float32Array 9845 /// @domName Float32Array
9846 /// @docsEditable
8947 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float32Array" { 9847 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float32Array" {
8948 9848
8949 factory Float32Array(int length) => 9849 factory Float32Array(int length) =>
8950 _TypedArrayFactoryProvider.createFloat32Array(length); 9850 _TypedArrayFactoryProvider.createFloat32Array(length);
8951 9851
8952 factory Float32Array.fromList(List<num> list) => 9852 factory Float32Array.fromList(List<num> list) =>
8953 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); 9853 _TypedArrayFactoryProvider.createFloat32Array_fromList(list);
8954 9854
8955 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 9855 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
8956 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); 9856 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length);
8957 9857
8958 static const int BYTES_PER_ELEMENT = 4; 9858 static const int BYTES_PER_ELEMENT = 4;
8959 9859
8960 /** @domName Float32Array.length */ 9860 /** @domName Float32Array.length */
9861 /// @docsEditable
8961 final int length; 9862 final int length;
8962 9863
8963 num operator[](int index) => JS("num", "#[#]", this, index); 9864 num operator[](int index) => JS("num", "#[#]", this, index);
8964 9865
8965 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins. 9866 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
8966 // num is the element type. 9867 // num is the element type.
8967 9868
8968 // From Iterable<num>: 9869 // From Iterable<num>:
8969 9870
8970 Iterator<num> iterator() { 9871 Iterator<num> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
9036 void insertRange(int start, int rangeLength, [num initialValue]) { 9937 void insertRange(int start, int rangeLength, [num initialValue]) {
9037 throw new UnsupportedError("Cannot insertRange on immutable List."); 9938 throw new UnsupportedError("Cannot insertRange on immutable List.");
9038 } 9939 }
9039 9940
9040 List<num> getRange(int start, int rangeLength) => 9941 List<num> getRange(int start, int rangeLength) =>
9041 _Lists.getRange(this, start, rangeLength, <num>[]); 9942 _Lists.getRange(this, start, rangeLength, <num>[]);
9042 9943
9043 // -- end List<num> mixins. 9944 // -- end List<num> mixins.
9044 9945
9045 /** @domName Float32Array.setElements */ 9946 /** @domName Float32Array.setElements */
9947 /// @docsEditable
9046 void setElements(Object array, [int offset]) native "set"; 9948 void setElements(Object array, [int offset]) native "set";
9047 9949
9048 /** @domName Float32Array.subarray */ 9950 /** @domName Float32Array.subarray */
9951 /// @docsEditable
9049 Float32Array subarray(int start, [int end]) native; 9952 Float32Array subarray(int start, [int end]) native;
9050 } 9953 }
9051 // 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
9052 // 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
9053 // BSD-style license that can be found in the LICENSE file. 9956 // BSD-style license that can be found in the LICENSE file.
9054 9957
9055 9958
9056 /// @domName Float64Array 9959 /// @domName Float64Array
9960 /// @docsEditable
9057 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float64Array" { 9961 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float64Array" {
9058 9962
9059 factory Float64Array(int length) => 9963 factory Float64Array(int length) =>
9060 _TypedArrayFactoryProvider.createFloat64Array(length); 9964 _TypedArrayFactoryProvider.createFloat64Array(length);
9061 9965
9062 factory Float64Array.fromList(List<num> list) => 9966 factory Float64Array.fromList(List<num> list) =>
9063 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); 9967 _TypedArrayFactoryProvider.createFloat64Array_fromList(list);
9064 9968
9065 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 9969 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
9066 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); 9970 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length);
9067 9971
9068 static const int BYTES_PER_ELEMENT = 8; 9972 static const int BYTES_PER_ELEMENT = 8;
9069 9973
9070 /** @domName Float64Array.length */ 9974 /** @domName Float64Array.length */
9975 /// @docsEditable
9071 final int length; 9976 final int length;
9072 9977
9073 num operator[](int index) => JS("num", "#[#]", this, index); 9978 num operator[](int index) => JS("num", "#[#]", this, index);
9074 9979
9075 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins. 9980 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
9076 // num is the element type. 9981 // num is the element type.
9077 9982
9078 // From Iterable<num>: 9983 // From Iterable<num>:
9079 9984
9080 Iterator<num> iterator() { 9985 Iterator<num> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
9146 void insertRange(int start, int rangeLength, [num initialValue]) { 10051 void insertRange(int start, int rangeLength, [num initialValue]) {
9147 throw new UnsupportedError("Cannot insertRange on immutable List."); 10052 throw new UnsupportedError("Cannot insertRange on immutable List.");
9148 } 10053 }
9149 10054
9150 List<num> getRange(int start, int rangeLength) => 10055 List<num> getRange(int start, int rangeLength) =>
9151 _Lists.getRange(this, start, rangeLength, <num>[]); 10056 _Lists.getRange(this, start, rangeLength, <num>[]);
9152 10057
9153 // -- end List<num> mixins. 10058 // -- end List<num> mixins.
9154 10059
9155 /** @domName Float64Array.setElements */ 10060 /** @domName Float64Array.setElements */
10061 /// @docsEditable
9156 void setElements(Object array, [int offset]) native "set"; 10062 void setElements(Object array, [int offset]) native "set";
9157 10063
9158 /** @domName Float64Array.subarray */ 10064 /** @domName Float64Array.subarray */
10065 /// @docsEditable
9159 Float64Array subarray(int start, [int end]) native; 10066 Float64Array subarray(int start, [int end]) native;
9160 } 10067 }
9161 // 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
9162 // 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
9163 // BSD-style license that can be found in the LICENSE file. 10070 // BSD-style license that can be found in the LICENSE file.
9164 10071
9165 10072
9166 /// @domName HTMLFontElement 10073 /// @domName HTMLFontElement
10074 /// @docsEditable
9167 class FontElement extends Element implements Element native "*HTMLFontElement" { 10075 class FontElement extends Element implements Element native "*HTMLFontElement" {
9168 10076
9169 /** @domName HTMLFontElement.color */ 10077 /** @domName HTMLFontElement.color */
10078 /// @docsEditable
9170 String color; 10079 String color;
9171 10080
9172 /** @domName HTMLFontElement.face */ 10081 /** @domName HTMLFontElement.face */
10082 /// @docsEditable
9173 String face; 10083 String face;
9174 10084
9175 /** @domName HTMLFontElement.size */ 10085 /** @domName HTMLFontElement.size */
10086 /// @docsEditable
9176 String size; 10087 String size;
9177 } 10088 }
9178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9179 // for details. All rights reserved. Use of this source code is governed by a 10090 // for details. All rights reserved. Use of this source code is governed by a
9180 // BSD-style license that can be found in the LICENSE file. 10091 // BSD-style license that can be found in the LICENSE file.
9181 10092
9182 10093
9183 /// @domName FormData 10094 /// @domName FormData
10095 /// @docsEditable
9184 class FormData native "*FormData" { 10096 class FormData native "*FormData" {
9185 10097
9186 factory FormData([FormElement form]) { 10098 factory FormData([FormElement form]) {
9187 if (!?form) { 10099 if (!?form) {
9188 return _FormDataFactoryProvider.createFormData(); 10100 return _FormDataFactoryProvider.createFormData();
9189 } 10101 }
9190 return _FormDataFactoryProvider.createFormData(form); 10102 return _FormDataFactoryProvider.createFormData(form);
9191 } 10103 }
9192 10104
9193 /** @domName FormData.append */ 10105 /** @domName FormData.append */
10106 /// @docsEditable
9194 void append(String name, String value, String filename) native; 10107 void append(String name, String value, String filename) native;
9195 } 10108 }
9196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9197 // for details. All rights reserved. Use of this source code is governed by a 10110 // for details. All rights reserved. Use of this source code is governed by a
9198 // BSD-style license that can be found in the LICENSE file. 10111 // BSD-style license that can be found in the LICENSE file.
9199 10112
9200 10113
9201 /// @domName HTMLFormElement 10114 /// @domName HTMLFormElement
10115 /// @docsEditable
9202 class FormElement extends Element implements Element native "*HTMLFormElement" { 10116 class FormElement extends Element implements Element native "*HTMLFormElement" {
9203 10117
9204 factory FormElement() => document.$dom_createElement("form"); 10118 factory FormElement() => document.$dom_createElement("form");
9205 10119
9206 /** @domName HTMLFormElement.acceptCharset */ 10120 /** @domName HTMLFormElement.acceptCharset */
10121 /// @docsEditable
9207 String acceptCharset; 10122 String acceptCharset;
9208 10123
9209 /** @domName HTMLFormElement.action */ 10124 /** @domName HTMLFormElement.action */
10125 /// @docsEditable
9210 String action; 10126 String action;
9211 10127
9212 /** @domName HTMLFormElement.autocomplete */ 10128 /** @domName HTMLFormElement.autocomplete */
10129 /// @docsEditable
9213 String autocomplete; 10130 String autocomplete;
9214 10131
9215 /** @domName HTMLFormElement.encoding */ 10132 /** @domName HTMLFormElement.encoding */
10133 /// @docsEditable
9216 String encoding; 10134 String encoding;
9217 10135
9218 /** @domName HTMLFormElement.enctype */ 10136 /** @domName HTMLFormElement.enctype */
10137 /// @docsEditable
9219 String enctype; 10138 String enctype;
9220 10139
9221 /** @domName HTMLFormElement.length */ 10140 /** @domName HTMLFormElement.length */
10141 /// @docsEditable
9222 final int length; 10142 final int length;
9223 10143
9224 /** @domName HTMLFormElement.method */ 10144 /** @domName HTMLFormElement.method */
10145 /// @docsEditable
9225 String method; 10146 String method;
9226 10147
9227 /** @domName HTMLFormElement.name */ 10148 /** @domName HTMLFormElement.name */
10149 /// @docsEditable
9228 String name; 10150 String name;
9229 10151
9230 /** @domName HTMLFormElement.noValidate */ 10152 /** @domName HTMLFormElement.noValidate */
10153 /// @docsEditable
9231 bool noValidate; 10154 bool noValidate;
9232 10155
9233 /** @domName HTMLFormElement.target */ 10156 /** @domName HTMLFormElement.target */
10157 /// @docsEditable
9234 String target; 10158 String target;
9235 10159
9236 /** @domName HTMLFormElement.checkValidity */ 10160 /** @domName HTMLFormElement.checkValidity */
10161 /// @docsEditable
9237 bool checkValidity() native; 10162 bool checkValidity() native;
9238 10163
9239 /** @domName HTMLFormElement.reset */ 10164 /** @domName HTMLFormElement.reset */
10165 /// @docsEditable
9240 void reset() native; 10166 void reset() native;
9241 10167
9242 /** @domName HTMLFormElement.submit */ 10168 /** @domName HTMLFormElement.submit */
10169 /// @docsEditable
9243 void submit() native; 10170 void submit() native;
9244 } 10171 }
9245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9246 // for details. All rights reserved. Use of this source code is governed by a 10173 // for details. All rights reserved. Use of this source code is governed by a
9247 // BSD-style license that can be found in the LICENSE file. 10174 // BSD-style license that can be found in the LICENSE file.
9248 10175
9249 10176
9250 /// @domName HTMLFrameElement 10177 /// @domName HTMLFrameElement
10178 /// @docsEditable
9251 class FrameElement extends Element implements Element native "*HTMLFrameElement" { 10179 class FrameElement extends Element implements Element native "*HTMLFrameElement" {
9252 10180
9253 /** @domName HTMLFrameElement.contentWindow */ 10181 /** @domName HTMLFrameElement.contentWindow */
10182 /// @docsEditable
9254 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); 10183 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow);
9255 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); 10184 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this);
9256 10185
9257 /** @domName HTMLFrameElement.frameBorder */ 10186 /** @domName HTMLFrameElement.frameBorder */
10187 /// @docsEditable
9258 String frameBorder; 10188 String frameBorder;
9259 10189
9260 /** @domName HTMLFrameElement.height */ 10190 /** @domName HTMLFrameElement.height */
10191 /// @docsEditable
9261 final int height; 10192 final int height;
9262 10193
9263 /** @domName HTMLFrameElement.location */ 10194 /** @domName HTMLFrameElement.location */
10195 /// @docsEditable
9264 String location; 10196 String location;
9265 10197
9266 /** @domName HTMLFrameElement.longDesc */ 10198 /** @domName HTMLFrameElement.longDesc */
10199 /// @docsEditable
9267 String longDesc; 10200 String longDesc;
9268 10201
9269 /** @domName HTMLFrameElement.marginHeight */ 10202 /** @domName HTMLFrameElement.marginHeight */
10203 /// @docsEditable
9270 String marginHeight; 10204 String marginHeight;
9271 10205
9272 /** @domName HTMLFrameElement.marginWidth */ 10206 /** @domName HTMLFrameElement.marginWidth */
10207 /// @docsEditable
9273 String marginWidth; 10208 String marginWidth;
9274 10209
9275 /** @domName HTMLFrameElement.name */ 10210 /** @domName HTMLFrameElement.name */
10211 /// @docsEditable
9276 String name; 10212 String name;
9277 10213
9278 /** @domName HTMLFrameElement.noResize */ 10214 /** @domName HTMLFrameElement.noResize */
10215 /// @docsEditable
9279 bool noResize; 10216 bool noResize;
9280 10217
9281 /** @domName HTMLFrameElement.scrolling */ 10218 /** @domName HTMLFrameElement.scrolling */
10219 /// @docsEditable
9282 String scrolling; 10220 String scrolling;
9283 10221
9284 /** @domName HTMLFrameElement.src */ 10222 /** @domName HTMLFrameElement.src */
10223 /// @docsEditable
9285 String src; 10224 String src;
9286 10225
9287 /** @domName HTMLFrameElement.width */ 10226 /** @domName HTMLFrameElement.width */
10227 /// @docsEditable
9288 final int width; 10228 final int width;
9289 } 10229 }
9290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9291 // for details. All rights reserved. Use of this source code is governed by a 10231 // for details. All rights reserved. Use of this source code is governed by a
9292 // BSD-style license that can be found in the LICENSE file. 10232 // BSD-style license that can be found in the LICENSE file.
9293 10233
9294 10234
9295 /// @domName HTMLFrameSetElement 10235 /// @domName HTMLFrameSetElement
10236 /// @docsEditable
9296 class FrameSetElement extends Element implements Element native "*HTMLFrameSetEl ement" { 10237 class FrameSetElement extends Element implements Element native "*HTMLFrameSetEl ement" {
9297 10238
9298 /** 10239 /**
9299 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10240 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
9300 */ 10241 */
10242 /// @docsEditable
9301 FrameSetElementEvents get on => 10243 FrameSetElementEvents get on =>
9302 new FrameSetElementEvents(this); 10244 new FrameSetElementEvents(this);
9303 10245
9304 /** @domName HTMLFrameSetElement.cols */ 10246 /** @domName HTMLFrameSetElement.cols */
10247 /// @docsEditable
9305 String cols; 10248 String cols;
9306 10249
9307 /** @domName HTMLFrameSetElement.rows */ 10250 /** @domName HTMLFrameSetElement.rows */
10251 /// @docsEditable
9308 String rows; 10252 String rows;
9309 } 10253 }
9310 10254
9311 class FrameSetElementEvents extends ElementEvents { 10255 class FrameSetElementEvents extends ElementEvents {
9312 FrameSetElementEvents(EventTarget _ptr) : super(_ptr); 10256 FrameSetElementEvents(EventTarget _ptr) : super(_ptr);
9313 10257
9314 EventListenerList get beforeUnload => this['beforeunload']; 10258 EventListenerList get beforeUnload => this['beforeunload'];
9315 10259
9316 EventListenerList get blur => this['blur']; 10260 EventListenerList get blur => this['blur'];
9317 10261
(...skipping 18 matching lines...) Expand all
9336 EventListenerList get storage => this['storage']; 10280 EventListenerList get storage => this['storage'];
9337 10281
9338 EventListenerList get unload => this['unload']; 10282 EventListenerList get unload => this['unload'];
9339 } 10283 }
9340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9341 // for details. All rights reserved. Use of this source code is governed by a 10285 // for details. All rights reserved. Use of this source code is governed by a
9342 // BSD-style license that can be found in the LICENSE file. 10286 // BSD-style license that can be found in the LICENSE file.
9343 10287
9344 10288
9345 /// @domName GainNode 10289 /// @domName GainNode
10290 /// @docsEditable
9346 class GainNode extends AudioNode native "*GainNode" { 10291 class GainNode extends AudioNode native "*GainNode" {
9347 10292
9348 /** @domName GainNode.gain */ 10293 /** @domName GainNode.gain */
10294 /// @docsEditable
9349 final AudioGain gain; 10295 final AudioGain gain;
9350 } 10296 }
9351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10297 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9352 // for details. All rights reserved. Use of this source code is governed by a 10298 // for details. All rights reserved. Use of this source code is governed by a
9353 // BSD-style license that can be found in the LICENSE file. 10299 // BSD-style license that can be found in the LICENSE file.
9354 10300
9355 10301
9356 /// @domName Gamepad 10302 /// @domName Gamepad
10303 /// @docsEditable
9357 class Gamepad native "*Gamepad" { 10304 class Gamepad native "*Gamepad" {
9358 10305
9359 /** @domName Gamepad.axes */ 10306 /** @domName Gamepad.axes */
10307 /// @docsEditable
9360 final List<num> axes; 10308 final List<num> axes;
9361 10309
9362 /** @domName Gamepad.buttons */ 10310 /** @domName Gamepad.buttons */
10311 /// @docsEditable
9363 final List<num> buttons; 10312 final List<num> buttons;
9364 10313
9365 /** @domName Gamepad.id */ 10314 /** @domName Gamepad.id */
10315 /// @docsEditable
9366 final String id; 10316 final String id;
9367 10317
9368 /** @domName Gamepad.index */ 10318 /** @domName Gamepad.index */
10319 /// @docsEditable
9369 final int index; 10320 final int index;
9370 10321
9371 /** @domName Gamepad.timestamp */ 10322 /** @domName Gamepad.timestamp */
10323 /// @docsEditable
9372 final int timestamp; 10324 final int timestamp;
9373 } 10325 }
9374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9375 // for details. All rights reserved. Use of this source code is governed by a 10327 // for details. All rights reserved. Use of this source code is governed by a
9376 // BSD-style license that can be found in the LICENSE file. 10328 // BSD-style license that can be found in the LICENSE file.
9377 10329
9378 10330
9379 /// @domName Geolocation 10331 /// @domName Geolocation
10332 /// @docsEditable
9380 class Geolocation native "*Geolocation" { 10333 class Geolocation native "*Geolocation" {
9381 10334
9382 /** @domName Geolocation.clearWatch */ 10335 /** @domName Geolocation.clearWatch */
10336 /// @docsEditable
9383 void clearWatch(int watchId) native; 10337 void clearWatch(int watchId) native;
9384 10338
9385 /** @domName Geolocation.getCurrentPosition */ 10339 /** @domName Geolocation.getCurrentPosition */
10340 /// @docsEditable
9386 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback, Object options]) native; 10341 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback, Object options]) native;
9387 10342
9388 /** @domName Geolocation.watchPosition */ 10343 /** @domName Geolocation.watchPosition */
10344 /// @docsEditable
9389 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback, Object options]) native; 10345 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback, Object options]) native;
9390 } 10346 }
9391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9392 // for details. All rights reserved. Use of this source code is governed by a 10348 // for details. All rights reserved. Use of this source code is governed by a
9393 // BSD-style license that can be found in the LICENSE file. 10349 // BSD-style license that can be found in the LICENSE file.
9394 10350
9395 10351
9396 /// @domName Geoposition 10352 /// @domName Geoposition
10353 /// @docsEditable
9397 class Geoposition native "*Geoposition" { 10354 class Geoposition native "*Geoposition" {
9398 10355
9399 /** @domName Geoposition.coords */ 10356 /** @domName Geoposition.coords */
10357 /// @docsEditable
9400 final Coordinates coords; 10358 final Coordinates coords;
9401 10359
9402 /** @domName Geoposition.timestamp */ 10360 /** @domName Geoposition.timestamp */
10361 /// @docsEditable
9403 final int timestamp; 10362 final int timestamp;
9404 } 10363 }
9405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9406 // for details. All rights reserved. Use of this source code is governed by a 10365 // for details. All rights reserved. Use of this source code is governed by a
9407 // BSD-style license that can be found in the LICENSE file. 10366 // BSD-style license that can be found in the LICENSE file.
9408 10367
9409 10368
9410 /// @domName HTMLHRElement 10369 /// @domName HTMLHRElement
10370 /// @docsEditable
9411 class HRElement extends Element implements Element native "*HTMLHRElement" { 10371 class HRElement extends Element implements Element native "*HTMLHRElement" {
9412 10372
9413 factory HRElement() => document.$dom_createElement("hr"); 10373 factory HRElement() => document.$dom_createElement("hr");
9414 10374
9415 /** @domName HTMLHRElement.align */ 10375 /** @domName HTMLHRElement.align */
10376 /// @docsEditable
9416 String align; 10377 String align;
9417 10378
9418 /** @domName HTMLHRElement.noShade */ 10379 /** @domName HTMLHRElement.noShade */
10380 /// @docsEditable
9419 bool noShade; 10381 bool noShade;
9420 10382
9421 /** @domName HTMLHRElement.size */ 10383 /** @domName HTMLHRElement.size */
10384 /// @docsEditable
9422 String size; 10385 String size;
9423 10386
9424 /** @domName HTMLHRElement.width */ 10387 /** @domName HTMLHRElement.width */
10388 /// @docsEditable
9425 String width; 10389 String width;
9426 } 10390 }
9427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9428 // for details. All rights reserved. Use of this source code is governed by a 10392 // for details. All rights reserved. Use of this source code is governed by a
9429 // BSD-style license that can be found in the LICENSE file. 10393 // BSD-style license that can be found in the LICENSE file.
9430 10394
9431 10395
9432 /// @domName HTMLAllCollection 10396 /// @domName HTMLAllCollection
10397 /// @docsEditable
9433 class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { 10398 class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" {
9434 10399
9435 /** @domName HTMLAllCollection.length */ 10400 /** @domName HTMLAllCollection.length */
10401 /// @docsEditable
9436 final int length; 10402 final int length;
9437 10403
9438 Node operator[](int index) => JS("Node", "#[#]", this, index); 10404 Node operator[](int index) => JS("Node", "#[#]", this, index);
9439 10405
9440 void operator[]=(int index, Node value) { 10406 void operator[]=(int index, Node value) {
9441 throw new UnsupportedError("Cannot assign element of immutable List."); 10407 throw new UnsupportedError("Cannot assign element of immutable List.");
9442 } 10408 }
9443 // -- start List<Node> mixins. 10409 // -- start List<Node> mixins.
9444 // Node is the element type. 10410 // Node is the element type.
9445 10411
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
9514 void insertRange(int start, int rangeLength, [Node initialValue]) { 10480 void insertRange(int start, int rangeLength, [Node initialValue]) {
9515 throw new UnsupportedError("Cannot insertRange on immutable List."); 10481 throw new UnsupportedError("Cannot insertRange on immutable List.");
9516 } 10482 }
9517 10483
9518 List<Node> getRange(int start, int rangeLength) => 10484 List<Node> getRange(int start, int rangeLength) =>
9519 _Lists.getRange(this, start, rangeLength, <Node>[]); 10485 _Lists.getRange(this, start, rangeLength, <Node>[]);
9520 10486
9521 // -- end List<Node> mixins. 10487 // -- end List<Node> mixins.
9522 10488
9523 /** @domName HTMLAllCollection.item */ 10489 /** @domName HTMLAllCollection.item */
10490 /// @docsEditable
9524 Node item(int index) native; 10491 Node item(int index) native;
9525 10492
9526 /** @domName HTMLAllCollection.namedItem */ 10493 /** @domName HTMLAllCollection.namedItem */
10494 /// @docsEditable
9527 Node namedItem(String name) native; 10495 Node namedItem(String name) native;
9528 10496
9529 /** @domName HTMLAllCollection.tags */ 10497 /** @domName HTMLAllCollection.tags */
10498 /// @docsEditable
9530 List<Node> tags(String name) native; 10499 List<Node> tags(String name) native;
9531 } 10500 }
9532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9533 // for details. All rights reserved. Use of this source code is governed by a 10502 // for details. All rights reserved. Use of this source code is governed by a
9534 // BSD-style license that can be found in the LICENSE file. 10503 // BSD-style license that can be found in the LICENSE file.
9535 10504
9536 10505
9537 /// @domName HTMLCollection 10506 /// @domName HTMLCollection
10507 /// @docsEditable
9538 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" { 10508 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" {
9539 10509
9540 /** @domName HTMLCollection.length */ 10510 /** @domName HTMLCollection.length */
10511 /// @docsEditable
9541 final int length; 10512 final int length;
9542 10513
9543 Node operator[](int index) => JS("Node", "#[#]", this, index); 10514 Node operator[](int index) => JS("Node", "#[#]", this, index);
9544 10515
9545 void operator[]=(int index, Node value) { 10516 void operator[]=(int index, Node value) {
9546 throw new UnsupportedError("Cannot assign element of immutable List."); 10517 throw new UnsupportedError("Cannot assign element of immutable List.");
9547 } 10518 }
9548 // -- start List<Node> mixins. 10519 // -- start List<Node> mixins.
9549 // Node is the element type. 10520 // Node is the element type.
9550 10521
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
9619 void insertRange(int start, int rangeLength, [Node initialValue]) { 10590 void insertRange(int start, int rangeLength, [Node initialValue]) {
9620 throw new UnsupportedError("Cannot insertRange on immutable List."); 10591 throw new UnsupportedError("Cannot insertRange on immutable List.");
9621 } 10592 }
9622 10593
9623 List<Node> getRange(int start, int rangeLength) => 10594 List<Node> getRange(int start, int rangeLength) =>
9624 _Lists.getRange(this, start, rangeLength, <Node>[]); 10595 _Lists.getRange(this, start, rangeLength, <Node>[]);
9625 10596
9626 // -- end List<Node> mixins. 10597 // -- end List<Node> mixins.
9627 10598
9628 /** @domName HTMLCollection.item */ 10599 /** @domName HTMLCollection.item */
10600 /// @docsEditable
9629 Node item(int index) native; 10601 Node item(int index) native;
9630 10602
9631 /** @domName HTMLCollection.namedItem */ 10603 /** @domName HTMLCollection.namedItem */
10604 /// @docsEditable
9632 Node namedItem(String name) native; 10605 Node namedItem(String name) native;
9633 } 10606 }
9634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9635 // for details. All rights reserved. Use of this source code is governed by a 10608 // for details. All rights reserved. Use of this source code is governed by a
9636 // BSD-style license that can be found in the LICENSE file. 10609 // BSD-style license that can be found in the LICENSE file.
9637 10610
9638 10611
9639 /// @domName HTMLOptionsCollection 10612 /// @domName HTMLOptionsCollection
10613 /// @docsEditable
9640 class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio n" { 10614 class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio n" {
9641 10615
9642 // Shadowing definition. 10616 // Shadowing definition.
9643 /** @domName HTMLOptionsCollection.length */ 10617 /** @domName HTMLOptionsCollection.length */
10618 /// @docsEditable
9644 int get length => JS("int", "#.length", this); 10619 int get length => JS("int", "#.length", this);
9645 10620
9646 /** @domName HTMLOptionsCollection.length */ 10621 /** @domName HTMLOptionsCollection.length */
10622 /// @docsEditable
9647 void set length(int value) { 10623 void set length(int value) {
9648 JS("void", "#.length = #", this, value); 10624 JS("void", "#.length = #", this, value);
9649 } 10625 }
9650 10626
9651 /** @domName HTMLOptionsCollection.selectedIndex */ 10627 /** @domName HTMLOptionsCollection.selectedIndex */
10628 /// @docsEditable
9652 int selectedIndex; 10629 int selectedIndex;
9653 10630
9654 /** @domName HTMLOptionsCollection.remove */ 10631 /** @domName HTMLOptionsCollection.remove */
10632 /// @docsEditable
9655 void remove(int index) native; 10633 void remove(int index) native;
9656 } 10634 }
9657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9658 // for details. All rights reserved. Use of this source code is governed by a 10636 // for details. All rights reserved. Use of this source code is governed by a
9659 // BSD-style license that can be found in the LICENSE file. 10637 // BSD-style license that can be found in the LICENSE file.
9660 10638
9661 10639
9662 /// @domName HashChangeEvent 10640 /// @domName HashChangeEvent
10641 /// @docsEditable
9663 class HashChangeEvent extends Event native "*HashChangeEvent" { 10642 class HashChangeEvent extends Event native "*HashChangeEvent" {
9664 10643
9665 /** @domName HashChangeEvent.newURL */ 10644 /** @domName HashChangeEvent.newURL */
10645 /// @docsEditable
9666 final String newURL; 10646 final String newURL;
9667 10647
9668 /** @domName HashChangeEvent.oldURL */ 10648 /** @domName HashChangeEvent.oldURL */
10649 /// @docsEditable
9669 final String oldURL; 10650 final String oldURL;
9670 10651
9671 /** @domName HashChangeEvent.initHashChangeEvent */ 10652 /** @domName HashChangeEvent.initHashChangeEvent */
10653 /// @docsEditable
9672 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; 10654 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
9673 } 10655 }
9674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9675 // for details. All rights reserved. Use of this source code is governed by a 10657 // for details. All rights reserved. Use of this source code is governed by a
9676 // BSD-style license that can be found in the LICENSE file. 10658 // BSD-style license that can be found in the LICENSE file.
9677 10659
9678 10660
9679 /// @domName HTMLHeadElement 10661 /// @domName HTMLHeadElement
10662 /// @docsEditable
9680 class HeadElement extends Element implements Element native "*HTMLHeadElement" { 10663 class HeadElement extends Element implements Element native "*HTMLHeadElement" {
9681 10664
9682 factory HeadElement() => document.$dom_createElement("head"); 10665 factory HeadElement() => document.$dom_createElement("head");
9683 10666
9684 /** @domName HTMLHeadElement.profile */ 10667 /** @domName HTMLHeadElement.profile */
10668 /// @docsEditable
9685 String profile; 10669 String profile;
9686 } 10670 }
9687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9688 // for details. All rights reserved. Use of this source code is governed by a 10672 // for details. All rights reserved. Use of this source code is governed by a
9689 // BSD-style license that can be found in the LICENSE file. 10673 // BSD-style license that can be found in the LICENSE file.
9690 10674
9691 10675
9692 /// @domName HTMLHeadingElement 10676 /// @domName HTMLHeadingElement
10677 /// @docsEditable
9693 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" { 10678 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" {
9694 10679
9695 factory HeadingElement.h1() => document.$dom_createElement("h1"); 10680 factory HeadingElement.h1() => document.$dom_createElement("h1");
9696 10681
9697 factory HeadingElement.h2() => document.$dom_createElement("h2"); 10682 factory HeadingElement.h2() => document.$dom_createElement("h2");
9698 10683
9699 factory HeadingElement.h3() => document.$dom_createElement("h3"); 10684 factory HeadingElement.h3() => document.$dom_createElement("h3");
9700 10685
9701 factory HeadingElement.h4() => document.$dom_createElement("h4"); 10686 factory HeadingElement.h4() => document.$dom_createElement("h4");
9702 10687
9703 factory HeadingElement.h5() => document.$dom_createElement("h5"); 10688 factory HeadingElement.h5() => document.$dom_createElement("h5");
9704 10689
9705 factory HeadingElement.h6() => document.$dom_createElement("h6"); 10690 factory HeadingElement.h6() => document.$dom_createElement("h6");
9706 10691
9707 /** @domName HTMLHeadingElement.align */ 10692 /** @domName HTMLHeadingElement.align */
10693 /// @docsEditable
9708 String align; 10694 String align;
9709 } 10695 }
9710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9711 // for details. All rights reserved. Use of this source code is governed by a 10697 // for details. All rights reserved. Use of this source code is governed by a
9712 // BSD-style license that can be found in the LICENSE file. 10698 // BSD-style license that can be found in the LICENSE file.
9713 10699
9714 // WARNING: Do not edit - generated code. 10700 // WARNING: Do not edit - generated code.
9715 10701
9716 10702
9717 class HtmlDocument extends Document native "*HTMLDocument" { 10703 class HtmlDocument extends Document native "*HTMLDocument" {
9718 10704
9719 /** @domName HTMLDocument.activeElement */ 10705 /** @domName HTMLDocument.activeElement */
10706 /// @docsEditable
9720 final Element activeElement; 10707 final Element activeElement;
9721 10708
9722 /** @domName Document.body */ 10709 /** @domName Document.body */
9723 BodyElement get body => document.$dom_body; 10710 BodyElement get body => document.$dom_body;
9724 10711
9725 /** @domName Document.body */ 10712 /** @domName Document.body */
9726 void set body(BodyElement value) { 10713 void set body(BodyElement value) {
9727 document.$dom_body = value; 10714 document.$dom_body = value;
9728 } 10715 }
9729 10716
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
9790 10777
9791 /** @domName Document.webkitVisibilityState */ 10778 /** @domName Document.webkitVisibilityState */
9792 String get webkitVisibilityState => document.$dom_webkitVisibilityState; 10779 String get webkitVisibilityState => document.$dom_webkitVisibilityState;
9793 } 10780 }
9794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9795 // for details. All rights reserved. Use of this source code is governed by a 10782 // for details. All rights reserved. Use of this source code is governed by a
9796 // BSD-style license that can be found in the LICENSE file. 10783 // BSD-style license that can be found in the LICENSE file.
9797 10784
9798 10785
9799 /// @domName HTMLHtmlElement 10786 /// @domName HTMLHtmlElement
10787 /// @docsEditable
9800 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { 10788 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" {
9801 10789
9802 factory HtmlElement() => document.$dom_createElement("html"); 10790 factory HtmlElement() => document.$dom_createElement("html");
9803 } 10791 }
9804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9805 // for details. All rights reserved. Use of this source code is governed by a 10793 // for details. All rights reserved. Use of this source code is governed by a
9806 // BSD-style license that can be found in the LICENSE file. 10794 // BSD-style license that can be found in the LICENSE file.
9807 10795
9808 10796
9809 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 10797 class HttpRequest extends EventTarget native "*XMLHttpRequest" {
9810 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) => 10798 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) =>
9811 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess); 10799 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess);
9812 10800
9813 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque st)) => 10801 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque st)) =>
9814 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, onSu ccess); 10802 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, onSu ccess);
9815 10803
9816 10804
9817 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); 10805 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest();
9818 10806
9819 /** 10807 /**
9820 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10808 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
9821 */ 10809 */
10810 /// @docsEditable
9822 HttpRequestEvents get on => 10811 HttpRequestEvents get on =>
9823 new HttpRequestEvents(this); 10812 new HttpRequestEvents(this);
9824 10813
9825 static const int DONE = 4; 10814 static const int DONE = 4;
9826 10815
9827 static const int HEADERS_RECEIVED = 2; 10816 static const int HEADERS_RECEIVED = 2;
9828 10817
9829 static const int LOADING = 3; 10818 static const int LOADING = 3;
9830 10819
9831 static const int OPENED = 1; 10820 static const int OPENED = 1;
9832 10821
9833 static const int UNSENT = 0; 10822 static const int UNSENT = 0;
9834 10823
9835 /** @domName XMLHttpRequest.readyState */ 10824 /** @domName XMLHttpRequest.readyState */
10825 /// @docsEditable
9836 final int readyState; 10826 final int readyState;
9837 10827
9838 /** @domName XMLHttpRequest.response */ 10828 /** @domName XMLHttpRequest.response */
10829 /// @docsEditable
9839 final Object response; 10830 final Object response;
9840 10831
9841 /** @domName XMLHttpRequest.responseText */ 10832 /** @domName XMLHttpRequest.responseText */
10833 /// @docsEditable
9842 final String responseText; 10834 final String responseText;
9843 10835
9844 /** @domName XMLHttpRequest.responseType */ 10836 /** @domName XMLHttpRequest.responseType */
10837 /// @docsEditable
9845 String responseType; 10838 String responseType;
9846 10839
9847 /** @domName XMLHttpRequest.responseXML */ 10840 /** @domName XMLHttpRequest.responseXML */
10841 /// @docsEditable
9848 final Document responseXML; 10842 final Document responseXML;
9849 10843
9850 /** @domName XMLHttpRequest.status */ 10844 /** @domName XMLHttpRequest.status */
10845 /// @docsEditable
9851 final int status; 10846 final int status;
9852 10847
9853 /** @domName XMLHttpRequest.statusText */ 10848 /** @domName XMLHttpRequest.statusText */
10849 /// @docsEditable
9854 final String statusText; 10850 final String statusText;
9855 10851
9856 /** @domName XMLHttpRequest.upload */ 10852 /** @domName XMLHttpRequest.upload */
10853 /// @docsEditable
9857 final HttpRequestUpload upload; 10854 final HttpRequestUpload upload;
9858 10855
9859 /** @domName XMLHttpRequest.withCredentials */ 10856 /** @domName XMLHttpRequest.withCredentials */
10857 /// @docsEditable
9860 bool withCredentials; 10858 bool withCredentials;
9861 10859
9862 /** @domName XMLHttpRequest.abort */ 10860 /** @domName XMLHttpRequest.abort */
10861 /// @docsEditable
9863 void abort() native; 10862 void abort() native;
9864 10863
9865 /** @domName XMLHttpRequest.addEventListener */ 10864 /** @domName XMLHttpRequest.addEventListener */
10865 /// @docsEditable
9866 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 10866 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
9867 10867
9868 /** @domName XMLHttpRequest.dispatchEvent */ 10868 /** @domName XMLHttpRequest.dispatchEvent */
10869 /// @docsEditable
9869 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 10870 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
9870 10871
9871 /** @domName XMLHttpRequest.getAllResponseHeaders */ 10872 /** @domName XMLHttpRequest.getAllResponseHeaders */
10873 /// @docsEditable
9872 String getAllResponseHeaders() native; 10874 String getAllResponseHeaders() native;
9873 10875
9874 /** @domName XMLHttpRequest.getResponseHeader */ 10876 /** @domName XMLHttpRequest.getResponseHeader */
10877 /// @docsEditable
9875 String getResponseHeader(String header) native; 10878 String getResponseHeader(String header) native;
9876 10879
9877 /** @domName XMLHttpRequest.open */ 10880 /** @domName XMLHttpRequest.open */
10881 /// @docsEditable
9878 void open(String method, String url, [bool async, String user, String password ]) native; 10882 void open(String method, String url, [bool async, String user, String password ]) native;
9879 10883
9880 /** @domName XMLHttpRequest.overrideMimeType */ 10884 /** @domName XMLHttpRequest.overrideMimeType */
10885 /// @docsEditable
9881 void overrideMimeType(String override) native; 10886 void overrideMimeType(String override) native;
9882 10887
9883 /** @domName XMLHttpRequest.removeEventListener */ 10888 /** @domName XMLHttpRequest.removeEventListener */
10889 /// @docsEditable
9884 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 10890 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
9885 10891
9886 /** @domName XMLHttpRequest.send */ 10892 /** @domName XMLHttpRequest.send */
10893 /// @docsEditable
9887 void send([data]) native; 10894 void send([data]) native;
9888 10895
9889 /** @domName XMLHttpRequest.setRequestHeader */ 10896 /** @domName XMLHttpRequest.setRequestHeader */
10897 /// @docsEditable
9890 void setRequestHeader(String header, String value) native; 10898 void setRequestHeader(String header, String value) native;
9891 10899
9892 } 10900 }
9893 10901
9894 class HttpRequestEvents extends Events { 10902 class HttpRequestEvents extends Events {
9895 HttpRequestEvents(EventTarget _ptr) : super(_ptr); 10903 HttpRequestEvents(EventTarget _ptr) : super(_ptr);
9896 10904
9897 EventListenerList get abort => this['abort']; 10905 EventListenerList get abort => this['abort'];
9898 10906
9899 EventListenerList get error => this['error']; 10907 EventListenerList get error => this['error'];
9900 10908
9901 EventListenerList get load => this['load']; 10909 EventListenerList get load => this['load'];
9902 10910
9903 EventListenerList get loadEnd => this['loadend']; 10911 EventListenerList get loadEnd => this['loadend'];
9904 10912
9905 EventListenerList get loadStart => this['loadstart']; 10913 EventListenerList get loadStart => this['loadstart'];
9906 10914
9907 EventListenerList get progress => this['progress']; 10915 EventListenerList get progress => this['progress'];
9908 10916
9909 EventListenerList get readyStateChange => this['readystatechange']; 10917 EventListenerList get readyStateChange => this['readystatechange'];
9910 } 10918 }
9911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9912 // for details. All rights reserved. Use of this source code is governed by a 10920 // for details. All rights reserved. Use of this source code is governed by a
9913 // BSD-style license that can be found in the LICENSE file. 10921 // BSD-style license that can be found in the LICENSE file.
9914 10922
9915 10923
9916 /// @domName XMLHttpRequestException 10924 /// @domName XMLHttpRequestException
10925 /// @docsEditable
9917 class HttpRequestException native "*XMLHttpRequestException" { 10926 class HttpRequestException native "*XMLHttpRequestException" {
9918 10927
9919 static const int ABORT_ERR = 102; 10928 static const int ABORT_ERR = 102;
9920 10929
9921 static const int NETWORK_ERR = 101; 10930 static const int NETWORK_ERR = 101;
9922 10931
9923 /** @domName XMLHttpRequestException.code */ 10932 /** @domName XMLHttpRequestException.code */
10933 /// @docsEditable
9924 final int code; 10934 final int code;
9925 10935
9926 /** @domName XMLHttpRequestException.message */ 10936 /** @domName XMLHttpRequestException.message */
10937 /// @docsEditable
9927 final String message; 10938 final String message;
9928 10939
9929 /** @domName XMLHttpRequestException.name */ 10940 /** @domName XMLHttpRequestException.name */
10941 /// @docsEditable
9930 final String name; 10942 final String name;
9931 10943
9932 /** @domName XMLHttpRequestException.toString */ 10944 /** @domName XMLHttpRequestException.toString */
10945 /// @docsEditable
9933 String toString() native; 10946 String toString() native;
9934 } 10947 }
9935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9936 // for details. All rights reserved. Use of this source code is governed by a 10949 // for details. All rights reserved. Use of this source code is governed by a
9937 // BSD-style license that can be found in the LICENSE file. 10950 // BSD-style license that can be found in the LICENSE file.
9938 10951
9939 10952
9940 /// @domName XMLHttpRequestProgressEvent 10953 /// @domName XMLHttpRequestProgressEvent
10954 /// @docsEditable
9941 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" { 10955 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" {
9942 10956
9943 /** @domName XMLHttpRequestProgressEvent.position */ 10957 /** @domName XMLHttpRequestProgressEvent.position */
10958 /// @docsEditable
9944 final int position; 10959 final int position;
9945 10960
9946 /** @domName XMLHttpRequestProgressEvent.totalSize */ 10961 /** @domName XMLHttpRequestProgressEvent.totalSize */
10962 /// @docsEditable
9947 final int totalSize; 10963 final int totalSize;
9948 } 10964 }
9949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9950 // for details. All rights reserved. Use of this source code is governed by a 10966 // for details. All rights reserved. Use of this source code is governed by a
9951 // BSD-style license that can be found in the LICENSE file. 10967 // BSD-style license that can be found in the LICENSE file.
9952 10968
9953 10969
9954 /// @domName XMLHttpRequestUpload 10970 /// @domName XMLHttpRequestUpload
10971 /// @docsEditable
9955 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { 10972 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" {
9956 10973
9957 /** 10974 /**
9958 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10975 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
9959 */ 10976 */
10977 /// @docsEditable
9960 HttpRequestUploadEvents get on => 10978 HttpRequestUploadEvents get on =>
9961 new HttpRequestUploadEvents(this); 10979 new HttpRequestUploadEvents(this);
9962 10980
9963 /** @domName XMLHttpRequestUpload.addEventListener */ 10981 /** @domName XMLHttpRequestUpload.addEventListener */
10982 /// @docsEditable
9964 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 10983 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
9965 10984
9966 /** @domName XMLHttpRequestUpload.dispatchEvent */ 10985 /** @domName XMLHttpRequestUpload.dispatchEvent */
10986 /// @docsEditable
9967 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 10987 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
9968 10988
9969 /** @domName XMLHttpRequestUpload.removeEventListener */ 10989 /** @domName XMLHttpRequestUpload.removeEventListener */
10990 /// @docsEditable
9970 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 10991 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
9971 } 10992 }
9972 10993
9973 class HttpRequestUploadEvents extends Events { 10994 class HttpRequestUploadEvents extends Events {
9974 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); 10995 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr);
9975 10996
9976 EventListenerList get abort => this['abort']; 10997 EventListenerList get abort => this['abort'];
9977 10998
9978 EventListenerList get error => this['error']; 10999 EventListenerList get error => this['error'];
9979 11000
9980 EventListenerList get load => this['load']; 11001 EventListenerList get load => this['load'];
9981 11002
9982 EventListenerList get loadEnd => this['loadend']; 11003 EventListenerList get loadEnd => this['loadend'];
9983 11004
9984 EventListenerList get loadStart => this['loadstart']; 11005 EventListenerList get loadStart => this['loadstart'];
9985 11006
9986 EventListenerList get progress => this['progress']; 11007 EventListenerList get progress => this['progress'];
9987 } 11008 }
9988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9989 // for details. All rights reserved. Use of this source code is governed by a 11010 // for details. All rights reserved. Use of this source code is governed by a
9990 // BSD-style license that can be found in the LICENSE file. 11011 // BSD-style license that can be found in the LICENSE file.
9991 11012
9992 11013
9993 /// @domName IDBAny 11014 /// @domName IDBAny
11015 /// @docsEditable
9994 class IDBAny native "*IDBAny" { 11016 class IDBAny native "*IDBAny" {
9995 } 11017 }
9996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11018 // 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 11019 // 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. 11020 // BSD-style license that can be found in the LICENSE file.
9999 11021
10000 11022
10001 /// @domName IDBCursor 11023 /// @domName IDBCursor
11024 /// @docsEditable
10002 class IDBCursor native "*IDBCursor" { 11025 class IDBCursor native "*IDBCursor" {
10003 11026
10004 static const int NEXT = 0; 11027 static const int NEXT = 0;
10005 11028
10006 static const int NEXT_NO_DUPLICATE = 1; 11029 static const int NEXT_NO_DUPLICATE = 1;
10007 11030
10008 static const int PREV = 2; 11031 static const int PREV = 2;
10009 11032
10010 static const int PREV_NO_DUPLICATE = 3; 11033 static const int PREV_NO_DUPLICATE = 3;
10011 11034
10012 /** @domName IDBCursor.direction */ 11035 /** @domName IDBCursor.direction */
11036 /// @docsEditable
10013 final String direction; 11037 final String direction;
10014 11038
10015 /** @domName IDBCursor.key */ 11039 /** @domName IDBCursor.key */
11040 /// @docsEditable
10016 final Object key; 11041 final Object key;
10017 11042
10018 /** @domName IDBCursor.primaryKey */ 11043 /** @domName IDBCursor.primaryKey */
11044 /// @docsEditable
10019 final Object primaryKey; 11045 final Object primaryKey;
10020 11046
10021 /** @domName IDBCursor.source */ 11047 /** @domName IDBCursor.source */
11048 /// @docsEditable
10022 final dynamic source; 11049 final dynamic source;
10023 11050
10024 /** @domName IDBCursor.advance */ 11051 /** @domName IDBCursor.advance */
11052 /// @docsEditable
10025 void advance(int count) native; 11053 void advance(int count) native;
10026 11054
10027 /** @domName IDBCursor.continueFunction */ 11055 /** @domName IDBCursor.continueFunction */
11056 /// @docsEditable
10028 void continueFunction([/*IDBKey*/ key]) { 11057 void continueFunction([/*IDBKey*/ key]) {
10029 if (?key) { 11058 if (?key) {
10030 var key_1 = _convertDartToNative_IDBKey(key); 11059 var key_1 = _convertDartToNative_IDBKey(key);
10031 _continueFunction_1(key_1); 11060 _continueFunction_1(key_1);
10032 return; 11061 return;
10033 } 11062 }
10034 _continueFunction_2(); 11063 _continueFunction_2();
10035 return; 11064 return;
10036 } 11065 }
10037 void _continueFunction_1(key) native "continue"; 11066 void _continueFunction_1(key) native "continue";
10038 void _continueFunction_2() native "continue"; 11067 void _continueFunction_2() native "continue";
10039 11068
10040 /** @domName IDBCursor.delete */ 11069 /** @domName IDBCursor.delete */
11070 /// @docsEditable
10041 IDBRequest delete() native; 11071 IDBRequest delete() native;
10042 11072
10043 /** @domName IDBCursor.update */ 11073 /** @domName IDBCursor.update */
11074 /// @docsEditable
10044 IDBRequest update(/*any*/ value) { 11075 IDBRequest update(/*any*/ value) {
10045 var value_1 = _convertDartToNative_SerializedScriptValue(value); 11076 var value_1 = _convertDartToNative_SerializedScriptValue(value);
10046 return _update_1(value_1); 11077 return _update_1(value_1);
10047 } 11078 }
10048 IDBRequest _update_1(value) native "update"; 11079 IDBRequest _update_1(value) native "update";
10049 } 11080 }
10050 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10051 // for details. All rights reserved. Use of this source code is governed by a 11082 // for details. All rights reserved. Use of this source code is governed by a
10052 // BSD-style license that can be found in the LICENSE file. 11083 // BSD-style license that can be found in the LICENSE file.
10053 11084
10054 11085
10055 /// @domName IDBCursorWithValue 11086 /// @domName IDBCursorWithValue
11087 /// @docsEditable
10056 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { 11088 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" {
10057 11089
10058 /** @domName IDBCursorWithValue.value */ 11090 /** @domName IDBCursorWithValue.value */
11091 /// @docsEditable
10059 final Object value; 11092 final Object value;
10060 } 11093 }
10061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10062 // for details. All rights reserved. Use of this source code is governed by a 11095 // for details. All rights reserved. Use of this source code is governed by a
10063 // BSD-style license that can be found in the LICENSE file. 11096 // BSD-style license that can be found in the LICENSE file.
10064 11097
10065 11098
10066 class IDBDatabase extends EventTarget native "*IDBDatabase" { 11099 class IDBDatabase extends EventTarget native "*IDBDatabase" {
10067 11100
10068 IDBTransaction transaction(storeName_OR_storeNames, String mode) { 11101 IDBTransaction transaction(storeName_OR_storeNames, String mode) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
10103 11136
10104 IDBTransaction _transaction(stores, mode) native 'transaction'; 11137 IDBTransaction _transaction(stores, mode) native 'transaction';
10105 11138
10106 static bool _hasNumericMode(txn) => 11139 static bool _hasNumericMode(txn) =>
10107 JS('bool', 'typeof(#.mode) === "number"', txn); 11140 JS('bool', 'typeof(#.mode) === "number"', txn);
10108 11141
10109 11142
10110 /** 11143 /**
10111 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 11144 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10112 */ 11145 */
11146 /// @docsEditable
10113 IDBDatabaseEvents get on => 11147 IDBDatabaseEvents get on =>
10114 new IDBDatabaseEvents(this); 11148 new IDBDatabaseEvents(this);
10115 11149
10116 /** @domName IDBDatabase.name */ 11150 /** @domName IDBDatabase.name */
11151 /// @docsEditable
10117 final String name; 11152 final String name;
10118 11153
10119 /** @domName IDBDatabase.objectStoreNames */ 11154 /** @domName IDBDatabase.objectStoreNames */
11155 /// @docsEditable
10120 final List<String> objectStoreNames; 11156 final List<String> objectStoreNames;
10121 11157
10122 /** @domName IDBDatabase.version */ 11158 /** @domName IDBDatabase.version */
11159 /// @docsEditable
10123 final dynamic version; 11160 final dynamic version;
10124 11161
10125 /** @domName IDBDatabase.addEventListener */ 11162 /** @domName IDBDatabase.addEventListener */
11163 /// @docsEditable
10126 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 11164 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10127 11165
10128 /** @domName IDBDatabase.close */ 11166 /** @domName IDBDatabase.close */
11167 /// @docsEditable
10129 void close() native; 11168 void close() native;
10130 11169
10131 /** @domName IDBDatabase.createObjectStore */ 11170 /** @domName IDBDatabase.createObjectStore */
11171 /// @docsEditable
10132 IDBObjectStore createObjectStore(String name, [Map options]) { 11172 IDBObjectStore createObjectStore(String name, [Map options]) {
10133 if (?options) { 11173 if (?options) {
10134 var options_1 = _convertDartToNative_Dictionary(options); 11174 var options_1 = _convertDartToNative_Dictionary(options);
10135 return _createObjectStore_1(name, options_1); 11175 return _createObjectStore_1(name, options_1);
10136 } 11176 }
10137 return _createObjectStore_2(name); 11177 return _createObjectStore_2(name);
10138 } 11178 }
10139 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; 11179 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore";
10140 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; 11180 IDBObjectStore _createObjectStore_2(name) native "createObjectStore";
10141 11181
10142 /** @domName IDBDatabase.deleteObjectStore */ 11182 /** @domName IDBDatabase.deleteObjectStore */
11183 /// @docsEditable
10143 void deleteObjectStore(String name) native; 11184 void deleteObjectStore(String name) native;
10144 11185
10145 /** @domName IDBDatabase.dispatchEvent */ 11186 /** @domName IDBDatabase.dispatchEvent */
11187 /// @docsEditable
10146 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 11188 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
10147 11189
10148 /** @domName IDBDatabase.removeEventListener */ 11190 /** @domName IDBDatabase.removeEventListener */
11191 /// @docsEditable
10149 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 11192 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
10150 11193
10151 /** @domName IDBDatabase.setVersion */ 11194 /** @domName IDBDatabase.setVersion */
11195 /// @docsEditable
10152 IDBVersionChangeRequest setVersion(String version) native; 11196 IDBVersionChangeRequest setVersion(String version) native;
10153 } 11197 }
10154 11198
10155 // TODO(sra): This should be a static member of IDBTransaction but dart2js 11199 // TODO(sra): This should be a static member of IDBTransaction but dart2js
10156 // can't handle that. Move it back after dart2js is completely done. 11200 // can't handle that. Move it back after dart2js is completely done.
10157 var _transaction_fn; // Assigned one of the static methods. 11201 var _transaction_fn; // Assigned one of the static methods.
10158 11202
10159 class IDBDatabaseEvents extends Events { 11203 class IDBDatabaseEvents extends Events {
10160 IDBDatabaseEvents(EventTarget _ptr) : super(_ptr); 11204 IDBDatabaseEvents(EventTarget _ptr) : super(_ptr);
10161 11205
10162 EventListenerList get abort => this['abort']; 11206 EventListenerList get abort => this['abort'];
10163 11207
10164 EventListenerList get error => this['error']; 11208 EventListenerList get error => this['error'];
10165 11209
10166 EventListenerList get versionChange => this['versionchange']; 11210 EventListenerList get versionChange => this['versionchange'];
10167 } 11211 }
10168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10169 // for details. All rights reserved. Use of this source code is governed by a 11213 // for details. All rights reserved. Use of this source code is governed by a
10170 // BSD-style license that can be found in the LICENSE file. 11214 // BSD-style license that can be found in the LICENSE file.
10171 11215
10172 11216
10173 /// @domName IDBDatabaseException 11217 /// @domName IDBDatabaseException
11218 /// @docsEditable
10174 class IDBDatabaseException native "*IDBDatabaseException" { 11219 class IDBDatabaseException native "*IDBDatabaseException" {
10175 11220
10176 static const int ABORT_ERR = 20; 11221 static const int ABORT_ERR = 20;
10177 11222
10178 static const int CONSTRAINT_ERR = 4; 11223 static const int CONSTRAINT_ERR = 4;
10179 11224
10180 static const int DATA_ERR = 5; 11225 static const int DATA_ERR = 5;
10181 11226
10182 static const int NON_TRANSIENT_ERR = 2; 11227 static const int NON_TRANSIENT_ERR = 2;
10183 11228
10184 static const int NOT_ALLOWED_ERR = 6; 11229 static const int NOT_ALLOWED_ERR = 6;
10185 11230
10186 static const int NOT_FOUND_ERR = 8; 11231 static const int NOT_FOUND_ERR = 8;
10187 11232
10188 static const int NO_ERR = 0; 11233 static const int NO_ERR = 0;
10189 11234
10190 static const int QUOTA_ERR = 22; 11235 static const int QUOTA_ERR = 22;
10191 11236
10192 static const int READ_ONLY_ERR = 9; 11237 static const int READ_ONLY_ERR = 9;
10193 11238
10194 static const int TIMEOUT_ERR = 23; 11239 static const int TIMEOUT_ERR = 23;
10195 11240
10196 static const int TRANSACTION_INACTIVE_ERR = 7; 11241 static const int TRANSACTION_INACTIVE_ERR = 7;
10197 11242
10198 static const int UNKNOWN_ERR = 1; 11243 static const int UNKNOWN_ERR = 1;
10199 11244
10200 static const int VER_ERR = 12; 11245 static const int VER_ERR = 12;
10201 11246
10202 /** @domName IDBDatabaseException.code */ 11247 /** @domName IDBDatabaseException.code */
11248 /// @docsEditable
10203 final int code; 11249 final int code;
10204 11250
10205 /** @domName IDBDatabaseException.message */ 11251 /** @domName IDBDatabaseException.message */
11252 /// @docsEditable
10206 final String message; 11253 final String message;
10207 11254
10208 /** @domName IDBDatabaseException.name */ 11255 /** @domName IDBDatabaseException.name */
11256 /// @docsEditable
10209 final String name; 11257 final String name;
10210 11258
10211 /** @domName IDBDatabaseException.toString */ 11259 /** @domName IDBDatabaseException.toString */
11260 /// @docsEditable
10212 String toString() native; 11261 String toString() native;
10213 } 11262 }
10214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10215 // for details. All rights reserved. Use of this source code is governed by a 11264 // for details. All rights reserved. Use of this source code is governed by a
10216 // BSD-style license that can be found in the LICENSE file. 11265 // BSD-style license that can be found in the LICENSE file.
10217 11266
10218 11267
10219 /// @domName IDBFactory 11268 /// @domName IDBFactory
11269 /// @docsEditable
10220 class IDBFactory native "*IDBFactory" { 11270 class IDBFactory native "*IDBFactory" {
10221 11271
10222 /** @domName IDBFactory.cmp */ 11272 /** @domName IDBFactory.cmp */
11273 /// @docsEditable
10223 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { 11274 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) {
10224 var first_1 = _convertDartToNative_IDBKey(first); 11275 var first_1 = _convertDartToNative_IDBKey(first);
10225 var second_2 = _convertDartToNative_IDBKey(second); 11276 var second_2 = _convertDartToNative_IDBKey(second);
10226 return _cmp_1(first_1, second_2); 11277 return _cmp_1(first_1, second_2);
10227 } 11278 }
10228 int _cmp_1(first, second) native "cmp"; 11279 int _cmp_1(first, second) native "cmp";
10229 11280
10230 /** @domName IDBFactory.deleteDatabase */ 11281 /** @domName IDBFactory.deleteDatabase */
11282 /// @docsEditable
10231 IDBVersionChangeRequest deleteDatabase(String name) native; 11283 IDBVersionChangeRequest deleteDatabase(String name) native;
10232 11284
10233 /** @domName IDBFactory.open */ 11285 /** @domName IDBFactory.open */
11286 /// @docsEditable
10234 IDBOpenDBRequest open(String name, [int version]) native; 11287 IDBOpenDBRequest open(String name, [int version]) native;
10235 11288
10236 /** @domName IDBFactory.webkitGetDatabaseNames */ 11289 /** @domName IDBFactory.webkitGetDatabaseNames */
11290 /// @docsEditable
10237 IDBRequest webkitGetDatabaseNames() native; 11291 IDBRequest webkitGetDatabaseNames() native;
10238 } 11292 }
10239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10240 // for details. All rights reserved. Use of this source code is governed by a 11294 // for details. All rights reserved. Use of this source code is governed by a
10241 // BSD-style license that can be found in the LICENSE file. 11295 // BSD-style license that can be found in the LICENSE file.
10242 11296
10243 11297
10244 /// @domName IDBIndex 11298 /// @domName IDBIndex
11299 /// @docsEditable
10245 class IDBIndex native "*IDBIndex" { 11300 class IDBIndex native "*IDBIndex" {
10246 11301
10247 /** @domName IDBIndex.keyPath */ 11302 /** @domName IDBIndex.keyPath */
11303 /// @docsEditable
10248 final dynamic keyPath; 11304 final dynamic keyPath;
10249 11305
10250 /** @domName IDBIndex.multiEntry */ 11306 /** @domName IDBIndex.multiEntry */
11307 /// @docsEditable
10251 final bool multiEntry; 11308 final bool multiEntry;
10252 11309
10253 /** @domName IDBIndex.name */ 11310 /** @domName IDBIndex.name */
11311 /// @docsEditable
10254 final String name; 11312 final String name;
10255 11313
10256 /** @domName IDBIndex.objectStore */ 11314 /** @domName IDBIndex.objectStore */
11315 /// @docsEditable
10257 final IDBObjectStore objectStore; 11316 final IDBObjectStore objectStore;
10258 11317
10259 /** @domName IDBIndex.unique */ 11318 /** @domName IDBIndex.unique */
11319 /// @docsEditable
10260 final bool unique; 11320 final bool unique;
10261 11321
10262 /** @domName IDBIndex.count */ 11322 /** @domName IDBIndex.count */
11323 /// @docsEditable
10263 IDBRequest count([key_OR_range]) { 11324 IDBRequest count([key_OR_range]) {
10264 if (!?key_OR_range) { 11325 if (!?key_OR_range) {
10265 return _count_1(); 11326 return _count_1();
10266 } 11327 }
10267 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 11328 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
10268 return _count_2(key_OR_range); 11329 return _count_2(key_OR_range);
10269 } 11330 }
10270 if (?key_OR_range) { 11331 if (?key_OR_range) {
10271 var key_1 = _convertDartToNative_IDBKey(key_OR_range); 11332 var key_1 = _convertDartToNative_IDBKey(key_OR_range);
10272 return _count_3(key_1); 11333 return _count_3(key_1);
10273 } 11334 }
10274 throw new ArgumentError("Incorrect number or type of arguments"); 11335 throw new ArgumentError("Incorrect number or type of arguments");
10275 } 11336 }
10276 IDBRequest _count_1() native "count"; 11337 IDBRequest _count_1() native "count";
10277 IDBRequest _count_2(IDBKeyRange range) native "count"; 11338 IDBRequest _count_2(IDBKeyRange range) native "count";
10278 IDBRequest _count_3(key) native "count"; 11339 IDBRequest _count_3(key) native "count";
10279 11340
10280 /** @domName IDBIndex.get */ 11341 /** @domName IDBIndex.get */
11342 /// @docsEditable
10281 IDBRequest get(key) { 11343 IDBRequest get(key) {
10282 if ((?key && (key is IDBKeyRange || key == null))) { 11344 if ((?key && (key is IDBKeyRange || key == null))) {
10283 return _get_1(key); 11345 return _get_1(key);
10284 } 11346 }
10285 if (?key) { 11347 if (?key) {
10286 var key_1 = _convertDartToNative_IDBKey(key); 11348 var key_1 = _convertDartToNative_IDBKey(key);
10287 return _get_2(key_1); 11349 return _get_2(key_1);
10288 } 11350 }
10289 throw new ArgumentError("Incorrect number or type of arguments"); 11351 throw new ArgumentError("Incorrect number or type of arguments");
10290 } 11352 }
10291 IDBRequest _get_1(IDBKeyRange key) native "get"; 11353 IDBRequest _get_1(IDBKeyRange key) native "get";
10292 IDBRequest _get_2(key) native "get"; 11354 IDBRequest _get_2(key) native "get";
10293 11355
10294 /** @domName IDBIndex.getKey */ 11356 /** @domName IDBIndex.getKey */
11357 /// @docsEditable
10295 IDBRequest getKey(key) { 11358 IDBRequest getKey(key) {
10296 if ((?key && (key is IDBKeyRange || key == null))) { 11359 if ((?key && (key is IDBKeyRange || key == null))) {
10297 return _getKey_1(key); 11360 return _getKey_1(key);
10298 } 11361 }
10299 if (?key) { 11362 if (?key) {
10300 var key_1 = _convertDartToNative_IDBKey(key); 11363 var key_1 = _convertDartToNative_IDBKey(key);
10301 return _getKey_2(key_1); 11364 return _getKey_2(key_1);
10302 } 11365 }
10303 throw new ArgumentError("Incorrect number or type of arguments"); 11366 throw new ArgumentError("Incorrect number or type of arguments");
10304 } 11367 }
10305 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; 11368 IDBRequest _getKey_1(IDBKeyRange key) native "getKey";
10306 IDBRequest _getKey_2(key) native "getKey"; 11369 IDBRequest _getKey_2(key) native "getKey";
10307 11370
10308 /** @domName IDBIndex.openCursor */ 11371 /** @domName IDBIndex.openCursor */
11372 /// @docsEditable
10309 IDBRequest openCursor([key_OR_range, String direction]) { 11373 IDBRequest openCursor([key_OR_range, String direction]) {
10310 if (!?key_OR_range && 11374 if (!?key_OR_range &&
10311 !?direction) { 11375 !?direction) {
10312 return _openCursor_1(); 11376 return _openCursor_1();
10313 } 11377 }
10314 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 11378 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
10315 !?direction) { 11379 !?direction) {
10316 return _openCursor_2(key_OR_range); 11380 return _openCursor_2(key_OR_range);
10317 } 11381 }
10318 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 11382 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
(...skipping 10 matching lines...) Expand all
10329 } 11393 }
10330 throw new ArgumentError("Incorrect number or type of arguments"); 11394 throw new ArgumentError("Incorrect number or type of arguments");
10331 } 11395 }
10332 IDBRequest _openCursor_1() native "openCursor"; 11396 IDBRequest _openCursor_1() native "openCursor";
10333 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; 11397 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor";
10334 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; 11398 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor";
10335 IDBRequest _openCursor_4(key) native "openCursor"; 11399 IDBRequest _openCursor_4(key) native "openCursor";
10336 IDBRequest _openCursor_5(key, direction) native "openCursor"; 11400 IDBRequest _openCursor_5(key, direction) native "openCursor";
10337 11401
10338 /** @domName IDBIndex.openKeyCursor */ 11402 /** @domName IDBIndex.openKeyCursor */
11403 /// @docsEditable
10339 IDBRequest openKeyCursor([key_OR_range, String direction]) { 11404 IDBRequest openKeyCursor([key_OR_range, String direction]) {
10340 if (!?key_OR_range && 11405 if (!?key_OR_range &&
10341 !?direction) { 11406 !?direction) {
10342 return _openKeyCursor_1(); 11407 return _openKeyCursor_1();
10343 } 11408 }
10344 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 11409 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
10345 !?direction) { 11410 !?direction) {
10346 return _openKeyCursor_2(key_OR_range); 11411 return _openKeyCursor_2(key_OR_range);
10347 } 11412 }
10348 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 11413 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
(...skipping 15 matching lines...) Expand all
10364 IDBRequest _openKeyCursor_3(IDBKeyRange range, direction) native "openKeyCurso r"; 11429 IDBRequest _openKeyCursor_3(IDBKeyRange range, direction) native "openKeyCurso r";
10365 IDBRequest _openKeyCursor_4(key) native "openKeyCursor"; 11430 IDBRequest _openKeyCursor_4(key) native "openKeyCursor";
10366 IDBRequest _openKeyCursor_5(key, direction) native "openKeyCursor"; 11431 IDBRequest _openKeyCursor_5(key, direction) native "openKeyCursor";
10367 } 11432 }
10368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10369 // for details. All rights reserved. Use of this source code is governed by a 11434 // for details. All rights reserved. Use of this source code is governed by a
10370 // BSD-style license that can be found in the LICENSE file. 11435 // BSD-style license that can be found in the LICENSE file.
10371 11436
10372 11437
10373 /// @domName IDBKey 11438 /// @domName IDBKey
11439 /// @docsEditable
10374 class IDBKey native "*IDBKey" { 11440 class IDBKey native "*IDBKey" {
10375 } 11441 }
10376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10377 // for details. All rights reserved. Use of this source code is governed by a 11443 // for details. All rights reserved. Use of this source code is governed by a
10378 // BSD-style license that can be found in the LICENSE file. 11444 // BSD-style license that can be found in the LICENSE file.
10379 11445
10380 11446
10381 class IDBKeyRange native "*IDBKeyRange" { 11447 class IDBKeyRange native "*IDBKeyRange" {
10382 /** 11448 /**
10383 * @domName IDBKeyRange.only 11449 * @domName IDBKeyRange.only
(...skipping 16 matching lines...) Expand all
10400 /** 11466 /**
10401 * @domName IDBKeyRange.bound 11467 * @domName IDBKeyRange.bound
10402 */ 11468 */
10403 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, 11469 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
10404 [bool lowerOpen = false, bool upperOpen = false]) => 11470 [bool lowerOpen = false, bool upperOpen = false]) =>
10405 _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound( 11471 _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound(
10406 lower, upper, lowerOpen, upperOpen); 11472 lower, upper, lowerOpen, upperOpen);
10407 11473
10408 11474
10409 /** @domName IDBKeyRange.lower */ 11475 /** @domName IDBKeyRange.lower */
11476 /// @docsEditable
10410 dynamic get lower => _convertNativeToDart_IDBKey(this._lower); 11477 dynamic get lower => _convertNativeToDart_IDBKey(this._lower);
10411 dynamic get _lower => JS("dynamic", "#.lower", this); 11478 dynamic get _lower => JS("dynamic", "#.lower", this);
10412 11479
10413 /** @domName IDBKeyRange.lowerOpen */ 11480 /** @domName IDBKeyRange.lowerOpen */
11481 /// @docsEditable
10414 final bool lowerOpen; 11482 final bool lowerOpen;
10415 11483
10416 /** @domName IDBKeyRange.upper */ 11484 /** @domName IDBKeyRange.upper */
11485 /// @docsEditable
10417 dynamic get upper => _convertNativeToDart_IDBKey(this._upper); 11486 dynamic get upper => _convertNativeToDart_IDBKey(this._upper);
10418 dynamic get _upper => JS("dynamic", "#.upper", this); 11487 dynamic get _upper => JS("dynamic", "#.upper", this);
10419 11488
10420 /** @domName IDBKeyRange.upperOpen */ 11489 /** @domName IDBKeyRange.upperOpen */
11490 /// @docsEditable
10421 final bool upperOpen; 11491 final bool upperOpen;
10422 11492
10423 /** @domName IDBKeyRange.bound_ */ 11493 /** @domName IDBKeyRange.bound_ */
11494 /// @docsEditable
10424 static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) { 11495 static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) {
10425 if (?upperOpen) { 11496 if (?upperOpen) {
10426 var lower_1 = _convertDartToNative_IDBKey(lower); 11497 var lower_1 = _convertDartToNative_IDBKey(lower);
10427 var upper_2 = _convertDartToNative_IDBKey(upper); 11498 var upper_2 = _convertDartToNative_IDBKey(upper);
10428 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); 11499 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen);
10429 } 11500 }
10430 if (?lowerOpen) { 11501 if (?lowerOpen) {
10431 var lower_3 = _convertDartToNative_IDBKey(lower); 11502 var lower_3 = _convertDartToNative_IDBKey(lower);
10432 var upper_4 = _convertDartToNative_IDBKey(upper); 11503 var upper_4 = _convertDartToNative_IDBKey(upper);
10433 return _bound__2(lower_3, upper_4, lowerOpen); 11504 return _bound__2(lower_3, upper_4, lowerOpen);
10434 } 11505 }
10435 var lower_5 = _convertDartToNative_IDBKey(lower); 11506 var lower_5 = _convertDartToNative_IDBKey(lower);
10436 var upper_6 = _convertDartToNative_IDBKey(upper); 11507 var upper_6 = _convertDartToNative_IDBKey(upper);
10437 return _bound__3(lower_5, upper_6); 11508 return _bound__3(lower_5, upper_6);
10438 } 11509 }
10439 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound "; 11510 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound ";
10440 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; 11511 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound";
10441 static IDBKeyRange _bound__3(lower, upper) native "bound"; 11512 static IDBKeyRange _bound__3(lower, upper) native "bound";
10442 11513
10443 /** @domName IDBKeyRange.lowerBound_ */ 11514 /** @domName IDBKeyRange.lowerBound_ */
11515 /// @docsEditable
10444 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { 11516 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) {
10445 if (?open) { 11517 if (?open) {
10446 var bound_1 = _convertDartToNative_IDBKey(bound); 11518 var bound_1 = _convertDartToNative_IDBKey(bound);
10447 return _lowerBound__1(bound_1, open); 11519 return _lowerBound__1(bound_1, open);
10448 } 11520 }
10449 var bound_2 = _convertDartToNative_IDBKey(bound); 11521 var bound_2 = _convertDartToNative_IDBKey(bound);
10450 return _lowerBound__2(bound_2); 11522 return _lowerBound__2(bound_2);
10451 } 11523 }
10452 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; 11524 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound";
10453 static IDBKeyRange _lowerBound__2(bound) native "lowerBound"; 11525 static IDBKeyRange _lowerBound__2(bound) native "lowerBound";
10454 11526
10455 /** @domName IDBKeyRange.only_ */ 11527 /** @domName IDBKeyRange.only_ */
11528 /// @docsEditable
10456 static IDBKeyRange only_(/*IDBKey*/ value) { 11529 static IDBKeyRange only_(/*IDBKey*/ value) {
10457 var value_1 = _convertDartToNative_IDBKey(value); 11530 var value_1 = _convertDartToNative_IDBKey(value);
10458 return _only__1(value_1); 11531 return _only__1(value_1);
10459 } 11532 }
10460 static IDBKeyRange _only__1(value) native "only"; 11533 static IDBKeyRange _only__1(value) native "only";
10461 11534
10462 /** @domName IDBKeyRange.upperBound_ */ 11535 /** @domName IDBKeyRange.upperBound_ */
11536 /// @docsEditable
10463 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { 11537 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) {
10464 if (?open) { 11538 if (?open) {
10465 var bound_1 = _convertDartToNative_IDBKey(bound); 11539 var bound_1 = _convertDartToNative_IDBKey(bound);
10466 return _upperBound__1(bound_1, open); 11540 return _upperBound__1(bound_1, open);
10467 } 11541 }
10468 var bound_2 = _convertDartToNative_IDBKey(bound); 11542 var bound_2 = _convertDartToNative_IDBKey(bound);
10469 return _upperBound__2(bound_2); 11543 return _upperBound__2(bound_2);
10470 } 11544 }
10471 static IDBKeyRange _upperBound__1(bound, open) native "upperBound"; 11545 static IDBKeyRange _upperBound__1(bound, open) native "upperBound";
10472 static IDBKeyRange _upperBound__2(bound) native "upperBound"; 11546 static IDBKeyRange _upperBound__2(bound) native "upperBound";
10473 11547
10474 } 11548 }
10475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10476 // for details. All rights reserved. Use of this source code is governed by a 11550 // for details. All rights reserved. Use of this source code is governed by a
10477 // BSD-style license that can be found in the LICENSE file. 11551 // BSD-style license that can be found in the LICENSE file.
10478 11552
10479 11553
10480 /// @domName IDBObjectStore 11554 /// @domName IDBObjectStore
11555 /// @docsEditable
10481 class IDBObjectStore native "*IDBObjectStore" { 11556 class IDBObjectStore native "*IDBObjectStore" {
10482 11557
10483 /** @domName IDBObjectStore.autoIncrement */ 11558 /** @domName IDBObjectStore.autoIncrement */
11559 /// @docsEditable
10484 final bool autoIncrement; 11560 final bool autoIncrement;
10485 11561
10486 /** @domName IDBObjectStore.indexNames */ 11562 /** @domName IDBObjectStore.indexNames */
11563 /// @docsEditable
10487 final List<String> indexNames; 11564 final List<String> indexNames;
10488 11565
10489 /** @domName IDBObjectStore.keyPath */ 11566 /** @domName IDBObjectStore.keyPath */
11567 /// @docsEditable
10490 final dynamic keyPath; 11568 final dynamic keyPath;
10491 11569
10492 /** @domName IDBObjectStore.name */ 11570 /** @domName IDBObjectStore.name */
11571 /// @docsEditable
10493 final String name; 11572 final String name;
10494 11573
10495 /** @domName IDBObjectStore.transaction */ 11574 /** @domName IDBObjectStore.transaction */
11575 /// @docsEditable
10496 final IDBTransaction transaction; 11576 final IDBTransaction transaction;
10497 11577
10498 /** @domName IDBObjectStore.add */ 11578 /** @domName IDBObjectStore.add */
11579 /// @docsEditable
10499 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { 11580 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) {
10500 if (?key) { 11581 if (?key) {
10501 var value_1 = _convertDartToNative_SerializedScriptValue(value); 11582 var value_1 = _convertDartToNative_SerializedScriptValue(value);
10502 var key_2 = _convertDartToNative_IDBKey(key); 11583 var key_2 = _convertDartToNative_IDBKey(key);
10503 return _add_1(value_1, key_2); 11584 return _add_1(value_1, key_2);
10504 } 11585 }
10505 var value_3 = _convertDartToNative_SerializedScriptValue(value); 11586 var value_3 = _convertDartToNative_SerializedScriptValue(value);
10506 return _add_2(value_3); 11587 return _add_2(value_3);
10507 } 11588 }
10508 IDBRequest _add_1(value, key) native "add"; 11589 IDBRequest _add_1(value, key) native "add";
10509 IDBRequest _add_2(value) native "add"; 11590 IDBRequest _add_2(value) native "add";
10510 11591
10511 /** @domName IDBObjectStore.clear */ 11592 /** @domName IDBObjectStore.clear */
11593 /// @docsEditable
10512 IDBRequest clear() native; 11594 IDBRequest clear() native;
10513 11595
10514 /** @domName IDBObjectStore.count */ 11596 /** @domName IDBObjectStore.count */
11597 /// @docsEditable
10515 IDBRequest count([key_OR_range]) { 11598 IDBRequest count([key_OR_range]) {
10516 if (!?key_OR_range) { 11599 if (!?key_OR_range) {
10517 return _count_1(); 11600 return _count_1();
10518 } 11601 }
10519 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 11602 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
10520 return _count_2(key_OR_range); 11603 return _count_2(key_OR_range);
10521 } 11604 }
10522 if (?key_OR_range) { 11605 if (?key_OR_range) {
10523 var key_1 = _convertDartToNative_IDBKey(key_OR_range); 11606 var key_1 = _convertDartToNative_IDBKey(key_OR_range);
10524 return _count_3(key_1); 11607 return _count_3(key_1);
10525 } 11608 }
10526 throw new ArgumentError("Incorrect number or type of arguments"); 11609 throw new ArgumentError("Incorrect number or type of arguments");
10527 } 11610 }
10528 IDBRequest _count_1() native "count"; 11611 IDBRequest _count_1() native "count";
10529 IDBRequest _count_2(IDBKeyRange range) native "count"; 11612 IDBRequest _count_2(IDBKeyRange range) native "count";
10530 IDBRequest _count_3(key) native "count"; 11613 IDBRequest _count_3(key) native "count";
10531 11614
10532 /** @domName IDBObjectStore.createIndex */ 11615 /** @domName IDBObjectStore.createIndex */
11616 /// @docsEditable
10533 IDBIndex createIndex(String name, keyPath, [Map options]) { 11617 IDBIndex createIndex(String name, keyPath, [Map options]) {
10534 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && 11618 if ((?keyPath && (keyPath is List<String> || keyPath == null)) &&
10535 !?options) { 11619 !?options) {
10536 List keyPath_1 = _convertDartToNative_StringArray(keyPath); 11620 List keyPath_1 = _convertDartToNative_StringArray(keyPath);
10537 return _createIndex_1(name, keyPath_1); 11621 return _createIndex_1(name, keyPath_1);
10538 } 11622 }
10539 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { 11623 if ((?keyPath && (keyPath is List<String> || keyPath == null))) {
10540 List keyPath_2 = _convertDartToNative_StringArray(keyPath); 11624 List keyPath_2 = _convertDartToNative_StringArray(keyPath);
10541 var options_3 = _convertDartToNative_Dictionary(options); 11625 var options_3 = _convertDartToNative_Dictionary(options);
10542 return _createIndex_2(name, keyPath_2, options_3); 11626 return _createIndex_2(name, keyPath_2, options_3);
10543 } 11627 }
10544 if ((?keyPath && (keyPath is String || keyPath == null)) && 11628 if ((?keyPath && (keyPath is String || keyPath == null)) &&
10545 !?options) { 11629 !?options) {
10546 return _createIndex_3(name, keyPath); 11630 return _createIndex_3(name, keyPath);
10547 } 11631 }
10548 if ((?keyPath && (keyPath is String || keyPath == null))) { 11632 if ((?keyPath && (keyPath is String || keyPath == null))) {
10549 var options_4 = _convertDartToNative_Dictionary(options); 11633 var options_4 = _convertDartToNative_Dictionary(options);
10550 return _createIndex_4(name, keyPath, options_4); 11634 return _createIndex_4(name, keyPath, options_4);
10551 } 11635 }
10552 throw new ArgumentError("Incorrect number or type of arguments"); 11636 throw new ArgumentError("Incorrect number or type of arguments");
10553 } 11637 }
10554 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; 11638 IDBIndex _createIndex_1(name, List keyPath) native "createIndex";
10555 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; 11639 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex";
10556 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; 11640 IDBIndex _createIndex_3(name, String keyPath) native "createIndex";
10557 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; 11641 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex";
10558 11642
10559 /** @domName IDBObjectStore.delete */ 11643 /** @domName IDBObjectStore.delete */
11644 /// @docsEditable
10560 IDBRequest delete(key_OR_keyRange) { 11645 IDBRequest delete(key_OR_keyRange) {
10561 if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null))) { 11646 if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null))) {
10562 return _delete_1(key_OR_keyRange); 11647 return _delete_1(key_OR_keyRange);
10563 } 11648 }
10564 if (?key_OR_keyRange) { 11649 if (?key_OR_keyRange) {
10565 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); 11650 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange);
10566 return _delete_2(key_1); 11651 return _delete_2(key_1);
10567 } 11652 }
10568 throw new ArgumentError("Incorrect number or type of arguments"); 11653 throw new ArgumentError("Incorrect number or type of arguments");
10569 } 11654 }
10570 IDBRequest _delete_1(IDBKeyRange keyRange) native "delete"; 11655 IDBRequest _delete_1(IDBKeyRange keyRange) native "delete";
10571 IDBRequest _delete_2(key) native "delete"; 11656 IDBRequest _delete_2(key) native "delete";
10572 11657
10573 /** @domName IDBObjectStore.deleteIndex */ 11658 /** @domName IDBObjectStore.deleteIndex */
11659 /// @docsEditable
10574 void deleteIndex(String name) native; 11660 void deleteIndex(String name) native;
10575 11661
10576 /** @domName IDBObjectStore.getObject */ 11662 /** @domName IDBObjectStore.getObject */
11663 /// @docsEditable
10577 IDBRequest getObject(key) { 11664 IDBRequest getObject(key) {
10578 if ((?key && (key is IDBKeyRange || key == null))) { 11665 if ((?key && (key is IDBKeyRange || key == null))) {
10579 return _getObject_1(key); 11666 return _getObject_1(key);
10580 } 11667 }
10581 if (?key) { 11668 if (?key) {
10582 var key_1 = _convertDartToNative_IDBKey(key); 11669 var key_1 = _convertDartToNative_IDBKey(key);
10583 return _getObject_2(key_1); 11670 return _getObject_2(key_1);
10584 } 11671 }
10585 throw new ArgumentError("Incorrect number or type of arguments"); 11672 throw new ArgumentError("Incorrect number or type of arguments");
10586 } 11673 }
10587 IDBRequest _getObject_1(IDBKeyRange key) native "get"; 11674 IDBRequest _getObject_1(IDBKeyRange key) native "get";
10588 IDBRequest _getObject_2(key) native "get"; 11675 IDBRequest _getObject_2(key) native "get";
10589 11676
10590 /** @domName IDBObjectStore.index */ 11677 /** @domName IDBObjectStore.index */
11678 /// @docsEditable
10591 IDBIndex index(String name) native; 11679 IDBIndex index(String name) native;
10592 11680
10593 /** @domName IDBObjectStore.openCursor */ 11681 /** @domName IDBObjectStore.openCursor */
11682 /// @docsEditable
10594 IDBRequest openCursor([key_OR_range, String direction]) { 11683 IDBRequest openCursor([key_OR_range, String direction]) {
10595 if (!?key_OR_range && 11684 if (!?key_OR_range &&
10596 !?direction) { 11685 !?direction) {
10597 return _openCursor_1(); 11686 return _openCursor_1();
10598 } 11687 }
10599 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 11688 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
10600 !?direction) { 11689 !?direction) {
10601 return _openCursor_2(key_OR_range); 11690 return _openCursor_2(key_OR_range);
10602 } 11691 }
10603 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 11692 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
(...skipping 10 matching lines...) Expand all
10614 } 11703 }
10615 throw new ArgumentError("Incorrect number or type of arguments"); 11704 throw new ArgumentError("Incorrect number or type of arguments");
10616 } 11705 }
10617 IDBRequest _openCursor_1() native "openCursor"; 11706 IDBRequest _openCursor_1() native "openCursor";
10618 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; 11707 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor";
10619 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; 11708 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor";
10620 IDBRequest _openCursor_4(key) native "openCursor"; 11709 IDBRequest _openCursor_4(key) native "openCursor";
10621 IDBRequest _openCursor_5(key, direction) native "openCursor"; 11710 IDBRequest _openCursor_5(key, direction) native "openCursor";
10622 11711
10623 /** @domName IDBObjectStore.put */ 11712 /** @domName IDBObjectStore.put */
11713 /// @docsEditable
10624 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { 11714 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) {
10625 if (?key) { 11715 if (?key) {
10626 var value_1 = _convertDartToNative_SerializedScriptValue(value); 11716 var value_1 = _convertDartToNative_SerializedScriptValue(value);
10627 var key_2 = _convertDartToNative_IDBKey(key); 11717 var key_2 = _convertDartToNative_IDBKey(key);
10628 return _put_1(value_1, key_2); 11718 return _put_1(value_1, key_2);
10629 } 11719 }
10630 var value_3 = _convertDartToNative_SerializedScriptValue(value); 11720 var value_3 = _convertDartToNative_SerializedScriptValue(value);
10631 return _put_2(value_3); 11721 return _put_2(value_3);
10632 } 11722 }
10633 IDBRequest _put_1(value, key) native "put"; 11723 IDBRequest _put_1(value, key) native "put";
10634 IDBRequest _put_2(value) native "put"; 11724 IDBRequest _put_2(value) native "put";
10635 } 11725 }
10636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10637 // for details. All rights reserved. Use of this source code is governed by a 11727 // for details. All rights reserved. Use of this source code is governed by a
10638 // BSD-style license that can be found in the LICENSE file. 11728 // BSD-style license that can be found in the LICENSE file.
10639 11729
10640 11730
10641 /// @domName IDBOpenDBRequest 11731 /// @domName IDBOpenDBRequest
11732 /// @docsEditable
10642 class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpe nDBRequest" { 11733 class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpe nDBRequest" {
10643 11734
10644 /** 11735 /**
10645 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 11736 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10646 */ 11737 */
11738 /// @docsEditable
10647 IDBOpenDBRequestEvents get on => 11739 IDBOpenDBRequestEvents get on =>
10648 new IDBOpenDBRequestEvents(this); 11740 new IDBOpenDBRequestEvents(this);
10649 } 11741 }
10650 11742
10651 class IDBOpenDBRequestEvents extends IDBRequestEvents { 11743 class IDBOpenDBRequestEvents extends IDBRequestEvents {
10652 IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr); 11744 IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr);
10653 11745
10654 EventListenerList get blocked => this['blocked']; 11746 EventListenerList get blocked => this['blocked'];
10655 11747
10656 EventListenerList get upgradeNeeded => this['upgradeneeded']; 11748 EventListenerList get upgradeNeeded => this['upgradeneeded'];
10657 } 11749 }
10658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10659 // for details. All rights reserved. Use of this source code is governed by a 11751 // for details. All rights reserved. Use of this source code is governed by a
10660 // BSD-style license that can be found in the LICENSE file. 11752 // BSD-style license that can be found in the LICENSE file.
10661 11753
10662 11754
10663 /// @domName IDBRequest 11755 /// @domName IDBRequest
11756 /// @docsEditable
10664 class IDBRequest extends EventTarget native "*IDBRequest" { 11757 class IDBRequest extends EventTarget native "*IDBRequest" {
10665 11758
10666 /** 11759 /**
10667 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 11760 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10668 */ 11761 */
11762 /// @docsEditable
10669 IDBRequestEvents get on => 11763 IDBRequestEvents get on =>
10670 new IDBRequestEvents(this); 11764 new IDBRequestEvents(this);
10671 11765
10672 /** @domName IDBRequest.error */ 11766 /** @domName IDBRequest.error */
11767 /// @docsEditable
10673 final DOMError error; 11768 final DOMError error;
10674 11769
10675 /** @domName IDBRequest.errorCode */ 11770 /** @domName IDBRequest.errorCode */
11771 /// @docsEditable
10676 final int errorCode; 11772 final int errorCode;
10677 11773
10678 /** @domName IDBRequest.readyState */ 11774 /** @domName IDBRequest.readyState */
11775 /// @docsEditable
10679 final String readyState; 11776 final String readyState;
10680 11777
10681 /** @domName IDBRequest.result */ 11778 /** @domName IDBRequest.result */
11779 /// @docsEditable
10682 dynamic get result => _convertNativeToDart_IDBAny(this._result); 11780 dynamic get result => _convertNativeToDart_IDBAny(this._result);
10683 dynamic get _result => JS("dynamic", "#.result", this); 11781 dynamic get _result => JS("dynamic", "#.result", this);
10684 11782
10685 /** @domName IDBRequest.source */ 11783 /** @domName IDBRequest.source */
11784 /// @docsEditable
10686 final dynamic source; 11785 final dynamic source;
10687 11786
10688 /** @domName IDBRequest.transaction */ 11787 /** @domName IDBRequest.transaction */
11788 /// @docsEditable
10689 final IDBTransaction transaction; 11789 final IDBTransaction transaction;
10690 11790
10691 /** @domName IDBRequest.webkitErrorMessage */ 11791 /** @domName IDBRequest.webkitErrorMessage */
11792 /// @docsEditable
10692 final String webkitErrorMessage; 11793 final String webkitErrorMessage;
10693 11794
10694 /** @domName IDBRequest.addEventListener */ 11795 /** @domName IDBRequest.addEventListener */
11796 /// @docsEditable
10695 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 11797 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10696 11798
10697 /** @domName IDBRequest.dispatchEvent */ 11799 /** @domName IDBRequest.dispatchEvent */
11800 /// @docsEditable
10698 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 11801 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
10699 11802
10700 /** @domName IDBRequest.removeEventListener */ 11803 /** @domName IDBRequest.removeEventListener */
11804 /// @docsEditable
10701 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 11805 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
10702 } 11806 }
10703 11807
10704 class IDBRequestEvents extends Events { 11808 class IDBRequestEvents extends Events {
10705 IDBRequestEvents(EventTarget _ptr) : super(_ptr); 11809 IDBRequestEvents(EventTarget _ptr) : super(_ptr);
10706 11810
10707 EventListenerList get error => this['error']; 11811 EventListenerList get error => this['error'];
10708 11812
10709 EventListenerList get success => this['success']; 11813 EventListenerList get success => this['success'];
10710 } 11814 }
10711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11815 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10712 // for details. All rights reserved. Use of this source code is governed by a 11816 // for details. All rights reserved. Use of this source code is governed by a
10713 // BSD-style license that can be found in the LICENSE file. 11817 // BSD-style license that can be found in the LICENSE file.
10714 11818
10715 11819
10716 /// @domName IDBTransaction 11820 /// @domName IDBTransaction
11821 /// @docsEditable
10717 class IDBTransaction extends EventTarget native "*IDBTransaction" { 11822 class IDBTransaction extends EventTarget native "*IDBTransaction" {
10718 11823
10719 /** 11824 /**
10720 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 11825 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10721 */ 11826 */
11827 /// @docsEditable
10722 IDBTransactionEvents get on => 11828 IDBTransactionEvents get on =>
10723 new IDBTransactionEvents(this); 11829 new IDBTransactionEvents(this);
10724 11830
10725 static const int READ_ONLY = 0; 11831 static const int READ_ONLY = 0;
10726 11832
10727 static const int READ_WRITE = 1; 11833 static const int READ_WRITE = 1;
10728 11834
10729 static const int VERSION_CHANGE = 2; 11835 static const int VERSION_CHANGE = 2;
10730 11836
10731 /** @domName IDBTransaction.db */ 11837 /** @domName IDBTransaction.db */
11838 /// @docsEditable
10732 final IDBDatabase db; 11839 final IDBDatabase db;
10733 11840
10734 /** @domName IDBTransaction.error */ 11841 /** @domName IDBTransaction.error */
11842 /// @docsEditable
10735 final DOMError error; 11843 final DOMError error;
10736 11844
10737 /** @domName IDBTransaction.mode */ 11845 /** @domName IDBTransaction.mode */
11846 /// @docsEditable
10738 final String mode; 11847 final String mode;
10739 11848
10740 /** @domName IDBTransaction.abort */ 11849 /** @domName IDBTransaction.abort */
11850 /// @docsEditable
10741 void abort() native; 11851 void abort() native;
10742 11852
10743 /** @domName IDBTransaction.addEventListener */ 11853 /** @domName IDBTransaction.addEventListener */
11854 /// @docsEditable
10744 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 11855 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10745 11856
10746 /** @domName IDBTransaction.dispatchEvent */ 11857 /** @domName IDBTransaction.dispatchEvent */
11858 /// @docsEditable
10747 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 11859 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
10748 11860
10749 /** @domName IDBTransaction.objectStore */ 11861 /** @domName IDBTransaction.objectStore */
11862 /// @docsEditable
10750 IDBObjectStore objectStore(String name) native; 11863 IDBObjectStore objectStore(String name) native;
10751 11864
10752 /** @domName IDBTransaction.removeEventListener */ 11865 /** @domName IDBTransaction.removeEventListener */
11866 /// @docsEditable
10753 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 11867 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
10754 } 11868 }
10755 11869
10756 class IDBTransactionEvents extends Events { 11870 class IDBTransactionEvents extends Events {
10757 IDBTransactionEvents(EventTarget _ptr) : super(_ptr); 11871 IDBTransactionEvents(EventTarget _ptr) : super(_ptr);
10758 11872
10759 EventListenerList get abort => this['abort']; 11873 EventListenerList get abort => this['abort'];
10760 11874
10761 EventListenerList get complete => this['complete']; 11875 EventListenerList get complete => this['complete'];
10762 11876
10763 EventListenerList get error => this['error']; 11877 EventListenerList get error => this['error'];
10764 } 11878 }
10765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10766 // for details. All rights reserved. Use of this source code is governed by a 11880 // for details. All rights reserved. Use of this source code is governed by a
10767 // BSD-style license that can be found in the LICENSE file. 11881 // BSD-style license that can be found in the LICENSE file.
10768 11882
10769 11883
10770 /// @domName IDBVersionChangeEvent 11884 /// @domName IDBVersionChangeEvent
11885 /// @docsEditable
10771 class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { 11886 class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" {
10772 11887
10773 /** @domName IDBVersionChangeEvent.newVersion */ 11888 /** @domName IDBVersionChangeEvent.newVersion */
11889 /// @docsEditable
10774 final int newVersion; 11890 final int newVersion;
10775 11891
10776 /** @domName IDBVersionChangeEvent.oldVersion */ 11892 /** @domName IDBVersionChangeEvent.oldVersion */
11893 /// @docsEditable
10777 final int oldVersion; 11894 final int oldVersion;
10778 } 11895 }
10779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10780 // for details. All rights reserved. Use of this source code is governed by a 11897 // for details. All rights reserved. Use of this source code is governed by a
10781 // BSD-style license that can be found in the LICENSE file. 11898 // BSD-style license that can be found in the LICENSE file.
10782 11899
10783 11900
10784 /// @domName IDBVersionChangeEvent 11901 /// @domName IDBVersionChangeEvent
11902 /// @docsEditable
10785 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" { 11903 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" {
10786 11904
10787 /** @domName IDBVersionChangeEvent.version */ 11905 /** @domName IDBVersionChangeEvent.version */
11906 /// @docsEditable
10788 final String version; 11907 final String version;
10789 } 11908 }
10790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10791 // for details. All rights reserved. Use of this source code is governed by a 11910 // for details. All rights reserved. Use of this source code is governed by a
10792 // BSD-style license that can be found in the LICENSE file. 11911 // BSD-style license that can be found in the LICENSE file.
10793 11912
10794 11913
10795 /// @domName IDBVersionChangeRequest 11914 /// @domName IDBVersionChangeRequest
11915 /// @docsEditable
10796 class IDBVersionChangeRequest extends IDBRequest implements EventTarget native " *IDBVersionChangeRequest" { 11916 class IDBVersionChangeRequest extends IDBRequest implements EventTarget native " *IDBVersionChangeRequest" {
10797 11917
10798 /** 11918 /**
10799 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 11919 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10800 */ 11920 */
11921 /// @docsEditable
10801 IDBVersionChangeRequestEvents get on => 11922 IDBVersionChangeRequestEvents get on =>
10802 new IDBVersionChangeRequestEvents(this); 11923 new IDBVersionChangeRequestEvents(this);
10803 } 11924 }
10804 11925
10805 class IDBVersionChangeRequestEvents extends IDBRequestEvents { 11926 class IDBVersionChangeRequestEvents extends IDBRequestEvents {
10806 IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); 11927 IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr);
10807 11928
10808 EventListenerList get blocked => this['blocked']; 11929 EventListenerList get blocked => this['blocked'];
10809 } 11930 }
10810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10811 // for details. All rights reserved. Use of this source code is governed by a 11932 // for details. All rights reserved. Use of this source code is governed by a
10812 // BSD-style license that can be found in the LICENSE file. 11933 // BSD-style license that can be found in the LICENSE file.
10813 11934
10814 11935
10815 /// @domName HTMLIFrameElement 11936 /// @domName HTMLIFrameElement
11937 /// @docsEditable
10816 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" { 11938 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" {
10817 11939
10818 factory IFrameElement() => document.$dom_createElement("iframe"); 11940 factory IFrameElement() => document.$dom_createElement("iframe");
10819 11941
10820 /** @domName HTMLIFrameElement.align */ 11942 /** @domName HTMLIFrameElement.align */
11943 /// @docsEditable
10821 String align; 11944 String align;
10822 11945
10823 /** @domName HTMLIFrameElement.contentWindow */ 11946 /** @domName HTMLIFrameElement.contentWindow */
11947 /// @docsEditable
10824 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); 11948 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow);
10825 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); 11949 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this);
10826 11950
10827 /** @domName HTMLIFrameElement.frameBorder */ 11951 /** @domName HTMLIFrameElement.frameBorder */
11952 /// @docsEditable
10828 String frameBorder; 11953 String frameBorder;
10829 11954
10830 /** @domName HTMLIFrameElement.height */ 11955 /** @domName HTMLIFrameElement.height */
11956 /// @docsEditable
10831 String height; 11957 String height;
10832 11958
10833 /** @domName HTMLIFrameElement.longDesc */ 11959 /** @domName HTMLIFrameElement.longDesc */
11960 /// @docsEditable
10834 String longDesc; 11961 String longDesc;
10835 11962
10836 /** @domName HTMLIFrameElement.marginHeight */ 11963 /** @domName HTMLIFrameElement.marginHeight */
11964 /// @docsEditable
10837 String marginHeight; 11965 String marginHeight;
10838 11966
10839 /** @domName HTMLIFrameElement.marginWidth */ 11967 /** @domName HTMLIFrameElement.marginWidth */
11968 /// @docsEditable
10840 String marginWidth; 11969 String marginWidth;
10841 11970
10842 /** @domName HTMLIFrameElement.name */ 11971 /** @domName HTMLIFrameElement.name */
11972 /// @docsEditable
10843 String name; 11973 String name;
10844 11974
10845 /** @domName HTMLIFrameElement.sandbox */ 11975 /** @domName HTMLIFrameElement.sandbox */
11976 /// @docsEditable
10846 String sandbox; 11977 String sandbox;
10847 11978
10848 /** @domName HTMLIFrameElement.scrolling */ 11979 /** @domName HTMLIFrameElement.scrolling */
11980 /// @docsEditable
10849 String scrolling; 11981 String scrolling;
10850 11982
10851 /** @domName HTMLIFrameElement.src */ 11983 /** @domName HTMLIFrameElement.src */
11984 /// @docsEditable
10852 String src; 11985 String src;
10853 11986
10854 /** @domName HTMLIFrameElement.srcdoc */ 11987 /** @domName HTMLIFrameElement.srcdoc */
11988 /// @docsEditable
10855 String srcdoc; 11989 String srcdoc;
10856 11990
10857 /** @domName HTMLIFrameElement.width */ 11991 /** @domName HTMLIFrameElement.width */
11992 /// @docsEditable
10858 String width; 11993 String width;
10859 } 11994 }
10860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10861 // for details. All rights reserved. Use of this source code is governed by a 11996 // for details. All rights reserved. Use of this source code is governed by a
10862 // BSD-style license that can be found in the LICENSE file. 11997 // BSD-style license that can be found in the LICENSE file.
10863 11998
10864 // WARNING: Do not edit - generated code. 11999 // WARNING: Do not edit - generated code.
10865 12000
10866 12001
10867 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti on00 source); 12002 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti on00 source);
10868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12003 // 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 12004 // 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. 12005 // BSD-style license that can be found in the LICENSE file.
10871 12006
10872 12007
10873 /// @domName IceCandidate 12008 /// @domName IceCandidate
12009 /// @docsEditable
10874 class IceCandidate native "*IceCandidate" { 12010 class IceCandidate native "*IceCandidate" {
10875 12011
10876 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto ryProvider.createIceCandidate(label, candidateLine); 12012 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto ryProvider.createIceCandidate(label, candidateLine);
10877 12013
10878 /** @domName IceCandidate.label */ 12014 /** @domName IceCandidate.label */
12015 /// @docsEditable
10879 final String label; 12016 final String label;
10880 12017
10881 /** @domName IceCandidate.toSdp */ 12018 /** @domName IceCandidate.toSdp */
12019 /// @docsEditable
10882 String toSdp() native; 12020 String toSdp() native;
10883 } 12021 }
10884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10885 // for details. All rights reserved. Use of this source code is governed by a 12023 // for details. All rights reserved. Use of this source code is governed by a
10886 // BSD-style license that can be found in the LICENSE file. 12024 // BSD-style license that can be found in the LICENSE file.
10887 12025
10888 12026
10889 /// @domName ImageData 12027 /// @domName ImageData
12028 /// @docsEditable
10890 class ImageData native "*ImageData" { 12029 class ImageData native "*ImageData" {
10891 12030
10892 /** @domName ImageData.data */ 12031 /** @domName ImageData.data */
12032 /// @docsEditable
10893 final Uint8ClampedArray data; 12033 final Uint8ClampedArray data;
10894 12034
10895 /** @domName ImageData.height */ 12035 /** @domName ImageData.height */
12036 /// @docsEditable
10896 final int height; 12037 final int height;
10897 12038
10898 /** @domName ImageData.width */ 12039 /** @domName ImageData.width */
12040 /// @docsEditable
10899 final int width; 12041 final int width;
10900 } 12042 }
10901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10902 // for details. All rights reserved. Use of this source code is governed by a 12044 // for details. All rights reserved. Use of this source code is governed by a
10903 // BSD-style license that can be found in the LICENSE file. 12045 // BSD-style license that can be found in the LICENSE file.
10904 12046
10905 12047
10906 /// @domName HTMLImageElement 12048 /// @domName HTMLImageElement
12049 /// @docsEditable
10907 class ImageElement extends Element implements Element native "*HTMLImageElement" { 12050 class ImageElement extends Element implements Element native "*HTMLImageElement" {
10908 12051
10909 factory ImageElement({String src, int width, int height}) { 12052 factory ImageElement({String src, int width, int height}) {
10910 var e = document.$dom_createElement("img"); 12053 var e = document.$dom_createElement("img");
10911 if (src != null) e.src = src; 12054 if (src != null) e.src = src;
10912 if (width != null) e.width = width; 12055 if (width != null) e.width = width;
10913 if (height != null) e.height = height; 12056 if (height != null) e.height = height;
10914 return e; 12057 return e;
10915 } 12058 }
10916 12059
10917 /** @domName HTMLImageElement.align */ 12060 /** @domName HTMLImageElement.align */
12061 /// @docsEditable
10918 String align; 12062 String align;
10919 12063
10920 /** @domName HTMLImageElement.alt */ 12064 /** @domName HTMLImageElement.alt */
12065 /// @docsEditable
10921 String alt; 12066 String alt;
10922 12067
10923 /** @domName HTMLImageElement.border */ 12068 /** @domName HTMLImageElement.border */
12069 /// @docsEditable
10924 String border; 12070 String border;
10925 12071
10926 /** @domName HTMLImageElement.complete */ 12072 /** @domName HTMLImageElement.complete */
12073 /// @docsEditable
10927 final bool complete; 12074 final bool complete;
10928 12075
10929 /** @domName HTMLImageElement.crossOrigin */ 12076 /** @domName HTMLImageElement.crossOrigin */
12077 /// @docsEditable
10930 String crossOrigin; 12078 String crossOrigin;
10931 12079
10932 /** @domName HTMLImageElement.height */ 12080 /** @domName HTMLImageElement.height */
12081 /// @docsEditable
10933 int height; 12082 int height;
10934 12083
10935 /** @domName HTMLImageElement.hspace */ 12084 /** @domName HTMLImageElement.hspace */
12085 /// @docsEditable
10936 int hspace; 12086 int hspace;
10937 12087
10938 /** @domName HTMLImageElement.isMap */ 12088 /** @domName HTMLImageElement.isMap */
12089 /// @docsEditable
10939 bool isMap; 12090 bool isMap;
10940 12091
10941 /** @domName HTMLImageElement.longDesc */ 12092 /** @domName HTMLImageElement.longDesc */
12093 /// @docsEditable
10942 String longDesc; 12094 String longDesc;
10943 12095
10944 /** @domName HTMLImageElement.lowsrc */ 12096 /** @domName HTMLImageElement.lowsrc */
12097 /// @docsEditable
10945 String lowsrc; 12098 String lowsrc;
10946 12099
10947 /** @domName HTMLImageElement.name */ 12100 /** @domName HTMLImageElement.name */
12101 /// @docsEditable
10948 String name; 12102 String name;
10949 12103
10950 /** @domName HTMLImageElement.naturalHeight */ 12104 /** @domName HTMLImageElement.naturalHeight */
12105 /// @docsEditable
10951 final int naturalHeight; 12106 final int naturalHeight;
10952 12107
10953 /** @domName HTMLImageElement.naturalWidth */ 12108 /** @domName HTMLImageElement.naturalWidth */
12109 /// @docsEditable
10954 final int naturalWidth; 12110 final int naturalWidth;
10955 12111
10956 /** @domName HTMLImageElement.src */ 12112 /** @domName HTMLImageElement.src */
12113 /// @docsEditable
10957 String src; 12114 String src;
10958 12115
10959 /** @domName HTMLImageElement.useMap */ 12116 /** @domName HTMLImageElement.useMap */
12117 /// @docsEditable
10960 String useMap; 12118 String useMap;
10961 12119
10962 /** @domName HTMLImageElement.vspace */ 12120 /** @domName HTMLImageElement.vspace */
12121 /// @docsEditable
10963 int vspace; 12122 int vspace;
10964 12123
10965 /** @domName HTMLImageElement.width */ 12124 /** @domName HTMLImageElement.width */
12125 /// @docsEditable
10966 int width; 12126 int width;
10967 12127
10968 /** @domName HTMLImageElement.x */ 12128 /** @domName HTMLImageElement.x */
12129 /// @docsEditable
10969 final int x; 12130 final int x;
10970 12131
10971 /** @domName HTMLImageElement.y */ 12132 /** @domName HTMLImageElement.y */
12133 /// @docsEditable
10972 final int y; 12134 final int y;
10973 } 12135 }
10974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10975 // for details. All rights reserved. Use of this source code is governed by a 12137 // for details. All rights reserved. Use of this source code is governed by a
10976 // BSD-style license that can be found in the LICENSE file. 12138 // BSD-style license that can be found in the LICENSE file.
10977 12139
10978 12140
10979 /// @domName HTMLInputElement 12141 /// @domName HTMLInputElement
12142 /// @docsEditable
10980 class InputElement extends Element implements Element native "*HTMLInputElement" { 12143 class InputElement extends Element implements Element native "*HTMLInputElement" {
10981 12144
10982 factory InputElement({String type}) { 12145 factory InputElement({String type}) {
10983 var e = document.$dom_createElement("input"); 12146 var e = document.$dom_createElement("input");
10984 if (type != null) e.type = type; 12147 if (type != null) e.type = type;
10985 return e; 12148 return e;
10986 } 12149 }
10987 12150
10988 /** 12151 /**
10989 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 12152 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10990 */ 12153 */
12154 /// @docsEditable
10991 InputElementEvents get on => 12155 InputElementEvents get on =>
10992 new InputElementEvents(this); 12156 new InputElementEvents(this);
10993 12157
10994 /** @domName HTMLInputElement.accept */ 12158 /** @domName HTMLInputElement.accept */
12159 /// @docsEditable
10995 String accept; 12160 String accept;
10996 12161
10997 /** @domName HTMLInputElement.align */ 12162 /** @domName HTMLInputElement.align */
12163 /// @docsEditable
10998 String align; 12164 String align;
10999 12165
11000 /** @domName HTMLInputElement.alt */ 12166 /** @domName HTMLInputElement.alt */
12167 /// @docsEditable
11001 String alt; 12168 String alt;
11002 12169
11003 /** @domName HTMLInputElement.autocomplete */ 12170 /** @domName HTMLInputElement.autocomplete */
12171 /// @docsEditable
11004 String autocomplete; 12172 String autocomplete;
11005 12173
11006 /** @domName HTMLInputElement.autofocus */ 12174 /** @domName HTMLInputElement.autofocus */
12175 /// @docsEditable
11007 bool autofocus; 12176 bool autofocus;
11008 12177
11009 /** @domName HTMLInputElement.checked */ 12178 /** @domName HTMLInputElement.checked */
12179 /// @docsEditable
11010 bool checked; 12180 bool checked;
11011 12181
11012 /** @domName HTMLInputElement.defaultChecked */ 12182 /** @domName HTMLInputElement.defaultChecked */
12183 /// @docsEditable
11013 bool defaultChecked; 12184 bool defaultChecked;
11014 12185
11015 /** @domName HTMLInputElement.defaultValue */ 12186 /** @domName HTMLInputElement.defaultValue */
12187 /// @docsEditable
11016 String defaultValue; 12188 String defaultValue;
11017 12189
11018 /** @domName HTMLInputElement.dirName */ 12190 /** @domName HTMLInputElement.dirName */
12191 /// @docsEditable
11019 String dirName; 12192 String dirName;
11020 12193
11021 /** @domName HTMLInputElement.disabled */ 12194 /** @domName HTMLInputElement.disabled */
12195 /// @docsEditable
11022 bool disabled; 12196 bool disabled;
11023 12197
11024 /** @domName HTMLInputElement.files */ 12198 /** @domName HTMLInputElement.files */
12199 /// @docsEditable
11025 List<File> files; 12200 List<File> files;
11026 12201
11027 /** @domName HTMLInputElement.form */ 12202 /** @domName HTMLInputElement.form */
12203 /// @docsEditable
11028 final FormElement form; 12204 final FormElement form;
11029 12205
11030 /** @domName HTMLInputElement.formAction */ 12206 /** @domName HTMLInputElement.formAction */
12207 /// @docsEditable
11031 String formAction; 12208 String formAction;
11032 12209
11033 /** @domName HTMLInputElement.formEnctype */ 12210 /** @domName HTMLInputElement.formEnctype */
12211 /// @docsEditable
11034 String formEnctype; 12212 String formEnctype;
11035 12213
11036 /** @domName HTMLInputElement.formMethod */ 12214 /** @domName HTMLInputElement.formMethod */
12215 /// @docsEditable
11037 String formMethod; 12216 String formMethod;
11038 12217
11039 /** @domName HTMLInputElement.formNoValidate */ 12218 /** @domName HTMLInputElement.formNoValidate */
12219 /// @docsEditable
11040 bool formNoValidate; 12220 bool formNoValidate;
11041 12221
11042 /** @domName HTMLInputElement.formTarget */ 12222 /** @domName HTMLInputElement.formTarget */
12223 /// @docsEditable
11043 String formTarget; 12224 String formTarget;
11044 12225
11045 /** @domName HTMLInputElement.height */ 12226 /** @domName HTMLInputElement.height */
12227 /// @docsEditable
11046 int height; 12228 int height;
11047 12229
11048 /** @domName HTMLInputElement.incremental */ 12230 /** @domName HTMLInputElement.incremental */
12231 /// @docsEditable
11049 bool incremental; 12232 bool incremental;
11050 12233
11051 /** @domName HTMLInputElement.indeterminate */ 12234 /** @domName HTMLInputElement.indeterminate */
12235 /// @docsEditable
11052 bool indeterminate; 12236 bool indeterminate;
11053 12237
11054 /** @domName HTMLInputElement.labels */ 12238 /** @domName HTMLInputElement.labels */
12239 /// @docsEditable
11055 final List<Node> labels; 12240 final List<Node> labels;
11056 12241
11057 /** @domName HTMLInputElement.list */ 12242 /** @domName HTMLInputElement.list */
12243 /// @docsEditable
11058 final Element list; 12244 final Element list;
11059 12245
11060 /** @domName HTMLInputElement.max */ 12246 /** @domName HTMLInputElement.max */
12247 /// @docsEditable
11061 String max; 12248 String max;
11062 12249
11063 /** @domName HTMLInputElement.maxLength */ 12250 /** @domName HTMLInputElement.maxLength */
12251 /// @docsEditable
11064 int maxLength; 12252 int maxLength;
11065 12253
11066 /** @domName HTMLInputElement.min */ 12254 /** @domName HTMLInputElement.min */
12255 /// @docsEditable
11067 String min; 12256 String min;
11068 12257
11069 /** @domName HTMLInputElement.multiple */ 12258 /** @domName HTMLInputElement.multiple */
12259 /// @docsEditable
11070 bool multiple; 12260 bool multiple;
11071 12261
11072 /** @domName HTMLInputElement.name */ 12262 /** @domName HTMLInputElement.name */
12263 /// @docsEditable
11073 String name; 12264 String name;
11074 12265
11075 /** @domName HTMLInputElement.pattern */ 12266 /** @domName HTMLInputElement.pattern */
12267 /// @docsEditable
11076 String pattern; 12268 String pattern;
11077 12269
11078 /** @domName HTMLInputElement.placeholder */ 12270 /** @domName HTMLInputElement.placeholder */
12271 /// @docsEditable
11079 String placeholder; 12272 String placeholder;
11080 12273
11081 /** @domName HTMLInputElement.readOnly */ 12274 /** @domName HTMLInputElement.readOnly */
12275 /// @docsEditable
11082 bool readOnly; 12276 bool readOnly;
11083 12277
11084 /** @domName HTMLInputElement.required */ 12278 /** @domName HTMLInputElement.required */
12279 /// @docsEditable
11085 bool required; 12280 bool required;
11086 12281
11087 /** @domName HTMLInputElement.selectionDirection */ 12282 /** @domName HTMLInputElement.selectionDirection */
12283 /// @docsEditable
11088 String selectionDirection; 12284 String selectionDirection;
11089 12285
11090 /** @domName HTMLInputElement.selectionEnd */ 12286 /** @domName HTMLInputElement.selectionEnd */
12287 /// @docsEditable
11091 int selectionEnd; 12288 int selectionEnd;
11092 12289
11093 /** @domName HTMLInputElement.selectionStart */ 12290 /** @domName HTMLInputElement.selectionStart */
12291 /// @docsEditable
11094 int selectionStart; 12292 int selectionStart;
11095 12293
11096 /** @domName HTMLInputElement.size */ 12294 /** @domName HTMLInputElement.size */
12295 /// @docsEditable
11097 int size; 12296 int size;
11098 12297
11099 /** @domName HTMLInputElement.src */ 12298 /** @domName HTMLInputElement.src */
12299 /// @docsEditable
11100 String src; 12300 String src;
11101 12301
11102 /** @domName HTMLInputElement.step */ 12302 /** @domName HTMLInputElement.step */
12303 /// @docsEditable
11103 String step; 12304 String step;
11104 12305
11105 /** @domName HTMLInputElement.type */ 12306 /** @domName HTMLInputElement.type */
12307 /// @docsEditable
11106 String type; 12308 String type;
11107 12309
11108 /** @domName HTMLInputElement.useMap */ 12310 /** @domName HTMLInputElement.useMap */
12311 /// @docsEditable
11109 String useMap; 12312 String useMap;
11110 12313
11111 /** @domName HTMLInputElement.validationMessage */ 12314 /** @domName HTMLInputElement.validationMessage */
12315 /// @docsEditable
11112 final String validationMessage; 12316 final String validationMessage;
11113 12317
11114 /** @domName HTMLInputElement.validity */ 12318 /** @domName HTMLInputElement.validity */
12319 /// @docsEditable
11115 final ValidityState validity; 12320 final ValidityState validity;
11116 12321
11117 /** @domName HTMLInputElement.value */ 12322 /** @domName HTMLInputElement.value */
12323 /// @docsEditable
11118 String value; 12324 String value;
11119 12325
11120 /** @domName HTMLInputElement.valueAsDate */ 12326 /** @domName HTMLInputElement.valueAsDate */
12327 /// @docsEditable
11121 Date valueAsDate; 12328 Date valueAsDate;
11122 12329
11123 /** @domName HTMLInputElement.valueAsNumber */ 12330 /** @domName HTMLInputElement.valueAsNumber */
12331 /// @docsEditable
11124 num valueAsNumber; 12332 num valueAsNumber;
11125 12333
11126 /** @domName HTMLInputElement.webkitEntries */ 12334 /** @domName HTMLInputElement.webkitEntries */
12335 /// @docsEditable
11127 final List<Entry> webkitEntries; 12336 final List<Entry> webkitEntries;
11128 12337
11129 /** @domName HTMLInputElement.webkitGrammar */ 12338 /** @domName HTMLInputElement.webkitGrammar */
12339 /// @docsEditable
11130 bool webkitGrammar; 12340 bool webkitGrammar;
11131 12341
11132 /** @domName HTMLInputElement.webkitSpeech */ 12342 /** @domName HTMLInputElement.webkitSpeech */
12343 /// @docsEditable
11133 bool webkitSpeech; 12344 bool webkitSpeech;
11134 12345
11135 /** @domName HTMLInputElement.webkitdirectory */ 12346 /** @domName HTMLInputElement.webkitdirectory */
12347 /// @docsEditable
11136 bool webkitdirectory; 12348 bool webkitdirectory;
11137 12349
11138 /** @domName HTMLInputElement.width */ 12350 /** @domName HTMLInputElement.width */
12351 /// @docsEditable
11139 int width; 12352 int width;
11140 12353
11141 /** @domName HTMLInputElement.willValidate */ 12354 /** @domName HTMLInputElement.willValidate */
12355 /// @docsEditable
11142 final bool willValidate; 12356 final bool willValidate;
11143 12357
11144 /** @domName HTMLInputElement.checkValidity */ 12358 /** @domName HTMLInputElement.checkValidity */
12359 /// @docsEditable
11145 bool checkValidity() native; 12360 bool checkValidity() native;
11146 12361
11147 /** @domName HTMLInputElement.select */ 12362 /** @domName HTMLInputElement.select */
12363 /// @docsEditable
11148 void select() native; 12364 void select() native;
11149 12365
11150 /** @domName HTMLInputElement.setCustomValidity */ 12366 /** @domName HTMLInputElement.setCustomValidity */
12367 /// @docsEditable
11151 void setCustomValidity(String error) native; 12368 void setCustomValidity(String error) native;
11152 12369
11153 /** @domName HTMLInputElement.setRangeText */ 12370 /** @domName HTMLInputElement.setRangeText */
12371 /// @docsEditable
11154 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 12372 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native;
11155 12373
11156 /** @domName HTMLInputElement.setSelectionRange */ 12374 /** @domName HTMLInputElement.setSelectionRange */
12375 /// @docsEditable
11157 void setSelectionRange(int start, int end, [String direction]) native; 12376 void setSelectionRange(int start, int end, [String direction]) native;
11158 12377
11159 /** @domName HTMLInputElement.stepDown */ 12378 /** @domName HTMLInputElement.stepDown */
12379 /// @docsEditable
11160 void stepDown([int n]) native; 12380 void stepDown([int n]) native;
11161 12381
11162 /** @domName HTMLInputElement.stepUp */ 12382 /** @domName HTMLInputElement.stepUp */
12383 /// @docsEditable
11163 void stepUp([int n]) native; 12384 void stepUp([int n]) native;
11164 } 12385 }
11165 12386
11166 class InputElementEvents extends ElementEvents { 12387 class InputElementEvents extends ElementEvents {
11167 InputElementEvents(EventTarget _ptr) : super(_ptr); 12388 InputElementEvents(EventTarget _ptr) : super(_ptr);
11168 12389
11169 EventListenerList get speechChange => this['webkitSpeechChange']; 12390 EventListenerList get speechChange => this['webkitSpeechChange'];
11170 } 12391 }
11171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11172 // for details. All rights reserved. Use of this source code is governed by a 12393 // for details. All rights reserved. Use of this source code is governed by a
11173 // BSD-style license that can be found in the LICENSE file. 12394 // BSD-style license that can be found in the LICENSE file.
11174 12395
11175 12396
11176 /// @domName Int16Array 12397 /// @domName Int16Array
12398 /// @docsEditable
11177 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int16Array" { 12399 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int16Array" {
11178 12400
11179 factory Int16Array(int length) => 12401 factory Int16Array(int length) =>
11180 _TypedArrayFactoryProvider.createInt16Array(length); 12402 _TypedArrayFactoryProvider.createInt16Array(length);
11181 12403
11182 factory Int16Array.fromList(List<int> list) => 12404 factory Int16Array.fromList(List<int> list) =>
11183 _TypedArrayFactoryProvider.createInt16Array_fromList(list); 12405 _TypedArrayFactoryProvider.createInt16Array_fromList(list);
11184 12406
11185 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 12407 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
11186 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength); 12408 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength);
11187 12409
11188 static const int BYTES_PER_ELEMENT = 2; 12410 static const int BYTES_PER_ELEMENT = 2;
11189 12411
11190 /** @domName Int16Array.length */ 12412 /** @domName Int16Array.length */
12413 /// @docsEditable
11191 final int length; 12414 final int length;
11192 12415
11193 int operator[](int index) => JS("int", "#[#]", this, index); 12416 int operator[](int index) => JS("int", "#[#]", this, index);
11194 12417
11195 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 12418 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11196 // int is the element type. 12419 // int is the element type.
11197 12420
11198 // From Iterable<int>: 12421 // From Iterable<int>:
11199 12422
11200 Iterator<int> iterator() { 12423 Iterator<int> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
11266 void insertRange(int start, int rangeLength, [int initialValue]) { 12489 void insertRange(int start, int rangeLength, [int initialValue]) {
11267 throw new UnsupportedError("Cannot insertRange on immutable List."); 12490 throw new UnsupportedError("Cannot insertRange on immutable List.");
11268 } 12491 }
11269 12492
11270 List<int> getRange(int start, int rangeLength) => 12493 List<int> getRange(int start, int rangeLength) =>
11271 _Lists.getRange(this, start, rangeLength, <int>[]); 12494 _Lists.getRange(this, start, rangeLength, <int>[]);
11272 12495
11273 // -- end List<int> mixins. 12496 // -- end List<int> mixins.
11274 12497
11275 /** @domName Int16Array.setElements */ 12498 /** @domName Int16Array.setElements */
12499 /// @docsEditable
11276 void setElements(Object array, [int offset]) native "set"; 12500 void setElements(Object array, [int offset]) native "set";
11277 12501
11278 /** @domName Int16Array.subarray */ 12502 /** @domName Int16Array.subarray */
12503 /// @docsEditable
11279 Int16Array subarray(int start, [int end]) native; 12504 Int16Array subarray(int start, [int end]) native;
11280 } 12505 }
11281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11282 // for details. All rights reserved. Use of this source code is governed by a 12507 // for details. All rights reserved. Use of this source code is governed by a
11283 // BSD-style license that can be found in the LICENSE file. 12508 // BSD-style license that can be found in the LICENSE file.
11284 12509
11285 12510
11286 /// @domName Int32Array 12511 /// @domName Int32Array
12512 /// @docsEditable
11287 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int32Array" { 12513 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int32Array" {
11288 12514
11289 factory Int32Array(int length) => 12515 factory Int32Array(int length) =>
11290 _TypedArrayFactoryProvider.createInt32Array(length); 12516 _TypedArrayFactoryProvider.createInt32Array(length);
11291 12517
11292 factory Int32Array.fromList(List<int> list) => 12518 factory Int32Array.fromList(List<int> list) =>
11293 _TypedArrayFactoryProvider.createInt32Array_fromList(list); 12519 _TypedArrayFactoryProvider.createInt32Array_fromList(list);
11294 12520
11295 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 12521 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
11296 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength); 12522 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength);
11297 12523
11298 static const int BYTES_PER_ELEMENT = 4; 12524 static const int BYTES_PER_ELEMENT = 4;
11299 12525
11300 /** @domName Int32Array.length */ 12526 /** @domName Int32Array.length */
12527 /// @docsEditable
11301 final int length; 12528 final int length;
11302 12529
11303 int operator[](int index) => JS("int", "#[#]", this, index); 12530 int operator[](int index) => JS("int", "#[#]", this, index);
11304 12531
11305 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 12532 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11306 // int is the element type. 12533 // int is the element type.
11307 12534
11308 // From Iterable<int>: 12535 // From Iterable<int>:
11309 12536
11310 Iterator<int> iterator() { 12537 Iterator<int> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
11376 void insertRange(int start, int rangeLength, [int initialValue]) { 12603 void insertRange(int start, int rangeLength, [int initialValue]) {
11377 throw new UnsupportedError("Cannot insertRange on immutable List."); 12604 throw new UnsupportedError("Cannot insertRange on immutable List.");
11378 } 12605 }
11379 12606
11380 List<int> getRange(int start, int rangeLength) => 12607 List<int> getRange(int start, int rangeLength) =>
11381 _Lists.getRange(this, start, rangeLength, <int>[]); 12608 _Lists.getRange(this, start, rangeLength, <int>[]);
11382 12609
11383 // -- end List<int> mixins. 12610 // -- end List<int> mixins.
11384 12611
11385 /** @domName Int32Array.setElements */ 12612 /** @domName Int32Array.setElements */
12613 /// @docsEditable
11386 void setElements(Object array, [int offset]) native "set"; 12614 void setElements(Object array, [int offset]) native "set";
11387 12615
11388 /** @domName Int32Array.subarray */ 12616 /** @domName Int32Array.subarray */
12617 /// @docsEditable
11389 Int32Array subarray(int start, [int end]) native; 12618 Int32Array subarray(int start, [int end]) native;
11390 } 12619 }
11391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11392 // for details. All rights reserved. Use of this source code is governed by a 12621 // for details. All rights reserved. Use of this source code is governed by a
11393 // BSD-style license that can be found in the LICENSE file. 12622 // BSD-style license that can be found in the LICENSE file.
11394 12623
11395 12624
11396 /// @domName Int8Array 12625 /// @domName Int8Array
12626 /// @docsEditable
11397 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L ist<int> native "*Int8Array" { 12627 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L ist<int> native "*Int8Array" {
11398 12628
11399 factory Int8Array(int length) => 12629 factory Int8Array(int length) =>
11400 _TypedArrayFactoryProvider.createInt8Array(length); 12630 _TypedArrayFactoryProvider.createInt8Array(length);
11401 12631
11402 factory Int8Array.fromList(List<int> list) => 12632 factory Int8Array.fromList(List<int> list) =>
11403 _TypedArrayFactoryProvider.createInt8Array_fromList(list); 12633 _TypedArrayFactoryProvider.createInt8Array_fromList(list);
11404 12634
11405 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => 12635 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
11406 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth); 12636 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth);
11407 12637
11408 static const int BYTES_PER_ELEMENT = 1; 12638 static const int BYTES_PER_ELEMENT = 1;
11409 12639
11410 /** @domName Int8Array.length */ 12640 /** @domName Int8Array.length */
12641 /// @docsEditable
11411 final int length; 12642 final int length;
11412 12643
11413 int operator[](int index) => JS("int", "#[#]", this, index); 12644 int operator[](int index) => JS("int", "#[#]", this, index);
11414 12645
11415 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 12646 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11416 // int is the element type. 12647 // int is the element type.
11417 12648
11418 // From Iterable<int>: 12649 // From Iterable<int>:
11419 12650
11420 Iterator<int> iterator() { 12651 Iterator<int> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
11486 void insertRange(int start, int rangeLength, [int initialValue]) { 12717 void insertRange(int start, int rangeLength, [int initialValue]) {
11487 throw new UnsupportedError("Cannot insertRange on immutable List."); 12718 throw new UnsupportedError("Cannot insertRange on immutable List.");
11488 } 12719 }
11489 12720
11490 List<int> getRange(int start, int rangeLength) => 12721 List<int> getRange(int start, int rangeLength) =>
11491 _Lists.getRange(this, start, rangeLength, <int>[]); 12722 _Lists.getRange(this, start, rangeLength, <int>[]);
11492 12723
11493 // -- end List<int> mixins. 12724 // -- end List<int> mixins.
11494 12725
11495 /** @domName Int8Array.setElements */ 12726 /** @domName Int8Array.setElements */
12727 /// @docsEditable
11496 void setElements(Object array, [int offset]) native "set"; 12728 void setElements(Object array, [int offset]) native "set";
11497 12729
11498 /** @domName Int8Array.subarray */ 12730 /** @domName Int8Array.subarray */
12731 /// @docsEditable
11499 Int8Array subarray(int start, [int end]) native; 12732 Int8Array subarray(int start, [int end]) native;
11500 } 12733 }
11501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11502 // for details. All rights reserved. Use of this source code is governed by a 12735 // for details. All rights reserved. Use of this source code is governed by a
11503 // BSD-style license that can be found in the LICENSE file. 12736 // BSD-style license that can be found in the LICENSE file.
11504 12737
11505 12738
11506 /// @domName JavaScriptCallFrame 12739 /// @domName JavaScriptCallFrame
12740 /// @docsEditable
11507 class JavaScriptCallFrame native "*JavaScriptCallFrame" { 12741 class JavaScriptCallFrame native "*JavaScriptCallFrame" {
11508 12742
11509 static const int CATCH_SCOPE = 4; 12743 static const int CATCH_SCOPE = 4;
11510 12744
11511 static const int CLOSURE_SCOPE = 3; 12745 static const int CLOSURE_SCOPE = 3;
11512 12746
11513 static const int GLOBAL_SCOPE = 0; 12747 static const int GLOBAL_SCOPE = 0;
11514 12748
11515 static const int LOCAL_SCOPE = 1; 12749 static const int LOCAL_SCOPE = 1;
11516 12750
11517 static const int WITH_SCOPE = 2; 12751 static const int WITH_SCOPE = 2;
11518 12752
11519 /** @domName JavaScriptCallFrame.caller */ 12753 /** @domName JavaScriptCallFrame.caller */
12754 /// @docsEditable
11520 final JavaScriptCallFrame caller; 12755 final JavaScriptCallFrame caller;
11521 12756
11522 /** @domName JavaScriptCallFrame.column */ 12757 /** @domName JavaScriptCallFrame.column */
12758 /// @docsEditable
11523 final int column; 12759 final int column;
11524 12760
11525 /** @domName JavaScriptCallFrame.functionName */ 12761 /** @domName JavaScriptCallFrame.functionName */
12762 /// @docsEditable
11526 final String functionName; 12763 final String functionName;
11527 12764
11528 /** @domName JavaScriptCallFrame.line */ 12765 /** @domName JavaScriptCallFrame.line */
12766 /// @docsEditable
11529 final int line; 12767 final int line;
11530 12768
11531 /** @domName JavaScriptCallFrame.scopeChain */ 12769 /** @domName JavaScriptCallFrame.scopeChain */
12770 /// @docsEditable
11532 final List scopeChain; 12771 final List scopeChain;
11533 12772
11534 /** @domName JavaScriptCallFrame.sourceID */ 12773 /** @domName JavaScriptCallFrame.sourceID */
12774 /// @docsEditable
11535 final int sourceID; 12775 final int sourceID;
11536 12776
11537 /** @domName JavaScriptCallFrame.thisObject */ 12777 /** @domName JavaScriptCallFrame.thisObject */
12778 /// @docsEditable
11538 final Object thisObject; 12779 final Object thisObject;
11539 12780
11540 /** @domName JavaScriptCallFrame.type */ 12781 /** @domName JavaScriptCallFrame.type */
12782 /// @docsEditable
11541 final String type; 12783 final String type;
11542 12784
11543 /** @domName JavaScriptCallFrame.evaluate */ 12785 /** @domName JavaScriptCallFrame.evaluate */
12786 /// @docsEditable
11544 void evaluate(String script) native; 12787 void evaluate(String script) native;
11545 12788
11546 /** @domName JavaScriptCallFrame.restart */ 12789 /** @domName JavaScriptCallFrame.restart */
12790 /// @docsEditable
11547 Object restart() native; 12791 Object restart() native;
11548 12792
11549 /** @domName JavaScriptCallFrame.scopeType */ 12793 /** @domName JavaScriptCallFrame.scopeType */
12794 /// @docsEditable
11550 int scopeType(int scopeIndex) native; 12795 int scopeType(int scopeIndex) native;
11551 } 12796 }
11552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11553 // for details. All rights reserved. Use of this source code is governed by a 12798 // for details. All rights reserved. Use of this source code is governed by a
11554 // BSD-style license that can be found in the LICENSE file. 12799 // BSD-style license that can be found in the LICENSE file.
11555 12800
11556 12801
11557 /// @domName KeyboardEvent 12802 /// @domName KeyboardEvent
12803 /// @docsEditable
11558 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { 12804 class KeyboardEvent extends UIEvent native "*KeyboardEvent" {
11559 12805
11560 /** @domName KeyboardEvent.altGraphKey */ 12806 /** @domName KeyboardEvent.altGraphKey */
12807 /// @docsEditable
11561 final bool altGraphKey; 12808 final bool altGraphKey;
11562 12809
11563 /** @domName KeyboardEvent.altKey */ 12810 /** @domName KeyboardEvent.altKey */
12811 /// @docsEditable
11564 final bool altKey; 12812 final bool altKey;
11565 12813
11566 /** @domName KeyboardEvent.ctrlKey */ 12814 /** @domName KeyboardEvent.ctrlKey */
12815 /// @docsEditable
11567 final bool ctrlKey; 12816 final bool ctrlKey;
11568 12817
11569 /** @domName KeyboardEvent.keyIdentifier */ 12818 /** @domName KeyboardEvent.keyIdentifier */
12819 /// @docsEditable
11570 final String keyIdentifier; 12820 final String keyIdentifier;
11571 12821
11572 /** @domName KeyboardEvent.keyLocation */ 12822 /** @domName KeyboardEvent.keyLocation */
12823 /// @docsEditable
11573 final int keyLocation; 12824 final int keyLocation;
11574 12825
11575 /** @domName KeyboardEvent.metaKey */ 12826 /** @domName KeyboardEvent.metaKey */
12827 /// @docsEditable
11576 final bool metaKey; 12828 final bool metaKey;
11577 12829
11578 /** @domName KeyboardEvent.shiftKey */ 12830 /** @domName KeyboardEvent.shiftKey */
12831 /// @docsEditable
11579 final bool shiftKey; 12832 final bool shiftKey;
11580 12833
11581 /** @domName KeyboardEvent.initKeyboardEvent */ 12834 /** @domName KeyboardEvent.initKeyboardEvent */
12835 /// @docsEditable
11582 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; 12836 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;
11583 } 12837 }
11584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11585 // for details. All rights reserved. Use of this source code is governed by a 12839 // for details. All rights reserved. Use of this source code is governed by a
11586 // BSD-style license that can be found in the LICENSE file. 12840 // BSD-style license that can be found in the LICENSE file.
11587 12841
11588 12842
11589 /// @domName HTMLKeygenElement 12843 /// @domName HTMLKeygenElement
12844 /// @docsEditable
11590 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" { 12845 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" {
11591 12846
11592 factory KeygenElement() => document.$dom_createElement("keygen"); 12847 factory KeygenElement() => document.$dom_createElement("keygen");
11593 12848
11594 /** @domName HTMLKeygenElement.autofocus */ 12849 /** @domName HTMLKeygenElement.autofocus */
12850 /// @docsEditable
11595 bool autofocus; 12851 bool autofocus;
11596 12852
11597 /** @domName HTMLKeygenElement.challenge */ 12853 /** @domName HTMLKeygenElement.challenge */
12854 /// @docsEditable
11598 String challenge; 12855 String challenge;
11599 12856
11600 /** @domName HTMLKeygenElement.disabled */ 12857 /** @domName HTMLKeygenElement.disabled */
12858 /// @docsEditable
11601 bool disabled; 12859 bool disabled;
11602 12860
11603 /** @domName HTMLKeygenElement.form */ 12861 /** @domName HTMLKeygenElement.form */
12862 /// @docsEditable
11604 final FormElement form; 12863 final FormElement form;
11605 12864
11606 /** @domName HTMLKeygenElement.keytype */ 12865 /** @domName HTMLKeygenElement.keytype */
12866 /// @docsEditable
11607 String keytype; 12867 String keytype;
11608 12868
11609 /** @domName HTMLKeygenElement.labels */ 12869 /** @domName HTMLKeygenElement.labels */
12870 /// @docsEditable
11610 final List<Node> labels; 12871 final List<Node> labels;
11611 12872
11612 /** @domName HTMLKeygenElement.name */ 12873 /** @domName HTMLKeygenElement.name */
12874 /// @docsEditable
11613 String name; 12875 String name;
11614 12876
11615 /** @domName HTMLKeygenElement.type */ 12877 /** @domName HTMLKeygenElement.type */
12878 /// @docsEditable
11616 final String type; 12879 final String type;
11617 12880
11618 /** @domName HTMLKeygenElement.validationMessage */ 12881 /** @domName HTMLKeygenElement.validationMessage */
12882 /// @docsEditable
11619 final String validationMessage; 12883 final String validationMessage;
11620 12884
11621 /** @domName HTMLKeygenElement.validity */ 12885 /** @domName HTMLKeygenElement.validity */
12886 /// @docsEditable
11622 final ValidityState validity; 12887 final ValidityState validity;
11623 12888
11624 /** @domName HTMLKeygenElement.willValidate */ 12889 /** @domName HTMLKeygenElement.willValidate */
12890 /// @docsEditable
11625 final bool willValidate; 12891 final bool willValidate;
11626 12892
11627 /** @domName HTMLKeygenElement.checkValidity */ 12893 /** @domName HTMLKeygenElement.checkValidity */
12894 /// @docsEditable
11628 bool checkValidity() native; 12895 bool checkValidity() native;
11629 12896
11630 /** @domName HTMLKeygenElement.setCustomValidity */ 12897 /** @domName HTMLKeygenElement.setCustomValidity */
12898 /// @docsEditable
11631 void setCustomValidity(String error) native; 12899 void setCustomValidity(String error) native;
11632 } 12900 }
11633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12901 // 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 12902 // 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. 12903 // BSD-style license that can be found in the LICENSE file.
11636 12904
11637 12905
11638 /// @domName HTMLLIElement 12906 /// @domName HTMLLIElement
12907 /// @docsEditable
11639 class LIElement extends Element implements Element native "*HTMLLIElement" { 12908 class LIElement extends Element implements Element native "*HTMLLIElement" {
11640 12909
11641 factory LIElement() => document.$dom_createElement("li"); 12910 factory LIElement() => document.$dom_createElement("li");
11642 12911
11643 /** @domName HTMLLIElement.type */ 12912 /** @domName HTMLLIElement.type */
12913 /// @docsEditable
11644 String type; 12914 String type;
11645 12915
11646 /** @domName HTMLLIElement.value */ 12916 /** @domName HTMLLIElement.value */
12917 /// @docsEditable
11647 int value; 12918 int value;
11648 } 12919 }
11649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12920 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11650 // for details. All rights reserved. Use of this source code is governed by a 12921 // for details. All rights reserved. Use of this source code is governed by a
11651 // BSD-style license that can be found in the LICENSE file. 12922 // BSD-style license that can be found in the LICENSE file.
11652 12923
11653 12924
11654 /// @domName HTMLLabelElement 12925 /// @domName HTMLLabelElement
12926 /// @docsEditable
11655 class LabelElement extends Element implements Element native "*HTMLLabelElement" { 12927 class LabelElement extends Element implements Element native "*HTMLLabelElement" {
11656 12928
11657 factory LabelElement() => document.$dom_createElement("label"); 12929 factory LabelElement() => document.$dom_createElement("label");
11658 12930
11659 /** @domName HTMLLabelElement.control */ 12931 /** @domName HTMLLabelElement.control */
12932 /// @docsEditable
11660 final Element control; 12933 final Element control;
11661 12934
11662 /** @domName HTMLLabelElement.form */ 12935 /** @domName HTMLLabelElement.form */
12936 /// @docsEditable
11663 final FormElement form; 12937 final FormElement form;
11664 12938
11665 /** @domName HTMLLabelElement.htmlFor */ 12939 /** @domName HTMLLabelElement.htmlFor */
12940 /// @docsEditable
11666 String htmlFor; 12941 String htmlFor;
11667 } 12942 }
11668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11669 // for details. All rights reserved. Use of this source code is governed by a 12944 // for details. All rights reserved. Use of this source code is governed by a
11670 // BSD-style license that can be found in the LICENSE file. 12945 // BSD-style license that can be found in the LICENSE file.
11671 12946
11672 12947
11673 /// @domName HTMLLegendElement 12948 /// @domName HTMLLegendElement
12949 /// @docsEditable
11674 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" { 12950 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" {
11675 12951
11676 factory LegendElement() => document.$dom_createElement("legend"); 12952 factory LegendElement() => document.$dom_createElement("legend");
11677 12953
11678 /** @domName HTMLLegendElement.align */ 12954 /** @domName HTMLLegendElement.align */
12955 /// @docsEditable
11679 String align; 12956 String align;
11680 12957
11681 /** @domName HTMLLegendElement.form */ 12958 /** @domName HTMLLegendElement.form */
12959 /// @docsEditable
11682 final FormElement form; 12960 final FormElement form;
11683 } 12961 }
11684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11685 // for details. All rights reserved. Use of this source code is governed by a 12963 // for details. All rights reserved. Use of this source code is governed by a
11686 // BSD-style license that can be found in the LICENSE file. 12964 // BSD-style license that can be found in the LICENSE file.
11687 12965
11688 12966
11689 /// @domName HTMLLinkElement 12967 /// @domName HTMLLinkElement
12968 /// @docsEditable
11690 class LinkElement extends Element implements Element native "*HTMLLinkElement" { 12969 class LinkElement extends Element implements Element native "*HTMLLinkElement" {
11691 12970
11692 factory LinkElement() => document.$dom_createElement("link"); 12971 factory LinkElement() => document.$dom_createElement("link");
11693 12972
11694 /** @domName HTMLLinkElement.charset */ 12973 /** @domName HTMLLinkElement.charset */
12974 /// @docsEditable
11695 String charset; 12975 String charset;
11696 12976
11697 /** @domName HTMLLinkElement.disabled */ 12977 /** @domName HTMLLinkElement.disabled */
12978 /// @docsEditable
11698 bool disabled; 12979 bool disabled;
11699 12980
11700 /** @domName HTMLLinkElement.href */ 12981 /** @domName HTMLLinkElement.href */
12982 /// @docsEditable
11701 String href; 12983 String href;
11702 12984
11703 /** @domName HTMLLinkElement.hreflang */ 12985 /** @domName HTMLLinkElement.hreflang */
12986 /// @docsEditable
11704 String hreflang; 12987 String hreflang;
11705 12988
11706 /** @domName HTMLLinkElement.media */ 12989 /** @domName HTMLLinkElement.media */
12990 /// @docsEditable
11707 String media; 12991 String media;
11708 12992
11709 /** @domName HTMLLinkElement.rel */ 12993 /** @domName HTMLLinkElement.rel */
12994 /// @docsEditable
11710 String rel; 12995 String rel;
11711 12996
11712 /** @domName HTMLLinkElement.rev */ 12997 /** @domName HTMLLinkElement.rev */
12998 /// @docsEditable
11713 String rev; 12999 String rev;
11714 13000
11715 /** @domName HTMLLinkElement.sheet */ 13001 /** @domName HTMLLinkElement.sheet */
13002 /// @docsEditable
11716 final StyleSheet sheet; 13003 final StyleSheet sheet;
11717 13004
11718 /** @domName HTMLLinkElement.sizes */ 13005 /** @domName HTMLLinkElement.sizes */
13006 /// @docsEditable
11719 DOMSettableTokenList sizes; 13007 DOMSettableTokenList sizes;
11720 13008
11721 /** @domName HTMLLinkElement.target */ 13009 /** @domName HTMLLinkElement.target */
13010 /// @docsEditable
11722 String target; 13011 String target;
11723 13012
11724 /** @domName HTMLLinkElement.type */ 13013 /** @domName HTMLLinkElement.type */
13014 /// @docsEditable
11725 String type; 13015 String type;
11726 } 13016 }
11727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11728 // for details. All rights reserved. Use of this source code is governed by a 13018 // for details. All rights reserved. Use of this source code is governed by a
11729 // BSD-style license that can be found in the LICENSE file. 13019 // BSD-style license that can be found in the LICENSE file.
11730 13020
11731 13021
11732 /// @domName History 13022 /// @domName History
13023 /// @docsEditable
11733 class LocalHistory implements History native "*History" { 13024 class LocalHistory implements History native "*History" {
11734 13025
11735 /** @domName History.length */ 13026 /** @domName History.length */
13027 /// @docsEditable
11736 final int length; 13028 final int length;
11737 13029
11738 /** @domName History.state */ 13030 /** @domName History.state */
13031 /// @docsEditable
11739 final dynamic state; 13032 final dynamic state;
11740 13033
11741 /** @domName History.back */ 13034 /** @domName History.back */
13035 /// @docsEditable
11742 void back() native; 13036 void back() native;
11743 13037
11744 /** @domName History.forward */ 13038 /** @domName History.forward */
13039 /// @docsEditable
11745 void forward() native; 13040 void forward() native;
11746 13041
11747 /** @domName History.go */ 13042 /** @domName History.go */
13043 /// @docsEditable
11748 void go(int distance) native; 13044 void go(int distance) native;
11749 13045
11750 /** @domName History.pushState */ 13046 /** @domName History.pushState */
13047 /// @docsEditable
11751 void pushState(Object data, String title, [String url]) native; 13048 void pushState(Object data, String title, [String url]) native;
11752 13049
11753 /** @domName History.replaceState */ 13050 /** @domName History.replaceState */
13051 /// @docsEditable
11754 void replaceState(Object data, String title, [String url]) native; 13052 void replaceState(Object data, String title, [String url]) native;
11755 } 13053 }
11756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11757 // for details. All rights reserved. Use of this source code is governed by a 13055 // for details. All rights reserved. Use of this source code is governed by a
11758 // BSD-style license that can be found in the LICENSE file. 13056 // BSD-style license that can be found in the LICENSE file.
11759 13057
11760 13058
11761 /// @domName Location 13059 /// @domName Location
13060 /// @docsEditable
11762 class LocalLocation implements Location native "*Location" { 13061 class LocalLocation implements Location native "*Location" {
11763 13062
11764 /** @domName Location.ancestorOrigins */ 13063 /** @domName Location.ancestorOrigins */
13064 /// @docsEditable
11765 final List<String> ancestorOrigins; 13065 final List<String> ancestorOrigins;
11766 13066
11767 /** @domName Location.hash */ 13067 /** @domName Location.hash */
13068 /// @docsEditable
11768 String hash; 13069 String hash;
11769 13070
11770 /** @domName Location.host */ 13071 /** @domName Location.host */
13072 /// @docsEditable
11771 String host; 13073 String host;
11772 13074
11773 /** @domName Location.hostname */ 13075 /** @domName Location.hostname */
13076 /// @docsEditable
11774 String hostname; 13077 String hostname;
11775 13078
11776 /** @domName Location.href */ 13079 /** @domName Location.href */
13080 /// @docsEditable
11777 String href; 13081 String href;
11778 13082
11779 /** @domName Location.origin */ 13083 /** @domName Location.origin */
13084 /// @docsEditable
11780 final String origin; 13085 final String origin;
11781 13086
11782 /** @domName Location.pathname */ 13087 /** @domName Location.pathname */
13088 /// @docsEditable
11783 String pathname; 13089 String pathname;
11784 13090
11785 /** @domName Location.port */ 13091 /** @domName Location.port */
13092 /// @docsEditable
11786 String port; 13093 String port;
11787 13094
11788 /** @domName Location.protocol */ 13095 /** @domName Location.protocol */
13096 /// @docsEditable
11789 String protocol; 13097 String protocol;
11790 13098
11791 /** @domName Location.search */ 13099 /** @domName Location.search */
13100 /// @docsEditable
11792 String search; 13101 String search;
11793 13102
11794 /** @domName Location.assign */ 13103 /** @domName Location.assign */
13104 /// @docsEditable
11795 void assign(String url) native; 13105 void assign(String url) native;
11796 13106
11797 /** @domName Location.reload */ 13107 /** @domName Location.reload */
13108 /// @docsEditable
11798 void reload() native; 13109 void reload() native;
11799 13110
11800 /** @domName Location.replace */ 13111 /** @domName Location.replace */
13112 /// @docsEditable
11801 void replace(String url) native; 13113 void replace(String url) native;
11802 13114
11803 /** @domName Location.toString */ 13115 /** @domName Location.toString */
13116 /// @docsEditable
11804 String toString() native; 13117 String toString() native;
11805 } 13118 }
11806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11807 // for details. All rights reserved. Use of this source code is governed by a 13120 // for details. All rights reserved. Use of this source code is governed by a
11808 // BSD-style license that can be found in the LICENSE file. 13121 // BSD-style license that can be found in the LICENSE file.
11809 13122
11810 13123
11811 /// @domName LocalMediaStream 13124 /// @domName LocalMediaStream
13125 /// @docsEditable
11812 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" { 13126 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" {
11813 13127
11814 /** @domName LocalMediaStream.stop */ 13128 /** @domName LocalMediaStream.stop */
13129 /// @docsEditable
11815 void stop() native; 13130 void stop() native;
11816 } 13131 }
11817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11818 // for details. All rights reserved. Use of this source code is governed by a 13133 // for details. All rights reserved. Use of this source code is governed by a
11819 // BSD-style license that can be found in the LICENSE file. 13134 // BSD-style license that can be found in the LICENSE file.
11820 13135
11821 13136
11822 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { 13137 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
11823 13138
11824 Document get document => JS('Document', '#.document', this); 13139 Document get document => JS('Document', '#.document', this);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
11957 */ 13272 */
11958 void registerPort(String name, var port) { 13273 void registerPort(String name, var port) {
11959 var serialized = _serialize(port); 13274 var serialized = _serialize(port);
11960 localStorage['dart-port:$name'] = JSON.stringify(serialized); 13275 localStorage['dart-port:$name'] = JSON.stringify(serialized);
11961 } 13276 }
11962 13277
11963 13278
11964 /** 13279 /**
11965 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 13280 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
11966 */ 13281 */
13282 /// @docsEditable
11967 LocalWindowEvents get on => 13283 LocalWindowEvents get on =>
11968 new LocalWindowEvents(this); 13284 new LocalWindowEvents(this);
11969 13285
11970 static const int PERSISTENT = 1; 13286 static const int PERSISTENT = 1;
11971 13287
11972 static const int TEMPORARY = 0; 13288 static const int TEMPORARY = 0;
11973 13289
11974 /** @domName Window.applicationCache */ 13290 /** @domName Window.applicationCache */
13291 /// @docsEditable
11975 final DOMApplicationCache applicationCache; 13292 final DOMApplicationCache applicationCache;
11976 13293
11977 /** @domName Window.closed */ 13294 /** @domName Window.closed */
13295 /// @docsEditable
11978 final bool closed; 13296 final bool closed;
11979 13297
11980 /** @domName Window.console */ 13298 /** @domName Window.console */
13299 /// @docsEditable
11981 final Console console; 13300 final Console console;
11982 13301
11983 /** @domName Window.crypto */ 13302 /** @domName Window.crypto */
13303 /// @docsEditable
11984 final Crypto crypto; 13304 final Crypto crypto;
11985 13305
11986 /** @domName Window.defaultStatus */ 13306 /** @domName Window.defaultStatus */
13307 /// @docsEditable
11987 String defaultStatus; 13308 String defaultStatus;
11988 13309
11989 /** @domName Window.defaultstatus */ 13310 /** @domName Window.defaultstatus */
13311 /// @docsEditable
11990 String defaultstatus; 13312 String defaultstatus;
11991 13313
11992 /** @domName Window.devicePixelRatio */ 13314 /** @domName Window.devicePixelRatio */
13315 /// @docsEditable
11993 final num devicePixelRatio; 13316 final num devicePixelRatio;
11994 13317
11995 /** @domName Window.event */ 13318 /** @domName Window.event */
13319 /// @docsEditable
11996 final Event event; 13320 final Event event;
11997 13321
11998 /** @domName Window.history */ 13322 /** @domName Window.history */
13323 /// @docsEditable
11999 final LocalHistory history; 13324 final LocalHistory history;
12000 13325
12001 /** @domName Window.innerHeight */ 13326 /** @domName Window.innerHeight */
13327 /// @docsEditable
12002 final int innerHeight; 13328 final int innerHeight;
12003 13329
12004 /** @domName Window.innerWidth */ 13330 /** @domName Window.innerWidth */
13331 /// @docsEditable
12005 final int innerWidth; 13332 final int innerWidth;
12006 13333
12007 /** @domName Window.localStorage */ 13334 /** @domName Window.localStorage */
13335 /// @docsEditable
12008 final Storage localStorage; 13336 final Storage localStorage;
12009 13337
12010 /** @domName Window.locationbar */ 13338 /** @domName Window.locationbar */
13339 /// @docsEditable
12011 final BarInfo locationbar; 13340 final BarInfo locationbar;
12012 13341
12013 /** @domName Window.menubar */ 13342 /** @domName Window.menubar */
13343 /// @docsEditable
12014 final BarInfo menubar; 13344 final BarInfo menubar;
12015 13345
12016 /** @domName Window.name */ 13346 /** @domName Window.name */
13347 /// @docsEditable
12017 String name; 13348 String name;
12018 13349
12019 /** @domName Window.navigator */ 13350 /** @domName Window.navigator */
13351 /// @docsEditable
12020 final Navigator navigator; 13352 final Navigator navigator;
12021 13353
12022 /** @domName Window.offscreenBuffering */ 13354 /** @domName Window.offscreenBuffering */
13355 /// @docsEditable
12023 final bool offscreenBuffering; 13356 final bool offscreenBuffering;
12024 13357
12025 /** @domName Window.opener */ 13358 /** @domName Window.opener */
13359 /// @docsEditable
12026 Window get opener => _convertNativeToDart_Window(this._opener); 13360 Window get opener => _convertNativeToDart_Window(this._opener);
12027 dynamic get _opener => JS("dynamic", "#.opener", this); 13361 dynamic get _opener => JS("dynamic", "#.opener", this);
12028 13362
12029 /** @domName Window.outerHeight */ 13363 /** @domName Window.outerHeight */
13364 /// @docsEditable
12030 final int outerHeight; 13365 final int outerHeight;
12031 13366
12032 /** @domName Window.outerWidth */ 13367 /** @domName Window.outerWidth */
13368 /// @docsEditable
12033 final int outerWidth; 13369 final int outerWidth;
12034 13370
12035 /** @domName DOMWindow.pagePopupController */ 13371 /** @domName DOMWindow.pagePopupController */
13372 /// @docsEditable
12036 final PagePopupController pagePopupController; 13373 final PagePopupController pagePopupController;
12037 13374
12038 /** @domName Window.pageXOffset */ 13375 /** @domName Window.pageXOffset */
13376 /// @docsEditable
12039 final int pageXOffset; 13377 final int pageXOffset;
12040 13378
12041 /** @domName Window.pageYOffset */ 13379 /** @domName Window.pageYOffset */
13380 /// @docsEditable
12042 final int pageYOffset; 13381 final int pageYOffset;
12043 13382
12044 /** @domName Window.parent */ 13383 /** @domName Window.parent */
13384 /// @docsEditable
12045 Window get parent => _convertNativeToDart_Window(this._parent); 13385 Window get parent => _convertNativeToDart_Window(this._parent);
12046 dynamic get _parent => JS("dynamic", "#.parent", this); 13386 dynamic get _parent => JS("dynamic", "#.parent", this);
12047 13387
12048 /** @domName Window.performance */ 13388 /** @domName Window.performance */
13389 /// @docsEditable
12049 final Performance performance; 13390 final Performance performance;
12050 13391
12051 /** @domName Window.personalbar */ 13392 /** @domName Window.personalbar */
13393 /// @docsEditable
12052 final BarInfo personalbar; 13394 final BarInfo personalbar;
12053 13395
12054 /** @domName Window.screen */ 13396 /** @domName Window.screen */
13397 /// @docsEditable
12055 final Screen screen; 13398 final Screen screen;
12056 13399
12057 /** @domName Window.screenLeft */ 13400 /** @domName Window.screenLeft */
13401 /// @docsEditable
12058 final int screenLeft; 13402 final int screenLeft;
12059 13403
12060 /** @domName Window.screenTop */ 13404 /** @domName Window.screenTop */
13405 /// @docsEditable
12061 final int screenTop; 13406 final int screenTop;
12062 13407
12063 /** @domName Window.screenX */ 13408 /** @domName Window.screenX */
13409 /// @docsEditable
12064 final int screenX; 13410 final int screenX;
12065 13411
12066 /** @domName Window.screenY */ 13412 /** @domName Window.screenY */
13413 /// @docsEditable
12067 final int screenY; 13414 final int screenY;
12068 13415
12069 /** @domName Window.scrollX */ 13416 /** @domName Window.scrollX */
13417 /// @docsEditable
12070 final int scrollX; 13418 final int scrollX;
12071 13419
12072 /** @domName Window.scrollY */ 13420 /** @domName Window.scrollY */
13421 /// @docsEditable
12073 final int scrollY; 13422 final int scrollY;
12074 13423
12075 /** @domName Window.scrollbars */ 13424 /** @domName Window.scrollbars */
13425 /// @docsEditable
12076 final BarInfo scrollbars; 13426 final BarInfo scrollbars;
12077 13427
12078 /** @domName Window.self */ 13428 /** @domName Window.self */
13429 /// @docsEditable
12079 Window get self => _convertNativeToDart_Window(this._self); 13430 Window get self => _convertNativeToDart_Window(this._self);
12080 dynamic get _self => JS("dynamic", "#.self", this); 13431 dynamic get _self => JS("dynamic", "#.self", this);
12081 13432
12082 /** @domName Window.sessionStorage */ 13433 /** @domName Window.sessionStorage */
13434 /// @docsEditable
12083 final Storage sessionStorage; 13435 final Storage sessionStorage;
12084 13436
12085 /** @domName Window.status */ 13437 /** @domName Window.status */
13438 /// @docsEditable
12086 String status; 13439 String status;
12087 13440
12088 /** @domName Window.statusbar */ 13441 /** @domName Window.statusbar */
13442 /// @docsEditable
12089 final BarInfo statusbar; 13443 final BarInfo statusbar;
12090 13444
12091 /** @domName Window.styleMedia */ 13445 /** @domName Window.styleMedia */
13446 /// @docsEditable
12092 final StyleMedia styleMedia; 13447 final StyleMedia styleMedia;
12093 13448
12094 /** @domName Window.toolbar */ 13449 /** @domName Window.toolbar */
13450 /// @docsEditable
12095 final BarInfo toolbar; 13451 final BarInfo toolbar;
12096 13452
12097 /** @domName Window.top */ 13453 /** @domName Window.top */
13454 /// @docsEditable
12098 Window get top => _convertNativeToDart_Window(this._top); 13455 Window get top => _convertNativeToDart_Window(this._top);
12099 dynamic get _top => JS("dynamic", "#.top", this); 13456 dynamic get _top => JS("dynamic", "#.top", this);
12100 13457
12101 /** @domName DOMWindow.webkitIndexedDB */ 13458 /** @domName DOMWindow.webkitIndexedDB */
13459 /// @docsEditable
12102 final IDBFactory webkitIndexedDB; 13460 final IDBFactory webkitIndexedDB;
12103 13461
12104 /** @domName DOMWindow.webkitNotifications */ 13462 /** @domName DOMWindow.webkitNotifications */
13463 /// @docsEditable
12105 final NotificationCenter webkitNotifications; 13464 final NotificationCenter webkitNotifications;
12106 13465
12107 /** @domName DOMWindow.webkitStorageInfo */ 13466 /** @domName DOMWindow.webkitStorageInfo */
13467 /// @docsEditable
12108 final StorageInfo webkitStorageInfo; 13468 final StorageInfo webkitStorageInfo;
12109 13469
12110 /** @domName Window.window */ 13470 /** @domName Window.window */
13471 /// @docsEditable
12111 Window get window => _convertNativeToDart_Window(this._window); 13472 Window get window => _convertNativeToDart_Window(this._window);
12112 dynamic get _window => JS("dynamic", "#.window", this); 13473 dynamic get _window => JS("dynamic", "#.window", this);
12113 13474
12114 /** @domName Window.addEventListener */ 13475 /** @domName Window.addEventListener */
13476 /// @docsEditable
12115 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 13477 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12116 13478
12117 /** @domName Window.alert */ 13479 /** @domName Window.alert */
13480 /// @docsEditable
12118 void alert(String message) native; 13481 void alert(String message) native;
12119 13482
12120 /** @domName Window.atob */ 13483 /** @domName Window.atob */
13484 /// @docsEditable
12121 String atob(String string) native; 13485 String atob(String string) native;
12122 13486
12123 /** @domName Window.blur */ 13487 /** @domName Window.blur */
13488 /// @docsEditable
12124 void blur() native; 13489 void blur() native;
12125 13490
12126 /** @domName Window.btoa */ 13491 /** @domName Window.btoa */
13492 /// @docsEditable
12127 String btoa(String string) native; 13493 String btoa(String string) native;
12128 13494
12129 /** @domName Window.captureEvents */ 13495 /** @domName Window.captureEvents */
13496 /// @docsEditable
12130 void captureEvents() native; 13497 void captureEvents() native;
12131 13498
12132 /** @domName Window.clearInterval */ 13499 /** @domName Window.clearInterval */
13500 /// @docsEditable
12133 void clearInterval(int handle) native; 13501 void clearInterval(int handle) native;
12134 13502
12135 /** @domName Window.clearTimeout */ 13503 /** @domName Window.clearTimeout */
13504 /// @docsEditable
12136 void clearTimeout(int handle) native; 13505 void clearTimeout(int handle) native;
12137 13506
12138 /** @domName Window.close */ 13507 /** @domName Window.close */
13508 /// @docsEditable
12139 void close() native; 13509 void close() native;
12140 13510
12141 /** @domName Window.confirm */ 13511 /** @domName Window.confirm */
13512 /// @docsEditable
12142 bool confirm(String message) native; 13513 bool confirm(String message) native;
12143 13514
12144 /** @domName Window.dispatchEvent */ 13515 /** @domName Window.dispatchEvent */
13516 /// @docsEditable
12145 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 13517 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
12146 13518
12147 /** @domName Window.find */ 13519 /** @domName Window.find */
13520 /// @docsEditable
12148 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native; 13521 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
12149 13522
12150 /** @domName Window.focus */ 13523 /** @domName Window.focus */
13524 /// @docsEditable
12151 void focus() native; 13525 void focus() native;
12152 13526
12153 /** @domName Window.getComputedStyle */ 13527 /** @domName Window.getComputedStyle */
13528 /// @docsEditable
12154 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native "getComputedStyle"; 13529 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native "getComputedStyle";
12155 13530
12156 /** @domName Window.getMatchedCSSRules */ 13531 /** @domName Window.getMatchedCSSRules */
13532 /// @docsEditable
12157 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native ; 13533 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native ;
12158 13534
12159 /** @domName Window.getSelection */ 13535 /** @domName Window.getSelection */
13536 /// @docsEditable
12160 DOMSelection getSelection() native; 13537 DOMSelection getSelection() native;
12161 13538
12162 /** @domName Window.matchMedia */ 13539 /** @domName Window.matchMedia */
13540 /// @docsEditable
12163 MediaQueryList matchMedia(String query) native; 13541 MediaQueryList matchMedia(String query) native;
12164 13542
12165 /** @domName Window.moveBy */ 13543 /** @domName Window.moveBy */
13544 /// @docsEditable
12166 void moveBy(num x, num y) native; 13545 void moveBy(num x, num y) native;
12167 13546
12168 /** @domName Window.moveTo */ 13547 /** @domName Window.moveTo */
13548 /// @docsEditable
12169 void moveTo(num x, num y) native; 13549 void moveTo(num x, num y) native;
12170 13550
12171 /** @domName DOMWindow.openDatabase */ 13551 /** @domName DOMWindow.openDatabase */
13552 /// @docsEditable
12172 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 13553 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
12173 13554
12174 /** @domName Window.postMessage */ 13555 /** @domName Window.postMessage */
13556 /// @docsEditable
12175 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 13557 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
12176 if (?message && 13558 if (?message &&
12177 !?messagePorts) { 13559 !?messagePorts) {
12178 var message_1 = _convertDartToNative_SerializedScriptValue(message); 13560 var message_1 = _convertDartToNative_SerializedScriptValue(message);
12179 _postMessage_1(message_1, targetOrigin); 13561 _postMessage_1(message_1, targetOrigin);
12180 return; 13562 return;
12181 } 13563 }
12182 if (?message) { 13564 if (?message) {
12183 var message_2 = _convertDartToNative_SerializedScriptValue(message); 13565 var message_2 = _convertDartToNative_SerializedScriptValue(message);
12184 _postMessage_2(message_2, targetOrigin, messagePorts); 13566 _postMessage_2(message_2, targetOrigin, messagePorts);
12185 return; 13567 return;
12186 } 13568 }
12187 throw new ArgumentError("Incorrect number or type of arguments"); 13569 throw new ArgumentError("Incorrect number or type of arguments");
12188 } 13570 }
12189 void _postMessage_1(message, targetOrigin) native "postMessage"; 13571 void _postMessage_1(message, targetOrigin) native "postMessage";
12190 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess age"; 13572 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess age";
12191 13573
12192 /** @domName Window.print */ 13574 /** @domName Window.print */
13575 /// @docsEditable
12193 void print() native; 13576 void print() native;
12194 13577
12195 /** @domName Window.releaseEvents */ 13578 /** @domName Window.releaseEvents */
13579 /// @docsEditable
12196 void releaseEvents() native; 13580 void releaseEvents() native;
12197 13581
12198 /** @domName Window.removeEventListener */ 13582 /** @domName Window.removeEventListener */
13583 /// @docsEditable
12199 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 13584 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12200 13585
12201 /** @domName Window.resizeBy */ 13586 /** @domName Window.resizeBy */
13587 /// @docsEditable
12202 void resizeBy(num x, num y) native; 13588 void resizeBy(num x, num y) native;
12203 13589
12204 /** @domName Window.resizeTo */ 13590 /** @domName Window.resizeTo */
13591 /// @docsEditable
12205 void resizeTo(num width, num height) native; 13592 void resizeTo(num width, num height) native;
12206 13593
12207 /** @domName Window.scroll */ 13594 /** @domName Window.scroll */
13595 /// @docsEditable
12208 void scroll(int x, int y) native; 13596 void scroll(int x, int y) native;
12209 13597
12210 /** @domName Window.scrollBy */ 13598 /** @domName Window.scrollBy */
13599 /// @docsEditable
12211 void scrollBy(int x, int y) native; 13600 void scrollBy(int x, int y) native;
12212 13601
12213 /** @domName Window.scrollTo */ 13602 /** @domName Window.scrollTo */
13603 /// @docsEditable
12214 void scrollTo(int x, int y) native; 13604 void scrollTo(int x, int y) native;
12215 13605
12216 /** @domName Window.setInterval */ 13606 /** @domName Window.setInterval */
13607 /// @docsEditable
12217 int setInterval(TimeoutHandler handler, int timeout) native; 13608 int setInterval(TimeoutHandler handler, int timeout) native;
12218 13609
12219 /** @domName Window.setTimeout */ 13610 /** @domName Window.setTimeout */
13611 /// @docsEditable
12220 int setTimeout(TimeoutHandler handler, int timeout) native; 13612 int setTimeout(TimeoutHandler handler, int timeout) native;
12221 13613
12222 /** @domName Window.showModalDialog */ 13614 /** @domName Window.showModalDialog */
13615 /// @docsEditable
12223 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive; 13616 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive;
12224 13617
12225 /** @domName Window.stop */ 13618 /** @domName Window.stop */
13619 /// @docsEditable
12226 void stop() native; 13620 void stop() native;
12227 13621
12228 /** @domName Window.webkitConvertPointFromNodeToPage */ 13622 /** @domName Window.webkitConvertPointFromNodeToPage */
13623 /// @docsEditable
12229 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; 13624 Point webkitConvertPointFromNodeToPage(Node node, Point p) native;
12230 13625
12231 /** @domName Window.webkitConvertPointFromPageToNode */ 13626 /** @domName Window.webkitConvertPointFromPageToNode */
13627 /// @docsEditable
12232 Point webkitConvertPointFromPageToNode(Node node, Point p) native; 13628 Point webkitConvertPointFromPageToNode(Node node, Point p) native;
12233 13629
12234 /** @domName DOMWindow.webkitRequestFileSystem */ 13630 /** @domName DOMWindow.webkitRequestFileSystem */
13631 /// @docsEditable
12235 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native; 13632 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native;
12236 13633
12237 /** @domName DOMWindow.webkitResolveLocalFileSystemURL */ 13634 /** @domName DOMWindow.webkitResolveLocalFileSystemURL */
13635 /// @docsEditable
12238 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native; 13636 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native;
12239 13637
12240 } 13638 }
12241 13639
12242 class LocalWindowEvents extends Events { 13640 class LocalWindowEvents extends Events {
12243 LocalWindowEvents(EventTarget _ptr) : super(_ptr); 13641 LocalWindowEvents(EventTarget _ptr) : super(_ptr);
12244 13642
12245 EventListenerList get abort => this['abort']; 13643 EventListenerList get abort => this['abort'];
12246 13644
12247 EventListenerList get beforeUnload => this['beforeunload']; 13645 EventListenerList get beforeUnload => this['beforeunload'];
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
12387 EventListenerList get animationStart => this['webkitAnimationStart']; 13785 EventListenerList get animationStart => this['webkitAnimationStart'];
12388 13786
12389 EventListenerList get transitionEnd => this['webkitTransitionEnd']; 13787 EventListenerList get transitionEnd => this['webkitTransitionEnd'];
12390 } 13788 }
12391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12392 // for details. All rights reserved. Use of this source code is governed by a 13790 // for details. All rights reserved. Use of this source code is governed by a
12393 // BSD-style license that can be found in the LICENSE file. 13791 // BSD-style license that can be found in the LICENSE file.
12394 13792
12395 13793
12396 /// @domName HTMLMapElement 13794 /// @domName HTMLMapElement
13795 /// @docsEditable
12397 class MapElement extends Element implements Element native "*HTMLMapElement" { 13796 class MapElement extends Element implements Element native "*HTMLMapElement" {
12398 13797
12399 factory MapElement() => document.$dom_createElement("map"); 13798 factory MapElement() => document.$dom_createElement("map");
12400 13799
12401 /** @domName HTMLMapElement.areas */ 13800 /** @domName HTMLMapElement.areas */
13801 /// @docsEditable
12402 final HTMLCollection areas; 13802 final HTMLCollection areas;
12403 13803
12404 /** @domName HTMLMapElement.name */ 13804 /** @domName HTMLMapElement.name */
13805 /// @docsEditable
12405 String name; 13806 String name;
12406 } 13807 }
12407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12408 // for details. All rights reserved. Use of this source code is governed by a 13809 // for details. All rights reserved. Use of this source code is governed by a
12409 // BSD-style license that can be found in the LICENSE file. 13810 // BSD-style license that can be found in the LICENSE file.
12410 13811
12411 13812
12412 /// @domName HTMLMarqueeElement 13813 /// @domName HTMLMarqueeElement
13814 /// @docsEditable
12413 class MarqueeElement extends Element implements Element native "*HTMLMarqueeElem ent" { 13815 class MarqueeElement extends Element implements Element native "*HTMLMarqueeElem ent" {
12414 13816
12415 /** @domName HTMLMarqueeElement.behavior */ 13817 /** @domName HTMLMarqueeElement.behavior */
13818 /// @docsEditable
12416 String behavior; 13819 String behavior;
12417 13820
12418 /** @domName HTMLMarqueeElement.bgColor */ 13821 /** @domName HTMLMarqueeElement.bgColor */
13822 /// @docsEditable
12419 String bgColor; 13823 String bgColor;
12420 13824
12421 /** @domName HTMLMarqueeElement.direction */ 13825 /** @domName HTMLMarqueeElement.direction */
13826 /// @docsEditable
12422 String direction; 13827 String direction;
12423 13828
12424 /** @domName HTMLMarqueeElement.height */ 13829 /** @domName HTMLMarqueeElement.height */
13830 /// @docsEditable
12425 String height; 13831 String height;
12426 13832
12427 /** @domName HTMLMarqueeElement.hspace */ 13833 /** @domName HTMLMarqueeElement.hspace */
13834 /// @docsEditable
12428 int hspace; 13835 int hspace;
12429 13836
12430 /** @domName HTMLMarqueeElement.loop */ 13837 /** @domName HTMLMarqueeElement.loop */
13838 /// @docsEditable
12431 int loop; 13839 int loop;
12432 13840
12433 /** @domName HTMLMarqueeElement.scrollAmount */ 13841 /** @domName HTMLMarqueeElement.scrollAmount */
13842 /// @docsEditable
12434 int scrollAmount; 13843 int scrollAmount;
12435 13844
12436 /** @domName HTMLMarqueeElement.scrollDelay */ 13845 /** @domName HTMLMarqueeElement.scrollDelay */
13846 /// @docsEditable
12437 int scrollDelay; 13847 int scrollDelay;
12438 13848
12439 /** @domName HTMLMarqueeElement.trueSpeed */ 13849 /** @domName HTMLMarqueeElement.trueSpeed */
13850 /// @docsEditable
12440 bool trueSpeed; 13851 bool trueSpeed;
12441 13852
12442 /** @domName HTMLMarqueeElement.vspace */ 13853 /** @domName HTMLMarqueeElement.vspace */
13854 /// @docsEditable
12443 int vspace; 13855 int vspace;
12444 13856
12445 /** @domName HTMLMarqueeElement.width */ 13857 /** @domName HTMLMarqueeElement.width */
13858 /// @docsEditable
12446 String width; 13859 String width;
12447 13860
12448 /** @domName HTMLMarqueeElement.start */ 13861 /** @domName HTMLMarqueeElement.start */
13862 /// @docsEditable
12449 void start() native; 13863 void start() native;
12450 13864
12451 /** @domName HTMLMarqueeElement.stop */ 13865 /** @domName HTMLMarqueeElement.stop */
13866 /// @docsEditable
12452 void stop() native; 13867 void stop() native;
12453 } 13868 }
12454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13869 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12455 // for details. All rights reserved. Use of this source code is governed by a 13870 // for details. All rights reserved. Use of this source code is governed by a
12456 // BSD-style license that can be found in the LICENSE file. 13871 // BSD-style license that can be found in the LICENSE file.
12457 13872
12458 13873
12459 /// @domName MediaController 13874 /// @domName MediaController
13875 /// @docsEditable
12460 class MediaController extends EventTarget native "*MediaController" { 13876 class MediaController extends EventTarget native "*MediaController" {
12461 13877
12462 factory MediaController() => _MediaControllerFactoryProvider.createMediaContro ller(); 13878 factory MediaController() => _MediaControllerFactoryProvider.createMediaContro ller();
12463 13879
12464 /** @domName MediaController.buffered */ 13880 /** @domName MediaController.buffered */
13881 /// @docsEditable
12465 final TimeRanges buffered; 13882 final TimeRanges buffered;
12466 13883
12467 /** @domName MediaController.currentTime */ 13884 /** @domName MediaController.currentTime */
13885 /// @docsEditable
12468 num currentTime; 13886 num currentTime;
12469 13887
12470 /** @domName MediaController.defaultPlaybackRate */ 13888 /** @domName MediaController.defaultPlaybackRate */
13889 /// @docsEditable
12471 num defaultPlaybackRate; 13890 num defaultPlaybackRate;
12472 13891
12473 /** @domName MediaController.duration */ 13892 /** @domName MediaController.duration */
13893 /// @docsEditable
12474 final num duration; 13894 final num duration;
12475 13895
12476 /** @domName MediaController.muted */ 13896 /** @domName MediaController.muted */
13897 /// @docsEditable
12477 bool muted; 13898 bool muted;
12478 13899
12479 /** @domName MediaController.paused */ 13900 /** @domName MediaController.paused */
13901 /// @docsEditable
12480 final bool paused; 13902 final bool paused;
12481 13903
12482 /** @domName MediaController.playbackRate */ 13904 /** @domName MediaController.playbackRate */
13905 /// @docsEditable
12483 num playbackRate; 13906 num playbackRate;
12484 13907
12485 /** @domName MediaController.played */ 13908 /** @domName MediaController.played */
13909 /// @docsEditable
12486 final TimeRanges played; 13910 final TimeRanges played;
12487 13911
12488 /** @domName MediaController.seekable */ 13912 /** @domName MediaController.seekable */
13913 /// @docsEditable
12489 final TimeRanges seekable; 13914 final TimeRanges seekable;
12490 13915
12491 /** @domName MediaController.volume */ 13916 /** @domName MediaController.volume */
13917 /// @docsEditable
12492 num volume; 13918 num volume;
12493 13919
12494 /** @domName MediaController.addEventListener */ 13920 /** @domName MediaController.addEventListener */
13921 /// @docsEditable
12495 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 13922 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12496 13923
12497 /** @domName MediaController.dispatchEvent */ 13924 /** @domName MediaController.dispatchEvent */
13925 /// @docsEditable
12498 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 13926 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
12499 13927
12500 /** @domName MediaController.pause */ 13928 /** @domName MediaController.pause */
13929 /// @docsEditable
12501 void pause() native; 13930 void pause() native;
12502 13931
12503 /** @domName MediaController.play */ 13932 /** @domName MediaController.play */
13933 /// @docsEditable
12504 void play() native; 13934 void play() native;
12505 13935
12506 /** @domName MediaController.removeEventListener */ 13936 /** @domName MediaController.removeEventListener */
13937 /// @docsEditable
12507 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 13938 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12508 } 13939 }
12509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12510 // for details. All rights reserved. Use of this source code is governed by a 13941 // for details. All rights reserved. Use of this source code is governed by a
12511 // BSD-style license that can be found in the LICENSE file. 13942 // BSD-style license that can be found in the LICENSE file.
12512 13943
12513 13944
12514 /// @domName HTMLMediaElement 13945 /// @domName HTMLMediaElement
13946 /// @docsEditable
12515 class MediaElement extends Element implements Element native "*HTMLMediaElement" { 13947 class MediaElement extends Element implements Element native "*HTMLMediaElement" {
12516 13948
12517 /** 13949 /**
12518 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 13950 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
12519 */ 13951 */
13952 /// @docsEditable
12520 MediaElementEvents get on => 13953 MediaElementEvents get on =>
12521 new MediaElementEvents(this); 13954 new MediaElementEvents(this);
12522 13955
12523 static const int HAVE_CURRENT_DATA = 2; 13956 static const int HAVE_CURRENT_DATA = 2;
12524 13957
12525 static const int HAVE_ENOUGH_DATA = 4; 13958 static const int HAVE_ENOUGH_DATA = 4;
12526 13959
12527 static const int HAVE_FUTURE_DATA = 3; 13960 static const int HAVE_FUTURE_DATA = 3;
12528 13961
12529 static const int HAVE_METADATA = 1; 13962 static const int HAVE_METADATA = 1;
12530 13963
12531 static const int HAVE_NOTHING = 0; 13964 static const int HAVE_NOTHING = 0;
12532 13965
12533 static const int NETWORK_EMPTY = 0; 13966 static const int NETWORK_EMPTY = 0;
12534 13967
12535 static const int NETWORK_IDLE = 1; 13968 static const int NETWORK_IDLE = 1;
12536 13969
12537 static const int NETWORK_LOADING = 2; 13970 static const int NETWORK_LOADING = 2;
12538 13971
12539 static const int NETWORK_NO_SOURCE = 3; 13972 static const int NETWORK_NO_SOURCE = 3;
12540 13973
12541 /** @domName HTMLMediaElement.autoplay */ 13974 /** @domName HTMLMediaElement.autoplay */
13975 /// @docsEditable
12542 bool autoplay; 13976 bool autoplay;
12543 13977
12544 /** @domName HTMLMediaElement.buffered */ 13978 /** @domName HTMLMediaElement.buffered */
13979 /// @docsEditable
12545 final TimeRanges buffered; 13980 final TimeRanges buffered;
12546 13981
12547 /** @domName HTMLMediaElement.controller */ 13982 /** @domName HTMLMediaElement.controller */
13983 /// @docsEditable
12548 MediaController controller; 13984 MediaController controller;
12549 13985
12550 /** @domName HTMLMediaElement.controls */ 13986 /** @domName HTMLMediaElement.controls */
13987 /// @docsEditable
12551 bool controls; 13988 bool controls;
12552 13989
12553 /** @domName HTMLMediaElement.currentSrc */ 13990 /** @domName HTMLMediaElement.currentSrc */
13991 /// @docsEditable
12554 final String currentSrc; 13992 final String currentSrc;
12555 13993
12556 /** @domName HTMLMediaElement.currentTime */ 13994 /** @domName HTMLMediaElement.currentTime */
13995 /// @docsEditable
12557 num currentTime; 13996 num currentTime;
12558 13997
12559 /** @domName HTMLMediaElement.defaultMuted */ 13998 /** @domName HTMLMediaElement.defaultMuted */
13999 /// @docsEditable
12560 bool defaultMuted; 14000 bool defaultMuted;
12561 14001
12562 /** @domName HTMLMediaElement.defaultPlaybackRate */ 14002 /** @domName HTMLMediaElement.defaultPlaybackRate */
14003 /// @docsEditable
12563 num defaultPlaybackRate; 14004 num defaultPlaybackRate;
12564 14005
12565 /** @domName HTMLMediaElement.duration */ 14006 /** @domName HTMLMediaElement.duration */
14007 /// @docsEditable
12566 final num duration; 14008 final num duration;
12567 14009
12568 /** @domName HTMLMediaElement.ended */ 14010 /** @domName HTMLMediaElement.ended */
14011 /// @docsEditable
12569 final bool ended; 14012 final bool ended;
12570 14013
12571 /** @domName HTMLMediaElement.error */ 14014 /** @domName HTMLMediaElement.error */
14015 /// @docsEditable
12572 final MediaError error; 14016 final MediaError error;
12573 14017
12574 /** @domName HTMLMediaElement.initialTime */ 14018 /** @domName HTMLMediaElement.initialTime */
14019 /// @docsEditable
12575 final num initialTime; 14020 final num initialTime;
12576 14021
12577 /** @domName HTMLMediaElement.loop */ 14022 /** @domName HTMLMediaElement.loop */
14023 /// @docsEditable
12578 bool loop; 14024 bool loop;
12579 14025
12580 /** @domName HTMLMediaElement.mediaGroup */ 14026 /** @domName HTMLMediaElement.mediaGroup */
14027 /// @docsEditable
12581 String mediaGroup; 14028 String mediaGroup;
12582 14029
12583 /** @domName HTMLMediaElement.muted */ 14030 /** @domName HTMLMediaElement.muted */
14031 /// @docsEditable
12584 bool muted; 14032 bool muted;
12585 14033
12586 /** @domName HTMLMediaElement.networkState */ 14034 /** @domName HTMLMediaElement.networkState */
14035 /// @docsEditable
12587 final int networkState; 14036 final int networkState;
12588 14037
12589 /** @domName HTMLMediaElement.paused */ 14038 /** @domName HTMLMediaElement.paused */
14039 /// @docsEditable
12590 final bool paused; 14040 final bool paused;
12591 14041
12592 /** @domName HTMLMediaElement.playbackRate */ 14042 /** @domName HTMLMediaElement.playbackRate */
14043 /// @docsEditable
12593 num playbackRate; 14044 num playbackRate;
12594 14045
12595 /** @domName HTMLMediaElement.played */ 14046 /** @domName HTMLMediaElement.played */
14047 /// @docsEditable
12596 final TimeRanges played; 14048 final TimeRanges played;
12597 14049
12598 /** @domName HTMLMediaElement.preload */ 14050 /** @domName HTMLMediaElement.preload */
14051 /// @docsEditable
12599 String preload; 14052 String preload;
12600 14053
12601 /** @domName HTMLMediaElement.readyState */ 14054 /** @domName HTMLMediaElement.readyState */
14055 /// @docsEditable
12602 final int readyState; 14056 final int readyState;
12603 14057
12604 /** @domName HTMLMediaElement.seekable */ 14058 /** @domName HTMLMediaElement.seekable */
14059 /// @docsEditable
12605 final TimeRanges seekable; 14060 final TimeRanges seekable;
12606 14061
12607 /** @domName HTMLMediaElement.seeking */ 14062 /** @domName HTMLMediaElement.seeking */
14063 /// @docsEditable
12608 final bool seeking; 14064 final bool seeking;
12609 14065
12610 /** @domName HTMLMediaElement.src */ 14066 /** @domName HTMLMediaElement.src */
14067 /// @docsEditable
12611 String src; 14068 String src;
12612 14069
12613 /** @domName HTMLMediaElement.startTime */ 14070 /** @domName HTMLMediaElement.startTime */
14071 /// @docsEditable
12614 final num startTime; 14072 final num startTime;
12615 14073
12616 /** @domName HTMLMediaElement.textTracks */ 14074 /** @domName HTMLMediaElement.textTracks */
14075 /// @docsEditable
12617 final TextTrackList textTracks; 14076 final TextTrackList textTracks;
12618 14077
12619 /** @domName HTMLMediaElement.volume */ 14078 /** @domName HTMLMediaElement.volume */
14079 /// @docsEditable
12620 num volume; 14080 num volume;
12621 14081
12622 /** @domName HTMLMediaElement.webkitAudioDecodedByteCount */ 14082 /** @domName HTMLMediaElement.webkitAudioDecodedByteCount */
14083 /// @docsEditable
12623 final int webkitAudioDecodedByteCount; 14084 final int webkitAudioDecodedByteCount;
12624 14085
12625 /** @domName HTMLMediaElement.webkitClosedCaptionsVisible */ 14086 /** @domName HTMLMediaElement.webkitClosedCaptionsVisible */
14087 /// @docsEditable
12626 bool webkitClosedCaptionsVisible; 14088 bool webkitClosedCaptionsVisible;
12627 14089
12628 /** @domName HTMLMediaElement.webkitHasClosedCaptions */ 14090 /** @domName HTMLMediaElement.webkitHasClosedCaptions */
14091 /// @docsEditable
12629 final bool webkitHasClosedCaptions; 14092 final bool webkitHasClosedCaptions;
12630 14093
12631 /** @domName HTMLMediaElement.webkitPreservesPitch */ 14094 /** @domName HTMLMediaElement.webkitPreservesPitch */
14095 /// @docsEditable
12632 bool webkitPreservesPitch; 14096 bool webkitPreservesPitch;
12633 14097
12634 /** @domName HTMLMediaElement.webkitVideoDecodedByteCount */ 14098 /** @domName HTMLMediaElement.webkitVideoDecodedByteCount */
14099 /// @docsEditable
12635 final int webkitVideoDecodedByteCount; 14100 final int webkitVideoDecodedByteCount;
12636 14101
12637 /** @domName HTMLMediaElement.addTextTrack */ 14102 /** @domName HTMLMediaElement.addTextTrack */
14103 /// @docsEditable
12638 TextTrack addTextTrack(String kind, [String label, String language]) native; 14104 TextTrack addTextTrack(String kind, [String label, String language]) native;
12639 14105
12640 /** @domName HTMLMediaElement.canPlayType */ 14106 /** @domName HTMLMediaElement.canPlayType */
14107 /// @docsEditable
12641 String canPlayType(String type, String keySystem) native; 14108 String canPlayType(String type, String keySystem) native;
12642 14109
12643 /** @domName HTMLMediaElement.load */ 14110 /** @domName HTMLMediaElement.load */
14111 /// @docsEditable
12644 void load() native; 14112 void load() native;
12645 14113
12646 /** @domName HTMLMediaElement.pause */ 14114 /** @domName HTMLMediaElement.pause */
14115 /// @docsEditable
12647 void pause() native; 14116 void pause() native;
12648 14117
12649 /** @domName HTMLMediaElement.play */ 14118 /** @domName HTMLMediaElement.play */
14119 /// @docsEditable
12650 void play() native; 14120 void play() native;
12651 14121
12652 /** @domName HTMLMediaElement.webkitAddKey */ 14122 /** @domName HTMLMediaElement.webkitAddKey */
14123 /// @docsEditable
12653 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]) native; 14124 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]) native;
12654 14125
12655 /** @domName HTMLMediaElement.webkitCancelKeyRequest */ 14126 /** @domName HTMLMediaElement.webkitCancelKeyRequest */
14127 /// @docsEditable
12656 void webkitCancelKeyRequest(String keySystem, String sessionId) native; 14128 void webkitCancelKeyRequest(String keySystem, String sessionId) native;
12657 14129
12658 /** @domName HTMLMediaElement.webkitGenerateKeyRequest */ 14130 /** @domName HTMLMediaElement.webkitGenerateKeyRequest */
14131 /// @docsEditable
12659 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; 14132 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native;
12660 } 14133 }
12661 14134
12662 class MediaElementEvents extends ElementEvents { 14135 class MediaElementEvents extends ElementEvents {
12663 MediaElementEvents(EventTarget _ptr) : super(_ptr); 14136 MediaElementEvents(EventTarget _ptr) : super(_ptr);
12664 14137
12665 EventListenerList get canPlay => this['canplay']; 14138 EventListenerList get canPlay => this['canplay'];
12666 14139
12667 EventListenerList get canPlayThrough => this['canplaythrough']; 14140 EventListenerList get canPlayThrough => this['canplaythrough'];
12668 14141
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
12711 EventListenerList get keyMessage => this['webkitkeymessage']; 14184 EventListenerList get keyMessage => this['webkitkeymessage'];
12712 14185
12713 EventListenerList get needKey => this['webkitneedkey']; 14186 EventListenerList get needKey => this['webkitneedkey'];
12714 } 14187 }
12715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12716 // for details. All rights reserved. Use of this source code is governed by a 14189 // for details. All rights reserved. Use of this source code is governed by a
12717 // BSD-style license that can be found in the LICENSE file. 14190 // BSD-style license that can be found in the LICENSE file.
12718 14191
12719 14192
12720 /// @domName MediaElementAudioSourceNode 14193 /// @domName MediaElementAudioSourceNode
14194 /// @docsEditable
12721 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" { 14195 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" {
12722 14196
12723 /** @domName MediaElementAudioSourceNode.mediaElement */ 14197 /** @domName MediaElementAudioSourceNode.mediaElement */
14198 /// @docsEditable
12724 final MediaElement mediaElement; 14199 final MediaElement mediaElement;
12725 } 14200 }
12726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12727 // for details. All rights reserved. Use of this source code is governed by a 14202 // for details. All rights reserved. Use of this source code is governed by a
12728 // BSD-style license that can be found in the LICENSE file. 14203 // BSD-style license that can be found in the LICENSE file.
12729 14204
12730 14205
12731 /// @domName MediaError 14206 /// @domName MediaError
14207 /// @docsEditable
12732 class MediaError native "*MediaError" { 14208 class MediaError native "*MediaError" {
12733 14209
12734 static const int MEDIA_ERR_ABORTED = 1; 14210 static const int MEDIA_ERR_ABORTED = 1;
12735 14211
12736 static const int MEDIA_ERR_DECODE = 3; 14212 static const int MEDIA_ERR_DECODE = 3;
12737 14213
12738 static const int MEDIA_ERR_ENCRYPTED = 5; 14214 static const int MEDIA_ERR_ENCRYPTED = 5;
12739 14215
12740 static const int MEDIA_ERR_NETWORK = 2; 14216 static const int MEDIA_ERR_NETWORK = 2;
12741 14217
12742 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 14218 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
12743 14219
12744 /** @domName MediaError.code */ 14220 /** @domName MediaError.code */
14221 /// @docsEditable
12745 final int code; 14222 final int code;
12746 } 14223 }
12747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12748 // for details. All rights reserved. Use of this source code is governed by a 14225 // for details. All rights reserved. Use of this source code is governed by a
12749 // BSD-style license that can be found in the LICENSE file. 14226 // BSD-style license that can be found in the LICENSE file.
12750 14227
12751 14228
12752 /// @domName MediaKeyError 14229 /// @domName MediaKeyError
14230 /// @docsEditable
12753 class MediaKeyError native "*MediaKeyError" { 14231 class MediaKeyError native "*MediaKeyError" {
12754 14232
12755 static const int MEDIA_KEYERR_CLIENT = 2; 14233 static const int MEDIA_KEYERR_CLIENT = 2;
12756 14234
12757 static const int MEDIA_KEYERR_DOMAIN = 6; 14235 static const int MEDIA_KEYERR_DOMAIN = 6;
12758 14236
12759 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; 14237 static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
12760 14238
12761 static const int MEDIA_KEYERR_OUTPUT = 4; 14239 static const int MEDIA_KEYERR_OUTPUT = 4;
12762 14240
12763 static const int MEDIA_KEYERR_SERVICE = 3; 14241 static const int MEDIA_KEYERR_SERVICE = 3;
12764 14242
12765 static const int MEDIA_KEYERR_UNKNOWN = 1; 14243 static const int MEDIA_KEYERR_UNKNOWN = 1;
12766 14244
12767 /** @domName MediaKeyError.code */ 14245 /** @domName MediaKeyError.code */
14246 /// @docsEditable
12768 final int code; 14247 final int code;
12769 } 14248 }
12770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12771 // for details. All rights reserved. Use of this source code is governed by a 14250 // for details. All rights reserved. Use of this source code is governed by a
12772 // BSD-style license that can be found in the LICENSE file. 14251 // BSD-style license that can be found in the LICENSE file.
12773 14252
12774 14253
12775 /// @domName MediaKeyEvent 14254 /// @domName MediaKeyEvent
14255 /// @docsEditable
12776 class MediaKeyEvent extends Event native "*MediaKeyEvent" { 14256 class MediaKeyEvent extends Event native "*MediaKeyEvent" {
12777 14257
12778 /** @domName MediaKeyEvent.defaultURL */ 14258 /** @domName MediaKeyEvent.defaultURL */
14259 /// @docsEditable
12779 final String defaultURL; 14260 final String defaultURL;
12780 14261
12781 /** @domName MediaKeyEvent.errorCode */ 14262 /** @domName MediaKeyEvent.errorCode */
14263 /// @docsEditable
12782 final MediaKeyError errorCode; 14264 final MediaKeyError errorCode;
12783 14265
12784 /** @domName MediaKeyEvent.initData */ 14266 /** @domName MediaKeyEvent.initData */
14267 /// @docsEditable
12785 final Uint8Array initData; 14268 final Uint8Array initData;
12786 14269
12787 /** @domName MediaKeyEvent.keySystem */ 14270 /** @domName MediaKeyEvent.keySystem */
14271 /// @docsEditable
12788 final String keySystem; 14272 final String keySystem;
12789 14273
12790 /** @domName MediaKeyEvent.message */ 14274 /** @domName MediaKeyEvent.message */
14275 /// @docsEditable
12791 final Uint8Array message; 14276 final Uint8Array message;
12792 14277
12793 /** @domName MediaKeyEvent.sessionId */ 14278 /** @domName MediaKeyEvent.sessionId */
14279 /// @docsEditable
12794 final String sessionId; 14280 final String sessionId;
12795 14281
12796 /** @domName MediaKeyEvent.systemCode */ 14282 /** @domName MediaKeyEvent.systemCode */
14283 /// @docsEditable
12797 final int systemCode; 14284 final int systemCode;
12798 } 14285 }
12799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12800 // for details. All rights reserved. Use of this source code is governed by a 14287 // for details. All rights reserved. Use of this source code is governed by a
12801 // BSD-style license that can be found in the LICENSE file. 14288 // BSD-style license that can be found in the LICENSE file.
12802 14289
12803 14290
12804 /// @domName MediaList 14291 /// @domName MediaList
14292 /// @docsEditable
12805 class MediaList native "*MediaList" { 14293 class MediaList native "*MediaList" {
12806 14294
12807 /** @domName MediaList.length */ 14295 /** @domName MediaList.length */
14296 /// @docsEditable
12808 final int length; 14297 final int length;
12809 14298
12810 /** @domName MediaList.mediaText */ 14299 /** @domName MediaList.mediaText */
14300 /// @docsEditable
12811 String mediaText; 14301 String mediaText;
12812 14302
12813 /** @domName MediaList.appendMedium */ 14303 /** @domName MediaList.appendMedium */
14304 /// @docsEditable
12814 void appendMedium(String newMedium) native; 14305 void appendMedium(String newMedium) native;
12815 14306
12816 /** @domName MediaList.deleteMedium */ 14307 /** @domName MediaList.deleteMedium */
14308 /// @docsEditable
12817 void deleteMedium(String oldMedium) native; 14309 void deleteMedium(String oldMedium) native;
12818 14310
12819 /** @domName MediaList.item */ 14311 /** @domName MediaList.item */
14312 /// @docsEditable
12820 String item(int index) native; 14313 String item(int index) native;
12821 } 14314 }
12822 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12823 // for details. All rights reserved. Use of this source code is governed by a 14316 // for details. All rights reserved. Use of this source code is governed by a
12824 // BSD-style license that can be found in the LICENSE file. 14317 // BSD-style license that can be found in the LICENSE file.
12825 14318
12826 14319
12827 /// @domName MediaQueryList 14320 /// @domName MediaQueryList
14321 /// @docsEditable
12828 class MediaQueryList native "*MediaQueryList" { 14322 class MediaQueryList native "*MediaQueryList" {
12829 14323
12830 /** @domName MediaQueryList.matches */ 14324 /** @domName MediaQueryList.matches */
14325 /// @docsEditable
12831 final bool matches; 14326 final bool matches;
12832 14327
12833 /** @domName MediaQueryList.media */ 14328 /** @domName MediaQueryList.media */
14329 /// @docsEditable
12834 final String media; 14330 final String media;
12835 14331
12836 /** @domName MediaQueryList.addListener */ 14332 /** @domName MediaQueryList.addListener */
14333 /// @docsEditable
12837 void addListener(MediaQueryListListener listener) native; 14334 void addListener(MediaQueryListListener listener) native;
12838 14335
12839 /** @domName MediaQueryList.removeListener */ 14336 /** @domName MediaQueryList.removeListener */
14337 /// @docsEditable
12840 void removeListener(MediaQueryListListener listener) native; 14338 void removeListener(MediaQueryListListener listener) native;
12841 } 14339 }
12842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12843 // for details. All rights reserved. Use of this source code is governed by a 14341 // for details. All rights reserved. Use of this source code is governed by a
12844 // BSD-style license that can be found in the LICENSE file. 14342 // BSD-style license that can be found in the LICENSE file.
12845 14343
12846 14344
12847 /// @domName MediaQueryListListener 14345 /// @domName MediaQueryListListener
12848 abstract class MediaQueryListListener { 14346 abstract class MediaQueryListListener {
12849 14347
12850 /** @domName MediaQueryListListener.queryChanged */ 14348 /** @domName MediaQueryListListener.queryChanged */
14349 /// @docsEditable
12851 void queryChanged(MediaQueryList list); 14350 void queryChanged(MediaQueryList list);
12852 } 14351 }
12853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12854 // for details. All rights reserved. Use of this source code is governed by a 14353 // for details. All rights reserved. Use of this source code is governed by a
12855 // BSD-style license that can be found in the LICENSE file. 14354 // BSD-style license that can be found in the LICENSE file.
12856 14355
12857 14356
12858 /// @domName MediaSource 14357 /// @domName MediaSource
14358 /// @docsEditable
12859 class MediaSource extends EventTarget native "*MediaSource" { 14359 class MediaSource extends EventTarget native "*MediaSource" {
12860 14360
12861 factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource(); 14361 factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource();
12862 14362
12863 /** @domName MediaSource.activeSourceBuffers */ 14363 /** @domName MediaSource.activeSourceBuffers */
14364 /// @docsEditable
12864 final SourceBufferList activeSourceBuffers; 14365 final SourceBufferList activeSourceBuffers;
12865 14366
12866 /** @domName MediaSource.duration */ 14367 /** @domName MediaSource.duration */
14368 /// @docsEditable
12867 num duration; 14369 num duration;
12868 14370
12869 /** @domName MediaSource.readyState */ 14371 /** @domName MediaSource.readyState */
14372 /// @docsEditable
12870 final String readyState; 14373 final String readyState;
12871 14374
12872 /** @domName MediaSource.sourceBuffers */ 14375 /** @domName MediaSource.sourceBuffers */
14376 /// @docsEditable
12873 final SourceBufferList sourceBuffers; 14377 final SourceBufferList sourceBuffers;
12874 14378
12875 /** @domName MediaSource.addEventListener */ 14379 /** @domName MediaSource.addEventListener */
14380 /// @docsEditable
12876 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14381 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12877 14382
12878 /** @domName MediaSource.addSourceBuffer */ 14383 /** @domName MediaSource.addSourceBuffer */
14384 /// @docsEditable
12879 SourceBuffer addSourceBuffer(String type) native; 14385 SourceBuffer addSourceBuffer(String type) native;
12880 14386
12881 /** @domName MediaSource.dispatchEvent */ 14387 /** @domName MediaSource.dispatchEvent */
14388 /// @docsEditable
12882 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14389 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
12883 14390
12884 /** @domName MediaSource.endOfStream */ 14391 /** @domName MediaSource.endOfStream */
14392 /// @docsEditable
12885 void endOfStream(String error) native; 14393 void endOfStream(String error) native;
12886 14394
12887 /** @domName MediaSource.removeEventListener */ 14395 /** @domName MediaSource.removeEventListener */
14396 /// @docsEditable
12888 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14397 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12889 14398
12890 /** @domName MediaSource.removeSourceBuffer */ 14399 /** @domName MediaSource.removeSourceBuffer */
14400 /// @docsEditable
12891 void removeSourceBuffer(SourceBuffer buffer) native; 14401 void removeSourceBuffer(SourceBuffer buffer) native;
12892 } 14402 }
12893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12894 // for details. All rights reserved. Use of this source code is governed by a 14404 // for details. All rights reserved. Use of this source code is governed by a
12895 // BSD-style license that can be found in the LICENSE file. 14405 // BSD-style license that can be found in the LICENSE file.
12896 14406
12897 14407
12898 /// @domName MediaStream 14408 /// @domName MediaStream
14409 /// @docsEditable
12899 class MediaStream extends EventTarget native "*MediaStream" { 14410 class MediaStream extends EventTarget native "*MediaStream" {
12900 14411
12901 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTra cks); 14412 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTra cks);
12902 14413
12903 /** 14414 /**
12904 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 14415 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
12905 */ 14416 */
14417 /// @docsEditable
12906 MediaStreamEvents get on => 14418 MediaStreamEvents get on =>
12907 new MediaStreamEvents(this); 14419 new MediaStreamEvents(this);
12908 14420
12909 static const int ENDED = 2; 14421 static const int ENDED = 2;
12910 14422
12911 static const int LIVE = 1; 14423 static const int LIVE = 1;
12912 14424
12913 /** @domName MediaStream.audioTracks */ 14425 /** @domName MediaStream.audioTracks */
14426 /// @docsEditable
12914 final MediaStreamTrackList audioTracks; 14427 final MediaStreamTrackList audioTracks;
12915 14428
12916 /** @domName MediaStream.label */ 14429 /** @domName MediaStream.label */
14430 /// @docsEditable
12917 final String label; 14431 final String label;
12918 14432
12919 /** @domName MediaStream.readyState */ 14433 /** @domName MediaStream.readyState */
14434 /// @docsEditable
12920 final int readyState; 14435 final int readyState;
12921 14436
12922 /** @domName MediaStream.videoTracks */ 14437 /** @domName MediaStream.videoTracks */
14438 /// @docsEditable
12923 final MediaStreamTrackList videoTracks; 14439 final MediaStreamTrackList videoTracks;
12924 14440
12925 /** @domName MediaStream.addEventListener */ 14441 /** @domName MediaStream.addEventListener */
14442 /// @docsEditable
12926 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14443 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12927 14444
12928 /** @domName MediaStream.dispatchEvent */ 14445 /** @domName MediaStream.dispatchEvent */
14446 /// @docsEditable
12929 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14447 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
12930 14448
12931 /** @domName MediaStream.removeEventListener */ 14449 /** @domName MediaStream.removeEventListener */
14450 /// @docsEditable
12932 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14451 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12933 } 14452 }
12934 14453
12935 class MediaStreamEvents extends Events { 14454 class MediaStreamEvents extends Events {
12936 MediaStreamEvents(EventTarget _ptr) : super(_ptr); 14455 MediaStreamEvents(EventTarget _ptr) : super(_ptr);
12937 14456
12938 EventListenerList get ended => this['ended']; 14457 EventListenerList get ended => this['ended'];
12939 } 14458 }
12940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12941 // for details. All rights reserved. Use of this source code is governed by a 14460 // for details. All rights reserved. Use of this source code is governed by a
12942 // BSD-style license that can be found in the LICENSE file. 14461 // BSD-style license that can be found in the LICENSE file.
12943 14462
12944 14463
12945 /// @domName MediaStreamAudioSourceNode 14464 /// @domName MediaStreamAudioSourceNode
14465 /// @docsEditable
12946 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" { 14466 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" {
12947 14467
12948 /** @domName MediaStreamAudioSourceNode.mediaStream */ 14468 /** @domName MediaStreamAudioSourceNode.mediaStream */
14469 /// @docsEditable
12949 final MediaStream mediaStream; 14470 final MediaStream mediaStream;
12950 } 14471 }
12951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12952 // for details. All rights reserved. Use of this source code is governed by a 14473 // for details. All rights reserved. Use of this source code is governed by a
12953 // BSD-style license that can be found in the LICENSE file. 14474 // BSD-style license that can be found in the LICENSE file.
12954 14475
12955 14476
12956 /// @domName MediaStreamEvent 14477 /// @domName MediaStreamEvent
14478 /// @docsEditable
12957 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 14479 class MediaStreamEvent extends Event native "*MediaStreamEvent" {
12958 14480
12959 /** @domName MediaStreamEvent.stream */ 14481 /** @domName MediaStreamEvent.stream */
14482 /// @docsEditable
12960 final MediaStream stream; 14483 final MediaStream stream;
12961 } 14484 }
12962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12963 // for details. All rights reserved. Use of this source code is governed by a 14486 // for details. All rights reserved. Use of this source code is governed by a
12964 // BSD-style license that can be found in the LICENSE file. 14487 // BSD-style license that can be found in the LICENSE file.
12965 14488
12966 14489
12967 /// @domName MediaStreamTrack 14490 /// @domName MediaStreamTrack
14491 /// @docsEditable
12968 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { 14492 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" {
12969 14493
12970 /** 14494 /**
12971 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 14495 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
12972 */ 14496 */
14497 /// @docsEditable
12973 MediaStreamTrackEvents get on => 14498 MediaStreamTrackEvents get on =>
12974 new MediaStreamTrackEvents(this); 14499 new MediaStreamTrackEvents(this);
12975 14500
12976 static const int ENDED = 2; 14501 static const int ENDED = 2;
12977 14502
12978 static const int LIVE = 0; 14503 static const int LIVE = 0;
12979 14504
12980 static const int MUTED = 1; 14505 static const int MUTED = 1;
12981 14506
12982 /** @domName MediaStreamTrack.enabled */ 14507 /** @domName MediaStreamTrack.enabled */
14508 /// @docsEditable
12983 bool enabled; 14509 bool enabled;
12984 14510
12985 /** @domName MediaStreamTrack.kind */ 14511 /** @domName MediaStreamTrack.kind */
14512 /// @docsEditable
12986 final String kind; 14513 final String kind;
12987 14514
12988 /** @domName MediaStreamTrack.label */ 14515 /** @domName MediaStreamTrack.label */
14516 /// @docsEditable
12989 final String label; 14517 final String label;
12990 14518
12991 /** @domName MediaStreamTrack.readyState */ 14519 /** @domName MediaStreamTrack.readyState */
14520 /// @docsEditable
12992 final int readyState; 14521 final int readyState;
12993 14522
12994 /** @domName MediaStreamTrack.addEventListener */ 14523 /** @domName MediaStreamTrack.addEventListener */
14524 /// @docsEditable
12995 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14525 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12996 14526
12997 /** @domName MediaStreamTrack.dispatchEvent */ 14527 /** @domName MediaStreamTrack.dispatchEvent */
14528 /// @docsEditable
12998 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14529 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
12999 14530
13000 /** @domName MediaStreamTrack.removeEventListener */ 14531 /** @domName MediaStreamTrack.removeEventListener */
14532 /// @docsEditable
13001 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14533 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13002 } 14534 }
13003 14535
13004 class MediaStreamTrackEvents extends Events { 14536 class MediaStreamTrackEvents extends Events {
13005 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr); 14537 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr);
13006 14538
13007 EventListenerList get ended => this['ended']; 14539 EventListenerList get ended => this['ended'];
13008 14540
13009 EventListenerList get mute => this['mute']; 14541 EventListenerList get mute => this['mute'];
13010 14542
13011 EventListenerList get unmute => this['unmute']; 14543 EventListenerList get unmute => this['unmute'];
13012 } 14544 }
13013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13014 // for details. All rights reserved. Use of this source code is governed by a 14546 // for details. All rights reserved. Use of this source code is governed by a
13015 // BSD-style license that can be found in the LICENSE file. 14547 // BSD-style license that can be found in the LICENSE file.
13016 14548
13017 14549
13018 /// @domName MediaStreamTrackEvent 14550 /// @domName MediaStreamTrackEvent
14551 /// @docsEditable
13019 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { 14552 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" {
13020 14553
13021 /** @domName MediaStreamTrackEvent.track */ 14554 /** @domName MediaStreamTrackEvent.track */
14555 /// @docsEditable
13022 final MediaStreamTrack track; 14556 final MediaStreamTrack track;
13023 } 14557 }
13024 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13025 // for details. All rights reserved. Use of this source code is governed by a 14559 // for details. All rights reserved. Use of this source code is governed by a
13026 // BSD-style license that can be found in the LICENSE file. 14560 // BSD-style license that can be found in the LICENSE file.
13027 14561
13028 14562
13029 /// @domName MediaStreamTrackList 14563 /// @domName MediaStreamTrackList
14564 /// @docsEditable
13030 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { 14565 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" {
13031 14566
13032 /** 14567 /**
13033 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 14568 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
13034 */ 14569 */
14570 /// @docsEditable
13035 MediaStreamTrackListEvents get on => 14571 MediaStreamTrackListEvents get on =>
13036 new MediaStreamTrackListEvents(this); 14572 new MediaStreamTrackListEvents(this);
13037 14573
13038 /** @domName MediaStreamTrackList.length */ 14574 /** @domName MediaStreamTrackList.length */
14575 /// @docsEditable
13039 final int length; 14576 final int length;
13040 14577
13041 /** @domName MediaStreamTrackList.add */ 14578 /** @domName MediaStreamTrackList.add */
14579 /// @docsEditable
13042 void add(MediaStreamTrack track) native; 14580 void add(MediaStreamTrack track) native;
13043 14581
13044 /** @domName MediaStreamTrackList.addEventListener */ 14582 /** @domName MediaStreamTrackList.addEventListener */
14583 /// @docsEditable
13045 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14584 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13046 14585
13047 /** @domName MediaStreamTrackList.dispatchEvent */ 14586 /** @domName MediaStreamTrackList.dispatchEvent */
14587 /// @docsEditable
13048 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14588 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
13049 14589
13050 /** @domName MediaStreamTrackList.item */ 14590 /** @domName MediaStreamTrackList.item */
14591 /// @docsEditable
13051 MediaStreamTrack item(int index) native; 14592 MediaStreamTrack item(int index) native;
13052 14593
13053 /** @domName MediaStreamTrackList.remove */ 14594 /** @domName MediaStreamTrackList.remove */
14595 /// @docsEditable
13054 void remove(MediaStreamTrack track) native; 14596 void remove(MediaStreamTrack track) native;
13055 14597
13056 /** @domName MediaStreamTrackList.removeEventListener */ 14598 /** @domName MediaStreamTrackList.removeEventListener */
14599 /// @docsEditable
13057 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14600 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13058 } 14601 }
13059 14602
13060 class MediaStreamTrackListEvents extends Events { 14603 class MediaStreamTrackListEvents extends Events {
13061 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr); 14604 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr);
13062 14605
13063 EventListenerList get addTrack => this['addtrack']; 14606 EventListenerList get addTrack => this['addtrack'];
13064 14607
13065 EventListenerList get removeTrack => this['removetrack']; 14608 EventListenerList get removeTrack => this['removetrack'];
13066 } 14609 }
13067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13068 // for details. All rights reserved. Use of this source code is governed by a 14611 // for details. All rights reserved. Use of this source code is governed by a
13069 // BSD-style license that can be found in the LICENSE file. 14612 // BSD-style license that can be found in the LICENSE file.
13070 14613
13071 14614
13072 /// @domName MemoryInfo 14615 /// @domName MemoryInfo
14616 /// @docsEditable
13073 class MemoryInfo native "*MemoryInfo" { 14617 class MemoryInfo native "*MemoryInfo" {
13074 14618
13075 /** @domName MemoryInfo.jsHeapSizeLimit */ 14619 /** @domName MemoryInfo.jsHeapSizeLimit */
14620 /// @docsEditable
13076 final int jsHeapSizeLimit; 14621 final int jsHeapSizeLimit;
13077 14622
13078 /** @domName MemoryInfo.totalJSHeapSize */ 14623 /** @domName MemoryInfo.totalJSHeapSize */
14624 /// @docsEditable
13079 final int totalJSHeapSize; 14625 final int totalJSHeapSize;
13080 14626
13081 /** @domName MemoryInfo.usedJSHeapSize */ 14627 /** @domName MemoryInfo.usedJSHeapSize */
14628 /// @docsEditable
13082 final int usedJSHeapSize; 14629 final int usedJSHeapSize;
13083 } 14630 }
13084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13085 // for details. All rights reserved. Use of this source code is governed by a 14632 // for details. All rights reserved. Use of this source code is governed by a
13086 // BSD-style license that can be found in the LICENSE file. 14633 // BSD-style license that can be found in the LICENSE file.
13087 14634
13088 14635
13089 /// @domName HTMLMenuElement 14636 /// @domName HTMLMenuElement
14637 /// @docsEditable
13090 class MenuElement extends Element implements Element native "*HTMLMenuElement" { 14638 class MenuElement extends Element implements Element native "*HTMLMenuElement" {
13091 14639
13092 factory MenuElement() => document.$dom_createElement("menu"); 14640 factory MenuElement() => document.$dom_createElement("menu");
13093 14641
13094 /** @domName HTMLMenuElement.compact */ 14642 /** @domName HTMLMenuElement.compact */
14643 /// @docsEditable
13095 bool compact; 14644 bool compact;
13096 } 14645 }
13097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13098 // for details. All rights reserved. Use of this source code is governed by a 14647 // for details. All rights reserved. Use of this source code is governed by a
13099 // BSD-style license that can be found in the LICENSE file. 14648 // BSD-style license that can be found in the LICENSE file.
13100 14649
13101 14650
13102 /// @domName MessageChannel 14651 /// @domName MessageChannel
14652 /// @docsEditable
13103 class MessageChannel native "*MessageChannel" { 14653 class MessageChannel native "*MessageChannel" {
13104 14654
13105 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne l(); 14655 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne l();
13106 14656
13107 /** @domName MessageChannel.port1 */ 14657 /** @domName MessageChannel.port1 */
14658 /// @docsEditable
13108 final MessagePort port1; 14659 final MessagePort port1;
13109 14660
13110 /** @domName MessageChannel.port2 */ 14661 /** @domName MessageChannel.port2 */
14662 /// @docsEditable
13111 final MessagePort port2; 14663 final MessagePort port2;
13112 } 14664 }
13113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13114 // for details. All rights reserved. Use of this source code is governed by a 14666 // for details. All rights reserved. Use of this source code is governed by a
13115 // BSD-style license that can be found in the LICENSE file. 14667 // BSD-style license that can be found in the LICENSE file.
13116 14668
13117 14669
13118 /// @domName MessageEvent 14670 /// @domName MessageEvent
14671 /// @docsEditable
13119 class MessageEvent extends Event native "*MessageEvent" { 14672 class MessageEvent extends Event native "*MessageEvent" {
13120 14673
13121 /** @domName MessageEvent.data */ 14674 /** @domName MessageEvent.data */
14675 /// @docsEditable
13122 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); 14676 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data);
13123 dynamic get _data => JS("dynamic", "#.data", this); 14677 dynamic get _data => JS("dynamic", "#.data", this);
13124 14678
13125 /** @domName MessageEvent.lastEventId */ 14679 /** @domName MessageEvent.lastEventId */
14680 /// @docsEditable
13126 final String lastEventId; 14681 final String lastEventId;
13127 14682
13128 /** @domName MessageEvent.origin */ 14683 /** @domName MessageEvent.origin */
14684 /// @docsEditable
13129 final String origin; 14685 final String origin;
13130 14686
13131 /** @domName MessageEvent.ports */ 14687 /** @domName MessageEvent.ports */
14688 /// @docsEditable
13132 final List ports; 14689 final List ports;
13133 14690
13134 /** @domName MessageEvent.source */ 14691 /** @domName MessageEvent.source */
14692 /// @docsEditable
13135 Window get source => _convertNativeToDart_Window(this._source); 14693 Window get source => _convertNativeToDart_Window(this._source);
13136 dynamic get _source => JS("dynamic", "#.source", this); 14694 dynamic get _source => JS("dynamic", "#.source", this);
13137 14695
13138 /** @domName MessageEvent.initMessageEvent */ 14696 /** @domName MessageEvent.initMessageEvent */
14697 /// @docsEditable
13139 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L ist messagePorts) native; 14698 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L ist messagePorts) native;
13140 14699
13141 /** @domName MessageEvent.webkitInitMessageEvent */ 14700 /** @domName MessageEvent.webkitInitMessageEvent */
14701 /// @docsEditable
13142 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow source Arg, List transferables) native; 14702 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow source Arg, List transferables) native;
13143 } 14703 }
13144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13145 // for details. All rights reserved. Use of this source code is governed by a 14705 // for details. All rights reserved. Use of this source code is governed by a
13146 // BSD-style license that can be found in the LICENSE file. 14706 // BSD-style license that can be found in the LICENSE file.
13147 14707
13148 14708
13149 /// @domName MessagePort 14709 /// @domName MessagePort
14710 /// @docsEditable
13150 class MessagePort extends EventTarget native "*MessagePort" { 14711 class MessagePort extends EventTarget native "*MessagePort" {
13151 14712
13152 /** 14713 /**
13153 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 14714 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
13154 */ 14715 */
14716 /// @docsEditable
13155 MessagePortEvents get on => 14717 MessagePortEvents get on =>
13156 new MessagePortEvents(this); 14718 new MessagePortEvents(this);
13157 14719
13158 /** @domName MessagePort.addEventListener */ 14720 /** @domName MessagePort.addEventListener */
14721 /// @docsEditable
13159 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14722 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13160 14723
13161 /** @domName MessagePort.close */ 14724 /** @domName MessagePort.close */
14725 /// @docsEditable
13162 void close() native; 14726 void close() native;
13163 14727
13164 /** @domName MessagePort.dispatchEvent */ 14728 /** @domName MessagePort.dispatchEvent */
14729 /// @docsEditable
13165 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 14730 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
13166 14731
13167 /** @domName MessagePort.postMessage */ 14732 /** @domName MessagePort.postMessage */
14733 /// @docsEditable
13168 void postMessage(/*any*/ message, [List messagePorts]) { 14734 void postMessage(/*any*/ message, [List messagePorts]) {
13169 if (?messagePorts) { 14735 if (?messagePorts) {
13170 var message_1 = _convertDartToNative_SerializedScriptValue(message); 14736 var message_1 = _convertDartToNative_SerializedScriptValue(message);
13171 _postMessage_1(message_1, messagePorts); 14737 _postMessage_1(message_1, messagePorts);
13172 return; 14738 return;
13173 } 14739 }
13174 var message_2 = _convertDartToNative_SerializedScriptValue(message); 14740 var message_2 = _convertDartToNative_SerializedScriptValue(message);
13175 _postMessage_2(message_2); 14741 _postMessage_2(message_2);
13176 return; 14742 return;
13177 } 14743 }
13178 void _postMessage_1(message, List messagePorts) native "postMessage"; 14744 void _postMessage_1(message, List messagePorts) native "postMessage";
13179 void _postMessage_2(message) native "postMessage"; 14745 void _postMessage_2(message) native "postMessage";
13180 14746
13181 /** @domName MessagePort.removeEventListener */ 14747 /** @domName MessagePort.removeEventListener */
14748 /// @docsEditable
13182 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14749 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13183 14750
13184 /** @domName MessagePort.start */ 14751 /** @domName MessagePort.start */
14752 /// @docsEditable
13185 void start() native; 14753 void start() native;
13186 } 14754 }
13187 14755
13188 class MessagePortEvents extends Events { 14756 class MessagePortEvents extends Events {
13189 MessagePortEvents(EventTarget _ptr) : super(_ptr); 14757 MessagePortEvents(EventTarget _ptr) : super(_ptr);
13190 14758
13191 EventListenerList get message => this['message']; 14759 EventListenerList get message => this['message'];
13192 } 14760 }
13193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13194 // for details. All rights reserved. Use of this source code is governed by a 14762 // for details. All rights reserved. Use of this source code is governed by a
13195 // BSD-style license that can be found in the LICENSE file. 14763 // BSD-style license that can be found in the LICENSE file.
13196 14764
13197 14765
13198 /// @domName HTMLMetaElement 14766 /// @domName HTMLMetaElement
14767 /// @docsEditable
13199 class MetaElement extends Element implements Element native "*HTMLMetaElement" { 14768 class MetaElement extends Element implements Element native "*HTMLMetaElement" {
13200 14769
13201 /** @domName HTMLMetaElement.content */ 14770 /** @domName HTMLMetaElement.content */
14771 /// @docsEditable
13202 String content; 14772 String content;
13203 14773
13204 /** @domName HTMLMetaElement.httpEquiv */ 14774 /** @domName HTMLMetaElement.httpEquiv */
14775 /// @docsEditable
13205 String httpEquiv; 14776 String httpEquiv;
13206 14777
13207 /** @domName HTMLMetaElement.name */ 14778 /** @domName HTMLMetaElement.name */
14779 /// @docsEditable
13208 String name; 14780 String name;
13209 14781
13210 /** @domName HTMLMetaElement.scheme */ 14782 /** @domName HTMLMetaElement.scheme */
14783 /// @docsEditable
13211 String scheme; 14784 String scheme;
13212 } 14785 }
13213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13214 // for details. All rights reserved. Use of this source code is governed by a 14787 // for details. All rights reserved. Use of this source code is governed by a
13215 // BSD-style license that can be found in the LICENSE file. 14788 // BSD-style license that can be found in the LICENSE file.
13216 14789
13217 14790
13218 /// @domName Metadata 14791 /// @domName Metadata
14792 /// @docsEditable
13219 class Metadata native "*Metadata" { 14793 class Metadata native "*Metadata" {
13220 14794
13221 /** @domName Metadata.modificationTime */ 14795 /** @domName Metadata.modificationTime */
14796 /// @docsEditable
13222 final Date modificationTime; 14797 final Date modificationTime;
13223 14798
13224 /** @domName Metadata.size */ 14799 /** @domName Metadata.size */
14800 /// @docsEditable
13225 final int size; 14801 final int size;
13226 } 14802 }
13227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13228 // for details. All rights reserved. Use of this source code is governed by a 14804 // for details. All rights reserved. Use of this source code is governed by a
13229 // BSD-style license that can be found in the LICENSE file. 14805 // BSD-style license that can be found in the LICENSE file.
13230 14806
13231 // WARNING: Do not edit - generated code. 14807 // WARNING: Do not edit - generated code.
13232 14808
13233 14809
13234 typedef void MetadataCallback(Metadata metadata); 14810 typedef void MetadataCallback(Metadata metadata);
13235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13236 // for details. All rights reserved. Use of this source code is governed by a 14812 // for details. All rights reserved. Use of this source code is governed by a
13237 // BSD-style license that can be found in the LICENSE file. 14813 // BSD-style license that can be found in the LICENSE file.
13238 14814
13239 14815
13240 /// @domName HTMLMeterElement 14816 /// @domName HTMLMeterElement
14817 /// @docsEditable
13241 class MeterElement extends Element implements Element native "*HTMLMeterElement" { 14818 class MeterElement extends Element implements Element native "*HTMLMeterElement" {
13242 14819
13243 factory MeterElement() => document.$dom_createElement("meter"); 14820 factory MeterElement() => document.$dom_createElement("meter");
13244 14821
13245 /** @domName HTMLMeterElement.high */ 14822 /** @domName HTMLMeterElement.high */
14823 /// @docsEditable
13246 num high; 14824 num high;
13247 14825
13248 /** @domName HTMLMeterElement.labels */ 14826 /** @domName HTMLMeterElement.labels */
14827 /// @docsEditable
13249 final List<Node> labels; 14828 final List<Node> labels;
13250 14829
13251 /** @domName HTMLMeterElement.low */ 14830 /** @domName HTMLMeterElement.low */
14831 /// @docsEditable
13252 num low; 14832 num low;
13253 14833
13254 /** @domName HTMLMeterElement.max */ 14834 /** @domName HTMLMeterElement.max */
14835 /// @docsEditable
13255 num max; 14836 num max;
13256 14837
13257 /** @domName HTMLMeterElement.min */ 14838 /** @domName HTMLMeterElement.min */
14839 /// @docsEditable
13258 num min; 14840 num min;
13259 14841
13260 /** @domName HTMLMeterElement.optimum */ 14842 /** @domName HTMLMeterElement.optimum */
14843 /// @docsEditable
13261 num optimum; 14844 num optimum;
13262 14845
13263 /** @domName HTMLMeterElement.value */ 14846 /** @domName HTMLMeterElement.value */
14847 /// @docsEditable
13264 num value; 14848 num value;
13265 } 14849 }
13266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13267 // for details. All rights reserved. Use of this source code is governed by a 14851 // for details. All rights reserved. Use of this source code is governed by a
13268 // BSD-style license that can be found in the LICENSE file. 14852 // BSD-style license that can be found in the LICENSE file.
13269 14853
13270 14854
13271 /// @domName HTMLModElement 14855 /// @domName HTMLModElement
14856 /// @docsEditable
13272 class ModElement extends Element implements Element native "*HTMLModElement" { 14857 class ModElement extends Element implements Element native "*HTMLModElement" {
13273 14858
13274 /** @domName HTMLModElement.cite */ 14859 /** @domName HTMLModElement.cite */
14860 /// @docsEditable
13275 String cite; 14861 String cite;
13276 14862
13277 /** @domName HTMLModElement.dateTime */ 14863 /** @domName HTMLModElement.dateTime */
14864 /// @docsEditable
13278 String dateTime; 14865 String dateTime;
13279 } 14866 }
13280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14867 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13281 // for details. All rights reserved. Use of this source code is governed by a 14868 // for details. All rights reserved. Use of this source code is governed by a
13282 // BSD-style license that can be found in the LICENSE file. 14869 // BSD-style license that can be found in the LICENSE file.
13283 14870
13284 14871
13285 class MouseEvent extends UIEvent native "*MouseEvent" { 14872 class MouseEvent extends UIEvent native "*MouseEvent" {
13286 factory MouseEvent(String type, Window view, int detail, int screenX, 14873 factory MouseEvent(String type, Window view, int detail, int screenX,
13287 int screenY, int clientX, int clientY, int button, [bool canBubble = true, 14874 int screenY, int clientX, int clientY, int button, [bool canBubble = true,
13288 bool cancelable = true, bool ctrlKey = false, bool altKey = false, 14875 bool cancelable = true, bool ctrlKey = false, bool altKey = false,
13289 bool shiftKey = false, bool metaKey = false, 14876 bool shiftKey = false, bool metaKey = false,
13290 EventTarget relatedTarget = null]) => 14877 EventTarget relatedTarget = null]) =>
13291 _MouseEventFactoryProvider.createMouseEvent( 14878 _MouseEventFactoryProvider.createMouseEvent(
13292 type, view, detail, screenX, screenY, 14879 type, view, detail, screenX, screenY,
13293 clientX, clientY, button, canBubble, cancelable, 14880 clientX, clientY, button, canBubble, cancelable,
13294 ctrlKey, altKey, shiftKey, metaKey, 14881 ctrlKey, altKey, shiftKey, metaKey,
13295 relatedTarget); 14882 relatedTarget);
13296 14883
13297 /** @domName MouseEvent.altKey */ 14884 /** @domName MouseEvent.altKey */
14885 /// @docsEditable
13298 final bool altKey; 14886 final bool altKey;
13299 14887
13300 /** @domName MouseEvent.button */ 14888 /** @domName MouseEvent.button */
14889 /// @docsEditable
13301 final int button; 14890 final int button;
13302 14891
13303 /** @domName MouseEvent.clientX */ 14892 /** @domName MouseEvent.clientX */
14893 /// @docsEditable
13304 final int clientX; 14894 final int clientX;
13305 14895
13306 /** @domName MouseEvent.clientY */ 14896 /** @domName MouseEvent.clientY */
14897 /// @docsEditable
13307 final int clientY; 14898 final int clientY;
13308 14899
13309 /** @domName MouseEvent.ctrlKey */ 14900 /** @domName MouseEvent.ctrlKey */
14901 /// @docsEditable
13310 final bool ctrlKey; 14902 final bool ctrlKey;
13311 14903
13312 /** @domName MouseEvent.dataTransfer */ 14904 /** @domName MouseEvent.dataTransfer */
14905 /// @docsEditable
13313 final Clipboard dataTransfer; 14906 final Clipboard dataTransfer;
13314 14907
13315 /** @domName MouseEvent.fromElement */ 14908 /** @domName MouseEvent.fromElement */
14909 /// @docsEditable
13316 final Node fromElement; 14910 final Node fromElement;
13317 14911
13318 /** @domName MouseEvent.metaKey */ 14912 /** @domName MouseEvent.metaKey */
14913 /// @docsEditable
13319 final bool metaKey; 14914 final bool metaKey;
13320 14915
13321 /** @domName MouseEvent.relatedTarget */ 14916 /** @domName MouseEvent.relatedTarget */
14917 /// @docsEditable
13322 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate dTarget); 14918 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate dTarget);
13323 dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this); 14919 dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this);
13324 14920
13325 /** @domName MouseEvent.screenX */ 14921 /** @domName MouseEvent.screenX */
14922 /// @docsEditable
13326 final int screenX; 14923 final int screenX;
13327 14924
13328 /** @domName MouseEvent.screenY */ 14925 /** @domName MouseEvent.screenY */
14926 /// @docsEditable
13329 final int screenY; 14927 final int screenY;
13330 14928
13331 /** @domName MouseEvent.shiftKey */ 14929 /** @domName MouseEvent.shiftKey */
14930 /// @docsEditable
13332 final bool shiftKey; 14931 final bool shiftKey;
13333 14932
13334 /** @domName MouseEvent.toElement */ 14933 /** @domName MouseEvent.toElement */
14934 /// @docsEditable
13335 final Node toElement; 14935 final Node toElement;
13336 14936
13337 /** @domName MouseEvent.webkitMovementX */ 14937 /** @domName MouseEvent.webkitMovementX */
14938 /// @docsEditable
13338 final int webkitMovementX; 14939 final int webkitMovementX;
13339 14940
13340 /** @domName MouseEvent.webkitMovementY */ 14941 /** @domName MouseEvent.webkitMovementY */
14942 /// @docsEditable
13341 final int webkitMovementY; 14943 final int webkitMovementY;
13342 14944
13343 /** @domName MouseEvent.x */ 14945 /** @domName MouseEvent.x */
14946 /// @docsEditable
13344 final int x; 14947 final int x;
13345 14948
13346 /** @domName MouseEvent.y */ 14949 /** @domName MouseEvent.y */
14950 /// @docsEditable
13347 final int y; 14951 final int y;
13348 14952
13349 /** @domName MouseEvent.initMouseEvent */ 14953 /** @domName MouseEvent.initMouseEvent */
14954 /// @docsEditable
13350 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) { 14955 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) {
13351 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); 14956 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget);
13352 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar get_1); 14957 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar get_1);
13353 return; 14958 return;
13354 } 14959 }
13355 void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, det ail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, but ton, relatedTarget) native "initMouseEvent"; 14960 void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, det ail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, but ton, relatedTarget) native "initMouseEvent";
13356 14961
13357 14962
13358 int get offsetX { 14963 int get offsetX {
13359 if (JS('bool', '!!#.offsetX', this)) { 14964 if (JS('bool', '!!#.offsetX', this)) {
(...skipping 30 matching lines...) Expand all
13390 // WARNING: Do not edit - generated code. 14995 // WARNING: Do not edit - generated code.
13391 14996
13392 14997
13393 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver); 14998 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver);
13394 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13395 // for details. All rights reserved. Use of this source code is governed by a 15000 // for details. All rights reserved. Use of this source code is governed by a
13396 // BSD-style license that can be found in the LICENSE file. 15001 // BSD-style license that can be found in the LICENSE file.
13397 15002
13398 15003
13399 /// @domName MutationEvent 15004 /// @domName MutationEvent
15005 /// @docsEditable
13400 class MutationEvent extends Event native "*MutationEvent" { 15006 class MutationEvent extends Event native "*MutationEvent" {
13401 15007
13402 static const int ADDITION = 2; 15008 static const int ADDITION = 2;
13403 15009
13404 static const int MODIFICATION = 1; 15010 static const int MODIFICATION = 1;
13405 15011
13406 static const int REMOVAL = 3; 15012 static const int REMOVAL = 3;
13407 15013
13408 /** @domName MutationEvent.attrChange */ 15014 /** @domName MutationEvent.attrChange */
15015 /// @docsEditable
13409 final int attrChange; 15016 final int attrChange;
13410 15017
13411 /** @domName MutationEvent.attrName */ 15018 /** @domName MutationEvent.attrName */
15019 /// @docsEditable
13412 final String attrName; 15020 final String attrName;
13413 15021
13414 /** @domName MutationEvent.newValue */ 15022 /** @domName MutationEvent.newValue */
15023 /// @docsEditable
13415 final String newValue; 15024 final String newValue;
13416 15025
13417 /** @domName MutationEvent.prevValue */ 15026 /** @domName MutationEvent.prevValue */
15027 /// @docsEditable
13418 final String prevValue; 15028 final String prevValue;
13419 15029
13420 /** @domName MutationEvent.relatedNode */ 15030 /** @domName MutationEvent.relatedNode */
15031 /// @docsEditable
13421 final Node relatedNode; 15032 final Node relatedNode;
13422 15033
13423 /** @domName MutationEvent.initMutationEvent */ 15034 /** @domName MutationEvent.initMutationEvent */
15035 /// @docsEditable
13424 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive; 15036 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive;
13425 } 15037 }
13426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13427 // for details. All rights reserved. Use of this source code is governed by a 15039 // for details. All rights reserved. Use of this source code is governed by a
13428 // BSD-style license that can be found in the LICENSE file. 15040 // BSD-style license that can be found in the LICENSE file.
13429 15041
13430 15042
13431 class MutationObserver native "*MutationObserver" { 15043 class MutationObserver native "*MutationObserver" {
13432 15044
13433 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback); 15045 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback);
13434 15046
13435 /** @domName MutationObserver.disconnect */ 15047 /** @domName MutationObserver.disconnect */
15048 /// @docsEditable
13436 void disconnect() native; 15049 void disconnect() native;
13437 15050
13438 /** @domName MutationObserver._observe */ 15051 /** @domName MutationObserver._observe */
15052 /// @docsEditable
13439 void _observe(Node target, Map options) { 15053 void _observe(Node target, Map options) {
13440 var options_1 = _convertDartToNative_Dictionary(options); 15054 var options_1 = _convertDartToNative_Dictionary(options);
13441 __observe_1(target, options_1); 15055 __observe_1(target, options_1);
13442 return; 15056 return;
13443 } 15057 }
13444 void __observe_1(Node target, options) native "observe"; 15058 void __observe_1(Node target, options) native "observe";
13445 15059
13446 /** @domName MutationObserver.takeRecords */ 15060 /** @domName MutationObserver.takeRecords */
15061 /// @docsEditable
13447 List<MutationRecord> takeRecords() native; 15062 List<MutationRecord> takeRecords() native;
13448 15063
13449 void observe(Node target, 15064 void observe(Node target,
13450 {Map options, 15065 {Map options,
13451 bool childList, 15066 bool childList,
13452 bool attributes, 15067 bool attributes,
13453 bool characterData, 15068 bool characterData,
13454 bool subtree, 15069 bool subtree,
13455 bool attributeOldValue, 15070 bool attributeOldValue,
13456 bool characterDataOldValue, 15071 bool characterDataOldValue,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
13506 15121
13507 // Call native function with no conversions. 15122 // Call native function with no conversions.
13508 void _call(target, options) native 'observe'; 15123 void _call(target, options) native 'observe';
13509 } 15124 }
13510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13511 // for details. All rights reserved. Use of this source code is governed by a 15126 // for details. All rights reserved. Use of this source code is governed by a
13512 // BSD-style license that can be found in the LICENSE file. 15127 // BSD-style license that can be found in the LICENSE file.
13513 15128
13514 15129
13515 /// @domName MutationRecord 15130 /// @domName MutationRecord
15131 /// @docsEditable
13516 class MutationRecord native "*MutationRecord" { 15132 class MutationRecord native "*MutationRecord" {
13517 15133
13518 /** @domName MutationRecord.addedNodes */ 15134 /** @domName MutationRecord.addedNodes */
15135 /// @docsEditable
13519 final List<Node> addedNodes; 15136 final List<Node> addedNodes;
13520 15137
13521 /** @domName MutationRecord.attributeName */ 15138 /** @domName MutationRecord.attributeName */
15139 /// @docsEditable
13522 final String attributeName; 15140 final String attributeName;
13523 15141
13524 /** @domName MutationRecord.attributeNamespace */ 15142 /** @domName MutationRecord.attributeNamespace */
15143 /// @docsEditable
13525 final String attributeNamespace; 15144 final String attributeNamespace;
13526 15145
13527 /** @domName MutationRecord.nextSibling */ 15146 /** @domName MutationRecord.nextSibling */
15147 /// @docsEditable
13528 final Node nextSibling; 15148 final Node nextSibling;
13529 15149
13530 /** @domName MutationRecord.oldValue */ 15150 /** @domName MutationRecord.oldValue */
15151 /// @docsEditable
13531 final String oldValue; 15152 final String oldValue;
13532 15153
13533 /** @domName MutationRecord.previousSibling */ 15154 /** @domName MutationRecord.previousSibling */
15155 /// @docsEditable
13534 final Node previousSibling; 15156 final Node previousSibling;
13535 15157
13536 /** @domName MutationRecord.removedNodes */ 15158 /** @domName MutationRecord.removedNodes */
15159 /// @docsEditable
13537 final List<Node> removedNodes; 15160 final List<Node> removedNodes;
13538 15161
13539 /** @domName MutationRecord.target */ 15162 /** @domName MutationRecord.target */
15163 /// @docsEditable
13540 final Node target; 15164 final Node target;
13541 15165
13542 /** @domName MutationRecord.type */ 15166 /** @domName MutationRecord.type */
15167 /// @docsEditable
13543 final String type; 15168 final String type;
13544 } 15169 }
13545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13546 // for details. All rights reserved. Use of this source code is governed by a 15171 // for details. All rights reserved. Use of this source code is governed by a
13547 // BSD-style license that can be found in the LICENSE file. 15172 // BSD-style license that can be found in the LICENSE file.
13548 15173
13549 15174
13550 /// @domName NamedNodeMap 15175 /// @domName NamedNodeMap
15176 /// @docsEditable
13551 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na medNodeMap" { 15177 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na medNodeMap" {
13552 15178
13553 /** @domName NamedNodeMap.length */ 15179 /** @domName NamedNodeMap.length */
15180 /// @docsEditable
13554 final int length; 15181 final int length;
13555 15182
13556 Node operator[](int index) => JS("Node", "#[#]", this, index); 15183 Node operator[](int index) => JS("Node", "#[#]", this, index);
13557 15184
13558 void operator[]=(int index, Node value) { 15185 void operator[]=(int index, Node value) {
13559 throw new UnsupportedError("Cannot assign element of immutable List."); 15186 throw new UnsupportedError("Cannot assign element of immutable List.");
13560 } 15187 }
13561 // -- start List<Node> mixins. 15188 // -- start List<Node> mixins.
13562 // Node is the element type. 15189 // Node is the element type.
13563 15190
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
13632 void insertRange(int start, int rangeLength, [Node initialValue]) { 15259 void insertRange(int start, int rangeLength, [Node initialValue]) {
13633 throw new UnsupportedError("Cannot insertRange on immutable List."); 15260 throw new UnsupportedError("Cannot insertRange on immutable List.");
13634 } 15261 }
13635 15262
13636 List<Node> getRange(int start, int rangeLength) => 15263 List<Node> getRange(int start, int rangeLength) =>
13637 _Lists.getRange(this, start, rangeLength, <Node>[]); 15264 _Lists.getRange(this, start, rangeLength, <Node>[]);
13638 15265
13639 // -- end List<Node> mixins. 15266 // -- end List<Node> mixins.
13640 15267
13641 /** @domName NamedNodeMap.getNamedItem */ 15268 /** @domName NamedNodeMap.getNamedItem */
15269 /// @docsEditable
13642 Node getNamedItem(String name) native; 15270 Node getNamedItem(String name) native;
13643 15271
13644 /** @domName NamedNodeMap.getNamedItemNS */ 15272 /** @domName NamedNodeMap.getNamedItemNS */
15273 /// @docsEditable
13645 Node getNamedItemNS(String namespaceURI, String localName) native; 15274 Node getNamedItemNS(String namespaceURI, String localName) native;
13646 15275
13647 /** @domName NamedNodeMap.item */ 15276 /** @domName NamedNodeMap.item */
15277 /// @docsEditable
13648 Node item(int index) native; 15278 Node item(int index) native;
13649 15279
13650 /** @domName NamedNodeMap.removeNamedItem */ 15280 /** @domName NamedNodeMap.removeNamedItem */
15281 /// @docsEditable
13651 Node removeNamedItem(String name) native; 15282 Node removeNamedItem(String name) native;
13652 15283
13653 /** @domName NamedNodeMap.removeNamedItemNS */ 15284 /** @domName NamedNodeMap.removeNamedItemNS */
15285 /// @docsEditable
13654 Node removeNamedItemNS(String namespaceURI, String localName) native; 15286 Node removeNamedItemNS(String namespaceURI, String localName) native;
13655 15287
13656 /** @domName NamedNodeMap.setNamedItem */ 15288 /** @domName NamedNodeMap.setNamedItem */
15289 /// @docsEditable
13657 Node setNamedItem(Node node) native; 15290 Node setNamedItem(Node node) native;
13658 15291
13659 /** @domName NamedNodeMap.setNamedItemNS */ 15292 /** @domName NamedNodeMap.setNamedItemNS */
15293 /// @docsEditable
13660 Node setNamedItemNS(Node node) native; 15294 Node setNamedItemNS(Node node) native;
13661 } 15295 }
13662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15296 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13663 // for details. All rights reserved. Use of this source code is governed by a 15297 // for details. All rights reserved. Use of this source code is governed by a
13664 // BSD-style license that can be found in the LICENSE file. 15298 // BSD-style license that can be found in the LICENSE file.
13665 15299
13666 15300
13667 /// @domName Navigator 15301 /// @domName Navigator
15302 /// @docsEditable
13668 class Navigator native "*Navigator" { 15303 class Navigator native "*Navigator" {
13669 15304
13670 /** @domName Navigator.appCodeName */ 15305 /** @domName Navigator.appCodeName */
15306 /// @docsEditable
13671 final String appCodeName; 15307 final String appCodeName;
13672 15308
13673 /** @domName Navigator.appName */ 15309 /** @domName Navigator.appName */
15310 /// @docsEditable
13674 final String appName; 15311 final String appName;
13675 15312
13676 /** @domName Navigator.appVersion */ 15313 /** @domName Navigator.appVersion */
15314 /// @docsEditable
13677 final String appVersion; 15315 final String appVersion;
13678 15316
13679 /** @domName Navigator.cookieEnabled */ 15317 /** @domName Navigator.cookieEnabled */
15318 /// @docsEditable
13680 final bool cookieEnabled; 15319 final bool cookieEnabled;
13681 15320
13682 /** @domName Navigator.geolocation */ 15321 /** @domName Navigator.geolocation */
15322 /// @docsEditable
13683 final Geolocation geolocation; 15323 final Geolocation geolocation;
13684 15324
13685 /** @domName Navigator.language */ 15325 /** @domName Navigator.language */
15326 /// @docsEditable
13686 final String language; 15327 final String language;
13687 15328
13688 /** @domName Navigator.mimeTypes */ 15329 /** @domName Navigator.mimeTypes */
15330 /// @docsEditable
13689 final DOMMimeTypeArray mimeTypes; 15331 final DOMMimeTypeArray mimeTypes;
13690 15332
13691 /** @domName Navigator.onLine */ 15333 /** @domName Navigator.onLine */
15334 /// @docsEditable
13692 final bool onLine; 15335 final bool onLine;
13693 15336
13694 /** @domName Navigator.platform */ 15337 /** @domName Navigator.platform */
15338 /// @docsEditable
13695 final String platform; 15339 final String platform;
13696 15340
13697 /** @domName Navigator.plugins */ 15341 /** @domName Navigator.plugins */
15342 /// @docsEditable
13698 final DOMPluginArray plugins; 15343 final DOMPluginArray plugins;
13699 15344
13700 /** @domName Navigator.product */ 15345 /** @domName Navigator.product */
15346 /// @docsEditable
13701 final String product; 15347 final String product;
13702 15348
13703 /** @domName Navigator.productSub */ 15349 /** @domName Navigator.productSub */
15350 /// @docsEditable
13704 final String productSub; 15351 final String productSub;
13705 15352
13706 /** @domName Navigator.userAgent */ 15353 /** @domName Navigator.userAgent */
15354 /// @docsEditable
13707 final String userAgent; 15355 final String userAgent;
13708 15356
13709 /** @domName Navigator.vendor */ 15357 /** @domName Navigator.vendor */
15358 /// @docsEditable
13710 final String vendor; 15359 final String vendor;
13711 15360
13712 /** @domName Navigator.vendorSub */ 15361 /** @domName Navigator.vendorSub */
15362 /// @docsEditable
13713 final String vendorSub; 15363 final String vendorSub;
13714 15364
13715 /** @domName Navigator.webkitBattery */ 15365 /** @domName Navigator.webkitBattery */
15366 /// @docsEditable
13716 final BatteryManager webkitBattery; 15367 final BatteryManager webkitBattery;
13717 15368
13718 /** @domName Navigator.getStorageUpdates */ 15369 /** @domName Navigator.getStorageUpdates */
15370 /// @docsEditable
13719 void getStorageUpdates() native; 15371 void getStorageUpdates() native;
13720 15372
13721 /** @domName Navigator.javaEnabled */ 15373 /** @domName Navigator.javaEnabled */
15374 /// @docsEditable
13722 bool javaEnabled() native; 15375 bool javaEnabled() native;
13723 15376
13724 /** @domName Navigator.webkitGetGamepads */ 15377 /** @domName Navigator.webkitGetGamepads */
15378 /// @docsEditable
13725 List<Gamepad> webkitGetGamepads() native; 15379 List<Gamepad> webkitGetGamepads() native;
13726 15380
13727 /** @domName Navigator.webkitGetUserMedia */ 15381 /** @domName Navigator.webkitGetUserMedia */
15382 /// @docsEditable
13728 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) { 15383 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) {
13729 if (?errorCallback) { 15384 if (?errorCallback) {
13730 var options_1 = _convertDartToNative_Dictionary(options); 15385 var options_1 = _convertDartToNative_Dictionary(options);
13731 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); 15386 _webkitGetUserMedia_1(options_1, successCallback, errorCallback);
13732 return; 15387 return;
13733 } 15388 }
13734 var options_2 = _convertDartToNative_Dictionary(options); 15389 var options_2 = _convertDartToNative_Dictionary(options);
13735 _webkitGetUserMedia_2(options_2, successCallback); 15390 _webkitGetUserMedia_2(options_2, successCallback);
13736 return; 15391 return;
13737 } 15392 }
13738 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed ia"; 15393 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed ia";
13739 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native "webkitGetUserMedia"; 15394 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native "webkitGetUserMedia";
13740 } 15395 }
13741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13742 // for details. All rights reserved. Use of this source code is governed by a 15397 // for details. All rights reserved. Use of this source code is governed by a
13743 // BSD-style license that can be found in the LICENSE file. 15398 // BSD-style license that can be found in the LICENSE file.
13744 15399
13745 15400
13746 /// @domName NavigatorUserMediaError 15401 /// @domName NavigatorUserMediaError
15402 /// @docsEditable
13747 class NavigatorUserMediaError native "*NavigatorUserMediaError" { 15403 class NavigatorUserMediaError native "*NavigatorUserMediaError" {
13748 15404
13749 static const int PERMISSION_DENIED = 1; 15405 static const int PERMISSION_DENIED = 1;
13750 15406
13751 /** @domName NavigatorUserMediaError.code */ 15407 /** @domName NavigatorUserMediaError.code */
15408 /// @docsEditable
13752 final int code; 15409 final int code;
13753 } 15410 }
13754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13755 // for details. All rights reserved. Use of this source code is governed by a 15412 // for details. All rights reserved. Use of this source code is governed by a
13756 // BSD-style license that can be found in the LICENSE file. 15413 // BSD-style license that can be found in the LICENSE file.
13757 15414
13758 // WARNING: Do not edit - generated code. 15415 // WARNING: Do not edit - generated code.
13759 15416
13760 15417
13761 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); 15418 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
13948 15605
13949 static const int ENTITY_REFERENCE_NODE = 5; 15606 static const int ENTITY_REFERENCE_NODE = 5;
13950 15607
13951 static const int NOTATION_NODE = 12; 15608 static const int NOTATION_NODE = 12;
13952 15609
13953 static const int PROCESSING_INSTRUCTION_NODE = 7; 15610 static const int PROCESSING_INSTRUCTION_NODE = 7;
13954 15611
13955 static const int TEXT_NODE = 3; 15612 static const int TEXT_NODE = 3;
13956 15613
13957 /** @domName Node.attributes */ 15614 /** @domName Node.attributes */
15615 /// @docsEditable
13958 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this); 15616 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this);
13959 15617
13960 /** @domName Node.childNodes */ 15618 /** @domName Node.childNodes */
15619 /// @docsEditable
13961 List<Node> get $dom_childNodes => JS("List<Node>", "#.childNodes", this); 15620 List<Node> get $dom_childNodes => JS("List<Node>", "#.childNodes", this);
13962 15621
13963 /** @domName Node.firstChild */ 15622 /** @domName Node.firstChild */
15623 /// @docsEditable
13964 Node get $dom_firstChild => JS("Node", "#.firstChild", this); 15624 Node get $dom_firstChild => JS("Node", "#.firstChild", this);
13965 15625
13966 /** @domName Node.lastChild */ 15626 /** @domName Node.lastChild */
15627 /// @docsEditable
13967 Node get $dom_lastChild => JS("Node", "#.lastChild", this); 15628 Node get $dom_lastChild => JS("Node", "#.lastChild", this);
13968 15629
13969 /** @domName Node.nextSibling */ 15630 /** @domName Node.nextSibling */
15631 /// @docsEditable
13970 Node get nextNode => JS("Node", "#.nextSibling", this); 15632 Node get nextNode => JS("Node", "#.nextSibling", this);
13971 15633
13972 /** @domName Node.nodeType */ 15634 /** @domName Node.nodeType */
15635 /// @docsEditable
13973 final int nodeType; 15636 final int nodeType;
13974 15637
13975 /** @domName Node.ownerDocument */ 15638 /** @domName Node.ownerDocument */
15639 /// @docsEditable
13976 Document get document => JS("Document", "#.ownerDocument", this); 15640 Document get document => JS("Document", "#.ownerDocument", this);
13977 15641
13978 /** @domName Node.parentNode */ 15642 /** @domName Node.parentNode */
15643 /// @docsEditable
13979 Node get parent => JS("Node", "#.parentNode", this); 15644 Node get parent => JS("Node", "#.parentNode", this);
13980 15645
13981 /** @domName Node.previousSibling */ 15646 /** @domName Node.previousSibling */
15647 /// @docsEditable
13982 Node get previousNode => JS("Node", "#.previousSibling", this); 15648 Node get previousNode => JS("Node", "#.previousSibling", this);
13983 15649
13984 /** @domName Node.textContent */ 15650 /** @domName Node.textContent */
15651 /// @docsEditable
13985 String get text => JS("String", "#.textContent", this); 15652 String get text => JS("String", "#.textContent", this);
13986 15653
13987 /** @domName Node.textContent */ 15654 /** @domName Node.textContent */
15655 /// @docsEditable
13988 void set text(String value) { 15656 void set text(String value) {
13989 JS("void", "#.textContent = #", this, value); 15657 JS("void", "#.textContent = #", this, value);
13990 } 15658 }
13991 15659
13992 /** @domName Node.addEventListener */ 15660 /** @domName Node.addEventListener */
15661 /// @docsEditable
13993 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 15662 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13994 15663
13995 /** @domName Node.appendChild */ 15664 /** @domName Node.appendChild */
15665 /// @docsEditable
13996 Node $dom_appendChild(Node newChild) native "appendChild"; 15666 Node $dom_appendChild(Node newChild) native "appendChild";
13997 15667
13998 /** @domName Node.cloneNode */ 15668 /** @domName Node.cloneNode */
15669 /// @docsEditable
13999 Node clone(bool deep) native "cloneNode"; 15670 Node clone(bool deep) native "cloneNode";
14000 15671
14001 /** @domName Node.contains */ 15672 /** @domName Node.contains */
15673 /// @docsEditable
14002 bool contains(Node other) native; 15674 bool contains(Node other) native;
14003 15675
14004 /** @domName Node.dispatchEvent */ 15676 /** @domName Node.dispatchEvent */
15677 /// @docsEditable
14005 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 15678 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
14006 15679
14007 /** @domName Node.hasChildNodes */ 15680 /** @domName Node.hasChildNodes */
15681 /// @docsEditable
14008 bool hasChildNodes() native; 15682 bool hasChildNodes() native;
14009 15683
14010 /** @domName Node.insertBefore */ 15684 /** @domName Node.insertBefore */
15685 /// @docsEditable
14011 Node insertBefore(Node newChild, Node refChild) native; 15686 Node insertBefore(Node newChild, Node refChild) native;
14012 15687
14013 /** @domName Node.removeChild */ 15688 /** @domName Node.removeChild */
15689 /// @docsEditable
14014 Node $dom_removeChild(Node oldChild) native "removeChild"; 15690 Node $dom_removeChild(Node oldChild) native "removeChild";
14015 15691
14016 /** @domName Node.removeEventListener */ 15692 /** @domName Node.removeEventListener */
15693 /// @docsEditable
14017 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 15694 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
14018 15695
14019 /** @domName Node.replaceChild */ 15696 /** @domName Node.replaceChild */
15697 /// @docsEditable
14020 Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild"; 15698 Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild";
14021 15699
14022 } 15700 }
14023 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14024 // for details. All rights reserved. Use of this source code is governed by a 15702 // for details. All rights reserved. Use of this source code is governed by a
14025 // BSD-style license that can be found in the LICENSE file. 15703 // BSD-style license that can be found in the LICENSE file.
14026 15704
14027 15705
14028 /// @domName NodeFilter 15706 /// @domName NodeFilter
15707 /// @docsEditable
14029 class NodeFilter native "*NodeFilter" { 15708 class NodeFilter native "*NodeFilter" {
14030 15709
14031 static const int FILTER_ACCEPT = 1; 15710 static const int FILTER_ACCEPT = 1;
14032 15711
14033 static const int FILTER_REJECT = 2; 15712 static const int FILTER_REJECT = 2;
14034 15713
14035 static const int FILTER_SKIP = 3; 15714 static const int FILTER_SKIP = 3;
14036 15715
14037 static const int SHOW_ALL = 0xFFFFFFFF; 15716 static const int SHOW_ALL = 0xFFFFFFFF;
14038 15717
(...skipping 15 matching lines...) Expand all
14054 15733
14055 static const int SHOW_ENTITY_REFERENCE = 0x00000010; 15734 static const int SHOW_ENTITY_REFERENCE = 0x00000010;
14056 15735
14057 static const int SHOW_NOTATION = 0x00000800; 15736 static const int SHOW_NOTATION = 0x00000800;
14058 15737
14059 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; 15738 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
14060 15739
14061 static const int SHOW_TEXT = 0x00000004; 15740 static const int SHOW_TEXT = 0x00000004;
14062 15741
14063 /** @domName NodeFilter.acceptNode */ 15742 /** @domName NodeFilter.acceptNode */
15743 /// @docsEditable
14064 int acceptNode(Node n) native; 15744 int acceptNode(Node n) native;
14065 } 15745 }
14066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14067 // for details. All rights reserved. Use of this source code is governed by a 15747 // for details. All rights reserved. Use of this source code is governed by a
14068 // BSD-style license that can be found in the LICENSE file. 15748 // BSD-style license that can be found in the LICENSE file.
14069 15749
14070 15750
14071 /// @domName NodeIterator 15751 /// @domName NodeIterator
15752 /// @docsEditable
14072 class NodeIterator native "*NodeIterator" { 15753 class NodeIterator native "*NodeIterator" {
14073 15754
14074 /** @domName NodeIterator.expandEntityReferences */ 15755 /** @domName NodeIterator.expandEntityReferences */
15756 /// @docsEditable
14075 final bool expandEntityReferences; 15757 final bool expandEntityReferences;
14076 15758
14077 /** @domName NodeIterator.filter */ 15759 /** @domName NodeIterator.filter */
15760 /// @docsEditable
14078 final NodeFilter filter; 15761 final NodeFilter filter;
14079 15762
14080 /** @domName NodeIterator.pointerBeforeReferenceNode */ 15763 /** @domName NodeIterator.pointerBeforeReferenceNode */
15764 /// @docsEditable
14081 final bool pointerBeforeReferenceNode; 15765 final bool pointerBeforeReferenceNode;
14082 15766
14083 /** @domName NodeIterator.referenceNode */ 15767 /** @domName NodeIterator.referenceNode */
15768 /// @docsEditable
14084 final Node referenceNode; 15769 final Node referenceNode;
14085 15770
14086 /** @domName NodeIterator.root */ 15771 /** @domName NodeIterator.root */
15772 /// @docsEditable
14087 final Node root; 15773 final Node root;
14088 15774
14089 /** @domName NodeIterator.whatToShow */ 15775 /** @domName NodeIterator.whatToShow */
15776 /// @docsEditable
14090 final int whatToShow; 15777 final int whatToShow;
14091 15778
14092 /** @domName NodeIterator.detach */ 15779 /** @domName NodeIterator.detach */
15780 /// @docsEditable
14093 void detach() native; 15781 void detach() native;
14094 15782
14095 /** @domName NodeIterator.nextNode */ 15783 /** @domName NodeIterator.nextNode */
15784 /// @docsEditable
14096 Node nextNode() native; 15785 Node nextNode() native;
14097 15786
14098 /** @domName NodeIterator.previousNode */ 15787 /** @domName NodeIterator.previousNode */
15788 /// @docsEditable
14099 Node previousNode() native; 15789 Node previousNode() native;
14100 } 15790 }
14101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15791 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14102 // for details. All rights reserved. Use of this source code is governed by a 15792 // for details. All rights reserved. Use of this source code is governed by a
14103 // BSD-style license that can be found in the LICENSE file. 15793 // BSD-style license that can be found in the LICENSE file.
14104 15794
14105 15795
14106 /// @domName Notation 15796 /// @domName Notation
15797 /// @docsEditable
14107 class Notation extends Node native "*Notation" { 15798 class Notation extends Node native "*Notation" {
14108 15799
14109 /** @domName Notation.publicId */ 15800 /** @domName Notation.publicId */
15801 /// @docsEditable
14110 final String publicId; 15802 final String publicId;
14111 15803
14112 /** @domName Notation.systemId */ 15804 /** @domName Notation.systemId */
15805 /// @docsEditable
14113 final String systemId; 15806 final String systemId;
14114 } 15807 }
14115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14116 // for details. All rights reserved. Use of this source code is governed by a 15809 // for details. All rights reserved. Use of this source code is governed by a
14117 // BSD-style license that can be found in the LICENSE file. 15810 // BSD-style license that can be found in the LICENSE file.
14118 15811
14119 15812
14120 /// @domName Notification 15813 /// @domName Notification
15814 /// @docsEditable
14121 class Notification extends EventTarget native "*Notification" { 15815 class Notification extends EventTarget native "*Notification" {
14122 15816
14123 factory Notification(String title, [Map options]) { 15817 factory Notification(String title, [Map options]) {
14124 if (!?options) { 15818 if (!?options) {
14125 return _NotificationFactoryProvider.createNotification(title); 15819 return _NotificationFactoryProvider.createNotification(title);
14126 } 15820 }
14127 return _NotificationFactoryProvider.createNotification(title, options); 15821 return _NotificationFactoryProvider.createNotification(title, options);
14128 } 15822 }
14129 15823
14130 /** 15824 /**
14131 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 15825 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
14132 */ 15826 */
15827 /// @docsEditable
14133 NotificationEvents get on => 15828 NotificationEvents get on =>
14134 new NotificationEvents(this); 15829 new NotificationEvents(this);
14135 15830
14136 /** @domName Notification.dir */ 15831 /** @domName Notification.dir */
15832 /// @docsEditable
14137 String dir; 15833 String dir;
14138 15834
14139 /** @domName Notification.permission */ 15835 /** @domName Notification.permission */
15836 /// @docsEditable
14140 final String permission; 15837 final String permission;
14141 15838
14142 /** @domName Notification.replaceId */ 15839 /** @domName Notification.replaceId */
15840 /// @docsEditable
14143 String replaceId; 15841 String replaceId;
14144 15842
14145 /** @domName Notification.tag */ 15843 /** @domName Notification.tag */
15844 /// @docsEditable
14146 String tag; 15845 String tag;
14147 15846
14148 /** @domName Notification.addEventListener */ 15847 /** @domName Notification.addEventListener */
15848 /// @docsEditable
14149 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 15849 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14150 15850
14151 /** @domName Notification.cancel */ 15851 /** @domName Notification.cancel */
15852 /// @docsEditable
14152 void cancel() native; 15853 void cancel() native;
14153 15854
14154 /** @domName Notification.close */ 15855 /** @domName Notification.close */
15856 /// @docsEditable
14155 void close() native; 15857 void close() native;
14156 15858
14157 /** @domName Notification.dispatchEvent */ 15859 /** @domName Notification.dispatchEvent */
15860 /// @docsEditable
14158 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 15861 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
14159 15862
14160 /** @domName Notification.removeEventListener */ 15863 /** @domName Notification.removeEventListener */
15864 /// @docsEditable
14161 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 15865 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
14162 15866
14163 /** @domName Notification.requestPermission */ 15867 /** @domName Notification.requestPermission */
15868 /// @docsEditable
14164 static void requestPermission(NotificationPermissionCallback callback) native; 15869 static void requestPermission(NotificationPermissionCallback callback) native;
14165 15870
14166 /** @domName Notification.show */ 15871 /** @domName Notification.show */
15872 /// @docsEditable
14167 void show() native; 15873 void show() native;
14168 } 15874 }
14169 15875
14170 class NotificationEvents extends Events { 15876 class NotificationEvents extends Events {
14171 NotificationEvents(EventTarget _ptr) : super(_ptr); 15877 NotificationEvents(EventTarget _ptr) : super(_ptr);
14172 15878
14173 EventListenerList get click => this['click']; 15879 EventListenerList get click => this['click'];
14174 15880
14175 EventListenerList get close => this['close']; 15881 EventListenerList get close => this['close'];
14176 15882
14177 EventListenerList get display => this['display']; 15883 EventListenerList get display => this['display'];
14178 15884
14179 EventListenerList get error => this['error']; 15885 EventListenerList get error => this['error'];
14180 15886
14181 EventListenerList get show => this['show']; 15887 EventListenerList get show => this['show'];
14182 } 15888 }
14183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15889 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14184 // for details. All rights reserved. Use of this source code is governed by a 15890 // for details. All rights reserved. Use of this source code is governed by a
14185 // BSD-style license that can be found in the LICENSE file. 15891 // BSD-style license that can be found in the LICENSE file.
14186 15892
14187 15893
14188 /// @domName NotificationCenter 15894 /// @domName NotificationCenter
15895 /// @docsEditable
14189 class NotificationCenter native "*NotificationCenter" { 15896 class NotificationCenter native "*NotificationCenter" {
14190 15897
14191 /** @domName NotificationCenter.checkPermission */ 15898 /** @domName NotificationCenter.checkPermission */
15899 /// @docsEditable
14192 int checkPermission() native; 15900 int checkPermission() native;
14193 15901
14194 /** @domName NotificationCenter.createHTMLNotification */ 15902 /** @domName NotificationCenter.createHTMLNotification */
15903 /// @docsEditable
14195 Notification createHTMLNotification(String url) native; 15904 Notification createHTMLNotification(String url) native;
14196 15905
14197 /** @domName NotificationCenter.createNotification */ 15906 /** @domName NotificationCenter.createNotification */
15907 /// @docsEditable
14198 Notification createNotification(String iconUrl, String title, String body) nat ive; 15908 Notification createNotification(String iconUrl, String title, String body) nat ive;
14199 15909
14200 /** @domName NotificationCenter.requestPermission */ 15910 /** @domName NotificationCenter.requestPermission */
15911 /// @docsEditable
14201 void requestPermission(VoidCallback callback) native; 15912 void requestPermission(VoidCallback callback) native;
14202 } 15913 }
14203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14204 // for details. All rights reserved. Use of this source code is governed by a 15915 // for details. All rights reserved. Use of this source code is governed by a
14205 // BSD-style license that can be found in the LICENSE file. 15916 // BSD-style license that can be found in the LICENSE file.
14206 15917
14207 // WARNING: Do not edit - generated code. 15918 // WARNING: Do not edit - generated code.
14208 15919
14209 15920
14210 typedef void NotificationPermissionCallback(String permission); 15921 typedef void NotificationPermissionCallback(String permission);
14211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14212 // for details. All rights reserved. Use of this source code is governed by a 15923 // for details. All rights reserved. Use of this source code is governed by a
14213 // BSD-style license that can be found in the LICENSE file. 15924 // BSD-style license that can be found in the LICENSE file.
14214 15925
14215 15926
14216 /// @domName OESElementIndexUint 15927 /// @domName OESElementIndexUint
15928 /// @docsEditable
14217 class OESElementIndexUint native "*OESElementIndexUint" { 15929 class OESElementIndexUint native "*OESElementIndexUint" {
14218 } 15930 }
14219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14220 // for details. All rights reserved. Use of this source code is governed by a 15932 // for details. All rights reserved. Use of this source code is governed by a
14221 // BSD-style license that can be found in the LICENSE file. 15933 // BSD-style license that can be found in the LICENSE file.
14222 15934
14223 15935
14224 /// @domName OESStandardDerivatives 15936 /// @domName OESStandardDerivatives
15937 /// @docsEditable
14225 class OESStandardDerivatives native "*OESStandardDerivatives" { 15938 class OESStandardDerivatives native "*OESStandardDerivatives" {
14226 15939
14227 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 15940 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
14228 } 15941 }
14229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14230 // for details. All rights reserved. Use of this source code is governed by a 15943 // for details. All rights reserved. Use of this source code is governed by a
14231 // BSD-style license that can be found in the LICENSE file. 15944 // BSD-style license that can be found in the LICENSE file.
14232 15945
14233 15946
14234 /// @domName OESTextureFloat 15947 /// @domName OESTextureFloat
15948 /// @docsEditable
14235 class OESTextureFloat native "*OESTextureFloat" { 15949 class OESTextureFloat native "*OESTextureFloat" {
14236 } 15950 }
14237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14238 // for details. All rights reserved. Use of this source code is governed by a 15952 // for details. All rights reserved. Use of this source code is governed by a
14239 // BSD-style license that can be found in the LICENSE file. 15953 // BSD-style license that can be found in the LICENSE file.
14240 15954
14241 15955
14242 /// @domName OESVertexArrayObject 15956 /// @domName OESVertexArrayObject
15957 /// @docsEditable
14243 class OESVertexArrayObject native "*OESVertexArrayObject" { 15958 class OESVertexArrayObject native "*OESVertexArrayObject" {
14244 15959
14245 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 15960 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
14246 15961
14247 /** @domName OESVertexArrayObject.bindVertexArrayOES */ 15962 /** @domName OESVertexArrayObject.bindVertexArrayOES */
15963 /// @docsEditable
14248 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 15964 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14249 15965
14250 /** @domName OESVertexArrayObject.createVertexArrayOES */ 15966 /** @domName OESVertexArrayObject.createVertexArrayOES */
15967 /// @docsEditable
14251 WebGLVertexArrayObjectOES createVertexArrayOES() native; 15968 WebGLVertexArrayObjectOES createVertexArrayOES() native;
14252 15969
14253 /** @domName OESVertexArrayObject.deleteVertexArrayOES */ 15970 /** @domName OESVertexArrayObject.deleteVertexArrayOES */
15971 /// @docsEditable
14254 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 15972 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14255 15973
14256 /** @domName OESVertexArrayObject.isVertexArrayOES */ 15974 /** @domName OESVertexArrayObject.isVertexArrayOES */
15975 /// @docsEditable
14257 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 15976 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14258 } 15977 }
14259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14260 // for details. All rights reserved. Use of this source code is governed by a 15979 // for details. All rights reserved. Use of this source code is governed by a
14261 // BSD-style license that can be found in the LICENSE file. 15980 // BSD-style license that can be found in the LICENSE file.
14262 15981
14263 15982
14264 /// @domName HTMLOListElement 15983 /// @domName HTMLOListElement
15984 /// @docsEditable
14265 class OListElement extends Element implements Element native "*HTMLOListElement" { 15985 class OListElement extends Element implements Element native "*HTMLOListElement" {
14266 15986
14267 factory OListElement() => document.$dom_createElement("ol"); 15987 factory OListElement() => document.$dom_createElement("ol");
14268 15988
14269 /** @domName HTMLOListElement.compact */ 15989 /** @domName HTMLOListElement.compact */
15990 /// @docsEditable
14270 bool compact; 15991 bool compact;
14271 15992
14272 /** @domName HTMLOListElement.reversed */ 15993 /** @domName HTMLOListElement.reversed */
15994 /// @docsEditable
14273 bool reversed; 15995 bool reversed;
14274 15996
14275 /** @domName HTMLOListElement.start */ 15997 /** @domName HTMLOListElement.start */
15998 /// @docsEditable
14276 int start; 15999 int start;
14277 16000
14278 /** @domName HTMLOListElement.type */ 16001 /** @domName HTMLOListElement.type */
16002 /// @docsEditable
14279 String type; 16003 String type;
14280 } 16004 }
14281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14282 // for details. All rights reserved. Use of this source code is governed by a 16006 // for details. All rights reserved. Use of this source code is governed by a
14283 // BSD-style license that can be found in the LICENSE file. 16007 // BSD-style license that can be found in the LICENSE file.
14284 16008
14285 16009
14286 /// @domName HTMLObjectElement 16010 /// @domName HTMLObjectElement
16011 /// @docsEditable
14287 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" { 16012 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" {
14288 16013
14289 factory ObjectElement() => document.$dom_createElement("object"); 16014 factory ObjectElement() => document.$dom_createElement("object");
14290 16015
14291 /** @domName HTMLObjectElement.align */ 16016 /** @domName HTMLObjectElement.align */
16017 /// @docsEditable
14292 String align; 16018 String align;
14293 16019
14294 /** @domName HTMLObjectElement.archive */ 16020 /** @domName HTMLObjectElement.archive */
16021 /// @docsEditable
14295 String archive; 16022 String archive;
14296 16023
14297 /** @domName HTMLObjectElement.border */ 16024 /** @domName HTMLObjectElement.border */
16025 /// @docsEditable
14298 String border; 16026 String border;
14299 16027
14300 /** @domName HTMLObjectElement.code */ 16028 /** @domName HTMLObjectElement.code */
16029 /// @docsEditable
14301 String code; 16030 String code;
14302 16031
14303 /** @domName HTMLObjectElement.codeBase */ 16032 /** @domName HTMLObjectElement.codeBase */
16033 /// @docsEditable
14304 String codeBase; 16034 String codeBase;
14305 16035
14306 /** @domName HTMLObjectElement.codeType */ 16036 /** @domName HTMLObjectElement.codeType */
16037 /// @docsEditable
14307 String codeType; 16038 String codeType;
14308 16039
14309 /** @domName HTMLObjectElement.data */ 16040 /** @domName HTMLObjectElement.data */
16041 /// @docsEditable
14310 String data; 16042 String data;
14311 16043
14312 /** @domName HTMLObjectElement.declare */ 16044 /** @domName HTMLObjectElement.declare */
16045 /// @docsEditable
14313 bool declare; 16046 bool declare;
14314 16047
14315 /** @domName HTMLObjectElement.form */ 16048 /** @domName HTMLObjectElement.form */
16049 /// @docsEditable
14316 final FormElement form; 16050 final FormElement form;
14317 16051
14318 /** @domName HTMLObjectElement.height */ 16052 /** @domName HTMLObjectElement.height */
16053 /// @docsEditable
14319 String height; 16054 String height;
14320 16055
14321 /** @domName HTMLObjectElement.hspace */ 16056 /** @domName HTMLObjectElement.hspace */
16057 /// @docsEditable
14322 int hspace; 16058 int hspace;
14323 16059
14324 /** @domName HTMLObjectElement.name */ 16060 /** @domName HTMLObjectElement.name */
16061 /// @docsEditable
14325 String name; 16062 String name;
14326 16063
14327 /** @domName HTMLObjectElement.standby */ 16064 /** @domName HTMLObjectElement.standby */
16065 /// @docsEditable
14328 String standby; 16066 String standby;
14329 16067
14330 /** @domName HTMLObjectElement.type */ 16068 /** @domName HTMLObjectElement.type */
16069 /// @docsEditable
14331 String type; 16070 String type;
14332 16071
14333 /** @domName HTMLObjectElement.useMap */ 16072 /** @domName HTMLObjectElement.useMap */
16073 /// @docsEditable
14334 String useMap; 16074 String useMap;
14335 16075
14336 /** @domName HTMLObjectElement.validationMessage */ 16076 /** @domName HTMLObjectElement.validationMessage */
16077 /// @docsEditable
14337 final String validationMessage; 16078 final String validationMessage;
14338 16079
14339 /** @domName HTMLObjectElement.validity */ 16080 /** @domName HTMLObjectElement.validity */
16081 /// @docsEditable
14340 final ValidityState validity; 16082 final ValidityState validity;
14341 16083
14342 /** @domName HTMLObjectElement.vspace */ 16084 /** @domName HTMLObjectElement.vspace */
16085 /// @docsEditable
14343 int vspace; 16086 int vspace;
14344 16087
14345 /** @domName HTMLObjectElement.width */ 16088 /** @domName HTMLObjectElement.width */
16089 /// @docsEditable
14346 String width; 16090 String width;
14347 16091
14348 /** @domName HTMLObjectElement.willValidate */ 16092 /** @domName HTMLObjectElement.willValidate */
16093 /// @docsEditable
14349 final bool willValidate; 16094 final bool willValidate;
14350 16095
14351 /** @domName HTMLObjectElement.checkValidity */ 16096 /** @domName HTMLObjectElement.checkValidity */
16097 /// @docsEditable
14352 bool checkValidity() native; 16098 bool checkValidity() native;
14353 16099
14354 /** @domName HTMLObjectElement.setCustomValidity */ 16100 /** @domName HTMLObjectElement.setCustomValidity */
16101 /// @docsEditable
14355 void setCustomValidity(String error) native; 16102 void setCustomValidity(String error) native;
14356 } 16103 }
14357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14358 // for details. All rights reserved. Use of this source code is governed by a 16105 // for details. All rights reserved. Use of this source code is governed by a
14359 // BSD-style license that can be found in the LICENSE file. 16106 // BSD-style license that can be found in the LICENSE file.
14360 16107
14361 16108
14362 /// @domName OfflineAudioCompletionEvent 16109 /// @domName OfflineAudioCompletionEvent
16110 /// @docsEditable
14363 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" { 16111 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" {
14364 16112
14365 /** @domName OfflineAudioCompletionEvent.renderedBuffer */ 16113 /** @domName OfflineAudioCompletionEvent.renderedBuffer */
16114 /// @docsEditable
14366 final AudioBuffer renderedBuffer; 16115 final AudioBuffer renderedBuffer;
14367 } 16116 }
14368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14369 // for details. All rights reserved. Use of this source code is governed by a 16118 // for details. All rights reserved. Use of this source code is governed by a
14370 // BSD-style license that can be found in the LICENSE file. 16119 // BSD-style license that can be found in the LICENSE file.
14371 16120
14372 16121
14373 /// @domName HTMLOptGroupElement 16122 /// @domName HTMLOptGroupElement
16123 /// @docsEditable
14374 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" { 16124 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" {
14375 16125
14376 factory OptGroupElement() => document.$dom_createElement("optgroup"); 16126 factory OptGroupElement() => document.$dom_createElement("optgroup");
14377 16127
14378 /** @domName HTMLOptGroupElement.disabled */ 16128 /** @domName HTMLOptGroupElement.disabled */
16129 /// @docsEditable
14379 bool disabled; 16130 bool disabled;
14380 16131
14381 /** @domName HTMLOptGroupElement.label */ 16132 /** @domName HTMLOptGroupElement.label */
16133 /// @docsEditable
14382 String label; 16134 String label;
14383 } 16135 }
14384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14385 // for details. All rights reserved. Use of this source code is governed by a 16137 // for details. All rights reserved. Use of this source code is governed by a
14386 // BSD-style license that can be found in the LICENSE file. 16138 // BSD-style license that can be found in the LICENSE file.
14387 16139
14388 16140
14389 /// @domName HTMLOptionElement 16141 /// @domName HTMLOptionElement
16142 /// @docsEditable
14390 class OptionElement extends Element implements Element native "*HTMLOptionElemen t" { 16143 class OptionElement extends Element implements Element native "*HTMLOptionElemen t" {
14391 16144
14392 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) { 16145 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) {
14393 if (!?data) { 16146 if (!?data) {
14394 return _OptionElementFactoryProvider.createOptionElement(); 16147 return _OptionElementFactoryProvider.createOptionElement();
14395 } 16148 }
14396 if (!?value) { 16149 if (!?value) {
14397 return _OptionElementFactoryProvider.createOptionElement(data); 16150 return _OptionElementFactoryProvider.createOptionElement(data);
14398 } 16151 }
14399 if (!?defaultSelected) { 16152 if (!?defaultSelected) {
14400 return _OptionElementFactoryProvider.createOptionElement(data, value); 16153 return _OptionElementFactoryProvider.createOptionElement(data, value);
14401 } 16154 }
14402 if (!?selected) { 16155 if (!?selected) {
14403 return _OptionElementFactoryProvider.createOptionElement(data, value, defa ultSelected); 16156 return _OptionElementFactoryProvider.createOptionElement(data, value, defa ultSelected);
14404 } 16157 }
14405 return _OptionElementFactoryProvider.createOptionElement(data, value, defaul tSelected, selected); 16158 return _OptionElementFactoryProvider.createOptionElement(data, value, defaul tSelected, selected);
14406 } 16159 }
14407 16160
14408 /** @domName HTMLOptionElement.defaultSelected */ 16161 /** @domName HTMLOptionElement.defaultSelected */
16162 /// @docsEditable
14409 bool defaultSelected; 16163 bool defaultSelected;
14410 16164
14411 /** @domName HTMLOptionElement.disabled */ 16165 /** @domName HTMLOptionElement.disabled */
16166 /// @docsEditable
14412 bool disabled; 16167 bool disabled;
14413 16168
14414 /** @domName HTMLOptionElement.form */ 16169 /** @domName HTMLOptionElement.form */
16170 /// @docsEditable
14415 final FormElement form; 16171 final FormElement form;
14416 16172
14417 /** @domName HTMLOptionElement.index */ 16173 /** @domName HTMLOptionElement.index */
16174 /// @docsEditable
14418 final int index; 16175 final int index;
14419 16176
14420 /** @domName HTMLOptionElement.label */ 16177 /** @domName HTMLOptionElement.label */
16178 /// @docsEditable
14421 String label; 16179 String label;
14422 16180
14423 /** @domName HTMLOptionElement.selected */ 16181 /** @domName HTMLOptionElement.selected */
16182 /// @docsEditable
14424 bool selected; 16183 bool selected;
14425 16184
14426 /** @domName HTMLOptionElement.value */ 16185 /** @domName HTMLOptionElement.value */
16186 /// @docsEditable
14427 String value; 16187 String value;
14428 } 16188 }
14429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14430 // for details. All rights reserved. Use of this source code is governed by a 16190 // for details. All rights reserved. Use of this source code is governed by a
14431 // BSD-style license that can be found in the LICENSE file. 16191 // BSD-style license that can be found in the LICENSE file.
14432 16192
14433 16193
14434 /// @domName OscillatorNode 16194 /// @domName OscillatorNode
16195 /// @docsEditable
14435 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { 16196 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" {
14436 16197
14437 static const int CUSTOM = 4; 16198 static const int CUSTOM = 4;
14438 16199
14439 static const int FINISHED_STATE = 3; 16200 static const int FINISHED_STATE = 3;
14440 16201
14441 static const int PLAYING_STATE = 2; 16202 static const int PLAYING_STATE = 2;
14442 16203
14443 static const int SAWTOOTH = 2; 16204 static const int SAWTOOTH = 2;
14444 16205
14445 static const int SCHEDULED_STATE = 1; 16206 static const int SCHEDULED_STATE = 1;
14446 16207
14447 static const int SINE = 0; 16208 static const int SINE = 0;
14448 16209
14449 static const int SQUARE = 1; 16210 static const int SQUARE = 1;
14450 16211
14451 static const int TRIANGLE = 3; 16212 static const int TRIANGLE = 3;
14452 16213
14453 static const int UNSCHEDULED_STATE = 0; 16214 static const int UNSCHEDULED_STATE = 0;
14454 16215
14455 /** @domName OscillatorNode.detune */ 16216 /** @domName OscillatorNode.detune */
16217 /// @docsEditable
14456 final AudioParam detune; 16218 final AudioParam detune;
14457 16219
14458 /** @domName OscillatorNode.frequency */ 16220 /** @domName OscillatorNode.frequency */
16221 /// @docsEditable
14459 final AudioParam frequency; 16222 final AudioParam frequency;
14460 16223
14461 /** @domName OscillatorNode.playbackState */ 16224 /** @domName OscillatorNode.playbackState */
16225 /// @docsEditable
14462 final int playbackState; 16226 final int playbackState;
14463 16227
14464 /** @domName OscillatorNode.type */ 16228 /** @domName OscillatorNode.type */
16229 /// @docsEditable
14465 int type; 16230 int type;
14466 16231
14467 /** @domName OscillatorNode.setWaveTable */ 16232 /** @domName OscillatorNode.setWaveTable */
16233 /// @docsEditable
14468 void setWaveTable(WaveTable waveTable) native; 16234 void setWaveTable(WaveTable waveTable) native;
14469 16235
14470 /** @domName OscillatorNode.start */ 16236 /** @domName OscillatorNode.start */
16237 /// @docsEditable
14471 void start(num when) native; 16238 void start(num when) native;
14472 16239
14473 /** @domName OscillatorNode.stop */ 16240 /** @domName OscillatorNode.stop */
16241 /// @docsEditable
14474 void stop(num when) native; 16242 void stop(num when) native;
14475 } 16243 }
14476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14477 // for details. All rights reserved. Use of this source code is governed by a 16245 // for details. All rights reserved. Use of this source code is governed by a
14478 // BSD-style license that can be found in the LICENSE file. 16246 // BSD-style license that can be found in the LICENSE file.
14479 16247
14480 16248
14481 /// @domName HTMLOutputElement 16249 /// @domName HTMLOutputElement
16250 /// @docsEditable
14482 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" { 16251 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" {
14483 16252
14484 factory OutputElement() => document.$dom_createElement("output"); 16253 factory OutputElement() => document.$dom_createElement("output");
14485 16254
14486 /** @domName HTMLOutputElement.defaultValue */ 16255 /** @domName HTMLOutputElement.defaultValue */
16256 /// @docsEditable
14487 String defaultValue; 16257 String defaultValue;
14488 16258
14489 /** @domName HTMLOutputElement.form */ 16259 /** @domName HTMLOutputElement.form */
16260 /// @docsEditable
14490 final FormElement form; 16261 final FormElement form;
14491 16262
14492 /** @domName HTMLOutputElement.htmlFor */ 16263 /** @domName HTMLOutputElement.htmlFor */
16264 /// @docsEditable
14493 DOMSettableTokenList htmlFor; 16265 DOMSettableTokenList htmlFor;
14494 16266
14495 /** @domName HTMLOutputElement.labels */ 16267 /** @domName HTMLOutputElement.labels */
16268 /// @docsEditable
14496 final List<Node> labels; 16269 final List<Node> labels;
14497 16270
14498 /** @domName HTMLOutputElement.name */ 16271 /** @domName HTMLOutputElement.name */
16272 /// @docsEditable
14499 String name; 16273 String name;
14500 16274
14501 /** @domName HTMLOutputElement.type */ 16275 /** @domName HTMLOutputElement.type */
16276 /// @docsEditable
14502 final String type; 16277 final String type;
14503 16278
14504 /** @domName HTMLOutputElement.validationMessage */ 16279 /** @domName HTMLOutputElement.validationMessage */
16280 /// @docsEditable
14505 final String validationMessage; 16281 final String validationMessage;
14506 16282
14507 /** @domName HTMLOutputElement.validity */ 16283 /** @domName HTMLOutputElement.validity */
16284 /// @docsEditable
14508 final ValidityState validity; 16285 final ValidityState validity;
14509 16286
14510 /** @domName HTMLOutputElement.value */ 16287 /** @domName HTMLOutputElement.value */
16288 /// @docsEditable
14511 String value; 16289 String value;
14512 16290
14513 /** @domName HTMLOutputElement.willValidate */ 16291 /** @domName HTMLOutputElement.willValidate */
16292 /// @docsEditable
14514 final bool willValidate; 16293 final bool willValidate;
14515 16294
14516 /** @domName HTMLOutputElement.checkValidity */ 16295 /** @domName HTMLOutputElement.checkValidity */
16296 /// @docsEditable
14517 bool checkValidity() native; 16297 bool checkValidity() native;
14518 16298
14519 /** @domName HTMLOutputElement.setCustomValidity */ 16299 /** @domName HTMLOutputElement.setCustomValidity */
16300 /// @docsEditable
14520 void setCustomValidity(String error) native; 16301 void setCustomValidity(String error) native;
14521 } 16302 }
14522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14523 // for details. All rights reserved. Use of this source code is governed by a 16304 // for details. All rights reserved. Use of this source code is governed by a
14524 // BSD-style license that can be found in the LICENSE file. 16305 // BSD-style license that can be found in the LICENSE file.
14525 16306
14526 16307
14527 /// @domName OverflowEvent 16308 /// @domName OverflowEvent
16309 /// @docsEditable
14528 class OverflowEvent extends Event native "*OverflowEvent" { 16310 class OverflowEvent extends Event native "*OverflowEvent" {
14529 16311
14530 static const int BOTH = 2; 16312 static const int BOTH = 2;
14531 16313
14532 static const int HORIZONTAL = 0; 16314 static const int HORIZONTAL = 0;
14533 16315
14534 static const int VERTICAL = 1; 16316 static const int VERTICAL = 1;
14535 16317
14536 /** @domName OverflowEvent.horizontalOverflow */ 16318 /** @domName OverflowEvent.horizontalOverflow */
16319 /// @docsEditable
14537 final bool horizontalOverflow; 16320 final bool horizontalOverflow;
14538 16321
14539 /** @domName OverflowEvent.orient */ 16322 /** @domName OverflowEvent.orient */
16323 /// @docsEditable
14540 final int orient; 16324 final int orient;
14541 16325
14542 /** @domName OverflowEvent.verticalOverflow */ 16326 /** @domName OverflowEvent.verticalOverflow */
16327 /// @docsEditable
14543 final bool verticalOverflow; 16328 final bool verticalOverflow;
14544 } 16329 }
14545 // 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
14546 // 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
14547 // BSD-style license that can be found in the LICENSE file. 16332 // BSD-style license that can be found in the LICENSE file.
14548 16333
14549 16334
14550 /// @domName PagePopupController 16335 /// @domName PagePopupController
16336 /// @docsEditable
14551 class PagePopupController native "*PagePopupController" { 16337 class PagePopupController native "*PagePopupController" {
14552 16338
14553 /** @domName PagePopupController.localizeNumberString */ 16339 /** @domName PagePopupController.localizeNumberString */
16340 /// @docsEditable
14554 String localizeNumberString(String numberString) native; 16341 String localizeNumberString(String numberString) native;
14555 16342
14556 /** @domName PagePopupController.setValueAndClosePopup */ 16343 /** @domName PagePopupController.setValueAndClosePopup */
16344 /// @docsEditable
14557 void setValueAndClosePopup(int numberValue, String stringValue) native; 16345 void setValueAndClosePopup(int numberValue, String stringValue) native;
14558 } 16346 }
14559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14560 // for details. All rights reserved. Use of this source code is governed by a 16348 // for details. All rights reserved. Use of this source code is governed by a
14561 // BSD-style license that can be found in the LICENSE file. 16349 // BSD-style license that can be found in the LICENSE file.
14562 16350
14563 16351
14564 /// @domName PageTransitionEvent 16352 /// @domName PageTransitionEvent
16353 /// @docsEditable
14565 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 16354 class PageTransitionEvent extends Event native "*PageTransitionEvent" {
14566 16355
14567 /** @domName PageTransitionEvent.persisted */ 16356 /** @domName PageTransitionEvent.persisted */
16357 /// @docsEditable
14568 final bool persisted; 16358 final bool persisted;
14569 } 16359 }
14570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14571 // for details. All rights reserved. Use of this source code is governed by a 16361 // for details. All rights reserved. Use of this source code is governed by a
14572 // BSD-style license that can be found in the LICENSE file. 16362 // BSD-style license that can be found in the LICENSE file.
14573 16363
14574 16364
14575 /// @domName PannerNode 16365 /// @domName PannerNode
16366 /// @docsEditable
14576 class PannerNode extends AudioNode native "*PannerNode" { 16367 class PannerNode extends AudioNode native "*PannerNode" {
14577 16368
14578 static const int EQUALPOWER = 0; 16369 static const int EQUALPOWER = 0;
14579 16370
14580 static const int EXPONENTIAL_DISTANCE = 2; 16371 static const int EXPONENTIAL_DISTANCE = 2;
14581 16372
14582 static const int HRTF = 1; 16373 static const int HRTF = 1;
14583 16374
14584 static const int INVERSE_DISTANCE = 1; 16375 static const int INVERSE_DISTANCE = 1;
14585 16376
14586 static const int LINEAR_DISTANCE = 0; 16377 static const int LINEAR_DISTANCE = 0;
14587 16378
14588 static const int SOUNDFIELD = 2; 16379 static const int SOUNDFIELD = 2;
14589 16380
14590 /** @domName PannerNode.coneGain */ 16381 /** @domName PannerNode.coneGain */
16382 /// @docsEditable
14591 final AudioGain coneGain; 16383 final AudioGain coneGain;
14592 16384
14593 /** @domName PannerNode.coneInnerAngle */ 16385 /** @domName PannerNode.coneInnerAngle */
16386 /// @docsEditable
14594 num coneInnerAngle; 16387 num coneInnerAngle;
14595 16388
14596 /** @domName PannerNode.coneOuterAngle */ 16389 /** @domName PannerNode.coneOuterAngle */
16390 /// @docsEditable
14597 num coneOuterAngle; 16391 num coneOuterAngle;
14598 16392
14599 /** @domName PannerNode.coneOuterGain */ 16393 /** @domName PannerNode.coneOuterGain */
16394 /// @docsEditable
14600 num coneOuterGain; 16395 num coneOuterGain;
14601 16396
14602 /** @domName PannerNode.distanceGain */ 16397 /** @domName PannerNode.distanceGain */
16398 /// @docsEditable
14603 final AudioGain distanceGain; 16399 final AudioGain distanceGain;
14604 16400
14605 /** @domName PannerNode.distanceModel */ 16401 /** @domName PannerNode.distanceModel */
16402 /// @docsEditable
14606 int distanceModel; 16403 int distanceModel;
14607 16404
14608 /** @domName PannerNode.maxDistance */ 16405 /** @domName PannerNode.maxDistance */
16406 /// @docsEditable
14609 num maxDistance; 16407 num maxDistance;
14610 16408
14611 /** @domName PannerNode.panningModel */ 16409 /** @domName PannerNode.panningModel */
16410 /// @docsEditable
14612 int panningModel; 16411 int panningModel;
14613 16412
14614 /** @domName PannerNode.refDistance */ 16413 /** @domName PannerNode.refDistance */
16414 /// @docsEditable
14615 num refDistance; 16415 num refDistance;
14616 16416
14617 /** @domName PannerNode.rolloffFactor */ 16417 /** @domName PannerNode.rolloffFactor */
16418 /// @docsEditable
14618 num rolloffFactor; 16419 num rolloffFactor;
14619 16420
14620 /** @domName PannerNode.setOrientation */ 16421 /** @domName PannerNode.setOrientation */
16422 /// @docsEditable
14621 void setOrientation(num x, num y, num z) native; 16423 void setOrientation(num x, num y, num z) native;
14622 16424
14623 /** @domName PannerNode.setPosition */ 16425 /** @domName PannerNode.setPosition */
16426 /// @docsEditable
14624 void setPosition(num x, num y, num z) native; 16427 void setPosition(num x, num y, num z) native;
14625 16428
14626 /** @domName PannerNode.setVelocity */ 16429 /** @domName PannerNode.setVelocity */
16430 /// @docsEditable
14627 void setVelocity(num x, num y, num z) native; 16431 void setVelocity(num x, num y, num z) native;
14628 } 16432 }
14629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14630 // for details. All rights reserved. Use of this source code is governed by a 16434 // for details. All rights reserved. Use of this source code is governed by a
14631 // BSD-style license that can be found in the LICENSE file. 16435 // BSD-style license that can be found in the LICENSE file.
14632 16436
14633 16437
14634 /// @domName HTMLParagraphElement 16438 /// @domName HTMLParagraphElement
16439 /// @docsEditable
14635 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" { 16440 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" {
14636 16441
14637 factory ParagraphElement() => document.$dom_createElement("p"); 16442 factory ParagraphElement() => document.$dom_createElement("p");
14638 16443
14639 /** @domName HTMLParagraphElement.align */ 16444 /** @domName HTMLParagraphElement.align */
16445 /// @docsEditable
14640 String align; 16446 String align;
14641 } 16447 }
14642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14643 // for details. All rights reserved. Use of this source code is governed by a 16449 // for details. All rights reserved. Use of this source code is governed by a
14644 // BSD-style license that can be found in the LICENSE file. 16450 // BSD-style license that can be found in the LICENSE file.
14645 16451
14646 16452
14647 /// @domName HTMLParamElement 16453 /// @domName HTMLParamElement
16454 /// @docsEditable
14648 class ParamElement extends Element implements Element native "*HTMLParamElement" { 16455 class ParamElement extends Element implements Element native "*HTMLParamElement" {
14649 16456
14650 factory ParamElement() => document.$dom_createElement("param"); 16457 factory ParamElement() => document.$dom_createElement("param");
14651 16458
14652 /** @domName HTMLParamElement.name */ 16459 /** @domName HTMLParamElement.name */
16460 /// @docsEditable
14653 String name; 16461 String name;
14654 16462
14655 /** @domName HTMLParamElement.type */ 16463 /** @domName HTMLParamElement.type */
16464 /// @docsEditable
14656 String type; 16465 String type;
14657 16466
14658 /** @domName HTMLParamElement.value */ 16467 /** @domName HTMLParamElement.value */
16468 /// @docsEditable
14659 String value; 16469 String value;
14660 16470
14661 /** @domName HTMLParamElement.valueType */ 16471 /** @domName HTMLParamElement.valueType */
16472 /// @docsEditable
14662 String valueType; 16473 String valueType;
14663 } 16474 }
14664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14665 // for details. All rights reserved. Use of this source code is governed by a 16476 // for details. All rights reserved. Use of this source code is governed by a
14666 // BSD-style license that can be found in the LICENSE file. 16477 // BSD-style license that can be found in the LICENSE file.
14667 16478
14668 16479
14669 /// @domName PeerConnection00 16480 /// @domName PeerConnection00
16481 /// @docsEditable
14670 class PeerConnection00 extends EventTarget native "*PeerConnection00" { 16482 class PeerConnection00 extends EventTarget native "*PeerConnection00" {
14671 16483
14672 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback) => _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration, iceCallback); 16484 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback) => _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration, iceCallback);
14673 16485
14674 /** 16486 /**
14675 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 16487 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
14676 */ 16488 */
16489 /// @docsEditable
14677 PeerConnection00Events get on => 16490 PeerConnection00Events get on =>
14678 new PeerConnection00Events(this); 16491 new PeerConnection00Events(this);
14679 16492
14680 static const int ACTIVE = 2; 16493 static const int ACTIVE = 2;
14681 16494
14682 static const int CLOSED = 3; 16495 static const int CLOSED = 3;
14683 16496
14684 static const int ICE_CHECKING = 0x300; 16497 static const int ICE_CHECKING = 0x300;
14685 16498
14686 static const int ICE_CLOSED = 0x700; 16499 static const int ICE_CLOSED = 0x700;
(...skipping 12 matching lines...) Expand all
14699 16512
14700 static const int OPENING = 1; 16513 static const int OPENING = 1;
14701 16514
14702 static const int SDP_ANSWER = 0x300; 16515 static const int SDP_ANSWER = 0x300;
14703 16516
14704 static const int SDP_OFFER = 0x100; 16517 static const int SDP_OFFER = 0x100;
14705 16518
14706 static const int SDP_PRANSWER = 0x200; 16519 static const int SDP_PRANSWER = 0x200;
14707 16520
14708 /** @domName PeerConnection00.iceState */ 16521 /** @domName PeerConnection00.iceState */
16522 /// @docsEditable
14709 final int iceState; 16523 final int iceState;
14710 16524
14711 /** @domName PeerConnection00.localDescription */ 16525 /** @domName PeerConnection00.localDescription */
16526 /// @docsEditable
14712 final SessionDescription localDescription; 16527 final SessionDescription localDescription;
14713 16528
14714 /** @domName PeerConnection00.localStreams */ 16529 /** @domName PeerConnection00.localStreams */
16530 /// @docsEditable
14715 final List<MediaStream> localStreams; 16531 final List<MediaStream> localStreams;
14716 16532
14717 /** @domName PeerConnection00.readyState */ 16533 /** @domName PeerConnection00.readyState */
16534 /// @docsEditable
14718 final int readyState; 16535 final int readyState;
14719 16536
14720 /** @domName PeerConnection00.remoteDescription */ 16537 /** @domName PeerConnection00.remoteDescription */
16538 /// @docsEditable
14721 final SessionDescription remoteDescription; 16539 final SessionDescription remoteDescription;
14722 16540
14723 /** @domName PeerConnection00.remoteStreams */ 16541 /** @domName PeerConnection00.remoteStreams */
16542 /// @docsEditable
14724 final List<MediaStream> remoteStreams; 16543 final List<MediaStream> remoteStreams;
14725 16544
14726 /** @domName PeerConnection00.addEventListener */ 16545 /** @domName PeerConnection00.addEventListener */
16546 /// @docsEditable
14727 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 16547 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14728 16548
14729 /** @domName PeerConnection00.addStream */ 16549 /** @domName PeerConnection00.addStream */
16550 /// @docsEditable
14730 void addStream(MediaStream stream, [Map mediaStreamHints]) { 16551 void addStream(MediaStream stream, [Map mediaStreamHints]) {
14731 if (?mediaStreamHints) { 16552 if (?mediaStreamHints) {
14732 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ; 16553 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ;
14733 _addStream_1(stream, mediaStreamHints_1); 16554 _addStream_1(stream, mediaStreamHints_1);
14734 return; 16555 return;
14735 } 16556 }
14736 _addStream_2(stream); 16557 _addStream_2(stream);
14737 return; 16558 return;
14738 } 16559 }
14739 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; 16560 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream";
14740 void _addStream_2(MediaStream stream) native "addStream"; 16561 void _addStream_2(MediaStream stream) native "addStream";
14741 16562
14742 /** @domName PeerConnection00.close */ 16563 /** @domName PeerConnection00.close */
16564 /// @docsEditable
14743 void close() native; 16565 void close() native;
14744 16566
14745 /** @domName PeerConnection00.createAnswer */ 16567 /** @domName PeerConnection00.createAnswer */
16568 /// @docsEditable
14746 SessionDescription createAnswer(String offer, [Map mediaHints]) { 16569 SessionDescription createAnswer(String offer, [Map mediaHints]) {
14747 if (?mediaHints) { 16570 if (?mediaHints) {
14748 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 16571 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints);
14749 return _createAnswer_1(offer, mediaHints_1); 16572 return _createAnswer_1(offer, mediaHints_1);
14750 } 16573 }
14751 return _createAnswer_2(offer); 16574 return _createAnswer_2(offer);
14752 } 16575 }
14753 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; 16576 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer";
14754 SessionDescription _createAnswer_2(offer) native "createAnswer"; 16577 SessionDescription _createAnswer_2(offer) native "createAnswer";
14755 16578
14756 /** @domName PeerConnection00.createOffer */ 16579 /** @domName PeerConnection00.createOffer */
16580 /// @docsEditable
14757 SessionDescription createOffer([Map mediaHints]) { 16581 SessionDescription createOffer([Map mediaHints]) {
14758 if (?mediaHints) { 16582 if (?mediaHints) {
14759 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 16583 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints);
14760 return _createOffer_1(mediaHints_1); 16584 return _createOffer_1(mediaHints_1);
14761 } 16585 }
14762 return _createOffer_2(); 16586 return _createOffer_2();
14763 } 16587 }
14764 SessionDescription _createOffer_1(mediaHints) native "createOffer"; 16588 SessionDescription _createOffer_1(mediaHints) native "createOffer";
14765 SessionDescription _createOffer_2() native "createOffer"; 16589 SessionDescription _createOffer_2() native "createOffer";
14766 16590
14767 /** @domName PeerConnection00.dispatchEvent */ 16591 /** @domName PeerConnection00.dispatchEvent */
16592 /// @docsEditable
14768 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 16593 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
14769 16594
14770 /** @domName PeerConnection00.processIceMessage */ 16595 /** @domName PeerConnection00.processIceMessage */
16596 /// @docsEditable
14771 void processIceMessage(IceCandidate candidate) native; 16597 void processIceMessage(IceCandidate candidate) native;
14772 16598
14773 /** @domName PeerConnection00.removeEventListener */ 16599 /** @domName PeerConnection00.removeEventListener */
16600 /// @docsEditable
14774 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 16601 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
14775 16602
14776 /** @domName PeerConnection00.removeStream */ 16603 /** @domName PeerConnection00.removeStream */
16604 /// @docsEditable
14777 void removeStream(MediaStream stream) native; 16605 void removeStream(MediaStream stream) native;
14778 16606
14779 /** @domName PeerConnection00.setLocalDescription */ 16607 /** @domName PeerConnection00.setLocalDescription */
16608 /// @docsEditable
14780 void setLocalDescription(int action, SessionDescription desc) native; 16609 void setLocalDescription(int action, SessionDescription desc) native;
14781 16610
14782 /** @domName PeerConnection00.setRemoteDescription */ 16611 /** @domName PeerConnection00.setRemoteDescription */
16612 /// @docsEditable
14783 void setRemoteDescription(int action, SessionDescription desc) native; 16613 void setRemoteDescription(int action, SessionDescription desc) native;
14784 16614
14785 /** @domName PeerConnection00.startIce */ 16615 /** @domName PeerConnection00.startIce */
16616 /// @docsEditable
14786 void startIce([Map iceOptions]) { 16617 void startIce([Map iceOptions]) {
14787 if (?iceOptions) { 16618 if (?iceOptions) {
14788 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); 16619 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions);
14789 _startIce_1(iceOptions_1); 16620 _startIce_1(iceOptions_1);
14790 return; 16621 return;
14791 } 16622 }
14792 _startIce_2(); 16623 _startIce_2();
14793 return; 16624 return;
14794 } 16625 }
14795 void _startIce_1(iceOptions) native "startIce"; 16626 void _startIce_1(iceOptions) native "startIce";
(...skipping 12 matching lines...) Expand all
14808 EventListenerList get removeStream => this['removestream']; 16639 EventListenerList get removeStream => this['removestream'];
14809 16640
14810 EventListenerList get stateChange => this['statechange']; 16641 EventListenerList get stateChange => this['statechange'];
14811 } 16642 }
14812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14813 // for details. All rights reserved. Use of this source code is governed by a 16644 // for details. All rights reserved. Use of this source code is governed by a
14814 // BSD-style license that can be found in the LICENSE file. 16645 // BSD-style license that can be found in the LICENSE file.
14815 16646
14816 16647
14817 /// @domName Performance 16648 /// @domName Performance
16649 /// @docsEditable
14818 class Performance extends EventTarget native "*Performance" { 16650 class Performance extends EventTarget native "*Performance" {
14819 16651
14820 /** @domName Performance.memory */ 16652 /** @domName Performance.memory */
16653 /// @docsEditable
14821 final MemoryInfo memory; 16654 final MemoryInfo memory;
14822 16655
14823 /** @domName Performance.navigation */ 16656 /** @domName Performance.navigation */
16657 /// @docsEditable
14824 final PerformanceNavigation navigation; 16658 final PerformanceNavigation navigation;
14825 16659
14826 /** @domName Performance.timing */ 16660 /** @domName Performance.timing */
16661 /// @docsEditable
14827 final PerformanceTiming timing; 16662 final PerformanceTiming timing;
14828 16663
14829 /** @domName Performance.now */ 16664 /** @domName Performance.now */
16665 /// @docsEditable
14830 num now() native; 16666 num now() native;
14831 } 16667 }
14832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14833 // for details. All rights reserved. Use of this source code is governed by a 16669 // for details. All rights reserved. Use of this source code is governed by a
14834 // BSD-style license that can be found in the LICENSE file. 16670 // BSD-style license that can be found in the LICENSE file.
14835 16671
14836 16672
14837 /// @domName PerformanceNavigation 16673 /// @domName PerformanceNavigation
16674 /// @docsEditable
14838 class PerformanceNavigation native "*PerformanceNavigation" { 16675 class PerformanceNavigation native "*PerformanceNavigation" {
14839 16676
14840 static const int TYPE_BACK_FORWARD = 2; 16677 static const int TYPE_BACK_FORWARD = 2;
14841 16678
14842 static const int TYPE_NAVIGATE = 0; 16679 static const int TYPE_NAVIGATE = 0;
14843 16680
14844 static const int TYPE_RELOAD = 1; 16681 static const int TYPE_RELOAD = 1;
14845 16682
14846 static const int TYPE_RESERVED = 255; 16683 static const int TYPE_RESERVED = 255;
14847 16684
14848 /** @domName PerformanceNavigation.redirectCount */ 16685 /** @domName PerformanceNavigation.redirectCount */
16686 /// @docsEditable
14849 final int redirectCount; 16687 final int redirectCount;
14850 16688
14851 /** @domName PerformanceNavigation.type */ 16689 /** @domName PerformanceNavigation.type */
16690 /// @docsEditable
14852 final int type; 16691 final int type;
14853 } 16692 }
14854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14855 // for details. All rights reserved. Use of this source code is governed by a 16694 // for details. All rights reserved. Use of this source code is governed by a
14856 // BSD-style license that can be found in the LICENSE file. 16695 // BSD-style license that can be found in the LICENSE file.
14857 16696
14858 16697
14859 /// @domName PerformanceTiming 16698 /// @domName PerformanceTiming
16699 /// @docsEditable
14860 class PerformanceTiming native "*PerformanceTiming" { 16700 class PerformanceTiming native "*PerformanceTiming" {
14861 16701
14862 /** @domName PerformanceTiming.connectEnd */ 16702 /** @domName PerformanceTiming.connectEnd */
16703 /// @docsEditable
14863 final int connectEnd; 16704 final int connectEnd;
14864 16705
14865 /** @domName PerformanceTiming.connectStart */ 16706 /** @domName PerformanceTiming.connectStart */
16707 /// @docsEditable
14866 final int connectStart; 16708 final int connectStart;
14867 16709
14868 /** @domName PerformanceTiming.domComplete */ 16710 /** @domName PerformanceTiming.domComplete */
16711 /// @docsEditable
14869 final int domComplete; 16712 final int domComplete;
14870 16713
14871 /** @domName PerformanceTiming.domContentLoadedEventEnd */ 16714 /** @domName PerformanceTiming.domContentLoadedEventEnd */
16715 /// @docsEditable
14872 final int domContentLoadedEventEnd; 16716 final int domContentLoadedEventEnd;
14873 16717
14874 /** @domName PerformanceTiming.domContentLoadedEventStart */ 16718 /** @domName PerformanceTiming.domContentLoadedEventStart */
16719 /// @docsEditable
14875 final int domContentLoadedEventStart; 16720 final int domContentLoadedEventStart;
14876 16721
14877 /** @domName PerformanceTiming.domInteractive */ 16722 /** @domName PerformanceTiming.domInteractive */
16723 /// @docsEditable
14878 final int domInteractive; 16724 final int domInteractive;
14879 16725
14880 /** @domName PerformanceTiming.domLoading */ 16726 /** @domName PerformanceTiming.domLoading */
16727 /// @docsEditable
14881 final int domLoading; 16728 final int domLoading;
14882 16729
14883 /** @domName PerformanceTiming.domainLookupEnd */ 16730 /** @domName PerformanceTiming.domainLookupEnd */
16731 /// @docsEditable
14884 final int domainLookupEnd; 16732 final int domainLookupEnd;
14885 16733
14886 /** @domName PerformanceTiming.domainLookupStart */ 16734 /** @domName PerformanceTiming.domainLookupStart */
16735 /// @docsEditable
14887 final int domainLookupStart; 16736 final int domainLookupStart;
14888 16737
14889 /** @domName PerformanceTiming.fetchStart */ 16738 /** @domName PerformanceTiming.fetchStart */
16739 /// @docsEditable
14890 final int fetchStart; 16740 final int fetchStart;
14891 16741
14892 /** @domName PerformanceTiming.loadEventEnd */ 16742 /** @domName PerformanceTiming.loadEventEnd */
16743 /// @docsEditable
14893 final int loadEventEnd; 16744 final int loadEventEnd;
14894 16745
14895 /** @domName PerformanceTiming.loadEventStart */ 16746 /** @domName PerformanceTiming.loadEventStart */
16747 /// @docsEditable
14896 final int loadEventStart; 16748 final int loadEventStart;
14897 16749
14898 /** @domName PerformanceTiming.navigationStart */ 16750 /** @domName PerformanceTiming.navigationStart */
16751 /// @docsEditable
14899 final int navigationStart; 16752 final int navigationStart;
14900 16753
14901 /** @domName PerformanceTiming.redirectEnd */ 16754 /** @domName PerformanceTiming.redirectEnd */
16755 /// @docsEditable
14902 final int redirectEnd; 16756 final int redirectEnd;
14903 16757
14904 /** @domName PerformanceTiming.redirectStart */ 16758 /** @domName PerformanceTiming.redirectStart */
16759 /// @docsEditable
14905 final int redirectStart; 16760 final int redirectStart;
14906 16761
14907 /** @domName PerformanceTiming.requestStart */ 16762 /** @domName PerformanceTiming.requestStart */
16763 /// @docsEditable
14908 final int requestStart; 16764 final int requestStart;
14909 16765
14910 /** @domName PerformanceTiming.responseEnd */ 16766 /** @domName PerformanceTiming.responseEnd */
16767 /// @docsEditable
14911 final int responseEnd; 16768 final int responseEnd;
14912 16769
14913 /** @domName PerformanceTiming.responseStart */ 16770 /** @domName PerformanceTiming.responseStart */
16771 /// @docsEditable
14914 final int responseStart; 16772 final int responseStart;
14915 16773
14916 /** @domName PerformanceTiming.secureConnectionStart */ 16774 /** @domName PerformanceTiming.secureConnectionStart */
16775 /// @docsEditable
14917 final int secureConnectionStart; 16776 final int secureConnectionStart;
14918 16777
14919 /** @domName PerformanceTiming.unloadEventEnd */ 16778 /** @domName PerformanceTiming.unloadEventEnd */
16779 /// @docsEditable
14920 final int unloadEventEnd; 16780 final int unloadEventEnd;
14921 16781
14922 /** @domName PerformanceTiming.unloadEventStart */ 16782 /** @domName PerformanceTiming.unloadEventStart */
16783 /// @docsEditable
14923 final int unloadEventStart; 16784 final int unloadEventStart;
14924 } 16785 }
14925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14926 // for details. All rights reserved. Use of this source code is governed by a 16787 // for details. All rights reserved. Use of this source code is governed by a
14927 // BSD-style license that can be found in the LICENSE file. 16788 // BSD-style license that can be found in the LICENSE file.
14928 16789
14929 // WARNING: Do not edit - generated code. 16790 // WARNING: Do not edit - generated code.
14930 16791
14931 16792
14932 class Point native "*WebKitPoint" { 16793 class Point native "*WebKitPoint" {
14933 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); 16794 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y);
14934 16795
14935 /** @domName WebKitPoint.x */ 16796 /** @domName WebKitPoint.x */
16797 /// @docsEditable
14936 num x; 16798 num x;
14937 16799
14938 /** @domName WebKitPoint.y */ 16800 /** @domName WebKitPoint.y */
16801 /// @docsEditable
14939 num y; 16802 num y;
14940 16803
14941 } 16804 }
14942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14943 // for details. All rights reserved. Use of this source code is governed by a 16806 // for details. All rights reserved. Use of this source code is governed by a
14944 // BSD-style license that can be found in the LICENSE file. 16807 // BSD-style license that can be found in the LICENSE file.
14945 16808
14946 16809
14947 /// @domName PopStateEvent 16810 /// @domName PopStateEvent
16811 /// @docsEditable
14948 class PopStateEvent extends Event native "*PopStateEvent" { 16812 class PopStateEvent extends Event native "*PopStateEvent" {
14949 16813
14950 /** @domName PopStateEvent.state */ 16814 /** @domName PopStateEvent.state */
16815 /// @docsEditable
14951 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); 16816 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state);
14952 dynamic get _state => JS("dynamic", "#.state", this); 16817 dynamic get _state => JS("dynamic", "#.state", this);
14953 } 16818 }
14954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14955 // for details. All rights reserved. Use of this source code is governed by a 16820 // for details. All rights reserved. Use of this source code is governed by a
14956 // BSD-style license that can be found in the LICENSE file. 16821 // BSD-style license that can be found in the LICENSE file.
14957 16822
14958 // WARNING: Do not edit - generated code. 16823 // WARNING: Do not edit - generated code.
14959 16824
14960 16825
14961 typedef void PositionCallback(Geoposition position); 16826 typedef void PositionCallback(Geoposition position);
14962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14963 // for details. All rights reserved. Use of this source code is governed by a 16828 // for details. All rights reserved. Use of this source code is governed by a
14964 // BSD-style license that can be found in the LICENSE file. 16829 // BSD-style license that can be found in the LICENSE file.
14965 16830
14966 16831
14967 /// @domName PositionError 16832 /// @domName PositionError
16833 /// @docsEditable
14968 class PositionError native "*PositionError" { 16834 class PositionError native "*PositionError" {
14969 16835
14970 static const int PERMISSION_DENIED = 1; 16836 static const int PERMISSION_DENIED = 1;
14971 16837
14972 static const int POSITION_UNAVAILABLE = 2; 16838 static const int POSITION_UNAVAILABLE = 2;
14973 16839
14974 static const int TIMEOUT = 3; 16840 static const int TIMEOUT = 3;
14975 16841
14976 /** @domName PositionError.code */ 16842 /** @domName PositionError.code */
16843 /// @docsEditable
14977 final int code; 16844 final int code;
14978 16845
14979 /** @domName PositionError.message */ 16846 /** @domName PositionError.message */
16847 /// @docsEditable
14980 final String message; 16848 final String message;
14981 } 16849 }
14982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14983 // for details. All rights reserved. Use of this source code is governed by a 16851 // for details. All rights reserved. Use of this source code is governed by a
14984 // BSD-style license that can be found in the LICENSE file. 16852 // BSD-style license that can be found in the LICENSE file.
14985 16853
14986 // WARNING: Do not edit - generated code. 16854 // WARNING: Do not edit - generated code.
14987 16855
14988 16856
14989 typedef void PositionErrorCallback(PositionError error); 16857 typedef void PositionErrorCallback(PositionError error);
14990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14991 // for details. All rights reserved. Use of this source code is governed by a 16859 // for details. All rights reserved. Use of this source code is governed by a
14992 // BSD-style license that can be found in the LICENSE file. 16860 // BSD-style license that can be found in the LICENSE file.
14993 16861
14994 16862
14995 /// @domName HTMLPreElement 16863 /// @domName HTMLPreElement
16864 /// @docsEditable
14996 class PreElement extends Element implements Element native "*HTMLPreElement" { 16865 class PreElement extends Element implements Element native "*HTMLPreElement" {
14997 16866
14998 factory PreElement() => document.$dom_createElement("pre"); 16867 factory PreElement() => document.$dom_createElement("pre");
14999 16868
15000 /** @domName HTMLPreElement.width */ 16869 /** @domName HTMLPreElement.width */
16870 /// @docsEditable
15001 int width; 16871 int width;
15002 16872
15003 /** @domName HTMLPreElement.wrap */ 16873 /** @domName HTMLPreElement.wrap */
16874 /// @docsEditable
15004 bool wrap; 16875 bool wrap;
15005 } 16876 }
15006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15007 // for details. All rights reserved. Use of this source code is governed by a 16878 // for details. All rights reserved. Use of this source code is governed by a
15008 // BSD-style license that can be found in the LICENSE file. 16879 // BSD-style license that can be found in the LICENSE file.
15009 16880
15010 16881
15011 /// @domName ProcessingInstruction 16882 /// @domName ProcessingInstruction
16883 /// @docsEditable
15012 class ProcessingInstruction extends Node native "*ProcessingInstruction" { 16884 class ProcessingInstruction extends Node native "*ProcessingInstruction" {
15013 16885
15014 /** @domName ProcessingInstruction.data */ 16886 /** @domName ProcessingInstruction.data */
16887 /// @docsEditable
15015 String data; 16888 String data;
15016 16889
15017 /** @domName ProcessingInstruction.sheet */ 16890 /** @domName ProcessingInstruction.sheet */
16891 /// @docsEditable
15018 final StyleSheet sheet; 16892 final StyleSheet sheet;
15019 16893
15020 /** @domName ProcessingInstruction.target */ 16894 /** @domName ProcessingInstruction.target */
16895 /// @docsEditable
15021 final String target; 16896 final String target;
15022 } 16897 }
15023 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15024 // for details. All rights reserved. Use of this source code is governed by a 16899 // for details. All rights reserved. Use of this source code is governed by a
15025 // BSD-style license that can be found in the LICENSE file. 16900 // BSD-style license that can be found in the LICENSE file.
15026 16901
15027 16902
15028 /// @domName HTMLProgressElement 16903 /// @domName HTMLProgressElement
16904 /// @docsEditable
15029 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" { 16905 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" {
15030 16906
15031 factory ProgressElement() => document.$dom_createElement("progress"); 16907 factory ProgressElement() => document.$dom_createElement("progress");
15032 16908
15033 /** @domName HTMLProgressElement.labels */ 16909 /** @domName HTMLProgressElement.labels */
16910 /// @docsEditable
15034 final List<Node> labels; 16911 final List<Node> labels;
15035 16912
15036 /** @domName HTMLProgressElement.max */ 16913 /** @domName HTMLProgressElement.max */
16914 /// @docsEditable
15037 num max; 16915 num max;
15038 16916
15039 /** @domName HTMLProgressElement.position */ 16917 /** @domName HTMLProgressElement.position */
16918 /// @docsEditable
15040 final num position; 16919 final num position;
15041 16920
15042 /** @domName HTMLProgressElement.value */ 16921 /** @domName HTMLProgressElement.value */
16922 /// @docsEditable
15043 num value; 16923 num value;
15044 } 16924 }
15045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15046 // for details. All rights reserved. Use of this source code is governed by a 16926 // for details. All rights reserved. Use of this source code is governed by a
15047 // BSD-style license that can be found in the LICENSE file. 16927 // BSD-style license that can be found in the LICENSE file.
15048 16928
15049 16929
15050 /// @domName ProgressEvent 16930 /// @domName ProgressEvent
16931 /// @docsEditable
15051 class ProgressEvent extends Event native "*ProgressEvent" { 16932 class ProgressEvent extends Event native "*ProgressEvent" {
15052 16933
15053 /** @domName ProgressEvent.lengthComputable */ 16934 /** @domName ProgressEvent.lengthComputable */
16935 /// @docsEditable
15054 final bool lengthComputable; 16936 final bool lengthComputable;
15055 16937
15056 /** @domName ProgressEvent.loaded */ 16938 /** @domName ProgressEvent.loaded */
16939 /// @docsEditable
15057 final int loaded; 16940 final int loaded;
15058 16941
15059 /** @domName ProgressEvent.total */ 16942 /** @domName ProgressEvent.total */
16943 /// @docsEditable
15060 final int total; 16944 final int total;
15061 } 16945 }
15062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15063 // for details. All rights reserved. Use of this source code is governed by a 16947 // for details. All rights reserved. Use of this source code is governed by a
15064 // BSD-style license that can be found in the LICENSE file. 16948 // BSD-style license that can be found in the LICENSE file.
15065 16949
15066 16950
15067 /// @domName HTMLQuoteElement 16951 /// @domName HTMLQuoteElement
16952 /// @docsEditable
15068 class QuoteElement extends Element implements Element native "*HTMLQuoteElement" { 16953 class QuoteElement extends Element implements Element native "*HTMLQuoteElement" {
15069 16954
15070 /** @domName HTMLQuoteElement.cite */ 16955 /** @domName HTMLQuoteElement.cite */
16956 /// @docsEditable
15071 String cite; 16957 String cite;
15072 } 16958 }
15073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16959 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15074 // for details. All rights reserved. Use of this source code is governed by a 16960 // for details. All rights reserved. Use of this source code is governed by a
15075 // BSD-style license that can be found in the LICENSE file. 16961 // BSD-style license that can be found in the LICENSE file.
15076 16962
15077 16963
15078 /// @domName RGBColor 16964 /// @domName RGBColor
16965 /// @docsEditable
15079 class RGBColor native "*RGBColor" { 16966 class RGBColor native "*RGBColor" {
15080 16967
15081 /** @domName RGBColor.blue */ 16968 /** @domName RGBColor.blue */
16969 /// @docsEditable
15082 final CSSPrimitiveValue blue; 16970 final CSSPrimitiveValue blue;
15083 16971
15084 /** @domName RGBColor.green */ 16972 /** @domName RGBColor.green */
16973 /// @docsEditable
15085 final CSSPrimitiveValue green; 16974 final CSSPrimitiveValue green;
15086 16975
15087 /** @domName RGBColor.red */ 16976 /** @domName RGBColor.red */
16977 /// @docsEditable
15088 final CSSPrimitiveValue red; 16978 final CSSPrimitiveValue red;
15089 } 16979 }
15090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15091 // for details. All rights reserved. Use of this source code is governed by a 16981 // for details. All rights reserved. Use of this source code is governed by a
15092 // BSD-style license that can be found in the LICENSE file. 16982 // BSD-style license that can be found in the LICENSE file.
15093 16983
15094 16984
15095 /// @domName RTCDataChannel 16985 /// @domName RTCDataChannel
16986 /// @docsEditable
15096 class RTCDataChannel extends EventTarget native "*RTCDataChannel" { 16987 class RTCDataChannel extends EventTarget native "*RTCDataChannel" {
15097 16988
15098 /** 16989 /**
15099 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 16990 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
15100 */ 16991 */
16992 /// @docsEditable
15101 RTCDataChannelEvents get on => 16993 RTCDataChannelEvents get on =>
15102 new RTCDataChannelEvents(this); 16994 new RTCDataChannelEvents(this);
15103 16995
15104 /** @domName RTCDataChannel.binaryType */ 16996 /** @domName RTCDataChannel.binaryType */
16997 /// @docsEditable
15105 String binaryType; 16998 String binaryType;
15106 16999
15107 /** @domName RTCDataChannel.bufferedAmount */ 17000 /** @domName RTCDataChannel.bufferedAmount */
17001 /// @docsEditable
15108 final int bufferedAmount; 17002 final int bufferedAmount;
15109 17003
15110 /** @domName RTCDataChannel.label */ 17004 /** @domName RTCDataChannel.label */
17005 /// @docsEditable
15111 final String label; 17006 final String label;
15112 17007
15113 /** @domName RTCDataChannel.readyState */ 17008 /** @domName RTCDataChannel.readyState */
17009 /// @docsEditable
15114 final String readyState; 17010 final String readyState;
15115 17011
15116 /** @domName RTCDataChannel.reliable */ 17012 /** @domName RTCDataChannel.reliable */
17013 /// @docsEditable
15117 final bool reliable; 17014 final bool reliable;
15118 17015
15119 /** @domName RTCDataChannel.addEventListener */ 17016 /** @domName RTCDataChannel.addEventListener */
17017 /// @docsEditable
15120 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 17018 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
15121 17019
15122 /** @domName RTCDataChannel.close */ 17020 /** @domName RTCDataChannel.close */
17021 /// @docsEditable
15123 void close() native; 17022 void close() native;
15124 17023
15125 /** @domName RTCDataChannel.dispatchEvent */ 17024 /** @domName RTCDataChannel.dispatchEvent */
17025 /// @docsEditable
15126 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 17026 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
15127 17027
15128 /** @domName RTCDataChannel.removeEventListener */ 17028 /** @domName RTCDataChannel.removeEventListener */
17029 /// @docsEditable
15129 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 17030 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
15130 17031
15131 /** @domName RTCDataChannel.send */ 17032 /** @domName RTCDataChannel.send */
17033 /// @docsEditable
15132 void send(data) native; 17034 void send(data) native;
15133 } 17035 }
15134 17036
15135 class RTCDataChannelEvents extends Events { 17037 class RTCDataChannelEvents extends Events {
15136 RTCDataChannelEvents(EventTarget _ptr) : super(_ptr); 17038 RTCDataChannelEvents(EventTarget _ptr) : super(_ptr);
15137 17039
15138 EventListenerList get close => this['close']; 17040 EventListenerList get close => this['close'];
15139 17041
15140 EventListenerList get error => this['error']; 17042 EventListenerList get error => this['error'];
15141 17043
15142 EventListenerList get message => this['message']; 17044 EventListenerList get message => this['message'];
15143 17045
15144 EventListenerList get open => this['open']; 17046 EventListenerList get open => this['open'];
15145 } 17047 }
15146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17048 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15147 // for details. All rights reserved. Use of this source code is governed by a 17049 // for details. All rights reserved. Use of this source code is governed by a
15148 // BSD-style license that can be found in the LICENSE file. 17050 // BSD-style license that can be found in the LICENSE file.
15149 17051
15150 17052
15151 /// @domName RTCDataChannelEvent 17053 /// @domName RTCDataChannelEvent
17054 /// @docsEditable
15152 class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" { 17055 class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" {
15153 17056
15154 /** @domName RTCDataChannelEvent.channel */ 17057 /** @domName RTCDataChannelEvent.channel */
17058 /// @docsEditable
15155 final RTCDataChannel channel; 17059 final RTCDataChannel channel;
15156 } 17060 }
15157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15158 // for details. All rights reserved. Use of this source code is governed by a 17062 // for details. All rights reserved. Use of this source code is governed by a
15159 // BSD-style license that can be found in the LICENSE file. 17063 // BSD-style license that can be found in the LICENSE file.
15160 17064
15161 // WARNING: Do not edit - generated code. 17065 // WARNING: Do not edit - generated code.
15162 17066
15163 17067
15164 typedef void RTCErrorCallback(String errorInformation); 17068 typedef void RTCErrorCallback(String errorInformation);
15165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15166 // for details. All rights reserved. Use of this source code is governed by a 17070 // for details. All rights reserved. Use of this source code is governed by a
15167 // BSD-style license that can be found in the LICENSE file. 17071 // BSD-style license that can be found in the LICENSE file.
15168 17072
15169 17073
15170 /// @domName RTCIceCandidate 17074 /// @domName RTCIceCandidate
17075 /// @docsEditable
15171 class RTCIceCandidate native "*RTCIceCandidate" { 17076 class RTCIceCandidate native "*RTCIceCandidate" {
15172 17077
15173 factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.cre ateRTCIceCandidate(dictionary); 17078 factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.cre ateRTCIceCandidate(dictionary);
15174 17079
15175 /** @domName RTCIceCandidate.candidate */ 17080 /** @domName RTCIceCandidate.candidate */
17081 /// @docsEditable
15176 final String candidate; 17082 final String candidate;
15177 17083
15178 /** @domName RTCIceCandidate.sdpMLineIndex */ 17084 /** @domName RTCIceCandidate.sdpMLineIndex */
17085 /// @docsEditable
15179 final int sdpMLineIndex; 17086 final int sdpMLineIndex;
15180 17087
15181 /** @domName RTCIceCandidate.sdpMid */ 17088 /** @domName RTCIceCandidate.sdpMid */
17089 /// @docsEditable
15182 final String sdpMid; 17090 final String sdpMid;
15183 } 17091 }
15184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15185 // for details. All rights reserved. Use of this source code is governed by a 17093 // for details. All rights reserved. Use of this source code is governed by a
15186 // BSD-style license that can be found in the LICENSE file. 17094 // BSD-style license that can be found in the LICENSE file.
15187 17095
15188 17096
15189 /// @domName RTCIceCandidateEvent 17097 /// @domName RTCIceCandidateEvent
17098 /// @docsEditable
15190 class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { 17099 class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" {
15191 17100
15192 /** @domName RTCIceCandidateEvent.candidate */ 17101 /** @domName RTCIceCandidateEvent.candidate */
17102 /// @docsEditable
15193 final RTCIceCandidate candidate; 17103 final RTCIceCandidate candidate;
15194 } 17104 }
15195 // 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
15196 // 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
15197 // BSD-style license that can be found in the LICENSE file. 17107 // BSD-style license that can be found in the LICENSE file.
15198 17108
15199 17109
15200 /// @domName RTCPeerConnection 17110 /// @domName RTCPeerConnection
17111 /// @docsEditable
15201 class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { 17112 class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" {
15202 17113
15203 factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { 17114 factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) {
15204 if (!?mediaConstraints) { 17115 if (!?mediaConstraints) {
15205 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceSer vers); 17116 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceSer vers);
15206 } 17117 }
15207 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServe rs, mediaConstraints); 17118 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServe rs, mediaConstraints);
15208 } 17119 }
15209 17120
15210 /** 17121 /**
15211 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 17122 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
15212 */ 17123 */
17124 /// @docsEditable
15213 RTCPeerConnectionEvents get on => 17125 RTCPeerConnectionEvents get on =>
15214 new RTCPeerConnectionEvents(this); 17126 new RTCPeerConnectionEvents(this);
15215 17127
15216 /** @domName RTCPeerConnection.iceState */ 17128 /** @domName RTCPeerConnection.iceState */
17129 /// @docsEditable
15217 final String iceState; 17130 final String iceState;
15218 17131
15219 /** @domName RTCPeerConnection.localDescription */ 17132 /** @domName RTCPeerConnection.localDescription */
17133 /// @docsEditable
15220 final RTCSessionDescription localDescription; 17134 final RTCSessionDescription localDescription;
15221 17135
15222 /** @domName RTCPeerConnection.localStreams */ 17136 /** @domName RTCPeerConnection.localStreams */
17137 /// @docsEditable
15223 final List<MediaStream> localStreams; 17138 final List<MediaStream> localStreams;
15224 17139
15225 /** @domName RTCPeerConnection.readyState */ 17140 /** @domName RTCPeerConnection.readyState */
17141 /// @docsEditable
15226 final String readyState; 17142 final String readyState;
15227 17143
15228 /** @domName RTCPeerConnection.remoteDescription */ 17144 /** @domName RTCPeerConnection.remoteDescription */
17145 /// @docsEditable
15229 final RTCSessionDescription remoteDescription; 17146 final RTCSessionDescription remoteDescription;
15230 17147
15231 /** @domName RTCPeerConnection.remoteStreams */ 17148 /** @domName RTCPeerConnection.remoteStreams */
17149 /// @docsEditable
15232 final List<MediaStream> remoteStreams; 17150 final List<MediaStream> remoteStreams;
15233 17151
15234 /** @domName RTCPeerConnection.addEventListener */ 17152 /** @domName RTCPeerConnection.addEventListener */
17153 /// @docsEditable
15235 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 17154 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
15236 17155
15237 /** @domName RTCPeerConnection.addIceCandidate */ 17156 /** @domName RTCPeerConnection.addIceCandidate */
17157 /// @docsEditable
15238 void addIceCandidate(RTCIceCandidate candidate) native; 17158 void addIceCandidate(RTCIceCandidate candidate) native;
15239 17159
15240 /** @domName RTCPeerConnection.addStream */ 17160 /** @domName RTCPeerConnection.addStream */
17161 /// @docsEditable
15241 void addStream(MediaStream stream, [Map mediaConstraints]) { 17162 void addStream(MediaStream stream, [Map mediaConstraints]) {
15242 if (?mediaConstraints) { 17163 if (?mediaConstraints) {
15243 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 17164 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ;
15244 _addStream_1(stream, mediaConstraints_1); 17165 _addStream_1(stream, mediaConstraints_1);
15245 return; 17166 return;
15246 } 17167 }
15247 _addStream_2(stream); 17168 _addStream_2(stream);
15248 return; 17169 return;
15249 } 17170 }
15250 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; 17171 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream";
15251 void _addStream_2(MediaStream stream) native "addStream"; 17172 void _addStream_2(MediaStream stream) native "addStream";
15252 17173
15253 /** @domName RTCPeerConnection.close */ 17174 /** @domName RTCPeerConnection.close */
17175 /// @docsEditable
15254 void close() native; 17176 void close() native;
15255 17177
15256 /** @domName RTCPeerConnection.createAnswer */ 17178 /** @domName RTCPeerConnection.createAnswer */
17179 /// @docsEditable
15257 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) { 17180 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) {
15258 if (?mediaConstraints) { 17181 if (?mediaConstraints) {
15259 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 17182 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ;
15260 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); 17183 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
15261 return; 17184 return;
15262 } 17185 }
15263 _createAnswer_2(successCallback, failureCallback); 17186 _createAnswer_2(successCallback, failureCallback);
15264 return; 17187 return;
15265 } 17188 }
15266 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native "createAnswer"; 17189 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native "createAnswer";
15267 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native "createAnswer"; 17190 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native "createAnswer";
15268 17191
15269 /** @domName RTCPeerConnection.createDataChannel */ 17192 /** @domName RTCPeerConnection.createDataChannel */
17193 /// @docsEditable
15270 RTCDataChannel createDataChannel(String label, [Map options]) { 17194 RTCDataChannel createDataChannel(String label, [Map options]) {
15271 if (?options) { 17195 if (?options) {
15272 var options_1 = _convertDartToNative_Dictionary(options); 17196 var options_1 = _convertDartToNative_Dictionary(options);
15273 return _createDataChannel_1(label, options_1); 17197 return _createDataChannel_1(label, options_1);
15274 } 17198 }
15275 return _createDataChannel_2(label); 17199 return _createDataChannel_2(label);
15276 } 17200 }
15277 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel" ; 17201 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel" ;
15278 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; 17202 RTCDataChannel _createDataChannel_2(label) native "createDataChannel";
15279 17203
15280 /** @domName RTCPeerConnection.createOffer */ 17204 /** @domName RTCPeerConnection.createOffer */
17205 /// @docsEditable
15281 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) { 17206 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) {
15282 if (?mediaConstraints) { 17207 if (?mediaConstraints) {
15283 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 17208 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ;
15284 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); 17209 _createOffer_1(successCallback, failureCallback, mediaConstraints_1);
15285 return; 17210 return;
15286 } 17211 }
15287 _createOffer_2(successCallback, failureCallback); 17212 _createOffer_2(successCallback, failureCallback);
15288 return; 17213 return;
15289 } 17214 }
15290 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native "createOffer"; 17215 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native "createOffer";
15291 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native "createOffer"; 17216 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native "createOffer";
15292 17217
15293 /** @domName RTCPeerConnection.dispatchEvent */ 17218 /** @domName RTCPeerConnection.dispatchEvent */
17219 /// @docsEditable
15294 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 17220 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
15295 17221
15296 /** @domName RTCPeerConnection.getStats */ 17222 /** @domName RTCPeerConnection.getStats */
17223 /// @docsEditable
15297 void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) nat ive; 17224 void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) nat ive;
15298 17225
15299 /** @domName RTCPeerConnection.removeEventListener */ 17226 /** @domName RTCPeerConnection.removeEventListener */
17227 /// @docsEditable
15300 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 17228 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
15301 17229
15302 /** @domName RTCPeerConnection.removeStream */ 17230 /** @domName RTCPeerConnection.removeStream */
17231 /// @docsEditable
15303 void removeStream(MediaStream stream) native; 17232 void removeStream(MediaStream stream) native;
15304 17233
15305 /** @domName RTCPeerConnection.setLocalDescription */ 17234 /** @domName RTCPeerConnection.setLocalDescription */
17235 /// @docsEditable
15306 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native; 17236 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native;
15307 17237
15308 /** @domName RTCPeerConnection.setRemoteDescription */ 17238 /** @domName RTCPeerConnection.setRemoteDescription */
17239 /// @docsEditable
15309 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native; 17240 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native;
15310 17241
15311 /** @domName RTCPeerConnection.updateIce */ 17242 /** @domName RTCPeerConnection.updateIce */
17243 /// @docsEditable
15312 void updateIce([Map configuration, Map mediaConstraints]) { 17244 void updateIce([Map configuration, Map mediaConstraints]) {
15313 if (?mediaConstraints) { 17245 if (?mediaConstraints) {
15314 var configuration_1 = _convertDartToNative_Dictionary(configuration); 17246 var configuration_1 = _convertDartToNative_Dictionary(configuration);
15315 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints) ; 17247 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints) ;
15316 _updateIce_1(configuration_1, mediaConstraints_2); 17248 _updateIce_1(configuration_1, mediaConstraints_2);
15317 return; 17249 return;
15318 } 17250 }
15319 if (?configuration) { 17251 if (?configuration) {
15320 var configuration_3 = _convertDartToNative_Dictionary(configuration); 17252 var configuration_3 = _convertDartToNative_Dictionary(configuration);
15321 _updateIce_2(configuration_3); 17253 _updateIce_2(configuration_3);
(...skipping 23 matching lines...) Expand all
15345 EventListenerList get removeStream => this['removestream']; 17277 EventListenerList get removeStream => this['removestream'];
15346 17278
15347 EventListenerList get stateChange => this['statechange']; 17279 EventListenerList get stateChange => this['statechange'];
15348 } 17280 }
15349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15350 // for details. All rights reserved. Use of this source code is governed by a 17282 // for details. All rights reserved. Use of this source code is governed by a
15351 // BSD-style license that can be found in the LICENSE file. 17283 // BSD-style license that can be found in the LICENSE file.
15352 17284
15353 17285
15354 /// @domName RTCSessionDescription 17286 /// @domName RTCSessionDescription
17287 /// @docsEditable
15355 class RTCSessionDescription native "*RTCSessionDescription" { 17288 class RTCSessionDescription native "*RTCSessionDescription" {
15356 17289
15357 factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactory Provider.createRTCSessionDescription(dictionary); 17290 factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactory Provider.createRTCSessionDescription(dictionary);
15358 17291
15359 /** @domName RTCSessionDescription.sdp */ 17292 /** @domName RTCSessionDescription.sdp */
17293 /// @docsEditable
15360 String sdp; 17294 String sdp;
15361 17295
15362 /** @domName RTCSessionDescription.type */ 17296 /** @domName RTCSessionDescription.type */
17297 /// @docsEditable
15363 String type; 17298 String type;
15364 } 17299 }
15365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15366 // for details. All rights reserved. Use of this source code is governed by a 17301 // for details. All rights reserved. Use of this source code is governed by a
15367 // BSD-style license that can be found in the LICENSE file. 17302 // BSD-style license that can be found in the LICENSE file.
15368 17303
15369 // WARNING: Do not edit - generated code. 17304 // WARNING: Do not edit - generated code.
15370 17305
15371 17306
15372 typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp); 17307 typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp);
15373 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17308 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15374 // for details. All rights reserved. Use of this source code is governed by a 17309 // for details. All rights reserved. Use of this source code is governed by a
15375 // BSD-style license that can be found in the LICENSE file. 17310 // BSD-style license that can be found in the LICENSE file.
15376 17311
15377 // WARNING: Do not edit - generated code. 17312 // WARNING: Do not edit - generated code.
15378 17313
15379 17314
15380 typedef void RTCStatsCallback(RTCStatsResponse response); 17315 typedef void RTCStatsCallback(RTCStatsResponse response);
15381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15382 // for details. All rights reserved. Use of this source code is governed by a 17317 // for details. All rights reserved. Use of this source code is governed by a
15383 // BSD-style license that can be found in the LICENSE file. 17318 // BSD-style license that can be found in the LICENSE file.
15384 17319
15385 17320
15386 /// @domName RTCStatsElement 17321 /// @domName RTCStatsElement
17322 /// @docsEditable
15387 class RTCStatsElement native "*RTCStatsElement" { 17323 class RTCStatsElement native "*RTCStatsElement" {
15388 17324
15389 /** @domName RTCStatsElement.timestamp */ 17325 /** @domName RTCStatsElement.timestamp */
17326 /// @docsEditable
15390 final Date timestamp; 17327 final Date timestamp;
15391 17328
15392 /** @domName RTCStatsElement.stat */ 17329 /** @domName RTCStatsElement.stat */
17330 /// @docsEditable
15393 String stat(String name) native; 17331 String stat(String name) native;
15394 } 17332 }
15395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15396 // for details. All rights reserved. Use of this source code is governed by a 17334 // for details. All rights reserved. Use of this source code is governed by a
15397 // BSD-style license that can be found in the LICENSE file. 17335 // BSD-style license that can be found in the LICENSE file.
15398 17336
15399 17337
15400 /// @domName RTCStatsReport 17338 /// @domName RTCStatsReport
17339 /// @docsEditable
15401 class RTCStatsReport native "*RTCStatsReport" { 17340 class RTCStatsReport native "*RTCStatsReport" {
15402 17341
15403 /** @domName RTCStatsReport.local */ 17342 /** @domName RTCStatsReport.local */
17343 /// @docsEditable
15404 final RTCStatsElement local; 17344 final RTCStatsElement local;
15405 17345
15406 /** @domName RTCStatsReport.remote */ 17346 /** @domName RTCStatsReport.remote */
17347 /// @docsEditable
15407 final RTCStatsElement remote; 17348 final RTCStatsElement remote;
15408 } 17349 }
15409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15410 // for details. All rights reserved. Use of this source code is governed by a 17351 // for details. All rights reserved. Use of this source code is governed by a
15411 // BSD-style license that can be found in the LICENSE file. 17352 // BSD-style license that can be found in the LICENSE file.
15412 17353
15413 17354
15414 /// @domName RTCStatsResponse 17355 /// @domName RTCStatsResponse
17356 /// @docsEditable
15415 class RTCStatsResponse native "*RTCStatsResponse" { 17357 class RTCStatsResponse native "*RTCStatsResponse" {
15416 17358
15417 /** @domName RTCStatsResponse.result */ 17359 /** @domName RTCStatsResponse.result */
17360 /// @docsEditable
15418 List<RTCStatsReport> result() native; 17361 List<RTCStatsReport> result() native;
15419 } 17362 }
15420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15421 // for details. All rights reserved. Use of this source code is governed by a 17364 // for details. All rights reserved. Use of this source code is governed by a
15422 // BSD-style license that can be found in the LICENSE file. 17365 // BSD-style license that can be found in the LICENSE file.
15423 17366
15424 17367
15425 /// @domName RadioNodeList 17368 /// @domName RadioNodeList
17369 /// @docsEditable
15426 class RadioNodeList extends _NodeList native "*RadioNodeList" { 17370 class RadioNodeList extends _NodeList native "*RadioNodeList" {
15427 17371
15428 /** @domName RadioNodeList.value */ 17372 /** @domName RadioNodeList.value */
17373 /// @docsEditable
15429 String value; 17374 String value;
15430 } 17375 }
15431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15432 // for details. All rights reserved. Use of this source code is governed by a 17377 // for details. All rights reserved. Use of this source code is governed by a
15433 // BSD-style license that can be found in the LICENSE file. 17378 // BSD-style license that can be found in the LICENSE file.
15434 17379
15435 17380
15436 /// @domName Range 17381 /// @domName Range
17382 /// @docsEditable
15437 class Range native "*Range" { 17383 class Range native "*Range" {
15438 17384
15439 static const int END_TO_END = 2; 17385 static const int END_TO_END = 2;
15440 17386
15441 static const int END_TO_START = 3; 17387 static const int END_TO_START = 3;
15442 17388
15443 static const int NODE_AFTER = 1; 17389 static const int NODE_AFTER = 1;
15444 17390
15445 static const int NODE_BEFORE = 0; 17391 static const int NODE_BEFORE = 0;
15446 17392
15447 static const int NODE_BEFORE_AND_AFTER = 2; 17393 static const int NODE_BEFORE_AND_AFTER = 2;
15448 17394
15449 static const int NODE_INSIDE = 3; 17395 static const int NODE_INSIDE = 3;
15450 17396
15451 static const int START_TO_END = 1; 17397 static const int START_TO_END = 1;
15452 17398
15453 static const int START_TO_START = 0; 17399 static const int START_TO_START = 0;
15454 17400
15455 /** @domName Range.collapsed */ 17401 /** @domName Range.collapsed */
17402 /// @docsEditable
15456 final bool collapsed; 17403 final bool collapsed;
15457 17404
15458 /** @domName Range.commonAncestorContainer */ 17405 /** @domName Range.commonAncestorContainer */
17406 /// @docsEditable
15459 final Node commonAncestorContainer; 17407 final Node commonAncestorContainer;
15460 17408
15461 /** @domName Range.endContainer */ 17409 /** @domName Range.endContainer */
17410 /// @docsEditable
15462 final Node endContainer; 17411 final Node endContainer;
15463 17412
15464 /** @domName Range.endOffset */ 17413 /** @domName Range.endOffset */
17414 /// @docsEditable
15465 final int endOffset; 17415 final int endOffset;
15466 17416
15467 /** @domName Range.startContainer */ 17417 /** @domName Range.startContainer */
17418 /// @docsEditable
15468 final Node startContainer; 17419 final Node startContainer;
15469 17420
15470 /** @domName Range.startOffset */ 17421 /** @domName Range.startOffset */
17422 /// @docsEditable
15471 final int startOffset; 17423 final int startOffset;
15472 17424
15473 /** @domName Range.cloneContents */ 17425 /** @domName Range.cloneContents */
17426 /// @docsEditable
15474 DocumentFragment cloneContents() native; 17427 DocumentFragment cloneContents() native;
15475 17428
15476 /** @domName Range.cloneRange */ 17429 /** @domName Range.cloneRange */
17430 /// @docsEditable
15477 Range cloneRange() native; 17431 Range cloneRange() native;
15478 17432
15479 /** @domName Range.collapse */ 17433 /** @domName Range.collapse */
17434 /// @docsEditable
15480 void collapse(bool toStart) native; 17435 void collapse(bool toStart) native;
15481 17436
15482 /** @domName Range.compareNode */ 17437 /** @domName Range.compareNode */
17438 /// @docsEditable
15483 int compareNode(Node refNode) native; 17439 int compareNode(Node refNode) native;
15484 17440
15485 /** @domName Range.comparePoint */ 17441 /** @domName Range.comparePoint */
17442 /// @docsEditable
15486 int comparePoint(Node refNode, int offset) native; 17443 int comparePoint(Node refNode, int offset) native;
15487 17444
15488 /** @domName Range.createContextualFragment */ 17445 /** @domName Range.createContextualFragment */
17446 /// @docsEditable
15489 DocumentFragment createContextualFragment(String html) native; 17447 DocumentFragment createContextualFragment(String html) native;
15490 17448
15491 /** @domName Range.deleteContents */ 17449 /** @domName Range.deleteContents */
17450 /// @docsEditable
15492 void deleteContents() native; 17451 void deleteContents() native;
15493 17452
15494 /** @domName Range.detach */ 17453 /** @domName Range.detach */
17454 /// @docsEditable
15495 void detach() native; 17455 void detach() native;
15496 17456
15497 /** @domName Range.expand */ 17457 /** @domName Range.expand */
17458 /// @docsEditable
15498 void expand(String unit) native; 17459 void expand(String unit) native;
15499 17460
15500 /** @domName Range.extractContents */ 17461 /** @domName Range.extractContents */
17462 /// @docsEditable
15501 DocumentFragment extractContents() native; 17463 DocumentFragment extractContents() native;
15502 17464
15503 /** @domName Range.getBoundingClientRect */ 17465 /** @domName Range.getBoundingClientRect */
17466 /// @docsEditable
15504 ClientRect getBoundingClientRect() native; 17467 ClientRect getBoundingClientRect() native;
15505 17468
15506 /** @domName Range.getClientRects */ 17469 /** @domName Range.getClientRects */
17470 /// @docsEditable
15507 List<ClientRect> getClientRects() native; 17471 List<ClientRect> getClientRects() native;
15508 17472
15509 /** @domName Range.insertNode */ 17473 /** @domName Range.insertNode */
17474 /// @docsEditable
15510 void insertNode(Node newNode) native; 17475 void insertNode(Node newNode) native;
15511 17476
15512 /** @domName Range.intersectsNode */ 17477 /** @domName Range.intersectsNode */
17478 /// @docsEditable
15513 bool intersectsNode(Node refNode) native; 17479 bool intersectsNode(Node refNode) native;
15514 17480
15515 /** @domName Range.isPointInRange */ 17481 /** @domName Range.isPointInRange */
17482 /// @docsEditable
15516 bool isPointInRange(Node refNode, int offset) native; 17483 bool isPointInRange(Node refNode, int offset) native;
15517 17484
15518 /** @domName Range.selectNode */ 17485 /** @domName Range.selectNode */
17486 /// @docsEditable
15519 void selectNode(Node refNode) native; 17487 void selectNode(Node refNode) native;
15520 17488
15521 /** @domName Range.selectNodeContents */ 17489 /** @domName Range.selectNodeContents */
17490 /// @docsEditable
15522 void selectNodeContents(Node refNode) native; 17491 void selectNodeContents(Node refNode) native;
15523 17492
15524 /** @domName Range.setEnd */ 17493 /** @domName Range.setEnd */
17494 /// @docsEditable
15525 void setEnd(Node refNode, int offset) native; 17495 void setEnd(Node refNode, int offset) native;
15526 17496
15527 /** @domName Range.setEndAfter */ 17497 /** @domName Range.setEndAfter */
17498 /// @docsEditable
15528 void setEndAfter(Node refNode) native; 17499 void setEndAfter(Node refNode) native;
15529 17500
15530 /** @domName Range.setEndBefore */ 17501 /** @domName Range.setEndBefore */
17502 /// @docsEditable
15531 void setEndBefore(Node refNode) native; 17503 void setEndBefore(Node refNode) native;
15532 17504
15533 /** @domName Range.setStart */ 17505 /** @domName Range.setStart */
17506 /// @docsEditable
15534 void setStart(Node refNode, int offset) native; 17507 void setStart(Node refNode, int offset) native;
15535 17508
15536 /** @domName Range.setStartAfter */ 17509 /** @domName Range.setStartAfter */
17510 /// @docsEditable
15537 void setStartAfter(Node refNode) native; 17511 void setStartAfter(Node refNode) native;
15538 17512
15539 /** @domName Range.setStartBefore */ 17513 /** @domName Range.setStartBefore */
17514 /// @docsEditable
15540 void setStartBefore(Node refNode) native; 17515 void setStartBefore(Node refNode) native;
15541 17516
15542 /** @domName Range.surroundContents */ 17517 /** @domName Range.surroundContents */
17518 /// @docsEditable
15543 void surroundContents(Node newParent) native; 17519 void surroundContents(Node newParent) native;
15544 17520
15545 /** @domName Range.toString */ 17521 /** @domName Range.toString */
17522 /// @docsEditable
15546 String toString() native; 17523 String toString() native;
15547 } 17524 }
15548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15549 // for details. All rights reserved. Use of this source code is governed by a 17526 // for details. All rights reserved. Use of this source code is governed by a
15550 // BSD-style license that can be found in the LICENSE file. 17527 // BSD-style license that can be found in the LICENSE file.
15551 17528
15552 17529
15553 /// @domName RangeException 17530 /// @domName RangeException
17531 /// @docsEditable
15554 class RangeException native "*RangeException" { 17532 class RangeException native "*RangeException" {
15555 17533
15556 static const int BAD_BOUNDARYPOINTS_ERR = 1; 17534 static const int BAD_BOUNDARYPOINTS_ERR = 1;
15557 17535
15558 static const int INVALID_NODE_TYPE_ERR = 2; 17536 static const int INVALID_NODE_TYPE_ERR = 2;
15559 17537
15560 /** @domName RangeException.code */ 17538 /** @domName RangeException.code */
17539 /// @docsEditable
15561 final int code; 17540 final int code;
15562 17541
15563 /** @domName RangeException.message */ 17542 /** @domName RangeException.message */
17543 /// @docsEditable
15564 final String message; 17544 final String message;
15565 17545
15566 /** @domName RangeException.name */ 17546 /** @domName RangeException.name */
17547 /// @docsEditable
15567 final String name; 17548 final String name;
15568 17549
15569 /** @domName RangeException.toString */ 17550 /** @domName RangeException.toString */
17551 /// @docsEditable
15570 String toString() native; 17552 String toString() native;
15571 } 17553 }
15572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17554 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15573 // for details. All rights reserved. Use of this source code is governed by a 17555 // for details. All rights reserved. Use of this source code is governed by a
15574 // BSD-style license that can be found in the LICENSE file. 17556 // BSD-style license that can be found in the LICENSE file.
15575 17557
15576 17558
15577 /// @domName Rect 17559 /// @domName Rect
17560 /// @docsEditable
15578 class Rect native "*Rect" { 17561 class Rect native "*Rect" {
15579 17562
15580 /** @domName Rect.bottom */ 17563 /** @domName Rect.bottom */
17564 /// @docsEditable
15581 final CSSPrimitiveValue bottom; 17565 final CSSPrimitiveValue bottom;
15582 17566
15583 /** @domName Rect.left */ 17567 /** @domName Rect.left */
17568 /// @docsEditable
15584 final CSSPrimitiveValue left; 17569 final CSSPrimitiveValue left;
15585 17570
15586 /** @domName Rect.right */ 17571 /** @domName Rect.right */
17572 /// @docsEditable
15587 final CSSPrimitiveValue right; 17573 final CSSPrimitiveValue right;
15588 17574
15589 /** @domName Rect.top */ 17575 /** @domName Rect.top */
17576 /// @docsEditable
15590 final CSSPrimitiveValue top; 17577 final CSSPrimitiveValue top;
15591 } 17578 }
15592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15593 // for details. All rights reserved. Use of this source code is governed by a 17580 // for details. All rights reserved. Use of this source code is governed by a
15594 // BSD-style license that can be found in the LICENSE file. 17581 // BSD-style license that can be found in the LICENSE file.
15595 17582
15596 // WARNING: Do not edit - generated code. 17583 // WARNING: Do not edit - generated code.
15597 17584
15598 17585
15599 typedef void RequestAnimationFrameCallback(num highResTime); 17586 typedef void RequestAnimationFrameCallback(num highResTime);
15600 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15601 // for details. All rights reserved. Use of this source code is governed by a 17588 // for details. All rights reserved. Use of this source code is governed by a
15602 // BSD-style license that can be found in the LICENSE file. 17589 // BSD-style license that can be found in the LICENSE file.
15603 17590
15604 17591
15605 /// @domName SQLError 17592 /// @domName SQLError
17593 /// @docsEditable
15606 class SQLError native "*SQLError" { 17594 class SQLError native "*SQLError" {
15607 17595
15608 static const int CONSTRAINT_ERR = 6; 17596 static const int CONSTRAINT_ERR = 6;
15609 17597
15610 static const int DATABASE_ERR = 1; 17598 static const int DATABASE_ERR = 1;
15611 17599
15612 static const int QUOTA_ERR = 4; 17600 static const int QUOTA_ERR = 4;
15613 17601
15614 static const int SYNTAX_ERR = 5; 17602 static const int SYNTAX_ERR = 5;
15615 17603
15616 static const int TIMEOUT_ERR = 7; 17604 static const int TIMEOUT_ERR = 7;
15617 17605
15618 static const int TOO_LARGE_ERR = 3; 17606 static const int TOO_LARGE_ERR = 3;
15619 17607
15620 static const int UNKNOWN_ERR = 0; 17608 static const int UNKNOWN_ERR = 0;
15621 17609
15622 static const int VERSION_ERR = 2; 17610 static const int VERSION_ERR = 2;
15623 17611
15624 /** @domName SQLError.code */ 17612 /** @domName SQLError.code */
17613 /// @docsEditable
15625 final int code; 17614 final int code;
15626 17615
15627 /** @domName SQLError.message */ 17616 /** @domName SQLError.message */
17617 /// @docsEditable
15628 final String message; 17618 final String message;
15629 } 17619 }
15630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15631 // for details. All rights reserved. Use of this source code is governed by a 17621 // for details. All rights reserved. Use of this source code is governed by a
15632 // BSD-style license that can be found in the LICENSE file. 17622 // BSD-style license that can be found in the LICENSE file.
15633 17623
15634 17624
15635 /// @domName SQLException 17625 /// @domName SQLException
17626 /// @docsEditable
15636 class SQLException native "*SQLException" { 17627 class SQLException native "*SQLException" {
15637 17628
15638 static const int CONSTRAINT_ERR = 6; 17629 static const int CONSTRAINT_ERR = 6;
15639 17630
15640 static const int DATABASE_ERR = 1; 17631 static const int DATABASE_ERR = 1;
15641 17632
15642 static const int QUOTA_ERR = 4; 17633 static const int QUOTA_ERR = 4;
15643 17634
15644 static const int SYNTAX_ERR = 5; 17635 static const int SYNTAX_ERR = 5;
15645 17636
15646 static const int TIMEOUT_ERR = 7; 17637 static const int TIMEOUT_ERR = 7;
15647 17638
15648 static const int TOO_LARGE_ERR = 3; 17639 static const int TOO_LARGE_ERR = 3;
15649 17640
15650 static const int UNKNOWN_ERR = 0; 17641 static const int UNKNOWN_ERR = 0;
15651 17642
15652 static const int VERSION_ERR = 2; 17643 static const int VERSION_ERR = 2;
15653 17644
15654 /** @domName SQLException.code */ 17645 /** @domName SQLException.code */
17646 /// @docsEditable
15655 final int code; 17647 final int code;
15656 17648
15657 /** @domName SQLException.message */ 17649 /** @domName SQLException.message */
17650 /// @docsEditable
15658 final String message; 17651 final String message;
15659 } 17652 }
15660 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15661 // for details. All rights reserved. Use of this source code is governed by a 17654 // for details. All rights reserved. Use of this source code is governed by a
15662 // BSD-style license that can be found in the LICENSE file. 17655 // BSD-style license that can be found in the LICENSE file.
15663 17656
15664 17657
15665 /// @domName SQLResultSet 17658 /// @domName SQLResultSet
17659 /// @docsEditable
15666 class SQLResultSet native "*SQLResultSet" { 17660 class SQLResultSet native "*SQLResultSet" {
15667 17661
15668 /** @domName SQLResultSet.insertId */ 17662 /** @domName SQLResultSet.insertId */
17663 /// @docsEditable
15669 final int insertId; 17664 final int insertId;
15670 17665
15671 /** @domName SQLResultSet.rows */ 17666 /** @domName SQLResultSet.rows */
17667 /// @docsEditable
15672 final SQLResultSetRowList rows; 17668 final SQLResultSetRowList rows;
15673 17669
15674 /** @domName SQLResultSet.rowsAffected */ 17670 /** @domName SQLResultSet.rowsAffected */
17671 /// @docsEditable
15675 final int rowsAffected; 17672 final int rowsAffected;
15676 } 17673 }
15677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15678 // for details. All rights reserved. Use of this source code is governed by a 17675 // for details. All rights reserved. Use of this source code is governed by a
15679 // BSD-style license that can be found in the LICENSE file. 17676 // BSD-style license that can be found in the LICENSE file.
15680 17677
15681 17678
15682 /// @domName SQLResultSetRowList 17679 /// @domName SQLResultSetRowList
17680 /// @docsEditable
15683 class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ e "*SQLResultSetRowList" { 17681 class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ e "*SQLResultSetRowList" {
15684 17682
15685 /** @domName SQLResultSetRowList.length */ 17683 /** @domName SQLResultSetRowList.length */
17684 /// @docsEditable
15686 final int length; 17685 final int length;
15687 17686
15688 Map operator[](int index) => JS("Map", "#[#]", this, index); 17687 Map operator[](int index) => JS("Map", "#[#]", this, index);
15689 17688
15690 void operator[]=(int index, Map value) { 17689 void operator[]=(int index, Map value) {
15691 throw new UnsupportedError("Cannot assign element of immutable List."); 17690 throw new UnsupportedError("Cannot assign element of immutable List.");
15692 } 17691 }
15693 // -- start List<Map> mixins. 17692 // -- start List<Map> mixins.
15694 // Map is the element type. 17693 // Map is the element type.
15695 17694
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
15764 void insertRange(int start, int rangeLength, [Map initialValue]) { 17763 void insertRange(int start, int rangeLength, [Map initialValue]) {
15765 throw new UnsupportedError("Cannot insertRange on immutable List."); 17764 throw new UnsupportedError("Cannot insertRange on immutable List.");
15766 } 17765 }
15767 17766
15768 List<Map> getRange(int start, int rangeLength) => 17767 List<Map> getRange(int start, int rangeLength) =>
15769 _Lists.getRange(this, start, rangeLength, <Map>[]); 17768 _Lists.getRange(this, start, rangeLength, <Map>[]);
15770 17769
15771 // -- end List<Map> mixins. 17770 // -- end List<Map> mixins.
15772 17771
15773 /** @domName SQLResultSetRowList.item */ 17772 /** @domName SQLResultSetRowList.item */
17773 /// @docsEditable
15774 Map item(int index) { 17774 Map item(int index) {
15775 return _convertNativeToDart_Dictionary(_item_1(index)); 17775 return _convertNativeToDart_Dictionary(_item_1(index));
15776 } 17776 }
15777 _item_1(index) native "item"; 17777 _item_1(index) native "item";
15778 } 17778 }
15779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15780 // for details. All rights reserved. Use of this source code is governed by a 17780 // for details. All rights reserved. Use of this source code is governed by a
15781 // BSD-style license that can be found in the LICENSE file. 17781 // BSD-style license that can be found in the LICENSE file.
15782 17782
15783 // WARNING: Do not edit - generated code. 17783 // WARNING: Do not edit - generated code.
15784 17784
15785 17785
15786 typedef void SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul tSet); 17786 typedef void SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul tSet);
15787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15788 // for details. All rights reserved. Use of this source code is governed by a 17788 // for details. All rights reserved. Use of this source code is governed by a
15789 // BSD-style license that can be found in the LICENSE file. 17789 // BSD-style license that can be found in the LICENSE file.
15790 17790
15791 // WARNING: Do not edit - generated code. 17791 // WARNING: Do not edit - generated code.
15792 17792
15793 17793
15794 typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro r); 17794 typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro r);
15795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15796 // for details. All rights reserved. Use of this source code is governed by a 17796 // for details. All rights reserved. Use of this source code is governed by a
15797 // BSD-style license that can be found in the LICENSE file. 17797 // BSD-style license that can be found in the LICENSE file.
15798 17798
15799 17799
15800 /// @domName SQLTransaction 17800 /// @domName SQLTransaction
17801 /// @docsEditable
15801 class SQLTransaction native "*SQLTransaction" { 17802 class SQLTransaction native "*SQLTransaction" {
15802 17803
15803 /** @domName SQLTransaction.executeSql */ 17804 /** @domName SQLTransaction.executeSql */
17805 /// @docsEditable
15804 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal lback, SQLStatementErrorCallback errorCallback]) native; 17806 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal lback, SQLStatementErrorCallback errorCallback]) native;
15805 } 17807 }
15806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15807 // for details. All rights reserved. Use of this source code is governed by a 17809 // for details. All rights reserved. Use of this source code is governed by a
15808 // BSD-style license that can be found in the LICENSE file. 17810 // BSD-style license that can be found in the LICENSE file.
15809 17811
15810 // WARNING: Do not edit - generated code. 17812 // WARNING: Do not edit - generated code.
15811 17813
15812 17814
15813 typedef void SQLTransactionCallback(SQLTransaction transaction); 17815 typedef void SQLTransactionCallback(SQLTransaction transaction);
15814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15815 // for details. All rights reserved. Use of this source code is governed by a 17817 // for details. All rights reserved. Use of this source code is governed by a
15816 // BSD-style license that can be found in the LICENSE file. 17818 // BSD-style license that can be found in the LICENSE file.
15817 17819
15818 // WARNING: Do not edit - generated code. 17820 // WARNING: Do not edit - generated code.
15819 17821
15820 17822
15821 typedef void SQLTransactionErrorCallback(SQLError error); 17823 typedef void SQLTransactionErrorCallback(SQLError error);
15822 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15823 // for details. All rights reserved. Use of this source code is governed by a 17825 // for details. All rights reserved. Use of this source code is governed by a
15824 // BSD-style license that can be found in the LICENSE file. 17826 // BSD-style license that can be found in the LICENSE file.
15825 17827
15826 17828
15827 /// @domName SQLTransactionSync 17829 /// @domName SQLTransactionSync
17830 /// @docsEditable
15828 class SQLTransactionSync native "*SQLTransactionSync" { 17831 class SQLTransactionSync native "*SQLTransactionSync" {
15829 17832
15830 /** @domName SQLTransactionSync.executeSql */ 17833 /** @domName SQLTransactionSync.executeSql */
17834 /// @docsEditable
15831 SQLResultSet executeSql(String sqlStatement, List arguments) native; 17835 SQLResultSet executeSql(String sqlStatement, List arguments) native;
15832 } 17836 }
15833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15834 // for details. All rights reserved. Use of this source code is governed by a 17838 // for details. All rights reserved. Use of this source code is governed by a
15835 // BSD-style license that can be found in the LICENSE file. 17839 // BSD-style license that can be found in the LICENSE file.
15836 17840
15837 // WARNING: Do not edit - generated code. 17841 // WARNING: Do not edit - generated code.
15838 17842
15839 17843
15840 typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction); 17844 typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction);
15841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15842 // for details. All rights reserved. Use of this source code is governed by a 17846 // for details. All rights reserved. Use of this source code is governed by a
15843 // BSD-style license that can be found in the LICENSE file. 17847 // BSD-style license that can be found in the LICENSE file.
15844 17848
15845 17849
15846 /// @domName Screen 17850 /// @domName Screen
17851 /// @docsEditable
15847 class Screen native "*Screen" { 17852 class Screen native "*Screen" {
15848 17853
15849 /** @domName Screen.availHeight */ 17854 /** @domName Screen.availHeight */
17855 /// @docsEditable
15850 final int availHeight; 17856 final int availHeight;
15851 17857
15852 /** @domName Screen.availLeft */ 17858 /** @domName Screen.availLeft */
17859 /// @docsEditable
15853 final int availLeft; 17860 final int availLeft;
15854 17861
15855 /** @domName Screen.availTop */ 17862 /** @domName Screen.availTop */
17863 /// @docsEditable
15856 final int availTop; 17864 final int availTop;
15857 17865
15858 /** @domName Screen.availWidth */ 17866 /** @domName Screen.availWidth */
17867 /// @docsEditable
15859 final int availWidth; 17868 final int availWidth;
15860 17869
15861 /** @domName Screen.colorDepth */ 17870 /** @domName Screen.colorDepth */
17871 /// @docsEditable
15862 final int colorDepth; 17872 final int colorDepth;
15863 17873
15864 /** @domName Screen.height */ 17874 /** @domName Screen.height */
17875 /// @docsEditable
15865 final int height; 17876 final int height;
15866 17877
15867 /** @domName Screen.pixelDepth */ 17878 /** @domName Screen.pixelDepth */
17879 /// @docsEditable
15868 final int pixelDepth; 17880 final int pixelDepth;
15869 17881
15870 /** @domName Screen.width */ 17882 /** @domName Screen.width */
17883 /// @docsEditable
15871 final int width; 17884 final int width;
15872 } 17885 }
15873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17886 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15874 // for details. All rights reserved. Use of this source code is governed by a 17887 // for details. All rights reserved. Use of this source code is governed by a
15875 // BSD-style license that can be found in the LICENSE file. 17888 // BSD-style license that can be found in the LICENSE file.
15876 17889
15877 17890
15878 /// @domName HTMLScriptElement 17891 /// @domName HTMLScriptElement
17892 /// @docsEditable
15879 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" { 17893 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" {
15880 17894
15881 factory ScriptElement() => document.$dom_createElement("script"); 17895 factory ScriptElement() => document.$dom_createElement("script");
15882 17896
15883 /** @domName HTMLScriptElement.async */ 17897 /** @domName HTMLScriptElement.async */
17898 /// @docsEditable
15884 bool async; 17899 bool async;
15885 17900
15886 /** @domName HTMLScriptElement.charset */ 17901 /** @domName HTMLScriptElement.charset */
17902 /// @docsEditable
15887 String charset; 17903 String charset;
15888 17904
15889 /** @domName HTMLScriptElement.crossOrigin */ 17905 /** @domName HTMLScriptElement.crossOrigin */
17906 /// @docsEditable
15890 String crossOrigin; 17907 String crossOrigin;
15891 17908
15892 /** @domName HTMLScriptElement.defer */ 17909 /** @domName HTMLScriptElement.defer */
17910 /// @docsEditable
15893 bool defer; 17911 bool defer;
15894 17912
15895 /** @domName HTMLScriptElement.event */ 17913 /** @domName HTMLScriptElement.event */
17914 /// @docsEditable
15896 String event; 17915 String event;
15897 17916
15898 /** @domName HTMLScriptElement.htmlFor */ 17917 /** @domName HTMLScriptElement.htmlFor */
17918 /// @docsEditable
15899 String htmlFor; 17919 String htmlFor;
15900 17920
15901 /** @domName HTMLScriptElement.src */ 17921 /** @domName HTMLScriptElement.src */
17922 /// @docsEditable
15902 String src; 17923 String src;
15903 17924
15904 /** @domName HTMLScriptElement.type */ 17925 /** @domName HTMLScriptElement.type */
17926 /// @docsEditable
15905 String type; 17927 String type;
15906 } 17928 }
15907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15908 // for details. All rights reserved. Use of this source code is governed by a 17930 // for details. All rights reserved. Use of this source code is governed by a
15909 // BSD-style license that can be found in the LICENSE file. 17931 // BSD-style license that can be found in the LICENSE file.
15910 17932
15911 17933
15912 /// @domName ScriptProcessorNode 17934 /// @domName ScriptProcessorNode
17935 /// @docsEditable
15913 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri ptProcessorNode" { 17936 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri ptProcessorNode" {
15914 17937
15915 /** 17938 /**
15916 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 17939 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
15917 */ 17940 */
17941 /// @docsEditable
15918 ScriptProcessorNodeEvents get on => 17942 ScriptProcessorNodeEvents get on =>
15919 new ScriptProcessorNodeEvents(this); 17943 new ScriptProcessorNodeEvents(this);
15920 17944
15921 /** @domName ScriptProcessorNode.bufferSize */ 17945 /** @domName ScriptProcessorNode.bufferSize */
17946 /// @docsEditable
15922 final int bufferSize; 17947 final int bufferSize;
15923 } 17948 }
15924 17949
15925 class ScriptProcessorNodeEvents extends Events { 17950 class ScriptProcessorNodeEvents extends Events {
15926 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr); 17951 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
15927 17952
15928 EventListenerList get audioProcess => this['audioprocess']; 17953 EventListenerList get audioProcess => this['audioprocess'];
15929 } 17954 }
15930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15931 // for details. All rights reserved. Use of this source code is governed by a 17956 // for details. All rights reserved. Use of this source code is governed by a
15932 // BSD-style license that can be found in the LICENSE file. 17957 // BSD-style license that can be found in the LICENSE file.
15933 17958
15934 17959
15935 /// @domName ScriptProfile 17960 /// @domName ScriptProfile
17961 /// @docsEditable
15936 class ScriptProfile native "*ScriptProfile" { 17962 class ScriptProfile native "*ScriptProfile" {
15937 17963
15938 /** @domName ScriptProfile.head */ 17964 /** @domName ScriptProfile.head */
17965 /// @docsEditable
15939 final ScriptProfileNode head; 17966 final ScriptProfileNode head;
15940 17967
15941 /** @domName ScriptProfile.title */ 17968 /** @domName ScriptProfile.title */
17969 /// @docsEditable
15942 final String title; 17970 final String title;
15943 17971
15944 /** @domName ScriptProfile.uid */ 17972 /** @domName ScriptProfile.uid */
17973 /// @docsEditable
15945 final int uid; 17974 final int uid;
15946 } 17975 }
15947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15948 // for details. All rights reserved. Use of this source code is governed by a 17977 // for details. All rights reserved. Use of this source code is governed by a
15949 // BSD-style license that can be found in the LICENSE file. 17978 // BSD-style license that can be found in the LICENSE file.
15950 17979
15951 17980
15952 /// @domName ScriptProfileNode 17981 /// @domName ScriptProfileNode
17982 /// @docsEditable
15953 class ScriptProfileNode native "*ScriptProfileNode" { 17983 class ScriptProfileNode native "*ScriptProfileNode" {
15954 17984
15955 /** @domName ScriptProfileNode.callUID */ 17985 /** @domName ScriptProfileNode.callUID */
17986 /// @docsEditable
15956 final int callUID; 17987 final int callUID;
15957 17988
15958 /** @domName ScriptProfileNode.functionName */ 17989 /** @domName ScriptProfileNode.functionName */
17990 /// @docsEditable
15959 final String functionName; 17991 final String functionName;
15960 17992
15961 /** @domName ScriptProfileNode.lineNumber */ 17993 /** @domName ScriptProfileNode.lineNumber */
17994 /// @docsEditable
15962 final int lineNumber; 17995 final int lineNumber;
15963 17996
15964 /** @domName ScriptProfileNode.numberOfCalls */ 17997 /** @domName ScriptProfileNode.numberOfCalls */
17998 /// @docsEditable
15965 final int numberOfCalls; 17999 final int numberOfCalls;
15966 18000
15967 /** @domName ScriptProfileNode.selfTime */ 18001 /** @domName ScriptProfileNode.selfTime */
18002 /// @docsEditable
15968 final num selfTime; 18003 final num selfTime;
15969 18004
15970 /** @domName ScriptProfileNode.totalTime */ 18005 /** @domName ScriptProfileNode.totalTime */
18006 /// @docsEditable
15971 final num totalTime; 18007 final num totalTime;
15972 18008
15973 /** @domName ScriptProfileNode.url */ 18009 /** @domName ScriptProfileNode.url */
18010 /// @docsEditable
15974 final String url; 18011 final String url;
15975 18012
15976 /** @domName ScriptProfileNode.visible */ 18013 /** @domName ScriptProfileNode.visible */
18014 /// @docsEditable
15977 final bool visible; 18015 final bool visible;
15978 18016
15979 /** @domName ScriptProfileNode.children */ 18017 /** @domName ScriptProfileNode.children */
18018 /// @docsEditable
15980 List<ScriptProfileNode> children() native; 18019 List<ScriptProfileNode> children() native;
15981 } 18020 }
15982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15983 // for details. All rights reserved. Use of this source code is governed by a 18022 // for details. All rights reserved. Use of this source code is governed by a
15984 // BSD-style license that can be found in the LICENSE file. 18023 // BSD-style license that can be found in the LICENSE file.
15985 18024
15986 18025
15987 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" { 18026 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" {
15988 18027
15989 factory SelectElement() => document.$dom_createElement("select"); 18028 factory SelectElement() => document.$dom_createElement("select");
15990 18029
15991 /** @domName HTMLSelectElement.autofocus */ 18030 /** @domName HTMLSelectElement.autofocus */
18031 /// @docsEditable
15992 bool autofocus; 18032 bool autofocus;
15993 18033
15994 /** @domName HTMLSelectElement.disabled */ 18034 /** @domName HTMLSelectElement.disabled */
18035 /// @docsEditable
15995 bool disabled; 18036 bool disabled;
15996 18037
15997 /** @domName HTMLSelectElement.form */ 18038 /** @domName HTMLSelectElement.form */
18039 /// @docsEditable
15998 final FormElement form; 18040 final FormElement form;
15999 18041
16000 /** @domName HTMLSelectElement.labels */ 18042 /** @domName HTMLSelectElement.labels */
18043 /// @docsEditable
16001 final List<Node> labels; 18044 final List<Node> labels;
16002 18045
16003 /** @domName HTMLSelectElement.length */ 18046 /** @domName HTMLSelectElement.length */
18047 /// @docsEditable
16004 int length; 18048 int length;
16005 18049
16006 /** @domName HTMLSelectElement.multiple */ 18050 /** @domName HTMLSelectElement.multiple */
18051 /// @docsEditable
16007 bool multiple; 18052 bool multiple;
16008 18053
16009 /** @domName HTMLSelectElement.name */ 18054 /** @domName HTMLSelectElement.name */
18055 /// @docsEditable
16010 String name; 18056 String name;
16011 18057
16012 /** @domName HTMLSelectElement.required */ 18058 /** @domName HTMLSelectElement.required */
18059 /// @docsEditable
16013 bool required; 18060 bool required;
16014 18061
16015 /** @domName HTMLSelectElement.selectedIndex */ 18062 /** @domName HTMLSelectElement.selectedIndex */
18063 /// @docsEditable
16016 int selectedIndex; 18064 int selectedIndex;
16017 18065
16018 /** @domName HTMLSelectElement.size */ 18066 /** @domName HTMLSelectElement.size */
18067 /// @docsEditable
16019 int size; 18068 int size;
16020 18069
16021 /** @domName HTMLSelectElement.type */ 18070 /** @domName HTMLSelectElement.type */
18071 /// @docsEditable
16022 final String type; 18072 final String type;
16023 18073
16024 /** @domName HTMLSelectElement.validationMessage */ 18074 /** @domName HTMLSelectElement.validationMessage */
18075 /// @docsEditable
16025 final String validationMessage; 18076 final String validationMessage;
16026 18077
16027 /** @domName HTMLSelectElement.validity */ 18078 /** @domName HTMLSelectElement.validity */
18079 /// @docsEditable
16028 final ValidityState validity; 18080 final ValidityState validity;
16029 18081
16030 /** @domName HTMLSelectElement.value */ 18082 /** @domName HTMLSelectElement.value */
18083 /// @docsEditable
16031 String value; 18084 String value;
16032 18085
16033 /** @domName HTMLSelectElement.willValidate */ 18086 /** @domName HTMLSelectElement.willValidate */
18087 /// @docsEditable
16034 final bool willValidate; 18088 final bool willValidate;
16035 18089
16036 /** @domName HTMLSelectElement.checkValidity */ 18090 /** @domName HTMLSelectElement.checkValidity */
18091 /// @docsEditable
16037 bool checkValidity() native; 18092 bool checkValidity() native;
16038 18093
16039 /** @domName HTMLSelectElement.item */ 18094 /** @domName HTMLSelectElement.item */
18095 /// @docsEditable
16040 Node item(int index) native; 18096 Node item(int index) native;
16041 18097
16042 /** @domName HTMLSelectElement.namedItem */ 18098 /** @domName HTMLSelectElement.namedItem */
18099 /// @docsEditable
16043 Node namedItem(String name) native; 18100 Node namedItem(String name) native;
16044 18101
16045 /** @domName HTMLSelectElement.setCustomValidity */ 18102 /** @domName HTMLSelectElement.setCustomValidity */
18103 /// @docsEditable
16046 void setCustomValidity(String error) native; 18104 void setCustomValidity(String error) native;
16047 18105
16048 18106
16049 // Override default options, since IE returns SelectElement itself and it 18107 // Override default options, since IE returns SelectElement itself and it
16050 // does not operate as a List. 18108 // does not operate as a List.
16051 List<OptionElement> get options { 18109 List<OptionElement> get options {
16052 return this.elements.filter((e) => e is OptionElement); 18110 return this.elements.filter((e) => e is OptionElement);
16053 } 18111 }
16054 18112
16055 List<OptionElement> get selectedOptions { 18113 List<OptionElement> get selectedOptions {
16056 // IE does not change the selected flag for single-selection items. 18114 // IE does not change the selected flag for single-selection items.
16057 if (this.multiple) { 18115 if (this.multiple) {
16058 return this.options.filter((o) => o.selected); 18116 return this.options.filter((o) => o.selected);
16059 } else { 18117 } else {
16060 return [this.options[this.selectedIndex]]; 18118 return [this.options[this.selectedIndex]];
16061 } 18119 }
16062 } 18120 }
16063 } 18121 }
16064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16065 // for details. All rights reserved. Use of this source code is governed by a 18123 // for details. All rights reserved. Use of this source code is governed by a
16066 // BSD-style license that can be found in the LICENSE file. 18124 // BSD-style license that can be found in the LICENSE file.
16067 18125
16068 18126
16069 /// @domName SessionDescription 18127 /// @domName SessionDescription
18128 /// @docsEditable
16070 class SessionDescription native "*SessionDescription" { 18129 class SessionDescription native "*SessionDescription" {
16071 18130
16072 factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.c reateSessionDescription(sdp); 18131 factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.c reateSessionDescription(sdp);
16073 18132
16074 /** @domName SessionDescription.addCandidate */ 18133 /** @domName SessionDescription.addCandidate */
18134 /// @docsEditable
16075 void addCandidate(IceCandidate candidate) native; 18135 void addCandidate(IceCandidate candidate) native;
16076 18136
16077 /** @domName SessionDescription.toSdp */ 18137 /** @domName SessionDescription.toSdp */
18138 /// @docsEditable
16078 String toSdp() native; 18139 String toSdp() native;
16079 } 18140 }
16080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16081 // for details. All rights reserved. Use of this source code is governed by a 18142 // for details. All rights reserved. Use of this source code is governed by a
16082 // BSD-style license that can be found in the LICENSE file. 18143 // BSD-style license that can be found in the LICENSE file.
16083 18144
16084 18145
16085 /// @domName HTMLShadowElement 18146 /// @domName HTMLShadowElement
18147 /// @docsEditable
16086 class ShadowElement extends Element implements Element native "*HTMLShadowElemen t" { 18148 class ShadowElement extends Element implements Element native "*HTMLShadowElemen t" {
16087 18149
16088 /** @domName HTMLShadowElement.resetStyleInheritance */ 18150 /** @domName HTMLShadowElement.resetStyleInheritance */
18151 /// @docsEditable
16089 bool resetStyleInheritance; 18152 bool resetStyleInheritance;
16090 } 18153 }
16091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16092 // for details. All rights reserved. Use of this source code is governed by a 18155 // for details. All rights reserved. Use of this source code is governed by a
16093 // BSD-style license that can be found in the LICENSE file. 18156 // BSD-style license that can be found in the LICENSE file.
16094 18157
16095 // WARNING: Do not edit - generated code. 18158 // WARNING: Do not edit - generated code.
16096 18159
16097 18160
16098 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { 18161 class ShadowRoot extends DocumentFragment native "*ShadowRoot" {
16099 18162
16100 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo t(host); 18163 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo t(host);
16101 18164
16102 /** @domName ShadowRoot.activeElement */ 18165 /** @domName ShadowRoot.activeElement */
18166 /// @docsEditable
16103 final Element activeElement; 18167 final Element activeElement;
16104 18168
16105 /** @domName ShadowRoot.applyAuthorStyles */ 18169 /** @domName ShadowRoot.applyAuthorStyles */
18170 /// @docsEditable
16106 bool applyAuthorStyles; 18171 bool applyAuthorStyles;
16107 18172
16108 /** @domName ShadowRoot.innerHTML */ 18173 /** @domName ShadowRoot.innerHTML */
18174 /// @docsEditable
16109 String innerHTML; 18175 String innerHTML;
16110 18176
16111 /** @domName ShadowRoot.resetStyleInheritance */ 18177 /** @domName ShadowRoot.resetStyleInheritance */
18178 /// @docsEditable
16112 bool resetStyleInheritance; 18179 bool resetStyleInheritance;
16113 18180
16114 /** @domName ShadowRoot.cloneNode */ 18181 /** @domName ShadowRoot.cloneNode */
18182 /// @docsEditable
16115 Node clone(bool deep) native "cloneNode"; 18183 Node clone(bool deep) native "cloneNode";
16116 18184
16117 /** @domName ShadowRoot.getElementById */ 18185 /** @domName ShadowRoot.getElementById */
18186 /// @docsEditable
16118 Element $dom_getElementById(String elementId) native "getElementById"; 18187 Element $dom_getElementById(String elementId) native "getElementById";
16119 18188
16120 /** @domName ShadowRoot.getElementsByClassName */ 18189 /** @domName ShadowRoot.getElementsByClassName */
18190 /// @docsEditable
16121 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy ClassName"; 18191 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy ClassName";
16122 18192
16123 /** @domName ShadowRoot.getElementsByTagName */ 18193 /** @domName ShadowRoot.getElementsByTagName */
18194 /// @docsEditable
16124 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN ame"; 18195 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN ame";
16125 18196
16126 /** @domName ShadowRoot.getSelection */ 18197 /** @domName ShadowRoot.getSelection */
18198 /// @docsEditable
16127 DOMSelection getSelection() native; 18199 DOMSelection getSelection() native;
16128 18200
16129 static bool get supported => 18201 static bool get supported =>
16130 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); 18202 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)');
16131 } 18203 }
16132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16133 // for details. All rights reserved. Use of this source code is governed by a 18205 // for details. All rights reserved. Use of this source code is governed by a
16134 // BSD-style license that can be found in the LICENSE file. 18206 // BSD-style license that can be found in the LICENSE file.
16135 18207
16136 18208
16137 /// @domName SharedWorker 18209 /// @domName SharedWorker
18210 /// @docsEditable
16138 class SharedWorker extends AbstractWorker native "*SharedWorker" { 18211 class SharedWorker extends AbstractWorker native "*SharedWorker" {
16139 18212
16140 factory SharedWorker(String scriptURL, [String name]) { 18213 factory SharedWorker(String scriptURL, [String name]) {
16141 if (!?name) { 18214 if (!?name) {
16142 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL); 18215 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL);
16143 } 18216 }
16144 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name); 18217 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name);
16145 } 18218 }
16146 18219
16147 /** @domName SharedWorker.port */ 18220 /** @domName SharedWorker.port */
18221 /// @docsEditable
16148 final MessagePort port; 18222 final MessagePort port;
16149 } 18223 }
16150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16151 // for details. All rights reserved. Use of this source code is governed by a 18225 // for details. All rights reserved. Use of this source code is governed by a
16152 // BSD-style license that can be found in the LICENSE file. 18226 // BSD-style license that can be found in the LICENSE file.
16153 18227
16154 18228
16155 /// @domName SharedWorkerContext 18229 /// @domName SharedWorkerContext
18230 /// @docsEditable
16156 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { 18231 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" {
16157 18232
16158 /** 18233 /**
16159 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 18234 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
16160 */ 18235 */
18236 /// @docsEditable
16161 SharedWorkerContextEvents get on => 18237 SharedWorkerContextEvents get on =>
16162 new SharedWorkerContextEvents(this); 18238 new SharedWorkerContextEvents(this);
16163 18239
16164 /** @domName SharedWorkerContext.name */ 18240 /** @domName SharedWorkerContext.name */
18241 /// @docsEditable
16165 final String name; 18242 final String name;
16166 } 18243 }
16167 18244
16168 class SharedWorkerContextEvents extends WorkerContextEvents { 18245 class SharedWorkerContextEvents extends WorkerContextEvents {
16169 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 18246 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
16170 18247
16171 EventListenerList get connect => this['connect']; 18248 EventListenerList get connect => this['connect'];
16172 } 18249 }
16173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18250 // 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 18251 // 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. 18252 // BSD-style license that can be found in the LICENSE file.
16176 18253
16177 18254
16178 /// @domName SourceBuffer 18255 /// @domName SourceBuffer
18256 /// @docsEditable
16179 class SourceBuffer native "*SourceBuffer" { 18257 class SourceBuffer native "*SourceBuffer" {
16180 18258
16181 /** @domName SourceBuffer.buffered */ 18259 /** @domName SourceBuffer.buffered */
18260 /// @docsEditable
16182 final TimeRanges buffered; 18261 final TimeRanges buffered;
16183 18262
16184 /** @domName SourceBuffer.timestampOffset */ 18263 /** @domName SourceBuffer.timestampOffset */
18264 /// @docsEditable
16185 num timestampOffset; 18265 num timestampOffset;
16186 18266
16187 /** @domName SourceBuffer.abort */ 18267 /** @domName SourceBuffer.abort */
18268 /// @docsEditable
16188 void abort() native; 18269 void abort() native;
16189 18270
16190 /** @domName SourceBuffer.append */ 18271 /** @domName SourceBuffer.append */
18272 /// @docsEditable
16191 void append(Uint8Array data) native; 18273 void append(Uint8Array data) native;
16192 } 18274 }
16193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16194 // for details. All rights reserved. Use of this source code is governed by a 18276 // for details. All rights reserved. Use of this source code is governed by a
16195 // BSD-style license that can be found in the LICENSE file. 18277 // BSD-style license that can be found in the LICENSE file.
16196 18278
16197 18279
16198 /// @domName SourceBufferList 18280 /// @domName SourceBufferList
18281 /// @docsEditable
16199 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" { 18282 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" {
16200 18283
16201 /** @domName SourceBufferList.length */ 18284 /** @domName SourceBufferList.length */
18285 /// @docsEditable
16202 final int length; 18286 final int length;
16203 18287
16204 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); 18288 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
16205 18289
16206 void operator[]=(int index, SourceBuffer value) { 18290 void operator[]=(int index, SourceBuffer value) {
16207 throw new UnsupportedError("Cannot assign element of immutable List."); 18291 throw new UnsupportedError("Cannot assign element of immutable List.");
16208 } 18292 }
16209 // -- start List<SourceBuffer> mixins. 18293 // -- start List<SourceBuffer> mixins.
16210 // SourceBuffer is the element type. 18294 // SourceBuffer is the element type.
16211 18295
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
16280 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { 18364 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
16281 throw new UnsupportedError("Cannot insertRange on immutable List."); 18365 throw new UnsupportedError("Cannot insertRange on immutable List.");
16282 } 18366 }
16283 18367
16284 List<SourceBuffer> getRange(int start, int rangeLength) => 18368 List<SourceBuffer> getRange(int start, int rangeLength) =>
16285 _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); 18369 _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
16286 18370
16287 // -- end List<SourceBuffer> mixins. 18371 // -- end List<SourceBuffer> mixins.
16288 18372
16289 /** @domName SourceBufferList.addEventListener */ 18373 /** @domName SourceBufferList.addEventListener */
18374 /// @docsEditable
16290 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 18375 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
16291 18376
16292 /** @domName SourceBufferList.dispatchEvent */ 18377 /** @domName SourceBufferList.dispatchEvent */
18378 /// @docsEditable
16293 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 18379 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
16294 18380
16295 /** @domName SourceBufferList.item */ 18381 /** @domName SourceBufferList.item */
18382 /// @docsEditable
16296 SourceBuffer item(int index) native; 18383 SourceBuffer item(int index) native;
16297 18384
16298 /** @domName SourceBufferList.removeEventListener */ 18385 /** @domName SourceBufferList.removeEventListener */
18386 /// @docsEditable
16299 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 18387 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
16300 } 18388 }
16301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16302 // for details. All rights reserved. Use of this source code is governed by a 18390 // for details. All rights reserved. Use of this source code is governed by a
16303 // BSD-style license that can be found in the LICENSE file. 18391 // BSD-style license that can be found in the LICENSE file.
16304 18392
16305 18393
16306 /// @domName HTMLSourceElement 18394 /// @domName HTMLSourceElement
18395 /// @docsEditable
16307 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" { 18396 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" {
16308 18397
16309 factory SourceElement() => document.$dom_createElement("source"); 18398 factory SourceElement() => document.$dom_createElement("source");
16310 18399
16311 /** @domName HTMLSourceElement.media */ 18400 /** @domName HTMLSourceElement.media */
18401 /// @docsEditable
16312 String media; 18402 String media;
16313 18403
16314 /** @domName HTMLSourceElement.src */ 18404 /** @domName HTMLSourceElement.src */
18405 /// @docsEditable
16315 String src; 18406 String src;
16316 18407
16317 /** @domName HTMLSourceElement.type */ 18408 /** @domName HTMLSourceElement.type */
18409 /// @docsEditable
16318 String type; 18410 String type;
16319 } 18411 }
16320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16321 // for details. All rights reserved. Use of this source code is governed by a 18413 // for details. All rights reserved. Use of this source code is governed by a
16322 // BSD-style license that can be found in the LICENSE file. 18414 // BSD-style license that can be found in the LICENSE file.
16323 18415
16324 18416
16325 /// @domName HTMLSpanElement 18417 /// @domName HTMLSpanElement
18418 /// @docsEditable
16326 class SpanElement extends Element implements Element native "*HTMLSpanElement" { 18419 class SpanElement extends Element implements Element native "*HTMLSpanElement" {
16327 18420
16328 factory SpanElement() => document.$dom_createElement("span"); 18421 factory SpanElement() => document.$dom_createElement("span");
16329 } 18422 }
16330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16331 // for details. All rights reserved. Use of this source code is governed by a 18424 // for details. All rights reserved. Use of this source code is governed by a
16332 // BSD-style license that can be found in the LICENSE file. 18425 // BSD-style license that can be found in the LICENSE file.
16333 18426
16334 18427
16335 /// @domName SpeechGrammar 18428 /// @domName SpeechGrammar
18429 /// @docsEditable
16336 class SpeechGrammar native "*SpeechGrammar" { 18430 class SpeechGrammar native "*SpeechGrammar" {
16337 18431
16338 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ; 18432 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ;
16339 18433
16340 /** @domName SpeechGrammar.src */ 18434 /** @domName SpeechGrammar.src */
18435 /// @docsEditable
16341 String src; 18436 String src;
16342 18437
16343 /** @domName SpeechGrammar.weight */ 18438 /** @domName SpeechGrammar.weight */
18439 /// @docsEditable
16344 num weight; 18440 num weight;
16345 } 18441 }
16346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16347 // for details. All rights reserved. Use of this source code is governed by a 18443 // for details. All rights reserved. Use of this source code is governed by a
16348 // BSD-style license that can be found in the LICENSE file. 18444 // BSD-style license that can be found in the LICENSE file.
16349 18445
16350 18446
16351 /// @domName SpeechGrammarList 18447 /// @domName SpeechGrammarList
18448 /// @docsEditable
16352 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" { 18449 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" {
16353 18450
16354 factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechG rammarList(); 18451 factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechG rammarList();
16355 18452
16356 /** @domName SpeechGrammarList.length */ 18453 /** @domName SpeechGrammarList.length */
18454 /// @docsEditable
16357 final int length; 18455 final int length;
16358 18456
16359 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index ); 18457 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index );
16360 18458
16361 void operator[]=(int index, SpeechGrammar value) { 18459 void operator[]=(int index, SpeechGrammar value) {
16362 throw new UnsupportedError("Cannot assign element of immutable List."); 18460 throw new UnsupportedError("Cannot assign element of immutable List.");
16363 } 18461 }
16364 // -- start List<SpeechGrammar> mixins. 18462 // -- start List<SpeechGrammar> mixins.
16365 // SpeechGrammar is the element type. 18463 // SpeechGrammar is the element type.
16366 18464
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
16435 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { 18533 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
16436 throw new UnsupportedError("Cannot insertRange on immutable List."); 18534 throw new UnsupportedError("Cannot insertRange on immutable List.");
16437 } 18535 }
16438 18536
16439 List<SpeechGrammar> getRange(int start, int rangeLength) => 18537 List<SpeechGrammar> getRange(int start, int rangeLength) =>
16440 _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); 18538 _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
16441 18539
16442 // -- end List<SpeechGrammar> mixins. 18540 // -- end List<SpeechGrammar> mixins.
16443 18541
16444 /** @domName SpeechGrammarList.addFromString */ 18542 /** @domName SpeechGrammarList.addFromString */
18543 /// @docsEditable
16445 void addFromString(String string, [num weight]) native; 18544 void addFromString(String string, [num weight]) native;
16446 18545
16447 /** @domName SpeechGrammarList.addFromUri */ 18546 /** @domName SpeechGrammarList.addFromUri */
18547 /// @docsEditable
16448 void addFromUri(String src, [num weight]) native; 18548 void addFromUri(String src, [num weight]) native;
16449 18549
16450 /** @domName SpeechGrammarList.item */ 18550 /** @domName SpeechGrammarList.item */
18551 /// @docsEditable
16451 SpeechGrammar item(int index) native; 18552 SpeechGrammar item(int index) native;
16452 } 18553 }
16453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18554 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16454 // for details. All rights reserved. Use of this source code is governed by a 18555 // for details. All rights reserved. Use of this source code is governed by a
16455 // BSD-style license that can be found in the LICENSE file. 18556 // BSD-style license that can be found in the LICENSE file.
16456 18557
16457 18558
16458 /// @domName SpeechInputEvent 18559 /// @domName SpeechInputEvent
18560 /// @docsEditable
16459 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 18561 class SpeechInputEvent extends Event native "*SpeechInputEvent" {
16460 18562
16461 /** @domName SpeechInputEvent.results */ 18563 /** @domName SpeechInputEvent.results */
18564 /// @docsEditable
16462 final List<SpeechInputResult> results; 18565 final List<SpeechInputResult> results;
16463 } 18566 }
16464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16465 // for details. All rights reserved. Use of this source code is governed by a 18568 // for details. All rights reserved. Use of this source code is governed by a
16466 // BSD-style license that can be found in the LICENSE file. 18569 // BSD-style license that can be found in the LICENSE file.
16467 18570
16468 18571
16469 /// @domName SpeechInputResult 18572 /// @domName SpeechInputResult
18573 /// @docsEditable
16470 class SpeechInputResult native "*SpeechInputResult" { 18574 class SpeechInputResult native "*SpeechInputResult" {
16471 18575
16472 /** @domName SpeechInputResult.confidence */ 18576 /** @domName SpeechInputResult.confidence */
18577 /// @docsEditable
16473 final num confidence; 18578 final num confidence;
16474 18579
16475 /** @domName SpeechInputResult.utterance */ 18580 /** @domName SpeechInputResult.utterance */
18581 /// @docsEditable
16476 final String utterance; 18582 final String utterance;
16477 } 18583 }
16478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16479 // for details. All rights reserved. Use of this source code is governed by a 18585 // for details. All rights reserved. Use of this source code is governed by a
16480 // BSD-style license that can be found in the LICENSE file. 18586 // BSD-style license that can be found in the LICENSE file.
16481 18587
16482 18588
16483 /// @domName SpeechRecognition 18589 /// @domName SpeechRecognition
18590 /// @docsEditable
16484 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { 18591 class SpeechRecognition extends EventTarget native "*SpeechRecognition" {
16485 18592
16486 factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechR ecognition(); 18593 factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechR ecognition();
16487 18594
16488 /** 18595 /**
16489 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 18596 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
16490 */ 18597 */
18598 /// @docsEditable
16491 SpeechRecognitionEvents get on => 18599 SpeechRecognitionEvents get on =>
16492 new SpeechRecognitionEvents(this); 18600 new SpeechRecognitionEvents(this);
16493 18601
16494 /** @domName SpeechRecognition.continuous */ 18602 /** @domName SpeechRecognition.continuous */
18603 /// @docsEditable
16495 bool continuous; 18604 bool continuous;
16496 18605
16497 /** @domName SpeechRecognition.grammars */ 18606 /** @domName SpeechRecognition.grammars */
18607 /// @docsEditable
16498 SpeechGrammarList grammars; 18608 SpeechGrammarList grammars;
16499 18609
16500 /** @domName SpeechRecognition.interimResults */ 18610 /** @domName SpeechRecognition.interimResults */
18611 /// @docsEditable
16501 bool interimResults; 18612 bool interimResults;
16502 18613
16503 /** @domName SpeechRecognition.lang */ 18614 /** @domName SpeechRecognition.lang */
18615 /// @docsEditable
16504 String lang; 18616 String lang;
16505 18617
16506 /** @domName SpeechRecognition.maxAlternatives */ 18618 /** @domName SpeechRecognition.maxAlternatives */
18619 /// @docsEditable
16507 int maxAlternatives; 18620 int maxAlternatives;
16508 18621
16509 /** @domName SpeechRecognition.abort */ 18622 /** @domName SpeechRecognition.abort */
18623 /// @docsEditable
16510 void abort() native; 18624 void abort() native;
16511 18625
16512 /** @domName SpeechRecognition.addEventListener */ 18626 /** @domName SpeechRecognition.addEventListener */
18627 /// @docsEditable
16513 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 18628 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
16514 18629
16515 /** @domName SpeechRecognition.dispatchEvent */ 18630 /** @domName SpeechRecognition.dispatchEvent */
18631 /// @docsEditable
16516 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 18632 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
16517 18633
16518 /** @domName SpeechRecognition.removeEventListener */ 18634 /** @domName SpeechRecognition.removeEventListener */
18635 /// @docsEditable
16519 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 18636 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
16520 18637
16521 /** @domName SpeechRecognition.start */ 18638 /** @domName SpeechRecognition.start */
18639 /// @docsEditable
16522 void start() native; 18640 void start() native;
16523 18641
16524 /** @domName SpeechRecognition.stop */ 18642 /** @domName SpeechRecognition.stop */
18643 /// @docsEditable
16525 void stop() native; 18644 void stop() native;
16526 } 18645 }
16527 18646
16528 class SpeechRecognitionEvents extends Events { 18647 class SpeechRecognitionEvents extends Events {
16529 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr); 18648 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr);
16530 18649
16531 EventListenerList get audioEnd => this['audioend']; 18650 EventListenerList get audioEnd => this['audioend'];
16532 18651
16533 EventListenerList get audioStart => this['audiostart']; 18652 EventListenerList get audioStart => this['audiostart'];
16534 18653
(...skipping 14 matching lines...) Expand all
16549 EventListenerList get speechStart => this['speechstart']; 18668 EventListenerList get speechStart => this['speechstart'];
16550 18669
16551 EventListenerList get start => this['start']; 18670 EventListenerList get start => this['start'];
16552 } 18671 }
16553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16554 // for details. All rights reserved. Use of this source code is governed by a 18673 // for details. All rights reserved. Use of this source code is governed by a
16555 // BSD-style license that can be found in the LICENSE file. 18674 // BSD-style license that can be found in the LICENSE file.
16556 18675
16557 18676
16558 /// @domName SpeechRecognitionAlternative 18677 /// @domName SpeechRecognitionAlternative
18678 /// @docsEditable
16559 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { 18679 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" {
16560 18680
16561 /** @domName SpeechRecognitionAlternative.confidence */ 18681 /** @domName SpeechRecognitionAlternative.confidence */
18682 /// @docsEditable
16562 final num confidence; 18683 final num confidence;
16563 18684
16564 /** @domName SpeechRecognitionAlternative.transcript */ 18685 /** @domName SpeechRecognitionAlternative.transcript */
18686 /// @docsEditable
16565 final String transcript; 18687 final String transcript;
16566 } 18688 }
16567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16568 // for details. All rights reserved. Use of this source code is governed by a 18690 // for details. All rights reserved. Use of this source code is governed by a
16569 // BSD-style license that can be found in the LICENSE file. 18691 // BSD-style license that can be found in the LICENSE file.
16570 18692
16571 18693
16572 /// @domName SpeechRecognitionError 18694 /// @domName SpeechRecognitionError
18695 /// @docsEditable
16573 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { 18696 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" {
16574 18697
16575 static const int ABORTED = 2; 18698 static const int ABORTED = 2;
16576 18699
16577 static const int AUDIO_CAPTURE = 3; 18700 static const int AUDIO_CAPTURE = 3;
16578 18701
16579 static const int BAD_GRAMMAR = 7; 18702 static const int BAD_GRAMMAR = 7;
16580 18703
16581 static const int LANGUAGE_NOT_SUPPORTED = 8; 18704 static const int LANGUAGE_NOT_SUPPORTED = 8;
16582 18705
16583 static const int NETWORK = 4; 18706 static const int NETWORK = 4;
16584 18707
16585 static const int NOT_ALLOWED = 5; 18708 static const int NOT_ALLOWED = 5;
16586 18709
16587 static const int NO_SPEECH = 1; 18710 static const int NO_SPEECH = 1;
16588 18711
16589 static const int OTHER = 0; 18712 static const int OTHER = 0;
16590 18713
16591 static const int SERVICE_NOT_ALLOWED = 6; 18714 static const int SERVICE_NOT_ALLOWED = 6;
16592 18715
16593 /** @domName SpeechRecognitionError.code */ 18716 /** @domName SpeechRecognitionError.code */
18717 /// @docsEditable
16594 final int code; 18718 final int code;
16595 18719
16596 /** @domName SpeechRecognitionError.message */ 18720 /** @domName SpeechRecognitionError.message */
18721 /// @docsEditable
16597 final String message; 18722 final String message;
16598 } 18723 }
16599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16600 // for details. All rights reserved. Use of this source code is governed by a 18725 // for details. All rights reserved. Use of this source code is governed by a
16601 // BSD-style license that can be found in the LICENSE file. 18726 // BSD-style license that can be found in the LICENSE file.
16602 18727
16603 18728
16604 /// @domName SpeechRecognitionEvent 18729 /// @domName SpeechRecognitionEvent
18730 /// @docsEditable
16605 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { 18731 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" {
16606 18732
16607 /** @domName SpeechRecognitionEvent.result */ 18733 /** @domName SpeechRecognitionEvent.result */
18734 /// @docsEditable
16608 final SpeechRecognitionResult result; 18735 final SpeechRecognitionResult result;
16609 18736
16610 /** @domName SpeechRecognitionEvent.resultHistory */ 18737 /** @domName SpeechRecognitionEvent.resultHistory */
18738 /// @docsEditable
16611 final List<SpeechRecognitionResult> resultHistory; 18739 final List<SpeechRecognitionResult> resultHistory;
16612 18740
16613 /** @domName SpeechRecognitionEvent.resultIndex */ 18741 /** @domName SpeechRecognitionEvent.resultIndex */
18742 /// @docsEditable
16614 final int resultIndex; 18743 final int resultIndex;
16615 } 18744 }
16616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16617 // for details. All rights reserved. Use of this source code is governed by a 18746 // for details. All rights reserved. Use of this source code is governed by a
16618 // BSD-style license that can be found in the LICENSE file. 18747 // BSD-style license that can be found in the LICENSE file.
16619 18748
16620 18749
16621 /// @domName SpeechRecognitionResult 18750 /// @domName SpeechRecognitionResult
18751 /// @docsEditable
16622 class SpeechRecognitionResult native "*SpeechRecognitionResult" { 18752 class SpeechRecognitionResult native "*SpeechRecognitionResult" {
16623 18753
16624 /** @domName SpeechRecognitionResult.emma */ 18754 /** @domName SpeechRecognitionResult.emma */
18755 /// @docsEditable
16625 final Document emma; 18756 final Document emma;
16626 18757
16627 /** @domName SpeechRecognitionResult.finalValue */ 18758 /** @domName SpeechRecognitionResult.finalValue */
18759 /// @docsEditable
16628 bool get finalValue => JS("bool", "#.final", this); 18760 bool get finalValue => JS("bool", "#.final", this);
16629 18761
16630 /** @domName SpeechRecognitionResult.length */ 18762 /** @domName SpeechRecognitionResult.length */
18763 /// @docsEditable
16631 final int length; 18764 final int length;
16632 18765
16633 /** @domName SpeechRecognitionResult.item */ 18766 /** @domName SpeechRecognitionResult.item */
18767 /// @docsEditable
16634 SpeechRecognitionAlternative item(int index) native; 18768 SpeechRecognitionAlternative item(int index) native;
16635 } 18769 }
16636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16637 // for details. All rights reserved. Use of this source code is governed by a 18771 // for details. All rights reserved. Use of this source code is governed by a
16638 // BSD-style license that can be found in the LICENSE file. 18772 // BSD-style license that can be found in the LICENSE file.
16639 18773
16640 18774
16641 class Storage implements Map<String, String> native "*Storage" { 18775 class Storage implements Map<String, String> native "*Storage" {
16642 18776
16643 // TODO(nweiz): update this when maps support lazy iteration 18777 // TODO(nweiz): update this when maps support lazy iteration
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
16681 final values = []; 18815 final values = [];
16682 forEach((k, v) => values.add(v)); 18816 forEach((k, v) => values.add(v));
16683 return values; 18817 return values;
16684 } 18818 }
16685 18819
16686 int get length => $dom_length; 18820 int get length => $dom_length;
16687 18821
16688 bool get isEmpty => $dom_key(0) == null; 18822 bool get isEmpty => $dom_key(0) == null;
16689 18823
16690 /** @domName Storage.length */ 18824 /** @domName Storage.length */
18825 /// @docsEditable
16691 int get $dom_length => JS("int", "#.length", this); 18826 int get $dom_length => JS("int", "#.length", this);
16692 18827
16693 /** @domName Storage.clear */ 18828 /** @domName Storage.clear */
18829 /// @docsEditable
16694 void $dom_clear() native "clear"; 18830 void $dom_clear() native "clear";
16695 18831
16696 /** @domName Storage.getItem */ 18832 /** @domName Storage.getItem */
18833 /// @docsEditable
16697 String $dom_getItem(String key) native "getItem"; 18834 String $dom_getItem(String key) native "getItem";
16698 18835
16699 /** @domName Storage.key */ 18836 /** @domName Storage.key */
18837 /// @docsEditable
16700 String $dom_key(int index) native "key"; 18838 String $dom_key(int index) native "key";
16701 18839
16702 /** @domName Storage.removeItem */ 18840 /** @domName Storage.removeItem */
18841 /// @docsEditable
16703 void $dom_removeItem(String key) native "removeItem"; 18842 void $dom_removeItem(String key) native "removeItem";
16704 18843
16705 /** @domName Storage.setItem */ 18844 /** @domName Storage.setItem */
18845 /// @docsEditable
16706 void $dom_setItem(String key, String data) native "setItem"; 18846 void $dom_setItem(String key, String data) native "setItem";
16707 18847
16708 } 18848 }
16709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16710 // for details. All rights reserved. Use of this source code is governed by a 18850 // for details. All rights reserved. Use of this source code is governed by a
16711 // BSD-style license that can be found in the LICENSE file. 18851 // BSD-style license that can be found in the LICENSE file.
16712 18852
16713 18853
16714 /// @domName StorageEvent 18854 /// @domName StorageEvent
18855 /// @docsEditable
16715 class StorageEvent extends Event native "*StorageEvent" { 18856 class StorageEvent extends Event native "*StorageEvent" {
16716 18857
16717 /** @domName StorageEvent.key */ 18858 /** @domName StorageEvent.key */
18859 /// @docsEditable
16718 final String key; 18860 final String key;
16719 18861
16720 /** @domName StorageEvent.newValue */ 18862 /** @domName StorageEvent.newValue */
18863 /// @docsEditable
16721 final String newValue; 18864 final String newValue;
16722 18865
16723 /** @domName StorageEvent.oldValue */ 18866 /** @domName StorageEvent.oldValue */
18867 /// @docsEditable
16724 final String oldValue; 18868 final String oldValue;
16725 18869
16726 /** @domName StorageEvent.storageArea */ 18870 /** @domName StorageEvent.storageArea */
18871 /// @docsEditable
16727 final Storage storageArea; 18872 final Storage storageArea;
16728 18873
16729 /** @domName StorageEvent.url */ 18874 /** @domName StorageEvent.url */
18875 /// @docsEditable
16730 final String url; 18876 final String url;
16731 18877
16732 /** @domName StorageEvent.initStorageEvent */ 18878 /** @domName StorageEvent.initStorageEvent */
18879 /// @docsEditable
16733 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg) native; 18880 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg) native;
16734 } 18881 }
16735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16736 // for details. All rights reserved. Use of this source code is governed by a 18883 // for details. All rights reserved. Use of this source code is governed by a
16737 // BSD-style license that can be found in the LICENSE file. 18884 // BSD-style license that can be found in the LICENSE file.
16738 18885
16739 18886
16740 /// @domName StorageInfo 18887 /// @domName StorageInfo
18888 /// @docsEditable
16741 class StorageInfo native "*StorageInfo" { 18889 class StorageInfo native "*StorageInfo" {
16742 18890
16743 static const int PERSISTENT = 1; 18891 static const int PERSISTENT = 1;
16744 18892
16745 static const int TEMPORARY = 0; 18893 static const int TEMPORARY = 0;
16746 18894
16747 /** @domName StorageInfo.queryUsageAndQuota */ 18895 /** @domName StorageInfo.queryUsageAndQuota */
18896 /// @docsEditable
16748 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) native; 18897 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) native;
16749 18898
16750 /** @domName StorageInfo.requestQuota */ 18899 /** @domName StorageInfo.requestQuota */
18900 /// @docsEditable
16751 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; 18901 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) native;
16752 } 18902 }
16753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16754 // for details. All rights reserved. Use of this source code is governed by a 18904 // for details. All rights reserved. Use of this source code is governed by a
16755 // BSD-style license that can be found in the LICENSE file. 18905 // BSD-style license that can be found in the LICENSE file.
16756 18906
16757 // WARNING: Do not edit - generated code. 18907 // WARNING: Do not edit - generated code.
16758 18908
16759 18909
16760 typedef void StorageInfoErrorCallback(DOMException error); 18910 typedef void StorageInfoErrorCallback(DOMException error);
(...skipping 20 matching lines...) Expand all
16781 // WARNING: Do not edit - generated code. 18931 // WARNING: Do not edit - generated code.
16782 18932
16783 18933
16784 typedef void StringCallback(String data); 18934 typedef void StringCallback(String data);
16785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16786 // for details. All rights reserved. Use of this source code is governed by a 18936 // for details. All rights reserved. Use of this source code is governed by a
16787 // BSD-style license that can be found in the LICENSE file. 18937 // BSD-style license that can be found in the LICENSE file.
16788 18938
16789 18939
16790 /// @domName HTMLStyleElement 18940 /// @domName HTMLStyleElement
18941 /// @docsEditable
16791 class StyleElement extends Element implements Element native "*HTMLStyleElement" { 18942 class StyleElement extends Element implements Element native "*HTMLStyleElement" {
16792 18943
16793 factory StyleElement() => document.$dom_createElement("style"); 18944 factory StyleElement() => document.$dom_createElement("style");
16794 18945
16795 /** @domName HTMLStyleElement.disabled */ 18946 /** @domName HTMLStyleElement.disabled */
18947 /// @docsEditable
16796 bool disabled; 18948 bool disabled;
16797 18949
16798 /** @domName HTMLStyleElement.media */ 18950 /** @domName HTMLStyleElement.media */
18951 /// @docsEditable
16799 String media; 18952 String media;
16800 18953
16801 /** @domName HTMLStyleElement.scoped */ 18954 /** @domName HTMLStyleElement.scoped */
18955 /// @docsEditable
16802 bool scoped; 18956 bool scoped;
16803 18957
16804 /** @domName HTMLStyleElement.sheet */ 18958 /** @domName HTMLStyleElement.sheet */
18959 /// @docsEditable
16805 final StyleSheet sheet; 18960 final StyleSheet sheet;
16806 18961
16807 /** @domName HTMLStyleElement.type */ 18962 /** @domName HTMLStyleElement.type */
18963 /// @docsEditable
16808 String type; 18964 String type;
16809 } 18965 }
16810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16811 // for details. All rights reserved. Use of this source code is governed by a 18967 // for details. All rights reserved. Use of this source code is governed by a
16812 // BSD-style license that can be found in the LICENSE file. 18968 // BSD-style license that can be found in the LICENSE file.
16813 18969
16814 18970
16815 /// @domName StyleMedia 18971 /// @domName StyleMedia
18972 /// @docsEditable
16816 class StyleMedia native "*StyleMedia" { 18973 class StyleMedia native "*StyleMedia" {
16817 18974
16818 /** @domName StyleMedia.type */ 18975 /** @domName StyleMedia.type */
18976 /// @docsEditable
16819 final String type; 18977 final String type;
16820 18978
16821 /** @domName StyleMedia.matchMedium */ 18979 /** @domName StyleMedia.matchMedium */
18980 /// @docsEditable
16822 bool matchMedium(String mediaquery) native; 18981 bool matchMedium(String mediaquery) native;
16823 } 18982 }
16824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16825 // for details. All rights reserved. Use of this source code is governed by a 18984 // for details. All rights reserved. Use of this source code is governed by a
16826 // BSD-style license that can be found in the LICENSE file. 18985 // BSD-style license that can be found in the LICENSE file.
16827 18986
16828 18987
16829 /// @domName StyleSheet 18988 /// @domName StyleSheet
18989 /// @docsEditable
16830 class StyleSheet native "*StyleSheet" { 18990 class StyleSheet native "*StyleSheet" {
16831 18991
16832 /** @domName StyleSheet.disabled */ 18992 /** @domName StyleSheet.disabled */
18993 /// @docsEditable
16833 bool disabled; 18994 bool disabled;
16834 18995
16835 /** @domName StyleSheet.href */ 18996 /** @domName StyleSheet.href */
18997 /// @docsEditable
16836 final String href; 18998 final String href;
16837 18999
16838 /** @domName StyleSheet.media */ 19000 /** @domName StyleSheet.media */
19001 /// @docsEditable
16839 final MediaList media; 19002 final MediaList media;
16840 19003
16841 /** @domName StyleSheet.ownerNode */ 19004 /** @domName StyleSheet.ownerNode */
19005 /// @docsEditable
16842 final Node ownerNode; 19006 final Node ownerNode;
16843 19007
16844 /** @domName StyleSheet.parentStyleSheet */ 19008 /** @domName StyleSheet.parentStyleSheet */
19009 /// @docsEditable
16845 final StyleSheet parentStyleSheet; 19010 final StyleSheet parentStyleSheet;
16846 19011
16847 /** @domName StyleSheet.title */ 19012 /** @domName StyleSheet.title */
19013 /// @docsEditable
16848 final String title; 19014 final String title;
16849 19015
16850 /** @domName StyleSheet.type */ 19016 /** @domName StyleSheet.type */
19017 /// @docsEditable
16851 final String type; 19018 final String type;
16852 } 19019 }
16853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16854 // for details. All rights reserved. Use of this source code is governed by a 19021 // for details. All rights reserved. Use of this source code is governed by a
16855 // BSD-style license that can be found in the LICENSE file. 19022 // BSD-style license that can be found in the LICENSE file.
16856 19023
16857 19024
16858 /// @domName HTMLTableCaptionElement 19025 /// @domName HTMLTableCaptionElement
19026 /// @docsEditable
16859 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" { 19027 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" {
16860 19028
16861 factory TableCaptionElement() => document.$dom_createElement("caption"); 19029 factory TableCaptionElement() => document.$dom_createElement("caption");
16862 19030
16863 /** @domName HTMLTableCaptionElement.align */ 19031 /** @domName HTMLTableCaptionElement.align */
19032 /// @docsEditable
16864 String align; 19033 String align;
16865 } 19034 }
16866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16867 // for details. All rights reserved. Use of this source code is governed by a 19036 // for details. All rights reserved. Use of this source code is governed by a
16868 // BSD-style license that can be found in the LICENSE file. 19037 // BSD-style license that can be found in the LICENSE file.
16869 19038
16870 19039
16871 /// @domName HTMLTableCellElement 19040 /// @domName HTMLTableCellElement
19041 /// @docsEditable
16872 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" { 19042 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" {
16873 19043
16874 factory TableCellElement() => document.$dom_createElement("td"); 19044 factory TableCellElement() => document.$dom_createElement("td");
16875 19045
16876 /** @domName HTMLTableCellElement.abbr */ 19046 /** @domName HTMLTableCellElement.abbr */
19047 /// @docsEditable
16877 String abbr; 19048 String abbr;
16878 19049
16879 /** @domName HTMLTableCellElement.align */ 19050 /** @domName HTMLTableCellElement.align */
19051 /// @docsEditable
16880 String align; 19052 String align;
16881 19053
16882 /** @domName HTMLTableCellElement.axis */ 19054 /** @domName HTMLTableCellElement.axis */
19055 /// @docsEditable
16883 String axis; 19056 String axis;
16884 19057
16885 /** @domName HTMLTableCellElement.bgColor */ 19058 /** @domName HTMLTableCellElement.bgColor */
19059 /// @docsEditable
16886 String bgColor; 19060 String bgColor;
16887 19061
16888 /** @domName HTMLTableCellElement.cellIndex */ 19062 /** @domName HTMLTableCellElement.cellIndex */
19063 /// @docsEditable
16889 final int cellIndex; 19064 final int cellIndex;
16890 19065
16891 /** @domName HTMLTableCellElement.ch */ 19066 /** @domName HTMLTableCellElement.ch */
19067 /// @docsEditable
16892 String ch; 19068 String ch;
16893 19069
16894 /** @domName HTMLTableCellElement.chOff */ 19070 /** @domName HTMLTableCellElement.chOff */
19071 /// @docsEditable
16895 String chOff; 19072 String chOff;
16896 19073
16897 /** @domName HTMLTableCellElement.colSpan */ 19074 /** @domName HTMLTableCellElement.colSpan */
19075 /// @docsEditable
16898 int colSpan; 19076 int colSpan;
16899 19077
16900 /** @domName HTMLTableCellElement.headers */ 19078 /** @domName HTMLTableCellElement.headers */
19079 /// @docsEditable
16901 String headers; 19080 String headers;
16902 19081
16903 /** @domName HTMLTableCellElement.height */ 19082 /** @domName HTMLTableCellElement.height */
19083 /// @docsEditable
16904 String height; 19084 String height;
16905 19085
16906 /** @domName HTMLTableCellElement.noWrap */ 19086 /** @domName HTMLTableCellElement.noWrap */
19087 /// @docsEditable
16907 bool noWrap; 19088 bool noWrap;
16908 19089
16909 /** @domName HTMLTableCellElement.rowSpan */ 19090 /** @domName HTMLTableCellElement.rowSpan */
19091 /// @docsEditable
16910 int rowSpan; 19092 int rowSpan;
16911 19093
16912 /** @domName HTMLTableCellElement.scope */ 19094 /** @domName HTMLTableCellElement.scope */
19095 /// @docsEditable
16913 String scope; 19096 String scope;
16914 19097
16915 /** @domName HTMLTableCellElement.vAlign */ 19098 /** @domName HTMLTableCellElement.vAlign */
19099 /// @docsEditable
16916 String vAlign; 19100 String vAlign;
16917 19101
16918 /** @domName HTMLTableCellElement.width */ 19102 /** @domName HTMLTableCellElement.width */
19103 /// @docsEditable
16919 String width; 19104 String width;
16920 } 19105 }
16921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19106 // 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 19107 // 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. 19108 // BSD-style license that can be found in the LICENSE file.
16924 19109
16925 19110
16926 /// @domName HTMLTableColElement 19111 /// @domName HTMLTableColElement
19112 /// @docsEditable
16927 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" { 19113 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" {
16928 19114
16929 factory TableColElement() => document.$dom_createElement("col"); 19115 factory TableColElement() => document.$dom_createElement("col");
16930 19116
16931 /** @domName HTMLTableColElement.align */ 19117 /** @domName HTMLTableColElement.align */
19118 /// @docsEditable
16932 String align; 19119 String align;
16933 19120
16934 /** @domName HTMLTableColElement.ch */ 19121 /** @domName HTMLTableColElement.ch */
19122 /// @docsEditable
16935 String ch; 19123 String ch;
16936 19124
16937 /** @domName HTMLTableColElement.chOff */ 19125 /** @domName HTMLTableColElement.chOff */
19126 /// @docsEditable
16938 String chOff; 19127 String chOff;
16939 19128
16940 /** @domName HTMLTableColElement.span */ 19129 /** @domName HTMLTableColElement.span */
19130 /// @docsEditable
16941 int span; 19131 int span;
16942 19132
16943 /** @domName HTMLTableColElement.vAlign */ 19133 /** @domName HTMLTableColElement.vAlign */
19134 /// @docsEditable
16944 String vAlign; 19135 String vAlign;
16945 19136
16946 /** @domName HTMLTableColElement.width */ 19137 /** @domName HTMLTableColElement.width */
19138 /// @docsEditable
16947 String width; 19139 String width;
16948 } 19140 }
16949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16950 // for details. All rights reserved. Use of this source code is governed by a 19142 // for details. All rights reserved. Use of this source code is governed by a
16951 // BSD-style license that can be found in the LICENSE file. 19143 // BSD-style license that can be found in the LICENSE file.
16952 19144
16953 19145
16954 class TableElement extends Element implements Element native "*HTMLTableElement" { 19146 class TableElement extends Element implements Element native "*HTMLTableElement" {
16955 19147
16956 factory TableElement() => document.$dom_createElement("table"); 19148 factory TableElement() => document.$dom_createElement("table");
16957 19149
16958 /** @domName HTMLTableElement.align */ 19150 /** @domName HTMLTableElement.align */
19151 /// @docsEditable
16959 String align; 19152 String align;
16960 19153
16961 /** @domName HTMLTableElement.bgColor */ 19154 /** @domName HTMLTableElement.bgColor */
19155 /// @docsEditable
16962 String bgColor; 19156 String bgColor;
16963 19157
16964 /** @domName HTMLTableElement.border */ 19158 /** @domName HTMLTableElement.border */
19159 /// @docsEditable
16965 String border; 19160 String border;
16966 19161
16967 /** @domName HTMLTableElement.caption */ 19162 /** @domName HTMLTableElement.caption */
19163 /// @docsEditable
16968 TableCaptionElement caption; 19164 TableCaptionElement caption;
16969 19165
16970 /** @domName HTMLTableElement.cellPadding */ 19166 /** @domName HTMLTableElement.cellPadding */
19167 /// @docsEditable
16971 String cellPadding; 19168 String cellPadding;
16972 19169
16973 /** @domName HTMLTableElement.cellSpacing */ 19170 /** @domName HTMLTableElement.cellSpacing */
19171 /// @docsEditable
16974 String cellSpacing; 19172 String cellSpacing;
16975 19173
16976 /** @domName HTMLTableElement.frame */ 19174 /** @domName HTMLTableElement.frame */
19175 /// @docsEditable
16977 String frame; 19176 String frame;
16978 19177
16979 /** @domName HTMLTableElement.rows */ 19178 /** @domName HTMLTableElement.rows */
19179 /// @docsEditable
16980 final HTMLCollection rows; 19180 final HTMLCollection rows;
16981 19181
16982 /** @domName HTMLTableElement.rules */ 19182 /** @domName HTMLTableElement.rules */
19183 /// @docsEditable
16983 String rules; 19184 String rules;
16984 19185
16985 /** @domName HTMLTableElement.summary */ 19186 /** @domName HTMLTableElement.summary */
19187 /// @docsEditable
16986 String summary; 19188 String summary;
16987 19189
16988 /** @domName HTMLTableElement.tBodies */ 19190 /** @domName HTMLTableElement.tBodies */
19191 /// @docsEditable
16989 final HTMLCollection tBodies; 19192 final HTMLCollection tBodies;
16990 19193
16991 /** @domName HTMLTableElement.tFoot */ 19194 /** @domName HTMLTableElement.tFoot */
19195 /// @docsEditable
16992 TableSectionElement tFoot; 19196 TableSectionElement tFoot;
16993 19197
16994 /** @domName HTMLTableElement.tHead */ 19198 /** @domName HTMLTableElement.tHead */
19199 /// @docsEditable
16995 TableSectionElement tHead; 19200 TableSectionElement tHead;
16996 19201
16997 /** @domName HTMLTableElement.width */ 19202 /** @domName HTMLTableElement.width */
19203 /// @docsEditable
16998 String width; 19204 String width;
16999 19205
17000 /** @domName HTMLTableElement.createCaption */ 19206 /** @domName HTMLTableElement.createCaption */
19207 /// @docsEditable
17001 Element createCaption() native; 19208 Element createCaption() native;
17002 19209
17003 /** @domName HTMLTableElement.createTFoot */ 19210 /** @domName HTMLTableElement.createTFoot */
19211 /// @docsEditable
17004 Element createTFoot() native; 19212 Element createTFoot() native;
17005 19213
17006 /** @domName HTMLTableElement.createTHead */ 19214 /** @domName HTMLTableElement.createTHead */
19215 /// @docsEditable
17007 Element createTHead() native; 19216 Element createTHead() native;
17008 19217
17009 /** @domName HTMLTableElement.deleteCaption */ 19218 /** @domName HTMLTableElement.deleteCaption */
19219 /// @docsEditable
17010 void deleteCaption() native; 19220 void deleteCaption() native;
17011 19221
17012 /** @domName HTMLTableElement.deleteRow */ 19222 /** @domName HTMLTableElement.deleteRow */
19223 /// @docsEditable
17013 void deleteRow(int index) native; 19224 void deleteRow(int index) native;
17014 19225
17015 /** @domName HTMLTableElement.deleteTFoot */ 19226 /** @domName HTMLTableElement.deleteTFoot */
19227 /// @docsEditable
17016 void deleteTFoot() native; 19228 void deleteTFoot() native;
17017 19229
17018 /** @domName HTMLTableElement.deleteTHead */ 19230 /** @domName HTMLTableElement.deleteTHead */
19231 /// @docsEditable
17019 void deleteTHead() native; 19232 void deleteTHead() native;
17020 19233
17021 /** @domName HTMLTableElement.insertRow */ 19234 /** @domName HTMLTableElement.insertRow */
19235 /// @docsEditable
17022 Element insertRow(int index) native; 19236 Element insertRow(int index) native;
17023 19237
17024 19238
17025 Element createTBody() { 19239 Element createTBody() {
17026 if (JS('bool', '!!#.createTBody', this)) { 19240 if (JS('bool', '!!#.createTBody', this)) {
17027 return this._createTBody(); 19241 return this._createTBody();
17028 } 19242 }
17029 var tbody = new Element.tag('tbody'); 19243 var tbody = new Element.tag('tbody');
17030 this.elements.add(tbody); 19244 this.elements.add(tbody);
17031 return tbody; 19245 return tbody;
17032 } 19246 }
17033 19247
17034 Element _createTBody() native 'createTBody'; 19248 Element _createTBody() native 'createTBody';
17035 } 19249 }
17036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17037 // for details. All rights reserved. Use of this source code is governed by a 19251 // for details. All rights reserved. Use of this source code is governed by a
17038 // BSD-style license that can be found in the LICENSE file. 19252 // BSD-style license that can be found in the LICENSE file.
17039 19253
17040 19254
17041 /// @domName HTMLTableRowElement 19255 /// @domName HTMLTableRowElement
19256 /// @docsEditable
17042 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" { 19257 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" {
17043 19258
17044 factory TableRowElement() => document.$dom_createElement("tr"); 19259 factory TableRowElement() => document.$dom_createElement("tr");
17045 19260
17046 /** @domName HTMLTableRowElement.align */ 19261 /** @domName HTMLTableRowElement.align */
19262 /// @docsEditable
17047 String align; 19263 String align;
17048 19264
17049 /** @domName HTMLTableRowElement.bgColor */ 19265 /** @domName HTMLTableRowElement.bgColor */
19266 /// @docsEditable
17050 String bgColor; 19267 String bgColor;
17051 19268
17052 /** @domName HTMLTableRowElement.cells */ 19269 /** @domName HTMLTableRowElement.cells */
19270 /// @docsEditable
17053 final HTMLCollection cells; 19271 final HTMLCollection cells;
17054 19272
17055 /** @domName HTMLTableRowElement.ch */ 19273 /** @domName HTMLTableRowElement.ch */
19274 /// @docsEditable
17056 String ch; 19275 String ch;
17057 19276
17058 /** @domName HTMLTableRowElement.chOff */ 19277 /** @domName HTMLTableRowElement.chOff */
19278 /// @docsEditable
17059 String chOff; 19279 String chOff;
17060 19280
17061 /** @domName HTMLTableRowElement.rowIndex */ 19281 /** @domName HTMLTableRowElement.rowIndex */
19282 /// @docsEditable
17062 final int rowIndex; 19283 final int rowIndex;
17063 19284
17064 /** @domName HTMLTableRowElement.sectionRowIndex */ 19285 /** @domName HTMLTableRowElement.sectionRowIndex */
19286 /// @docsEditable
17065 final int sectionRowIndex; 19287 final int sectionRowIndex;
17066 19288
17067 /** @domName HTMLTableRowElement.vAlign */ 19289 /** @domName HTMLTableRowElement.vAlign */
19290 /// @docsEditable
17068 String vAlign; 19291 String vAlign;
17069 19292
17070 /** @domName HTMLTableRowElement.deleteCell */ 19293 /** @domName HTMLTableRowElement.deleteCell */
19294 /// @docsEditable
17071 void deleteCell(int index) native; 19295 void deleteCell(int index) native;
17072 19296
17073 /** @domName HTMLTableRowElement.insertCell */ 19297 /** @domName HTMLTableRowElement.insertCell */
19298 /// @docsEditable
17074 Element insertCell(int index) native; 19299 Element insertCell(int index) native;
17075 } 19300 }
17076 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17077 // for details. All rights reserved. Use of this source code is governed by a 19302 // for details. All rights reserved. Use of this source code is governed by a
17078 // BSD-style license that can be found in the LICENSE file. 19303 // BSD-style license that can be found in the LICENSE file.
17079 19304
17080 19305
17081 /// @domName HTMLTableSectionElement 19306 /// @domName HTMLTableSectionElement
19307 /// @docsEditable
17082 class TableSectionElement extends Element implements Element native "*HTMLTableS ectionElement" { 19308 class TableSectionElement extends Element implements Element native "*HTMLTableS ectionElement" {
17083 19309
17084 /** @domName HTMLTableSectionElement.align */ 19310 /** @domName HTMLTableSectionElement.align */
19311 /// @docsEditable
17085 String align; 19312 String align;
17086 19313
17087 /** @domName HTMLTableSectionElement.ch */ 19314 /** @domName HTMLTableSectionElement.ch */
19315 /// @docsEditable
17088 String ch; 19316 String ch;
17089 19317
17090 /** @domName HTMLTableSectionElement.chOff */ 19318 /** @domName HTMLTableSectionElement.chOff */
19319 /// @docsEditable
17091 String chOff; 19320 String chOff;
17092 19321
17093 /** @domName HTMLTableSectionElement.rows */ 19322 /** @domName HTMLTableSectionElement.rows */
19323 /// @docsEditable
17094 final HTMLCollection rows; 19324 final HTMLCollection rows;
17095 19325
17096 /** @domName HTMLTableSectionElement.vAlign */ 19326 /** @domName HTMLTableSectionElement.vAlign */
19327 /// @docsEditable
17097 String vAlign; 19328 String vAlign;
17098 19329
17099 /** @domName HTMLTableSectionElement.deleteRow */ 19330 /** @domName HTMLTableSectionElement.deleteRow */
19331 /// @docsEditable
17100 void deleteRow(int index) native; 19332 void deleteRow(int index) native;
17101 19333
17102 /** @domName HTMLTableSectionElement.insertRow */ 19334 /** @domName HTMLTableSectionElement.insertRow */
19335 /// @docsEditable
17103 Element insertRow(int index) native; 19336 Element insertRow(int index) native;
17104 } 19337 }
17105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17106 // for details. All rights reserved. Use of this source code is governed by a 19339 // for details. All rights reserved. Use of this source code is governed by a
17107 // BSD-style license that can be found in the LICENSE file. 19340 // BSD-style license that can be found in the LICENSE file.
17108 19341
17109 // WARNING: Do not edit - generated code. 19342 // WARNING: Do not edit - generated code.
17110 19343
17111 19344
17112 class Text extends CharacterData native "*Text" { 19345 class Text extends CharacterData native "*Text" {
17113 factory Text(String data) => _TextFactoryProvider.createText(data); 19346 factory Text(String data) => _TextFactoryProvider.createText(data);
17114 19347
17115 /** @domName Text.wholeText */ 19348 /** @domName Text.wholeText */
19349 /// @docsEditable
17116 final String wholeText; 19350 final String wholeText;
17117 19351
17118 /** @domName Text.replaceWholeText */ 19352 /** @domName Text.replaceWholeText */
19353 /// @docsEditable
17119 Text replaceWholeText(String content) native; 19354 Text replaceWholeText(String content) native;
17120 19355
17121 /** @domName Text.splitText */ 19356 /** @domName Text.splitText */
19357 /// @docsEditable
17122 Text splitText(int offset) native; 19358 Text splitText(int offset) native;
17123 19359
17124 } 19360 }
17125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19361 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17126 // for details. All rights reserved. Use of this source code is governed by a 19362 // for details. All rights reserved. Use of this source code is governed by a
17127 // BSD-style license that can be found in the LICENSE file. 19363 // BSD-style license that can be found in the LICENSE file.
17128 19364
17129 19365
17130 /// @domName HTMLTextAreaElement 19366 /// @domName HTMLTextAreaElement
19367 /// @docsEditable
17131 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" { 19368 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" {
17132 19369
17133 factory TextAreaElement() => document.$dom_createElement("textarea"); 19370 factory TextAreaElement() => document.$dom_createElement("textarea");
17134 19371
17135 /** @domName HTMLTextAreaElement.autofocus */ 19372 /** @domName HTMLTextAreaElement.autofocus */
19373 /// @docsEditable
17136 bool autofocus; 19374 bool autofocus;
17137 19375
17138 /** @domName HTMLTextAreaElement.cols */ 19376 /** @domName HTMLTextAreaElement.cols */
19377 /// @docsEditable
17139 int cols; 19378 int cols;
17140 19379
17141 /** @domName HTMLTextAreaElement.defaultValue */ 19380 /** @domName HTMLTextAreaElement.defaultValue */
19381 /// @docsEditable
17142 String defaultValue; 19382 String defaultValue;
17143 19383
17144 /** @domName HTMLTextAreaElement.dirName */ 19384 /** @domName HTMLTextAreaElement.dirName */
19385 /// @docsEditable
17145 String dirName; 19386 String dirName;
17146 19387
17147 /** @domName HTMLTextAreaElement.disabled */ 19388 /** @domName HTMLTextAreaElement.disabled */
19389 /// @docsEditable
17148 bool disabled; 19390 bool disabled;
17149 19391
17150 /** @domName HTMLTextAreaElement.form */ 19392 /** @domName HTMLTextAreaElement.form */
19393 /// @docsEditable
17151 final FormElement form; 19394 final FormElement form;
17152 19395
17153 /** @domName HTMLTextAreaElement.labels */ 19396 /** @domName HTMLTextAreaElement.labels */
19397 /// @docsEditable
17154 final List<Node> labels; 19398 final List<Node> labels;
17155 19399
17156 /** @domName HTMLTextAreaElement.maxLength */ 19400 /** @domName HTMLTextAreaElement.maxLength */
19401 /// @docsEditable
17157 int maxLength; 19402 int maxLength;
17158 19403
17159 /** @domName HTMLTextAreaElement.name */ 19404 /** @domName HTMLTextAreaElement.name */
19405 /// @docsEditable
17160 String name; 19406 String name;
17161 19407
17162 /** @domName HTMLTextAreaElement.placeholder */ 19408 /** @domName HTMLTextAreaElement.placeholder */
19409 /// @docsEditable
17163 String placeholder; 19410 String placeholder;
17164 19411
17165 /** @domName HTMLTextAreaElement.readOnly */ 19412 /** @domName HTMLTextAreaElement.readOnly */
19413 /// @docsEditable
17166 bool readOnly; 19414 bool readOnly;
17167 19415
17168 /** @domName HTMLTextAreaElement.required */ 19416 /** @domName HTMLTextAreaElement.required */
19417 /// @docsEditable
17169 bool required; 19418 bool required;
17170 19419
17171 /** @domName HTMLTextAreaElement.rows */ 19420 /** @domName HTMLTextAreaElement.rows */
19421 /// @docsEditable
17172 int rows; 19422 int rows;
17173 19423
17174 /** @domName HTMLTextAreaElement.selectionDirection */ 19424 /** @domName HTMLTextAreaElement.selectionDirection */
19425 /// @docsEditable
17175 String selectionDirection; 19426 String selectionDirection;
17176 19427
17177 /** @domName HTMLTextAreaElement.selectionEnd */ 19428 /** @domName HTMLTextAreaElement.selectionEnd */
19429 /// @docsEditable
17178 int selectionEnd; 19430 int selectionEnd;
17179 19431
17180 /** @domName HTMLTextAreaElement.selectionStart */ 19432 /** @domName HTMLTextAreaElement.selectionStart */
19433 /// @docsEditable
17181 int selectionStart; 19434 int selectionStart;
17182 19435
17183 /** @domName HTMLTextAreaElement.textLength */ 19436 /** @domName HTMLTextAreaElement.textLength */
19437 /// @docsEditable
17184 final int textLength; 19438 final int textLength;
17185 19439
17186 /** @domName HTMLTextAreaElement.type */ 19440 /** @domName HTMLTextAreaElement.type */
19441 /// @docsEditable
17187 final String type; 19442 final String type;
17188 19443
17189 /** @domName HTMLTextAreaElement.validationMessage */ 19444 /** @domName HTMLTextAreaElement.validationMessage */
19445 /// @docsEditable
17190 final String validationMessage; 19446 final String validationMessage;
17191 19447
17192 /** @domName HTMLTextAreaElement.validity */ 19448 /** @domName HTMLTextAreaElement.validity */
19449 /// @docsEditable
17193 final ValidityState validity; 19450 final ValidityState validity;
17194 19451
17195 /** @domName HTMLTextAreaElement.value */ 19452 /** @domName HTMLTextAreaElement.value */
19453 /// @docsEditable
17196 String value; 19454 String value;
17197 19455
17198 /** @domName HTMLTextAreaElement.willValidate */ 19456 /** @domName HTMLTextAreaElement.willValidate */
19457 /// @docsEditable
17199 final bool willValidate; 19458 final bool willValidate;
17200 19459
17201 /** @domName HTMLTextAreaElement.wrap */ 19460 /** @domName HTMLTextAreaElement.wrap */
19461 /// @docsEditable
17202 String wrap; 19462 String wrap;
17203 19463
17204 /** @domName HTMLTextAreaElement.checkValidity */ 19464 /** @domName HTMLTextAreaElement.checkValidity */
19465 /// @docsEditable
17205 bool checkValidity() native; 19466 bool checkValidity() native;
17206 19467
17207 /** @domName HTMLTextAreaElement.select */ 19468 /** @domName HTMLTextAreaElement.select */
19469 /// @docsEditable
17208 void select() native; 19470 void select() native;
17209 19471
17210 /** @domName HTMLTextAreaElement.setCustomValidity */ 19472 /** @domName HTMLTextAreaElement.setCustomValidity */
19473 /// @docsEditable
17211 void setCustomValidity(String error) native; 19474 void setCustomValidity(String error) native;
17212 19475
17213 /** @domName HTMLTextAreaElement.setRangeText */ 19476 /** @domName HTMLTextAreaElement.setRangeText */
19477 /// @docsEditable
17214 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 19478 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native;
17215 19479
17216 /** @domName HTMLTextAreaElement.setSelectionRange */ 19480 /** @domName HTMLTextAreaElement.setSelectionRange */
19481 /// @docsEditable
17217 void setSelectionRange(int start, int end, [String direction]) native; 19482 void setSelectionRange(int start, int end, [String direction]) native;
17218 } 19483 }
17219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17220 // for details. All rights reserved. Use of this source code is governed by a 19485 // for details. All rights reserved. Use of this source code is governed by a
17221 // BSD-style license that can be found in the LICENSE file. 19486 // BSD-style license that can be found in the LICENSE file.
17222 19487
17223 19488
17224 /// @domName TextEvent 19489 /// @domName TextEvent
19490 /// @docsEditable
17225 class TextEvent extends UIEvent native "*TextEvent" { 19491 class TextEvent extends UIEvent native "*TextEvent" {
17226 19492
17227 /** @domName TextEvent.data */ 19493 /** @domName TextEvent.data */
19494 /// @docsEditable
17228 final String data; 19495 final String data;
17229 19496
17230 /** @domName TextEvent.initTextEvent */ 19497 /** @domName TextEvent.initTextEvent */
19498 /// @docsEditable
17231 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Loca lWindow viewArg, String dataArg) native; 19499 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Loca lWindow viewArg, String dataArg) native;
17232 } 19500 }
17233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17234 // for details. All rights reserved. Use of this source code is governed by a 19502 // for details. All rights reserved. Use of this source code is governed by a
17235 // BSD-style license that can be found in the LICENSE file. 19503 // BSD-style license that can be found in the LICENSE file.
17236 19504
17237 19505
17238 /// @domName TextMetrics 19506 /// @domName TextMetrics
19507 /// @docsEditable
17239 class TextMetrics native "*TextMetrics" { 19508 class TextMetrics native "*TextMetrics" {
17240 19509
17241 /** @domName TextMetrics.width */ 19510 /** @domName TextMetrics.width */
19511 /// @docsEditable
17242 final num width; 19512 final num width;
17243 } 19513 }
17244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17245 // for details. All rights reserved. Use of this source code is governed by a 19515 // for details. All rights reserved. Use of this source code is governed by a
17246 // BSD-style license that can be found in the LICENSE file. 19516 // BSD-style license that can be found in the LICENSE file.
17247 19517
17248 19518
17249 /// @domName TextTrack 19519 /// @domName TextTrack
19520 /// @docsEditable
17250 class TextTrack extends EventTarget native "*TextTrack" { 19521 class TextTrack extends EventTarget native "*TextTrack" {
17251 19522
17252 /** 19523 /**
17253 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 19524 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
17254 */ 19525 */
19526 /// @docsEditable
17255 TextTrackEvents get on => 19527 TextTrackEvents get on =>
17256 new TextTrackEvents(this); 19528 new TextTrackEvents(this);
17257 19529
17258 /** @domName TextTrack.activeCues */ 19530 /** @domName TextTrack.activeCues */
19531 /// @docsEditable
17259 final TextTrackCueList activeCues; 19532 final TextTrackCueList activeCues;
17260 19533
17261 /** @domName TextTrack.cues */ 19534 /** @domName TextTrack.cues */
19535 /// @docsEditable
17262 final TextTrackCueList cues; 19536 final TextTrackCueList cues;
17263 19537
17264 /** @domName TextTrack.kind */ 19538 /** @domName TextTrack.kind */
19539 /// @docsEditable
17265 final String kind; 19540 final String kind;
17266 19541
17267 /** @domName TextTrack.label */ 19542 /** @domName TextTrack.label */
19543 /// @docsEditable
17268 final String label; 19544 final String label;
17269 19545
17270 /** @domName TextTrack.language */ 19546 /** @domName TextTrack.language */
19547 /// @docsEditable
17271 final String language; 19548 final String language;
17272 19549
17273 /** @domName TextTrack.mode */ 19550 /** @domName TextTrack.mode */
19551 /// @docsEditable
17274 String mode; 19552 String mode;
17275 19553
17276 /** @domName TextTrack.addCue */ 19554 /** @domName TextTrack.addCue */
19555 /// @docsEditable
17277 void addCue(TextTrackCue cue) native; 19556 void addCue(TextTrackCue cue) native;
17278 19557
17279 /** @domName TextTrack.addEventListener */ 19558 /** @domName TextTrack.addEventListener */
19559 /// @docsEditable
17280 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 19560 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
17281 19561
17282 /** @domName TextTrack.dispatchEvent */ 19562 /** @domName TextTrack.dispatchEvent */
19563 /// @docsEditable
17283 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 19564 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
17284 19565
17285 /** @domName TextTrack.removeCue */ 19566 /** @domName TextTrack.removeCue */
19567 /// @docsEditable
17286 void removeCue(TextTrackCue cue) native; 19568 void removeCue(TextTrackCue cue) native;
17287 19569
17288 /** @domName TextTrack.removeEventListener */ 19570 /** @domName TextTrack.removeEventListener */
19571 /// @docsEditable
17289 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19572 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
17290 } 19573 }
17291 19574
17292 class TextTrackEvents extends Events { 19575 class TextTrackEvents extends Events {
17293 TextTrackEvents(EventTarget _ptr) : super(_ptr); 19576 TextTrackEvents(EventTarget _ptr) : super(_ptr);
17294 19577
17295 EventListenerList get cueChange => this['cuechange']; 19578 EventListenerList get cueChange => this['cuechange'];
17296 } 19579 }
17297 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17298 // for details. All rights reserved. Use of this source code is governed by a 19581 // for details. All rights reserved. Use of this source code is governed by a
17299 // BSD-style license that can be found in the LICENSE file. 19582 // BSD-style license that can be found in the LICENSE file.
17300 19583
17301 19584
17302 /// @domName TextTrackCue 19585 /// @domName TextTrackCue
19586 /// @docsEditable
17303 class TextTrackCue extends EventTarget native "*TextTrackCue" { 19587 class TextTrackCue extends EventTarget native "*TextTrackCue" {
17304 19588
17305 factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCue FactoryProvider.createTextTrackCue(startTime, endTime, text); 19589 factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCue FactoryProvider.createTextTrackCue(startTime, endTime, text);
17306 19590
17307 /** 19591 /**
17308 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 19592 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
17309 */ 19593 */
19594 /// @docsEditable
17310 TextTrackCueEvents get on => 19595 TextTrackCueEvents get on =>
17311 new TextTrackCueEvents(this); 19596 new TextTrackCueEvents(this);
17312 19597
17313 /** @domName TextTrackCue.align */ 19598 /** @domName TextTrackCue.align */
19599 /// @docsEditable
17314 String align; 19600 String align;
17315 19601
17316 /** @domName TextTrackCue.endTime */ 19602 /** @domName TextTrackCue.endTime */
19603 /// @docsEditable
17317 num endTime; 19604 num endTime;
17318 19605
17319 /** @domName TextTrackCue.id */ 19606 /** @domName TextTrackCue.id */
19607 /// @docsEditable
17320 String id; 19608 String id;
17321 19609
17322 /** @domName TextTrackCue.line */ 19610 /** @domName TextTrackCue.line */
19611 /// @docsEditable
17323 int line; 19612 int line;
17324 19613
17325 /** @domName TextTrackCue.pauseOnExit */ 19614 /** @domName TextTrackCue.pauseOnExit */
19615 /// @docsEditable
17326 bool pauseOnExit; 19616 bool pauseOnExit;
17327 19617
17328 /** @domName TextTrackCue.position */ 19618 /** @domName TextTrackCue.position */
19619 /// @docsEditable
17329 int position; 19620 int position;
17330 19621
17331 /** @domName TextTrackCue.size */ 19622 /** @domName TextTrackCue.size */
19623 /// @docsEditable
17332 int size; 19624 int size;
17333 19625
17334 /** @domName TextTrackCue.snapToLines */ 19626 /** @domName TextTrackCue.snapToLines */
19627 /// @docsEditable
17335 bool snapToLines; 19628 bool snapToLines;
17336 19629
17337 /** @domName TextTrackCue.startTime */ 19630 /** @domName TextTrackCue.startTime */
19631 /// @docsEditable
17338 num startTime; 19632 num startTime;
17339 19633
17340 /** @domName TextTrackCue.text */ 19634 /** @domName TextTrackCue.text */
19635 /// @docsEditable
17341 String text; 19636 String text;
17342 19637
17343 /** @domName TextTrackCue.track */ 19638 /** @domName TextTrackCue.track */
19639 /// @docsEditable
17344 final TextTrack track; 19640 final TextTrack track;
17345 19641
17346 /** @domName TextTrackCue.vertical */ 19642 /** @domName TextTrackCue.vertical */
19643 /// @docsEditable
17347 String vertical; 19644 String vertical;
17348 19645
17349 /** @domName TextTrackCue.addEventListener */ 19646 /** @domName TextTrackCue.addEventListener */
19647 /// @docsEditable
17350 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 19648 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
17351 19649
17352 /** @domName TextTrackCue.dispatchEvent */ 19650 /** @domName TextTrackCue.dispatchEvent */
19651 /// @docsEditable
17353 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 19652 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
17354 19653
17355 /** @domName TextTrackCue.getCueAsHTML */ 19654 /** @domName TextTrackCue.getCueAsHTML */
19655 /// @docsEditable
17356 DocumentFragment getCueAsHTML() native; 19656 DocumentFragment getCueAsHTML() native;
17357 19657
17358 /** @domName TextTrackCue.removeEventListener */ 19658 /** @domName TextTrackCue.removeEventListener */
19659 /// @docsEditable
17359 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19660 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
17360 } 19661 }
17361 19662
17362 class TextTrackCueEvents extends Events { 19663 class TextTrackCueEvents extends Events {
17363 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); 19664 TextTrackCueEvents(EventTarget _ptr) : super(_ptr);
17364 19665
17365 EventListenerList get enter => this['enter']; 19666 EventListenerList get enter => this['enter'];
17366 19667
17367 EventListenerList get exit => this['exit']; 19668 EventListenerList get exit => this['exit'];
17368 } 19669 }
17369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17370 // for details. All rights reserved. Use of this source code is governed by a 19671 // for details. All rights reserved. Use of this source code is governed by a
17371 // BSD-style license that can be found in the LICENSE file. 19672 // BSD-style license that can be found in the LICENSE file.
17372 19673
17373 19674
17374 /// @domName TextTrackCueList 19675 /// @domName TextTrackCueList
19676 /// @docsEditable
17375 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" { 19677 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" {
17376 19678
17377 /** @domName TextTrackCueList.length */ 19679 /** @domName TextTrackCueList.length */
19680 /// @docsEditable
17378 final int length; 19681 final int length;
17379 19682
17380 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); 19683 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
17381 19684
17382 void operator[]=(int index, TextTrackCue value) { 19685 void operator[]=(int index, TextTrackCue value) {
17383 throw new UnsupportedError("Cannot assign element of immutable List."); 19686 throw new UnsupportedError("Cannot assign element of immutable List.");
17384 } 19687 }
17385 // -- start List<TextTrackCue> mixins. 19688 // -- start List<TextTrackCue> mixins.
17386 // TextTrackCue is the element type. 19689 // TextTrackCue is the element type.
17387 19690
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
17456 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { 19759 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
17457 throw new UnsupportedError("Cannot insertRange on immutable List."); 19760 throw new UnsupportedError("Cannot insertRange on immutable List.");
17458 } 19761 }
17459 19762
17460 List<TextTrackCue> getRange(int start, int rangeLength) => 19763 List<TextTrackCue> getRange(int start, int rangeLength) =>
17461 _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); 19764 _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
17462 19765
17463 // -- end List<TextTrackCue> mixins. 19766 // -- end List<TextTrackCue> mixins.
17464 19767
17465 /** @domName TextTrackCueList.getCueById */ 19768 /** @domName TextTrackCueList.getCueById */
19769 /// @docsEditable
17466 TextTrackCue getCueById(String id) native; 19770 TextTrackCue getCueById(String id) native;
17467 19771
17468 /** @domName TextTrackCueList.item */ 19772 /** @domName TextTrackCueList.item */
19773 /// @docsEditable
17469 TextTrackCue item(int index) native; 19774 TextTrackCue item(int index) native;
17470 } 19775 }
17471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17472 // for details. All rights reserved. Use of this source code is governed by a 19777 // for details. All rights reserved. Use of this source code is governed by a
17473 // BSD-style license that can be found in the LICENSE file. 19778 // BSD-style license that can be found in the LICENSE file.
17474 19779
17475 19780
17476 /// @domName TextTrackList 19781 /// @domName TextTrackList
19782 /// @docsEditable
17477 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" { 19783 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" {
17478 19784
17479 /** 19785 /**
17480 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 19786 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
17481 */ 19787 */
19788 /// @docsEditable
17482 TextTrackListEvents get on => 19789 TextTrackListEvents get on =>
17483 new TextTrackListEvents(this); 19790 new TextTrackListEvents(this);
17484 19791
17485 /** @domName TextTrackList.length */ 19792 /** @domName TextTrackList.length */
19793 /// @docsEditable
17486 final int length; 19794 final int length;
17487 19795
17488 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); 19796 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
17489 19797
17490 void operator[]=(int index, TextTrack value) { 19798 void operator[]=(int index, TextTrack value) {
17491 throw new UnsupportedError("Cannot assign element of immutable List."); 19799 throw new UnsupportedError("Cannot assign element of immutable List.");
17492 } 19800 }
17493 // -- start List<TextTrack> mixins. 19801 // -- start List<TextTrack> mixins.
17494 // TextTrack is the element type. 19802 // TextTrack is the element type.
17495 19803
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
17564 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { 19872 void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
17565 throw new UnsupportedError("Cannot insertRange on immutable List."); 19873 throw new UnsupportedError("Cannot insertRange on immutable List.");
17566 } 19874 }
17567 19875
17568 List<TextTrack> getRange(int start, int rangeLength) => 19876 List<TextTrack> getRange(int start, int rangeLength) =>
17569 _Lists.getRange(this, start, rangeLength, <TextTrack>[]); 19877 _Lists.getRange(this, start, rangeLength, <TextTrack>[]);
17570 19878
17571 // -- end List<TextTrack> mixins. 19879 // -- end List<TextTrack> mixins.
17572 19880
17573 /** @domName TextTrackList.addEventListener */ 19881 /** @domName TextTrackList.addEventListener */
19882 /// @docsEditable
17574 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 19883 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
17575 19884
17576 /** @domName TextTrackList.dispatchEvent */ 19885 /** @domName TextTrackList.dispatchEvent */
19886 /// @docsEditable
17577 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 19887 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
17578 19888
17579 /** @domName TextTrackList.item */ 19889 /** @domName TextTrackList.item */
19890 /// @docsEditable
17580 TextTrack item(int index) native; 19891 TextTrack item(int index) native;
17581 19892
17582 /** @domName TextTrackList.removeEventListener */ 19893 /** @domName TextTrackList.removeEventListener */
19894 /// @docsEditable
17583 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19895 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
17584 } 19896 }
17585 19897
17586 class TextTrackListEvents extends Events { 19898 class TextTrackListEvents extends Events {
17587 TextTrackListEvents(EventTarget _ptr) : super(_ptr); 19899 TextTrackListEvents(EventTarget _ptr) : super(_ptr);
17588 19900
17589 EventListenerList get addTrack => this['addtrack']; 19901 EventListenerList get addTrack => this['addtrack'];
17590 } 19902 }
17591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17592 // for details. All rights reserved. Use of this source code is governed by a 19904 // for details. All rights reserved. Use of this source code is governed by a
17593 // BSD-style license that can be found in the LICENSE file. 19905 // BSD-style license that can be found in the LICENSE file.
17594 19906
17595 19907
17596 /// @domName TimeRanges 19908 /// @domName TimeRanges
19909 /// @docsEditable
17597 class TimeRanges native "*TimeRanges" { 19910 class TimeRanges native "*TimeRanges" {
17598 19911
17599 /** @domName TimeRanges.length */ 19912 /** @domName TimeRanges.length */
19913 /// @docsEditable
17600 final int length; 19914 final int length;
17601 19915
17602 /** @domName TimeRanges.end */ 19916 /** @domName TimeRanges.end */
19917 /// @docsEditable
17603 num end(int index) native; 19918 num end(int index) native;
17604 19919
17605 /** @domName TimeRanges.start */ 19920 /** @domName TimeRanges.start */
19921 /// @docsEditable
17606 num start(int index) native; 19922 num start(int index) native;
17607 } 19923 }
17608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17609 // for details. All rights reserved. Use of this source code is governed by a 19925 // for details. All rights reserved. Use of this source code is governed by a
17610 // BSD-style license that can be found in the LICENSE file. 19926 // BSD-style license that can be found in the LICENSE file.
17611 19927
17612 // WARNING: Do not edit - generated code. 19928 // WARNING: Do not edit - generated code.
17613 19929
17614 19930
17615 typedef void TimeoutHandler(); 19931 typedef void TimeoutHandler();
17616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17617 // for details. All rights reserved. Use of this source code is governed by a 19933 // for details. All rights reserved. Use of this source code is governed by a
17618 // BSD-style license that can be found in the LICENSE file. 19934 // BSD-style license that can be found in the LICENSE file.
17619 19935
17620 19936
17621 /// @domName HTMLTitleElement 19937 /// @domName HTMLTitleElement
19938 /// @docsEditable
17622 class TitleElement extends Element implements Element native "*HTMLTitleElement" { 19939 class TitleElement extends Element implements Element native "*HTMLTitleElement" {
17623 19940
17624 factory TitleElement() => document.$dom_createElement("title"); 19941 factory TitleElement() => document.$dom_createElement("title");
17625 } 19942 }
17626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17627 // for details. All rights reserved. Use of this source code is governed by a 19944 // for details. All rights reserved. Use of this source code is governed by a
17628 // BSD-style license that can be found in the LICENSE file. 19945 // BSD-style license that can be found in the LICENSE file.
17629 19946
17630 19947
17631 /// @domName Touch 19948 /// @domName Touch
19949 /// @docsEditable
17632 class Touch native "*Touch" { 19950 class Touch native "*Touch" {
17633 19951
17634 /** @domName Touch.clientX */ 19952 /** @domName Touch.clientX */
19953 /// @docsEditable
17635 final int clientX; 19954 final int clientX;
17636 19955
17637 /** @domName Touch.clientY */ 19956 /** @domName Touch.clientY */
19957 /// @docsEditable
17638 final int clientY; 19958 final int clientY;
17639 19959
17640 /** @domName Touch.identifier */ 19960 /** @domName Touch.identifier */
19961 /// @docsEditable
17641 final int identifier; 19962 final int identifier;
17642 19963
17643 /** @domName Touch.pageX */ 19964 /** @domName Touch.pageX */
19965 /// @docsEditable
17644 final int pageX; 19966 final int pageX;
17645 19967
17646 /** @domName Touch.pageY */ 19968 /** @domName Touch.pageY */
19969 /// @docsEditable
17647 final int pageY; 19970 final int pageY;
17648 19971
17649 /** @domName Touch.screenX */ 19972 /** @domName Touch.screenX */
19973 /// @docsEditable
17650 final int screenX; 19974 final int screenX;
17651 19975
17652 /** @domName Touch.screenY */ 19976 /** @domName Touch.screenY */
19977 /// @docsEditable
17653 final int screenY; 19978 final int screenY;
17654 19979
17655 /** @domName Touch.target */ 19980 /** @domName Touch.target */
19981 /// @docsEditable
17656 EventTarget get target => _convertNativeToDart_EventTarget(this._target); 19982 EventTarget get target => _convertNativeToDart_EventTarget(this._target);
17657 dynamic get _target => JS("dynamic", "#.target", this); 19983 dynamic get _target => JS("dynamic", "#.target", this);
17658 19984
17659 /** @domName Touch.webkitForce */ 19985 /** @domName Touch.webkitForce */
19986 /// @docsEditable
17660 final num webkitForce; 19987 final num webkitForce;
17661 19988
17662 /** @domName Touch.webkitRadiusX */ 19989 /** @domName Touch.webkitRadiusX */
19990 /// @docsEditable
17663 final int webkitRadiusX; 19991 final int webkitRadiusX;
17664 19992
17665 /** @domName Touch.webkitRadiusY */ 19993 /** @domName Touch.webkitRadiusY */
19994 /// @docsEditable
17666 final int webkitRadiusY; 19995 final int webkitRadiusY;
17667 19996
17668 /** @domName Touch.webkitRotationAngle */ 19997 /** @domName Touch.webkitRotationAngle */
19998 /// @docsEditable
17669 final num webkitRotationAngle; 19999 final num webkitRotationAngle;
17670 } 20000 }
17671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20001 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17672 // for details. All rights reserved. Use of this source code is governed by a 20002 // for details. All rights reserved. Use of this source code is governed by a
17673 // BSD-style license that can be found in the LICENSE file. 20003 // BSD-style license that can be found in the LICENSE file.
17674 20004
17675 20005
17676 /// @domName TouchEvent 20006 /// @domName TouchEvent
20007 /// @docsEditable
17677 class TouchEvent extends UIEvent native "*TouchEvent" { 20008 class TouchEvent extends UIEvent native "*TouchEvent" {
17678 20009
17679 /** @domName TouchEvent.altKey */ 20010 /** @domName TouchEvent.altKey */
20011 /// @docsEditable
17680 final bool altKey; 20012 final bool altKey;
17681 20013
17682 /** @domName TouchEvent.changedTouches */ 20014 /** @domName TouchEvent.changedTouches */
20015 /// @docsEditable
17683 final TouchList changedTouches; 20016 final TouchList changedTouches;
17684 20017
17685 /** @domName TouchEvent.ctrlKey */ 20018 /** @domName TouchEvent.ctrlKey */
20019 /// @docsEditable
17686 final bool ctrlKey; 20020 final bool ctrlKey;
17687 20021
17688 /** @domName TouchEvent.metaKey */ 20022 /** @domName TouchEvent.metaKey */
20023 /// @docsEditable
17689 final bool metaKey; 20024 final bool metaKey;
17690 20025
17691 /** @domName TouchEvent.shiftKey */ 20026 /** @domName TouchEvent.shiftKey */
20027 /// @docsEditable
17692 final bool shiftKey; 20028 final bool shiftKey;
17693 20029
17694 /** @domName TouchEvent.targetTouches */ 20030 /** @domName TouchEvent.targetTouches */
20031 /// @docsEditable
17695 final TouchList targetTouches; 20032 final TouchList targetTouches;
17696 20033
17697 /** @domName TouchEvent.touches */ 20034 /** @domName TouchEvent.touches */
20035 /// @docsEditable
17698 final TouchList touches; 20036 final TouchList touches;
17699 20037
17700 /** @domName TouchEvent.initTouchEvent */ 20038 /** @domName TouchEvent.initTouchEvent */
20039 /// @docsEditable
17701 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; 20040 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;
17702 } 20041 }
17703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17704 // for details. All rights reserved. Use of this source code is governed by a 20043 // for details. All rights reserved. Use of this source code is governed by a
17705 // BSD-style license that can be found in the LICENSE file. 20044 // BSD-style license that can be found in the LICENSE file.
17706 20045
17707 20046
17708 /// @domName TouchList 20047 /// @domName TouchList
20048 /// @docsEditable
17709 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" { 20049 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" {
17710 20050
17711 /** @domName TouchList.length */ 20051 /** @domName TouchList.length */
20052 /// @docsEditable
17712 final int length; 20053 final int length;
17713 20054
17714 Touch operator[](int index) => JS("Touch", "#[#]", this, index); 20055 Touch operator[](int index) => JS("Touch", "#[#]", this, index);
17715 20056
17716 void operator[]=(int index, Touch value) { 20057 void operator[]=(int index, Touch value) {
17717 throw new UnsupportedError("Cannot assign element of immutable List."); 20058 throw new UnsupportedError("Cannot assign element of immutable List.");
17718 } 20059 }
17719 // -- start List<Touch> mixins. 20060 // -- start List<Touch> mixins.
17720 // Touch is the element type. 20061 // Touch is the element type.
17721 20062
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
17790 void insertRange(int start, int rangeLength, [Touch initialValue]) { 20131 void insertRange(int start, int rangeLength, [Touch initialValue]) {
17791 throw new UnsupportedError("Cannot insertRange on immutable List."); 20132 throw new UnsupportedError("Cannot insertRange on immutable List.");
17792 } 20133 }
17793 20134
17794 List<Touch> getRange(int start, int rangeLength) => 20135 List<Touch> getRange(int start, int rangeLength) =>
17795 _Lists.getRange(this, start, rangeLength, <Touch>[]); 20136 _Lists.getRange(this, start, rangeLength, <Touch>[]);
17796 20137
17797 // -- end List<Touch> mixins. 20138 // -- end List<Touch> mixins.
17798 20139
17799 /** @domName TouchList.item */ 20140 /** @domName TouchList.item */
20141 /// @docsEditable
17800 Touch item(int index) native; 20142 Touch item(int index) native;
17801 } 20143 }
17802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17803 // for details. All rights reserved. Use of this source code is governed by a 20145 // for details. All rights reserved. Use of this source code is governed by a
17804 // BSD-style license that can be found in the LICENSE file. 20146 // BSD-style license that can be found in the LICENSE file.
17805 20147
17806 20148
17807 /// @domName HTMLTrackElement 20149 /// @domName HTMLTrackElement
20150 /// @docsEditable
17808 class TrackElement extends Element implements Element native "*HTMLTrackElement" { 20151 class TrackElement extends Element implements Element native "*HTMLTrackElement" {
17809 20152
17810 factory TrackElement() => document.$dom_createElement("track"); 20153 factory TrackElement() => document.$dom_createElement("track");
17811 20154
17812 static const int ERROR = 3; 20155 static const int ERROR = 3;
17813 20156
17814 static const int LOADED = 2; 20157 static const int LOADED = 2;
17815 20158
17816 static const int LOADING = 1; 20159 static const int LOADING = 1;
17817 20160
17818 static const int NONE = 0; 20161 static const int NONE = 0;
17819 20162
17820 /** @domName HTMLTrackElement.defaultValue */ 20163 /** @domName HTMLTrackElement.defaultValue */
20164 /// @docsEditable
17821 bool get defaultValue => JS("bool", "#.default", this); 20165 bool get defaultValue => JS("bool", "#.default", this);
17822 20166
17823 /** @domName HTMLTrackElement.defaultValue */ 20167 /** @domName HTMLTrackElement.defaultValue */
20168 /// @docsEditable
17824 void set defaultValue(bool value) { 20169 void set defaultValue(bool value) {
17825 JS("void", "#.default = #", this, value); 20170 JS("void", "#.default = #", this, value);
17826 } 20171 }
17827 20172
17828 /** @domName HTMLTrackElement.kind */ 20173 /** @domName HTMLTrackElement.kind */
20174 /// @docsEditable
17829 String kind; 20175 String kind;
17830 20176
17831 /** @domName HTMLTrackElement.label */ 20177 /** @domName HTMLTrackElement.label */
20178 /// @docsEditable
17832 String label; 20179 String label;
17833 20180
17834 /** @domName HTMLTrackElement.readyState */ 20181 /** @domName HTMLTrackElement.readyState */
20182 /// @docsEditable
17835 final int readyState; 20183 final int readyState;
17836 20184
17837 /** @domName HTMLTrackElement.src */ 20185 /** @domName HTMLTrackElement.src */
20186 /// @docsEditable
17838 String src; 20187 String src;
17839 20188
17840 /** @domName HTMLTrackElement.srclang */ 20189 /** @domName HTMLTrackElement.srclang */
20190 /// @docsEditable
17841 String srclang; 20191 String srclang;
17842 20192
17843 /** @domName HTMLTrackElement.track */ 20193 /** @domName HTMLTrackElement.track */
20194 /// @docsEditable
17844 final TextTrack track; 20195 final TextTrack track;
17845 } 20196 }
17846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17847 // for details. All rights reserved. Use of this source code is governed by a 20198 // for details. All rights reserved. Use of this source code is governed by a
17848 // BSD-style license that can be found in the LICENSE file. 20199 // BSD-style license that can be found in the LICENSE file.
17849 20200
17850 20201
17851 /// @domName TrackEvent 20202 /// @domName TrackEvent
20203 /// @docsEditable
17852 class TrackEvent extends Event native "*TrackEvent" { 20204 class TrackEvent extends Event native "*TrackEvent" {
17853 20205
17854 /** @domName TrackEvent.track */ 20206 /** @domName TrackEvent.track */
20207 /// @docsEditable
17855 final Object track; 20208 final Object track;
17856 } 20209 }
17857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17858 // for details. All rights reserved. Use of this source code is governed by a 20211 // for details. All rights reserved. Use of this source code is governed by a
17859 // BSD-style license that can be found in the LICENSE file. 20212 // BSD-style license that can be found in the LICENSE file.
17860 20213
17861 20214
17862 /// @domName WebKitTransitionEvent 20215 /// @domName WebKitTransitionEvent
20216 /// @docsEditable
17863 class TransitionEvent extends Event native "*WebKitTransitionEvent" { 20217 class TransitionEvent extends Event native "*WebKitTransitionEvent" {
17864 20218
17865 /** @domName WebKitTransitionEvent.elapsedTime */ 20219 /** @domName WebKitTransitionEvent.elapsedTime */
20220 /// @docsEditable
17866 final num elapsedTime; 20221 final num elapsedTime;
17867 20222
17868 /** @domName WebKitTransitionEvent.propertyName */ 20223 /** @domName WebKitTransitionEvent.propertyName */
20224 /// @docsEditable
17869 final String propertyName; 20225 final String propertyName;
17870 } 20226 }
17871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17872 // for details. All rights reserved. Use of this source code is governed by a 20228 // for details. All rights reserved. Use of this source code is governed by a
17873 // BSD-style license that can be found in the LICENSE file. 20229 // BSD-style license that can be found in the LICENSE file.
17874 20230
17875 20231
17876 /// @domName TreeWalker 20232 /// @domName TreeWalker
20233 /// @docsEditable
17877 class TreeWalker native "*TreeWalker" { 20234 class TreeWalker native "*TreeWalker" {
17878 20235
17879 /** @domName TreeWalker.currentNode */ 20236 /** @domName TreeWalker.currentNode */
20237 /// @docsEditable
17880 Node currentNode; 20238 Node currentNode;
17881 20239
17882 /** @domName TreeWalker.expandEntityReferences */ 20240 /** @domName TreeWalker.expandEntityReferences */
20241 /// @docsEditable
17883 final bool expandEntityReferences; 20242 final bool expandEntityReferences;
17884 20243
17885 /** @domName TreeWalker.filter */ 20244 /** @domName TreeWalker.filter */
20245 /// @docsEditable
17886 final NodeFilter filter; 20246 final NodeFilter filter;
17887 20247
17888 /** @domName TreeWalker.root */ 20248 /** @domName TreeWalker.root */
20249 /// @docsEditable
17889 final Node root; 20250 final Node root;
17890 20251
17891 /** @domName TreeWalker.whatToShow */ 20252 /** @domName TreeWalker.whatToShow */
20253 /// @docsEditable
17892 final int whatToShow; 20254 final int whatToShow;
17893 20255
17894 /** @domName TreeWalker.firstChild */ 20256 /** @domName TreeWalker.firstChild */
20257 /// @docsEditable
17895 Node firstChild() native; 20258 Node firstChild() native;
17896 20259
17897 /** @domName TreeWalker.lastChild */ 20260 /** @domName TreeWalker.lastChild */
20261 /// @docsEditable
17898 Node lastChild() native; 20262 Node lastChild() native;
17899 20263
17900 /** @domName TreeWalker.nextNode */ 20264 /** @domName TreeWalker.nextNode */
20265 /// @docsEditable
17901 Node nextNode() native; 20266 Node nextNode() native;
17902 20267
17903 /** @domName TreeWalker.nextSibling */ 20268 /** @domName TreeWalker.nextSibling */
20269 /// @docsEditable
17904 Node nextSibling() native; 20270 Node nextSibling() native;
17905 20271
17906 /** @domName TreeWalker.parentNode */ 20272 /** @domName TreeWalker.parentNode */
20273 /// @docsEditable
17907 Node parentNode() native; 20274 Node parentNode() native;
17908 20275
17909 /** @domName TreeWalker.previousNode */ 20276 /** @domName TreeWalker.previousNode */
20277 /// @docsEditable
17910 Node previousNode() native; 20278 Node previousNode() native;
17911 20279
17912 /** @domName TreeWalker.previousSibling */ 20280 /** @domName TreeWalker.previousSibling */
20281 /// @docsEditable
17913 Node previousSibling() native; 20282 Node previousSibling() native;
17914 } 20283 }
17915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17916 // for details. All rights reserved. Use of this source code is governed by a 20285 // for details. All rights reserved. Use of this source code is governed by a
17917 // BSD-style license that can be found in the LICENSE file. 20286 // BSD-style license that can be found in the LICENSE file.
17918 20287
17919 20288
17920 /// @domName UIEvent 20289 /// @domName UIEvent
20290 /// @docsEditable
17921 class UIEvent extends Event native "*UIEvent" { 20291 class UIEvent extends Event native "*UIEvent" {
17922 20292
17923 /** @domName UIEvent.charCode */ 20293 /** @domName UIEvent.charCode */
20294 /// @docsEditable
17924 final int charCode; 20295 final int charCode;
17925 20296
17926 /** @domName UIEvent.detail */ 20297 /** @domName UIEvent.detail */
20298 /// @docsEditable
17927 final int detail; 20299 final int detail;
17928 20300
17929 /** @domName UIEvent.keyCode */ 20301 /** @domName UIEvent.keyCode */
20302 /// @docsEditable
17930 final int keyCode; 20303 final int keyCode;
17931 20304
17932 /** @domName UIEvent.layerX */ 20305 /** @domName UIEvent.layerX */
20306 /// @docsEditable
17933 final int layerX; 20307 final int layerX;
17934 20308
17935 /** @domName UIEvent.layerY */ 20309 /** @domName UIEvent.layerY */
20310 /// @docsEditable
17936 final int layerY; 20311 final int layerY;
17937 20312
17938 /** @domName UIEvent.pageX */ 20313 /** @domName UIEvent.pageX */
20314 /// @docsEditable
17939 final int pageX; 20315 final int pageX;
17940 20316
17941 /** @domName UIEvent.pageY */ 20317 /** @domName UIEvent.pageY */
20318 /// @docsEditable
17942 final int pageY; 20319 final int pageY;
17943 20320
17944 /** @domName UIEvent.view */ 20321 /** @domName UIEvent.view */
20322 /// @docsEditable
17945 Window get view => _convertNativeToDart_Window(this._view); 20323 Window get view => _convertNativeToDart_Window(this._view);
17946 dynamic get _view => JS("dynamic", "#.view", this); 20324 dynamic get _view => JS("dynamic", "#.view", this);
17947 20325
17948 /** @domName UIEvent.which */ 20326 /** @domName UIEvent.which */
20327 /// @docsEditable
17949 final int which; 20328 final int which;
17950 20329
17951 /** @domName UIEvent.initUIEvent */ 20330 /** @domName UIEvent.initUIEvent */
20331 /// @docsEditable
17952 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native; 20332 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native;
17953 } 20333 }
17954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17955 // for details. All rights reserved. Use of this source code is governed by a 20335 // for details. All rights reserved. Use of this source code is governed by a
17956 // BSD-style license that can be found in the LICENSE file. 20336 // BSD-style license that can be found in the LICENSE file.
17957 20337
17958 20338
17959 /// @domName HTMLUListElement 20339 /// @domName HTMLUListElement
20340 /// @docsEditable
17960 class UListElement extends Element implements Element native "*HTMLUListElement" { 20341 class UListElement extends Element implements Element native "*HTMLUListElement" {
17961 20342
17962 factory UListElement() => document.$dom_createElement("ul"); 20343 factory UListElement() => document.$dom_createElement("ul");
17963 20344
17964 /** @domName HTMLUListElement.compact */ 20345 /** @domName HTMLUListElement.compact */
20346 /// @docsEditable
17965 bool compact; 20347 bool compact;
17966 20348
17967 /** @domName HTMLUListElement.type */ 20349 /** @domName HTMLUListElement.type */
20350 /// @docsEditable
17968 String type; 20351 String type;
17969 } 20352 }
17970 // 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
17971 // 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
17972 // BSD-style license that can be found in the LICENSE file. 20355 // BSD-style license that can be found in the LICENSE file.
17973 20356
17974 20357
17975 /// @domName Uint16Array 20358 /// @domName Uint16Array
20359 /// @docsEditable
17976 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint16Array" { 20360 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint16Array" {
17977 20361
17978 factory Uint16Array(int length) => 20362 factory Uint16Array(int length) =>
17979 _TypedArrayFactoryProvider.createUint16Array(length); 20363 _TypedArrayFactoryProvider.createUint16Array(length);
17980 20364
17981 factory Uint16Array.fromList(List<int> list) => 20365 factory Uint16Array.fromList(List<int> list) =>
17982 _TypedArrayFactoryProvider.createUint16Array_fromList(list); 20366 _TypedArrayFactoryProvider.createUint16Array_fromList(list);
17983 20367
17984 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 20368 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
17985 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length); 20369 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
17986 20370
17987 static const int BYTES_PER_ELEMENT = 2; 20371 static const int BYTES_PER_ELEMENT = 2;
17988 20372
17989 /** @domName Uint16Array.length */ 20373 /** @domName Uint16Array.length */
20374 /// @docsEditable
17990 final int length; 20375 final int length;
17991 20376
17992 int operator[](int index) => JS("int", "#[#]", this, index); 20377 int operator[](int index) => JS("int", "#[#]", this, index);
17993 20378
17994 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 20379 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
17995 // int is the element type. 20380 // int is the element type.
17996 20381
17997 // From Iterable<int>: 20382 // From Iterable<int>:
17998 20383
17999 Iterator<int> iterator() { 20384 Iterator<int> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
18065 void insertRange(int start, int rangeLength, [int initialValue]) { 20450 void insertRange(int start, int rangeLength, [int initialValue]) {
18066 throw new UnsupportedError("Cannot insertRange on immutable List."); 20451 throw new UnsupportedError("Cannot insertRange on immutable List.");
18067 } 20452 }
18068 20453
18069 List<int> getRange(int start, int rangeLength) => 20454 List<int> getRange(int start, int rangeLength) =>
18070 _Lists.getRange(this, start, rangeLength, <int>[]); 20455 _Lists.getRange(this, start, rangeLength, <int>[]);
18071 20456
18072 // -- end List<int> mixins. 20457 // -- end List<int> mixins.
18073 20458
18074 /** @domName Uint16Array.setElements */ 20459 /** @domName Uint16Array.setElements */
20460 /// @docsEditable
18075 void setElements(Object array, [int offset]) native "set"; 20461 void setElements(Object array, [int offset]) native "set";
18076 20462
18077 /** @domName Uint16Array.subarray */ 20463 /** @domName Uint16Array.subarray */
20464 /// @docsEditable
18078 Uint16Array subarray(int start, [int end]) native; 20465 Uint16Array subarray(int start, [int end]) native;
18079 } 20466 }
18080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18081 // for details. All rights reserved. Use of this source code is governed by a 20468 // for details. All rights reserved. Use of this source code is governed by a
18082 // BSD-style license that can be found in the LICENSE file. 20469 // BSD-style license that can be found in the LICENSE file.
18083 20470
18084 20471
18085 /// @domName Uint32Array 20472 /// @domName Uint32Array
20473 /// @docsEditable
18086 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" { 20474 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" {
18087 20475
18088 factory Uint32Array(int length) => 20476 factory Uint32Array(int length) =>
18089 _TypedArrayFactoryProvider.createUint32Array(length); 20477 _TypedArrayFactoryProvider.createUint32Array(length);
18090 20478
18091 factory Uint32Array.fromList(List<int> list) => 20479 factory Uint32Array.fromList(List<int> list) =>
18092 _TypedArrayFactoryProvider.createUint32Array_fromList(list); 20480 _TypedArrayFactoryProvider.createUint32Array_fromList(list);
18093 20481
18094 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 20482 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
18095 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length); 20483 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
18096 20484
18097 static const int BYTES_PER_ELEMENT = 4; 20485 static const int BYTES_PER_ELEMENT = 4;
18098 20486
18099 /** @domName Uint32Array.length */ 20487 /** @domName Uint32Array.length */
20488 /// @docsEditable
18100 final int length; 20489 final int length;
18101 20490
18102 int operator[](int index) => JS("int", "#[#]", this, index); 20491 int operator[](int index) => JS("int", "#[#]", this, index);
18103 20492
18104 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 20493 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18105 // int is the element type. 20494 // int is the element type.
18106 20495
18107 // From Iterable<int>: 20496 // From Iterable<int>:
18108 20497
18109 Iterator<int> iterator() { 20498 Iterator<int> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
18175 void insertRange(int start, int rangeLength, [int initialValue]) { 20564 void insertRange(int start, int rangeLength, [int initialValue]) {
18176 throw new UnsupportedError("Cannot insertRange on immutable List."); 20565 throw new UnsupportedError("Cannot insertRange on immutable List.");
18177 } 20566 }
18178 20567
18179 List<int> getRange(int start, int rangeLength) => 20568 List<int> getRange(int start, int rangeLength) =>
18180 _Lists.getRange(this, start, rangeLength, <int>[]); 20569 _Lists.getRange(this, start, rangeLength, <int>[]);
18181 20570
18182 // -- end List<int> mixins. 20571 // -- end List<int> mixins.
18183 20572
18184 /** @domName Uint32Array.setElements */ 20573 /** @domName Uint32Array.setElements */
20574 /// @docsEditable
18185 void setElements(Object array, [int offset]) native "set"; 20575 void setElements(Object array, [int offset]) native "set";
18186 20576
18187 /** @domName Uint32Array.subarray */ 20577 /** @domName Uint32Array.subarray */
20578 /// @docsEditable
18188 Uint32Array subarray(int start, [int end]) native; 20579 Uint32Array subarray(int start, [int end]) native;
18189 } 20580 }
18190 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18191 // for details. All rights reserved. Use of this source code is governed by a 20582 // for details. All rights reserved. Use of this source code is governed by a
18192 // BSD-style license that can be found in the LICENSE file. 20583 // BSD-style license that can be found in the LICENSE file.
18193 20584
18194 20585
18195 /// @domName Uint8Array 20586 /// @domName Uint8Array
20587 /// @docsEditable
18196 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" { 20588 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" {
18197 20589
18198 factory Uint8Array(int length) => 20590 factory Uint8Array(int length) =>
18199 _TypedArrayFactoryProvider.createUint8Array(length); 20591 _TypedArrayFactoryProvider.createUint8Array(length);
18200 20592
18201 factory Uint8Array.fromList(List<int> list) => 20593 factory Uint8Array.fromList(List<int> list) =>
18202 _TypedArrayFactoryProvider.createUint8Array_fromList(list); 20594 _TypedArrayFactoryProvider.createUint8Array_fromList(list);
18203 20595
18204 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 20596 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
18205 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength); 20597 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength);
18206 20598
18207 static const int BYTES_PER_ELEMENT = 1; 20599 static const int BYTES_PER_ELEMENT = 1;
18208 20600
18209 /** @domName Uint8Array.length */ 20601 /** @domName Uint8Array.length */
20602 /// @docsEditable
18210 final int length; 20603 final int length;
18211 20604
18212 int operator[](int index) => JS("int", "#[#]", this, index); 20605 int operator[](int index) => JS("int", "#[#]", this, index);
18213 20606
18214 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 20607 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18215 // int is the element type. 20608 // int is the element type.
18216 20609
18217 // From Iterable<int>: 20610 // From Iterable<int>:
18218 20611
18219 Iterator<int> iterator() { 20612 Iterator<int> iterator() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
18285 void insertRange(int start, int rangeLength, [int initialValue]) { 20678 void insertRange(int start, int rangeLength, [int initialValue]) {
18286 throw new UnsupportedError("Cannot insertRange on immutable List."); 20679 throw new UnsupportedError("Cannot insertRange on immutable List.");
18287 } 20680 }
18288 20681
18289 List<int> getRange(int start, int rangeLength) => 20682 List<int> getRange(int start, int rangeLength) =>
18290 _Lists.getRange(this, start, rangeLength, <int>[]); 20683 _Lists.getRange(this, start, rangeLength, <int>[]);
18291 20684
18292 // -- end List<int> mixins. 20685 // -- end List<int> mixins.
18293 20686
18294 /** @domName Uint8Array.setElements */ 20687 /** @domName Uint8Array.setElements */
20688 /// @docsEditable
18295 void setElements(Object array, [int offset]) native "set"; 20689 void setElements(Object array, [int offset]) native "set";
18296 20690
18297 /** @domName Uint8Array.subarray */ 20691 /** @domName Uint8Array.subarray */
20692 /// @docsEditable
18298 Uint8Array subarray(int start, [int end]) native; 20693 Uint8Array subarray(int start, [int end]) native;
18299 } 20694 }
18300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18301 // for details. All rights reserved. Use of this source code is governed by a 20696 // for details. All rights reserved. Use of this source code is governed by a
18302 // BSD-style license that can be found in the LICENSE file. 20697 // BSD-style license that can be found in the LICENSE file.
18303 20698
18304 20699
18305 /// @domName Uint8ClampedArray 20700 /// @domName Uint8ClampedArray
20701 /// @docsEditable
18306 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { 20702 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" {
18307 20703
18308 factory Uint8ClampedArray(int length) => 20704 factory Uint8ClampedArray(int length) =>
18309 _TypedArrayFactoryProvider.createUint8ClampedArray(length); 20705 _TypedArrayFactoryProvider.createUint8ClampedArray(length);
18310 20706
18311 factory Uint8ClampedArray.fromList(List<int> list) => 20707 factory Uint8ClampedArray.fromList(List<int> list) =>
18312 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); 20708 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list);
18313 20709
18314 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => 20710 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
18315 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf fset, length); 20711 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf fset, length);
18316 20712
18317 // Use implementation from Uint8Array. 20713 // Use implementation from Uint8Array.
18318 // final int length; 20714 // final int length;
18319 20715
18320 /** @domName Uint8ClampedArray.setElements */ 20716 /** @domName Uint8ClampedArray.setElements */
20717 /// @docsEditable
18321 void setElements(Object array, [int offset]) native "set"; 20718 void setElements(Object array, [int offset]) native "set";
18322 20719
18323 /** @domName Uint8ClampedArray.subarray */ 20720 /** @domName Uint8ClampedArray.subarray */
20721 /// @docsEditable
18324 Uint8ClampedArray subarray(int start, [int end]) native; 20722 Uint8ClampedArray subarray(int start, [int end]) native;
18325 } 20723 }
18326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18327 // for details. All rights reserved. Use of this source code is governed by a 20725 // for details. All rights reserved. Use of this source code is governed by a
18328 // BSD-style license that can be found in the LICENSE file. 20726 // BSD-style license that can be found in the LICENSE file.
18329 20727
18330 20728
18331 /// @domName HTMLUnknownElement 20729 /// @domName HTMLUnknownElement
20730 /// @docsEditable
18332 class UnknownElement extends Element implements Element native "*HTMLUnknownElem ent" { 20731 class UnknownElement extends Element implements Element native "*HTMLUnknownElem ent" {
18333 } 20732 }
18334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18335 // for details. All rights reserved. Use of this source code is governed by a 20734 // for details. All rights reserved. Use of this source code is governed by a
18336 // BSD-style license that can be found in the LICENSE file. 20735 // BSD-style license that can be found in the LICENSE file.
18337 20736
18338 20737
18339 class Url native "*URL" { 20738 class Url native "*URL" {
18340 20739
18341 static String createObjectUrl(blob_OR_source_OR_stream) => 20740 static String createObjectUrl(blob_OR_source_OR_stream) =>
18342 JS('String', 20741 JS('String',
18343 '(window.URL || window.webkitURL).createObjectURL(#)', 20742 '(window.URL || window.webkitURL).createObjectURL(#)',
18344 blob_OR_source_OR_stream); 20743 blob_OR_source_OR_stream);
18345 20744
18346 static void revokeObjectUrl(String objectUrl) => 20745 static void revokeObjectUrl(String objectUrl) =>
18347 JS('void', 20746 JS('void',
18348 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); 20747 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
18349 20748
18350 } 20749 }
18351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18352 // for details. All rights reserved. Use of this source code is governed by a 20751 // for details. All rights reserved. Use of this source code is governed by a
18353 // BSD-style license that can be found in the LICENSE file. 20752 // BSD-style license that can be found in the LICENSE file.
18354 20753
18355 20754
18356 /// @domName ValidityState 20755 /// @domName ValidityState
20756 /// @docsEditable
18357 class ValidityState native "*ValidityState" { 20757 class ValidityState native "*ValidityState" {
18358 20758
18359 /** @domName ValidityState.customError */ 20759 /** @domName ValidityState.customError */
20760 /// @docsEditable
18360 final bool customError; 20761 final bool customError;
18361 20762
18362 /** @domName ValidityState.patternMismatch */ 20763 /** @domName ValidityState.patternMismatch */
20764 /// @docsEditable
18363 final bool patternMismatch; 20765 final bool patternMismatch;
18364 20766
18365 /** @domName ValidityState.rangeOverflow */ 20767 /** @domName ValidityState.rangeOverflow */
20768 /// @docsEditable
18366 final bool rangeOverflow; 20769 final bool rangeOverflow;
18367 20770
18368 /** @domName ValidityState.rangeUnderflow */ 20771 /** @domName ValidityState.rangeUnderflow */
20772 /// @docsEditable
18369 final bool rangeUnderflow; 20773 final bool rangeUnderflow;
18370 20774
18371 /** @domName ValidityState.stepMismatch */ 20775 /** @domName ValidityState.stepMismatch */
20776 /// @docsEditable
18372 final bool stepMismatch; 20777 final bool stepMismatch;
18373 20778
18374 /** @domName ValidityState.tooLong */ 20779 /** @domName ValidityState.tooLong */
20780 /// @docsEditable
18375 final bool tooLong; 20781 final bool tooLong;
18376 20782
18377 /** @domName ValidityState.typeMismatch */ 20783 /** @domName ValidityState.typeMismatch */
20784 /// @docsEditable
18378 final bool typeMismatch; 20785 final bool typeMismatch;
18379 20786
18380 /** @domName ValidityState.valid */ 20787 /** @domName ValidityState.valid */
20788 /// @docsEditable
18381 final bool valid; 20789 final bool valid;
18382 20790
18383 /** @domName ValidityState.valueMissing */ 20791 /** @domName ValidityState.valueMissing */
20792 /// @docsEditable
18384 final bool valueMissing; 20793 final bool valueMissing;
18385 } 20794 }
18386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18387 // for details. All rights reserved. Use of this source code is governed by a 20796 // for details. All rights reserved. Use of this source code is governed by a
18388 // BSD-style license that can be found in the LICENSE file. 20797 // BSD-style license that can be found in the LICENSE file.
18389 20798
18390 20799
18391 /// @domName HTMLVideoElement 20800 /// @domName HTMLVideoElement
20801 /// @docsEditable
18392 class VideoElement extends MediaElement native "*HTMLVideoElement" { 20802 class VideoElement extends MediaElement native "*HTMLVideoElement" {
18393 20803
18394 factory VideoElement() => document.$dom_createElement("video"); 20804 factory VideoElement() => document.$dom_createElement("video");
18395 20805
18396 /** @domName HTMLVideoElement.height */ 20806 /** @domName HTMLVideoElement.height */
20807 /// @docsEditable
18397 int height; 20808 int height;
18398 20809
18399 /** @domName HTMLVideoElement.poster */ 20810 /** @domName HTMLVideoElement.poster */
20811 /// @docsEditable
18400 String poster; 20812 String poster;
18401 20813
18402 /** @domName HTMLVideoElement.videoHeight */ 20814 /** @domName HTMLVideoElement.videoHeight */
20815 /// @docsEditable
18403 final int videoHeight; 20816 final int videoHeight;
18404 20817
18405 /** @domName HTMLVideoElement.videoWidth */ 20818 /** @domName HTMLVideoElement.videoWidth */
20819 /// @docsEditable
18406 final int videoWidth; 20820 final int videoWidth;
18407 20821
18408 /** @domName HTMLVideoElement.webkitDecodedFrameCount */ 20822 /** @domName HTMLVideoElement.webkitDecodedFrameCount */
20823 /// @docsEditable
18409 final int webkitDecodedFrameCount; 20824 final int webkitDecodedFrameCount;
18410 20825
18411 /** @domName HTMLVideoElement.webkitDisplayingFullscreen */ 20826 /** @domName HTMLVideoElement.webkitDisplayingFullscreen */
20827 /// @docsEditable
18412 final bool webkitDisplayingFullscreen; 20828 final bool webkitDisplayingFullscreen;
18413 20829
18414 /** @domName HTMLVideoElement.webkitDroppedFrameCount */ 20830 /** @domName HTMLVideoElement.webkitDroppedFrameCount */
20831 /// @docsEditable
18415 final int webkitDroppedFrameCount; 20832 final int webkitDroppedFrameCount;
18416 20833
18417 /** @domName HTMLVideoElement.webkitSupportsFullscreen */ 20834 /** @domName HTMLVideoElement.webkitSupportsFullscreen */
20835 /// @docsEditable
18418 final bool webkitSupportsFullscreen; 20836 final bool webkitSupportsFullscreen;
18419 20837
18420 /** @domName HTMLVideoElement.width */ 20838 /** @domName HTMLVideoElement.width */
20839 /// @docsEditable
18421 int width; 20840 int width;
18422 20841
18423 /** @domName HTMLVideoElement.webkitEnterFullScreen */ 20842 /** @domName HTMLVideoElement.webkitEnterFullScreen */
20843 /// @docsEditable
18424 void webkitEnterFullScreen() native; 20844 void webkitEnterFullScreen() native;
18425 20845
18426 /** @domName HTMLVideoElement.webkitEnterFullscreen */ 20846 /** @domName HTMLVideoElement.webkitEnterFullscreen */
20847 /// @docsEditable
18427 void webkitEnterFullscreen() native; 20848 void webkitEnterFullscreen() native;
18428 20849
18429 /** @domName HTMLVideoElement.webkitExitFullScreen */ 20850 /** @domName HTMLVideoElement.webkitExitFullScreen */
20851 /// @docsEditable
18430 void webkitExitFullScreen() native; 20852 void webkitExitFullScreen() native;
18431 20853
18432 /** @domName HTMLVideoElement.webkitExitFullscreen */ 20854 /** @domName HTMLVideoElement.webkitExitFullscreen */
20855 /// @docsEditable
18433 void webkitExitFullscreen() native; 20856 void webkitExitFullscreen() native;
18434 } 20857 }
18435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18436 // for details. All rights reserved. Use of this source code is governed by a 20859 // for details. All rights reserved. Use of this source code is governed by a
18437 // BSD-style license that can be found in the LICENSE file. 20860 // BSD-style license that can be found in the LICENSE file.
18438 20861
18439 // WARNING: Do not edit - generated code. 20862 // WARNING: Do not edit - generated code.
18440 20863
18441 20864
18442 typedef void VoidCallback(); 20865 typedef void VoidCallback();
18443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18444 // for details. All rights reserved. Use of this source code is governed by a 20867 // for details. All rights reserved. Use of this source code is governed by a
18445 // BSD-style license that can be found in the LICENSE file. 20868 // BSD-style license that can be found in the LICENSE file.
18446 20869
18447 20870
18448 /// @domName WaveShaperNode 20871 /// @domName WaveShaperNode
20872 /// @docsEditable
18449 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 20873 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
18450 20874
18451 /** @domName WaveShaperNode.curve */ 20875 /** @domName WaveShaperNode.curve */
20876 /// @docsEditable
18452 Float32Array curve; 20877 Float32Array curve;
18453 } 20878 }
18454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18455 // for details. All rights reserved. Use of this source code is governed by a 20880 // for details. All rights reserved. Use of this source code is governed by a
18456 // BSD-style license that can be found in the LICENSE file. 20881 // BSD-style license that can be found in the LICENSE file.
18457 20882
18458 20883
18459 /// @domName WaveTable 20884 /// @domName WaveTable
20885 /// @docsEditable
18460 class WaveTable native "*WaveTable" { 20886 class WaveTable native "*WaveTable" {
18461 } 20887 }
18462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18463 // for details. All rights reserved. Use of this source code is governed by a 20889 // for details. All rights reserved. Use of this source code is governed by a
18464 // BSD-style license that can be found in the LICENSE file. 20890 // BSD-style license that can be found in the LICENSE file.
18465 20891
18466 20892
18467 /// @domName WebGLActiveInfo 20893 /// @domName WebGLActiveInfo
20894 /// @docsEditable
18468 class WebGLActiveInfo native "*WebGLActiveInfo" { 20895 class WebGLActiveInfo native "*WebGLActiveInfo" {
18469 20896
18470 /** @domName WebGLActiveInfo.name */ 20897 /** @domName WebGLActiveInfo.name */
20898 /// @docsEditable
18471 final String name; 20899 final String name;
18472 20900
18473 /** @domName WebGLActiveInfo.size */ 20901 /** @domName WebGLActiveInfo.size */
20902 /// @docsEditable
18474 final int size; 20903 final int size;
18475 20904
18476 /** @domName WebGLActiveInfo.type */ 20905 /** @domName WebGLActiveInfo.type */
20906 /// @docsEditable
18477 final int type; 20907 final int type;
18478 } 20908 }
18479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18480 // for details. All rights reserved. Use of this source code is governed by a 20910 // for details. All rights reserved. Use of this source code is governed by a
18481 // BSD-style license that can be found in the LICENSE file. 20911 // BSD-style license that can be found in the LICENSE file.
18482 20912
18483 20913
18484 /// @domName WebGLBuffer 20914 /// @domName WebGLBuffer
20915 /// @docsEditable
18485 class WebGLBuffer native "*WebGLBuffer" { 20916 class WebGLBuffer native "*WebGLBuffer" {
18486 } 20917 }
18487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18488 // for details. All rights reserved. Use of this source code is governed by a 20919 // for details. All rights reserved. Use of this source code is governed by a
18489 // BSD-style license that can be found in the LICENSE file. 20920 // BSD-style license that can be found in the LICENSE file.
18490 20921
18491 20922
18492 /// @domName WebGLCompressedTextureS3TC 20923 /// @domName WebGLCompressedTextureS3TC
20924 /// @docsEditable
18493 class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" { 20925 class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" {
18494 20926
18495 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 20927 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
18496 20928
18497 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 20929 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
18498 20930
18499 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 20931 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
18500 20932
18501 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 20933 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
18502 } 20934 }
18503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18504 // for details. All rights reserved. Use of this source code is governed by a 20936 // for details. All rights reserved. Use of this source code is governed by a
18505 // BSD-style license that can be found in the LICENSE file. 20937 // BSD-style license that can be found in the LICENSE file.
18506 20938
18507 20939
18508 /// @domName WebGLContextAttributes 20940 /// @domName WebGLContextAttributes
20941 /// @docsEditable
18509 class WebGLContextAttributes native "*WebGLContextAttributes" { 20942 class WebGLContextAttributes native "*WebGLContextAttributes" {
18510 20943
18511 /** @domName WebGLContextAttributes.alpha */ 20944 /** @domName WebGLContextAttributes.alpha */
20945 /// @docsEditable
18512 bool alpha; 20946 bool alpha;
18513 20947
18514 /** @domName WebGLContextAttributes.antialias */ 20948 /** @domName WebGLContextAttributes.antialias */
20949 /// @docsEditable
18515 bool antialias; 20950 bool antialias;
18516 20951
18517 /** @domName WebGLContextAttributes.depth */ 20952 /** @domName WebGLContextAttributes.depth */
20953 /// @docsEditable
18518 bool depth; 20954 bool depth;
18519 20955
18520 /** @domName WebGLContextAttributes.premultipliedAlpha */ 20956 /** @domName WebGLContextAttributes.premultipliedAlpha */
20957 /// @docsEditable
18521 bool premultipliedAlpha; 20958 bool premultipliedAlpha;
18522 20959
18523 /** @domName WebGLContextAttributes.preserveDrawingBuffer */ 20960 /** @domName WebGLContextAttributes.preserveDrawingBuffer */
20961 /// @docsEditable
18524 bool preserveDrawingBuffer; 20962 bool preserveDrawingBuffer;
18525 20963
18526 /** @domName WebGLContextAttributes.stencil */ 20964 /** @domName WebGLContextAttributes.stencil */
20965 /// @docsEditable
18527 bool stencil; 20966 bool stencil;
18528 } 20967 }
18529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18530 // for details. All rights reserved. Use of this source code is governed by a 20969 // for details. All rights reserved. Use of this source code is governed by a
18531 // BSD-style license that can be found in the LICENSE file. 20970 // BSD-style license that can be found in the LICENSE file.
18532 20971
18533 20972
18534 /// @domName WebGLContextEvent 20973 /// @domName WebGLContextEvent
20974 /// @docsEditable
18535 class WebGLContextEvent extends Event native "*WebGLContextEvent" { 20975 class WebGLContextEvent extends Event native "*WebGLContextEvent" {
18536 20976
18537 /** @domName WebGLContextEvent.statusMessage */ 20977 /** @domName WebGLContextEvent.statusMessage */
20978 /// @docsEditable
18538 final String statusMessage; 20979 final String statusMessage;
18539 } 20980 }
18540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18541 // for details. All rights reserved. Use of this source code is governed by a 20982 // for details. All rights reserved. Use of this source code is governed by a
18542 // BSD-style license that can be found in the LICENSE file. 20983 // BSD-style license that can be found in the LICENSE file.
18543 20984
18544 20985
18545 /// @domName WebGLDebugRendererInfo 20986 /// @domName WebGLDebugRendererInfo
20987 /// @docsEditable
18546 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { 20988 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" {
18547 20989
18548 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 20990 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
18549 20991
18550 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 20992 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
18551 } 20993 }
18552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20994 // 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 20995 // 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. 20996 // BSD-style license that can be found in the LICENSE file.
18555 20997
18556 20998
18557 /// @domName WebGLDebugShaders 20999 /// @domName WebGLDebugShaders
21000 /// @docsEditable
18558 class WebGLDebugShaders native "*WebGLDebugShaders" { 21001 class WebGLDebugShaders native "*WebGLDebugShaders" {
18559 21002
18560 /** @domName WebGLDebugShaders.getTranslatedShaderSource */ 21003 /** @domName WebGLDebugShaders.getTranslatedShaderSource */
21004 /// @docsEditable
18561 String getTranslatedShaderSource(WebGLShader shader) native; 21005 String getTranslatedShaderSource(WebGLShader shader) native;
18562 } 21006 }
18563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21007 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18564 // for details. All rights reserved. Use of this source code is governed by a 21008 // for details. All rights reserved. Use of this source code is governed by a
18565 // BSD-style license that can be found in the LICENSE file. 21009 // BSD-style license that can be found in the LICENSE file.
18566 21010
18567 21011
18568 /// @domName WebGLDepthTexture 21012 /// @domName WebGLDepthTexture
21013 /// @docsEditable
18569 class WebGLDepthTexture native "*WebGLDepthTexture" { 21014 class WebGLDepthTexture native "*WebGLDepthTexture" {
18570 21015
18571 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 21016 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
18572 } 21017 }
18573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18574 // for details. All rights reserved. Use of this source code is governed by a 21019 // for details. All rights reserved. Use of this source code is governed by a
18575 // BSD-style license that can be found in the LICENSE file. 21020 // BSD-style license that can be found in the LICENSE file.
18576 21021
18577 21022
18578 /// @domName WebGLFramebuffer 21023 /// @domName WebGLFramebuffer
21024 /// @docsEditable
18579 class WebGLFramebuffer native "*WebGLFramebuffer" { 21025 class WebGLFramebuffer native "*WebGLFramebuffer" {
18580 } 21026 }
18581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18582 // for details. All rights reserved. Use of this source code is governed by a 21028 // for details. All rights reserved. Use of this source code is governed by a
18583 // BSD-style license that can be found in the LICENSE file. 21029 // BSD-style license that can be found in the LICENSE file.
18584 21030
18585 21031
18586 /// @domName WebGLLoseContext 21032 /// @domName WebGLLoseContext
21033 /// @docsEditable
18587 class WebGLLoseContext native "*WebGLLoseContext" { 21034 class WebGLLoseContext native "*WebGLLoseContext" {
18588 21035
18589 /** @domName WebGLLoseContext.loseContext */ 21036 /** @domName WebGLLoseContext.loseContext */
21037 /// @docsEditable
18590 void loseContext() native; 21038 void loseContext() native;
18591 21039
18592 /** @domName WebGLLoseContext.restoreContext */ 21040 /** @domName WebGLLoseContext.restoreContext */
21041 /// @docsEditable
18593 void restoreContext() native; 21042 void restoreContext() native;
18594 } 21043 }
18595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18596 // for details. All rights reserved. Use of this source code is governed by a 21045 // for details. All rights reserved. Use of this source code is governed by a
18597 // BSD-style license that can be found in the LICENSE file. 21046 // BSD-style license that can be found in the LICENSE file.
18598 21047
18599 21048
18600 /// @domName WebGLProgram 21049 /// @domName WebGLProgram
21050 /// @docsEditable
18601 class WebGLProgram native "*WebGLProgram" { 21051 class WebGLProgram native "*WebGLProgram" {
18602 } 21052 }
18603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18604 // for details. All rights reserved. Use of this source code is governed by a 21054 // for details. All rights reserved. Use of this source code is governed by a
18605 // BSD-style license that can be found in the LICENSE file. 21055 // BSD-style license that can be found in the LICENSE file.
18606 21056
18607 21057
18608 /// @domName WebGLRenderbuffer 21058 /// @domName WebGLRenderbuffer
21059 /// @docsEditable
18609 class WebGLRenderbuffer native "*WebGLRenderbuffer" { 21060 class WebGLRenderbuffer native "*WebGLRenderbuffer" {
18610 } 21061 }
18611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18612 // for details. All rights reserved. Use of this source code is governed by a 21063 // for details. All rights reserved. Use of this source code is governed by a
18613 // BSD-style license that can be found in the LICENSE file. 21064 // BSD-style license that can be found in the LICENSE file.
18614 21065
18615 21066
18616 /// @domName WebGLRenderingContext 21067 /// @domName WebGLRenderingContext
21068 /// @docsEditable
18617 class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi ngContext" { 21069 class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi ngContext" {
18618 21070
18619 static const int ACTIVE_ATTRIBUTES = 0x8B89; 21071 static const int ACTIVE_ATTRIBUTES = 0x8B89;
18620 21072
18621 static const int ACTIVE_TEXTURE = 0x84E0; 21073 static const int ACTIVE_TEXTURE = 0x84E0;
18622 21074
18623 static const int ACTIVE_UNIFORMS = 0x8B86; 21075 static const int ACTIVE_UNIFORMS = 0x8B86;
18624 21076
18625 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; 21077 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
18626 21078
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
19200 21652
19201 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; 21653 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
19202 21654
19203 static const int VERTEX_SHADER = 0x8B31; 21655 static const int VERTEX_SHADER = 0x8B31;
19204 21656
19205 static const int VIEWPORT = 0x0BA2; 21657 static const int VIEWPORT = 0x0BA2;
19206 21658
19207 static const int ZERO = 0; 21659 static const int ZERO = 0;
19208 21660
19209 /** @domName WebGLRenderingContext.drawingBufferHeight */ 21661 /** @domName WebGLRenderingContext.drawingBufferHeight */
21662 /// @docsEditable
19210 final int drawingBufferHeight; 21663 final int drawingBufferHeight;
19211 21664
19212 /** @domName WebGLRenderingContext.drawingBufferWidth */ 21665 /** @domName WebGLRenderingContext.drawingBufferWidth */
21666 /// @docsEditable
19213 final int drawingBufferWidth; 21667 final int drawingBufferWidth;
19214 21668
19215 /** @domName WebGLRenderingContext.activeTexture */ 21669 /** @domName WebGLRenderingContext.activeTexture */
21670 /// @docsEditable
19216 void activeTexture(int texture) native; 21671 void activeTexture(int texture) native;
19217 21672
19218 /** @domName WebGLRenderingContext.attachShader */ 21673 /** @domName WebGLRenderingContext.attachShader */
21674 /// @docsEditable
19219 void attachShader(WebGLProgram program, WebGLShader shader) native; 21675 void attachShader(WebGLProgram program, WebGLShader shader) native;
19220 21676
19221 /** @domName WebGLRenderingContext.bindAttribLocation */ 21677 /** @domName WebGLRenderingContext.bindAttribLocation */
21678 /// @docsEditable
19222 void bindAttribLocation(WebGLProgram program, int index, String name) native; 21679 void bindAttribLocation(WebGLProgram program, int index, String name) native;
19223 21680
19224 /** @domName WebGLRenderingContext.bindBuffer */ 21681 /** @domName WebGLRenderingContext.bindBuffer */
21682 /// @docsEditable
19225 void bindBuffer(int target, WebGLBuffer buffer) native; 21683 void bindBuffer(int target, WebGLBuffer buffer) native;
19226 21684
19227 /** @domName WebGLRenderingContext.bindFramebuffer */ 21685 /** @domName WebGLRenderingContext.bindFramebuffer */
21686 /// @docsEditable
19228 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; 21687 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native;
19229 21688
19230 /** @domName WebGLRenderingContext.bindRenderbuffer */ 21689 /** @domName WebGLRenderingContext.bindRenderbuffer */
21690 /// @docsEditable
19231 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; 21691 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native;
19232 21692
19233 /** @domName WebGLRenderingContext.bindTexture */ 21693 /** @domName WebGLRenderingContext.bindTexture */
21694 /// @docsEditable
19234 void bindTexture(int target, WebGLTexture texture) native; 21695 void bindTexture(int target, WebGLTexture texture) native;
19235 21696
19236 /** @domName WebGLRenderingContext.blendColor */ 21697 /** @domName WebGLRenderingContext.blendColor */
21698 /// @docsEditable
19237 void blendColor(num red, num green, num blue, num alpha) native; 21699 void blendColor(num red, num green, num blue, num alpha) native;
19238 21700
19239 /** @domName WebGLRenderingContext.blendEquation */ 21701 /** @domName WebGLRenderingContext.blendEquation */
21702 /// @docsEditable
19240 void blendEquation(int mode) native; 21703 void blendEquation(int mode) native;
19241 21704
19242 /** @domName WebGLRenderingContext.blendEquationSeparate */ 21705 /** @domName WebGLRenderingContext.blendEquationSeparate */
21706 /// @docsEditable
19243 void blendEquationSeparate(int modeRGB, int modeAlpha) native; 21707 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
19244 21708
19245 /** @domName WebGLRenderingContext.blendFunc */ 21709 /** @domName WebGLRenderingContext.blendFunc */
21710 /// @docsEditable
19246 void blendFunc(int sfactor, int dfactor) native; 21711 void blendFunc(int sfactor, int dfactor) native;
19247 21712
19248 /** @domName WebGLRenderingContext.blendFuncSeparate */ 21713 /** @domName WebGLRenderingContext.blendFuncSeparate */
21714 /// @docsEditable
19249 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 21715 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
19250 21716
19251 /** @domName WebGLRenderingContext.bufferData */ 21717 /** @domName WebGLRenderingContext.bufferData */
21718 /// @docsEditable
19252 void bufferData(int target, data_OR_size, int usage) native; 21719 void bufferData(int target, data_OR_size, int usage) native;
19253 21720
19254 /** @domName WebGLRenderingContext.bufferSubData */ 21721 /** @domName WebGLRenderingContext.bufferSubData */
21722 /// @docsEditable
19255 void bufferSubData(int target, int offset, data) native; 21723 void bufferSubData(int target, int offset, data) native;
19256 21724
19257 /** @domName WebGLRenderingContext.checkFramebufferStatus */ 21725 /** @domName WebGLRenderingContext.checkFramebufferStatus */
21726 /// @docsEditable
19258 int checkFramebufferStatus(int target) native; 21727 int checkFramebufferStatus(int target) native;
19259 21728
19260 /** @domName WebGLRenderingContext.clear */ 21729 /** @domName WebGLRenderingContext.clear */
21730 /// @docsEditable
19261 void clear(int mask) native; 21731 void clear(int mask) native;
19262 21732
19263 /** @domName WebGLRenderingContext.clearColor */ 21733 /** @domName WebGLRenderingContext.clearColor */
21734 /// @docsEditable
19264 void clearColor(num red, num green, num blue, num alpha) native; 21735 void clearColor(num red, num green, num blue, num alpha) native;
19265 21736
19266 /** @domName WebGLRenderingContext.clearDepth */ 21737 /** @domName WebGLRenderingContext.clearDepth */
21738 /// @docsEditable
19267 void clearDepth(num depth) native; 21739 void clearDepth(num depth) native;
19268 21740
19269 /** @domName WebGLRenderingContext.clearStencil */ 21741 /** @domName WebGLRenderingContext.clearStencil */
21742 /// @docsEditable
19270 void clearStencil(int s) native; 21743 void clearStencil(int s) native;
19271 21744
19272 /** @domName WebGLRenderingContext.colorMask */ 21745 /** @domName WebGLRenderingContext.colorMask */
21746 /// @docsEditable
19273 void colorMask(bool red, bool green, bool blue, bool alpha) native; 21747 void colorMask(bool red, bool green, bool blue, bool alpha) native;
19274 21748
19275 /** @domName WebGLRenderingContext.compileShader */ 21749 /** @domName WebGLRenderingContext.compileShader */
21750 /// @docsEditable
19276 void compileShader(WebGLShader shader) native; 21751 void compileShader(WebGLShader shader) native;
19277 21752
19278 /** @domName WebGLRenderingContext.compressedTexImage2D */ 21753 /** @domName WebGLRenderingContext.compressedTexImage2D */
21754 /// @docsEditable
19279 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) native; 21755 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) native;
19280 21756
19281 /** @domName WebGLRenderingContext.compressedTexSubImage2D */ 21757 /** @domName WebGLRenderingContext.compressedTexSubImage2D */
21758 /// @docsEditable
19282 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native; 21759 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native;
19283 21760
19284 /** @domName WebGLRenderingContext.copyTexImage2D */ 21761 /** @domName WebGLRenderingContext.copyTexImage2D */
21762 /// @docsEditable
19285 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native; 21763 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
19286 21764
19287 /** @domName WebGLRenderingContext.copyTexSubImage2D */ 21765 /** @domName WebGLRenderingContext.copyTexSubImage2D */
21766 /// @docsEditable
19288 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; 21767 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
19289 21768
19290 /** @domName WebGLRenderingContext.createBuffer */ 21769 /** @domName WebGLRenderingContext.createBuffer */
21770 /// @docsEditable
19291 WebGLBuffer createBuffer() native; 21771 WebGLBuffer createBuffer() native;
19292 21772
19293 /** @domName WebGLRenderingContext.createFramebuffer */ 21773 /** @domName WebGLRenderingContext.createFramebuffer */
21774 /// @docsEditable
19294 WebGLFramebuffer createFramebuffer() native; 21775 WebGLFramebuffer createFramebuffer() native;
19295 21776
19296 /** @domName WebGLRenderingContext.createProgram */ 21777 /** @domName WebGLRenderingContext.createProgram */
21778 /// @docsEditable
19297 WebGLProgram createProgram() native; 21779 WebGLProgram createProgram() native;
19298 21780
19299 /** @domName WebGLRenderingContext.createRenderbuffer */ 21781 /** @domName WebGLRenderingContext.createRenderbuffer */
21782 /// @docsEditable
19300 WebGLRenderbuffer createRenderbuffer() native; 21783 WebGLRenderbuffer createRenderbuffer() native;
19301 21784
19302 /** @domName WebGLRenderingContext.createShader */ 21785 /** @domName WebGLRenderingContext.createShader */
21786 /// @docsEditable
19303 WebGLShader createShader(int type) native; 21787 WebGLShader createShader(int type) native;
19304 21788
19305 /** @domName WebGLRenderingContext.createTexture */ 21789 /** @domName WebGLRenderingContext.createTexture */
21790 /// @docsEditable
19306 WebGLTexture createTexture() native; 21791 WebGLTexture createTexture() native;
19307 21792
19308 /** @domName WebGLRenderingContext.cullFace */ 21793 /** @domName WebGLRenderingContext.cullFace */
21794 /// @docsEditable
19309 void cullFace(int mode) native; 21795 void cullFace(int mode) native;
19310 21796
19311 /** @domName WebGLRenderingContext.deleteBuffer */ 21797 /** @domName WebGLRenderingContext.deleteBuffer */
21798 /// @docsEditable
19312 void deleteBuffer(WebGLBuffer buffer) native; 21799 void deleteBuffer(WebGLBuffer buffer) native;
19313 21800
19314 /** @domName WebGLRenderingContext.deleteFramebuffer */ 21801 /** @domName WebGLRenderingContext.deleteFramebuffer */
21802 /// @docsEditable
19315 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; 21803 void deleteFramebuffer(WebGLFramebuffer framebuffer) native;
19316 21804
19317 /** @domName WebGLRenderingContext.deleteProgram */ 21805 /** @domName WebGLRenderingContext.deleteProgram */
21806 /// @docsEditable
19318 void deleteProgram(WebGLProgram program) native; 21807 void deleteProgram(WebGLProgram program) native;
19319 21808
19320 /** @domName WebGLRenderingContext.deleteRenderbuffer */ 21809 /** @domName WebGLRenderingContext.deleteRenderbuffer */
21810 /// @docsEditable
19321 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; 21811 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native;
19322 21812
19323 /** @domName WebGLRenderingContext.deleteShader */ 21813 /** @domName WebGLRenderingContext.deleteShader */
21814 /// @docsEditable
19324 void deleteShader(WebGLShader shader) native; 21815 void deleteShader(WebGLShader shader) native;
19325 21816
19326 /** @domName WebGLRenderingContext.deleteTexture */ 21817 /** @domName WebGLRenderingContext.deleteTexture */
21818 /// @docsEditable
19327 void deleteTexture(WebGLTexture texture) native; 21819 void deleteTexture(WebGLTexture texture) native;
19328 21820
19329 /** @domName WebGLRenderingContext.depthFunc */ 21821 /** @domName WebGLRenderingContext.depthFunc */
21822 /// @docsEditable
19330 void depthFunc(int func) native; 21823 void depthFunc(int func) native;
19331 21824
19332 /** @domName WebGLRenderingContext.depthMask */ 21825 /** @domName WebGLRenderingContext.depthMask */
21826 /// @docsEditable
19333 void depthMask(bool flag) native; 21827 void depthMask(bool flag) native;
19334 21828
19335 /** @domName WebGLRenderingContext.depthRange */ 21829 /** @domName WebGLRenderingContext.depthRange */
21830 /// @docsEditable
19336 void depthRange(num zNear, num zFar) native; 21831 void depthRange(num zNear, num zFar) native;
19337 21832
19338 /** @domName WebGLRenderingContext.detachShader */ 21833 /** @domName WebGLRenderingContext.detachShader */
21834 /// @docsEditable
19339 void detachShader(WebGLProgram program, WebGLShader shader) native; 21835 void detachShader(WebGLProgram program, WebGLShader shader) native;
19340 21836
19341 /** @domName WebGLRenderingContext.disable */ 21837 /** @domName WebGLRenderingContext.disable */
21838 /// @docsEditable
19342 void disable(int cap) native; 21839 void disable(int cap) native;
19343 21840
19344 /** @domName WebGLRenderingContext.disableVertexAttribArray */ 21841 /** @domName WebGLRenderingContext.disableVertexAttribArray */
21842 /// @docsEditable
19345 void disableVertexAttribArray(int index) native; 21843 void disableVertexAttribArray(int index) native;
19346 21844
19347 /** @domName WebGLRenderingContext.drawArrays */ 21845 /** @domName WebGLRenderingContext.drawArrays */
21846 /// @docsEditable
19348 void drawArrays(int mode, int first, int count) native; 21847 void drawArrays(int mode, int first, int count) native;
19349 21848
19350 /** @domName WebGLRenderingContext.drawElements */ 21849 /** @domName WebGLRenderingContext.drawElements */
21850 /// @docsEditable
19351 void drawElements(int mode, int count, int type, int offset) native; 21851 void drawElements(int mode, int count, int type, int offset) native;
19352 21852
19353 /** @domName WebGLRenderingContext.enable */ 21853 /** @domName WebGLRenderingContext.enable */
21854 /// @docsEditable
19354 void enable(int cap) native; 21855 void enable(int cap) native;
19355 21856
19356 /** @domName WebGLRenderingContext.enableVertexAttribArray */ 21857 /** @domName WebGLRenderingContext.enableVertexAttribArray */
21858 /// @docsEditable
19357 void enableVertexAttribArray(int index) native; 21859 void enableVertexAttribArray(int index) native;
19358 21860
19359 /** @domName WebGLRenderingContext.finish */ 21861 /** @domName WebGLRenderingContext.finish */
21862 /// @docsEditable
19360 void finish() native; 21863 void finish() native;
19361 21864
19362 /** @domName WebGLRenderingContext.flush */ 21865 /** @domName WebGLRenderingContext.flush */
21866 /// @docsEditable
19363 void flush() native; 21867 void flush() native;
19364 21868
19365 /** @domName WebGLRenderingContext.framebufferRenderbuffer */ 21869 /** @domName WebGLRenderingContext.framebufferRenderbuffer */
21870 /// @docsEditable
19366 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) native; 21871 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) native;
19367 21872
19368 /** @domName WebGLRenderingContext.framebufferTexture2D */ 21873 /** @domName WebGLRenderingContext.framebufferTexture2D */
21874 /// @docsEditable
19369 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) native; 21875 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) native;
19370 21876
19371 /** @domName WebGLRenderingContext.frontFace */ 21877 /** @domName WebGLRenderingContext.frontFace */
21878 /// @docsEditable
19372 void frontFace(int mode) native; 21879 void frontFace(int mode) native;
19373 21880
19374 /** @domName WebGLRenderingContext.generateMipmap */ 21881 /** @domName WebGLRenderingContext.generateMipmap */
21882 /// @docsEditable
19375 void generateMipmap(int target) native; 21883 void generateMipmap(int target) native;
19376 21884
19377 /** @domName WebGLRenderingContext.getActiveAttrib */ 21885 /** @domName WebGLRenderingContext.getActiveAttrib */
21886 /// @docsEditable
19378 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; 21887 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native;
19379 21888
19380 /** @domName WebGLRenderingContext.getActiveUniform */ 21889 /** @domName WebGLRenderingContext.getActiveUniform */
21890 /// @docsEditable
19381 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; 21891 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native;
19382 21892
19383 /** @domName WebGLRenderingContext.getAttachedShaders */ 21893 /** @domName WebGLRenderingContext.getAttachedShaders */
21894 /// @docsEditable
19384 void getAttachedShaders(WebGLProgram program) native; 21895 void getAttachedShaders(WebGLProgram program) native;
19385 21896
19386 /** @domName WebGLRenderingContext.getAttribLocation */ 21897 /** @domName WebGLRenderingContext.getAttribLocation */
21898 /// @docsEditable
19387 int getAttribLocation(WebGLProgram program, String name) native; 21899 int getAttribLocation(WebGLProgram program, String name) native;
19388 21900
19389 /** @domName WebGLRenderingContext.getBufferParameter */ 21901 /** @domName WebGLRenderingContext.getBufferParameter */
21902 /// @docsEditable
19390 Object getBufferParameter(int target, int pname) native; 21903 Object getBufferParameter(int target, int pname) native;
19391 21904
19392 /** @domName WebGLRenderingContext.getContextAttributes */ 21905 /** @domName WebGLRenderingContext.getContextAttributes */
21906 /// @docsEditable
19393 WebGLContextAttributes getContextAttributes() native; 21907 WebGLContextAttributes getContextAttributes() native;
19394 21908
19395 /** @domName WebGLRenderingContext.getError */ 21909 /** @domName WebGLRenderingContext.getError */
21910 /// @docsEditable
19396 int getError() native; 21911 int getError() native;
19397 21912
19398 /** @domName WebGLRenderingContext.getExtension */ 21913 /** @domName WebGLRenderingContext.getExtension */
21914 /// @docsEditable
19399 Object getExtension(String name) native; 21915 Object getExtension(String name) native;
19400 21916
19401 /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */ 21917 /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */
21918 /// @docsEditable
19402 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native; 21919 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
19403 21920
19404 /** @domName WebGLRenderingContext.getParameter */ 21921 /** @domName WebGLRenderingContext.getParameter */
21922 /// @docsEditable
19405 Object getParameter(int pname) native; 21923 Object getParameter(int pname) native;
19406 21924
19407 /** @domName WebGLRenderingContext.getProgramInfoLog */ 21925 /** @domName WebGLRenderingContext.getProgramInfoLog */
21926 /// @docsEditable
19408 String getProgramInfoLog(WebGLProgram program) native; 21927 String getProgramInfoLog(WebGLProgram program) native;
19409 21928
19410 /** @domName WebGLRenderingContext.getProgramParameter */ 21929 /** @domName WebGLRenderingContext.getProgramParameter */
21930 /// @docsEditable
19411 Object getProgramParameter(WebGLProgram program, int pname) native; 21931 Object getProgramParameter(WebGLProgram program, int pname) native;
19412 21932
19413 /** @domName WebGLRenderingContext.getRenderbufferParameter */ 21933 /** @domName WebGLRenderingContext.getRenderbufferParameter */
21934 /// @docsEditable
19414 Object getRenderbufferParameter(int target, int pname) native; 21935 Object getRenderbufferParameter(int target, int pname) native;
19415 21936
19416 /** @domName WebGLRenderingContext.getShaderInfoLog */ 21937 /** @domName WebGLRenderingContext.getShaderInfoLog */
21938 /// @docsEditable
19417 String getShaderInfoLog(WebGLShader shader) native; 21939 String getShaderInfoLog(WebGLShader shader) native;
19418 21940
19419 /** @domName WebGLRenderingContext.getShaderParameter */ 21941 /** @domName WebGLRenderingContext.getShaderParameter */
21942 /// @docsEditable
19420 Object getShaderParameter(WebGLShader shader, int pname) native; 21943 Object getShaderParameter(WebGLShader shader, int pname) native;
19421 21944
19422 /** @domName WebGLRenderingContext.getShaderPrecisionFormat */ 21945 /** @domName WebGLRenderingContext.getShaderPrecisionFormat */
21946 /// @docsEditable
19423 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype) native; 21947 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype) native;
19424 21948
19425 /** @domName WebGLRenderingContext.getShaderSource */ 21949 /** @domName WebGLRenderingContext.getShaderSource */
21950 /// @docsEditable
19426 String getShaderSource(WebGLShader shader) native; 21951 String getShaderSource(WebGLShader shader) native;
19427 21952
19428 /** @domName WebGLRenderingContext.getSupportedExtensions */ 21953 /** @domName WebGLRenderingContext.getSupportedExtensions */
21954 /// @docsEditable
19429 List<String> getSupportedExtensions() native; 21955 List<String> getSupportedExtensions() native;
19430 21956
19431 /** @domName WebGLRenderingContext.getTexParameter */ 21957 /** @domName WebGLRenderingContext.getTexParameter */
21958 /// @docsEditable
19432 Object getTexParameter(int target, int pname) native; 21959 Object getTexParameter(int target, int pname) native;
19433 21960
19434 /** @domName WebGLRenderingContext.getUniform */ 21961 /** @domName WebGLRenderingContext.getUniform */
21962 /// @docsEditable
19435 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; 21963 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native;
19436 21964
19437 /** @domName WebGLRenderingContext.getUniformLocation */ 21965 /** @domName WebGLRenderingContext.getUniformLocation */
21966 /// @docsEditable
19438 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat ive; 21967 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat ive;
19439 21968
19440 /** @domName WebGLRenderingContext.getVertexAttrib */ 21969 /** @domName WebGLRenderingContext.getVertexAttrib */
21970 /// @docsEditable
19441 Object getVertexAttrib(int index, int pname) native; 21971 Object getVertexAttrib(int index, int pname) native;
19442 21972
19443 /** @domName WebGLRenderingContext.getVertexAttribOffset */ 21973 /** @domName WebGLRenderingContext.getVertexAttribOffset */
21974 /// @docsEditable
19444 int getVertexAttribOffset(int index, int pname) native; 21975 int getVertexAttribOffset(int index, int pname) native;
19445 21976
19446 /** @domName WebGLRenderingContext.hint */ 21977 /** @domName WebGLRenderingContext.hint */
21978 /// @docsEditable
19447 void hint(int target, int mode) native; 21979 void hint(int target, int mode) native;
19448 21980
19449 /** @domName WebGLRenderingContext.isBuffer */ 21981 /** @domName WebGLRenderingContext.isBuffer */
21982 /// @docsEditable
19450 bool isBuffer(WebGLBuffer buffer) native; 21983 bool isBuffer(WebGLBuffer buffer) native;
19451 21984
19452 /** @domName WebGLRenderingContext.isContextLost */ 21985 /** @domName WebGLRenderingContext.isContextLost */
21986 /// @docsEditable
19453 bool isContextLost() native; 21987 bool isContextLost() native;
19454 21988
19455 /** @domName WebGLRenderingContext.isEnabled */ 21989 /** @domName WebGLRenderingContext.isEnabled */
21990 /// @docsEditable
19456 bool isEnabled(int cap) native; 21991 bool isEnabled(int cap) native;
19457 21992
19458 /** @domName WebGLRenderingContext.isFramebuffer */ 21993 /** @domName WebGLRenderingContext.isFramebuffer */
21994 /// @docsEditable
19459 bool isFramebuffer(WebGLFramebuffer framebuffer) native; 21995 bool isFramebuffer(WebGLFramebuffer framebuffer) native;
19460 21996
19461 /** @domName WebGLRenderingContext.isProgram */ 21997 /** @domName WebGLRenderingContext.isProgram */
21998 /// @docsEditable
19462 bool isProgram(WebGLProgram program) native; 21999 bool isProgram(WebGLProgram program) native;
19463 22000
19464 /** @domName WebGLRenderingContext.isRenderbuffer */ 22001 /** @domName WebGLRenderingContext.isRenderbuffer */
22002 /// @docsEditable
19465 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; 22003 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native;
19466 22004
19467 /** @domName WebGLRenderingContext.isShader */ 22005 /** @domName WebGLRenderingContext.isShader */
22006 /// @docsEditable
19468 bool isShader(WebGLShader shader) native; 22007 bool isShader(WebGLShader shader) native;
19469 22008
19470 /** @domName WebGLRenderingContext.isTexture */ 22009 /** @domName WebGLRenderingContext.isTexture */
22010 /// @docsEditable
19471 bool isTexture(WebGLTexture texture) native; 22011 bool isTexture(WebGLTexture texture) native;
19472 22012
19473 /** @domName WebGLRenderingContext.lineWidth */ 22013 /** @domName WebGLRenderingContext.lineWidth */
22014 /// @docsEditable
19474 void lineWidth(num width) native; 22015 void lineWidth(num width) native;
19475 22016
19476 /** @domName WebGLRenderingContext.linkProgram */ 22017 /** @domName WebGLRenderingContext.linkProgram */
22018 /// @docsEditable
19477 void linkProgram(WebGLProgram program) native; 22019 void linkProgram(WebGLProgram program) native;
19478 22020
19479 /** @domName WebGLRenderingContext.pixelStorei */ 22021 /** @domName WebGLRenderingContext.pixelStorei */
22022 /// @docsEditable
19480 void pixelStorei(int pname, int param) native; 22023 void pixelStorei(int pname, int param) native;
19481 22024
19482 /** @domName WebGLRenderingContext.polygonOffset */ 22025 /** @domName WebGLRenderingContext.polygonOffset */
22026 /// @docsEditable
19483 void polygonOffset(num factor, num units) native; 22027 void polygonOffset(num factor, num units) native;
19484 22028
19485 /** @domName WebGLRenderingContext.readPixels */ 22029 /** @domName WebGLRenderingContext.readPixels */
22030 /// @docsEditable
19486 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) native; 22031 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) native;
19487 22032
19488 /** @domName WebGLRenderingContext.releaseShaderCompiler */ 22033 /** @domName WebGLRenderingContext.releaseShaderCompiler */
22034 /// @docsEditable
19489 void releaseShaderCompiler() native; 22035 void releaseShaderCompiler() native;
19490 22036
19491 /** @domName WebGLRenderingContext.renderbufferStorage */ 22037 /** @domName WebGLRenderingContext.renderbufferStorage */
22038 /// @docsEditable
19492 void renderbufferStorage(int target, int internalformat, int width, int height ) native; 22039 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
19493 22040
19494 /** @domName WebGLRenderingContext.sampleCoverage */ 22041 /** @domName WebGLRenderingContext.sampleCoverage */
22042 /// @docsEditable
19495 void sampleCoverage(num value, bool invert) native; 22043 void sampleCoverage(num value, bool invert) native;
19496 22044
19497 /** @domName WebGLRenderingContext.scissor */ 22045 /** @domName WebGLRenderingContext.scissor */
22046 /// @docsEditable
19498 void scissor(int x, int y, int width, int height) native; 22047 void scissor(int x, int y, int width, int height) native;
19499 22048
19500 /** @domName WebGLRenderingContext.shaderSource */ 22049 /** @domName WebGLRenderingContext.shaderSource */
22050 /// @docsEditable
19501 void shaderSource(WebGLShader shader, String string) native; 22051 void shaderSource(WebGLShader shader, String string) native;
19502 22052
19503 /** @domName WebGLRenderingContext.stencilFunc */ 22053 /** @domName WebGLRenderingContext.stencilFunc */
22054 /// @docsEditable
19504 void stencilFunc(int func, int ref, int mask) native; 22055 void stencilFunc(int func, int ref, int mask) native;
19505 22056
19506 /** @domName WebGLRenderingContext.stencilFuncSeparate */ 22057 /** @domName WebGLRenderingContext.stencilFuncSeparate */
22058 /// @docsEditable
19507 void stencilFuncSeparate(int face, int func, int ref, int mask) native; 22059 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
19508 22060
19509 /** @domName WebGLRenderingContext.stencilMask */ 22061 /** @domName WebGLRenderingContext.stencilMask */
22062 /// @docsEditable
19510 void stencilMask(int mask) native; 22063 void stencilMask(int mask) native;
19511 22064
19512 /** @domName WebGLRenderingContext.stencilMaskSeparate */ 22065 /** @domName WebGLRenderingContext.stencilMaskSeparate */
22066 /// @docsEditable
19513 void stencilMaskSeparate(int face, int mask) native; 22067 void stencilMaskSeparate(int face, int mask) native;
19514 22068
19515 /** @domName WebGLRenderingContext.stencilOp */ 22069 /** @domName WebGLRenderingContext.stencilOp */
22070 /// @docsEditable
19516 void stencilOp(int fail, int zfail, int zpass) native; 22071 void stencilOp(int fail, int zfail, int zpass) native;
19517 22072
19518 /** @domName WebGLRenderingContext.stencilOpSeparate */ 22073 /** @domName WebGLRenderingContext.stencilOpSeparate */
22074 /// @docsEditable
19519 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 22075 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
19520 22076
19521 /** @domName WebGLRenderingContext.texImage2D */ 22077 /** @domName WebGLRenderingContext.texImage2D */
22078 /// @docsEditable
19522 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]) { 22079 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]) {
19523 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))) { 22080 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))) {
19524 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 22081 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
19525 return; 22082 return;
19526 } 22083 }
19527 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)) && 22084 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)) &&
19528 !?format && 22085 !?format &&
19529 !?type && 22086 !?type &&
19530 !?pixels) { 22087 !?pixels) {
19531 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video); 22088 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video);
(...skipping 23 matching lines...) Expand all
19555 } 22112 }
19556 throw new ArgumentError("Incorrect number or type of arguments"); 22113 throw new ArgumentError("Incorrect number or type of arguments");
19557 } 22114 }
19558 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, ArrayBufferView pixels) native "texImage2D"; 22115 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, ArrayBufferView pixels) native "texImage2D";
19559 void _texImage2D_2(target, level, internalformat, format, type, pixels) native "texImage2D"; 22116 void _texImage2D_2(target, level, internalformat, format, type, pixels) native "texImage2D";
19560 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native "texImage2D"; 22117 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native "texImage2D";
19561 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native "texImage2D"; 22118 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native "texImage2D";
19562 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native "texImage2D"; 22119 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native "texImage2D";
19563 22120
19564 /** @domName WebGLRenderingContext.texParameterf */ 22121 /** @domName WebGLRenderingContext.texParameterf */
22122 /// @docsEditable
19565 void texParameterf(int target, int pname, num param) native; 22123 void texParameterf(int target, int pname, num param) native;
19566 22124
19567 /** @domName WebGLRenderingContext.texParameteri */ 22125 /** @domName WebGLRenderingContext.texParameteri */
22126 /// @docsEditable
19568 void texParameteri(int target, int pname, int param) native; 22127 void texParameteri(int target, int pname, int param) native;
19569 22128
19570 /** @domName WebGLRenderingContext.texSubImage2D */ 22129 /** @domName WebGLRenderingContext.texSubImage2D */
22130 /// @docsEditable
19571 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]) { 22131 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]) {
19572 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))) { 22132 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))) {
19573 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 22133 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
19574 return; 22134 return;
19575 } 22135 }
19576 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)) && 22136 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)) &&
19577 !?type && 22137 !?type &&
19578 !?pixels) { 22138 !?pixels) {
19579 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video); 22139 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video);
19580 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1); 22140 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1);
(...skipping 19 matching lines...) Expand all
19600 } 22160 }
19601 throw new ArgumentError("Incorrect number or type of arguments"); 22161 throw new ArgumentError("Incorrect number or type of arguments");
19602 } 22162 }
19603 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, ArrayBufferView pixels) native "texSubImage2D"; 22163 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, ArrayBufferView pixels) native "texSubImage2D";
19604 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative "texSubImage2D"; 22164 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative "texSubImage2D";
19605 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native "texSubImage2D"; 22165 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native "texSubImage2D";
19606 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native "texSubImage2D"; 22166 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native "texSubImage2D";
19607 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native "texSubImage2D"; 22167 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native "texSubImage2D";
19608 22168
19609 /** @domName WebGLRenderingContext.uniform1f */ 22169 /** @domName WebGLRenderingContext.uniform1f */
22170 /// @docsEditable
19610 void uniform1f(WebGLUniformLocation location, num x) native; 22171 void uniform1f(WebGLUniformLocation location, num x) native;
19611 22172
19612 /** @domName WebGLRenderingContext.uniform1fv */ 22173 /** @domName WebGLRenderingContext.uniform1fv */
22174 /// @docsEditable
19613 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; 22175 void uniform1fv(WebGLUniformLocation location, Float32Array v) native;
19614 22176
19615 /** @domName WebGLRenderingContext.uniform1i */ 22177 /** @domName WebGLRenderingContext.uniform1i */
22178 /// @docsEditable
19616 void uniform1i(WebGLUniformLocation location, int x) native; 22179 void uniform1i(WebGLUniformLocation location, int x) native;
19617 22180
19618 /** @domName WebGLRenderingContext.uniform1iv */ 22181 /** @domName WebGLRenderingContext.uniform1iv */
22182 /// @docsEditable
19619 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; 22183 void uniform1iv(WebGLUniformLocation location, Int32Array v) native;
19620 22184
19621 /** @domName WebGLRenderingContext.uniform2f */ 22185 /** @domName WebGLRenderingContext.uniform2f */
22186 /// @docsEditable
19622 void uniform2f(WebGLUniformLocation location, num x, num y) native; 22187 void uniform2f(WebGLUniformLocation location, num x, num y) native;
19623 22188
19624 /** @domName WebGLRenderingContext.uniform2fv */ 22189 /** @domName WebGLRenderingContext.uniform2fv */
22190 /// @docsEditable
19625 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; 22191 void uniform2fv(WebGLUniformLocation location, Float32Array v) native;
19626 22192
19627 /** @domName WebGLRenderingContext.uniform2i */ 22193 /** @domName WebGLRenderingContext.uniform2i */
22194 /// @docsEditable
19628 void uniform2i(WebGLUniformLocation location, int x, int y) native; 22195 void uniform2i(WebGLUniformLocation location, int x, int y) native;
19629 22196
19630 /** @domName WebGLRenderingContext.uniform2iv */ 22197 /** @domName WebGLRenderingContext.uniform2iv */
22198 /// @docsEditable
19631 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; 22199 void uniform2iv(WebGLUniformLocation location, Int32Array v) native;
19632 22200
19633 /** @domName WebGLRenderingContext.uniform3f */ 22201 /** @domName WebGLRenderingContext.uniform3f */
22202 /// @docsEditable
19634 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; 22203 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native;
19635 22204
19636 /** @domName WebGLRenderingContext.uniform3fv */ 22205 /** @domName WebGLRenderingContext.uniform3fv */
22206 /// @docsEditable
19637 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; 22207 void uniform3fv(WebGLUniformLocation location, Float32Array v) native;
19638 22208
19639 /** @domName WebGLRenderingContext.uniform3i */ 22209 /** @domName WebGLRenderingContext.uniform3i */
22210 /// @docsEditable
19640 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; 22211 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native;
19641 22212
19642 /** @domName WebGLRenderingContext.uniform3iv */ 22213 /** @domName WebGLRenderingContext.uniform3iv */
22214 /// @docsEditable
19643 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; 22215 void uniform3iv(WebGLUniformLocation location, Int32Array v) native;
19644 22216
19645 /** @domName WebGLRenderingContext.uniform4f */ 22217 /** @domName WebGLRenderingContext.uniform4f */
22218 /// @docsEditable
19646 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati ve; 22219 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati ve;
19647 22220
19648 /** @domName WebGLRenderingContext.uniform4fv */ 22221 /** @domName WebGLRenderingContext.uniform4fv */
22222 /// @docsEditable
19649 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; 22223 void uniform4fv(WebGLUniformLocation location, Float32Array v) native;
19650 22224
19651 /** @domName WebGLRenderingContext.uniform4i */ 22225 /** @domName WebGLRenderingContext.uniform4i */
22226 /// @docsEditable
19652 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati ve; 22227 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati ve;
19653 22228
19654 /** @domName WebGLRenderingContext.uniform4iv */ 22229 /** @domName WebGLRenderingContext.uniform4iv */
22230 /// @docsEditable
19655 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; 22231 void uniform4iv(WebGLUniformLocation location, Int32Array v) native;
19656 22232
19657 /** @domName WebGLRenderingContext.uniformMatrix2fv */ 22233 /** @domName WebGLRenderingContext.uniformMatrix2fv */
22234 /// @docsEditable
19658 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 22235 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
19659 22236
19660 /** @domName WebGLRenderingContext.uniformMatrix3fv */ 22237 /** @domName WebGLRenderingContext.uniformMatrix3fv */
22238 /// @docsEditable
19661 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 22239 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
19662 22240
19663 /** @domName WebGLRenderingContext.uniformMatrix4fv */ 22241 /** @domName WebGLRenderingContext.uniformMatrix4fv */
22242 /// @docsEditable
19664 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 22243 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
19665 22244
19666 /** @domName WebGLRenderingContext.useProgram */ 22245 /** @domName WebGLRenderingContext.useProgram */
22246 /// @docsEditable
19667 void useProgram(WebGLProgram program) native; 22247 void useProgram(WebGLProgram program) native;
19668 22248
19669 /** @domName WebGLRenderingContext.validateProgram */ 22249 /** @domName WebGLRenderingContext.validateProgram */
22250 /// @docsEditable
19670 void validateProgram(WebGLProgram program) native; 22251 void validateProgram(WebGLProgram program) native;
19671 22252
19672 /** @domName WebGLRenderingContext.vertexAttrib1f */ 22253 /** @domName WebGLRenderingContext.vertexAttrib1f */
22254 /// @docsEditable
19673 void vertexAttrib1f(int indx, num x) native; 22255 void vertexAttrib1f(int indx, num x) native;
19674 22256
19675 /** @domName WebGLRenderingContext.vertexAttrib1fv */ 22257 /** @domName WebGLRenderingContext.vertexAttrib1fv */
22258 /// @docsEditable
19676 void vertexAttrib1fv(int indx, Float32Array values) native; 22259 void vertexAttrib1fv(int indx, Float32Array values) native;
19677 22260
19678 /** @domName WebGLRenderingContext.vertexAttrib2f */ 22261 /** @domName WebGLRenderingContext.vertexAttrib2f */
22262 /// @docsEditable
19679 void vertexAttrib2f(int indx, num x, num y) native; 22263 void vertexAttrib2f(int indx, num x, num y) native;
19680 22264
19681 /** @domName WebGLRenderingContext.vertexAttrib2fv */ 22265 /** @domName WebGLRenderingContext.vertexAttrib2fv */
22266 /// @docsEditable
19682 void vertexAttrib2fv(int indx, Float32Array values) native; 22267 void vertexAttrib2fv(int indx, Float32Array values) native;
19683 22268
19684 /** @domName WebGLRenderingContext.vertexAttrib3f */ 22269 /** @domName WebGLRenderingContext.vertexAttrib3f */
22270 /// @docsEditable
19685 void vertexAttrib3f(int indx, num x, num y, num z) native; 22271 void vertexAttrib3f(int indx, num x, num y, num z) native;
19686 22272
19687 /** @domName WebGLRenderingContext.vertexAttrib3fv */ 22273 /** @domName WebGLRenderingContext.vertexAttrib3fv */
22274 /// @docsEditable
19688 void vertexAttrib3fv(int indx, Float32Array values) native; 22275 void vertexAttrib3fv(int indx, Float32Array values) native;
19689 22276
19690 /** @domName WebGLRenderingContext.vertexAttrib4f */ 22277 /** @domName WebGLRenderingContext.vertexAttrib4f */
22278 /// @docsEditable
19691 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; 22279 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
19692 22280
19693 /** @domName WebGLRenderingContext.vertexAttrib4fv */ 22281 /** @domName WebGLRenderingContext.vertexAttrib4fv */
22282 /// @docsEditable
19694 void vertexAttrib4fv(int indx, Float32Array values) native; 22283 void vertexAttrib4fv(int indx, Float32Array values) native;
19695 22284
19696 /** @domName WebGLRenderingContext.vertexAttribPointer */ 22285 /** @domName WebGLRenderingContext.vertexAttribPointer */
22286 /// @docsEditable
19697 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native; 22287 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
19698 22288
19699 /** @domName WebGLRenderingContext.viewport */ 22289 /** @domName WebGLRenderingContext.viewport */
22290 /// @docsEditable
19700 void viewport(int x, int y, int width, int height) native; 22291 void viewport(int x, int y, int width, int height) native;
19701 } 22292 }
19702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19703 // for details. All rights reserved. Use of this source code is governed by a 22294 // for details. All rights reserved. Use of this source code is governed by a
19704 // BSD-style license that can be found in the LICENSE file. 22295 // BSD-style license that can be found in the LICENSE file.
19705 22296
19706 22297
19707 /// @domName WebGLShader 22298 /// @domName WebGLShader
22299 /// @docsEditable
19708 class WebGLShader native "*WebGLShader" { 22300 class WebGLShader native "*WebGLShader" {
19709 } 22301 }
19710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19711 // for details. All rights reserved. Use of this source code is governed by a 22303 // for details. All rights reserved. Use of this source code is governed by a
19712 // BSD-style license that can be found in the LICENSE file. 22304 // BSD-style license that can be found in the LICENSE file.
19713 22305
19714 22306
19715 /// @domName WebGLShaderPrecisionFormat 22307 /// @domName WebGLShaderPrecisionFormat
22308 /// @docsEditable
19716 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { 22309 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" {
19717 22310
19718 /** @domName WebGLShaderPrecisionFormat.precision */ 22311 /** @domName WebGLShaderPrecisionFormat.precision */
22312 /// @docsEditable
19719 final int precision; 22313 final int precision;
19720 22314
19721 /** @domName WebGLShaderPrecisionFormat.rangeMax */ 22315 /** @domName WebGLShaderPrecisionFormat.rangeMax */
22316 /// @docsEditable
19722 final int rangeMax; 22317 final int rangeMax;
19723 22318
19724 /** @domName WebGLShaderPrecisionFormat.rangeMin */ 22319 /** @domName WebGLShaderPrecisionFormat.rangeMin */
22320 /// @docsEditable
19725 final int rangeMin; 22321 final int rangeMin;
19726 } 22322 }
19727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19728 // for details. All rights reserved. Use of this source code is governed by a 22324 // for details. All rights reserved. Use of this source code is governed by a
19729 // BSD-style license that can be found in the LICENSE file. 22325 // BSD-style license that can be found in the LICENSE file.
19730 22326
19731 22327
19732 /// @domName WebGLTexture 22328 /// @domName WebGLTexture
22329 /// @docsEditable
19733 class WebGLTexture native "*WebGLTexture" { 22330 class WebGLTexture native "*WebGLTexture" {
19734 } 22331 }
19735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19736 // for details. All rights reserved. Use of this source code is governed by a 22333 // for details. All rights reserved. Use of this source code is governed by a
19737 // BSD-style license that can be found in the LICENSE file. 22334 // BSD-style license that can be found in the LICENSE file.
19738 22335
19739 22336
19740 /// @domName WebGLUniformLocation 22337 /// @domName WebGLUniformLocation
22338 /// @docsEditable
19741 class WebGLUniformLocation native "*WebGLUniformLocation" { 22339 class WebGLUniformLocation native "*WebGLUniformLocation" {
19742 } 22340 }
19743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19744 // for details. All rights reserved. Use of this source code is governed by a 22342 // for details. All rights reserved. Use of this source code is governed by a
19745 // BSD-style license that can be found in the LICENSE file. 22343 // BSD-style license that can be found in the LICENSE file.
19746 22344
19747 22345
19748 /// @domName WebGLVertexArrayObjectOES 22346 /// @domName WebGLVertexArrayObjectOES
22347 /// @docsEditable
19749 class WebGLVertexArrayObjectOES native "*WebGLVertexArrayObjectOES" { 22348 class WebGLVertexArrayObjectOES native "*WebGLVertexArrayObjectOES" {
19750 } 22349 }
19751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19752 // for details. All rights reserved. Use of this source code is governed by a 22351 // for details. All rights reserved. Use of this source code is governed by a
19753 // BSD-style license that can be found in the LICENSE file. 22352 // BSD-style license that can be found in the LICENSE file.
19754 22353
19755 22354
19756 /// @domName WebKitCSSFilterValue 22355 /// @domName WebKitCSSFilterValue
22356 /// @docsEditable
19757 class WebKitCSSFilterValue extends _CSSValueList native "*WebKitCSSFilterValue" { 22357 class WebKitCSSFilterValue extends _CSSValueList native "*WebKitCSSFilterValue" {
19758 22358
19759 static const int CSS_FILTER_BLUR = 10; 22359 static const int CSS_FILTER_BLUR = 10;
19760 22360
19761 static const int CSS_FILTER_BRIGHTNESS = 8; 22361 static const int CSS_FILTER_BRIGHTNESS = 8;
19762 22362
19763 static const int CSS_FILTER_CONTRAST = 9; 22363 static const int CSS_FILTER_CONTRAST = 9;
19764 22364
19765 static const int CSS_FILTER_CUSTOM = 12; 22365 static const int CSS_FILTER_CUSTOM = 12;
19766 22366
19767 static const int CSS_FILTER_DROP_SHADOW = 11; 22367 static const int CSS_FILTER_DROP_SHADOW = 11;
19768 22368
19769 static const int CSS_FILTER_GRAYSCALE = 2; 22369 static const int CSS_FILTER_GRAYSCALE = 2;
19770 22370
19771 static const int CSS_FILTER_HUE_ROTATE = 5; 22371 static const int CSS_FILTER_HUE_ROTATE = 5;
19772 22372
19773 static const int CSS_FILTER_INVERT = 6; 22373 static const int CSS_FILTER_INVERT = 6;
19774 22374
19775 static const int CSS_FILTER_OPACITY = 7; 22375 static const int CSS_FILTER_OPACITY = 7;
19776 22376
19777 static const int CSS_FILTER_REFERENCE = 1; 22377 static const int CSS_FILTER_REFERENCE = 1;
19778 22378
19779 static const int CSS_FILTER_SATURATE = 4; 22379 static const int CSS_FILTER_SATURATE = 4;
19780 22380
19781 static const int CSS_FILTER_SEPIA = 3; 22381 static const int CSS_FILTER_SEPIA = 3;
19782 22382
19783 /** @domName WebKitCSSFilterValue.operationType */ 22383 /** @domName WebKitCSSFilterValue.operationType */
22384 /// @docsEditable
19784 final int operationType; 22385 final int operationType;
19785 } 22386 }
19786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19787 // for details. All rights reserved. Use of this source code is governed by a 22388 // for details. All rights reserved. Use of this source code is governed by a
19788 // BSD-style license that can be found in the LICENSE file. 22389 // BSD-style license that can be found in the LICENSE file.
19789 22390
19790 22391
19791 /// @domName WebKitNamedFlow 22392 /// @domName WebKitNamedFlow
22393 /// @docsEditable
19792 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { 22394 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" {
19793 22395
19794 /** @domName WebKitNamedFlow.firstEmptyRegionIndex */ 22396 /** @domName WebKitNamedFlow.firstEmptyRegionIndex */
22397 /// @docsEditable
19795 final int firstEmptyRegionIndex; 22398 final int firstEmptyRegionIndex;
19796 22399
19797 /** @domName WebKitNamedFlow.name */ 22400 /** @domName WebKitNamedFlow.name */
22401 /// @docsEditable
19798 final String name; 22402 final String name;
19799 22403
19800 /** @domName WebKitNamedFlow.overset */ 22404 /** @domName WebKitNamedFlow.overset */
22405 /// @docsEditable
19801 final bool overset; 22406 final bool overset;
19802 22407
19803 /** @domName WebKitNamedFlow.addEventListener */ 22408 /** @domName WebKitNamedFlow.addEventListener */
22409 /// @docsEditable
19804 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 22410 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
19805 22411
19806 /** @domName WebKitNamedFlow.dispatchEvent */ 22412 /** @domName WebKitNamedFlow.dispatchEvent */
22413 /// @docsEditable
19807 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 22414 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
19808 22415
19809 /** @domName WebKitNamedFlow.getContent */ 22416 /** @domName WebKitNamedFlow.getContent */
22417 /// @docsEditable
19810 List<Node> getContent() native; 22418 List<Node> getContent() native;
19811 22419
19812 /** @domName WebKitNamedFlow.getRegions */ 22420 /** @domName WebKitNamedFlow.getRegions */
22421 /// @docsEditable
19813 List<Node> getRegions() native; 22422 List<Node> getRegions() native;
19814 22423
19815 /** @domName WebKitNamedFlow.getRegionsByContent */ 22424 /** @domName WebKitNamedFlow.getRegionsByContent */
22425 /// @docsEditable
19816 List<Node> getRegionsByContent(Node contentNode) native; 22426 List<Node> getRegionsByContent(Node contentNode) native;
19817 22427
19818 /** @domName WebKitNamedFlow.removeEventListener */ 22428 /** @domName WebKitNamedFlow.removeEventListener */
22429 /// @docsEditable
19819 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 22430 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
19820 } 22431 }
19821 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19822 // for details. All rights reserved. Use of this source code is governed by a 22433 // for details. All rights reserved. Use of this source code is governed by a
19823 // BSD-style license that can be found in the LICENSE file. 22434 // BSD-style license that can be found in the LICENSE file.
19824 22435
19825 // WARNING: Do not edit - generated code. 22436 // WARNING: Do not edit - generated code.
19826 22437
19827 22438
19828 class WebSocket extends EventTarget native "*WebSocket" { 22439 class WebSocket extends EventTarget native "*WebSocket" {
19829 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url ); 22440 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url );
19830 22441
19831 /** 22442 /**
19832 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 22443 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
19833 */ 22444 */
22445 /// @docsEditable
19834 WebSocketEvents get on => 22446 WebSocketEvents get on =>
19835 new WebSocketEvents(this); 22447 new WebSocketEvents(this);
19836 22448
19837 static const int CLOSED = 3; 22449 static const int CLOSED = 3;
19838 22450
19839 static const int CLOSING = 2; 22451 static const int CLOSING = 2;
19840 22452
19841 static const int CONNECTING = 0; 22453 static const int CONNECTING = 0;
19842 22454
19843 static const int OPEN = 1; 22455 static const int OPEN = 1;
19844 22456
19845 /** @domName WebSocket.URL */ 22457 /** @domName WebSocket.URL */
22458 /// @docsEditable
19846 final String URL; 22459 final String URL;
19847 22460
19848 /** @domName WebSocket.binaryType */ 22461 /** @domName WebSocket.binaryType */
22462 /// @docsEditable
19849 String binaryType; 22463 String binaryType;
19850 22464
19851 /** @domName WebSocket.bufferedAmount */ 22465 /** @domName WebSocket.bufferedAmount */
22466 /// @docsEditable
19852 final int bufferedAmount; 22467 final int bufferedAmount;
19853 22468
19854 /** @domName WebSocket.extensions */ 22469 /** @domName WebSocket.extensions */
22470 /// @docsEditable
19855 final String extensions; 22471 final String extensions;
19856 22472
19857 /** @domName WebSocket.protocol */ 22473 /** @domName WebSocket.protocol */
22474 /// @docsEditable
19858 final String protocol; 22475 final String protocol;
19859 22476
19860 /** @domName WebSocket.readyState */ 22477 /** @domName WebSocket.readyState */
22478 /// @docsEditable
19861 final int readyState; 22479 final int readyState;
19862 22480
19863 /** @domName WebSocket.url */ 22481 /** @domName WebSocket.url */
22482 /// @docsEditable
19864 final String url; 22483 final String url;
19865 22484
19866 /** @domName WebSocket.addEventListener */ 22485 /** @domName WebSocket.addEventListener */
22486 /// @docsEditable
19867 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 22487 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
19868 22488
19869 /** @domName WebSocket.close */ 22489 /** @domName WebSocket.close */
22490 /// @docsEditable
19870 void close([int code, String reason]) native; 22491 void close([int code, String reason]) native;
19871 22492
19872 /** @domName WebSocket.dispatchEvent */ 22493 /** @domName WebSocket.dispatchEvent */
22494 /// @docsEditable
19873 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 22495 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
19874 22496
19875 /** @domName WebSocket.removeEventListener */ 22497 /** @domName WebSocket.removeEventListener */
22498 /// @docsEditable
19876 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 22499 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
19877 22500
19878 /** @domName WebSocket.send */ 22501 /** @domName WebSocket.send */
22502 /// @docsEditable
19879 void send(data) native; 22503 void send(data) native;
19880 22504
19881 } 22505 }
19882 22506
19883 class WebSocketEvents extends Events { 22507 class WebSocketEvents extends Events {
19884 WebSocketEvents(EventTarget _ptr) : super(_ptr); 22508 WebSocketEvents(EventTarget _ptr) : super(_ptr);
19885 22509
19886 EventListenerList get close => this['close']; 22510 EventListenerList get close => this['close'];
19887 22511
19888 EventListenerList get error => this['error']; 22512 EventListenerList get error => this['error'];
19889 22513
19890 EventListenerList get message => this['message']; 22514 EventListenerList get message => this['message'];
19891 22515
19892 EventListenerList get open => this['open']; 22516 EventListenerList get open => this['open'];
19893 } 22517 }
19894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19895 // for details. All rights reserved. Use of this source code is governed by a 22519 // for details. All rights reserved. Use of this source code is governed by a
19896 // BSD-style license that can be found in the LICENSE file. 22520 // BSD-style license that can be found in the LICENSE file.
19897 22521
19898 22522
19899 class WheelEvent extends MouseEvent native "*WheelEvent" { 22523 class WheelEvent extends MouseEvent native "*WheelEvent" {
19900 22524
19901 /** @domName WheelEvent.webkitDirectionInvertedFromDevice */ 22525 /** @domName WheelEvent.webkitDirectionInvertedFromDevice */
22526 /// @docsEditable
19902 final bool webkitDirectionInvertedFromDevice; 22527 final bool webkitDirectionInvertedFromDevice;
19903 22528
19904 /** @domName WheelEvent.initWebKitWheelEvent */ 22529 /** @domName WheelEvent.initWebKitWheelEvent */
22530 /// @docsEditable
19905 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; 22531 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;
19906 22532
19907 22533
19908 /** @domName WheelEvent.deltaY */ 22534 /** @domName WheelEvent.deltaY */
19909 num get deltaY { 22535 num get deltaY {
19910 if (JS('bool', '#.deltaY !== undefined', this)) { 22536 if (JS('bool', '#.deltaY !== undefined', this)) {
19911 // W3C WheelEvent 22537 // W3C WheelEvent
19912 return this._deltaY; 22538 return this._deltaY;
19913 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { 22539 } else if (JS('bool', '#.wheelDelta !== undefined', this)) {
19914 // Chrome and IE 22540 // Chrome and IE
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
19977 num get _detail => JS('num', '#.detail', this); 22603 num get _detail => JS('num', '#.detail', this);
19978 int get _deltaMode => JS('int', '#.deltaMode', this); 22604 int get _deltaMode => JS('int', '#.deltaMode', this);
19979 22605
19980 } 22606 }
19981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19982 // for details. All rights reserved. Use of this source code is governed by a 22608 // for details. All rights reserved. Use of this source code is governed by a
19983 // BSD-style license that can be found in the LICENSE file. 22609 // BSD-style license that can be found in the LICENSE file.
19984 22610
19985 22611
19986 /// @domName Worker 22612 /// @domName Worker
22613 /// @docsEditable
19987 class Worker extends AbstractWorker native "*Worker" { 22614 class Worker extends AbstractWorker native "*Worker" {
19988 22615
19989 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url); 22616 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url);
19990 22617
19991 /** 22618 /**
19992 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 22619 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
19993 */ 22620 */
22621 /// @docsEditable
19994 WorkerEvents get on => 22622 WorkerEvents get on =>
19995 new WorkerEvents(this); 22623 new WorkerEvents(this);
19996 22624
19997 /** @domName Worker.postMessage */ 22625 /** @domName Worker.postMessage */
22626 /// @docsEditable
19998 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { 22627 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) {
19999 if (?messagePorts) { 22628 if (?messagePorts) {
20000 var message_1 = _convertDartToNative_SerializedScriptValue(message); 22629 var message_1 = _convertDartToNative_SerializedScriptValue(message);
20001 _postMessage_1(message_1, messagePorts); 22630 _postMessage_1(message_1, messagePorts);
20002 return; 22631 return;
20003 } 22632 }
20004 var message_2 = _convertDartToNative_SerializedScriptValue(message); 22633 var message_2 = _convertDartToNative_SerializedScriptValue(message);
20005 _postMessage_2(message_2); 22634 _postMessage_2(message_2);
20006 return; 22635 return;
20007 } 22636 }
20008 void _postMessage_1(message, List messagePorts) native "postMessage"; 22637 void _postMessage_1(message, List messagePorts) native "postMessage";
20009 void _postMessage_2(message) native "postMessage"; 22638 void _postMessage_2(message) native "postMessage";
20010 22639
20011 /** @domName Worker.terminate */ 22640 /** @domName Worker.terminate */
22641 /// @docsEditable
20012 void terminate() native; 22642 void terminate() native;
20013 } 22643 }
20014 22644
20015 class WorkerEvents extends AbstractWorkerEvents { 22645 class WorkerEvents extends AbstractWorkerEvents {
20016 WorkerEvents(EventTarget _ptr) : super(_ptr); 22646 WorkerEvents(EventTarget _ptr) : super(_ptr);
20017 22647
20018 EventListenerList get message => this['message']; 22648 EventListenerList get message => this['message'];
20019 } 22649 }
20020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20021 // for details. All rights reserved. Use of this source code is governed by a 22651 // for details. All rights reserved. Use of this source code is governed by a
20022 // BSD-style license that can be found in the LICENSE file. 22652 // BSD-style license that can be found in the LICENSE file.
20023 22653
20024 22654
20025 /// @domName WorkerContext 22655 /// @domName WorkerContext
22656 /// @docsEditable
20026 class WorkerContext extends EventTarget native "*WorkerContext" { 22657 class WorkerContext extends EventTarget native "*WorkerContext" {
20027 22658
20028 /** 22659 /**
20029 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 22660 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
20030 */ 22661 */
22662 /// @docsEditable
20031 WorkerContextEvents get on => 22663 WorkerContextEvents get on =>
20032 new WorkerContextEvents(this); 22664 new WorkerContextEvents(this);
20033 22665
20034 static const int PERSISTENT = 1; 22666 static const int PERSISTENT = 1;
20035 22667
20036 static const int TEMPORARY = 0; 22668 static const int TEMPORARY = 0;
20037 22669
20038 /** @domName WorkerContext.indexedDB */ 22670 /** @domName WorkerContext.indexedDB */
22671 /// @docsEditable
20039 final IDBFactory indexedDB; 22672 final IDBFactory indexedDB;
20040 22673
20041 /** @domName WorkerContext.location */ 22674 /** @domName WorkerContext.location */
22675 /// @docsEditable
20042 final WorkerLocation location; 22676 final WorkerLocation location;
20043 22677
20044 /** @domName WorkerContext.navigator */ 22678 /** @domName WorkerContext.navigator */
22679 /// @docsEditable
20045 final WorkerNavigator navigator; 22680 final WorkerNavigator navigator;
20046 22681
20047 /** @domName WorkerContext.self */ 22682 /** @domName WorkerContext.self */
22683 /// @docsEditable
20048 final WorkerContext self; 22684 final WorkerContext self;
20049 22685
20050 /** @domName WorkerContext.webkitIndexedDB */ 22686 /** @domName WorkerContext.webkitIndexedDB */
22687 /// @docsEditable
20051 final IDBFactory webkitIndexedDB; 22688 final IDBFactory webkitIndexedDB;
20052 22689
20053 /** @domName WorkerContext.webkitNotifications */ 22690 /** @domName WorkerContext.webkitNotifications */
22691 /// @docsEditable
20054 final NotificationCenter webkitNotifications; 22692 final NotificationCenter webkitNotifications;
20055 22693
20056 /** @domName WorkerContext.addEventListener */ 22694 /** @domName WorkerContext.addEventListener */
22695 /// @docsEditable
20057 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 22696 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
20058 22697
20059 /** @domName WorkerContext.clearInterval */ 22698 /** @domName WorkerContext.clearInterval */
22699 /// @docsEditable
20060 void clearInterval(int handle) native; 22700 void clearInterval(int handle) native;
20061 22701
20062 /** @domName WorkerContext.clearTimeout */ 22702 /** @domName WorkerContext.clearTimeout */
22703 /// @docsEditable
20063 void clearTimeout(int handle) native; 22704 void clearTimeout(int handle) native;
20064 22705
20065 /** @domName WorkerContext.close */ 22706 /** @domName WorkerContext.close */
22707 /// @docsEditable
20066 void close() native; 22708 void close() native;
20067 22709
20068 /** @domName WorkerContext.dispatchEvent */ 22710 /** @domName WorkerContext.dispatchEvent */
22711 /// @docsEditable
20069 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 22712 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
20070 22713
20071 /** @domName WorkerContext.importScripts */ 22714 /** @domName WorkerContext.importScripts */
22715 /// @docsEditable
20072 void importScripts() native; 22716 void importScripts() native;
20073 22717
20074 /** @domName WorkerContext.openDatabase */ 22718 /** @domName WorkerContext.openDatabase */
22719 /// @docsEditable
20075 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 22720 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
20076 22721
20077 /** @domName WorkerContext.openDatabaseSync */ 22722 /** @domName WorkerContext.openDatabaseSync */
22723 /// @docsEditable
20078 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native; 22724 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
20079 22725
20080 /** @domName WorkerContext.removeEventListener */ 22726 /** @domName WorkerContext.removeEventListener */
22727 /// @docsEditable
20081 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 22728 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
20082 22729
20083 /** @domName WorkerContext.setInterval */ 22730 /** @domName WorkerContext.setInterval */
22731 /// @docsEditable
20084 int setInterval(TimeoutHandler handler, int timeout) native; 22732 int setInterval(TimeoutHandler handler, int timeout) native;
20085 22733
20086 /** @domName WorkerContext.setTimeout */ 22734 /** @domName WorkerContext.setTimeout */
22735 /// @docsEditable
20087 int setTimeout(TimeoutHandler handler, int timeout) native; 22736 int setTimeout(TimeoutHandler handler, int timeout) native;
20088 22737
20089 /** @domName WorkerContext.webkitRequestFileSystem */ 22738 /** @domName WorkerContext.webkitRequestFileSystem */
22739 /// @docsEditable
20090 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback, ErrorCallback errorCallback]) native; 22740 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback, ErrorCallback errorCallback]) native;
20091 22741
20092 /** @domName WorkerContext.webkitRequestFileSystemSync */ 22742 /** @domName WorkerContext.webkitRequestFileSystemSync */
22743 /// @docsEditable
20093 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; 22744 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native;
20094 22745
20095 /** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL */ 22746 /** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL */
22747 /// @docsEditable
20096 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; 22748 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native;
20097 22749
20098 /** @domName WorkerContext.webkitResolveLocalFileSystemURL */ 22750 /** @domName WorkerContext.webkitResolveLocalFileSystemURL */
22751 /// @docsEditable
20099 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native; 22752 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native;
20100 } 22753 }
20101 22754
20102 class WorkerContextEvents extends Events { 22755 class WorkerContextEvents extends Events {
20103 WorkerContextEvents(EventTarget _ptr) : super(_ptr); 22756 WorkerContextEvents(EventTarget _ptr) : super(_ptr);
20104 22757
20105 EventListenerList get error => this['error']; 22758 EventListenerList get error => this['error'];
20106 } 22759 }
20107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20108 // for details. All rights reserved. Use of this source code is governed by a 22761 // for details. All rights reserved. Use of this source code is governed by a
20109 // BSD-style license that can be found in the LICENSE file. 22762 // BSD-style license that can be found in the LICENSE file.
20110 22763
20111 22764
20112 /// @domName WorkerLocation 22765 /// @domName WorkerLocation
22766 /// @docsEditable
20113 class WorkerLocation native "*WorkerLocation" { 22767 class WorkerLocation native "*WorkerLocation" {
20114 22768
20115 /** @domName WorkerLocation.hash */ 22769 /** @domName WorkerLocation.hash */
22770 /// @docsEditable
20116 final String hash; 22771 final String hash;
20117 22772
20118 /** @domName WorkerLocation.host */ 22773 /** @domName WorkerLocation.host */
22774 /// @docsEditable
20119 final String host; 22775 final String host;
20120 22776
20121 /** @domName WorkerLocation.hostname */ 22777 /** @domName WorkerLocation.hostname */
22778 /// @docsEditable
20122 final String hostname; 22779 final String hostname;
20123 22780
20124 /** @domName WorkerLocation.href */ 22781 /** @domName WorkerLocation.href */
22782 /// @docsEditable
20125 final String href; 22783 final String href;
20126 22784
20127 /** @domName WorkerLocation.pathname */ 22785 /** @domName WorkerLocation.pathname */
22786 /// @docsEditable
20128 final String pathname; 22787 final String pathname;
20129 22788
20130 /** @domName WorkerLocation.port */ 22789 /** @domName WorkerLocation.port */
22790 /// @docsEditable
20131 final String port; 22791 final String port;
20132 22792
20133 /** @domName WorkerLocation.protocol */ 22793 /** @domName WorkerLocation.protocol */
22794 /// @docsEditable
20134 final String protocol; 22795 final String protocol;
20135 22796
20136 /** @domName WorkerLocation.search */ 22797 /** @domName WorkerLocation.search */
22798 /// @docsEditable
20137 final String search; 22799 final String search;
20138 22800
20139 /** @domName WorkerLocation.toString */ 22801 /** @domName WorkerLocation.toString */
22802 /// @docsEditable
20140 String toString() native; 22803 String toString() native;
20141 } 22804 }
20142 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20143 // for details. All rights reserved. Use of this source code is governed by a 22806 // for details. All rights reserved. Use of this source code is governed by a
20144 // BSD-style license that can be found in the LICENSE file. 22807 // BSD-style license that can be found in the LICENSE file.
20145 22808
20146 22809
20147 /// @domName WorkerNavigator 22810 /// @domName WorkerNavigator
22811 /// @docsEditable
20148 class WorkerNavigator native "*WorkerNavigator" { 22812 class WorkerNavigator native "*WorkerNavigator" {
20149 22813
20150 /** @domName WorkerNavigator.appName */ 22814 /** @domName WorkerNavigator.appName */
22815 /// @docsEditable
20151 final String appName; 22816 final String appName;
20152 22817
20153 /** @domName WorkerNavigator.appVersion */ 22818 /** @domName WorkerNavigator.appVersion */
22819 /// @docsEditable
20154 final String appVersion; 22820 final String appVersion;
20155 22821
20156 /** @domName WorkerNavigator.onLine */ 22822 /** @domName WorkerNavigator.onLine */
22823 /// @docsEditable
20157 final bool onLine; 22824 final bool onLine;
20158 22825
20159 /** @domName WorkerNavigator.platform */ 22826 /** @domName WorkerNavigator.platform */
22827 /// @docsEditable
20160 final String platform; 22828 final String platform;
20161 22829
20162 /** @domName WorkerNavigator.userAgent */ 22830 /** @domName WorkerNavigator.userAgent */
22831 /// @docsEditable
20163 final String userAgent; 22832 final String userAgent;
20164 } 22833 }
20165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20166 // for details. All rights reserved. Use of this source code is governed by a 22835 // for details. All rights reserved. Use of this source code is governed by a
20167 // BSD-style license that can be found in the LICENSE file. 22836 // BSD-style license that can be found in the LICENSE file.
20168 22837
20169 22838
20170 /// @domName XMLSerializer 22839 /// @domName XMLSerializer
22840 /// @docsEditable
20171 class XMLSerializer native "*XMLSerializer" { 22841 class XMLSerializer native "*XMLSerializer" {
20172 22842
20173 factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer() ; 22843 factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer() ;
20174 22844
20175 /** @domName XMLSerializer.serializeToString */ 22845 /** @domName XMLSerializer.serializeToString */
22846 /// @docsEditable
20176 String serializeToString(Node node) native; 22847 String serializeToString(Node node) native;
20177 } 22848 }
20178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20179 // for details. All rights reserved. Use of this source code is governed by a 22850 // for details. All rights reserved. Use of this source code is governed by a
20180 // BSD-style license that can be found in the LICENSE file. 22851 // BSD-style license that can be found in the LICENSE file.
20181 22852
20182 22853
20183 /// @domName XPathEvaluator 22854 /// @domName XPathEvaluator
22855 /// @docsEditable
20184 class XPathEvaluator native "*XPathEvaluator" { 22856 class XPathEvaluator native "*XPathEvaluator" {
20185 22857
20186 factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluato r(); 22858 factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluato r();
20187 22859
20188 /** @domName XPathEvaluator.createExpression */ 22860 /** @domName XPathEvaluator.createExpression */
22861 /// @docsEditable
20189 XPathExpression createExpression(String expression, XPathNSResolver resolver) native; 22862 XPathExpression createExpression(String expression, XPathNSResolver resolver) native;
20190 22863
20191 /** @domName XPathEvaluator.createNSResolver */ 22864 /** @domName XPathEvaluator.createNSResolver */
22865 /// @docsEditable
20192 XPathNSResolver createNSResolver(Node nodeResolver) native; 22866 XPathNSResolver createNSResolver(Node nodeResolver) native;
20193 22867
20194 /** @domName XPathEvaluator.evaluate */ 22868 /** @domName XPathEvaluator.evaluate */
22869 /// @docsEditable
20195 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native; 22870 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native;
20196 } 22871 }
20197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20198 // for details. All rights reserved. Use of this source code is governed by a 22873 // for details. All rights reserved. Use of this source code is governed by a
20199 // BSD-style license that can be found in the LICENSE file. 22874 // BSD-style license that can be found in the LICENSE file.
20200 22875
20201 22876
20202 /// @domName XPathException 22877 /// @domName XPathException
22878 /// @docsEditable
20203 class XPathException native "*XPathException" { 22879 class XPathException native "*XPathException" {
20204 22880
20205 static const int INVALID_EXPRESSION_ERR = 51; 22881 static const int INVALID_EXPRESSION_ERR = 51;
20206 22882
20207 static const int TYPE_ERR = 52; 22883 static const int TYPE_ERR = 52;
20208 22884
20209 /** @domName XPathException.code */ 22885 /** @domName XPathException.code */
22886 /// @docsEditable
20210 final int code; 22887 final int code;
20211 22888
20212 /** @domName XPathException.message */ 22889 /** @domName XPathException.message */
22890 /// @docsEditable
20213 final String message; 22891 final String message;
20214 22892
20215 /** @domName XPathException.name */ 22893 /** @domName XPathException.name */
22894 /// @docsEditable
20216 final String name; 22895 final String name;
20217 22896
20218 /** @domName XPathException.toString */ 22897 /** @domName XPathException.toString */
22898 /// @docsEditable
20219 String toString() native; 22899 String toString() native;
20220 } 22900 }
20221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20222 // for details. All rights reserved. Use of this source code is governed by a 22902 // for details. All rights reserved. Use of this source code is governed by a
20223 // BSD-style license that can be found in the LICENSE file. 22903 // BSD-style license that can be found in the LICENSE file.
20224 22904
20225 22905
20226 /// @domName XPathExpression 22906 /// @domName XPathExpression
22907 /// @docsEditable
20227 class XPathExpression native "*XPathExpression" { 22908 class XPathExpression native "*XPathExpression" {
20228 22909
20229 /** @domName XPathExpression.evaluate */ 22910 /** @domName XPathExpression.evaluate */
22911 /// @docsEditable
20230 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; 22912 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native;
20231 } 22913 }
20232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20233 // for details. All rights reserved. Use of this source code is governed by a 22915 // for details. All rights reserved. Use of this source code is governed by a
20234 // BSD-style license that can be found in the LICENSE file. 22916 // BSD-style license that can be found in the LICENSE file.
20235 22917
20236 22918
20237 /// @domName XPathNSResolver 22919 /// @domName XPathNSResolver
22920 /// @docsEditable
20238 class XPathNSResolver native "*XPathNSResolver" { 22921 class XPathNSResolver native "*XPathNSResolver" {
20239 22922
20240 /** @domName XPathNSResolver.lookupNamespaceURI */ 22923 /** @domName XPathNSResolver.lookupNamespaceURI */
22924 /// @docsEditable
20241 String lookupNamespaceURI(String prefix) native; 22925 String lookupNamespaceURI(String prefix) native;
20242 } 22926 }
20243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22927 // 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 22928 // 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. 22929 // BSD-style license that can be found in the LICENSE file.
20246 22930
20247 22931
20248 /// @domName XPathResult 22932 /// @domName XPathResult
22933 /// @docsEditable
20249 class XPathResult native "*XPathResult" { 22934 class XPathResult native "*XPathResult" {
20250 22935
20251 static const int ANY_TYPE = 0; 22936 static const int ANY_TYPE = 0;
20252 22937
20253 static const int ANY_UNORDERED_NODE_TYPE = 8; 22938 static const int ANY_UNORDERED_NODE_TYPE = 8;
20254 22939
20255 static const int BOOLEAN_TYPE = 3; 22940 static const int BOOLEAN_TYPE = 3;
20256 22941
20257 static const int FIRST_ORDERED_NODE_TYPE = 9; 22942 static const int FIRST_ORDERED_NODE_TYPE = 9;
20258 22943
20259 static const int NUMBER_TYPE = 1; 22944 static const int NUMBER_TYPE = 1;
20260 22945
20261 static const int ORDERED_NODE_ITERATOR_TYPE = 5; 22946 static const int ORDERED_NODE_ITERATOR_TYPE = 5;
20262 22947
20263 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; 22948 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7;
20264 22949
20265 static const int STRING_TYPE = 2; 22950 static const int STRING_TYPE = 2;
20266 22951
20267 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; 22952 static const int UNORDERED_NODE_ITERATOR_TYPE = 4;
20268 22953
20269 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; 22954 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6;
20270 22955
20271 /** @domName XPathResult.booleanValue */ 22956 /** @domName XPathResult.booleanValue */
22957 /// @docsEditable
20272 final bool booleanValue; 22958 final bool booleanValue;
20273 22959
20274 /** @domName XPathResult.invalidIteratorState */ 22960 /** @domName XPathResult.invalidIteratorState */
22961 /// @docsEditable
20275 final bool invalidIteratorState; 22962 final bool invalidIteratorState;
20276 22963
20277 /** @domName XPathResult.numberValue */ 22964 /** @domName XPathResult.numberValue */
22965 /// @docsEditable
20278 final num numberValue; 22966 final num numberValue;
20279 22967
20280 /** @domName XPathResult.resultType */ 22968 /** @domName XPathResult.resultType */
22969 /// @docsEditable
20281 final int resultType; 22970 final int resultType;
20282 22971
20283 /** @domName XPathResult.singleNodeValue */ 22972 /** @domName XPathResult.singleNodeValue */
22973 /// @docsEditable
20284 final Node singleNodeValue; 22974 final Node singleNodeValue;
20285 22975
20286 /** @domName XPathResult.snapshotLength */ 22976 /** @domName XPathResult.snapshotLength */
22977 /// @docsEditable
20287 final int snapshotLength; 22978 final int snapshotLength;
20288 22979
20289 /** @domName XPathResult.stringValue */ 22980 /** @domName XPathResult.stringValue */
22981 /// @docsEditable
20290 final String stringValue; 22982 final String stringValue;
20291 22983
20292 /** @domName XPathResult.iterateNext */ 22984 /** @domName XPathResult.iterateNext */
22985 /// @docsEditable
20293 Node iterateNext() native; 22986 Node iterateNext() native;
20294 22987
20295 /** @domName XPathResult.snapshotItem */ 22988 /** @domName XPathResult.snapshotItem */
22989 /// @docsEditable
20296 Node snapshotItem(int index) native; 22990 Node snapshotItem(int index) native;
20297 } 22991 }
20298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22992 // 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 22993 // 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. 22994 // BSD-style license that can be found in the LICENSE file.
20301 22995
20302 22996
20303 /// @domName XSLTProcessor 22997 /// @domName XSLTProcessor
22998 /// @docsEditable
20304 class XSLTProcessor native "*XSLTProcessor" { 22999 class XSLTProcessor native "*XSLTProcessor" {
20305 23000
20306 factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor() ; 23001 factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor() ;
20307 23002
20308 /** @domName XSLTProcessor.clearParameters */ 23003 /** @domName XSLTProcessor.clearParameters */
23004 /// @docsEditable
20309 void clearParameters() native; 23005 void clearParameters() native;
20310 23006
20311 /** @domName XSLTProcessor.getParameter */ 23007 /** @domName XSLTProcessor.getParameter */
23008 /// @docsEditable
20312 String getParameter(String namespaceURI, String localName) native; 23009 String getParameter(String namespaceURI, String localName) native;
20313 23010
20314 /** @domName XSLTProcessor.importStylesheet */ 23011 /** @domName XSLTProcessor.importStylesheet */
23012 /// @docsEditable
20315 void importStylesheet(Node stylesheet) native; 23013 void importStylesheet(Node stylesheet) native;
20316 23014
20317 /** @domName XSLTProcessor.removeParameter */ 23015 /** @domName XSLTProcessor.removeParameter */
23016 /// @docsEditable
20318 void removeParameter(String namespaceURI, String localName) native; 23017 void removeParameter(String namespaceURI, String localName) native;
20319 23018
20320 /** @domName XSLTProcessor.reset */ 23019 /** @domName XSLTProcessor.reset */
23020 /// @docsEditable
20321 void reset() native; 23021 void reset() native;
20322 23022
20323 /** @domName XSLTProcessor.setParameter */ 23023 /** @domName XSLTProcessor.setParameter */
23024 /// @docsEditable
20324 void setParameter(String namespaceURI, String localName, String value) native; 23025 void setParameter(String namespaceURI, String localName, String value) native;
20325 23026
20326 /** @domName XSLTProcessor.transformToDocument */ 23027 /** @domName XSLTProcessor.transformToDocument */
23028 /// @docsEditable
20327 Document transformToDocument(Node source) native; 23029 Document transformToDocument(Node source) native;
20328 23030
20329 /** @domName XSLTProcessor.transformToFragment */ 23031 /** @domName XSLTProcessor.transformToFragment */
23032 /// @docsEditable
20330 DocumentFragment transformToFragment(Node source, Document docVal) native; 23033 DocumentFragment transformToFragment(Node source, Document docVal) native;
20331 } 23034 }
20332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20333 // for details. All rights reserved. Use of this source code is governed by a 23036 // for details. All rights reserved. Use of this source code is governed by a
20334 // BSD-style license that can be found in the LICENSE file. 23037 // BSD-style license that can be found in the LICENSE file.
20335 23038
20336 23039
20337 class _ArrayBufferFactoryProvider { 23040 class _ArrayBufferFactoryProvider {
20338 static ArrayBuffer createArrayBuffer(int length) => 23041 static ArrayBuffer createArrayBuffer(int length) =>
20339 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); 23042 JS('ArrayBuffer', 'new ArrayBuffer(#)', length);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
20382 class _CSSMatrixFactoryProvider { 23085 class _CSSMatrixFactoryProvider {
20383 static CSSMatrix createCSSMatrix([String cssValue = '']) => 23086 static CSSMatrix createCSSMatrix([String cssValue = '']) =>
20384 JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue); 23087 JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue);
20385 } 23088 }
20386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20387 // for details. All rights reserved. Use of this source code is governed by a 23090 // for details. All rights reserved. Use of this source code is governed by a
20388 // BSD-style license that can be found in the LICENSE file. 23091 // BSD-style license that can be found in the LICENSE file.
20389 23092
20390 23093
20391 /// @domName CSSRuleList 23094 /// @domName CSSRuleList
23095 /// @docsEditable
20392 class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native " *CSSRuleList" { 23096 class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native " *CSSRuleList" {
20393 23097
20394 /** @domName CSSRuleList.length */ 23098 /** @domName CSSRuleList.length */
23099 /// @docsEditable
20395 final int length; 23100 final int length;
20396 23101
20397 CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index); 23102 CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index);
20398 23103
20399 void operator[]=(int index, CSSRule value) { 23104 void operator[]=(int index, CSSRule value) {
20400 throw new UnsupportedError("Cannot assign element of immutable List."); 23105 throw new UnsupportedError("Cannot assign element of immutable List.");
20401 } 23106 }
20402 // -- start List<CSSRule> mixins. 23107 // -- start List<CSSRule> mixins.
20403 // CSSRule is the element type. 23108 // CSSRule is the element type.
20404 23109
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20473 void insertRange(int start, int rangeLength, [CSSRule initialValue]) { 23178 void insertRange(int start, int rangeLength, [CSSRule initialValue]) {
20474 throw new UnsupportedError("Cannot insertRange on immutable List."); 23179 throw new UnsupportedError("Cannot insertRange on immutable List.");
20475 } 23180 }
20476 23181
20477 List<CSSRule> getRange(int start, int rangeLength) => 23182 List<CSSRule> getRange(int start, int rangeLength) =>
20478 _Lists.getRange(this, start, rangeLength, <CSSRule>[]); 23183 _Lists.getRange(this, start, rangeLength, <CSSRule>[]);
20479 23184
20480 // -- end List<CSSRule> mixins. 23185 // -- end List<CSSRule> mixins.
20481 23186
20482 /** @domName CSSRuleList.item */ 23187 /** @domName CSSRuleList.item */
23188 /// @docsEditable
20483 CSSRule item(int index) native; 23189 CSSRule item(int index) native;
20484 } 23190 }
20485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20486 // for details. All rights reserved. Use of this source code is governed by a 23192 // for details. All rights reserved. Use of this source code is governed by a
20487 // BSD-style license that can be found in the LICENSE file. 23193 // BSD-style license that can be found in the LICENSE file.
20488 23194
20489 23195
20490 /// @domName CSSValueList 23196 /// @domName CSSValueList
23197 /// @docsEditable
20491 class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi ngBehavior native "*CSSValueList" { 23198 class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi ngBehavior native "*CSSValueList" {
20492 23199
20493 /** @domName CSSValueList.length */ 23200 /** @domName CSSValueList.length */
23201 /// @docsEditable
20494 final int length; 23202 final int length;
20495 23203
20496 CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index); 23204 CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index);
20497 23205
20498 void operator[]=(int index, CSSValue value) { 23206 void operator[]=(int index, CSSValue value) {
20499 throw new UnsupportedError("Cannot assign element of immutable List."); 23207 throw new UnsupportedError("Cannot assign element of immutable List.");
20500 } 23208 }
20501 // -- start List<CSSValue> mixins. 23209 // -- start List<CSSValue> mixins.
20502 // CSSValue is the element type. 23210 // CSSValue is the element type.
20503 23211
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20572 void insertRange(int start, int rangeLength, [CSSValue initialValue]) { 23280 void insertRange(int start, int rangeLength, [CSSValue initialValue]) {
20573 throw new UnsupportedError("Cannot insertRange on immutable List."); 23281 throw new UnsupportedError("Cannot insertRange on immutable List.");
20574 } 23282 }
20575 23283
20576 List<CSSValue> getRange(int start, int rangeLength) => 23284 List<CSSValue> getRange(int start, int rangeLength) =>
20577 _Lists.getRange(this, start, rangeLength, <CSSValue>[]); 23285 _Lists.getRange(this, start, rangeLength, <CSSValue>[]);
20578 23286
20579 // -- end List<CSSValue> mixins. 23287 // -- end List<CSSValue> mixins.
20580 23288
20581 /** @domName CSSValueList.item */ 23289 /** @domName CSSValueList.item */
23290 /// @docsEditable
20582 CSSValue item(int index) native; 23291 CSSValue item(int index) native;
20583 } 23292 }
20584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20585 // for details. All rights reserved. Use of this source code is governed by a 23294 // for details. All rights reserved. Use of this source code is governed by a
20586 // BSD-style license that can be found in the LICENSE file. 23295 // BSD-style license that can be found in the LICENSE file.
20587 23296
20588 23297
20589 /// @domName ClientRectList 23298 /// @domName ClientRectList
23299 /// @docsEditable
20590 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na tive "*ClientRectList" { 23300 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na tive "*ClientRectList" {
20591 23301
20592 /** @domName ClientRectList.length */ 23302 /** @domName ClientRectList.length */
23303 /// @docsEditable
20593 final int length; 23304 final int length;
20594 23305
20595 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); 23306 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index);
20596 23307
20597 void operator[]=(int index, ClientRect value) { 23308 void operator[]=(int index, ClientRect value) {
20598 throw new UnsupportedError("Cannot assign element of immutable List."); 23309 throw new UnsupportedError("Cannot assign element of immutable List.");
20599 } 23310 }
20600 // -- start List<ClientRect> mixins. 23311 // -- start List<ClientRect> mixins.
20601 // ClientRect is the element type. 23312 // ClientRect is the element type.
20602 23313
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20671 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { 23382 void insertRange(int start, int rangeLength, [ClientRect initialValue]) {
20672 throw new UnsupportedError("Cannot insertRange on immutable List."); 23383 throw new UnsupportedError("Cannot insertRange on immutable List.");
20673 } 23384 }
20674 23385
20675 List<ClientRect> getRange(int start, int rangeLength) => 23386 List<ClientRect> getRange(int start, int rangeLength) =>
20676 _Lists.getRange(this, start, rangeLength, <ClientRect>[]); 23387 _Lists.getRange(this, start, rangeLength, <ClientRect>[]);
20677 23388
20678 // -- end List<ClientRect> mixins. 23389 // -- end List<ClientRect> mixins.
20679 23390
20680 /** @domName ClientRectList.item */ 23391 /** @domName ClientRectList.item */
23392 /// @docsEditable
20681 ClientRect item(int index) native; 23393 ClientRect item(int index) native;
20682 } 23394 }
20683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20684 // for details. All rights reserved. Use of this source code is governed by a 23396 // for details. All rights reserved. Use of this source code is governed by a
20685 // BSD-style license that can be found in the LICENSE file. 23397 // BSD-style license that can be found in the LICENSE file.
20686 23398
20687 23399
20688 class _DOMParserFactoryProvider { 23400 class _DOMParserFactoryProvider {
20689 static DOMParser createDOMParser() => 23401 static DOMParser createDOMParser() =>
20690 JS('DOMParser', 'new DOMParser()' ); 23402 JS('DOMParser', 'new DOMParser()' );
20691 } 23403 }
20692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23404 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20693 // for details. All rights reserved. Use of this source code is governed by a 23405 // for details. All rights reserved. Use of this source code is governed by a
20694 // BSD-style license that can be found in the LICENSE file. 23406 // BSD-style license that can be found in the LICENSE file.
20695 23407
20696 23408
20697 /// @domName DOMStringList 23409 /// @domName DOMStringList
23410 /// @docsEditable
20698 class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native "*DOMStringList" { 23411 class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native "*DOMStringList" {
20699 23412
20700 /** @domName DOMStringList.length */ 23413 /** @domName DOMStringList.length */
23414 /// @docsEditable
20701 final int length; 23415 final int length;
20702 23416
20703 String operator[](int index) => JS("String", "#[#]", this, index); 23417 String operator[](int index) => JS("String", "#[#]", this, index);
20704 23418
20705 void operator[]=(int index, String value) { 23419 void operator[]=(int index, String value) {
20706 throw new UnsupportedError("Cannot assign element of immutable List."); 23420 throw new UnsupportedError("Cannot assign element of immutable List.");
20707 } 23421 }
20708 // -- start List<String> mixins. 23422 // -- start List<String> mixins.
20709 // String is the element type. 23423 // String is the element type.
20710 23424
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20779 void insertRange(int start, int rangeLength, [String initialValue]) { 23493 void insertRange(int start, int rangeLength, [String initialValue]) {
20780 throw new UnsupportedError("Cannot insertRange on immutable List."); 23494 throw new UnsupportedError("Cannot insertRange on immutable List.");
20781 } 23495 }
20782 23496
20783 List<String> getRange(int start, int rangeLength) => 23497 List<String> getRange(int start, int rangeLength) =>
20784 _Lists.getRange(this, start, rangeLength, <String>[]); 23498 _Lists.getRange(this, start, rangeLength, <String>[]);
20785 23499
20786 // -- end List<String> mixins. 23500 // -- end List<String> mixins.
20787 23501
20788 /** @domName DOMStringList.contains */ 23502 /** @domName DOMStringList.contains */
23503 /// @docsEditable
20789 bool contains(String string) native; 23504 bool contains(String string) native;
20790 23505
20791 /** @domName DOMStringList.item */ 23506 /** @domName DOMStringList.item */
23507 /// @docsEditable
20792 String item(int index) native; 23508 String item(int index) native;
20793 } 23509 }
20794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20795 // for details. All rights reserved. Use of this source code is governed by a 23511 // for details. All rights reserved. Use of this source code is governed by a
20796 // BSD-style license that can be found in the LICENSE file. 23512 // BSD-style license that can be found in the LICENSE file.
20797 23513
20798 23514
20799 class _DataViewFactoryProvider { 23515 class _DataViewFactoryProvider {
20800 static DataView createDataView( 23516 static DataView createDataView(
20801 ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) { 23517 ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) {
20802 if (byteOffset == null) { 23518 if (byteOffset == null) {
20803 return JS('DataView', 'new DataView(#)', buffer); 23519 return JS('DataView', 'new DataView(#)', buffer);
20804 } 23520 }
20805 if (byteLength == null) { 23521 if (byteLength == null) {
20806 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); 23522 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset);
20807 } 23523 }
20808 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ; 23524 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ;
20809 } 23525 }
20810 } 23526 }
20811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20812 // for details. All rights reserved. Use of this source code is governed by a 23528 // for details. All rights reserved. Use of this source code is governed by a
20813 // BSD-style license that can be found in the LICENSE file. 23529 // BSD-style license that can be found in the LICENSE file.
20814 23530
20815 23531
20816 /// @domName EntryArray 23532 /// @domName EntryArray
23533 /// @docsEditable
20817 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 23534 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" {
20818 23535
20819 /** @domName EntryArray.length */ 23536 /** @domName EntryArray.length */
23537 /// @docsEditable
20820 final int length; 23538 final int length;
20821 23539
20822 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 23540 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
20823 23541
20824 void operator[]=(int index, Entry value) { 23542 void operator[]=(int index, Entry value) {
20825 throw new UnsupportedError("Cannot assign element of immutable List."); 23543 throw new UnsupportedError("Cannot assign element of immutable List.");
20826 } 23544 }
20827 // -- start List<Entry> mixins. 23545 // -- start List<Entry> mixins.
20828 // Entry is the element type. 23546 // Entry is the element type.
20829 23547
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20898 void insertRange(int start, int rangeLength, [Entry initialValue]) { 23616 void insertRange(int start, int rangeLength, [Entry initialValue]) {
20899 throw new UnsupportedError("Cannot insertRange on immutable List."); 23617 throw new UnsupportedError("Cannot insertRange on immutable List.");
20900 } 23618 }
20901 23619
20902 List<Entry> getRange(int start, int rangeLength) => 23620 List<Entry> getRange(int start, int rangeLength) =>
20903 _Lists.getRange(this, start, rangeLength, <Entry>[]); 23621 _Lists.getRange(this, start, rangeLength, <Entry>[]);
20904 23622
20905 // -- end List<Entry> mixins. 23623 // -- end List<Entry> mixins.
20906 23624
20907 /** @domName EntryArray.item */ 23625 /** @domName EntryArray.item */
23626 /// @docsEditable
20908 Entry item(int index) native; 23627 Entry item(int index) native;
20909 } 23628 }
20910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20911 // for details. All rights reserved. Use of this source code is governed by a 23630 // for details. All rights reserved. Use of this source code is governed by a
20912 // BSD-style license that can be found in the LICENSE file. 23631 // BSD-style license that can be found in the LICENSE file.
20913 23632
20914 23633
20915 /// @domName EntryArraySync 23634 /// @domName EntryArraySync
23635 /// @docsEditable
20916 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat ive "*EntryArraySync" { 23636 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat ive "*EntryArraySync" {
20917 23637
20918 /** @domName EntryArraySync.length */ 23638 /** @domName EntryArraySync.length */
23639 /// @docsEditable
20919 final int length; 23640 final int length;
20920 23641
20921 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); 23642 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index);
20922 23643
20923 void operator[]=(int index, EntrySync value) { 23644 void operator[]=(int index, EntrySync value) {
20924 throw new UnsupportedError("Cannot assign element of immutable List."); 23645 throw new UnsupportedError("Cannot assign element of immutable List.");
20925 } 23646 }
20926 // -- start List<EntrySync> mixins. 23647 // -- start List<EntrySync> mixins.
20927 // EntrySync is the element type. 23648 // EntrySync is the element type.
20928 23649
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20997 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { 23718 void insertRange(int start, int rangeLength, [EntrySync initialValue]) {
20998 throw new UnsupportedError("Cannot insertRange on immutable List."); 23719 throw new UnsupportedError("Cannot insertRange on immutable List.");
20999 } 23720 }
21000 23721
21001 List<EntrySync> getRange(int start, int rangeLength) => 23722 List<EntrySync> getRange(int start, int rangeLength) =>
21002 _Lists.getRange(this, start, rangeLength, <EntrySync>[]); 23723 _Lists.getRange(this, start, rangeLength, <EntrySync>[]);
21003 23724
21004 // -- end List<EntrySync> mixins. 23725 // -- end List<EntrySync> mixins.
21005 23726
21006 /** @domName EntryArraySync.item */ 23727 /** @domName EntryArraySync.item */
23728 /// @docsEditable
21007 EntrySync item(int index) native; 23729 EntrySync item(int index) native;
21008 } 23730 }
21009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21010 // for details. All rights reserved. Use of this source code is governed by a 23732 // for details. All rights reserved. Use of this source code is governed by a
21011 // BSD-style license that can be found in the LICENSE file. 23733 // BSD-style license that can be found in the LICENSE file.
21012 23734
21013 23735
21014 class _EventSourceFactoryProvider { 23736 class _EventSourceFactoryProvider {
21015 static EventSource createEventSource(String scriptUrl) => 23737 static EventSource createEventSource(String scriptUrl) =>
21016 JS('EventSource', 'new EventSource(#)', scriptUrl); 23738 JS('EventSource', 'new EventSource(#)', scriptUrl);
21017 } 23739 }
21018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23740 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21019 // for details. All rights reserved. Use of this source code is governed by a 23741 // for details. All rights reserved. Use of this source code is governed by a
21020 // BSD-style license that can be found in the LICENSE file. 23742 // BSD-style license that can be found in the LICENSE file.
21021 23743
21022 23744
21023 /// @domName FileList 23745 /// @domName FileList
23746 /// @docsEditable
21024 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL ist" { 23747 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL ist" {
21025 23748
21026 /** @domName FileList.length */ 23749 /** @domName FileList.length */
23750 /// @docsEditable
21027 final int length; 23751 final int length;
21028 23752
21029 File operator[](int index) => JS("File", "#[#]", this, index); 23753 File operator[](int index) => JS("File", "#[#]", this, index);
21030 23754
21031 void operator[]=(int index, File value) { 23755 void operator[]=(int index, File value) {
21032 throw new UnsupportedError("Cannot assign element of immutable List."); 23756 throw new UnsupportedError("Cannot assign element of immutable List.");
21033 } 23757 }
21034 // -- start List<File> mixins. 23758 // -- start List<File> mixins.
21035 // File is the element type. 23759 // File is the element type.
21036 23760
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21105 void insertRange(int start, int rangeLength, [File initialValue]) { 23829 void insertRange(int start, int rangeLength, [File initialValue]) {
21106 throw new UnsupportedError("Cannot insertRange on immutable List."); 23830 throw new UnsupportedError("Cannot insertRange on immutable List.");
21107 } 23831 }
21108 23832
21109 List<File> getRange(int start, int rangeLength) => 23833 List<File> getRange(int start, int rangeLength) =>
21110 _Lists.getRange(this, start, rangeLength, <File>[]); 23834 _Lists.getRange(this, start, rangeLength, <File>[]);
21111 23835
21112 // -- end List<File> mixins. 23836 // -- end List<File> mixins.
21113 23837
21114 /** @domName FileList.item */ 23838 /** @domName FileList.item */
23839 /// @docsEditable
21115 File item(int index) native; 23840 File item(int index) native;
21116 } 23841 }
21117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21118 // for details. All rights reserved. Use of this source code is governed by a 23843 // for details. All rights reserved. Use of this source code is governed by a
21119 // BSD-style license that can be found in the LICENSE file. 23844 // BSD-style license that can be found in the LICENSE file.
21120 23845
21121 23846
21122 class _FileReaderFactoryProvider { 23847 class _FileReaderFactoryProvider {
21123 static FileReader createFileReader() => 23848 static FileReader createFileReader() =>
21124 JS('FileReader', 'new FileReader()' ); 23849 JS('FileReader', 'new FileReader()' );
(...skipping 17 matching lines...) Expand all
21142 if (form == null) return JS('FormData', 'new FormData()'); 23867 if (form == null) return JS('FormData', 'new FormData()');
21143 return JS('FormData', 'new FormData(#)', form); 23868 return JS('FormData', 'new FormData(#)', form);
21144 } 23869 }
21145 } 23870 }
21146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21147 // for details. All rights reserved. Use of this source code is governed by a 23872 // for details. All rights reserved. Use of this source code is governed by a
21148 // BSD-style license that can be found in the LICENSE file. 23873 // BSD-style license that can be found in the LICENSE file.
21149 23874
21150 23875
21151 /// @domName GamepadList 23876 /// @domName GamepadList
23877 /// @docsEditable
21152 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" { 23878 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" {
21153 23879
21154 /** @domName GamepadList.length */ 23880 /** @domName GamepadList.length */
23881 /// @docsEditable
21155 final int length; 23882 final int length;
21156 23883
21157 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); 23884 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index);
21158 23885
21159 void operator[]=(int index, Gamepad value) { 23886 void operator[]=(int index, Gamepad value) {
21160 throw new UnsupportedError("Cannot assign element of immutable List."); 23887 throw new UnsupportedError("Cannot assign element of immutable List.");
21161 } 23888 }
21162 // -- start List<Gamepad> mixins. 23889 // -- start List<Gamepad> mixins.
21163 // Gamepad is the element type. 23890 // Gamepad is the element type.
21164 23891
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21233 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { 23960 void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
21234 throw new UnsupportedError("Cannot insertRange on immutable List."); 23961 throw new UnsupportedError("Cannot insertRange on immutable List.");
21235 } 23962 }
21236 23963
21237 List<Gamepad> getRange(int start, int rangeLength) => 23964 List<Gamepad> getRange(int start, int rangeLength) =>
21238 _Lists.getRange(this, start, rangeLength, <Gamepad>[]); 23965 _Lists.getRange(this, start, rangeLength, <Gamepad>[]);
21239 23966
21240 // -- end List<Gamepad> mixins. 23967 // -- end List<Gamepad> mixins.
21241 23968
21242 /** @domName GamepadList.item */ 23969 /** @domName GamepadList.item */
23970 /// @docsEditable
21243 Gamepad item(int index) native; 23971 Gamepad item(int index) native;
21244 } 23972 }
21245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23973 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21246 // for details. All rights reserved. Use of this source code is governed by a 23974 // for details. All rights reserved. Use of this source code is governed by a
21247 // BSD-style license that can be found in the LICENSE file. 23975 // BSD-style license that can be found in the LICENSE file.
21248 23976
21249 23977
21250 class _HttpRequestFactoryProvider { 23978 class _HttpRequestFactoryProvider {
21251 static HttpRequest createHttpRequest() => 23979 static HttpRequest createHttpRequest() =>
21252 JS('HttpRequest', 'new XMLHttpRequest()'); 23980 JS('HttpRequest', 'new XMLHttpRequest()');
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
21294 class _MediaStreamFactoryProvider { 24022 class _MediaStreamFactoryProvider {
21295 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, MediaSt reamTrackList videoTracks) => 24023 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, MediaSt reamTrackList videoTracks) =>
21296 JS('MediaStream', 'new MediaStream(#,#)', audioTracks, videoTracks); 24024 JS('MediaStream', 'new MediaStream(#,#)', audioTracks, videoTracks);
21297 } 24025 }
21298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21299 // for details. All rights reserved. Use of this source code is governed by a 24027 // for details. All rights reserved. Use of this source code is governed by a
21300 // BSD-style license that can be found in the LICENSE file. 24028 // BSD-style license that can be found in the LICENSE file.
21301 24029
21302 24030
21303 /// @domName MediaStreamList 24031 /// @domName MediaStreamList
24032 /// @docsEditable
21304 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" { 24033 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" {
21305 24034
21306 /** @domName MediaStreamList.length */ 24035 /** @domName MediaStreamList.length */
24036 /// @docsEditable
21307 final int length; 24037 final int length;
21308 24038
21309 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); 24039 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index);
21310 24040
21311 void operator[]=(int index, MediaStream value) { 24041 void operator[]=(int index, MediaStream value) {
21312 throw new UnsupportedError("Cannot assign element of immutable List."); 24042 throw new UnsupportedError("Cannot assign element of immutable List.");
21313 } 24043 }
21314 // -- start List<MediaStream> mixins. 24044 // -- start List<MediaStream> mixins.
21315 // MediaStream is the element type. 24045 // MediaStream is the element type.
21316 24046
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21385 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { 24115 void insertRange(int start, int rangeLength, [MediaStream initialValue]) {
21386 throw new UnsupportedError("Cannot insertRange on immutable List."); 24116 throw new UnsupportedError("Cannot insertRange on immutable List.");
21387 } 24117 }
21388 24118
21389 List<MediaStream> getRange(int start, int rangeLength) => 24119 List<MediaStream> getRange(int start, int rangeLength) =>
21390 _Lists.getRange(this, start, rangeLength, <MediaStream>[]); 24120 _Lists.getRange(this, start, rangeLength, <MediaStream>[]);
21391 24121
21392 // -- end List<MediaStream> mixins. 24122 // -- end List<MediaStream> mixins.
21393 24123
21394 /** @domName MediaStreamList.item */ 24124 /** @domName MediaStreamList.item */
24125 /// @docsEditable
21395 MediaStream item(int index) native; 24126 MediaStream item(int index) native;
21396 } 24127 }
21397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21398 // for details. All rights reserved. Use of this source code is governed by a 24129 // for details. All rights reserved. Use of this source code is governed by a
21399 // BSD-style license that can be found in the LICENSE file. 24130 // BSD-style license that can be found in the LICENSE file.
21400 24131
21401 24132
21402 class _MessageChannelFactoryProvider { 24133 class _MessageChannelFactoryProvider {
21403 static MessageChannel createMessageChannel() => 24134 static MessageChannel createMessageChannel() =>
21404 JS('MessageChannel', 'new MessageChannel()' ); 24135 JS('MessageChannel', 'new MessageChannel()' );
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
21438 // 24169 //
21439 // static createMutationObserver(MutationCallback callback) => 24170 // static createMutationObserver(MutationCallback callback) =>
21440 // JS('var', 'new (window.MutationObserver)(#)', callback); 24171 // JS('var', 'new (window.MutationObserver)(#)', callback);
21441 } 24172 }
21442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21443 // for details. All rights reserved. Use of this source code is governed by a 24174 // for details. All rights reserved. Use of this source code is governed by a
21444 // BSD-style license that can be found in the LICENSE file. 24175 // BSD-style license that can be found in the LICENSE file.
21445 24176
21446 24177
21447 /// @domName NodeList 24178 /// @domName NodeList
24179 /// @docsEditable
21448 class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeL ist" { 24180 class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeL ist" {
21449 24181
21450 /** @domName NodeList.length */ 24182 /** @domName NodeList.length */
24183 /// @docsEditable
21451 final int length; 24184 final int length;
21452 24185
21453 Node operator[](int index) => JS("Node", "#[#]", this, index); 24186 Node operator[](int index) => JS("Node", "#[#]", this, index);
21454 24187
21455 void operator[]=(int index, Node value) { 24188 void operator[]=(int index, Node value) {
21456 throw new UnsupportedError("Cannot assign element of immutable List."); 24189 throw new UnsupportedError("Cannot assign element of immutable List.");
21457 } 24190 }
21458 // -- start List<Node> mixins. 24191 // -- start List<Node> mixins.
21459 // Node is the element type. 24192 // Node is the element type.
21460 24193
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21529 void insertRange(int start, int rangeLength, [Node initialValue]) { 24262 void insertRange(int start, int rangeLength, [Node initialValue]) {
21530 throw new UnsupportedError("Cannot insertRange on immutable List."); 24263 throw new UnsupportedError("Cannot insertRange on immutable List.");
21531 } 24264 }
21532 24265
21533 List<Node> getRange(int start, int rangeLength) => 24266 List<Node> getRange(int start, int rangeLength) =>
21534 _Lists.getRange(this, start, rangeLength, <Node>[]); 24267 _Lists.getRange(this, start, rangeLength, <Node>[]);
21535 24268
21536 // -- end List<Node> mixins. 24269 // -- end List<Node> mixins.
21537 24270
21538 /** @domName NodeList.item */ 24271 /** @domName NodeList.item */
24272 /// @docsEditable
21539 Node _item(int index) native "item"; 24273 Node _item(int index) native "item";
21540 } 24274 }
21541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21542 // for details. All rights reserved. Use of this source code is governed by a 24276 // for details. All rights reserved. Use of this source code is governed by a
21543 // BSD-style license that can be found in the LICENSE file. 24277 // BSD-style license that can be found in the LICENSE file.
21544 24278
21545 24279
21546 class _NotificationFactoryProvider { 24280 class _NotificationFactoryProvider {
21547 static Notification createNotification(String title, [Map options]) => 24281 static Notification createNotification(String title, [Map options]) =>
21548 JS('Notification', 'new Notification(#,#)', title, options); 24282 JS('Notification', 'new Notification(#,#)', title, options);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
21655 class _SpeechGrammarListFactoryProvider { 24389 class _SpeechGrammarListFactoryProvider {
21656 static SpeechGrammarList createSpeechGrammarList() => 24390 static SpeechGrammarList createSpeechGrammarList() =>
21657 JS('SpeechGrammarList', 'new SpeechGrammarList()' ); 24391 JS('SpeechGrammarList', 'new SpeechGrammarList()' );
21658 } 24392 }
21659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21660 // for details. All rights reserved. Use of this source code is governed by a 24394 // for details. All rights reserved. Use of this source code is governed by a
21661 // BSD-style license that can be found in the LICENSE file. 24395 // BSD-style license that can be found in the LICENSE file.
21662 24396
21663 24397
21664 /// @domName SpeechInputResultList 24398 /// @domName SpeechInputResultList
24399 /// @docsEditable
21665 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" { 24400 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" {
21666 24401
21667 /** @domName SpeechInputResultList.length */ 24402 /** @domName SpeechInputResultList.length */
24403 /// @docsEditable
21668 final int length; 24404 final int length;
21669 24405
21670 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index); 24406 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index);
21671 24407
21672 void operator[]=(int index, SpeechInputResult value) { 24408 void operator[]=(int index, SpeechInputResult value) {
21673 throw new UnsupportedError("Cannot assign element of immutable List."); 24409 throw new UnsupportedError("Cannot assign element of immutable List.");
21674 } 24410 }
21675 // -- start List<SpeechInputResult> mixins. 24411 // -- start List<SpeechInputResult> mixins.
21676 // SpeechInputResult is the element type. 24412 // SpeechInputResult is the element type.
21677 24413
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21746 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) { 24482 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
21747 throw new UnsupportedError("Cannot insertRange on immutable List."); 24483 throw new UnsupportedError("Cannot insertRange on immutable List.");
21748 } 24484 }
21749 24485
21750 List<SpeechInputResult> getRange(int start, int rangeLength) => 24486 List<SpeechInputResult> getRange(int start, int rangeLength) =>
21751 _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); 24487 _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]);
21752 24488
21753 // -- end List<SpeechInputResult> mixins. 24489 // -- end List<SpeechInputResult> mixins.
21754 24490
21755 /** @domName SpeechInputResultList.item */ 24491 /** @domName SpeechInputResultList.item */
24492 /// @docsEditable
21756 SpeechInputResult item(int index) native; 24493 SpeechInputResult item(int index) native;
21757 } 24494 }
21758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21759 // for details. All rights reserved. Use of this source code is governed by a 24496 // for details. All rights reserved. Use of this source code is governed by a
21760 // BSD-style license that can be found in the LICENSE file. 24497 // BSD-style license that can be found in the LICENSE file.
21761 24498
21762 24499
21763 class _SpeechRecognitionFactoryProvider { 24500 class _SpeechRecognitionFactoryProvider {
21764 static SpeechRecognition createSpeechRecognition() => 24501 static SpeechRecognition createSpeechRecognition() =>
21765 JS('SpeechRecognition', 'new SpeechRecognition()' ); 24502 JS('SpeechRecognition', 'new SpeechRecognition()' );
21766 } 24503 }
21767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21768 // for details. All rights reserved. Use of this source code is governed by a 24505 // for details. All rights reserved. Use of this source code is governed by a
21769 // BSD-style license that can be found in the LICENSE file. 24506 // BSD-style license that can be found in the LICENSE file.
21770 24507
21771 24508
21772 /// @domName SpeechRecognitionResultList 24509 /// @domName SpeechRecognitionResultList
24510 /// @docsEditable
21773 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" { 24511 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" {
21774 24512
21775 /** @domName SpeechRecognitionResultList.length */ 24513 /** @domName SpeechRecognitionResultList.length */
24514 /// @docsEditable
21776 final int length; 24515 final int length;
21777 24516
21778 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index); 24517 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index);
21779 24518
21780 void operator[]=(int index, SpeechRecognitionResult value) { 24519 void operator[]=(int index, SpeechRecognitionResult value) {
21781 throw new UnsupportedError("Cannot assign element of immutable List."); 24520 throw new UnsupportedError("Cannot assign element of immutable List.");
21782 } 24521 }
21783 // -- start List<SpeechRecognitionResult> mixins. 24522 // -- start List<SpeechRecognitionResult> mixins.
21784 // SpeechRecognitionResult is the element type. 24523 // SpeechRecognitionResult is the element type.
21785 24524
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21854 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV alue]) { 24593 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV alue]) {
21855 throw new UnsupportedError("Cannot insertRange on immutable List."); 24594 throw new UnsupportedError("Cannot insertRange on immutable List.");
21856 } 24595 }
21857 24596
21858 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => 24597 List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
21859 _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); 24598 _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
21860 24599
21861 // -- end List<SpeechRecognitionResult> mixins. 24600 // -- end List<SpeechRecognitionResult> mixins.
21862 24601
21863 /** @domName SpeechRecognitionResultList.item */ 24602 /** @domName SpeechRecognitionResultList.item */
24603 /// @docsEditable
21864 SpeechRecognitionResult item(int index) native; 24604 SpeechRecognitionResult item(int index) native;
21865 } 24605 }
21866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21867 // for details. All rights reserved. Use of this source code is governed by a 24607 // for details. All rights reserved. Use of this source code is governed by a
21868 // BSD-style license that can be found in the LICENSE file. 24608 // BSD-style license that can be found in the LICENSE file.
21869 24609
21870 24610
21871 /// @domName StyleSheetList 24611 /// @domName StyleSheetList
24612 /// @docsEditable
21872 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" { 24613 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" {
21873 24614
21874 /** @domName StyleSheetList.length */ 24615 /** @domName StyleSheetList.length */
24616 /// @docsEditable
21875 final int length; 24617 final int length;
21876 24618
21877 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); 24619 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
21878 24620
21879 void operator[]=(int index, StyleSheet value) { 24621 void operator[]=(int index, StyleSheet value) {
21880 throw new UnsupportedError("Cannot assign element of immutable List."); 24622 throw new UnsupportedError("Cannot assign element of immutable List.");
21881 } 24623 }
21882 // -- start List<StyleSheet> mixins. 24624 // -- start List<StyleSheet> mixins.
21883 // StyleSheet is the element type. 24625 // StyleSheet is the element type.
21884 24626
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
21953 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { 24695 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
21954 throw new UnsupportedError("Cannot insertRange on immutable List."); 24696 throw new UnsupportedError("Cannot insertRange on immutable List.");
21955 } 24697 }
21956 24698
21957 List<StyleSheet> getRange(int start, int rangeLength) => 24699 List<StyleSheet> getRange(int start, int rangeLength) =>
21958 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); 24700 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
21959 24701
21960 // -- end List<StyleSheet> mixins. 24702 // -- end List<StyleSheet> mixins.
21961 24703
21962 /** @domName StyleSheetList.item */ 24704 /** @domName StyleSheetList.item */
24705 /// @docsEditable
21963 StyleSheet item(int index) native; 24706 StyleSheet item(int index) native;
21964 } 24707 }
21965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21966 // for details. All rights reserved. Use of this source code is governed by a 24709 // for details. All rights reserved. Use of this source code is governed by a
21967 // BSD-style license that can be found in the LICENSE file. 24710 // BSD-style license that can be found in the LICENSE file.
21968 24711
21969 24712
21970 class _TextTrackCueFactoryProvider { 24713 class _TextTrackCueFactoryProvider {
21971 static TextTrackCue createTextTrackCue( 24714 static TextTrackCue createTextTrackCue(
21972 num startTime, num endTime, String text, 24715 num startTime, num endTime, String text,
(...skipping 12 matching lines...) Expand all
21985 'new TextTrackCue(#,#,#,#,#)', 24728 'new TextTrackCue(#,#,#,#,#)',
21986 startTime, endTime, text, settings, pauseOnExit); 24729 startTime, endTime, text, settings, pauseOnExit);
21987 } 24730 }
21988 } 24731 }
21989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21990 // for details. All rights reserved. Use of this source code is governed by a 24733 // for details. All rights reserved. Use of this source code is governed by a
21991 // BSD-style license that can be found in the LICENSE file. 24734 // BSD-style license that can be found in the LICENSE file.
21992 24735
21993 24736
21994 /// @domName WebKitAnimationList 24737 /// @domName WebKitAnimationList
24738 /// @docsEditable
21995 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation > native "*WebKitAnimationList" { 24739 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation > native "*WebKitAnimationList" {
21996 24740
21997 /** @domName WebKitAnimationList.length */ 24741 /** @domName WebKitAnimationList.length */
24742 /// @docsEditable
21998 final int length; 24743 final int length;
21999 24744
22000 Animation operator[](int index) => JS("Animation", "#[#]", this, index); 24745 Animation operator[](int index) => JS("Animation", "#[#]", this, index);
22001 24746
22002 void operator[]=(int index, Animation value) { 24747 void operator[]=(int index, Animation value) {
22003 throw new UnsupportedError("Cannot assign element of immutable List."); 24748 throw new UnsupportedError("Cannot assign element of immutable List.");
22004 } 24749 }
22005 // -- start List<Animation> mixins. 24750 // -- start List<Animation> mixins.
22006 // Animation is the element type. 24751 // Animation is the element type.
22007 24752
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
22076 void insertRange(int start, int rangeLength, [Animation initialValue]) { 24821 void insertRange(int start, int rangeLength, [Animation initialValue]) {
22077 throw new UnsupportedError("Cannot insertRange on immutable List."); 24822 throw new UnsupportedError("Cannot insertRange on immutable List.");
22078 } 24823 }
22079 24824
22080 List<Animation> getRange(int start, int rangeLength) => 24825 List<Animation> getRange(int start, int rangeLength) =>
22081 _Lists.getRange(this, start, rangeLength, <Animation>[]); 24826 _Lists.getRange(this, start, rangeLength, <Animation>[]);
22082 24827
22083 // -- end List<Animation> mixins. 24828 // -- end List<Animation> mixins.
22084 24829
22085 /** @domName WebKitAnimationList.item */ 24830 /** @domName WebKitAnimationList.item */
24831 /// @docsEditable
22086 Animation item(int index) native; 24832 Animation item(int index) native;
22087 } 24833 }
22088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22089 // for details. All rights reserved. Use of this source code is governed by a 24835 // for details. All rights reserved. Use of this source code is governed by a
22090 // BSD-style license that can be found in the LICENSE file. 24836 // BSD-style license that can be found in the LICENSE file.
22091 24837
22092 24838
22093 class _WorkerFactoryProvider { 24839 class _WorkerFactoryProvider {
22094 static Worker createWorker(String scriptUrl) => 24840 static Worker createWorker(String scriptUrl) =>
22095 JS('Worker', 'new Worker(#)', scriptUrl); 24841 JS('Worker', 'new Worker(#)', scriptUrl);
(...skipping 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after
24991 if (length < 0) throw new ArgumentError('length'); 27737 if (length < 0) throw new ArgumentError('length');
24992 if (start < 0) throw new RangeError.value(start); 27738 if (start < 0) throw new RangeError.value(start);
24993 int end = start + length; 27739 int end = start + length;
24994 if (end > a.length) throw new RangeError.value(end); 27740 if (end > a.length) throw new RangeError.value(end);
24995 for (int i = start; i < end; i++) { 27741 for (int i = start; i < end; i++) {
24996 accumulator.add(a[i]); 27742 accumulator.add(a[i]);
24997 } 27743 }
24998 return accumulator; 27744 return accumulator;
24999 } 27745 }
25000 } 27746 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | sdk/lib/html/scripts/htmldartgenerator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698