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

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

Issue 11968047: Fixing formatting of dart:html's dart2js annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/scripts/generator.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library html; 1 library html;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:indexed_db'; 6 import 'dart:indexed_db';
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 import 'dart:json' as json; 8 import 'dart:json' as json;
9 import 'dart:math'; 9 import 'dart:math';
10 import 'dart:svg' as svg; 10 import 'dart:svg' as svg;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class AbstractWorker extends EventTarget native "*AbstractWorker" { 60 class AbstractWorker extends EventTarget native "*AbstractWorker" {
61 61
62 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 62 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
63 63
64 @DocsEditable 64 @DocsEditable
65 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 65 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
66 AbstractWorkerEvents get on => 66 AbstractWorkerEvents get on =>
67 new AbstractWorkerEvents(this); 67 new AbstractWorkerEvents(this);
68 68
69 @JSName('addEventListener') 69 @JSName('addEventListener')
70 @DocsEditable @DomName('AbstractWorker.addEventListener') 70 @DocsEditable
71 @DomName('AbstractWorker.addEventListener')
71 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 72 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
72 73
73 @JSName('dispatchEvent') 74 @JSName('dispatchEvent')
74 @DocsEditable @DomName('AbstractWorker.dispatchEvent') 75 @DocsEditable
76 @DomName('AbstractWorker.dispatchEvent')
75 bool $dom_dispatchEvent(Event evt) native; 77 bool $dom_dispatchEvent(Event evt) native;
76 78
77 @JSName('removeEventListener') 79 @JSName('removeEventListener')
78 @DocsEditable @DomName('AbstractWorker.removeEventListener') 80 @DocsEditable
81 @DomName('AbstractWorker.removeEventListener')
79 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 82 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
80 83
81 Stream<Event> get onError => errorEvent.forTarget(this); 84 Stream<Event> get onError => errorEvent.forTarget(this);
82 } 85 }
83 86
84 @DocsEditable 87 @DocsEditable
85 class AbstractWorkerEvents extends Events { 88 class AbstractWorkerEvents extends Events {
86 @DocsEditable 89 @DocsEditable
87 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); 90 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr);
88 91
(...skipping 10 matching lines...) Expand all
99 @DomName('HTMLAnchorElement') 102 @DomName('HTMLAnchorElement')
100 class AnchorElement extends Element native "*HTMLAnchorElement" { 103 class AnchorElement extends Element native "*HTMLAnchorElement" {
101 104
102 @DocsEditable 105 @DocsEditable
103 factory AnchorElement({String href}) { 106 factory AnchorElement({String href}) {
104 var e = document.$dom_createElement("a"); 107 var e = document.$dom_createElement("a");
105 if (href != null) e.href = href; 108 if (href != null) e.href = href;
106 return e; 109 return e;
107 } 110 }
108 111
109 @DocsEditable @DomName('HTMLAnchorElement.download') 112 @DocsEditable
113 @DomName('HTMLAnchorElement.download')
110 String download; 114 String download;
111 115
112 @DocsEditable @DomName('HTMLAnchorElement.hash') 116 @DocsEditable
117 @DomName('HTMLAnchorElement.hash')
113 String hash; 118 String hash;
114 119
115 @DocsEditable @DomName('HTMLAnchorElement.host') 120 @DocsEditable
121 @DomName('HTMLAnchorElement.host')
116 String host; 122 String host;
117 123
118 @DocsEditable @DomName('HTMLAnchorElement.hostname') 124 @DocsEditable
125 @DomName('HTMLAnchorElement.hostname')
119 String hostname; 126 String hostname;
120 127
121 @DocsEditable @DomName('HTMLAnchorElement.href') 128 @DocsEditable
129 @DomName('HTMLAnchorElement.href')
122 String href; 130 String href;
123 131
124 @DocsEditable @DomName('HTMLAnchorElement.hreflang') 132 @DocsEditable
133 @DomName('HTMLAnchorElement.hreflang')
125 String hreflang; 134 String hreflang;
126 135
127 @DocsEditable @DomName('HTMLAnchorElement.name') 136 @DocsEditable
137 @DomName('HTMLAnchorElement.name')
128 String name; 138 String name;
129 139
130 @DocsEditable @DomName('HTMLAnchorElement.origin') 140 @DocsEditable
141 @DomName('HTMLAnchorElement.origin')
131 final String origin; 142 final String origin;
132 143
133 @DocsEditable @DomName('HTMLAnchorElement.pathname') 144 @DocsEditable
145 @DomName('HTMLAnchorElement.pathname')
134 String pathname; 146 String pathname;
135 147
136 @DocsEditable @DomName('HTMLAnchorElement.ping') 148 @DocsEditable
149 @DomName('HTMLAnchorElement.ping')
137 String ping; 150 String ping;
138 151
139 @DocsEditable @DomName('HTMLAnchorElement.port') 152 @DocsEditable
153 @DomName('HTMLAnchorElement.port')
140 String port; 154 String port;
141 155
142 @DocsEditable @DomName('HTMLAnchorElement.protocol') 156 @DocsEditable
157 @DomName('HTMLAnchorElement.protocol')
143 String protocol; 158 String protocol;
144 159
145 @DocsEditable @DomName('HTMLAnchorElement.rel') 160 @DocsEditable
161 @DomName('HTMLAnchorElement.rel')
146 String rel; 162 String rel;
147 163
148 @DocsEditable @DomName('HTMLAnchorElement.search') 164 @DocsEditable
165 @DomName('HTMLAnchorElement.search')
149 String search; 166 String search;
150 167
151 @DocsEditable @DomName('HTMLAnchorElement.target') 168 @DocsEditable
169 @DomName('HTMLAnchorElement.target')
152 String target; 170 String target;
153 171
154 @DocsEditable @DomName('HTMLAnchorElement.type') 172 @DocsEditable
173 @DomName('HTMLAnchorElement.type')
155 String type; 174 String type;
156 175
157 @DocsEditable @DomName('HTMLAnchorElement.toString') 176 @DocsEditable
177 @DomName('HTMLAnchorElement.toString')
158 String toString() native; 178 String toString() native;
159 } 179 }
160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
161 // for details. All rights reserved. Use of this source code is governed by a 181 // for details. All rights reserved. Use of this source code is governed by a
162 // BSD-style license that can be found in the LICENSE file. 182 // BSD-style license that can be found in the LICENSE file.
163 183
164 184
165 185
166 @DocsEditable 186 @DocsEditable
167 @DomName('WebKitAnimationEvent') 187 @DomName('WebKitAnimationEvent')
168 class AnimationEvent extends Event native "*WebKitAnimationEvent" { 188 class AnimationEvent extends Event native "*WebKitAnimationEvent" {
169 189
170 @DocsEditable @DomName('WebKitAnimationEvent.animationName') 190 @DocsEditable
191 @DomName('WebKitAnimationEvent.animationName')
171 final String animationName; 192 final String animationName;
172 193
173 @DocsEditable @DomName('WebKitAnimationEvent.elapsedTime') 194 @DocsEditable
195 @DomName('WebKitAnimationEvent.elapsedTime')
174 final num elapsedTime; 196 final num elapsedTime;
175 } 197 }
176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
177 // for details. All rights reserved. Use of this source code is governed by a 199 // for details. All rights reserved. Use of this source code is governed by a
178 // BSD-style license that can be found in the LICENSE file. 200 // BSD-style license that can be found in the LICENSE file.
179 201
180 202
181 203
182 @DocsEditable 204 @DocsEditable
183 @DomName('DOMApplicationCache') 205 @DomName('DOMApplicationCache')
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 static const int DOWNLOADING = 3; 239 static const int DOWNLOADING = 3;
218 240
219 static const int IDLE = 1; 241 static const int IDLE = 1;
220 242
221 static const int OBSOLETE = 5; 243 static const int OBSOLETE = 5;
222 244
223 static const int UNCACHED = 0; 245 static const int UNCACHED = 0;
224 246
225 static const int UPDATEREADY = 4; 247 static const int UPDATEREADY = 4;
226 248
227 @DocsEditable @DomName('DOMApplicationCache.status') 249 @DocsEditable
250 @DomName('DOMApplicationCache.status')
228 final int status; 251 final int status;
229 252
230 @DocsEditable @DomName('DOMApplicationCache.abort') 253 @DocsEditable
254 @DomName('DOMApplicationCache.abort')
231 void abort() native; 255 void abort() native;
232 256
233 @JSName('addEventListener') 257 @JSName('addEventListener')
234 @DocsEditable @DomName('DOMApplicationCache.addEventListener') 258 @DocsEditable
259 @DomName('DOMApplicationCache.addEventListener')
235 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 260 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
236 261
237 @JSName('dispatchEvent') 262 @JSName('dispatchEvent')
238 @DocsEditable @DomName('DOMApplicationCache.dispatchEvent') 263 @DocsEditable
264 @DomName('DOMApplicationCache.dispatchEvent')
239 bool $dom_dispatchEvent(Event evt) native; 265 bool $dom_dispatchEvent(Event evt) native;
240 266
241 @JSName('removeEventListener') 267 @JSName('removeEventListener')
242 @DocsEditable @DomName('DOMApplicationCache.removeEventListener') 268 @DocsEditable
269 @DomName('DOMApplicationCache.removeEventListener')
243 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 270 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
244 271
245 @DocsEditable @DomName('DOMApplicationCache.swapCache') 272 @DocsEditable
273 @DomName('DOMApplicationCache.swapCache')
246 void swapCache() native; 274 void swapCache() native;
247 275
248 @DocsEditable @DomName('DOMApplicationCache.update') 276 @DocsEditable
277 @DomName('DOMApplicationCache.update')
249 void update() native; 278 void update() native;
250 279
251 Stream<Event> get onCached => cachedEvent.forTarget(this); 280 Stream<Event> get onCached => cachedEvent.forTarget(this);
252 281
253 Stream<Event> get onChecking => checkingEvent.forTarget(this); 282 Stream<Event> get onChecking => checkingEvent.forTarget(this);
254 283
255 Stream<Event> get onDownloading => downloadingEvent.forTarget(this); 284 Stream<Event> get onDownloading => downloadingEvent.forTarget(this);
256 285
257 Stream<Event> get onError => errorEvent.forTarget(this); 286 Stream<Event> get onError => errorEvent.forTarget(this);
258 287
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 329
301 330
302 331
303 @DocsEditable 332 @DocsEditable
304 @DomName('HTMLAreaElement') 333 @DomName('HTMLAreaElement')
305 class AreaElement extends Element native "*HTMLAreaElement" { 334 class AreaElement extends Element native "*HTMLAreaElement" {
306 335
307 @DocsEditable 336 @DocsEditable
308 factory AreaElement() => document.$dom_createElement("area"); 337 factory AreaElement() => document.$dom_createElement("area");
309 338
310 @DocsEditable @DomName('HTMLAreaElement.alt') 339 @DocsEditable
340 @DomName('HTMLAreaElement.alt')
311 String alt; 341 String alt;
312 342
313 @DocsEditable @DomName('HTMLAreaElement.coords') 343 @DocsEditable
344 @DomName('HTMLAreaElement.coords')
314 String coords; 345 String coords;
315 346
316 @DocsEditable @DomName('HTMLAreaElement.hash') 347 @DocsEditable
348 @DomName('HTMLAreaElement.hash')
317 final String hash; 349 final String hash;
318 350
319 @DocsEditable @DomName('HTMLAreaElement.host') 351 @DocsEditable
352 @DomName('HTMLAreaElement.host')
320 final String host; 353 final String host;
321 354
322 @DocsEditable @DomName('HTMLAreaElement.hostname') 355 @DocsEditable
356 @DomName('HTMLAreaElement.hostname')
323 final String hostname; 357 final String hostname;
324 358
325 @DocsEditable @DomName('HTMLAreaElement.href') 359 @DocsEditable
360 @DomName('HTMLAreaElement.href')
326 String href; 361 String href;
327 362
328 @DocsEditable @DomName('HTMLAreaElement.pathname') 363 @DocsEditable
364 @DomName('HTMLAreaElement.pathname')
329 final String pathname; 365 final String pathname;
330 366
331 @DocsEditable @DomName('HTMLAreaElement.ping') 367 @DocsEditable
368 @DomName('HTMLAreaElement.ping')
332 String ping; 369 String ping;
333 370
334 @DocsEditable @DomName('HTMLAreaElement.port') 371 @DocsEditable
372 @DomName('HTMLAreaElement.port')
335 final String port; 373 final String port;
336 374
337 @DocsEditable @DomName('HTMLAreaElement.protocol') 375 @DocsEditable
376 @DomName('HTMLAreaElement.protocol')
338 final String protocol; 377 final String protocol;
339 378
340 @DocsEditable @DomName('HTMLAreaElement.search') 379 @DocsEditable
380 @DomName('HTMLAreaElement.search')
341 final String search; 381 final String search;
342 382
343 @DocsEditable @DomName('HTMLAreaElement.shape') 383 @DocsEditable
384 @DomName('HTMLAreaElement.shape')
344 String shape; 385 String shape;
345 386
346 @DocsEditable @DomName('HTMLAreaElement.target') 387 @DocsEditable
388 @DomName('HTMLAreaElement.target')
347 String target; 389 String target;
348 } 390 }
349 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 391 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
350 // for details. All rights reserved. Use of this source code is governed by a 392 // for details. All rights reserved. Use of this source code is governed by a
351 // BSD-style license that can be found in the LICENSE file. 393 // BSD-style license that can be found in the LICENSE file.
352 394
353 395
354 @DocsEditable 396 @DocsEditable
355 @DomName('ArrayBuffer') 397 @DomName('ArrayBuffer')
356 @SupportedBrowser(SupportedBrowser.CHROME) 398 @SupportedBrowser(SupportedBrowser.CHROME)
357 @SupportedBrowser(SupportedBrowser.FIREFOX) 399 @SupportedBrowser(SupportedBrowser.FIREFOX)
358 @SupportedBrowser(SupportedBrowser.IE, '10') 400 @SupportedBrowser(SupportedBrowser.IE, '10')
359 @SupportedBrowser(SupportedBrowser.SAFARI) 401 @SupportedBrowser(SupportedBrowser.SAFARI)
360 class ArrayBuffer native "*ArrayBuffer" { 402 class ArrayBuffer native "*ArrayBuffer" {
361 403
362 @DocsEditable 404 @DocsEditable
363 factory ArrayBuffer(int length) => ArrayBuffer._create(length); 405 factory ArrayBuffer(int length) => ArrayBuffer._create(length);
364 static ArrayBuffer _create(int length) => JS('ArrayBuffer', 'new ArrayBuffer(# )', length); 406 static ArrayBuffer _create(int length) => JS('ArrayBuffer', 'new ArrayBuffer(# )', length);
365 407
366 /// Checks if this type is supported on the current platform. 408 /// Checks if this type is supported on the current platform.
367 static bool get supported => JS('bool', 'typeof window.ArrayBuffer != "undefin ed"'); 409 static bool get supported => JS('bool', 'typeof window.ArrayBuffer != "undefin ed"');
368 410
369 @DocsEditable @DomName('ArrayBuffer.byteLength') 411 @DocsEditable
412 @DomName('ArrayBuffer.byteLength')
370 final int byteLength; 413 final int byteLength;
371 414
372 @DomName('ArrayBuffer.slice') 415 @DomName('ArrayBuffer.slice')
373 ArrayBuffer slice(int begin, [int end]) { 416 ArrayBuffer slice(int begin, [int end]) {
374 // IE10 supports ArrayBuffers but does not have the slice method. 417 // IE10 supports ArrayBuffers but does not have the slice method.
375 if (JS('bool', '!!#.slice', this)) { 418 if (JS('bool', '!!#.slice', this)) {
376 if (?end) { 419 if (?end) {
377 return JS('ArrayBuffer', '#.slice(#, #)', this, begin, end); 420 return JS('ArrayBuffer', '#.slice(#, #)', this, begin, end);
378 } 421 }
379 return JS('ArrayBuffer', '#.slice(#)', this, begin); 422 return JS('ArrayBuffer', '#.slice(#)', this, begin);
(...skipping 25 matching lines...) Expand all
405 448
406 449
407 @DocsEditable 450 @DocsEditable
408 @DomName('ArrayBufferView') 451 @DomName('ArrayBufferView')
409 @SupportedBrowser(SupportedBrowser.CHROME) 452 @SupportedBrowser(SupportedBrowser.CHROME)
410 @SupportedBrowser(SupportedBrowser.FIREFOX) 453 @SupportedBrowser(SupportedBrowser.FIREFOX)
411 @SupportedBrowser(SupportedBrowser.IE, '10') 454 @SupportedBrowser(SupportedBrowser.IE, '10')
412 @SupportedBrowser(SupportedBrowser.SAFARI) 455 @SupportedBrowser(SupportedBrowser.SAFARI)
413 class ArrayBufferView native "*ArrayBufferView" { 456 class ArrayBufferView native "*ArrayBufferView" {
414 457
415 @DocsEditable @DomName('ArrayBufferView.buffer') 458 @DocsEditable
459 @DomName('ArrayBufferView.buffer')
416 final ArrayBuffer buffer; 460 final ArrayBuffer buffer;
417 461
418 @DocsEditable @DomName('ArrayBufferView.byteLength') 462 @DocsEditable
463 @DomName('ArrayBufferView.byteLength')
419 final int byteLength; 464 final int byteLength;
420 465
421 @DocsEditable @DomName('ArrayBufferView.byteOffset') 466 @DocsEditable
467 @DomName('ArrayBufferView.byteOffset')
422 final int byteOffset; 468 final int byteOffset;
423 } 469 }
424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
425 // for details. All rights reserved. Use of this source code is governed by a 471 // for details. All rights reserved. Use of this source code is governed by a
426 // BSD-style license that can be found in the LICENSE file. 472 // BSD-style license that can be found in the LICENSE file.
427 473
428 474
429 475
430 @DocsEditable 476 @DocsEditable
431 @DomName('Attr') 477 @DomName('Attr')
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
472 // for details. All rights reserved. Use of this source code is governed by a 518 // for details. All rights reserved. Use of this source code is governed by a
473 // BSD-style license that can be found in the LICENSE file. 519 // BSD-style license that can be found in the LICENSE file.
474 520
475 521
476 522
477 @DocsEditable 523 @DocsEditable
478 @DomName('BarInfo') 524 @DomName('BarInfo')
479 class BarInfo native "*BarInfo" { 525 class BarInfo native "*BarInfo" {
480 526
481 @DocsEditable @DomName('BarInfo.visible') 527 @DocsEditable
528 @DomName('BarInfo.visible')
482 final bool visible; 529 final bool visible;
483 } 530 }
484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
485 // for details. All rights reserved. Use of this source code is governed by a 532 // for details. All rights reserved. Use of this source code is governed by a
486 // BSD-style license that can be found in the LICENSE file. 533 // BSD-style license that can be found in the LICENSE file.
487 534
488 535
489 536
490 @DocsEditable 537 @DocsEditable
491 @DomName('HTMLBaseElement') 538 @DomName('HTMLBaseElement')
492 class BaseElement extends Element native "*HTMLBaseElement" { 539 class BaseElement extends Element native "*HTMLBaseElement" {
493 540
494 @DocsEditable 541 @DocsEditable
495 factory BaseElement() => document.$dom_createElement("base"); 542 factory BaseElement() => document.$dom_createElement("base");
496 543
497 @DocsEditable @DomName('HTMLBaseElement.href') 544 @DocsEditable
545 @DomName('HTMLBaseElement.href')
498 String href; 546 String href;
499 547
500 @DocsEditable @DomName('HTMLBaseElement.target') 548 @DocsEditable
549 @DomName('HTMLBaseElement.target')
501 String target; 550 String target;
502 } 551 }
503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
504 // for details. All rights reserved. Use of this source code is governed by a 553 // for details. All rights reserved. Use of this source code is governed by a
505 // BSD-style license that can be found in the LICENSE file. 554 // BSD-style license that can be found in the LICENSE file.
506 555
507 556
508 557
509 @DocsEditable 558 @DocsEditable
510 @DomName('BatteryManager') 559 @DomName('BatteryManager')
511 class BatteryManager extends EventTarget native "*BatteryManager" { 560 class BatteryManager extends EventTarget native "*BatteryManager" {
512 561
513 static const EventStreamProvider<Event> chargingChangeEvent = const EventStrea mProvider<Event>('chargingchange'); 562 static const EventStreamProvider<Event> chargingChangeEvent = const EventStrea mProvider<Event>('chargingchange');
514 563
515 static const EventStreamProvider<Event> chargingTimeChangeEvent = const EventS treamProvider<Event>('chargingtimechange'); 564 static const EventStreamProvider<Event> chargingTimeChangeEvent = const EventS treamProvider<Event>('chargingtimechange');
516 565
517 static const EventStreamProvider<Event> dischargingTimeChangeEvent = const Eve ntStreamProvider<Event>('dischargingtimechange'); 566 static const EventStreamProvider<Event> dischargingTimeChangeEvent = const Eve ntStreamProvider<Event>('dischargingtimechange');
518 567
519 static const EventStreamProvider<Event> levelChangeEvent = const EventStreamPr ovider<Event>('levelchange'); 568 static const EventStreamProvider<Event> levelChangeEvent = const EventStreamPr ovider<Event>('levelchange');
520 569
521 @DocsEditable 570 @DocsEditable
522 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 571 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
523 BatteryManagerEvents get on => 572 BatteryManagerEvents get on =>
524 new BatteryManagerEvents(this); 573 new BatteryManagerEvents(this);
525 574
526 @DocsEditable @DomName('BatteryManager.charging') 575 @DocsEditable
576 @DomName('BatteryManager.charging')
527 final bool charging; 577 final bool charging;
528 578
529 @DocsEditable @DomName('BatteryManager.chargingTime') 579 @DocsEditable
580 @DomName('BatteryManager.chargingTime')
530 final num chargingTime; 581 final num chargingTime;
531 582
532 @DocsEditable @DomName('BatteryManager.dischargingTime') 583 @DocsEditable
584 @DomName('BatteryManager.dischargingTime')
533 final num dischargingTime; 585 final num dischargingTime;
534 586
535 @DocsEditable @DomName('BatteryManager.level') 587 @DocsEditable
588 @DomName('BatteryManager.level')
536 final num level; 589 final num level;
537 590
538 @JSName('addEventListener') 591 @JSName('addEventListener')
539 @DocsEditable @DomName('BatteryManager.addEventListener') 592 @DocsEditable
593 @DomName('BatteryManager.addEventListener')
540 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 594 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
541 595
542 @JSName('dispatchEvent') 596 @JSName('dispatchEvent')
543 @DocsEditable @DomName('BatteryManager.dispatchEvent') 597 @DocsEditable
598 @DomName('BatteryManager.dispatchEvent')
544 bool $dom_dispatchEvent(Event event) native; 599 bool $dom_dispatchEvent(Event event) native;
545 600
546 @JSName('removeEventListener') 601 @JSName('removeEventListener')
547 @DocsEditable @DomName('BatteryManager.removeEventListener') 602 @DocsEditable
603 @DomName('BatteryManager.removeEventListener')
548 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 604 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
549 605
550 Stream<Event> get onChargingChange => chargingChangeEvent.forTarget(this); 606 Stream<Event> get onChargingChange => chargingChangeEvent.forTarget(this);
551 607
552 Stream<Event> get onChargingTimeChange => chargingTimeChangeEvent.forTarget(th is); 608 Stream<Event> get onChargingTimeChange => chargingTimeChangeEvent.forTarget(th is);
553 609
554 Stream<Event> get onDischargingTimeChange => dischargingTimeChangeEvent.forTar get(this); 610 Stream<Event> get onDischargingTimeChange => dischargingTimeChangeEvent.forTar get(this);
555 611
556 Stream<Event> get onLevelChange => levelChangeEvent.forTarget(this); 612 Stream<Event> get onLevelChange => levelChangeEvent.forTarget(this);
557 } 613 }
(...skipping 18 matching lines...) Expand all
576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
577 // for details. All rights reserved. Use of this source code is governed by a 633 // for details. All rights reserved. Use of this source code is governed by a
578 // BSD-style license that can be found in the LICENSE file. 634 // BSD-style license that can be found in the LICENSE file.
579 635
580 636
581 637
582 @DocsEditable 638 @DocsEditable
583 @DomName('BeforeLoadEvent') 639 @DomName('BeforeLoadEvent')
584 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 640 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
585 641
586 @DocsEditable @DomName('BeforeLoadEvent.url') 642 @DocsEditable
643 @DomName('BeforeLoadEvent.url')
587 final String url; 644 final String url;
588 } 645 }
589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
590 // for details. All rights reserved. Use of this source code is governed by a 647 // for details. All rights reserved. Use of this source code is governed by a
591 // BSD-style license that can be found in the LICENSE file. 648 // BSD-style license that can be found in the LICENSE file.
592 649
593 650
594 @DocsEditable 651 @DocsEditable
595 @DomName('Blob') 652 @DomName('Blob')
596 class Blob native "*Blob" { 653 class Blob native "*Blob" {
597 654
598 @DocsEditable 655 @DocsEditable
599 factory Blob(List blobParts, [String type, String endings]) { 656 factory Blob(List blobParts, [String type, String endings]) {
600 if (!?type) { 657 if (!?type) {
601 return Blob._create(blobParts); 658 return Blob._create(blobParts);
602 } 659 }
603 if (!?endings) { 660 if (!?endings) {
604 return Blob._create(blobParts, type); 661 return Blob._create(blobParts, type);
605 } 662 }
606 return Blob._create(blobParts, type, endings); 663 return Blob._create(blobParts, type, endings);
607 } 664 }
608 665
609 @DocsEditable @DomName('Blob.size') 666 @DocsEditable
667 @DomName('Blob.size')
610 final int size; 668 final int size;
611 669
612 @DocsEditable @DomName('Blob.type') 670 @DocsEditable
671 @DomName('Blob.type')
613 final String type; 672 final String type;
614 673
615 @DocsEditable @DomName('Blob.slice') 674 @DocsEditable
675 @DomName('Blob.slice')
616 Blob slice([int start, int end, String contentType]) native; 676 Blob slice([int start, int end, String contentType]) native;
617 677
618 static Blob _create([List blobParts = null, String type, String endings]) { 678 static Blob _create([List blobParts = null, String type, String endings]) {
619 // TODO: validate that blobParts is a JS Array and convert if not. 679 // TODO: validate that blobParts is a JS Array and convert if not.
620 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed 680 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed
621 // array to ArrayBuffer if it is a total view. 681 // array to ArrayBuffer if it is a total view.
622 if (type == null && endings == null) { 682 if (type == null && endings == null) {
623 return _create_1(blobParts); 683 return _create_1(blobParts);
624 } 684 }
625 var bag = _create_bag(); 685 var bag = _create_bag();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 816
757 817
758 818
759 @DocsEditable 819 @DocsEditable
760 @DomName('HTMLButtonElement') 820 @DomName('HTMLButtonElement')
761 class ButtonElement extends Element native "*HTMLButtonElement" { 821 class ButtonElement extends Element native "*HTMLButtonElement" {
762 822
763 @DocsEditable 823 @DocsEditable
764 factory ButtonElement() => document.$dom_createElement("button"); 824 factory ButtonElement() => document.$dom_createElement("button");
765 825
766 @DocsEditable @DomName('HTMLButtonElement.autofocus') 826 @DocsEditable
827 @DomName('HTMLButtonElement.autofocus')
767 bool autofocus; 828 bool autofocus;
768 829
769 @DocsEditable @DomName('HTMLButtonElement.disabled') 830 @DocsEditable
831 @DomName('HTMLButtonElement.disabled')
770 bool disabled; 832 bool disabled;
771 833
772 @DocsEditable @DomName('HTMLButtonElement.form') 834 @DocsEditable
835 @DomName('HTMLButtonElement.form')
773 final FormElement form; 836 final FormElement form;
774 837
775 @DocsEditable @DomName('HTMLButtonElement.formAction') 838 @DocsEditable
839 @DomName('HTMLButtonElement.formAction')
776 String formAction; 840 String formAction;
777 841
778 @DocsEditable @DomName('HTMLButtonElement.formEnctype') 842 @DocsEditable
843 @DomName('HTMLButtonElement.formEnctype')
779 String formEnctype; 844 String formEnctype;
780 845
781 @DocsEditable @DomName('HTMLButtonElement.formMethod') 846 @DocsEditable
847 @DomName('HTMLButtonElement.formMethod')
782 String formMethod; 848 String formMethod;
783 849
784 @DocsEditable @DomName('HTMLButtonElement.formNoValidate') 850 @DocsEditable
851 @DomName('HTMLButtonElement.formNoValidate')
785 bool formNoValidate; 852 bool formNoValidate;
786 853
787 @DocsEditable @DomName('HTMLButtonElement.formTarget') 854 @DocsEditable
855 @DomName('HTMLButtonElement.formTarget')
788 String formTarget; 856 String formTarget;
789 857
790 @DocsEditable @DomName('HTMLButtonElement.labels') 858 @DocsEditable
791 @Returns('NodeList') @Creates('NodeList') 859 @DomName('HTMLButtonElement.labels')
860 @Returns('NodeList')
861 @Creates('NodeList')
792 final List<Node> labels; 862 final List<Node> labels;
793 863
794 @DocsEditable @DomName('HTMLButtonElement.name') 864 @DocsEditable
865 @DomName('HTMLButtonElement.name')
795 String name; 866 String name;
796 867
797 @DocsEditable @DomName('HTMLButtonElement.type') 868 @DocsEditable
869 @DomName('HTMLButtonElement.type')
798 String type; 870 String type;
799 871
800 @DocsEditable @DomName('HTMLButtonElement.validationMessage') 872 @DocsEditable
873 @DomName('HTMLButtonElement.validationMessage')
801 final String validationMessage; 874 final String validationMessage;
802 875
803 @DocsEditable @DomName('HTMLButtonElement.validity') 876 @DocsEditable
877 @DomName('HTMLButtonElement.validity')
804 final ValidityState validity; 878 final ValidityState validity;
805 879
806 @DocsEditable @DomName('HTMLButtonElement.value') 880 @DocsEditable
881 @DomName('HTMLButtonElement.value')
807 String value; 882 String value;
808 883
809 @DocsEditable @DomName('HTMLButtonElement.willValidate') 884 @DocsEditable
885 @DomName('HTMLButtonElement.willValidate')
810 final bool willValidate; 886 final bool willValidate;
811 887
812 @DocsEditable @DomName('HTMLButtonElement.checkValidity') 888 @DocsEditable
889 @DomName('HTMLButtonElement.checkValidity')
813 bool checkValidity() native; 890 bool checkValidity() native;
814 891
815 @DocsEditable @DomName('HTMLButtonElement.setCustomValidity') 892 @DocsEditable
893 @DomName('HTMLButtonElement.setCustomValidity')
816 void setCustomValidity(String error) native; 894 void setCustomValidity(String error) native;
817 } 895 }
818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
819 // for details. All rights reserved. Use of this source code is governed by a 897 // for details. All rights reserved. Use of this source code is governed by a
820 // BSD-style license that can be found in the LICENSE file. 898 // BSD-style license that can be found in the LICENSE file.
821 899
822 900
823 901
824 @DocsEditable 902 @DocsEditable
825 @DomName('CDATASection') 903 @DomName('CDATASection')
826 class CDataSection extends Text native "*CDATASection" { 904 class CDataSection extends Text native "*CDATASection" {
827 } 905 }
828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
829 // for details. All rights reserved. Use of this source code is governed by a 907 // for details. All rights reserved. Use of this source code is governed by a
830 // BSD-style license that can be found in the LICENSE file. 908 // BSD-style license that can be found in the LICENSE file.
831 909
832 910
833 @DocsEditable 911 @DocsEditable
834 @DomName('HTMLCanvasElement') 912 @DomName('HTMLCanvasElement')
835 class CanvasElement extends Element native "*HTMLCanvasElement" { 913 class CanvasElement extends Element native "*HTMLCanvasElement" {
836 914
837 @DocsEditable 915 @DocsEditable
838 factory CanvasElement({int width, int height}) { 916 factory CanvasElement({int width, int height}) {
839 var e = document.$dom_createElement("canvas"); 917 var e = document.$dom_createElement("canvas");
840 if (width != null) e.width = width; 918 if (width != null) e.width = width;
841 if (height != null) e.height = height; 919 if (height != null) e.height = height;
842 return e; 920 return e;
843 } 921 }
844 922
845 @DocsEditable @DomName('HTMLCanvasElement.height') 923 @DocsEditable
924 @DomName('HTMLCanvasElement.height')
846 int height; 925 int height;
847 926
848 @DocsEditable @DomName('HTMLCanvasElement.width') 927 @DocsEditable
928 @DomName('HTMLCanvasElement.width')
849 int width; 929 int width;
850 930
851 @JSName('toDataURL') 931 @JSName('toDataURL')
852 @DocsEditable @DomName('HTMLCanvasElement.toDataURL') 932 @DocsEditable
933 @DomName('HTMLCanvasElement.toDataURL')
853 String toDataUrl(String type, [num quality]) native; 934 String toDataUrl(String type, [num quality]) native;
854 935
855 936
856 CanvasRenderingContext getContext(String contextId) native; 937 CanvasRenderingContext getContext(String contextId) native;
857 CanvasRenderingContext2D get context2d => getContext('2d'); 938 CanvasRenderingContext2D get context2d => getContext('2d');
858 } 939 }
859 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
860 // for details. All rights reserved. Use of this source code is governed by a 941 // for details. All rights reserved. Use of this source code is governed by a
861 // BSD-style license that can be found in the LICENSE file. 942 // BSD-style license that can be found in the LICENSE file.
862 943
863 944
864 945
865 @DocsEditable 946 @DocsEditable
866 @DomName('CanvasGradient') 947 @DomName('CanvasGradient')
867 class CanvasGradient native "*CanvasGradient" { 948 class CanvasGradient native "*CanvasGradient" {
868 949
869 @DocsEditable @DomName('CanvasGradient.addColorStop') 950 @DocsEditable
951 @DomName('CanvasGradient.addColorStop')
870 void addColorStop(num offset, String color) native; 952 void addColorStop(num offset, String color) native;
871 } 953 }
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 954 // 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 955 // 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. 956 // BSD-style license that can be found in the LICENSE file.
875 957
876 958
877 959
878 @DocsEditable 960 @DocsEditable
879 @DomName('CanvasPattern') 961 @DomName('CanvasPattern')
880 class CanvasPattern native "*CanvasPattern" { 962 class CanvasPattern native "*CanvasPattern" {
881 } 963 }
882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
883 // for details. All rights reserved. Use of this source code is governed by a 965 // for details. All rights reserved. Use of this source code is governed by a
884 // BSD-style license that can be found in the LICENSE file. 966 // BSD-style license that can be found in the LICENSE file.
885 967
886 968
887 969
888 @DocsEditable 970 @DocsEditable
889 @DomName('CanvasRenderingContext') 971 @DomName('CanvasRenderingContext')
890 class CanvasRenderingContext native "*CanvasRenderingContext" { 972 class CanvasRenderingContext native "*CanvasRenderingContext" {
891 973
892 @DocsEditable @DomName('CanvasRenderingContext.canvas') 974 @DocsEditable
975 @DomName('CanvasRenderingContext.canvas')
893 final CanvasElement canvas; 976 final CanvasElement canvas;
894 } 977 }
895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
896 // for details. All rights reserved. Use of this source code is governed by a 979 // for details. All rights reserved. Use of this source code is governed by a
897 // BSD-style license that can be found in the LICENSE file. 980 // BSD-style license that can be found in the LICENSE file.
898 981
899 982
900 @DocsEditable 983 @DocsEditable
901 @DomName('CanvasRenderingContext2D') 984 @DomName('CanvasRenderingContext2D')
902 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" { 985 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" {
903 986
904 @DocsEditable @DomName('CanvasRenderingContext2D.fillStyle') @Creates('String| CanvasGradient|CanvasPattern') @Returns('String|CanvasGradient|CanvasPattern') 987 @DocsEditable
988 @DomName('CanvasRenderingContext2D.fillStyle')
989 @Creates('String|CanvasGradient|CanvasPattern')
990 @Returns('String|CanvasGradient|CanvasPattern')
905 dynamic fillStyle; 991 dynamic fillStyle;
906 992
907 @DocsEditable @DomName('CanvasRenderingContext2D.font') 993 @DocsEditable
994 @DomName('CanvasRenderingContext2D.font')
908 String font; 995 String font;
909 996
910 @DocsEditable @DomName('CanvasRenderingContext2D.globalAlpha') 997 @DocsEditable
998 @DomName('CanvasRenderingContext2D.globalAlpha')
911 num globalAlpha; 999 num globalAlpha;
912 1000
913 @DocsEditable @DomName('CanvasRenderingContext2D.globalCompositeOperation') 1001 @DocsEditable
1002 @DomName('CanvasRenderingContext2D.globalCompositeOperation')
914 String globalCompositeOperation; 1003 String globalCompositeOperation;
915 1004
916 @DocsEditable @DomName('CanvasRenderingContext2D.lineCap') 1005 @DocsEditable
1006 @DomName('CanvasRenderingContext2D.lineCap')
917 String lineCap; 1007 String lineCap;
918 1008
919 @DocsEditable @DomName('CanvasRenderingContext2D.lineDashOffset') 1009 @DocsEditable
1010 @DomName('CanvasRenderingContext2D.lineDashOffset')
920 num lineDashOffset; 1011 num lineDashOffset;
921 1012
922 @DocsEditable @DomName('CanvasRenderingContext2D.lineJoin') 1013 @DocsEditable
1014 @DomName('CanvasRenderingContext2D.lineJoin')
923 String lineJoin; 1015 String lineJoin;
924 1016
925 @DocsEditable @DomName('CanvasRenderingContext2D.lineWidth') 1017 @DocsEditable
1018 @DomName('CanvasRenderingContext2D.lineWidth')
926 num lineWidth; 1019 num lineWidth;
927 1020
928 @DocsEditable @DomName('CanvasRenderingContext2D.miterLimit') 1021 @DocsEditable
1022 @DomName('CanvasRenderingContext2D.miterLimit')
929 num miterLimit; 1023 num miterLimit;
930 1024
931 @DocsEditable @DomName('CanvasRenderingContext2D.shadowBlur') 1025 @DocsEditable
1026 @DomName('CanvasRenderingContext2D.shadowBlur')
932 num shadowBlur; 1027 num shadowBlur;
933 1028
934 @DocsEditable @DomName('CanvasRenderingContext2D.shadowColor') 1029 @DocsEditable
1030 @DomName('CanvasRenderingContext2D.shadowColor')
935 String shadowColor; 1031 String shadowColor;
936 1032
937 @DocsEditable @DomName('CanvasRenderingContext2D.shadowOffsetX') 1033 @DocsEditable
1034 @DomName('CanvasRenderingContext2D.shadowOffsetX')
938 num shadowOffsetX; 1035 num shadowOffsetX;
939 1036
940 @DocsEditable @DomName('CanvasRenderingContext2D.shadowOffsetY') 1037 @DocsEditable
1038 @DomName('CanvasRenderingContext2D.shadowOffsetY')
941 num shadowOffsetY; 1039 num shadowOffsetY;
942 1040
943 @DocsEditable @DomName('CanvasRenderingContext2D.strokeStyle') @Creates('Strin g|CanvasGradient|CanvasPattern') @Returns('String|CanvasGradient|CanvasPattern') 1041 @DocsEditable
1042 @DomName('CanvasRenderingContext2D.strokeStyle')
1043 @Creates('String|CanvasGradient|CanvasPattern')
1044 @Returns('String|CanvasGradient|CanvasPattern')
944 dynamic strokeStyle; 1045 dynamic strokeStyle;
945 1046
946 @DocsEditable @DomName('CanvasRenderingContext2D.textAlign') 1047 @DocsEditable
1048 @DomName('CanvasRenderingContext2D.textAlign')
947 String textAlign; 1049 String textAlign;
948 1050
949 @DocsEditable @DomName('CanvasRenderingContext2D.textBaseline') 1051 @DocsEditable
1052 @DomName('CanvasRenderingContext2D.textBaseline')
950 String textBaseline; 1053 String textBaseline;
951 1054
952 @DocsEditable @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRatio' ) 1055 @DocsEditable
1056 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRatio')
953 final num webkitBackingStorePixelRatio; 1057 final num webkitBackingStorePixelRatio;
954 1058
955 @DocsEditable @DomName('CanvasRenderingContext2D.webkitImageSmoothingEnabled') 1059 @DocsEditable
1060 @DomName('CanvasRenderingContext2D.webkitImageSmoothingEnabled')
956 bool webkitImageSmoothingEnabled; 1061 bool webkitImageSmoothingEnabled;
957 1062
958 @DocsEditable @DomName('CanvasRenderingContext2D.webkitLineDash') 1063 @DocsEditable
1064 @DomName('CanvasRenderingContext2D.webkitLineDash')
959 List webkitLineDash; 1065 List webkitLineDash;
960 1066
961 @DocsEditable @DomName('CanvasRenderingContext2D.webkitLineDashOffset') 1067 @DocsEditable
1068 @DomName('CanvasRenderingContext2D.webkitLineDashOffset')
962 num webkitLineDashOffset; 1069 num webkitLineDashOffset;
963 1070
964 @DocsEditable @DomName('CanvasRenderingContext2D.arc') 1071 @DocsEditable
1072 @DomName('CanvasRenderingContext2D.arc')
965 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; 1073 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
966 1074
967 @DocsEditable @DomName('CanvasRenderingContext2D.arcTo') 1075 @DocsEditable
1076 @DomName('CanvasRenderingContext2D.arcTo')
968 void arcTo(num x1, num y1, num x2, num y2, num radius) native; 1077 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
969 1078
970 @DocsEditable @DomName('CanvasRenderingContext2D.beginPath') 1079 @DocsEditable
1080 @DomName('CanvasRenderingContext2D.beginPath')
971 void beginPath() native; 1081 void beginPath() native;
972 1082
973 @DocsEditable @DomName('CanvasRenderingContext2D.bezierCurveTo') 1083 @DocsEditable
1084 @DomName('CanvasRenderingContext2D.bezierCurveTo')
974 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; 1085 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
975 1086
976 @DocsEditable @DomName('CanvasRenderingContext2D.clearRect') 1087 @DocsEditable
1088 @DomName('CanvasRenderingContext2D.clearRect')
977 void clearRect(num x, num y, num width, num height) native; 1089 void clearRect(num x, num y, num width, num height) native;
978 1090
979 @DocsEditable @DomName('CanvasRenderingContext2D.clip') 1091 @DocsEditable
1092 @DomName('CanvasRenderingContext2D.clip')
980 void clip() native; 1093 void clip() native;
981 1094
982 @DocsEditable @DomName('CanvasRenderingContext2D.closePath') 1095 @DocsEditable
1096 @DomName('CanvasRenderingContext2D.closePath')
983 void closePath() native; 1097 void closePath() native;
984 1098
985 ImageData createImageData(imagedata_OR_sw, [num sh]) { 1099 ImageData createImageData(imagedata_OR_sw, [num sh]) {
986 if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && 1100 if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) &&
987 !?sh) { 1101 !?sh) {
988 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); 1102 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw);
989 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); 1103 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
990 } 1104 }
991 if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) { 1105 if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) {
992 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh)); 1106 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh));
993 } 1107 }
994 throw new ArgumentError("Incorrect number or type of arguments"); 1108 throw new ArgumentError("Incorrect number or type of arguments");
995 } 1109 }
996 @JSName('createImageData') 1110 @JSName('createImageData')
997 @DocsEditable @DomName('CanvasRenderingContext2D.createImageData') @Creates('I mageData|=Object') 1111 @DocsEditable
1112 @DomName('CanvasRenderingContext2D.createImageData')
1113 @Creates('ImageData|=Object')
998 _createImageData_1(imagedata) native; 1114 _createImageData_1(imagedata) native;
999 @JSName('createImageData') 1115 @JSName('createImageData')
1000 @DocsEditable @DomName('CanvasRenderingContext2D.createImageData') @Creates('I mageData|=Object') 1116 @DocsEditable
1117 @DomName('CanvasRenderingContext2D.createImageData')
1118 @Creates('ImageData|=Object')
1001 _createImageData_2(num sw, sh) native; 1119 _createImageData_2(num sw, sh) native;
1002 1120
1003 @DocsEditable @DomName('CanvasRenderingContext2D.createLinearGradient') 1121 @DocsEditable
1122 @DomName('CanvasRenderingContext2D.createLinearGradient')
1004 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; 1123 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native;
1005 1124
1006 @DocsEditable @DomName('CanvasRenderingContext2D.createPattern') 1125 @DocsEditable
1126 @DomName('CanvasRenderingContext2D.createPattern')
1007 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; 1127 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native;
1008 1128
1009 @DocsEditable @DomName('CanvasRenderingContext2D.createRadialGradient') 1129 @DocsEditable
1130 @DomName('CanvasRenderingContext2D.createRadialGradient')
1010 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native; 1131 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native;
1011 1132
1012 @DocsEditable @DomName('CanvasRenderingContext2D.drawImage') 1133 @DocsEditable
1134 @DomName('CanvasRenderingContext2D.drawImage')
1013 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; 1135 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;
1014 1136
1015 @DocsEditable @DomName('CanvasRenderingContext2D.fill') 1137 @DocsEditable
1138 @DomName('CanvasRenderingContext2D.fill')
1016 void fill() native; 1139 void fill() native;
1017 1140
1018 @DocsEditable @DomName('CanvasRenderingContext2D.fillRect') 1141 @DocsEditable
1142 @DomName('CanvasRenderingContext2D.fillRect')
1019 void fillRect(num x, num y, num width, num height) native; 1143 void fillRect(num x, num y, num width, num height) native;
1020 1144
1021 @DocsEditable @DomName('CanvasRenderingContext2D.fillText') 1145 @DocsEditable
1146 @DomName('CanvasRenderingContext2D.fillText')
1022 void fillText(String text, num x, num y, [num maxWidth]) native; 1147 void fillText(String text, num x, num y, [num maxWidth]) native;
1023 1148
1024 ImageData getImageData(num sx, num sy, num sw, num sh) { 1149 ImageData getImageData(num sx, num sy, num sw, num sh) {
1025 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); 1150 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh));
1026 } 1151 }
1027 @JSName('getImageData') 1152 @JSName('getImageData')
1028 @DocsEditable @DomName('CanvasRenderingContext2D.getImageData') @Creates('Imag eData|=Object') 1153 @DocsEditable
1154 @DomName('CanvasRenderingContext2D.getImageData')
1155 @Creates('ImageData|=Object')
1029 _getImageData_1(sx, sy, sw, sh) native; 1156 _getImageData_1(sx, sy, sw, sh) native;
1030 1157
1031 @DocsEditable @DomName('CanvasRenderingContext2D.getLineDash') 1158 @DocsEditable
1159 @DomName('CanvasRenderingContext2D.getLineDash')
1032 List<num> getLineDash() native; 1160 List<num> getLineDash() native;
1033 1161
1034 @DocsEditable @DomName('CanvasRenderingContext2D.isPointInPath') 1162 @DocsEditable
1163 @DomName('CanvasRenderingContext2D.isPointInPath')
1035 bool isPointInPath(num x, num y) native; 1164 bool isPointInPath(num x, num y) native;
1036 1165
1037 @DocsEditable @DomName('CanvasRenderingContext2D.lineTo') 1166 @DocsEditable
1167 @DomName('CanvasRenderingContext2D.lineTo')
1038 void lineTo(num x, num y) native; 1168 void lineTo(num x, num y) native;
1039 1169
1040 @DocsEditable @DomName('CanvasRenderingContext2D.measureText') 1170 @DocsEditable
1171 @DomName('CanvasRenderingContext2D.measureText')
1041 TextMetrics measureText(String text) native; 1172 TextMetrics measureText(String text) native;
1042 1173
1043 @DocsEditable @DomName('CanvasRenderingContext2D.moveTo') 1174 @DocsEditable
1175 @DomName('CanvasRenderingContext2D.moveTo')
1044 void moveTo(num x, num y) native; 1176 void moveTo(num x, num y) native;
1045 1177
1046 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) { 1178 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) {
1047 if (!?dirtyX && 1179 if (!?dirtyX &&
1048 !?dirtyY && 1180 !?dirtyY &&
1049 !?dirtyWidth && 1181 !?dirtyWidth &&
1050 !?dirtyHeight) { 1182 !?dirtyHeight) {
1051 var imagedata_1 = _convertDartToNative_ImageData(imagedata); 1183 var imagedata_1 = _convertDartToNative_ImageData(imagedata);
1052 _putImageData_1(imagedata_1, dx, dy); 1184 _putImageData_1(imagedata_1, dx, dy);
1053 return; 1185 return;
1054 } 1186 }
1055 var imagedata_2 = _convertDartToNative_ImageData(imagedata); 1187 var imagedata_2 = _convertDartToNative_ImageData(imagedata);
1056 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight ); 1188 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight );
1057 return; 1189 return;
1058 throw new ArgumentError("Incorrect number or type of arguments"); 1190 throw new ArgumentError("Incorrect number or type of arguments");
1059 } 1191 }
1060 @JSName('putImageData') 1192 @JSName('putImageData')
1061 @DocsEditable @DomName('CanvasRenderingContext2D.putImageData') 1193 @DocsEditable
1194 @DomName('CanvasRenderingContext2D.putImageData')
1062 void _putImageData_1(imagedata, dx, dy) native; 1195 void _putImageData_1(imagedata, dx, dy) native;
1063 @JSName('putImageData') 1196 @JSName('putImageData')
1064 @DocsEditable @DomName('CanvasRenderingContext2D.putImageData') 1197 @DocsEditable
1198 @DomName('CanvasRenderingContext2D.putImageData')
1065 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh t) native; 1199 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh t) native;
1066 1200
1067 @DocsEditable @DomName('CanvasRenderingContext2D.quadraticCurveTo') 1201 @DocsEditable
1202 @DomName('CanvasRenderingContext2D.quadraticCurveTo')
1068 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; 1203 void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
1069 1204
1070 @DocsEditable @DomName('CanvasRenderingContext2D.rect') 1205 @DocsEditable
1206 @DomName('CanvasRenderingContext2D.rect')
1071 void rect(num x, num y, num width, num height) native; 1207 void rect(num x, num y, num width, num height) native;
1072 1208
1073 @DocsEditable @DomName('CanvasRenderingContext2D.restore') 1209 @DocsEditable
1210 @DomName('CanvasRenderingContext2D.restore')
1074 void restore() native; 1211 void restore() native;
1075 1212
1076 @DocsEditable @DomName('CanvasRenderingContext2D.rotate') 1213 @DocsEditable
1214 @DomName('CanvasRenderingContext2D.rotate')
1077 void rotate(num angle) native; 1215 void rotate(num angle) native;
1078 1216
1079 @DocsEditable @DomName('CanvasRenderingContext2D.save') 1217 @DocsEditable
1218 @DomName('CanvasRenderingContext2D.save')
1080 void save() native; 1219 void save() native;
1081 1220
1082 @DocsEditable @DomName('CanvasRenderingContext2D.scale') 1221 @DocsEditable
1222 @DomName('CanvasRenderingContext2D.scale')
1083 void scale(num sx, num sy) native; 1223 void scale(num sx, num sy) native;
1084 1224
1085 @DocsEditable @DomName('CanvasRenderingContext2D.setLineDash') 1225 @DocsEditable
1226 @DomName('CanvasRenderingContext2D.setLineDash')
1086 void setLineDash(List<num> dash) native; 1227 void setLineDash(List<num> dash) native;
1087 1228
1088 @DocsEditable @DomName('CanvasRenderingContext2D.setTransform') 1229 @DocsEditable
1230 @DomName('CanvasRenderingContext2D.setTransform')
1089 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; 1231 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
1090 1232
1091 @DocsEditable @DomName('CanvasRenderingContext2D.stroke') 1233 @DocsEditable
1234 @DomName('CanvasRenderingContext2D.stroke')
1092 void stroke() native; 1235 void stroke() native;
1093 1236
1094 @DocsEditable @DomName('CanvasRenderingContext2D.strokeRect') 1237 @DocsEditable
1238 @DomName('CanvasRenderingContext2D.strokeRect')
1095 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; 1239 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native;
1096 1240
1097 @DocsEditable @DomName('CanvasRenderingContext2D.strokeText') 1241 @DocsEditable
1242 @DomName('CanvasRenderingContext2D.strokeText')
1098 void strokeText(String text, num x, num y, [num maxWidth]) native; 1243 void strokeText(String text, num x, num y, [num maxWidth]) native;
1099 1244
1100 @DocsEditable @DomName('CanvasRenderingContext2D.transform') 1245 @DocsEditable
1246 @DomName('CanvasRenderingContext2D.transform')
1101 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; 1247 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
1102 1248
1103 @DocsEditable @DomName('CanvasRenderingContext2D.translate') 1249 @DocsEditable
1250 @DomName('CanvasRenderingContext2D.translate')
1104 void translate(num tx, num ty) native; 1251 void translate(num tx, num ty) native;
1105 1252
1106 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { 1253 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) {
1107 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh )); 1254 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh ));
1108 } 1255 }
1109 @JSName('webkitGetImageDataHD') 1256 @JSName('webkitGetImageDataHD')
1110 @DocsEditable @DomName('CanvasRenderingContext2D.webkitGetImageDataHD') @Creat es('ImageData|=Object') 1257 @DocsEditable
1258 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
1259 @Creates('ImageData|=Object')
1111 _webkitGetImageDataHD_1(sx, sy, sw, sh) native; 1260 _webkitGetImageDataHD_1(sx, sy, sw, sh) native;
1112 1261
1113 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu m dirtyY, num dirtyWidth, num dirtyHeight]) { 1262 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu m dirtyY, num dirtyWidth, num dirtyHeight]) {
1114 if (!?dirtyX && 1263 if (!?dirtyX &&
1115 !?dirtyY && 1264 !?dirtyY &&
1116 !?dirtyWidth && 1265 !?dirtyWidth &&
1117 !?dirtyHeight) { 1266 !?dirtyHeight) {
1118 var imagedata_1 = _convertDartToNative_ImageData(imagedata); 1267 var imagedata_1 = _convertDartToNative_ImageData(imagedata);
1119 _webkitPutImageDataHD_1(imagedata_1, dx, dy); 1268 _webkitPutImageDataHD_1(imagedata_1, dx, dy);
1120 return; 1269 return;
1121 } 1270 }
1122 var imagedata_2 = _convertDartToNative_ImageData(imagedata); 1271 var imagedata_2 = _convertDartToNative_ImageData(imagedata);
1123 _webkitPutImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dir tyHeight); 1272 _webkitPutImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dir tyHeight);
1124 return; 1273 return;
1125 throw new ArgumentError("Incorrect number or type of arguments"); 1274 throw new ArgumentError("Incorrect number or type of arguments");
1126 } 1275 }
1127 @JSName('webkitPutImageDataHD') 1276 @JSName('webkitPutImageDataHD')
1128 @DocsEditable @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') 1277 @DocsEditable
1278 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
1129 void _webkitPutImageDataHD_1(imagedata, dx, dy) native; 1279 void _webkitPutImageDataHD_1(imagedata, dx, dy) native;
1130 @JSName('webkitPutImageDataHD') 1280 @JSName('webkitPutImageDataHD')
1131 @DocsEditable @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') 1281 @DocsEditable
1282 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
1132 void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, di rtyHeight) native; 1283 void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, di rtyHeight) native;
1133 1284
1134 1285
1135 /** 1286 /**
1136 * Sets the color used inside shapes. 1287 * Sets the color used inside shapes.
1137 * [r], [g], [b] are 0-255, [a] is 0-1. 1288 * [r], [g], [b] are 0-255, [a] is 0-1.
1138 */ 1289 */
1139 void setFillColorRgb(int r, int g, int b, [num a = 1]) { 1290 void setFillColorRgb(int r, int g, int b, [num a = 1]) {
1140 this.fillStyle = 'rgba($r, $g, $b, $a)'; 1291 this.fillStyle = 'rgba($r, $g, $b, $a)';
1141 } 1292 }
(...skipping 29 matching lines...) Expand all
1171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1172 // for details. All rights reserved. Use of this source code is governed by a 1323 // for details. All rights reserved. Use of this source code is governed by a
1173 // BSD-style license that can be found in the LICENSE file. 1324 // BSD-style license that can be found in the LICENSE file.
1174 1325
1175 1326
1176 1327
1177 @DocsEditable 1328 @DocsEditable
1178 @DomName('CharacterData') 1329 @DomName('CharacterData')
1179 class CharacterData extends Node native "*CharacterData" { 1330 class CharacterData extends Node native "*CharacterData" {
1180 1331
1181 @DocsEditable @DomName('CharacterData.data') 1332 @DocsEditable
1333 @DomName('CharacterData.data')
1182 String data; 1334 String data;
1183 1335
1184 @DocsEditable @DomName('CharacterData.length') 1336 @DocsEditable
1337 @DomName('CharacterData.length')
1185 final int length; 1338 final int length;
1186 1339
1187 @DocsEditable @DomName('CharacterData.appendData') 1340 @DocsEditable
1341 @DomName('CharacterData.appendData')
1188 void appendData(String data) native; 1342 void appendData(String data) native;
1189 1343
1190 @DocsEditable @DomName('CharacterData.deleteData') 1344 @DocsEditable
1345 @DomName('CharacterData.deleteData')
1191 void deleteData(int offset, int length) native; 1346 void deleteData(int offset, int length) native;
1192 1347
1193 @DocsEditable @DomName('CharacterData.insertData') 1348 @DocsEditable
1349 @DomName('CharacterData.insertData')
1194 void insertData(int offset, String data) native; 1350 void insertData(int offset, String data) native;
1195 1351
1196 @DocsEditable @DomName('CharacterData.remove') 1352 @DocsEditable
1353 @DomName('CharacterData.remove')
1197 void remove() native; 1354 void remove() native;
1198 1355
1199 @DocsEditable @DomName('CharacterData.replaceData') 1356 @DocsEditable
1357 @DomName('CharacterData.replaceData')
1200 void replaceData(int offset, int length, String data) native; 1358 void replaceData(int offset, int length, String data) native;
1201 1359
1202 @DocsEditable @DomName('CharacterData.substringData') 1360 @DocsEditable
1361 @DomName('CharacterData.substringData')
1203 String substringData(int offset, int length) native; 1362 String substringData(int offset, int length) native;
1204 } 1363 }
1205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1206 // for details. All rights reserved. Use of this source code is governed by a 1365 // for details. All rights reserved. Use of this source code is governed by a
1207 // BSD-style license that can be found in the LICENSE file. 1366 // BSD-style license that can be found in the LICENSE file.
1208 1367
1209 1368
1210 1369
1211 @DocsEditable 1370 @DocsEditable
1212 @DomName('ClientRect') 1371 @DomName('ClientRect')
1213 class ClientRect native "*ClientRect" { 1372 class ClientRect native "*ClientRect" {
1214 1373
1215 @DocsEditable @DomName('ClientRect.bottom') 1374 @DocsEditable
1375 @DomName('ClientRect.bottom')
1216 final num bottom; 1376 final num bottom;
1217 1377
1218 @DocsEditable @DomName('ClientRect.height') 1378 @DocsEditable
1379 @DomName('ClientRect.height')
1219 final num height; 1380 final num height;
1220 1381
1221 @DocsEditable @DomName('ClientRect.left') 1382 @DocsEditable
1383 @DomName('ClientRect.left')
1222 final num left; 1384 final num left;
1223 1385
1224 @DocsEditable @DomName('ClientRect.right') 1386 @DocsEditable
1387 @DomName('ClientRect.right')
1225 final num right; 1388 final num right;
1226 1389
1227 @DocsEditable @DomName('ClientRect.top') 1390 @DocsEditable
1391 @DomName('ClientRect.top')
1228 final num top; 1392 final num top;
1229 1393
1230 @DocsEditable @DomName('ClientRect.width') 1394 @DocsEditable
1395 @DomName('ClientRect.width')
1231 final num width; 1396 final num width;
1232 } 1397 }
1233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1234 // for details. All rights reserved. Use of this source code is governed by a 1399 // for details. All rights reserved. Use of this source code is governed by a
1235 // BSD-style license that can be found in the LICENSE file. 1400 // BSD-style license that can be found in the LICENSE file.
1236 1401
1237 1402
1238 1403
1239 @DocsEditable 1404 @DocsEditable
1240 @DomName('Clipboard') 1405 @DomName('Clipboard')
1241 class Clipboard native "*Clipboard" { 1406 class Clipboard native "*Clipboard" {
1242 1407
1243 @DocsEditable @DomName('Clipboard.dropEffect') 1408 @DocsEditable
1409 @DomName('Clipboard.dropEffect')
1244 String dropEffect; 1410 String dropEffect;
1245 1411
1246 @DocsEditable @DomName('Clipboard.effectAllowed') 1412 @DocsEditable
1413 @DomName('Clipboard.effectAllowed')
1247 String effectAllowed; 1414 String effectAllowed;
1248 1415
1249 @DocsEditable @DomName('Clipboard.files') 1416 @DocsEditable
1250 @Returns('FileList') @Creates('FileList') 1417 @DomName('Clipboard.files')
1418 @Returns('FileList')
1419 @Creates('FileList')
1251 final List<File> files; 1420 final List<File> files;
1252 1421
1253 @DocsEditable @DomName('Clipboard.items') 1422 @DocsEditable
1423 @DomName('Clipboard.items')
1254 final DataTransferItemList items; 1424 final DataTransferItemList items;
1255 1425
1256 @DocsEditable @DomName('Clipboard.types') 1426 @DocsEditable
1427 @DomName('Clipboard.types')
1257 final List types; 1428 final List types;
1258 1429
1259 @DocsEditable @DomName('Clipboard.clearData') 1430 @DocsEditable
1431 @DomName('Clipboard.clearData')
1260 void clearData([String type]) native; 1432 void clearData([String type]) native;
1261 1433
1262 @DocsEditable @DomName('Clipboard.getData') 1434 @DocsEditable
1435 @DomName('Clipboard.getData')
1263 String getData(String type) native; 1436 String getData(String type) native;
1264 1437
1265 @DocsEditable @DomName('Clipboard.setData') 1438 @DocsEditable
1439 @DomName('Clipboard.setData')
1266 bool setData(String type, String data) native; 1440 bool setData(String type, String data) native;
1267 1441
1268 @DocsEditable @DomName('Clipboard.setDragImage') 1442 @DocsEditable
1443 @DomName('Clipboard.setDragImage')
1269 void setDragImage(ImageElement image, int x, int y) native; 1444 void setDragImage(ImageElement image, int x, int y) native;
1270 } 1445 }
1271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1272 // for details. All rights reserved. Use of this source code is governed by a 1447 // for details. All rights reserved. Use of this source code is governed by a
1273 // BSD-style license that can be found in the LICENSE file. 1448 // BSD-style license that can be found in the LICENSE file.
1274 1449
1275 1450
1276 1451
1277 @DocsEditable 1452 @DocsEditable
1278 @DomName('CloseEvent') 1453 @DomName('CloseEvent')
1279 class CloseEvent extends Event native "*CloseEvent" { 1454 class CloseEvent extends Event native "*CloseEvent" {
1280 1455
1281 @DocsEditable @DomName('CloseEvent.code') 1456 @DocsEditable
1457 @DomName('CloseEvent.code')
1282 final int code; 1458 final int code;
1283 1459
1284 @DocsEditable @DomName('CloseEvent.reason') 1460 @DocsEditable
1461 @DomName('CloseEvent.reason')
1285 final String reason; 1462 final String reason;
1286 1463
1287 @DocsEditable @DomName('CloseEvent.wasClean') 1464 @DocsEditable
1465 @DomName('CloseEvent.wasClean')
1288 final bool wasClean; 1466 final bool wasClean;
1289 } 1467 }
1290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1291 // for details. All rights reserved. Use of this source code is governed by a 1469 // for details. All rights reserved. Use of this source code is governed by a
1292 // BSD-style license that can be found in the LICENSE file. 1470 // BSD-style license that can be found in the LICENSE file.
1293 1471
1294 1472
1295 1473
1296 @DocsEditable 1474 @DocsEditable
1297 @DomName('Comment') 1475 @DomName('Comment')
1298 class Comment extends CharacterData native "*Comment" { 1476 class Comment extends CharacterData native "*Comment" {
1299 } 1477 }
1300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1301 // for details. All rights reserved. Use of this source code is governed by a 1479 // for details. All rights reserved. Use of this source code is governed by a
1302 // BSD-style license that can be found in the LICENSE file. 1480 // BSD-style license that can be found in the LICENSE file.
1303 1481
1304 1482
1305 1483
1306 @DocsEditable 1484 @DocsEditable
1307 @DomName('CompositionEvent') 1485 @DomName('CompositionEvent')
1308 class CompositionEvent extends UIEvent native "*CompositionEvent" { 1486 class CompositionEvent extends UIEvent native "*CompositionEvent" {
1309 1487
1310 @DocsEditable @DomName('CompositionEvent.data') 1488 @DocsEditable
1489 @DomName('CompositionEvent.data')
1311 final String data; 1490 final String data;
1312 1491
1313 @DocsEditable @DomName('CompositionEvent.initCompositionEvent') 1492 @DocsEditable
1493 @DomName('CompositionEvent.initCompositionEvent')
1314 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Window viewArg, String dataArg) native; 1494 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Window viewArg, String dataArg) native;
1315 } 1495 }
1316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1317 // for details. All rights reserved. Use of this source code is governed by a 1497 // for details. All rights reserved. Use of this source code is governed by a
1318 // BSD-style license that can be found in the LICENSE file. 1498 // BSD-style license that can be found in the LICENSE file.
1319 1499
1320 1500
1321 @DocsEditable 1501 @DocsEditable
1322 @DomName('Console') 1502 @DomName('Console')
1323 class Console { 1503 class Console {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 JS('void', 'console.timeStamp(#)', arg) : null; 1583 JS('void', 'console.timeStamp(#)', arg) : null;
1404 1584
1405 @DomName('Console.trace') 1585 @DomName('Console.trace')
1406 void trace(Object arg) => _isConsoleDefined ? 1586 void trace(Object arg) => _isConsoleDefined ?
1407 JS('void', 'console.trace(#)', arg) : null; 1587 JS('void', 'console.trace(#)', arg) : null;
1408 1588
1409 @DomName('Console.warn') 1589 @DomName('Console.warn')
1410 void warn(Object arg) => _isConsoleDefined ? 1590 void warn(Object arg) => _isConsoleDefined ?
1411 JS('void', 'console.warn(#)', arg) : null; 1591 JS('void', 'console.warn(#)', arg) : null;
1412 1592
1413 @DocsEditable @DomName('Console.clear') 1593 @DocsEditable
1594 @DomName('Console.clear')
1414 void clear(Object arg) native; 1595 void clear(Object arg) native;
1415 1596
1416 } 1597 }
1417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1598 // 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 1599 // 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. 1600 // BSD-style license that can be found in the LICENSE file.
1420 1601
1421 1602
1422 1603
1423 @DocsEditable 1604 @DocsEditable
1424 @DomName('HTMLContentElement') 1605 @DomName('HTMLContentElement')
1425 @SupportedBrowser(SupportedBrowser.CHROME, '25') 1606 @SupportedBrowser(SupportedBrowser.CHROME, '25')
1426 @Experimental() 1607 @Experimental()
1427 class ContentElement extends Element native "*HTMLContentElement" { 1608 class ContentElement extends Element native "*HTMLContentElement" {
1428 1609
1429 @DocsEditable 1610 @DocsEditable
1430 factory ContentElement() => document.$dom_createElement("content"); 1611 factory ContentElement() => document.$dom_createElement("content");
1431 1612
1432 /// Checks if this type is supported on the current platform. 1613 /// Checks if this type is supported on the current platform.
1433 static bool get supported => Element.isTagSupported('content'); 1614 static bool get supported => Element.isTagSupported('content');
1434 1615
1435 @DocsEditable @DomName('HTMLContentElement.resetStyleInheritance') 1616 @DocsEditable
1617 @DomName('HTMLContentElement.resetStyleInheritance')
1436 bool resetStyleInheritance; 1618 bool resetStyleInheritance;
1437 1619
1438 @DocsEditable @DomName('HTMLContentElement.select') 1620 @DocsEditable
1621 @DomName('HTMLContentElement.select')
1439 String select; 1622 String select;
1440 1623
1441 @DocsEditable @DomName('HTMLContentElement.getDistributedNodes') 1624 @DocsEditable
1442 @Returns('NodeList') @Creates('NodeList') 1625 @DomName('HTMLContentElement.getDistributedNodes')
1626 @Returns('NodeList')
1627 @Creates('NodeList')
1443 List<Node> getDistributedNodes() native; 1628 List<Node> getDistributedNodes() native;
1444 } 1629 }
1445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1446 // for details. All rights reserved. Use of this source code is governed by a 1631 // for details. All rights reserved. Use of this source code is governed by a
1447 // BSD-style license that can be found in the LICENSE file. 1632 // BSD-style license that can be found in the LICENSE file.
1448 1633
1449 1634
1450 1635
1451 @DocsEditable 1636 @DocsEditable
1452 @DomName('Coordinates') 1637 @DomName('Coordinates')
1453 class Coordinates native "*Coordinates" { 1638 class Coordinates native "*Coordinates" {
1454 1639
1455 @DocsEditable @DomName('Coordinates.accuracy') 1640 @DocsEditable
1641 @DomName('Coordinates.accuracy')
1456 final num accuracy; 1642 final num accuracy;
1457 1643
1458 @DocsEditable @DomName('Coordinates.altitude') 1644 @DocsEditable
1645 @DomName('Coordinates.altitude')
1459 final num altitude; 1646 final num altitude;
1460 1647
1461 @DocsEditable @DomName('Coordinates.altitudeAccuracy') 1648 @DocsEditable
1649 @DomName('Coordinates.altitudeAccuracy')
1462 final num altitudeAccuracy; 1650 final num altitudeAccuracy;
1463 1651
1464 @DocsEditable @DomName('Coordinates.heading') 1652 @DocsEditable
1653 @DomName('Coordinates.heading')
1465 final num heading; 1654 final num heading;
1466 1655
1467 @DocsEditable @DomName('Coordinates.latitude') 1656 @DocsEditable
1657 @DomName('Coordinates.latitude')
1468 final num latitude; 1658 final num latitude;
1469 1659
1470 @DocsEditable @DomName('Coordinates.longitude') 1660 @DocsEditable
1661 @DomName('Coordinates.longitude')
1471 final num longitude; 1662 final num longitude;
1472 1663
1473 @DocsEditable @DomName('Coordinates.speed') 1664 @DocsEditable
1665 @DomName('Coordinates.speed')
1474 final num speed; 1666 final num speed;
1475 } 1667 }
1476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1477 // for details. All rights reserved. Use of this source code is governed by a 1669 // for details. All rights reserved. Use of this source code is governed by a
1478 // BSD-style license that can be found in the LICENSE file. 1670 // BSD-style license that can be found in the LICENSE file.
1479 1671
1480 1672
1481 1673
1482 @DocsEditable 1674 @DocsEditable
1483 @DomName('Counter') 1675 @DomName('Counter')
1484 class Counter native "*Counter" { 1676 class Counter native "*Counter" {
1485 1677
1486 @DocsEditable @DomName('Counter.identifier') 1678 @DocsEditable
1679 @DomName('Counter.identifier')
1487 final String identifier; 1680 final String identifier;
1488 1681
1489 @DocsEditable @DomName('Counter.listStyle') 1682 @DocsEditable
1683 @DomName('Counter.listStyle')
1490 final String listStyle; 1684 final String listStyle;
1491 1685
1492 @DocsEditable @DomName('Counter.separator') 1686 @DocsEditable
1687 @DomName('Counter.separator')
1493 final String separator; 1688 final String separator;
1494 } 1689 }
1495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1496 // for details. All rights reserved. Use of this source code is governed by a 1691 // for details. All rights reserved. Use of this source code is governed by a
1497 // BSD-style license that can be found in the LICENSE file. 1692 // BSD-style license that can be found in the LICENSE file.
1498 1693
1499 1694
1500 1695
1501 @DocsEditable 1696 @DocsEditable
1502 @DomName('Crypto') 1697 @DomName('Crypto')
1503 class Crypto native "*Crypto" { 1698 class Crypto native "*Crypto" {
1504 1699
1505 @DocsEditable @DomName('Crypto.getRandomValues') 1700 @DocsEditable
1701 @DomName('Crypto.getRandomValues')
1506 ArrayBufferView getRandomValues(ArrayBufferView array) native; 1702 ArrayBufferView getRandomValues(ArrayBufferView array) native;
1507 } 1703 }
1508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1509 // for details. All rights reserved. Use of this source code is governed by a 1705 // for details. All rights reserved. Use of this source code is governed by a
1510 // BSD-style license that can be found in the LICENSE file. 1706 // BSD-style license that can be found in the LICENSE file.
1511 1707
1512 1708
1513 1709
1514 @DocsEditable 1710 @DocsEditable
1515 @DomName('CSSCharsetRule') 1711 @DomName('CSSCharsetRule')
1516 class CssCharsetRule extends CssRule native "*CSSCharsetRule" { 1712 class CssCharsetRule extends CssRule native "*CSSCharsetRule" {
1517 1713
1518 @DocsEditable @DomName('CSSCharsetRule.encoding') 1714 @DocsEditable
1715 @DomName('CSSCharsetRule.encoding')
1519 String encoding; 1716 String encoding;
1520 } 1717 }
1521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1522 // for details. All rights reserved. Use of this source code is governed by a 1719 // for details. All rights reserved. Use of this source code is governed by a
1523 // BSD-style license that can be found in the LICENSE file. 1720 // BSD-style license that can be found in the LICENSE file.
1524 1721
1525 1722
1526 1723
1527 @DocsEditable 1724 @DocsEditable
1528 @DomName('CSSFontFaceRule') 1725 @DomName('CSSFontFaceRule')
1529 class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" { 1726 class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" {
1530 1727
1531 @DocsEditable @DomName('CSSFontFaceRule.style') 1728 @DocsEditable
1729 @DomName('CSSFontFaceRule.style')
1532 final CssStyleDeclaration style; 1730 final CssStyleDeclaration style;
1533 } 1731 }
1534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1535 // for details. All rights reserved. Use of this source code is governed by a 1733 // for details. All rights reserved. Use of this source code is governed by a
1536 // BSD-style license that can be found in the LICENSE file. 1734 // BSD-style license that can be found in the LICENSE file.
1537 1735
1538 1736
1539 1737
1540 @DocsEditable 1738 @DocsEditable
1541 @DomName('CSSImportRule') 1739 @DomName('CSSImportRule')
1542 class CssImportRule extends CssRule native "*CSSImportRule" { 1740 class CssImportRule extends CssRule native "*CSSImportRule" {
1543 1741
1544 @DocsEditable @DomName('CSSImportRule.href') 1742 @DocsEditable
1743 @DomName('CSSImportRule.href')
1545 final String href; 1744 final String href;
1546 1745
1547 @DocsEditable @DomName('CSSImportRule.media') 1746 @DocsEditable
1747 @DomName('CSSImportRule.media')
1548 final MediaList media; 1748 final MediaList media;
1549 1749
1550 @DocsEditable @DomName('CSSImportRule.styleSheet') 1750 @DocsEditable
1751 @DomName('CSSImportRule.styleSheet')
1551 final CssStyleSheet styleSheet; 1752 final CssStyleSheet styleSheet;
1552 } 1753 }
1553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1554 // for details. All rights reserved. Use of this source code is governed by a 1755 // for details. All rights reserved. Use of this source code is governed by a
1555 // BSD-style license that can be found in the LICENSE file. 1756 // BSD-style license that can be found in the LICENSE file.
1556 1757
1557 1758
1558 1759
1559 @DocsEditable 1760 @DocsEditable
1560 @DomName('WebKitCSSKeyframeRule') 1761 @DomName('WebKitCSSKeyframeRule')
1561 class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" { 1762 class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" {
1562 1763
1563 @DocsEditable @DomName('WebKitCSSKeyframeRule.keyText') 1764 @DocsEditable
1765 @DomName('WebKitCSSKeyframeRule.keyText')
1564 String keyText; 1766 String keyText;
1565 1767
1566 @DocsEditable @DomName('WebKitCSSKeyframeRule.style') 1768 @DocsEditable
1769 @DomName('WebKitCSSKeyframeRule.style')
1567 final CssStyleDeclaration style; 1770 final CssStyleDeclaration style;
1568 } 1771 }
1569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1570 // for details. All rights reserved. Use of this source code is governed by a 1773 // for details. All rights reserved. Use of this source code is governed by a
1571 // BSD-style license that can be found in the LICENSE file. 1774 // BSD-style license that can be found in the LICENSE file.
1572 1775
1573 1776
1574 1777
1575 @DocsEditable 1778 @DocsEditable
1576 @DomName('WebKitCSSKeyframesRule') 1779 @DomName('WebKitCSSKeyframesRule')
1577 class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" { 1780 class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" {
1578 1781
1579 @DocsEditable @DomName('WebKitCSSKeyframesRule.cssRules') 1782 @DocsEditable
1580 @Returns('_CssRuleList') @Creates('_CssRuleList') 1783 @DomName('WebKitCSSKeyframesRule.cssRules')
1784 @Returns('_CssRuleList')
1785 @Creates('_CssRuleList')
1581 final List<CssRule> cssRules; 1786 final List<CssRule> cssRules;
1582 1787
1583 @DocsEditable @DomName('WebKitCSSKeyframesRule.name') 1788 @DocsEditable
1789 @DomName('WebKitCSSKeyframesRule.name')
1584 String name; 1790 String name;
1585 1791
1586 @DocsEditable @DomName('WebKitCSSKeyframesRule.deleteRule') 1792 @DocsEditable
1793 @DomName('WebKitCSSKeyframesRule.deleteRule')
1587 void deleteRule(String key) native; 1794 void deleteRule(String key) native;
1588 1795
1589 @DocsEditable @DomName('WebKitCSSKeyframesRule.findRule') 1796 @DocsEditable
1797 @DomName('WebKitCSSKeyframesRule.findRule')
1590 CssKeyframeRule findRule(String key) native; 1798 CssKeyframeRule findRule(String key) native;
1591 1799
1592 @DocsEditable @DomName('WebKitCSSKeyframesRule.insertRule') 1800 @DocsEditable
1801 @DomName('WebKitCSSKeyframesRule.insertRule')
1593 void insertRule(String rule) native; 1802 void insertRule(String rule) native;
1594 } 1803 }
1595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1596 // for details. All rights reserved. Use of this source code is governed by a 1805 // for details. All rights reserved. Use of this source code is governed by a
1597 // BSD-style license that can be found in the LICENSE file. 1806 // BSD-style license that can be found in the LICENSE file.
1598 1807
1599 1808
1600 1809
1601 @DocsEditable 1810 @DocsEditable
1602 @DomName('WebKitCSSMatrix') 1811 @DomName('WebKitCSSMatrix')
1603 class CssMatrix native "*WebKitCSSMatrix" { 1812 class CssMatrix native "*WebKitCSSMatrix" {
1604 1813
1605 @DocsEditable 1814 @DocsEditable
1606 factory CssMatrix([String cssValue]) { 1815 factory CssMatrix([String cssValue]) {
1607 if (!?cssValue) { 1816 if (!?cssValue) {
1608 return CssMatrix._create(); 1817 return CssMatrix._create();
1609 } 1818 }
1610 return CssMatrix._create(cssValue); 1819 return CssMatrix._create(cssValue);
1611 } 1820 }
1612 static CssMatrix _create([String cssValue]) { 1821 static CssMatrix _create([String cssValue]) {
1613 if (!?cssValue) { 1822 if (!?cssValue) {
1614 return JS('CssMatrix', 'new WebKitCSSMatrix()'); 1823 return JS('CssMatrix', 'new WebKitCSSMatrix()');
1615 } 1824 }
1616 return JS('CssMatrix', 'new WebKitCSSMatrix(#)', cssValue); 1825 return JS('CssMatrix', 'new WebKitCSSMatrix(#)', cssValue);
1617 } 1826 }
1618 1827
1619 @DocsEditable @DomName('WebKitCSSMatrix.a') 1828 @DocsEditable
1829 @DomName('WebKitCSSMatrix.a')
1620 num a; 1830 num a;
1621 1831
1622 @DocsEditable @DomName('WebKitCSSMatrix.b') 1832 @DocsEditable
1833 @DomName('WebKitCSSMatrix.b')
1623 num b; 1834 num b;
1624 1835
1625 @DocsEditable @DomName('WebKitCSSMatrix.c') 1836 @DocsEditable
1837 @DomName('WebKitCSSMatrix.c')
1626 num c; 1838 num c;
1627 1839
1628 @DocsEditable @DomName('WebKitCSSMatrix.d') 1840 @DocsEditable
1841 @DomName('WebKitCSSMatrix.d')
1629 num d; 1842 num d;
1630 1843
1631 @DocsEditable @DomName('WebKitCSSMatrix.e') 1844 @DocsEditable
1845 @DomName('WebKitCSSMatrix.e')
1632 num e; 1846 num e;
1633 1847
1634 @DocsEditable @DomName('WebKitCSSMatrix.f') 1848 @DocsEditable
1849 @DomName('WebKitCSSMatrix.f')
1635 num f; 1850 num f;
1636 1851
1637 @DocsEditable @DomName('WebKitCSSMatrix.m11') 1852 @DocsEditable
1853 @DomName('WebKitCSSMatrix.m11')
1638 num m11; 1854 num m11;
1639 1855
1640 @DocsEditable @DomName('WebKitCSSMatrix.m12') 1856 @DocsEditable
1857 @DomName('WebKitCSSMatrix.m12')
1641 num m12; 1858 num m12;
1642 1859
1643 @DocsEditable @DomName('WebKitCSSMatrix.m13') 1860 @DocsEditable
1861 @DomName('WebKitCSSMatrix.m13')
1644 num m13; 1862 num m13;
1645 1863
1646 @DocsEditable @DomName('WebKitCSSMatrix.m14') 1864 @DocsEditable
1865 @DomName('WebKitCSSMatrix.m14')
1647 num m14; 1866 num m14;
1648 1867
1649 @DocsEditable @DomName('WebKitCSSMatrix.m21') 1868 @DocsEditable
1869 @DomName('WebKitCSSMatrix.m21')
1650 num m21; 1870 num m21;
1651 1871
1652 @DocsEditable @DomName('WebKitCSSMatrix.m22') 1872 @DocsEditable
1873 @DomName('WebKitCSSMatrix.m22')
1653 num m22; 1874 num m22;
1654 1875
1655 @DocsEditable @DomName('WebKitCSSMatrix.m23') 1876 @DocsEditable
1877 @DomName('WebKitCSSMatrix.m23')
1656 num m23; 1878 num m23;
1657 1879
1658 @DocsEditable @DomName('WebKitCSSMatrix.m24') 1880 @DocsEditable
1881 @DomName('WebKitCSSMatrix.m24')
1659 num m24; 1882 num m24;
1660 1883
1661 @DocsEditable @DomName('WebKitCSSMatrix.m31') 1884 @DocsEditable
1885 @DomName('WebKitCSSMatrix.m31')
1662 num m31; 1886 num m31;
1663 1887
1664 @DocsEditable @DomName('WebKitCSSMatrix.m32') 1888 @DocsEditable
1889 @DomName('WebKitCSSMatrix.m32')
1665 num m32; 1890 num m32;
1666 1891
1667 @DocsEditable @DomName('WebKitCSSMatrix.m33') 1892 @DocsEditable
1893 @DomName('WebKitCSSMatrix.m33')
1668 num m33; 1894 num m33;
1669 1895
1670 @DocsEditable @DomName('WebKitCSSMatrix.m34') 1896 @DocsEditable
1897 @DomName('WebKitCSSMatrix.m34')
1671 num m34; 1898 num m34;
1672 1899
1673 @DocsEditable @DomName('WebKitCSSMatrix.m41') 1900 @DocsEditable
1901 @DomName('WebKitCSSMatrix.m41')
1674 num m41; 1902 num m41;
1675 1903
1676 @DocsEditable @DomName('WebKitCSSMatrix.m42') 1904 @DocsEditable
1905 @DomName('WebKitCSSMatrix.m42')
1677 num m42; 1906 num m42;
1678 1907
1679 @DocsEditable @DomName('WebKitCSSMatrix.m43') 1908 @DocsEditable
1909 @DomName('WebKitCSSMatrix.m43')
1680 num m43; 1910 num m43;
1681 1911
1682 @DocsEditable @DomName('WebKitCSSMatrix.m44') 1912 @DocsEditable
1913 @DomName('WebKitCSSMatrix.m44')
1683 num m44; 1914 num m44;
1684 1915
1685 @DocsEditable @DomName('WebKitCSSMatrix.inverse') 1916 @DocsEditable
1917 @DomName('WebKitCSSMatrix.inverse')
1686 CssMatrix inverse() native; 1918 CssMatrix inverse() native;
1687 1919
1688 @DocsEditable @DomName('WebKitCSSMatrix.multiply') 1920 @DocsEditable
1921 @DomName('WebKitCSSMatrix.multiply')
1689 CssMatrix multiply(CssMatrix secondMatrix) native; 1922 CssMatrix multiply(CssMatrix secondMatrix) native;
1690 1923
1691 @DocsEditable @DomName('WebKitCSSMatrix.rotate') 1924 @DocsEditable
1925 @DomName('WebKitCSSMatrix.rotate')
1692 CssMatrix rotate(num rotX, num rotY, num rotZ) native; 1926 CssMatrix rotate(num rotX, num rotY, num rotZ) native;
1693 1927
1694 @DocsEditable @DomName('WebKitCSSMatrix.rotateAxisAngle') 1928 @DocsEditable
1929 @DomName('WebKitCSSMatrix.rotateAxisAngle')
1695 CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native; 1930 CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native;
1696 1931
1697 @DocsEditable @DomName('WebKitCSSMatrix.scale') 1932 @DocsEditable
1933 @DomName('WebKitCSSMatrix.scale')
1698 CssMatrix scale(num scaleX, num scaleY, num scaleZ) native; 1934 CssMatrix scale(num scaleX, num scaleY, num scaleZ) native;
1699 1935
1700 @DocsEditable @DomName('WebKitCSSMatrix.setMatrixValue') 1936 @DocsEditable
1937 @DomName('WebKitCSSMatrix.setMatrixValue')
1701 void setMatrixValue(String string) native; 1938 void setMatrixValue(String string) native;
1702 1939
1703 @DocsEditable @DomName('WebKitCSSMatrix.skewX') 1940 @DocsEditable
1941 @DomName('WebKitCSSMatrix.skewX')
1704 CssMatrix skewX(num angle) native; 1942 CssMatrix skewX(num angle) native;
1705 1943
1706 @DocsEditable @DomName('WebKitCSSMatrix.skewY') 1944 @DocsEditable
1945 @DomName('WebKitCSSMatrix.skewY')
1707 CssMatrix skewY(num angle) native; 1946 CssMatrix skewY(num angle) native;
1708 1947
1709 @DocsEditable @DomName('WebKitCSSMatrix.toString') 1948 @DocsEditable
1949 @DomName('WebKitCSSMatrix.toString')
1710 String toString() native; 1950 String toString() native;
1711 1951
1712 @DocsEditable @DomName('WebKitCSSMatrix.translate') 1952 @DocsEditable
1953 @DomName('WebKitCSSMatrix.translate')
1713 CssMatrix translate(num x, num y, num z) native; 1954 CssMatrix translate(num x, num y, num z) native;
1714 } 1955 }
1715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1716 // for details. All rights reserved. Use of this source code is governed by a 1957 // for details. All rights reserved. Use of this source code is governed by a
1717 // BSD-style license that can be found in the LICENSE file. 1958 // BSD-style license that can be found in the LICENSE file.
1718 1959
1719 1960
1720 1961
1721 @DocsEditable 1962 @DocsEditable
1722 @DomName('CSSMediaRule') 1963 @DomName('CSSMediaRule')
1723 class CssMediaRule extends CssRule native "*CSSMediaRule" { 1964 class CssMediaRule extends CssRule native "*CSSMediaRule" {
1724 1965
1725 @DocsEditable @DomName('CSSMediaRule.cssRules') 1966 @DocsEditable
1726 @Returns('_CssRuleList') @Creates('_CssRuleList') 1967 @DomName('CSSMediaRule.cssRules')
1968 @Returns('_CssRuleList')
1969 @Creates('_CssRuleList')
1727 final List<CssRule> cssRules; 1970 final List<CssRule> cssRules;
1728 1971
1729 @DocsEditable @DomName('CSSMediaRule.media') 1972 @DocsEditable
1973 @DomName('CSSMediaRule.media')
1730 final MediaList media; 1974 final MediaList media;
1731 1975
1732 @DocsEditable @DomName('CSSMediaRule.deleteRule') 1976 @DocsEditable
1977 @DomName('CSSMediaRule.deleteRule')
1733 void deleteRule(int index) native; 1978 void deleteRule(int index) native;
1734 1979
1735 @DocsEditable @DomName('CSSMediaRule.insertRule') 1980 @DocsEditable
1981 @DomName('CSSMediaRule.insertRule')
1736 int insertRule(String rule, int index) native; 1982 int insertRule(String rule, int index) native;
1737 } 1983 }
1738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1739 // for details. All rights reserved. Use of this source code is governed by a 1985 // for details. All rights reserved. Use of this source code is governed by a
1740 // BSD-style license that can be found in the LICENSE file. 1986 // BSD-style license that can be found in the LICENSE file.
1741 1987
1742 1988
1743 1989
1744 @DocsEditable 1990 @DocsEditable
1745 @DomName('CSSPageRule') 1991 @DomName('CSSPageRule')
1746 class CssPageRule extends CssRule native "*CSSPageRule" { 1992 class CssPageRule extends CssRule native "*CSSPageRule" {
1747 1993
1748 @DocsEditable @DomName('CSSPageRule.selectorText') 1994 @DocsEditable
1995 @DomName('CSSPageRule.selectorText')
1749 String selectorText; 1996 String selectorText;
1750 1997
1751 @DocsEditable @DomName('CSSPageRule.style') 1998 @DocsEditable
1999 @DomName('CSSPageRule.style')
1752 final CssStyleDeclaration style; 2000 final CssStyleDeclaration style;
1753 } 2001 }
1754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1755 // for details. All rights reserved. Use of this source code is governed by a 2003 // for details. All rights reserved. Use of this source code is governed by a
1756 // BSD-style license that can be found in the LICENSE file. 2004 // BSD-style license that can be found in the LICENSE file.
1757 2005
1758 2006
1759 2007
1760 @DocsEditable 2008 @DocsEditable
1761 @DomName('CSSPrimitiveValue') 2009 @DomName('CSSPrimitiveValue')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 static const int CSS_UNKNOWN = 0; 2060 static const int CSS_UNKNOWN = 0;
1813 2061
1814 static const int CSS_URI = 20; 2062 static const int CSS_URI = 20;
1815 2063
1816 static const int CSS_VH = 27; 2064 static const int CSS_VH = 27;
1817 2065
1818 static const int CSS_VMIN = 28; 2066 static const int CSS_VMIN = 28;
1819 2067
1820 static const int CSS_VW = 26; 2068 static const int CSS_VW = 26;
1821 2069
1822 @DocsEditable @DomName('CSSPrimitiveValue.primitiveType') 2070 @DocsEditable
2071 @DomName('CSSPrimitiveValue.primitiveType')
1823 final int primitiveType; 2072 final int primitiveType;
1824 2073
1825 @DocsEditable @DomName('CSSPrimitiveValue.getCounterValue') 2074 @DocsEditable
2075 @DomName('CSSPrimitiveValue.getCounterValue')
1826 Counter getCounterValue() native; 2076 Counter getCounterValue() native;
1827 2077
1828 @DocsEditable @DomName('CSSPrimitiveValue.getFloatValue') 2078 @DocsEditable
2079 @DomName('CSSPrimitiveValue.getFloatValue')
1829 num getFloatValue(int unitType) native; 2080 num getFloatValue(int unitType) native;
1830 2081
1831 @JSName('getRGBColorValue') 2082 @JSName('getRGBColorValue')
1832 @DocsEditable @DomName('CSSPrimitiveValue.getRGBColorValue') 2083 @DocsEditable
2084 @DomName('CSSPrimitiveValue.getRGBColorValue')
1833 RgbColor getRgbColorValue() native; 2085 RgbColor getRgbColorValue() native;
1834 2086
1835 @DocsEditable @DomName('CSSPrimitiveValue.getRectValue') 2087 @DocsEditable
2088 @DomName('CSSPrimitiveValue.getRectValue')
1836 Rect getRectValue() native; 2089 Rect getRectValue() native;
1837 2090
1838 @DocsEditable @DomName('CSSPrimitiveValue.getStringValue') 2091 @DocsEditable
2092 @DomName('CSSPrimitiveValue.getStringValue')
1839 String getStringValue() native; 2093 String getStringValue() native;
1840 2094
1841 @DocsEditable @DomName('CSSPrimitiveValue.setFloatValue') 2095 @DocsEditable
2096 @DomName('CSSPrimitiveValue.setFloatValue')
1842 void setFloatValue(int unitType, num floatValue) native; 2097 void setFloatValue(int unitType, num floatValue) native;
1843 2098
1844 @DocsEditable @DomName('CSSPrimitiveValue.setStringValue') 2099 @DocsEditable
2100 @DomName('CSSPrimitiveValue.setStringValue')
1845 void setStringValue(int stringType, String stringValue) native; 2101 void setStringValue(int stringType, String stringValue) native;
1846 } 2102 }
1847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1848 // for details. All rights reserved. Use of this source code is governed by a 2104 // for details. All rights reserved. Use of this source code is governed by a
1849 // BSD-style license that can be found in the LICENSE file. 2105 // BSD-style license that can be found in the LICENSE file.
1850 2106
1851 2107
1852 2108
1853 @DocsEditable 2109 @DocsEditable
1854 @DomName('CSSRule') 2110 @DomName('CSSRule')
(...skipping 10 matching lines...) Expand all
1865 static const int PAGE_RULE = 6; 2121 static const int PAGE_RULE = 6;
1866 2122
1867 static const int STYLE_RULE = 1; 2123 static const int STYLE_RULE = 1;
1868 2124
1869 static const int UNKNOWN_RULE = 0; 2125 static const int UNKNOWN_RULE = 0;
1870 2126
1871 static const int WEBKIT_KEYFRAMES_RULE = 7; 2127 static const int WEBKIT_KEYFRAMES_RULE = 7;
1872 2128
1873 static const int WEBKIT_KEYFRAME_RULE = 8; 2129 static const int WEBKIT_KEYFRAME_RULE = 8;
1874 2130
1875 @DocsEditable @DomName('CSSRule.cssText') 2131 @DocsEditable
2132 @DomName('CSSRule.cssText')
1876 String cssText; 2133 String cssText;
1877 2134
1878 @DocsEditable @DomName('CSSRule.parentRule') 2135 @DocsEditable
2136 @DomName('CSSRule.parentRule')
1879 final CssRule parentRule; 2137 final CssRule parentRule;
1880 2138
1881 @DocsEditable @DomName('CSSRule.parentStyleSheet') 2139 @DocsEditable
2140 @DomName('CSSRule.parentStyleSheet')
1882 final CssStyleSheet parentStyleSheet; 2141 final CssStyleSheet parentStyleSheet;
1883 2142
1884 @DocsEditable @DomName('CSSRule.type') 2143 @DocsEditable
2144 @DomName('CSSRule.type')
1885 final int type; 2145 final int type;
1886 } 2146 }
1887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1888 // for details. All rights reserved. Use of this source code is governed by a 2148 // for details. All rights reserved. Use of this source code is governed by a
1889 // BSD-style license that can be found in the LICENSE file. 2149 // BSD-style license that can be found in the LICENSE file.
1890 2150
1891 2151
1892 String _cachedBrowserPrefix; 2152 String _cachedBrowserPrefix;
1893 2153
1894 String get _browserPrefix { 2154 String get _browserPrefix {
(...skipping 12 matching lines...) Expand all
1907 } 2167 }
1908 2168
1909 @DocsEditable 2169 @DocsEditable
1910 @DomName('CSSStyleDeclaration') 2170 @DomName('CSSStyleDeclaration')
1911 class CssStyleDeclaration native "*CSSStyleDeclaration" { 2171 class CssStyleDeclaration native "*CSSStyleDeclaration" {
1912 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss StyleDeclaration(); 2172 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss StyleDeclaration();
1913 factory CssStyleDeclaration.css(String css) => 2173 factory CssStyleDeclaration.css(String css) =>
1914 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css); 2174 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css);
1915 2175
1916 2176
1917 @DocsEditable @DomName('CSSStyleDeclaration.cssText') 2177 @DocsEditable
2178 @DomName('CSSStyleDeclaration.cssText')
1918 String cssText; 2179 String cssText;
1919 2180
1920 @DocsEditable @DomName('CSSStyleDeclaration.length') 2181 @DocsEditable
2182 @DomName('CSSStyleDeclaration.length')
1921 final int length; 2183 final int length;
1922 2184
1923 @DocsEditable @DomName('CSSStyleDeclaration.parentRule') 2185 @DocsEditable
2186 @DomName('CSSStyleDeclaration.parentRule')
1924 final CssRule parentRule; 2187 final CssRule parentRule;
1925 2188
1926 @JSName('getPropertyCSSValue') 2189 @JSName('getPropertyCSSValue')
1927 @DocsEditable @DomName('CSSStyleDeclaration.getPropertyCSSValue') 2190 @DocsEditable
2191 @DomName('CSSStyleDeclaration.getPropertyCSSValue')
1928 CssValue getPropertyCssValue(String propertyName) native; 2192 CssValue getPropertyCssValue(String propertyName) native;
1929 2193
1930 @DocsEditable @DomName('CSSStyleDeclaration.getPropertyPriority') 2194 @DocsEditable
2195 @DomName('CSSStyleDeclaration.getPropertyPriority')
1931 String getPropertyPriority(String propertyName) native; 2196 String getPropertyPriority(String propertyName) native;
1932 2197
1933 @DocsEditable @DomName('CSSStyleDeclaration.getPropertyShorthand') 2198 @DocsEditable
2199 @DomName('CSSStyleDeclaration.getPropertyShorthand')
1934 String getPropertyShorthand(String propertyName) native; 2200 String getPropertyShorthand(String propertyName) native;
1935 2201
1936 @JSName('getPropertyValue') 2202 @JSName('getPropertyValue')
1937 @DocsEditable @DomName('CSSStyleDeclaration.getPropertyValue') 2203 @DocsEditable
2204 @DomName('CSSStyleDeclaration.getPropertyValue')
1938 String _getPropertyValue(String propertyName) native; 2205 String _getPropertyValue(String propertyName) native;
1939 2206
1940 @DocsEditable @DomName('CSSStyleDeclaration.isPropertyImplicit') 2207 @DocsEditable
2208 @DomName('CSSStyleDeclaration.isPropertyImplicit')
1941 bool isPropertyImplicit(String propertyName) native; 2209 bool isPropertyImplicit(String propertyName) native;
1942 2210
1943 @DocsEditable @DomName('CSSStyleDeclaration.item') 2211 @DocsEditable
2212 @DomName('CSSStyleDeclaration.item')
1944 String item(int index) native; 2213 String item(int index) native;
1945 2214
1946 @DocsEditable @DomName('CSSStyleDeclaration.removeProperty') 2215 @DocsEditable
2216 @DomName('CSSStyleDeclaration.removeProperty')
1947 String removeProperty(String propertyName) native; 2217 String removeProperty(String propertyName) native;
1948 2218
1949 2219
1950 String getPropertyValue(String propertyName) { 2220 String getPropertyValue(String propertyName) {
1951 var propValue = _getPropertyValue(propertyName); 2221 var propValue = _getPropertyValue(propertyName);
1952 return propValue != null ? propValue : ''; 2222 return propValue != null ? propValue : '';
1953 } 2223 }
1954 2224
1955 void setProperty(String propertyName, String value, [String priority]) { 2225 void setProperty(String propertyName, String value, [String priority]) {
1956 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); 2226 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority);
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
5114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5115 // for details. All rights reserved. Use of this source code is governed by a 5385 // for details. All rights reserved. Use of this source code is governed by a
5116 // BSD-style license that can be found in the LICENSE file. 5386 // BSD-style license that can be found in the LICENSE file.
5117 5387
5118 5388
5119 5389
5120 @DocsEditable 5390 @DocsEditable
5121 @DomName('CSSStyleRule') 5391 @DomName('CSSStyleRule')
5122 class CssStyleRule extends CssRule native "*CSSStyleRule" { 5392 class CssStyleRule extends CssRule native "*CSSStyleRule" {
5123 5393
5124 @DocsEditable @DomName('CSSStyleRule.selectorText') 5394 @DocsEditable
5395 @DomName('CSSStyleRule.selectorText')
5125 String selectorText; 5396 String selectorText;
5126 5397
5127 @DocsEditable @DomName('CSSStyleRule.style') 5398 @DocsEditable
5399 @DomName('CSSStyleRule.style')
5128 final CssStyleDeclaration style; 5400 final CssStyleDeclaration style;
5129 } 5401 }
5130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5131 // for details. All rights reserved. Use of this source code is governed by a 5403 // for details. All rights reserved. Use of this source code is governed by a
5132 // BSD-style license that can be found in the LICENSE file. 5404 // BSD-style license that can be found in the LICENSE file.
5133 5405
5134 5406
5135 5407
5136 @DocsEditable 5408 @DocsEditable
5137 @DomName('CSSStyleSheet') 5409 @DomName('CSSStyleSheet')
5138 class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" { 5410 class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" {
5139 5411
5140 @DocsEditable @DomName('CSSStyleSheet.cssRules') 5412 @DocsEditable
5141 @Returns('_CssRuleList') @Creates('_CssRuleList') 5413 @DomName('CSSStyleSheet.cssRules')
5414 @Returns('_CssRuleList')
5415 @Creates('_CssRuleList')
5142 final List<CssRule> cssRules; 5416 final List<CssRule> cssRules;
5143 5417
5144 @DocsEditable @DomName('CSSStyleSheet.ownerRule') 5418 @DocsEditable
5419 @DomName('CSSStyleSheet.ownerRule')
5145 final CssRule ownerRule; 5420 final CssRule ownerRule;
5146 5421
5147 @DocsEditable @DomName('CSSStyleSheet.rules') 5422 @DocsEditable
5148 @Returns('_CssRuleList') @Creates('_CssRuleList') 5423 @DomName('CSSStyleSheet.rules')
5424 @Returns('_CssRuleList')
5425 @Creates('_CssRuleList')
5149 final List<CssRule> rules; 5426 final List<CssRule> rules;
5150 5427
5151 @DocsEditable @DomName('CSSStyleSheet.addRule') 5428 @DocsEditable
5429 @DomName('CSSStyleSheet.addRule')
5152 int addRule(String selector, String style, [int index]) native; 5430 int addRule(String selector, String style, [int index]) native;
5153 5431
5154 @DocsEditable @DomName('CSSStyleSheet.deleteRule') 5432 @DocsEditable
5433 @DomName('CSSStyleSheet.deleteRule')
5155 void deleteRule(int index) native; 5434 void deleteRule(int index) native;
5156 5435
5157 @DocsEditable @DomName('CSSStyleSheet.insertRule') 5436 @DocsEditable
5437 @DomName('CSSStyleSheet.insertRule')
5158 int insertRule(String rule, int index) native; 5438 int insertRule(String rule, int index) native;
5159 5439
5160 @DocsEditable @DomName('CSSStyleSheet.removeRule') 5440 @DocsEditable
5441 @DomName('CSSStyleSheet.removeRule')
5161 void removeRule(int index) native; 5442 void removeRule(int index) native;
5162 } 5443 }
5163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5164 // for details. All rights reserved. Use of this source code is governed by a 5445 // for details. All rights reserved. Use of this source code is governed by a
5165 // BSD-style license that can be found in the LICENSE file. 5446 // BSD-style license that can be found in the LICENSE file.
5166 5447
5167 5448
5168 5449
5169 @DocsEditable 5450 @DocsEditable
5170 @DomName('WebKitCSSTransformValue') 5451 @DomName('WebKitCSSTransformValue')
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
5205 static const int CSS_TRANSLATE = 1; 5486 static const int CSS_TRANSLATE = 1;
5206 5487
5207 static const int CSS_TRANSLATE3D = 13; 5488 static const int CSS_TRANSLATE3D = 13;
5208 5489
5209 static const int CSS_TRANSLATEX = 2; 5490 static const int CSS_TRANSLATEX = 2;
5210 5491
5211 static const int CSS_TRANSLATEY = 3; 5492 static const int CSS_TRANSLATEY = 3;
5212 5493
5213 static const int CSS_TRANSLATEZ = 12; 5494 static const int CSS_TRANSLATEZ = 12;
5214 5495
5215 @DocsEditable @DomName('WebKitCSSTransformValue.operationType') 5496 @DocsEditable
5497 @DomName('WebKitCSSTransformValue.operationType')
5216 final int operationType; 5498 final int operationType;
5217 } 5499 }
5218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5219 // for details. All rights reserved. Use of this source code is governed by a 5501 // for details. All rights reserved. Use of this source code is governed by a
5220 // BSD-style license that can be found in the LICENSE file. 5502 // BSD-style license that can be found in the LICENSE file.
5221 5503
5222 5504
5223 5505
5224 @DocsEditable 5506 @DocsEditable
5225 @DomName('CSSUnknownRule') 5507 @DomName('CSSUnknownRule')
(...skipping 10 matching lines...) Expand all
5236 class CssValue native "*CSSValue" { 5518 class CssValue native "*CSSValue" {
5237 5519
5238 static const int CSS_CUSTOM = 3; 5520 static const int CSS_CUSTOM = 3;
5239 5521
5240 static const int CSS_INHERIT = 0; 5522 static const int CSS_INHERIT = 0;
5241 5523
5242 static const int CSS_PRIMITIVE_VALUE = 1; 5524 static const int CSS_PRIMITIVE_VALUE = 1;
5243 5525
5244 static const int CSS_VALUE_LIST = 2; 5526 static const int CSS_VALUE_LIST = 2;
5245 5527
5246 @DocsEditable @DomName('CSSValue.cssText') 5528 @DocsEditable
5529 @DomName('CSSValue.cssText')
5247 String cssText; 5530 String cssText;
5248 5531
5249 @DocsEditable @DomName('CSSValue.cssValueType') 5532 @DocsEditable
5533 @DomName('CSSValue.cssValueType')
5250 final int cssValueType; 5534 final int cssValueType;
5251 } 5535 }
5252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5253 // for details. All rights reserved. Use of this source code is governed by a 5537 // for details. All rights reserved. Use of this source code is governed by a
5254 // BSD-style license that can be found in the LICENSE file. 5538 // BSD-style license that can be found in the LICENSE file.
5255 5539
5256 // WARNING: Do not edit - generated code. 5540 // WARNING: Do not edit - generated code.
5257 5541
5258 5542
5259 @DocsEditable 5543 @DocsEditable
5260 @DomName('CustomEvent') 5544 @DomName('CustomEvent')
5261 class CustomEvent extends Event native "*CustomEvent" { 5545 class CustomEvent extends Event native "*CustomEvent" {
5262 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e, 5546 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e,
5263 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( 5547 Object detail]) => _CustomEventFactoryProvider.createCustomEvent(
5264 type, canBubble, cancelable, detail); 5548 type, canBubble, cancelable, detail);
5265 5549
5266 @DocsEditable @DomName('CustomEvent.detail') 5550 @DocsEditable
5551 @DomName('CustomEvent.detail')
5267 final Object detail; 5552 final Object detail;
5268 5553
5269 @JSName('initCustomEvent') 5554 @JSName('initCustomEvent')
5270 @DocsEditable @DomName('CustomEvent.initCustomEvent') 5555 @DocsEditable
5556 @DomName('CustomEvent.initCustomEvent')
5271 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native; 5557 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native;
5272 5558
5273 } 5559 }
5274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5275 // for details. All rights reserved. Use of this source code is governed by a 5561 // for details. All rights reserved. Use of this source code is governed by a
5276 // BSD-style license that can be found in the LICENSE file. 5562 // BSD-style license that can be found in the LICENSE file.
5277 5563
5278 5564
5279 5565
5280 @DocsEditable 5566 @DocsEditable
(...skipping 16 matching lines...) Expand all
5297 @SupportedBrowser(SupportedBrowser.IE, '10') 5583 @SupportedBrowser(SupportedBrowser.IE, '10')
5298 @SupportedBrowser(SupportedBrowser.SAFARI) 5584 @SupportedBrowser(SupportedBrowser.SAFARI)
5299 class DataListElement extends Element native "*HTMLDataListElement" { 5585 class DataListElement extends Element native "*HTMLDataListElement" {
5300 5586
5301 @DocsEditable 5587 @DocsEditable
5302 factory DataListElement() => document.$dom_createElement("datalist"); 5588 factory DataListElement() => document.$dom_createElement("datalist");
5303 5589
5304 /// Checks if this type is supported on the current platform. 5590 /// Checks if this type is supported on the current platform.
5305 static bool get supported => Element.isTagSupported('datalist'); 5591 static bool get supported => Element.isTagSupported('datalist');
5306 5592
5307 @DocsEditable @DomName('HTMLDataListElement.options') 5593 @DocsEditable
5594 @DomName('HTMLDataListElement.options')
5308 final HtmlCollection options; 5595 final HtmlCollection options;
5309 } 5596 }
5310 // 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
5311 // 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
5312 // BSD-style license that can be found in the LICENSE file. 5599 // BSD-style license that can be found in the LICENSE file.
5313 5600
5314 5601
5315 5602
5316 @DocsEditable 5603 @DocsEditable
5317 @DomName('DataTransferItem') 5604 @DomName('DataTransferItem')
5318 class DataTransferItem native "*DataTransferItem" { 5605 class DataTransferItem native "*DataTransferItem" {
5319 5606
5320 @DocsEditable @DomName('DataTransferItem.kind') 5607 @DocsEditable
5608 @DomName('DataTransferItem.kind')
5321 final String kind; 5609 final String kind;
5322 5610
5323 @DocsEditable @DomName('DataTransferItem.type') 5611 @DocsEditable
5612 @DomName('DataTransferItem.type')
5324 final String type; 5613 final String type;
5325 5614
5326 @DocsEditable @DomName('DataTransferItem.getAsFile') 5615 @DocsEditable
5616 @DomName('DataTransferItem.getAsFile')
5327 Blob getAsFile() native; 5617 Blob getAsFile() native;
5328 5618
5329 @DocsEditable @DomName('DataTransferItem.getAsString') 5619 @DocsEditable
5620 @DomName('DataTransferItem.getAsString')
5330 void getAsString([StringCallback callback]) native; 5621 void getAsString([StringCallback callback]) native;
5331 5622
5332 @DocsEditable @DomName('DataTransferItem.webkitGetAsEntry') 5623 @DocsEditable
5624 @DomName('DataTransferItem.webkitGetAsEntry')
5333 Entry webkitGetAsEntry() native; 5625 Entry webkitGetAsEntry() native;
5334 } 5626 }
5335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5336 // for details. All rights reserved. Use of this source code is governed by a 5628 // for details. All rights reserved. Use of this source code is governed by a
5337 // BSD-style license that can be found in the LICENSE file. 5629 // BSD-style license that can be found in the LICENSE file.
5338 5630
5339 5631
5340 5632
5341 @DocsEditable 5633 @DocsEditable
5342 @DomName('DataTransferItemList') 5634 @DomName('DataTransferItemList')
5343 class DataTransferItemList native "*DataTransferItemList" { 5635 class DataTransferItemList native "*DataTransferItemList" {
5344 5636
5345 @DocsEditable @DomName('DataTransferItemList.length') 5637 @DocsEditable
5638 @DomName('DataTransferItemList.length')
5346 final int length; 5639 final int length;
5347 5640
5348 @DocsEditable @DomName('DataTransferItemList.add') 5641 @DocsEditable
5642 @DomName('DataTransferItemList.add')
5349 void add(data_OR_file, [String type]) native; 5643 void add(data_OR_file, [String type]) native;
5350 5644
5351 @DocsEditable @DomName('DataTransferItemList.clear') 5645 @DocsEditable
5646 @DomName('DataTransferItemList.clear')
5352 void clear() native; 5647 void clear() native;
5353 5648
5354 @DocsEditable @DomName('DataTransferItemList.item') 5649 @DocsEditable
5650 @DomName('DataTransferItemList.item')
5355 DataTransferItem item(int index) native; 5651 DataTransferItem item(int index) native;
5356 } 5652 }
5357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5358 // for details. All rights reserved. Use of this source code is governed by a 5654 // for details. All rights reserved. Use of this source code is governed by a
5359 // BSD-style license that can be found in the LICENSE file. 5655 // BSD-style license that can be found in the LICENSE file.
5360 5656
5361 5657
5362 5658
5363 @DocsEditable 5659 @DocsEditable
5364 @DomName('DataView') 5660 @DomName('DataView')
(...skipping 12 matching lines...) Expand all
5377 static DataView _create(ArrayBuffer buffer, [int byteOffset, int byteLength]) { 5673 static DataView _create(ArrayBuffer buffer, [int byteOffset, int byteLength]) {
5378 if (!?byteOffset) { 5674 if (!?byteOffset) {
5379 return JS('DataView', 'new DataView(#)', buffer); 5675 return JS('DataView', 'new DataView(#)', buffer);
5380 } 5676 }
5381 if (!?byteLength) { 5677 if (!?byteLength) {
5382 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); 5678 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset);
5383 } 5679 }
5384 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ; 5680 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ;
5385 } 5681 }
5386 5682
5387 @DocsEditable @DomName('DataView.getFloat32') 5683 @DocsEditable
5684 @DomName('DataView.getFloat32')
5388 num getFloat32(int byteOffset, {bool littleEndian}) native; 5685 num getFloat32(int byteOffset, {bool littleEndian}) native;
5389 5686
5390 @DocsEditable @DomName('DataView.getFloat64') 5687 @DocsEditable
5688 @DomName('DataView.getFloat64')
5391 num getFloat64(int byteOffset, {bool littleEndian}) native; 5689 num getFloat64(int byteOffset, {bool littleEndian}) native;
5392 5690
5393 @DocsEditable @DomName('DataView.getInt16') 5691 @DocsEditable
5692 @DomName('DataView.getInt16')
5394 int getInt16(int byteOffset, {bool littleEndian}) native; 5693 int getInt16(int byteOffset, {bool littleEndian}) native;
5395 5694
5396 @DocsEditable @DomName('DataView.getInt32') 5695 @DocsEditable
5696 @DomName('DataView.getInt32')
5397 int getInt32(int byteOffset, {bool littleEndian}) native; 5697 int getInt32(int byteOffset, {bool littleEndian}) native;
5398 5698
5399 @DocsEditable @DomName('DataView.getInt8') 5699 @DocsEditable
5700 @DomName('DataView.getInt8')
5400 int getInt8(int byteOffset) native; 5701 int getInt8(int byteOffset) native;
5401 5702
5402 @DocsEditable @DomName('DataView.getUint16') 5703 @DocsEditable
5704 @DomName('DataView.getUint16')
5403 int getUint16(int byteOffset, {bool littleEndian}) native; 5705 int getUint16(int byteOffset, {bool littleEndian}) native;
5404 5706
5405 @DocsEditable @DomName('DataView.getUint32') 5707 @DocsEditable
5708 @DomName('DataView.getUint32')
5406 int getUint32(int byteOffset, {bool littleEndian}) native; 5709 int getUint32(int byteOffset, {bool littleEndian}) native;
5407 5710
5408 @DocsEditable @DomName('DataView.getUint8') 5711 @DocsEditable
5712 @DomName('DataView.getUint8')
5409 int getUint8(int byteOffset) native; 5713 int getUint8(int byteOffset) native;
5410 5714
5411 @DocsEditable @DomName('DataView.setFloat32') 5715 @DocsEditable
5716 @DomName('DataView.setFloat32')
5412 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; 5717 void setFloat32(int byteOffset, num value, {bool littleEndian}) native;
5413 5718
5414 @DocsEditable @DomName('DataView.setFloat64') 5719 @DocsEditable
5720 @DomName('DataView.setFloat64')
5415 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; 5721 void setFloat64(int byteOffset, num value, {bool littleEndian}) native;
5416 5722
5417 @DocsEditable @DomName('DataView.setInt16') 5723 @DocsEditable
5724 @DomName('DataView.setInt16')
5418 void setInt16(int byteOffset, int value, {bool littleEndian}) native; 5725 void setInt16(int byteOffset, int value, {bool littleEndian}) native;
5419 5726
5420 @DocsEditable @DomName('DataView.setInt32') 5727 @DocsEditable
5728 @DomName('DataView.setInt32')
5421 void setInt32(int byteOffset, int value, {bool littleEndian}) native; 5729 void setInt32(int byteOffset, int value, {bool littleEndian}) native;
5422 5730
5423 @DocsEditable @DomName('DataView.setInt8') 5731 @DocsEditable
5732 @DomName('DataView.setInt8')
5424 void setInt8(int byteOffset, int value) native; 5733 void setInt8(int byteOffset, int value) native;
5425 5734
5426 @DocsEditable @DomName('DataView.setUint16') 5735 @DocsEditable
5736 @DomName('DataView.setUint16')
5427 void setUint16(int byteOffset, int value, {bool littleEndian}) native; 5737 void setUint16(int byteOffset, int value, {bool littleEndian}) native;
5428 5738
5429 @DocsEditable @DomName('DataView.setUint32') 5739 @DocsEditable
5740 @DomName('DataView.setUint32')
5430 void setUint32(int byteOffset, int value, {bool littleEndian}) native; 5741 void setUint32(int byteOffset, int value, {bool littleEndian}) native;
5431 5742
5432 @DocsEditable @DomName('DataView.setUint8') 5743 @DocsEditable
5744 @DomName('DataView.setUint8')
5433 void setUint8(int byteOffset, int value) native; 5745 void setUint8(int byteOffset, int value) native;
5434 } 5746 }
5435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5436 // for details. All rights reserved. Use of this source code is governed by a 5748 // for details. All rights reserved. Use of this source code is governed by a
5437 // BSD-style license that can be found in the LICENSE file. 5749 // BSD-style license that can be found in the LICENSE file.
5438 5750
5439 5751
5440 5752
5441 @DocsEditable 5753 @DocsEditable
5442 @DomName('Database') 5754 @DomName('Database')
5443 class Database native "*Database" { 5755 class Database native "*Database" {
5444 5756
5445 @DocsEditable @DomName('Database.version') 5757 @DocsEditable
5758 @DomName('Database.version')
5446 final String version; 5759 final String version;
5447 5760
5448 @DocsEditable @DomName('Database.changeVersion') 5761 @DocsEditable
5762 @DomName('Database.changeVersion')
5449 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) native; 5763 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) native;
5450 5764
5451 @DocsEditable @DomName('Database.readTransaction') 5765 @DocsEditable
5766 @DomName('Database.readTransaction')
5452 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) native; 5767 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) native;
5453 5768
5454 @DocsEditable @DomName('Database.transaction') 5769 @DocsEditable
5770 @DomName('Database.transaction')
5455 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; 5771 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
5456 } 5772 }
5457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5773 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5458 // for details. All rights reserved. Use of this source code is governed by a 5774 // for details. All rights reserved. Use of this source code is governed by a
5459 // BSD-style license that can be found in the LICENSE file. 5775 // BSD-style license that can be found in the LICENSE file.
5460 5776
5461 // WARNING: Do not edit - generated code. 5777 // WARNING: Do not edit - generated code.
5462 5778
5463 5779
5464 typedef void DatabaseCallback(database); 5780 typedef void DatabaseCallback(database);
5465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5466 // for details. All rights reserved. Use of this source code is governed by a 5782 // for details. All rights reserved. Use of this source code is governed by a
5467 // BSD-style license that can be found in the LICENSE file. 5783 // BSD-style license that can be found in the LICENSE file.
5468 5784
5469 5785
5470 5786
5471 @DocsEditable 5787 @DocsEditable
5472 @DomName('DatabaseSync') 5788 @DomName('DatabaseSync')
5473 class DatabaseSync native "*DatabaseSync" { 5789 class DatabaseSync native "*DatabaseSync" {
5474 5790
5475 @DocsEditable @DomName('DatabaseSync.lastErrorMessage') 5791 @DocsEditable
5792 @DomName('DatabaseSync.lastErrorMessage')
5476 final String lastErrorMessage; 5793 final String lastErrorMessage;
5477 5794
5478 @DocsEditable @DomName('DatabaseSync.version') 5795 @DocsEditable
5796 @DomName('DatabaseSync.version')
5479 final String version; 5797 final String version;
5480 5798
5481 @DocsEditable @DomName('DatabaseSync.changeVersion') 5799 @DocsEditable
5800 @DomName('DatabaseSync.changeVersion')
5482 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa llback callback]) native; 5801 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa llback callback]) native;
5483 5802
5484 @DocsEditable @DomName('DatabaseSync.readTransaction') 5803 @DocsEditable
5804 @DomName('DatabaseSync.readTransaction')
5485 void readTransaction(SqlTransactionSyncCallback callback) native; 5805 void readTransaction(SqlTransactionSyncCallback callback) native;
5486 5806
5487 @DocsEditable @DomName('DatabaseSync.transaction') 5807 @DocsEditable
5808 @DomName('DatabaseSync.transaction')
5488 void transaction(SqlTransactionSyncCallback callback) native; 5809 void transaction(SqlTransactionSyncCallback callback) native;
5489 } 5810 }
5490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5491 // for details. All rights reserved. Use of this source code is governed by a 5812 // for details. All rights reserved. Use of this source code is governed by a
5492 // BSD-style license that can be found in the LICENSE file. 5813 // BSD-style license that can be found in the LICENSE file.
5493 5814
5494 5815
5495 5816
5496 @DocsEditable 5817 @DocsEditable
5497 @DomName('DedicatedWorkerContext') 5818 @DomName('DedicatedWorkerContext')
(...skipping 10 matching lines...) Expand all
5508 if (?messagePorts) { 5829 if (?messagePorts) {
5509 var message_1 = convertDartToNative_SerializedScriptValue(message); 5830 var message_1 = convertDartToNative_SerializedScriptValue(message);
5510 _postMessage_1(message_1, messagePorts); 5831 _postMessage_1(message_1, messagePorts);
5511 return; 5832 return;
5512 } 5833 }
5513 var message_2 = convertDartToNative_SerializedScriptValue(message); 5834 var message_2 = convertDartToNative_SerializedScriptValue(message);
5514 _postMessage_2(message_2); 5835 _postMessage_2(message_2);
5515 return; 5836 return;
5516 } 5837 }
5517 @JSName('postMessage') 5838 @JSName('postMessage')
5518 @DocsEditable @DomName('DedicatedWorkerContext.postMessage') 5839 @DocsEditable
5840 @DomName('DedicatedWorkerContext.postMessage')
5519 void _postMessage_1(message, List messagePorts) native; 5841 void _postMessage_1(message, List messagePorts) native;
5520 @JSName('postMessage') 5842 @JSName('postMessage')
5521 @DocsEditable @DomName('DedicatedWorkerContext.postMessage') 5843 @DocsEditable
5844 @DomName('DedicatedWorkerContext.postMessage')
5522 void _postMessage_2(message) native; 5845 void _postMessage_2(message) native;
5523 5846
5524 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 5847 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
5525 } 5848 }
5526 5849
5527 @DocsEditable 5850 @DocsEditable
5528 class DedicatedWorkerContextEvents extends WorkerContextEvents { 5851 class DedicatedWorkerContextEvents extends WorkerContextEvents {
5529 @DocsEditable 5852 @DocsEditable
5530 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 5853 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
5531 5854
(...skipping 12 matching lines...) Expand all
5544 @SupportedBrowser(SupportedBrowser.SAFARI) 5867 @SupportedBrowser(SupportedBrowser.SAFARI)
5545 @Experimental() 5868 @Experimental()
5546 class DetailsElement extends Element native "*HTMLDetailsElement" { 5869 class DetailsElement extends Element native "*HTMLDetailsElement" {
5547 5870
5548 @DocsEditable 5871 @DocsEditable
5549 factory DetailsElement() => document.$dom_createElement("details"); 5872 factory DetailsElement() => document.$dom_createElement("details");
5550 5873
5551 /// Checks if this type is supported on the current platform. 5874 /// Checks if this type is supported on the current platform.
5552 static bool get supported => Element.isTagSupported('details'); 5875 static bool get supported => Element.isTagSupported('details');
5553 5876
5554 @DocsEditable @DomName('HTMLDetailsElement.open') 5877 @DocsEditable
5878 @DomName('HTMLDetailsElement.open')
5555 bool open; 5879 bool open;
5556 } 5880 }
5557 // 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
5558 // 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
5559 // BSD-style license that can be found in the LICENSE file. 5883 // BSD-style license that can be found in the LICENSE file.
5560 5884
5561 5885
5562 5886
5563 @DocsEditable 5887 @DocsEditable
5564 @DomName('DeviceMotionEvent') 5888 @DomName('DeviceMotionEvent')
5565 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { 5889 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" {
5566 5890
5567 @DocsEditable @DomName('DeviceMotionEvent.interval') 5891 @DocsEditable
5892 @DomName('DeviceMotionEvent.interval')
5568 final num interval; 5893 final num interval;
5569 } 5894 }
5570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5571 // for details. All rights reserved. Use of this source code is governed by a 5896 // for details. All rights reserved. Use of this source code is governed by a
5572 // BSD-style license that can be found in the LICENSE file. 5897 // BSD-style license that can be found in the LICENSE file.
5573 5898
5574 5899
5575 5900
5576 @DocsEditable 5901 @DocsEditable
5577 @DomName('DeviceOrientationEvent') 5902 @DomName('DeviceOrientationEvent')
5578 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { 5903 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" {
5579 5904
5580 @DocsEditable @DomName('DeviceOrientationEvent.absolute') 5905 @DocsEditable
5906 @DomName('DeviceOrientationEvent.absolute')
5581 final bool absolute; 5907 final bool absolute;
5582 5908
5583 @DocsEditable @DomName('DeviceOrientationEvent.alpha') 5909 @DocsEditable
5910 @DomName('DeviceOrientationEvent.alpha')
5584 final num alpha; 5911 final num alpha;
5585 5912
5586 @DocsEditable @DomName('DeviceOrientationEvent.beta') 5913 @DocsEditable
5914 @DomName('DeviceOrientationEvent.beta')
5587 final num beta; 5915 final num beta;
5588 5916
5589 @DocsEditable @DomName('DeviceOrientationEvent.gamma') 5917 @DocsEditable
5918 @DomName('DeviceOrientationEvent.gamma')
5590 final num gamma; 5919 final num gamma;
5591 5920
5592 @DocsEditable @DomName('DeviceOrientationEvent.initDeviceOrientationEvent') 5921 @DocsEditable
5922 @DomName('DeviceOrientationEvent.initDeviceOrientationEvent')
5593 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native; 5923 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native;
5594 } 5924 }
5595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5596 // for details. All rights reserved. Use of this source code is governed by a 5926 // for details. All rights reserved. Use of this source code is governed by a
5597 // BSD-style license that can be found in the LICENSE file. 5927 // BSD-style license that can be found in the LICENSE file.
5598 5928
5599 5929
5600 5930
5601 @DocsEditable 5931 @DocsEditable
5602 @DomName('DirectoryEntry') 5932 @DomName('DirectoryEntry')
5603 class DirectoryEntry extends Entry native "*DirectoryEntry" { 5933 class DirectoryEntry extends Entry native "*DirectoryEntry" {
5604 5934
5605 @DocsEditable @DomName('DirectoryEntry.createReader') 5935 @DocsEditable
5936 @DomName('DirectoryEntry.createReader')
5606 DirectoryReader createReader() native; 5937 DirectoryReader createReader() native;
5607 5938
5608 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) { 5939 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) {
5609 if (?errorCallback) { 5940 if (?errorCallback) {
5610 var options_1 = convertDartToNative_Dictionary(options); 5941 var options_1 = convertDartToNative_Dictionary(options);
5611 _getDirectory_1(path, options_1, successCallback, errorCallback); 5942 _getDirectory_1(path, options_1, successCallback, errorCallback);
5612 return; 5943 return;
5613 } 5944 }
5614 if (?successCallback) { 5945 if (?successCallback) {
5615 var options_2 = convertDartToNative_Dictionary(options); 5946 var options_2 = convertDartToNative_Dictionary(options);
5616 _getDirectory_2(path, options_2, successCallback); 5947 _getDirectory_2(path, options_2, successCallback);
5617 return; 5948 return;
5618 } 5949 }
5619 if (?options) { 5950 if (?options) {
5620 var options_3 = convertDartToNative_Dictionary(options); 5951 var options_3 = convertDartToNative_Dictionary(options);
5621 _getDirectory_3(path, options_3); 5952 _getDirectory_3(path, options_3);
5622 return; 5953 return;
5623 } 5954 }
5624 _getDirectory_4(path); 5955 _getDirectory_4(path);
5625 return; 5956 return;
5626 } 5957 }
5627 @JSName('getDirectory') 5958 @JSName('getDirectory')
5628 @DocsEditable @DomName('DirectoryEntry.getDirectory') 5959 @DocsEditable
5960 @DomName('DirectoryEntry.getDirectory')
5629 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native; 5961 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native;
5630 @JSName('getDirectory') 5962 @JSName('getDirectory')
5631 @DocsEditable @DomName('DirectoryEntry.getDirectory') 5963 @DocsEditable
5964 @DomName('DirectoryEntry.getDirectory')
5632 void _getDirectory_2(path, options, EntryCallback successCallback) native; 5965 void _getDirectory_2(path, options, EntryCallback successCallback) native;
5633 @JSName('getDirectory') 5966 @JSName('getDirectory')
5634 @DocsEditable @DomName('DirectoryEntry.getDirectory') 5967 @DocsEditable
5968 @DomName('DirectoryEntry.getDirectory')
5635 void _getDirectory_3(path, options) native; 5969 void _getDirectory_3(path, options) native;
5636 @JSName('getDirectory') 5970 @JSName('getDirectory')
5637 @DocsEditable @DomName('DirectoryEntry.getDirectory') 5971 @DocsEditable
5972 @DomName('DirectoryEntry.getDirectory')
5638 void _getDirectory_4(path) native; 5973 void _getDirectory_4(path) native;
5639 5974
5640 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) { 5975 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) {
5641 if (?errorCallback) { 5976 if (?errorCallback) {
5642 var options_1 = convertDartToNative_Dictionary(options); 5977 var options_1 = convertDartToNative_Dictionary(options);
5643 _getFile_1(path, options_1, successCallback, errorCallback); 5978 _getFile_1(path, options_1, successCallback, errorCallback);
5644 return; 5979 return;
5645 } 5980 }
5646 if (?successCallback) { 5981 if (?successCallback) {
5647 var options_2 = convertDartToNative_Dictionary(options); 5982 var options_2 = convertDartToNative_Dictionary(options);
5648 _getFile_2(path, options_2, successCallback); 5983 _getFile_2(path, options_2, successCallback);
5649 return; 5984 return;
5650 } 5985 }
5651 if (?options) { 5986 if (?options) {
5652 var options_3 = convertDartToNative_Dictionary(options); 5987 var options_3 = convertDartToNative_Dictionary(options);
5653 _getFile_3(path, options_3); 5988 _getFile_3(path, options_3);
5654 return; 5989 return;
5655 } 5990 }
5656 _getFile_4(path); 5991 _getFile_4(path);
5657 return; 5992 return;
5658 } 5993 }
5659 @JSName('getFile') 5994 @JSName('getFile')
5660 @DocsEditable @DomName('DirectoryEntry.getFile') 5995 @DocsEditable
5996 @DomName('DirectoryEntry.getFile')
5661 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native; 5997 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native;
5662 @JSName('getFile') 5998 @JSName('getFile')
5663 @DocsEditable @DomName('DirectoryEntry.getFile') 5999 @DocsEditable
6000 @DomName('DirectoryEntry.getFile')
5664 void _getFile_2(path, options, EntryCallback successCallback) native; 6001 void _getFile_2(path, options, EntryCallback successCallback) native;
5665 @JSName('getFile') 6002 @JSName('getFile')
5666 @DocsEditable @DomName('DirectoryEntry.getFile') 6003 @DocsEditable
6004 @DomName('DirectoryEntry.getFile')
5667 void _getFile_3(path, options) native; 6005 void _getFile_3(path, options) native;
5668 @JSName('getFile') 6006 @JSName('getFile')
5669 @DocsEditable @DomName('DirectoryEntry.getFile') 6007 @DocsEditable
6008 @DomName('DirectoryEntry.getFile')
5670 void _getFile_4(path) native; 6009 void _getFile_4(path) native;
5671 6010
5672 @DocsEditable @DomName('DirectoryEntry.removeRecursively') 6011 @DocsEditable
6012 @DomName('DirectoryEntry.removeRecursively')
5673 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native; 6013 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native;
5674 } 6014 }
5675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6015 // 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 6016 // 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. 6017 // BSD-style license that can be found in the LICENSE file.
5678 6018
5679 6019
5680 6020
5681 @DocsEditable 6021 @DocsEditable
5682 @DomName('DirectoryEntrySync') 6022 @DomName('DirectoryEntrySync')
5683 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { 6023 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" {
5684 6024
5685 @DocsEditable @DomName('DirectoryEntrySync.createReader') 6025 @DocsEditable
6026 @DomName('DirectoryEntrySync.createReader')
5686 DirectoryReaderSync createReader() native; 6027 DirectoryReaderSync createReader() native;
5687 6028
5688 DirectoryEntrySync getDirectory(String path, Map flags) { 6029 DirectoryEntrySync getDirectory(String path, Map flags) {
5689 var flags_1 = convertDartToNative_Dictionary(flags); 6030 var flags_1 = convertDartToNative_Dictionary(flags);
5690 return _getDirectory_1(path, flags_1); 6031 return _getDirectory_1(path, flags_1);
5691 } 6032 }
5692 @JSName('getDirectory') 6033 @JSName('getDirectory')
5693 @DocsEditable @DomName('DirectoryEntrySync.getDirectory') 6034 @DocsEditable
6035 @DomName('DirectoryEntrySync.getDirectory')
5694 DirectoryEntrySync _getDirectory_1(path, flags) native; 6036 DirectoryEntrySync _getDirectory_1(path, flags) native;
5695 6037
5696 FileEntrySync getFile(String path, Map flags) { 6038 FileEntrySync getFile(String path, Map flags) {
5697 var flags_1 = convertDartToNative_Dictionary(flags); 6039 var flags_1 = convertDartToNative_Dictionary(flags);
5698 return _getFile_1(path, flags_1); 6040 return _getFile_1(path, flags_1);
5699 } 6041 }
5700 @JSName('getFile') 6042 @JSName('getFile')
5701 @DocsEditable @DomName('DirectoryEntrySync.getFile') 6043 @DocsEditable
6044 @DomName('DirectoryEntrySync.getFile')
5702 FileEntrySync _getFile_1(path, flags) native; 6045 FileEntrySync _getFile_1(path, flags) native;
5703 6046
5704 @DocsEditable @DomName('DirectoryEntrySync.removeRecursively') 6047 @DocsEditable
6048 @DomName('DirectoryEntrySync.removeRecursively')
5705 void removeRecursively() native; 6049 void removeRecursively() native;
5706 } 6050 }
5707 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5708 // for details. All rights reserved. Use of this source code is governed by a 6052 // for details. All rights reserved. Use of this source code is governed by a
5709 // BSD-style license that can be found in the LICENSE file. 6053 // BSD-style license that can be found in the LICENSE file.
5710 6054
5711 6055
5712 6056
5713 @DocsEditable 6057 @DocsEditable
5714 @DomName('DirectoryReader') 6058 @DomName('DirectoryReader')
5715 class DirectoryReader native "*DirectoryReader" { 6059 class DirectoryReader native "*DirectoryReader" {
5716 6060
5717 @DocsEditable @DomName('DirectoryReader.readEntries') 6061 @DocsEditable
6062 @DomName('DirectoryReader.readEntries')
5718 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]) native; 6063 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]) native;
5719 } 6064 }
5720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5721 // for details. All rights reserved. Use of this source code is governed by a 6066 // for details. All rights reserved. Use of this source code is governed by a
5722 // BSD-style license that can be found in the LICENSE file. 6067 // BSD-style license that can be found in the LICENSE file.
5723 6068
5724 6069
5725 6070
5726 @DocsEditable 6071 @DocsEditable
5727 @DomName('DirectoryReaderSync') 6072 @DomName('DirectoryReaderSync')
5728 class DirectoryReaderSync native "*DirectoryReaderSync" { 6073 class DirectoryReaderSync native "*DirectoryReaderSync" {
5729 6074
5730 @DocsEditable @DomName('DirectoryReaderSync.readEntries') 6075 @DocsEditable
5731 @Returns('_EntryArraySync') @Creates('_EntryArraySync') 6076 @DomName('DirectoryReaderSync.readEntries')
6077 @Returns('_EntryArraySync')
6078 @Creates('_EntryArraySync')
5732 List<EntrySync> readEntries() native; 6079 List<EntrySync> readEntries() native;
5733 } 6080 }
5734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5735 // for details. All rights reserved. Use of this source code is governed by a 6082 // for details. All rights reserved. Use of this source code is governed by a
5736 // BSD-style license that can be found in the LICENSE file. 6083 // BSD-style license that can be found in the LICENSE file.
5737 6084
5738 6085
5739 6086
5740 @DocsEditable 6087 @DocsEditable
5741 @DomName('HTMLDivElement') 6088 @DomName('HTMLDivElement')
5742 class DivElement extends Element native "*HTMLDivElement" { 6089 class DivElement extends Element native "*HTMLDivElement" {
5743 6090
5744 @DocsEditable 6091 @DocsEditable
5745 factory DivElement() => document.$dom_createElement("div"); 6092 factory DivElement() => document.$dom_createElement("div");
5746 } 6093 }
5747 // 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
5748 // 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
5749 // BSD-style license that can be found in the LICENSE file. 6096 // BSD-style license that can be found in the LICENSE file.
5750 6097
5751 6098
5752 @DocsEditable
5753 @DomName('Document')
5754 /** 6099 /**
5755 * The base class for all documents. 6100 * The base class for all documents.
5756 * 6101 *
5757 * Each web page loaded in the browser has its own [Document] object, which is 6102 * Each web page loaded in the browser has its own [Document] object, which is
5758 * typically an [HtmlDocument]. 6103 * typically an [HtmlDocument].
5759 * 6104 *
5760 * If you aren't comfortable with DOM concepts, see the Dart tutorial 6105 * If you aren't comfortable with DOM concepts, see the Dart tutorial
5761 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/). 6106 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/).
5762 */ 6107 */
6108 @DocsEditable
6109 @DomName('Document')
5763 class Document extends Node native "*Document" 6110 class Document extends Node native "*Document"
5764 { 6111 {
5765 6112
5766 6113
5767 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange'); 6114 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange');
5768 6115
5769 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange'); 6116 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange');
5770 6117
5771 static const EventStreamProvider<Event> pointerLockChangeEvent = const EventSt reamProvider<Event>('webkitpointerlockchange'); 6118 static const EventStreamProvider<Event> pointerLockChangeEvent = const EventSt reamProvider<Event>('webkitpointerlockchange');
5772 6119
5773 static const EventStreamProvider<Event> pointerLockErrorEvent = const EventStr eamProvider<Event>('webkitpointerlockerror'); 6120 static const EventStreamProvider<Event> pointerLockErrorEvent = const EventStr eamProvider<Event>('webkitpointerlockerror');
5774 6121
5775 @DocsEditable 6122 @DocsEditable
5776 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 6123 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
5777 DocumentEvents get on => 6124 DocumentEvents get on =>
5778 new DocumentEvents(this); 6125 new DocumentEvents(this);
5779 6126
5780 @JSName('body') 6127 @JSName('body')
5781 @DocsEditable @DomName('Document.body') 6128 @DocsEditable
6129 @DomName('Document.body')
5782 Element $dom_body; 6130 Element $dom_body;
5783 6131
5784 @DocsEditable @DomName('Document.charset') 6132 @DocsEditable
6133 @DomName('Document.charset')
5785 String charset; 6134 String charset;
5786 6135
5787 @DocsEditable @DomName('Document.cookie') 6136 @DocsEditable
6137 @DomName('Document.cookie')
5788 String cookie; 6138 String cookie;
5789 6139
5790 WindowBase get window => _convertNativeToDart_Window(this._window); 6140 WindowBase get window => _convertNativeToDart_Window(this._window);
5791 @JSName('defaultView') 6141 @JSName('defaultView')
5792 @DocsEditable @DomName('Document.window') @Creates('Window|=Object') @Returns( 'Window|=Object') 6142 @DocsEditable
6143 @DomName('Document.window')
6144 @Creates('Window|=Object')
6145 @Returns('Window|=Object')
5793 final dynamic _window; 6146 final dynamic _window;
5794 6147
5795 @DocsEditable @DomName('Document.documentElement') 6148 @DocsEditable
6149 @DomName('Document.documentElement')
5796 final Element documentElement; 6150 final Element documentElement;
5797 6151
5798 @DocsEditable @DomName('Document.domain') 6152 @DocsEditable
6153 @DomName('Document.domain')
5799 final String domain; 6154 final String domain;
5800 6155
5801 @JSName('head') 6156 @JSName('head')
5802 @DocsEditable @DomName('Document.head') 6157 @DocsEditable
6158 @DomName('Document.head')
5803 final HeadElement $dom_head; 6159 final HeadElement $dom_head;
5804 6160
5805 @DocsEditable @DomName('Document.implementation') 6161 @DocsEditable
6162 @DomName('Document.implementation')
5806 final DomImplementation implementation; 6163 final DomImplementation implementation;
5807 6164
5808 @JSName('lastModified') 6165 @JSName('lastModified')
5809 @DocsEditable @DomName('Document.lastModified') 6166 @DocsEditable
6167 @DomName('Document.lastModified')
5810 final String $dom_lastModified; 6168 final String $dom_lastModified;
5811 6169
5812 @JSName('preferredStylesheetSet') 6170 @JSName('preferredStylesheetSet')
5813 @DocsEditable @DomName('Document.preferredStylesheetSet') 6171 @DocsEditable
6172 @DomName('Document.preferredStylesheetSet')
5814 final String $dom_preferredStylesheetSet; 6173 final String $dom_preferredStylesheetSet;
5815 6174
5816 @DocsEditable @DomName('Document.readyState') 6175 @DocsEditable
6176 @DomName('Document.readyState')
5817 final String readyState; 6177 final String readyState;
5818 6178
5819 @JSName('referrer') 6179 @JSName('referrer')
5820 @DocsEditable @DomName('Document.referrer') 6180 @DocsEditable
6181 @DomName('Document.referrer')
5821 final String $dom_referrer; 6182 final String $dom_referrer;
5822 6183
5823 @JSName('selectedStylesheetSet') 6184 @JSName('selectedStylesheetSet')
5824 @DocsEditable @DomName('Document.selectedStylesheetSet') 6185 @DocsEditable
6186 @DomName('Document.selectedStylesheetSet')
5825 String $dom_selectedStylesheetSet; 6187 String $dom_selectedStylesheetSet;
5826 6188
5827 @JSName('styleSheets') 6189 @JSName('styleSheets')
5828 @DocsEditable @DomName('Document.styleSheets') 6190 @DocsEditable
5829 @Returns('_StyleSheetList') @Creates('_StyleSheetList') 6191 @DomName('Document.styleSheets')
6192 @Returns('_StyleSheetList')
6193 @Creates('_StyleSheetList')
5830 final List<StyleSheet> $dom_styleSheets; 6194 final List<StyleSheet> $dom_styleSheets;
5831 6195
5832 @JSName('title') 6196 @JSName('title')
5833 @DocsEditable @DomName('Document.title') 6197 @DocsEditable
6198 @DomName('Document.title')
5834 String $dom_title; 6199 String $dom_title;
5835 6200
5836 @JSName('webkitFullscreenElement') 6201 @JSName('webkitFullscreenElement')
5837 @DocsEditable @DomName('Document.webkitFullscreenElement') 6202 @DocsEditable
6203 @DomName('Document.webkitFullscreenElement')
5838 final Element $dom_webkitFullscreenElement; 6204 final Element $dom_webkitFullscreenElement;
5839 6205
5840 @JSName('webkitFullscreenEnabled') 6206 @JSName('webkitFullscreenEnabled')
5841 @DocsEditable @DomName('Document.webkitFullscreenEnabled') 6207 @DocsEditable
6208 @DomName('Document.webkitFullscreenEnabled')
5842 final bool $dom_webkitFullscreenEnabled; 6209 final bool $dom_webkitFullscreenEnabled;
5843 6210
5844 @JSName('webkitHidden') 6211 @JSName('webkitHidden')
5845 @DocsEditable @DomName('Document.webkitHidden') 6212 @DocsEditable
6213 @DomName('Document.webkitHidden')
5846 final bool $dom_webkitHidden; 6214 final bool $dom_webkitHidden;
5847 6215
5848 @JSName('webkitIsFullScreen') 6216 @JSName('webkitIsFullScreen')
5849 @DocsEditable @DomName('Document.webkitIsFullScreen') 6217 @DocsEditable
6218 @DomName('Document.webkitIsFullScreen')
5850 final bool $dom_webkitIsFullScreen; 6219 final bool $dom_webkitIsFullScreen;
5851 6220
5852 @JSName('webkitPointerLockElement') 6221 @JSName('webkitPointerLockElement')
5853 @DocsEditable @DomName('Document.webkitPointerLockElement') 6222 @DocsEditable
6223 @DomName('Document.webkitPointerLockElement')
5854 final Element $dom_webkitPointerLockElement; 6224 final Element $dom_webkitPointerLockElement;
5855 6225
5856 @JSName('webkitVisibilityState') 6226 @JSName('webkitVisibilityState')
5857 @DocsEditable @DomName('Document.webkitVisibilityState') 6227 @DocsEditable
6228 @DomName('Document.webkitVisibilityState')
5858 final String $dom_webkitVisibilityState; 6229 final String $dom_webkitVisibilityState;
5859 6230
5860 @JSName('caretRangeFromPoint') 6231 @JSName('caretRangeFromPoint')
5861 @DocsEditable @DomName('Document.caretRangeFromPoint') 6232 @DocsEditable
6233 @DomName('Document.caretRangeFromPoint')
5862 Range $dom_caretRangeFromPoint(int x, int y) native; 6234 Range $dom_caretRangeFromPoint(int x, int y) native;
5863 6235
5864 @JSName('createCDATASection') 6236 @JSName('createCDATASection')
5865 @DocsEditable @DomName('Document.createCDATASection') 6237 @DocsEditable
6238 @DomName('Document.createCDATASection')
5866 CDataSection createCDataSection(String data) native; 6239 CDataSection createCDataSection(String data) native;
5867 6240
5868 @DocsEditable @DomName('Document.createDocumentFragment') 6241 @DocsEditable
6242 @DomName('Document.createDocumentFragment')
5869 DocumentFragment createDocumentFragment() native; 6243 DocumentFragment createDocumentFragment() native;
5870 6244
5871 @JSName('createElement') 6245 @JSName('createElement')
5872 @DocsEditable @DomName('Document.createElement') 6246 @DocsEditable
6247 @DomName('Document.createElement')
5873 Element $dom_createElement(String tagName) native; 6248 Element $dom_createElement(String tagName) native;
5874 6249
5875 @JSName('createElementNS') 6250 @JSName('createElementNS')
5876 @DocsEditable @DomName('Document.createElementNS') 6251 @DocsEditable
6252 @DomName('Document.createElementNS')
5877 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native ; 6253 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native ;
5878 6254
5879 @JSName('createEvent') 6255 @JSName('createEvent')
5880 @DocsEditable @DomName('Document.createEvent') 6256 @DocsEditable
6257 @DomName('Document.createEvent')
5881 Event $dom_createEvent(String eventType) native; 6258 Event $dom_createEvent(String eventType) native;
5882 6259
5883 @JSName('createRange') 6260 @JSName('createRange')
5884 @DocsEditable @DomName('Document.createRange') 6261 @DocsEditable
6262 @DomName('Document.createRange')
5885 Range $dom_createRange() native; 6263 Range $dom_createRange() native;
5886 6264
5887 @JSName('createTextNode') 6265 @JSName('createTextNode')
5888 @DocsEditable @DomName('Document.createTextNode') 6266 @DocsEditable
6267 @DomName('Document.createTextNode')
5889 Text $dom_createTextNode(String data) native; 6268 Text $dom_createTextNode(String data) native;
5890 6269
5891 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY , num webkitRotationAngle, num webkitForce) { 6270 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY , num webkitRotationAngle, num webkitForce) {
5892 var target_1 = _convertDartToNative_EventTarget(target); 6271 var target_1 = _convertDartToNative_EventTarget(target);
5893 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); 6272 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);
5894 } 6273 }
5895 @JSName('createTouch') 6274 @JSName('createTouch')
5896 @DocsEditable @DomName('Document.createTouch') 6275 @DocsEditable
6276 @DomName('Document.createTouch')
5897 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n ative; 6277 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n ative;
5898 6278
5899 @JSName('createTouchList') 6279 @JSName('createTouchList')
5900 @DocsEditable @DomName('Document.createTouchList') 6280 @DocsEditable
6281 @DomName('Document.createTouchList')
5901 TouchList $dom_createTouchList() native; 6282 TouchList $dom_createTouchList() native;
5902 6283
5903 @JSName('elementFromPoint') 6284 @JSName('elementFromPoint')
5904 @DocsEditable @DomName('Document.elementFromPoint') 6285 @DocsEditable
6286 @DomName('Document.elementFromPoint')
5905 Element $dom_elementFromPoint(int x, int y) native; 6287 Element $dom_elementFromPoint(int x, int y) native;
5906 6288
5907 @DocsEditable @DomName('Document.execCommand') 6289 @DocsEditable
6290 @DomName('Document.execCommand')
5908 bool execCommand(String command, bool userInterface, String value) native; 6291 bool execCommand(String command, bool userInterface, String value) native;
5909 6292
5910 @JSName('getCSSCanvasContext') 6293 @JSName('getCSSCanvasContext')
5911 @DocsEditable @DomName('Document.getCSSCanvasContext') 6294 @DocsEditable
6295 @DomName('Document.getCSSCanvasContext')
5912 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name, int width, int height) native; 6296 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name, int width, int height) native;
5913 6297
5914 @JSName('getElementById') 6298 @JSName('getElementById')
5915 @DocsEditable @DomName('Document.getElementById') 6299 @DocsEditable
6300 @DomName('Document.getElementById')
5916 Element $dom_getElementById(String elementId) native; 6301 Element $dom_getElementById(String elementId) native;
5917 6302
5918 @JSName('getElementsByClassName') 6303 @JSName('getElementsByClassName')
5919 @DocsEditable @DomName('Document.getElementsByClassName') 6304 @DocsEditable
5920 @Returns('NodeList') @Creates('NodeList') 6305 @DomName('Document.getElementsByClassName')
6306 @Returns('NodeList')
6307 @Creates('NodeList')
5921 List<Node> $dom_getElementsByClassName(String tagname) native; 6308 List<Node> $dom_getElementsByClassName(String tagname) native;
5922 6309
5923 @JSName('getElementsByName') 6310 @JSName('getElementsByName')
5924 @DocsEditable @DomName('Document.getElementsByName') 6311 @DocsEditable
5925 @Returns('NodeList') @Creates('NodeList') 6312 @DomName('Document.getElementsByName')
6313 @Returns('NodeList')
6314 @Creates('NodeList')
5926 List<Node> $dom_getElementsByName(String elementName) native; 6315 List<Node> $dom_getElementsByName(String elementName) native;
5927 6316
5928 @JSName('getElementsByTagName') 6317 @JSName('getElementsByTagName')
5929 @DocsEditable @DomName('Document.getElementsByTagName') 6318 @DocsEditable
5930 @Returns('NodeList') @Creates('NodeList') 6319 @DomName('Document.getElementsByTagName')
6320 @Returns('NodeList')
6321 @Creates('NodeList')
5931 List<Node> $dom_getElementsByTagName(String tagname) native; 6322 List<Node> $dom_getElementsByTagName(String tagname) native;
5932 6323
5933 @DocsEditable @DomName('Document.queryCommandEnabled') 6324 @DocsEditable
6325 @DomName('Document.queryCommandEnabled')
5934 bool queryCommandEnabled(String command) native; 6326 bool queryCommandEnabled(String command) native;
5935 6327
5936 @DocsEditable @DomName('Document.queryCommandIndeterm') 6328 @DocsEditable
6329 @DomName('Document.queryCommandIndeterm')
5937 bool queryCommandIndeterm(String command) native; 6330 bool queryCommandIndeterm(String command) native;
5938 6331
5939 @DocsEditable @DomName('Document.queryCommandState') 6332 @DocsEditable
6333 @DomName('Document.queryCommandState')
5940 bool queryCommandState(String command) native; 6334 bool queryCommandState(String command) native;
5941 6335
5942 @DocsEditable @DomName('Document.queryCommandSupported') 6336 @DocsEditable
6337 @DomName('Document.queryCommandSupported')
5943 bool queryCommandSupported(String command) native; 6338 bool queryCommandSupported(String command) native;
5944 6339
5945 @DocsEditable @DomName('Document.queryCommandValue') 6340 @DocsEditable
6341 @DomName('Document.queryCommandValue')
5946 String queryCommandValue(String command) native; 6342 String queryCommandValue(String command) native;
5947 6343
5948 @JSName('querySelector') 6344 @JSName('querySelector')
5949 @DocsEditable @DomName('Document.querySelector') 6345 @DocsEditable
6346 @DomName('Document.querySelector')
5950 Element $dom_querySelector(String selectors) native; 6347 Element $dom_querySelector(String selectors) native;
5951 6348
5952 @JSName('querySelectorAll') 6349 @JSName('querySelectorAll')
5953 @DocsEditable @DomName('Document.querySelectorAll') 6350 @DocsEditable
5954 @Returns('NodeList') @Creates('NodeList') 6351 @DomName('Document.querySelectorAll')
6352 @Returns('NodeList')
6353 @Creates('NodeList')
5955 List<Node> $dom_querySelectorAll(String selectors) native; 6354 List<Node> $dom_querySelectorAll(String selectors) native;
5956 6355
5957 @JSName('webkitCancelFullScreen') 6356 @JSName('webkitCancelFullScreen')
5958 @DocsEditable @DomName('Document.webkitCancelFullScreen') 6357 @DocsEditable
6358 @DomName('Document.webkitCancelFullScreen')
5959 void $dom_webkitCancelFullScreen() native; 6359 void $dom_webkitCancelFullScreen() native;
5960 6360
5961 @JSName('webkitExitFullscreen') 6361 @JSName('webkitExitFullscreen')
5962 @DocsEditable @DomName('Document.webkitExitFullscreen') 6362 @DocsEditable
6363 @DomName('Document.webkitExitFullscreen')
5963 void $dom_webkitExitFullscreen() native; 6364 void $dom_webkitExitFullscreen() native;
5964 6365
5965 @JSName('webkitExitPointerLock') 6366 @JSName('webkitExitPointerLock')
5966 @DocsEditable @DomName('Document.webkitExitPointerLock') 6367 @DocsEditable
6368 @DomName('Document.webkitExitPointerLock')
5967 void $dom_webkitExitPointerLock() native; 6369 void $dom_webkitExitPointerLock() native;
5968 6370
5969 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); 6371 Stream<Event> get onAbort => Element.abortEvent.forTarget(this);
5970 6372
5971 Stream<Event> get onBeforeCopy => Element.beforeCopyEvent.forTarget(this); 6373 Stream<Event> get onBeforeCopy => Element.beforeCopyEvent.forTarget(this);
5972 6374
5973 Stream<Event> get onBeforeCut => Element.beforeCutEvent.forTarget(this); 6375 Stream<Event> get onBeforeCut => Element.beforeCutEvent.forTarget(this);
5974 6376
5975 Stream<Event> get onBeforePaste => Element.beforePasteEvent.forTarget(this); 6377 Stream<Event> get onBeforePaste => Element.beforePasteEvent.forTarget(this);
5976 6378
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
6412 "WebKit region overflow can't be set for document fragments."); 6814 "WebKit region overflow can't be set for document fragments.");
6413 } 6815 }
6414 6816
6415 6817
6416 @DocsEditable 6818 @DocsEditable
6417 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 6819 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
6418 ElementEvents get on => 6820 ElementEvents get on =>
6419 new ElementEvents(this); 6821 new ElementEvents(this);
6420 6822
6421 @JSName('querySelector') 6823 @JSName('querySelector')
6422 @DocsEditable @DomName('DocumentFragment.querySelector') 6824 @DocsEditable
6825 @DomName('DocumentFragment.querySelector')
6423 Element $dom_querySelector(String selectors) native; 6826 Element $dom_querySelector(String selectors) native;
6424 6827
6425 @JSName('querySelectorAll') 6828 @JSName('querySelectorAll')
6426 @DocsEditable @DomName('DocumentFragment.querySelectorAll') 6829 @DocsEditable
6427 @Returns('NodeList') @Creates('NodeList') 6830 @DomName('DocumentFragment.querySelectorAll')
6831 @Returns('NodeList')
6832 @Creates('NodeList')
6428 List<Node> $dom_querySelectorAll(String selectors) native; 6833 List<Node> $dom_querySelectorAll(String selectors) native;
6429 6834
6430 } 6835 }
6431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6432 // for details. All rights reserved. Use of this source code is governed by a 6837 // for details. All rights reserved. Use of this source code is governed by a
6433 // BSD-style license that can be found in the LICENSE file. 6838 // BSD-style license that can be found in the LICENSE file.
6434 6839
6435 6840
6436 6841
6437 @DocsEditable 6842 @DocsEditable
6438 @DomName('DocumentType') 6843 @DomName('DocumentType')
6439 class DocumentType extends Node native "*DocumentType" { 6844 class DocumentType extends Node native "*DocumentType" {
6440 } 6845 }
6441 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6442 // for details. All rights reserved. Use of this source code is governed by a 6847 // for details. All rights reserved. Use of this source code is governed by a
6443 // BSD-style license that can be found in the LICENSE file. 6848 // BSD-style license that can be found in the LICENSE file.
6444 6849
6445 6850
6446 6851
6447 @DocsEditable 6852 @DocsEditable
6448 @DomName('DOMError') 6853 @DomName('DOMError')
6449 class DomError native "*DOMError" { 6854 class DomError native "*DOMError" {
6450 6855
6451 @DocsEditable @DomName('DOMError.name') 6856 @DocsEditable
6857 @DomName('DOMError.name')
6452 final String name; 6858 final String name;
6453 } 6859 }
6454 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 6860 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
6455 // 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
6456 // BSD-style license that can be found in the LICENSE file. 6862 // BSD-style license that can be found in the LICENSE file.
6457 6863
6458 6864
6459 /// @domName DOMException 6865 /// @domName DOMException
6460 class DomException native "*DOMException" { 6866 class DomException native "*DOMException" {
6461 6867
(...skipping 23 matching lines...) Expand all
6485 var errorName = JS('String', '#.name', this); 6891 var errorName = JS('String', '#.name', this);
6486 // Although Safari nightly has updated the name to SecurityError, Safari 5 6892 // Although Safari nightly has updated the name to SecurityError, Safari 5
6487 // and 6 still return SECURITY_ERR. 6893 // and 6 still return SECURITY_ERR.
6488 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; 6894 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError';
6489 // Chrome release still uses old string, remove this line when Chrome stable 6895 // Chrome release still uses old string, remove this line when Chrome stable
6490 // also prints out SyntaxError. 6896 // also prints out SyntaxError.
6491 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; 6897 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError';
6492 return errorName; 6898 return errorName;
6493 } 6899 }
6494 6900
6495 @DocsEditable @DomName('DOMCoreException.message') 6901 @DocsEditable
6902 @DomName('DOMCoreException.message')
6496 final String message; 6903 final String message;
6497 6904
6498 @DocsEditable @DomName('DOMCoreException.toString') 6905 @DocsEditable
6906 @DomName('DOMCoreException.toString')
6499 String toString() native; 6907 String toString() native;
6500 6908
6501 } 6909 }
6502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6503 // for details. All rights reserved. Use of this source code is governed by a 6911 // for details. All rights reserved. Use of this source code is governed by a
6504 // BSD-style license that can be found in the LICENSE file. 6912 // BSD-style license that can be found in the LICENSE file.
6505 6913
6506 6914
6507 6915
6508 @DocsEditable 6916 @DocsEditable
6509 @DomName('DOMImplementation') 6917 @DomName('DOMImplementation')
6510 class DomImplementation native "*DOMImplementation" { 6918 class DomImplementation native "*DOMImplementation" {
6511 6919
6512 @JSName('createCSSStyleSheet') 6920 @JSName('createCSSStyleSheet')
6513 @DocsEditable @DomName('DOMImplementation.createCSSStyleSheet') 6921 @DocsEditable
6922 @DomName('DOMImplementation.createCSSStyleSheet')
6514 CssStyleSheet createCssStyleSheet(String title, String media) native; 6923 CssStyleSheet createCssStyleSheet(String title, String media) native;
6515 6924
6516 @DocsEditable @DomName('DOMImplementation.createDocument') 6925 @DocsEditable
6926 @DomName('DOMImplementation.createDocument')
6517 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native; 6927 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native;
6518 6928
6519 @DocsEditable @DomName('DOMImplementation.createDocumentType') 6929 @DocsEditable
6930 @DomName('DOMImplementation.createDocumentType')
6520 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native; 6931 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native;
6521 6932
6522 @JSName('createHTMLDocument') 6933 @JSName('createHTMLDocument')
6523 @DocsEditable @DomName('DOMImplementation.createHTMLDocument') 6934 @DocsEditable
6935 @DomName('DOMImplementation.createHTMLDocument')
6524 HtmlDocument createHtmlDocument(String title) native; 6936 HtmlDocument createHtmlDocument(String title) native;
6525 6937
6526 @DocsEditable @DomName('DOMImplementation.hasFeature') 6938 @DocsEditable
6939 @DomName('DOMImplementation.hasFeature')
6527 bool hasFeature(String feature, String version) native; 6940 bool hasFeature(String feature, String version) native;
6528 } 6941 }
6529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6530 // for details. All rights reserved. Use of this source code is governed by a 6943 // for details. All rights reserved. Use of this source code is governed by a
6531 // BSD-style license that can be found in the LICENSE file. 6944 // BSD-style license that can be found in the LICENSE file.
6532 6945
6533 6946
6534 6947
6535 @DocsEditable 6948 @DocsEditable
6536 @DomName('MimeType') 6949 @DomName('MimeType')
6537 class DomMimeType native "*MimeType" { 6950 class DomMimeType native "*MimeType" {
6538 6951
6539 @DocsEditable @DomName('DOMMimeType.description') 6952 @DocsEditable
6953 @DomName('DOMMimeType.description')
6540 final String description; 6954 final String description;
6541 6955
6542 @DocsEditable @DomName('DOMMimeType.enabledPlugin') 6956 @DocsEditable
6957 @DomName('DOMMimeType.enabledPlugin')
6543 final DomPlugin enabledPlugin; 6958 final DomPlugin enabledPlugin;
6544 6959
6545 @DocsEditable @DomName('DOMMimeType.suffixes') 6960 @DocsEditable
6961 @DomName('DOMMimeType.suffixes')
6546 final String suffixes; 6962 final String suffixes;
6547 6963
6548 @DocsEditable @DomName('DOMMimeType.type') 6964 @DocsEditable
6965 @DomName('DOMMimeType.type')
6549 final String type; 6966 final String type;
6550 } 6967 }
6551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6552 // for details. All rights reserved. Use of this source code is governed by a 6969 // for details. All rights reserved. Use of this source code is governed by a
6553 // BSD-style license that can be found in the LICENSE file. 6970 // BSD-style license that can be found in the LICENSE file.
6554 6971
6555 6972
6556 6973
6557 @DocsEditable 6974 @DocsEditable
6558 @DomName('MimeTypeArray') 6975 @DomName('MimeTypeArray')
6559 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "*MimeTypeArray" { 6976 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "*MimeTypeArray" {
6560 6977
6561 @DocsEditable @DomName('DOMMimeTypeArray.length') 6978 @DocsEditable
6979 @DomName('DOMMimeTypeArray.length')
6562 int get length => JS("int", "#.length", this); 6980 int get length => JS("int", "#.length", this);
6563 6981
6564 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index); 6982 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index);
6565 6983
6566 void operator[]=(int index, DomMimeType value) { 6984 void operator[]=(int index, DomMimeType value) {
6567 throw new UnsupportedError("Cannot assign element of immutable List."); 6985 throw new UnsupportedError("Cannot assign element of immutable List.");
6568 } 6986 }
6569 // -- start List<DomMimeType> mixins. 6987 // -- start List<DomMimeType> mixins.
6570 // DomMimeType is the element type. 6988 // DomMimeType is the element type.
6571 6989
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
6702 7120
6703 void insertRange(int start, int rangeLength, [DomMimeType initialValue]) { 7121 void insertRange(int start, int rangeLength, [DomMimeType initialValue]) {
6704 throw new UnsupportedError("Cannot insertRange on immutable List."); 7122 throw new UnsupportedError("Cannot insertRange on immutable List.");
6705 } 7123 }
6706 7124
6707 List<DomMimeType> getRange(int start, int rangeLength) => 7125 List<DomMimeType> getRange(int start, int rangeLength) =>
6708 Lists.getRange(this, start, rangeLength, <DomMimeType>[]); 7126 Lists.getRange(this, start, rangeLength, <DomMimeType>[]);
6709 7127
6710 // -- end List<DomMimeType> mixins. 7128 // -- end List<DomMimeType> mixins.
6711 7129
6712 @DocsEditable @DomName('DOMMimeTypeArray.item') 7130 @DocsEditable
7131 @DomName('DOMMimeTypeArray.item')
6713 DomMimeType item(int index) native; 7132 DomMimeType item(int index) native;
6714 7133
6715 @DocsEditable @DomName('DOMMimeTypeArray.namedItem') 7134 @DocsEditable
7135 @DomName('DOMMimeTypeArray.namedItem')
6716 DomMimeType namedItem(String name) native; 7136 DomMimeType namedItem(String name) native;
6717 } 7137 }
6718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6719 // for details. All rights reserved. Use of this source code is governed by a 7139 // for details. All rights reserved. Use of this source code is governed by a
6720 // BSD-style license that can be found in the LICENSE file. 7140 // BSD-style license that can be found in the LICENSE file.
6721 7141
6722 7142
6723 7143
6724 @DocsEditable 7144 @DocsEditable
6725 @DomName('DOMParser') 7145 @DomName('DOMParser')
6726 class DomParser native "*DOMParser" { 7146 class DomParser native "*DOMParser" {
6727 7147
6728 @DocsEditable 7148 @DocsEditable
6729 factory DomParser() => DomParser._create(); 7149 factory DomParser() => DomParser._create();
6730 static DomParser _create() => JS('DomParser', 'new DOMParser()'); 7150 static DomParser _create() => JS('DomParser', 'new DOMParser()');
6731 7151
6732 @DocsEditable @DomName('DOMParser.parseFromString') 7152 @DocsEditable
7153 @DomName('DOMParser.parseFromString')
6733 Document parseFromString(String str, String contentType) native; 7154 Document parseFromString(String str, String contentType) native;
6734 } 7155 }
6735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6736 // for details. All rights reserved. Use of this source code is governed by a 7157 // for details. All rights reserved. Use of this source code is governed by a
6737 // BSD-style license that can be found in the LICENSE file. 7158 // BSD-style license that can be found in the LICENSE file.
6738 7159
6739 7160
6740 7161
6741 @DocsEditable 7162 @DocsEditable
6742 @DomName('Plugin') 7163 @DomName('Plugin')
6743 class DomPlugin native "*Plugin" { 7164 class DomPlugin native "*Plugin" {
6744 7165
6745 @DocsEditable @DomName('DOMPlugin.description') 7166 @DocsEditable
7167 @DomName('DOMPlugin.description')
6746 final String description; 7168 final String description;
6747 7169
6748 @DocsEditable @DomName('DOMPlugin.filename') 7170 @DocsEditable
7171 @DomName('DOMPlugin.filename')
6749 final String filename; 7172 final String filename;
6750 7173
6751 @DocsEditable @DomName('DOMPlugin.length') 7174 @DocsEditable
7175 @DomName('DOMPlugin.length')
6752 final int length; 7176 final int length;
6753 7177
6754 @DocsEditable @DomName('DOMPlugin.name') 7178 @DocsEditable
7179 @DomName('DOMPlugin.name')
6755 final String name; 7180 final String name;
6756 7181
6757 @DocsEditable @DomName('DOMPlugin.item') 7182 @DocsEditable
7183 @DomName('DOMPlugin.item')
6758 DomMimeType item(int index) native; 7184 DomMimeType item(int index) native;
6759 7185
6760 @DocsEditable @DomName('DOMPlugin.namedItem') 7186 @DocsEditable
7187 @DomName('DOMPlugin.namedItem')
6761 DomMimeType namedItem(String name) native; 7188 DomMimeType namedItem(String name) native;
6762 } 7189 }
6763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7190 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6764 // for details. All rights reserved. Use of this source code is governed by a 7191 // for details. All rights reserved. Use of this source code is governed by a
6765 // BSD-style license that can be found in the LICENSE file. 7192 // BSD-style license that can be found in the LICENSE file.
6766 7193
6767 7194
6768 7195
6769 @DocsEditable 7196 @DocsEditable
6770 @DomName('PluginArray') 7197 @DomName('PluginArray')
6771 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati ve "*PluginArray" { 7198 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati ve "*PluginArray" {
6772 7199
6773 @DocsEditable @DomName('DOMPluginArray.length') 7200 @DocsEditable
7201 @DomName('DOMPluginArray.length')
6774 int get length => JS("int", "#.length", this); 7202 int get length => JS("int", "#.length", this);
6775 7203
6776 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index); 7204 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index);
6777 7205
6778 void operator[]=(int index, DomPlugin value) { 7206 void operator[]=(int index, DomPlugin value) {
6779 throw new UnsupportedError("Cannot assign element of immutable List."); 7207 throw new UnsupportedError("Cannot assign element of immutable List.");
6780 } 7208 }
6781 // -- start List<DomPlugin> mixins. 7209 // -- start List<DomPlugin> mixins.
6782 // DomPlugin is the element type. 7210 // DomPlugin is the element type.
6783 7211
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
6914 7342
6915 void insertRange(int start, int rangeLength, [DomPlugin initialValue]) { 7343 void insertRange(int start, int rangeLength, [DomPlugin initialValue]) {
6916 throw new UnsupportedError("Cannot insertRange on immutable List."); 7344 throw new UnsupportedError("Cannot insertRange on immutable List.");
6917 } 7345 }
6918 7346
6919 List<DomPlugin> getRange(int start, int rangeLength) => 7347 List<DomPlugin> getRange(int start, int rangeLength) =>
6920 Lists.getRange(this, start, rangeLength, <DomPlugin>[]); 7348 Lists.getRange(this, start, rangeLength, <DomPlugin>[]);
6921 7349
6922 // -- end List<DomPlugin> mixins. 7350 // -- end List<DomPlugin> mixins.
6923 7351
6924 @DocsEditable @DomName('DOMPluginArray.item') 7352 @DocsEditable
7353 @DomName('DOMPluginArray.item')
6925 DomPlugin item(int index) native; 7354 DomPlugin item(int index) native;
6926 7355
6927 @DocsEditable @DomName('DOMPluginArray.namedItem') 7356 @DocsEditable
7357 @DomName('DOMPluginArray.namedItem')
6928 DomPlugin namedItem(String name) native; 7358 DomPlugin namedItem(String name) native;
6929 7359
6930 @DocsEditable @DomName('DOMPluginArray.refresh') 7360 @DocsEditable
7361 @DomName('DOMPluginArray.refresh')
6931 void refresh(bool reload) native; 7362 void refresh(bool reload) native;
6932 } 7363 }
6933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6934 // for details. All rights reserved. Use of this source code is governed by a 7365 // for details. All rights reserved. Use of this source code is governed by a
6935 // BSD-style license that can be found in the LICENSE file. 7366 // BSD-style license that can be found in the LICENSE file.
6936 7367
6937 7368
6938 7369
6939 @DocsEditable 7370 @DocsEditable
6940 @DomName('Selection') 7371 @DomName('Selection')
6941 class DomSelection native "*Selection" { 7372 class DomSelection native "*Selection" {
6942 7373
6943 @DocsEditable @DomName('DOMSelection.anchorNode') 7374 @DocsEditable
7375 @DomName('DOMSelection.anchorNode')
6944 final Node anchorNode; 7376 final Node anchorNode;
6945 7377
6946 @DocsEditable @DomName('DOMSelection.anchorOffset') 7378 @DocsEditable
7379 @DomName('DOMSelection.anchorOffset')
6947 final int anchorOffset; 7380 final int anchorOffset;
6948 7381
6949 @DocsEditable @DomName('DOMSelection.baseNode') 7382 @DocsEditable
7383 @DomName('DOMSelection.baseNode')
6950 final Node baseNode; 7384 final Node baseNode;
6951 7385
6952 @DocsEditable @DomName('DOMSelection.baseOffset') 7386 @DocsEditable
7387 @DomName('DOMSelection.baseOffset')
6953 final int baseOffset; 7388 final int baseOffset;
6954 7389
6955 @DocsEditable @DomName('DOMSelection.extentNode') 7390 @DocsEditable
7391 @DomName('DOMSelection.extentNode')
6956 final Node extentNode; 7392 final Node extentNode;
6957 7393
6958 @DocsEditable @DomName('DOMSelection.extentOffset') 7394 @DocsEditable
7395 @DomName('DOMSelection.extentOffset')
6959 final int extentOffset; 7396 final int extentOffset;
6960 7397
6961 @DocsEditable @DomName('DOMSelection.focusNode') 7398 @DocsEditable
7399 @DomName('DOMSelection.focusNode')
6962 final Node focusNode; 7400 final Node focusNode;
6963 7401
6964 @DocsEditable @DomName('DOMSelection.focusOffset') 7402 @DocsEditable
7403 @DomName('DOMSelection.focusOffset')
6965 final int focusOffset; 7404 final int focusOffset;
6966 7405
6967 @DocsEditable @DomName('DOMSelection.isCollapsed') 7406 @DocsEditable
7407 @DomName('DOMSelection.isCollapsed')
6968 final bool isCollapsed; 7408 final bool isCollapsed;
6969 7409
6970 @DocsEditable @DomName('DOMSelection.rangeCount') 7410 @DocsEditable
7411 @DomName('DOMSelection.rangeCount')
6971 final int rangeCount; 7412 final int rangeCount;
6972 7413
6973 @DocsEditable @DomName('DOMSelection.type') 7414 @DocsEditable
7415 @DomName('DOMSelection.type')
6974 final String type; 7416 final String type;
6975 7417
6976 @DocsEditable @DomName('DOMSelection.addRange') 7418 @DocsEditable
7419 @DomName('DOMSelection.addRange')
6977 void addRange(Range range) native; 7420 void addRange(Range range) native;
6978 7421
6979 @DocsEditable @DomName('DOMSelection.collapse') 7422 @DocsEditable
7423 @DomName('DOMSelection.collapse')
6980 void collapse(Node node, int index) native; 7424 void collapse(Node node, int index) native;
6981 7425
6982 @DocsEditable @DomName('DOMSelection.collapseToEnd') 7426 @DocsEditable
7427 @DomName('DOMSelection.collapseToEnd')
6983 void collapseToEnd() native; 7428 void collapseToEnd() native;
6984 7429
6985 @DocsEditable @DomName('DOMSelection.collapseToStart') 7430 @DocsEditable
7431 @DomName('DOMSelection.collapseToStart')
6986 void collapseToStart() native; 7432 void collapseToStart() native;
6987 7433
6988 @DocsEditable @DomName('DOMSelection.containsNode') 7434 @DocsEditable
7435 @DomName('DOMSelection.containsNode')
6989 bool containsNode(Node node, bool allowPartial) native; 7436 bool containsNode(Node node, bool allowPartial) native;
6990 7437
6991 @DocsEditable @DomName('DOMSelection.deleteFromDocument') 7438 @DocsEditable
7439 @DomName('DOMSelection.deleteFromDocument')
6992 void deleteFromDocument() native; 7440 void deleteFromDocument() native;
6993 7441
6994 @DocsEditable @DomName('DOMSelection.empty') 7442 @DocsEditable
7443 @DomName('DOMSelection.empty')
6995 void empty() native; 7444 void empty() native;
6996 7445
6997 @DocsEditable @DomName('DOMSelection.extend') 7446 @DocsEditable
7447 @DomName('DOMSelection.extend')
6998 void extend(Node node, int offset) native; 7448 void extend(Node node, int offset) native;
6999 7449
7000 @DocsEditable @DomName('DOMSelection.getRangeAt') 7450 @DocsEditable
7451 @DomName('DOMSelection.getRangeAt')
7001 Range getRangeAt(int index) native; 7452 Range getRangeAt(int index) native;
7002 7453
7003 @DocsEditable @DomName('DOMSelection.modify') 7454 @DocsEditable
7455 @DomName('DOMSelection.modify')
7004 void modify(String alter, String direction, String granularity) native; 7456 void modify(String alter, String direction, String granularity) native;
7005 7457
7006 @DocsEditable @DomName('DOMSelection.removeAllRanges') 7458 @DocsEditable
7459 @DomName('DOMSelection.removeAllRanges')
7007 void removeAllRanges() native; 7460 void removeAllRanges() native;
7008 7461
7009 @DocsEditable @DomName('DOMSelection.selectAllChildren') 7462 @DocsEditable
7463 @DomName('DOMSelection.selectAllChildren')
7010 void selectAllChildren(Node node) native; 7464 void selectAllChildren(Node node) native;
7011 7465
7012 @DocsEditable @DomName('DOMSelection.setBaseAndExtent') 7466 @DocsEditable
7467 @DomName('DOMSelection.setBaseAndExtent')
7013 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native; 7468 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native;
7014 7469
7015 @DocsEditable @DomName('DOMSelection.setPosition') 7470 @DocsEditable
7471 @DomName('DOMSelection.setPosition')
7016 void setPosition(Node node, int offset) native; 7472 void setPosition(Node node, int offset) native;
7017 7473
7018 @DocsEditable @DomName('DOMSelection.toString') 7474 @DocsEditable
7475 @DomName('DOMSelection.toString')
7019 String toString() native; 7476 String toString() native;
7020 } 7477 }
7021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7022 // for details. All rights reserved. Use of this source code is governed by a 7479 // for details. All rights reserved. Use of this source code is governed by a
7023 // BSD-style license that can be found in the LICENSE file. 7480 // BSD-style license that can be found in the LICENSE file.
7024 7481
7025 7482
7026 7483
7027 @DocsEditable 7484 @DocsEditable
7028 @DomName('DOMSettableTokenList') 7485 @DomName('DOMSettableTokenList')
7029 class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" { 7486 class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" {
7030 7487
7031 @DocsEditable @DomName('DOMSettableTokenList.value') 7488 @DocsEditable
7489 @DomName('DOMSettableTokenList.value')
7032 String value; 7490 String value;
7033 } 7491 }
7034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7035 // for details. All rights reserved. Use of this source code is governed by a 7493 // for details. All rights reserved. Use of this source code is governed by a
7036 // BSD-style license that can be found in the LICENSE file. 7494 // BSD-style license that can be found in the LICENSE file.
7037 7495
7038 7496
7039 7497
7040 @DocsEditable 7498 @DocsEditable
7041 @DomName('DOMStringList') 7499 @DomName('DOMStringList')
7042 class DomStringList implements JavaScriptIndexingBehavior, List<String> native " *DOMStringList" { 7500 class DomStringList implements JavaScriptIndexingBehavior, List<String> native " *DOMStringList" {
7043 7501
7044 @DocsEditable @DomName('DOMStringList.length') 7502 @DocsEditable
7503 @DomName('DOMStringList.length')
7045 int get length => JS("int", "#.length", this); 7504 int get length => JS("int", "#.length", this);
7046 7505
7047 String operator[](int index) => JS("String", "#[#]", this, index); 7506 String operator[](int index) => JS("String", "#[#]", this, index);
7048 7507
7049 void operator[]=(int index, String value) { 7508 void operator[]=(int index, String value) {
7050 throw new UnsupportedError("Cannot assign element of immutable List."); 7509 throw new UnsupportedError("Cannot assign element of immutable List.");
7051 } 7510 }
7052 // -- start List<String> mixins. 7511 // -- start List<String> mixins.
7053 // String is the element type. 7512 // String is the element type.
7054 7513
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
7185 7644
7186 void insertRange(int start, int rangeLength, [String initialValue]) { 7645 void insertRange(int start, int rangeLength, [String initialValue]) {
7187 throw new UnsupportedError("Cannot insertRange on immutable List."); 7646 throw new UnsupportedError("Cannot insertRange on immutable List.");
7188 } 7647 }
7189 7648
7190 List<String> getRange(int start, int rangeLength) => 7649 List<String> getRange(int start, int rangeLength) =>
7191 Lists.getRange(this, start, rangeLength, <String>[]); 7650 Lists.getRange(this, start, rangeLength, <String>[]);
7192 7651
7193 // -- end List<String> mixins. 7652 // -- end List<String> mixins.
7194 7653
7195 @DocsEditable @DomName('DOMStringList.contains') 7654 @DocsEditable
7655 @DomName('DOMStringList.contains')
7196 bool contains(String string) native; 7656 bool contains(String string) native;
7197 7657
7198 @DocsEditable @DomName('DOMStringList.item') 7658 @DocsEditable
7659 @DomName('DOMStringList.item')
7199 String item(int index) native; 7660 String item(int index) native;
7200 } 7661 }
7201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7202 // for details. All rights reserved. Use of this source code is governed by a 7663 // for details. All rights reserved. Use of this source code is governed by a
7203 // BSD-style license that can be found in the LICENSE file. 7664 // BSD-style license that can be found in the LICENSE file.
7204 7665
7205 7666
7206 @DocsEditable 7667 @DocsEditable
7207 @DomName('DOMStringMap') 7668 @DomName('DOMStringMap')
7208 abstract class DomStringMap { 7669 abstract class DomStringMap {
7209 } 7670 }
7210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7211 // for details. All rights reserved. Use of this source code is governed by a 7672 // for details. All rights reserved. Use of this source code is governed by a
7212 // BSD-style license that can be found in the LICENSE file. 7673 // BSD-style license that can be found in the LICENSE file.
7213 7674
7214 7675
7215 7676
7216 @DocsEditable 7677 @DocsEditable
7217 @DomName('DOMTokenList') 7678 @DomName('DOMTokenList')
7218 class DomTokenList native "*DOMTokenList" { 7679 class DomTokenList native "*DOMTokenList" {
7219 7680
7220 @DocsEditable @DomName('DOMTokenList.length') 7681 @DocsEditable
7682 @DomName('DOMTokenList.length')
7221 final int length; 7683 final int length;
7222 7684
7223 @DocsEditable @DomName('DOMTokenList.contains') 7685 @DocsEditable
7686 @DomName('DOMTokenList.contains')
7224 bool contains(String token) native; 7687 bool contains(String token) native;
7225 7688
7226 @DocsEditable @DomName('DOMTokenList.item') 7689 @DocsEditable
7690 @DomName('DOMTokenList.item')
7227 String item(int index) native; 7691 String item(int index) native;
7228 7692
7229 @DocsEditable @DomName('DOMTokenList.toString') 7693 @DocsEditable
7694 @DomName('DOMTokenList.toString')
7230 String toString() native; 7695 String toString() native;
7231 7696
7232 @DocsEditable @DomName('DOMTokenList.toggle') 7697 @DocsEditable
7698 @DomName('DOMTokenList.toggle')
7233 bool toggle(String token, [bool force]) native; 7699 bool toggle(String token, [bool force]) native;
7234 } 7700 }
7235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7236 // for details. All rights reserved. Use of this source code is governed by a 7702 // for details. All rights reserved. Use of this source code is governed by a
7237 // BSD-style license that can be found in the LICENSE file. 7703 // BSD-style license that can be found in the LICENSE file.
7238 7704
7239 7705
7240 // TODO(jacobr): use _Lists.dart to remove some of the duplicated 7706 // TODO(jacobr): use _Lists.dart to remove some of the duplicated
7241 // functionality. 7707 // functionality.
7242 class _ChildrenElementList implements List { 7708 class _ChildrenElementList implements List {
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
7677 8143
7678 void writeClasses(Set<String> s) { 8144 void writeClasses(Set<String> s) {
7679 List list = new List.from(s); 8145 List list = new List.from(s);
7680 _element.$dom_className = s.join(' '); 8146 _element.$dom_className = s.join(' ');
7681 } 8147 }
7682 } 8148 }
7683 8149
7684 /** 8150 /**
7685 * An abstract class, which all HTML elements extend. 8151 * An abstract class, which all HTML elements extend.
7686 */ 8152 */
8153 @DocsEditable
8154 @DomName('Element')
7687 abstract class Element extends Node implements ElementTraversal native "*Element " { 8155 abstract class Element extends Node implements ElementTraversal native "*Element " {
7688 8156
7689 /** 8157 /**
7690 * Creates an HTML element from a valid fragment of HTML. 8158 * Creates an HTML element from a valid fragment of HTML.
7691 * 8159 *
7692 * The [html] fragment must represent valid HTML with a single element root, 8160 * The [html] fragment must represent valid HTML with a single element root,
7693 * which will be parsed and returned. 8161 * which will be parsed and returned.
7694 * 8162 *
7695 * Important: the contents of [html] should not contain any user-supplied 8163 * Important: the contents of [html] should not contain any user-supplied
7696 * data. Without strict data validation it is impossible to prevent script 8164 * data. Without strict data validation it is impossible to prevent script
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
8182 static const EventStreamProvider<Event> fullscreenChangeEvent = const EventStr eamProvider<Event>('webkitfullscreenchange'); 8650 static const EventStreamProvider<Event> fullscreenChangeEvent = const EventStr eamProvider<Event>('webkitfullscreenchange');
8183 8651
8184 static const EventStreamProvider<Event> fullscreenErrorEvent = const EventStre amProvider<Event>('webkitfullscreenerror'); 8652 static const EventStreamProvider<Event> fullscreenErrorEvent = const EventStre amProvider<Event>('webkitfullscreenerror');
8185 8653
8186 @DocsEditable 8654 @DocsEditable
8187 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 8655 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
8188 ElementEvents get on => 8656 ElementEvents get on =>
8189 new ElementEvents(this); 8657 new ElementEvents(this);
8190 8658
8191 @JSName('children') 8659 @JSName('children')
8192 @DocsEditable @DomName('Element.children') 8660 @DocsEditable
8661 @DomName('Element.children')
8193 final HtmlCollection $dom_children; 8662 final HtmlCollection $dom_children;
8194 8663
8195 @DocsEditable @DomName('Element.contentEditable') 8664 @DocsEditable
8665 @DomName('Element.contentEditable')
8196 String contentEditable; 8666 String contentEditable;
8197 8667
8198 @DocsEditable @DomName('Element.dir') 8668 @DocsEditable
8669 @DomName('Element.dir')
8199 String dir; 8670 String dir;
8200 8671
8201 @DocsEditable @DomName('Element.draggable') 8672 @DocsEditable
8673 @DomName('Element.draggable')
8202 bool draggable; 8674 bool draggable;
8203 8675
8204 @DocsEditable @DomName('Element.hidden') 8676 @DocsEditable
8677 @DomName('Element.hidden')
8205 bool hidden; 8678 bool hidden;
8206 8679
8207 @DocsEditable @DomName('Element.id') 8680 @DocsEditable
8681 @DomName('Element.id')
8208 String id; 8682 String id;
8209 8683
8210 @JSName('innerHTML') 8684 @JSName('innerHTML')
8211 @DocsEditable @DomName('Element.innerHTML') 8685 @DocsEditable
8686 @DomName('Element.innerHTML')
8212 String innerHtml; 8687 String innerHtml;
8213 8688
8214 @DocsEditable @DomName('Element.isContentEditable') 8689 @DocsEditable
8690 @DomName('Element.isContentEditable')
8215 final bool isContentEditable; 8691 final bool isContentEditable;
8216 8692
8217 @DocsEditable @DomName('Element.lang') 8693 @DocsEditable
8694 @DomName('Element.lang')
8218 String lang; 8695 String lang;
8219 8696
8220 @JSName('outerHTML') 8697 @JSName('outerHTML')
8221 @DocsEditable @DomName('Element.outerHTML') 8698 @DocsEditable
8699 @DomName('Element.outerHTML')
8222 final String outerHtml; 8700 final String outerHtml;
8223 8701
8224 @DocsEditable @DomName('Element.spellcheck') 8702 @DocsEditable
8703 @DomName('Element.spellcheck')
8225 bool spellcheck; 8704 bool spellcheck;
8226 8705
8227 @DocsEditable @DomName('Element.tabIndex') 8706 @DocsEditable
8707 @DomName('Element.tabIndex')
8228 int tabIndex; 8708 int tabIndex;
8229 8709
8230 @DocsEditable @DomName('Element.title') 8710 @DocsEditable
8711 @DomName('Element.title')
8231 String title; 8712 String title;
8232 8713
8233 @DocsEditable @DomName('Element.translate') 8714 @DocsEditable
8715 @DomName('Element.translate')
8234 bool translate; 8716 bool translate;
8235 8717
8236 @DocsEditable @DomName('Element.webkitdropzone') 8718 @DocsEditable
8719 @DomName('Element.webkitdropzone')
8237 String webkitdropzone; 8720 String webkitdropzone;
8238 8721
8239 @DocsEditable @DomName('Element.click') 8722 @DocsEditable
8723 @DomName('Element.click')
8240 void click() native; 8724 void click() native;
8241 8725
8242 static const int ALLOW_KEYBOARD_INPUT = 1; 8726 static const int ALLOW_KEYBOARD_INPUT = 1;
8243 8727
8244 @JSName('childElementCount') 8728 @JSName('childElementCount')
8245 @DocsEditable @DomName('Element.childElementCount') 8729 @DocsEditable
8730 @DomName('Element.childElementCount')
8246 final int $dom_childElementCount; 8731 final int $dom_childElementCount;
8247 8732
8248 @JSName('className') 8733 @JSName('className')
8249 @DocsEditable @DomName('Element.className') 8734 @DocsEditable
8735 @DomName('Element.className')
8250 String $dom_className; 8736 String $dom_className;
8251 8737
8252 @DocsEditable @DomName('Element.clientHeight') 8738 @DocsEditable
8739 @DomName('Element.clientHeight')
8253 final int clientHeight; 8740 final int clientHeight;
8254 8741
8255 @DocsEditable @DomName('Element.clientLeft') 8742 @DocsEditable
8743 @DomName('Element.clientLeft')
8256 final int clientLeft; 8744 final int clientLeft;
8257 8745
8258 @DocsEditable @DomName('Element.clientTop') 8746 @DocsEditable
8747 @DomName('Element.clientTop')
8259 final int clientTop; 8748 final int clientTop;
8260 8749
8261 @DocsEditable @DomName('Element.clientWidth') 8750 @DocsEditable
8751 @DomName('Element.clientWidth')
8262 final int clientWidth; 8752 final int clientWidth;
8263 8753
8264 @DocsEditable @DomName('Element.dataset') 8754 @DocsEditable
8755 @DomName('Element.dataset')
8265 final Map<String, String> dataset; 8756 final Map<String, String> dataset;
8266 8757
8267 @JSName('firstElementChild') 8758 @JSName('firstElementChild')
8268 @DocsEditable @DomName('Element.firstElementChild') 8759 @DocsEditable
8760 @DomName('Element.firstElementChild')
8269 final Element $dom_firstElementChild; 8761 final Element $dom_firstElementChild;
8270 8762
8271 @JSName('lastElementChild') 8763 @JSName('lastElementChild')
8272 @DocsEditable @DomName('Element.lastElementChild') 8764 @DocsEditable
8765 @DomName('Element.lastElementChild')
8273 final Element $dom_lastElementChild; 8766 final Element $dom_lastElementChild;
8274 8767
8275 @DocsEditable @DomName('Element.nextElementSibling') 8768 @DocsEditable
8769 @DomName('Element.nextElementSibling')
8276 final Element nextElementSibling; 8770 final Element nextElementSibling;
8277 8771
8278 @DocsEditable @DomName('Element.offsetHeight') 8772 @DocsEditable
8773 @DomName('Element.offsetHeight')
8279 final int offsetHeight; 8774 final int offsetHeight;
8280 8775
8281 @DocsEditable @DomName('Element.offsetLeft') 8776 @DocsEditable
8777 @DomName('Element.offsetLeft')
8282 final int offsetLeft; 8778 final int offsetLeft;
8283 8779
8284 @DocsEditable @DomName('Element.offsetParent') 8780 @DocsEditable
8781 @DomName('Element.offsetParent')
8285 final Element offsetParent; 8782 final Element offsetParent;
8286 8783
8287 @DocsEditable @DomName('Element.offsetTop') 8784 @DocsEditable
8785 @DomName('Element.offsetTop')
8288 final int offsetTop; 8786 final int offsetTop;
8289 8787
8290 @DocsEditable @DomName('Element.offsetWidth') 8788 @DocsEditable
8789 @DomName('Element.offsetWidth')
8291 final int offsetWidth; 8790 final int offsetWidth;
8292 8791
8293 @DocsEditable @DomName('Element.previousElementSibling') 8792 @DocsEditable
8793 @DomName('Element.previousElementSibling')
8294 final Element previousElementSibling; 8794 final Element previousElementSibling;
8295 8795
8296 @DocsEditable @DomName('Element.scrollHeight') 8796 @DocsEditable
8797 @DomName('Element.scrollHeight')
8297 final int scrollHeight; 8798 final int scrollHeight;
8298 8799
8299 @DocsEditable @DomName('Element.scrollLeft') 8800 @DocsEditable
8801 @DomName('Element.scrollLeft')
8300 int scrollLeft; 8802 int scrollLeft;
8301 8803
8302 @DocsEditable @DomName('Element.scrollTop') 8804 @DocsEditable
8805 @DomName('Element.scrollTop')
8303 int scrollTop; 8806 int scrollTop;
8304 8807
8305 @DocsEditable @DomName('Element.scrollWidth') 8808 @DocsEditable
8809 @DomName('Element.scrollWidth')
8306 final int scrollWidth; 8810 final int scrollWidth;
8307 8811
8308 @DocsEditable @DomName('Element.style') 8812 @DocsEditable
8813 @DomName('Element.style')
8309 final CssStyleDeclaration style; 8814 final CssStyleDeclaration style;
8310 8815
8311 @DocsEditable @DomName('Element.tagName') 8816 @DocsEditable
8817 @DomName('Element.tagName')
8312 final String tagName; 8818 final String tagName;
8313 8819
8314 @DocsEditable @DomName('Element.webkitPseudo') 8820 @DocsEditable
8821 @DomName('Element.webkitPseudo')
8315 String webkitPseudo; 8822 String webkitPseudo;
8316 8823
8317 @DocsEditable @DomName('Element.webkitShadowRoot') 8824 @DocsEditable
8825 @DomName('Element.webkitShadowRoot')
8318 final ShadowRoot webkitShadowRoot; 8826 final ShadowRoot webkitShadowRoot;
8319 8827
8320 @DocsEditable @DomName('Element.blur') 8828 @DocsEditable
8829 @DomName('Element.blur')
8321 void blur() native; 8830 void blur() native;
8322 8831
8323 @DocsEditable @DomName('Element.focus') 8832 @DocsEditable
8833 @DomName('Element.focus')
8324 void focus() native; 8834 void focus() native;
8325 8835
8326 @JSName('getAttribute') 8836 @JSName('getAttribute')
8327 @DocsEditable @DomName('Element.getAttribute') 8837 @DocsEditable
8838 @DomName('Element.getAttribute')
8328 String $dom_getAttribute(String name) native; 8839 String $dom_getAttribute(String name) native;
8329 8840
8330 @JSName('getAttributeNS') 8841 @JSName('getAttributeNS')
8331 @DocsEditable @DomName('Element.getAttributeNS') 8842 @DocsEditable
8843 @DomName('Element.getAttributeNS')
8332 String $dom_getAttributeNS(String namespaceURI, String localName) native; 8844 String $dom_getAttributeNS(String namespaceURI, String localName) native;
8333 8845
8334 @DocsEditable @DomName('Element.getBoundingClientRect') 8846 @DocsEditable
8847 @DomName('Element.getBoundingClientRect')
8335 ClientRect getBoundingClientRect() native; 8848 ClientRect getBoundingClientRect() native;
8336 8849
8337 @DocsEditable @DomName('Element.getClientRects') 8850 @DocsEditable
8338 @Returns('_ClientRectList') @Creates('_ClientRectList') 8851 @DomName('Element.getClientRects')
8852 @Returns('_ClientRectList')
8853 @Creates('_ClientRectList')
8339 List<ClientRect> getClientRects() native; 8854 List<ClientRect> getClientRects() native;
8340 8855
8341 @JSName('getElementsByClassName') 8856 @JSName('getElementsByClassName')
8342 @DocsEditable @DomName('Element.getElementsByClassName') 8857 @DocsEditable
8343 @Returns('NodeList') @Creates('NodeList') 8858 @DomName('Element.getElementsByClassName')
8859 @Returns('NodeList')
8860 @Creates('NodeList')
8344 List<Node> $dom_getElementsByClassName(String name) native; 8861 List<Node> $dom_getElementsByClassName(String name) native;
8345 8862
8346 @JSName('getElementsByTagName') 8863 @JSName('getElementsByTagName')
8347 @DocsEditable @DomName('Element.getElementsByTagName') 8864 @DocsEditable
8348 @Returns('NodeList') @Creates('NodeList') 8865 @DomName('Element.getElementsByTagName')
8866 @Returns('NodeList')
8867 @Creates('NodeList')
8349 List<Node> $dom_getElementsByTagName(String name) native; 8868 List<Node> $dom_getElementsByTagName(String name) native;
8350 8869
8351 @JSName('hasAttribute') 8870 @JSName('hasAttribute')
8352 @DocsEditable @DomName('Element.hasAttribute') 8871 @DocsEditable
8872 @DomName('Element.hasAttribute')
8353 bool $dom_hasAttribute(String name) native; 8873 bool $dom_hasAttribute(String name) native;
8354 8874
8355 @JSName('hasAttributeNS') 8875 @JSName('hasAttributeNS')
8356 @DocsEditable @DomName('Element.hasAttributeNS') 8876 @DocsEditable
8877 @DomName('Element.hasAttributeNS')
8357 bool $dom_hasAttributeNS(String namespaceURI, String localName) native; 8878 bool $dom_hasAttributeNS(String namespaceURI, String localName) native;
8358 8879
8359 @JSName('querySelector') 8880 @JSName('querySelector')
8360 @DocsEditable @DomName('Element.querySelector') 8881 @DocsEditable
8882 @DomName('Element.querySelector')
8361 Element $dom_querySelector(String selectors) native; 8883 Element $dom_querySelector(String selectors) native;
8362 8884
8363 @JSName('querySelectorAll') 8885 @JSName('querySelectorAll')
8364 @DocsEditable @DomName('Element.querySelectorAll') 8886 @DocsEditable
8365 @Returns('NodeList') @Creates('NodeList') 8887 @DomName('Element.querySelectorAll')
8888 @Returns('NodeList')
8889 @Creates('NodeList')
8366 List<Node> $dom_querySelectorAll(String selectors) native; 8890 List<Node> $dom_querySelectorAll(String selectors) native;
8367 8891
8368 @JSName('removeAttribute') 8892 @JSName('removeAttribute')
8369 @DocsEditable @DomName('Element.removeAttribute') 8893 @DocsEditable
8894 @DomName('Element.removeAttribute')
8370 void $dom_removeAttribute(String name) native; 8895 void $dom_removeAttribute(String name) native;
8371 8896
8372 @JSName('removeAttributeNS') 8897 @JSName('removeAttributeNS')
8373 @DocsEditable @DomName('Element.removeAttributeNS') 8898 @DocsEditable
8899 @DomName('Element.removeAttributeNS')
8374 void $dom_removeAttributeNS(String namespaceURI, String localName) native; 8900 void $dom_removeAttributeNS(String namespaceURI, String localName) native;
8375 8901
8376 @DocsEditable @DomName('Element.scrollByLines') 8902 @DocsEditable
8903 @DomName('Element.scrollByLines')
8377 void scrollByLines(int lines) native; 8904 void scrollByLines(int lines) native;
8378 8905
8379 @DocsEditable @DomName('Element.scrollByPages') 8906 @DocsEditable
8907 @DomName('Element.scrollByPages')
8380 void scrollByPages(int pages) native; 8908 void scrollByPages(int pages) native;
8381 8909
8382 @JSName('scrollIntoViewIfNeeded') 8910 @JSName('scrollIntoViewIfNeeded')
8383 @DocsEditable @DomName('Element.scrollIntoViewIfNeeded') 8911 @DocsEditable
8912 @DomName('Element.scrollIntoViewIfNeeded')
8384 void scrollIntoView([bool centerIfNeeded]) native; 8913 void scrollIntoView([bool centerIfNeeded]) native;
8385 8914
8386 @JSName('setAttribute') 8915 @JSName('setAttribute')
8387 @DocsEditable @DomName('Element.setAttribute') 8916 @DocsEditable
8917 @DomName('Element.setAttribute')
8388 void $dom_setAttribute(String name, String value) native; 8918 void $dom_setAttribute(String name, String value) native;
8389 8919
8390 @JSName('setAttributeNS') 8920 @JSName('setAttributeNS')
8391 @DocsEditable @DomName('Element.setAttributeNS') 8921 @DocsEditable
8922 @DomName('Element.setAttributeNS')
8392 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val ue) native; 8923 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val ue) native;
8393 8924
8394 @JSName('webkitCreateShadowRoot') 8925 @JSName('webkitCreateShadowRoot')
8395 @DocsEditable @DomName('Element.webkitCreateShadowRoot') @SupportedBrowser(Sup portedBrowser.CHROME, '25') @Experimental() 8926 @DocsEditable
8927 @DomName('Element.webkitCreateShadowRoot')
8928 @SupportedBrowser(SupportedBrowser.CHROME, '25')
8929 @Experimental()
8396 ShadowRoot createShadowRoot() native; 8930 ShadowRoot createShadowRoot() native;
8397 8931
8398 @DocsEditable @DomName('Element.webkitRequestFullScreen') 8932 @DocsEditable
8933 @DomName('Element.webkitRequestFullScreen')
8399 void webkitRequestFullScreen(int flags) native; 8934 void webkitRequestFullScreen(int flags) native;
8400 8935
8401 @DocsEditable @DomName('Element.webkitRequestFullscreen') 8936 @DocsEditable
8937 @DomName('Element.webkitRequestFullscreen')
8402 void webkitRequestFullscreen() native; 8938 void webkitRequestFullscreen() native;
8403 8939
8404 @DocsEditable @DomName('Element.webkitRequestPointerLock') 8940 @DocsEditable
8941 @DomName('Element.webkitRequestPointerLock')
8405 void webkitRequestPointerLock() native; 8942 void webkitRequestPointerLock() native;
8406 8943
8407 Stream<Event> get onAbort => abortEvent.forTarget(this); 8944 Stream<Event> get onAbort => abortEvent.forTarget(this);
8408 8945
8409 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); 8946 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this);
8410 8947
8411 Stream<Event> get onBeforeCut => beforeCutEvent.forTarget(this); 8948 Stream<Event> get onBeforeCut => beforeCutEvent.forTarget(this);
8412 8949
8413 Stream<Event> get onBeforePaste => beforePasteEvent.forTarget(this); 8950 Stream<Event> get onBeforePaste => beforePasteEvent.forTarget(this);
8414 8951
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
8632 // Optimization to improve performance until the dart2js compiler inlines this 9169 // Optimization to improve performance until the dart2js compiler inlines this
8633 // method. 9170 // method.
8634 static dynamic createElement_tag(String tag) => 9171 static dynamic createElement_tag(String tag) =>
8635 JS('Element', 'document.createElement(#)', tag); 9172 JS('Element', 'document.createElement(#)', tag);
8636 } 9173 }
8637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8638 // for details. All rights reserved. Use of this source code is governed by a 9175 // for details. All rights reserved. Use of this source code is governed by a
8639 // BSD-style license that can be found in the LICENSE file. 9176 // BSD-style license that can be found in the LICENSE file.
8640 9177
8641 9178
8642 class ElementEvents extends Events { 9179 $(ANNOTATIONS)class ElementEvents extends Events {
8643 ElementEvents(EventTarget _ptr) : super(_ptr); 9180 ElementEvents(EventTarget _ptr) : super(_ptr);
8644 9181
8645 @DocsEditable 9182 @DocsEditable
8646 EventListenerList get abort => this['abort']; 9183 EventListenerList get abort => this['abort'];
8647 9184
8648 @DocsEditable 9185 @DocsEditable
8649 EventListenerList get beforeCopy => this['beforecopy']; 9186 EventListenerList get beforeCopy => this['beforecopy'];
8650 9187
8651 @DocsEditable 9188 @DocsEditable
8652 EventListenerList get beforeCut => this['beforecut']; 9189 EventListenerList get beforeCut => this['beforecut'];
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
8827 @SupportedBrowser(SupportedBrowser.IE) 9364 @SupportedBrowser(SupportedBrowser.IE)
8828 @SupportedBrowser(SupportedBrowser.SAFARI) 9365 @SupportedBrowser(SupportedBrowser.SAFARI)
8829 class EmbedElement extends Element native "*HTMLEmbedElement" { 9366 class EmbedElement extends Element native "*HTMLEmbedElement" {
8830 9367
8831 @DocsEditable 9368 @DocsEditable
8832 factory EmbedElement() => document.$dom_createElement("embed"); 9369 factory EmbedElement() => document.$dom_createElement("embed");
8833 9370
8834 /// Checks if this type is supported on the current platform. 9371 /// Checks if this type is supported on the current platform.
8835 static bool get supported => Element.isTagSupported('embed'); 9372 static bool get supported => Element.isTagSupported('embed');
8836 9373
8837 @DocsEditable @DomName('HTMLEmbedElement.align') 9374 @DocsEditable
9375 @DomName('HTMLEmbedElement.align')
8838 String align; 9376 String align;
8839 9377
8840 @DocsEditable @DomName('HTMLEmbedElement.height') 9378 @DocsEditable
9379 @DomName('HTMLEmbedElement.height')
8841 String height; 9380 String height;
8842 9381
8843 @DocsEditable @DomName('HTMLEmbedElement.name') 9382 @DocsEditable
9383 @DomName('HTMLEmbedElement.name')
8844 String name; 9384 String name;
8845 9385
8846 @DocsEditable @DomName('HTMLEmbedElement.src') 9386 @DocsEditable
9387 @DomName('HTMLEmbedElement.src')
8847 String src; 9388 String src;
8848 9389
8849 @DocsEditable @DomName('HTMLEmbedElement.type') 9390 @DocsEditable
9391 @DomName('HTMLEmbedElement.type')
8850 String type; 9392 String type;
8851 9393
8852 @DocsEditable @DomName('HTMLEmbedElement.width') 9394 @DocsEditable
9395 @DomName('HTMLEmbedElement.width')
8853 String width; 9396 String width;
8854 } 9397 }
8855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8856 // for details. All rights reserved. Use of this source code is governed by a 9399 // for details. All rights reserved. Use of this source code is governed by a
8857 // BSD-style license that can be found in the LICENSE file. 9400 // BSD-style license that can be found in the LICENSE file.
8858 9401
8859 9402
8860 9403
8861 @DocsEditable 9404 @DocsEditable
8862 @DomName('EntityReference') 9405 @DomName('EntityReference')
(...skipping 10 matching lines...) Expand all
8873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8874 // for details. All rights reserved. Use of this source code is governed by a 9417 // for details. All rights reserved. Use of this source code is governed by a
8875 // BSD-style license that can be found in the LICENSE file. 9418 // BSD-style license that can be found in the LICENSE file.
8876 9419
8877 9420
8878 9421
8879 @DocsEditable 9422 @DocsEditable
8880 @DomName('Entry') 9423 @DomName('Entry')
8881 class Entry native "*Entry" { 9424 class Entry native "*Entry" {
8882 9425
8883 @DocsEditable @DomName('Entry.filesystem') 9426 @DocsEditable
9427 @DomName('Entry.filesystem')
8884 final FileSystem filesystem; 9428 final FileSystem filesystem;
8885 9429
8886 @DocsEditable @DomName('Entry.fullPath') 9430 @DocsEditable
9431 @DomName('Entry.fullPath')
8887 final String fullPath; 9432 final String fullPath;
8888 9433
8889 @DocsEditable @DomName('Entry.isDirectory') 9434 @DocsEditable
9435 @DomName('Entry.isDirectory')
8890 final bool isDirectory; 9436 final bool isDirectory;
8891 9437
8892 @DocsEditable @DomName('Entry.isFile') 9438 @DocsEditable
9439 @DomName('Entry.isFile')
8893 final bool isFile; 9440 final bool isFile;
8894 9441
8895 @DocsEditable @DomName('Entry.name') 9442 @DocsEditable
9443 @DomName('Entry.name')
8896 final String name; 9444 final String name;
8897 9445
8898 @DocsEditable @DomName('Entry.copyTo') 9446 @DocsEditable
9447 @DomName('Entry.copyTo')
8899 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native; 9448 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native;
8900 9449
8901 @DocsEditable @DomName('Entry.getMetadata') 9450 @DocsEditable
9451 @DomName('Entry.getMetadata')
8902 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]) native; 9452 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]) native;
8903 9453
8904 @DocsEditable @DomName('Entry.getParent') 9454 @DocsEditable
9455 @DomName('Entry.getParent')
8905 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n ative; 9456 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n ative;
8906 9457
8907 @DocsEditable @DomName('Entry.moveTo') 9458 @DocsEditable
9459 @DomName('Entry.moveTo')
8908 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native; 9460 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native;
8909 9461
8910 @DocsEditable @DomName('Entry.remove') 9462 @DocsEditable
9463 @DomName('Entry.remove')
8911 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ e; 9464 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ e;
8912 9465
8913 @JSName('toURL') 9466 @JSName('toURL')
8914 @DocsEditable @DomName('Entry.toURL') 9467 @DocsEditable
9468 @DomName('Entry.toURL')
8915 String toUrl() native; 9469 String toUrl() native;
8916 } 9470 }
8917 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8918 // for details. All rights reserved. Use of this source code is governed by a 9472 // for details. All rights reserved. Use of this source code is governed by a
8919 // BSD-style license that can be found in the LICENSE file. 9473 // BSD-style license that can be found in the LICENSE file.
8920 9474
8921 // WARNING: Do not edit - generated code. 9475 // WARNING: Do not edit - generated code.
8922 9476
8923 9477
8924 typedef void EntryCallback(Entry entry); 9478 typedef void EntryCallback(Entry entry);
8925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8926 // for details. All rights reserved. Use of this source code is governed by a 9480 // for details. All rights reserved. Use of this source code is governed by a
8927 // BSD-style license that can be found in the LICENSE file. 9481 // BSD-style license that can be found in the LICENSE file.
8928 9482
8929 9483
8930 9484
8931 @DocsEditable 9485 @DocsEditable
8932 @DomName('EntrySync') 9486 @DomName('EntrySync')
8933 class EntrySync native "*EntrySync" { 9487 class EntrySync native "*EntrySync" {
8934 9488
8935 @DocsEditable @DomName('EntrySync.filesystem') 9489 @DocsEditable
9490 @DomName('EntrySync.filesystem')
8936 final FileSystemSync filesystem; 9491 final FileSystemSync filesystem;
8937 9492
8938 @DocsEditable @DomName('EntrySync.fullPath') 9493 @DocsEditable
9494 @DomName('EntrySync.fullPath')
8939 final String fullPath; 9495 final String fullPath;
8940 9496
8941 @DocsEditable @DomName('EntrySync.isDirectory') 9497 @DocsEditable
9498 @DomName('EntrySync.isDirectory')
8942 final bool isDirectory; 9499 final bool isDirectory;
8943 9500
8944 @DocsEditable @DomName('EntrySync.isFile') 9501 @DocsEditable
9502 @DomName('EntrySync.isFile')
8945 final bool isFile; 9503 final bool isFile;
8946 9504
8947 @DocsEditable @DomName('EntrySync.name') 9505 @DocsEditable
9506 @DomName('EntrySync.name')
8948 final String name; 9507 final String name;
8949 9508
8950 @DocsEditable @DomName('EntrySync.copyTo') 9509 @DocsEditable
9510 @DomName('EntrySync.copyTo')
8951 EntrySync copyTo(DirectoryEntrySync parent, String name) native; 9511 EntrySync copyTo(DirectoryEntrySync parent, String name) native;
8952 9512
8953 @DocsEditable @DomName('EntrySync.getMetadata') 9513 @DocsEditable
9514 @DomName('EntrySync.getMetadata')
8954 Metadata getMetadata() native; 9515 Metadata getMetadata() native;
8955 9516
8956 @DocsEditable @DomName('EntrySync.getParent') 9517 @DocsEditable
9518 @DomName('EntrySync.getParent')
8957 EntrySync getParent() native; 9519 EntrySync getParent() native;
8958 9520
8959 @DocsEditable @DomName('EntrySync.moveTo') 9521 @DocsEditable
9522 @DomName('EntrySync.moveTo')
8960 EntrySync moveTo(DirectoryEntrySync parent, String name) native; 9523 EntrySync moveTo(DirectoryEntrySync parent, String name) native;
8961 9524
8962 @DocsEditable @DomName('EntrySync.remove') 9525 @DocsEditable
9526 @DomName('EntrySync.remove')
8963 void remove() native; 9527 void remove() native;
8964 9528
8965 @JSName('toURL') 9529 @JSName('toURL')
8966 @DocsEditable @DomName('EntrySync.toURL') 9530 @DocsEditable
9531 @DomName('EntrySync.toURL')
8967 String toUrl() native; 9532 String toUrl() native;
8968 } 9533 }
8969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8970 // for details. All rights reserved. Use of this source code is governed by a 9535 // for details. All rights reserved. Use of this source code is governed by a
8971 // BSD-style license that can be found in the LICENSE file. 9536 // BSD-style license that can be found in the LICENSE file.
8972 9537
8973 // WARNING: Do not edit - generated code. 9538 // WARNING: Do not edit - generated code.
8974 9539
8975 9540
8976 typedef void ErrorCallback(FileError error); 9541 typedef void ErrorCallback(FileError error);
8977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8978 // for details. All rights reserved. Use of this source code is governed by a 9543 // for details. All rights reserved. Use of this source code is governed by a
8979 // BSD-style license that can be found in the LICENSE file. 9544 // BSD-style license that can be found in the LICENSE file.
8980 9545
8981 9546
8982 9547
8983 @DocsEditable 9548 @DocsEditable
8984 @DomName('ErrorEvent') 9549 @DomName('ErrorEvent')
8985 class ErrorEvent extends Event native "*ErrorEvent" { 9550 class ErrorEvent extends Event native "*ErrorEvent" {
8986 9551
8987 @DocsEditable @DomName('ErrorEvent.filename') 9552 @DocsEditable
9553 @DomName('ErrorEvent.filename')
8988 final String filename; 9554 final String filename;
8989 9555
8990 @DocsEditable @DomName('ErrorEvent.lineno') 9556 @DocsEditable
9557 @DomName('ErrorEvent.lineno')
8991 final int lineno; 9558 final int lineno;
8992 9559
8993 @DocsEditable @DomName('ErrorEvent.message') 9560 @DocsEditable
9561 @DomName('ErrorEvent.message')
8994 final String message; 9562 final String message;
8995 } 9563 }
8996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8997 // for details. All rights reserved. Use of this source code is governed by a 9565 // for details. All rights reserved. Use of this source code is governed by a
8998 // BSD-style license that can be found in the LICENSE file. 9566 // BSD-style license that can be found in the LICENSE file.
8999 9567
9000 // WARNING: Do not edit - generated code. 9568 // WARNING: Do not edit - generated code.
9001 9569
9002 9570
9003 @DocsEditable 9571 @DocsEditable
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
9045 static const int MOUSEOUT = 8; 9613 static const int MOUSEOUT = 8;
9046 9614
9047 static const int MOUSEOVER = 4; 9615 static const int MOUSEOVER = 4;
9048 9616
9049 static const int MOUSEUP = 2; 9617 static const int MOUSEUP = 2;
9050 9618
9051 static const int NONE = 0; 9619 static const int NONE = 0;
9052 9620
9053 static const int SELECT = 16384; 9621 static const int SELECT = 16384;
9054 9622
9055 @DocsEditable @DomName('Event.bubbles') 9623 @DocsEditable
9624 @DomName('Event.bubbles')
9056 final bool bubbles; 9625 final bool bubbles;
9057 9626
9058 @DocsEditable @DomName('Event.cancelBubble') 9627 @DocsEditable
9628 @DomName('Event.cancelBubble')
9059 bool cancelBubble; 9629 bool cancelBubble;
9060 9630
9061 @DocsEditable @DomName('Event.cancelable') 9631 @DocsEditable
9632 @DomName('Event.cancelable')
9062 final bool cancelable; 9633 final bool cancelable;
9063 9634
9064 @DocsEditable @DomName('Event.clipboardData') 9635 @DocsEditable
9636 @DomName('Event.clipboardData')
9065 final Clipboard clipboardData; 9637 final Clipboard clipboardData;
9066 9638
9067 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren tTarget); 9639 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren tTarget);
9068 @JSName('currentTarget') 9640 @JSName('currentTarget')
9069 @DocsEditable @DomName('Event.currentTarget') @Creates('Null') @Returns('Event Target|=Object') 9641 @DocsEditable
9642 @DomName('Event.currentTarget')
9643 @Creates('Null')
9644 @Returns('EventTarget|=Object')
9070 final dynamic _currentTarget; 9645 final dynamic _currentTarget;
9071 9646
9072 @DocsEditable @DomName('Event.defaultPrevented') 9647 @DocsEditable
9648 @DomName('Event.defaultPrevented')
9073 final bool defaultPrevented; 9649 final bool defaultPrevented;
9074 9650
9075 @DocsEditable @DomName('Event.eventPhase') 9651 @DocsEditable
9652 @DomName('Event.eventPhase')
9076 final int eventPhase; 9653 final int eventPhase;
9077 9654
9078 @DocsEditable @DomName('Event.returnValue') 9655 @DocsEditable
9656 @DomName('Event.returnValue')
9079 bool returnValue; 9657 bool returnValue;
9080 9658
9081 EventTarget get target => _convertNativeToDart_EventTarget(this._target); 9659 EventTarget get target => _convertNativeToDart_EventTarget(this._target);
9082 @JSName('target') 9660 @JSName('target')
9083 @DocsEditable @DomName('Event.target') @Creates('Node') @Returns('EventTarget| =Object') 9661 @DocsEditable
9662 @DomName('Event.target')
9663 @Creates('Node')
9664 @Returns('EventTarget|=Object')
9084 final dynamic _target; 9665 final dynamic _target;
9085 9666
9086 @DocsEditable @DomName('Event.timeStamp') 9667 @DocsEditable
9668 @DomName('Event.timeStamp')
9087 final int timeStamp; 9669 final int timeStamp;
9088 9670
9089 @DocsEditable @DomName('Event.type') 9671 @DocsEditable
9672 @DomName('Event.type')
9090 final String type; 9673 final String type;
9091 9674
9092 @JSName('initEvent') 9675 @JSName('initEvent')
9093 @DocsEditable @DomName('Event.initEvent') 9676 @DocsEditable
9677 @DomName('Event.initEvent')
9094 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native; 9678 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native;
9095 9679
9096 @DocsEditable @DomName('Event.preventDefault') 9680 @DocsEditable
9681 @DomName('Event.preventDefault')
9097 void preventDefault() native; 9682 void preventDefault() native;
9098 9683
9099 @DocsEditable @DomName('Event.stopImmediatePropagation') 9684 @DocsEditable
9685 @DomName('Event.stopImmediatePropagation')
9100 void stopImmediatePropagation() native; 9686 void stopImmediatePropagation() native;
9101 9687
9102 @DocsEditable @DomName('Event.stopPropagation') 9688 @DocsEditable
9689 @DomName('Event.stopPropagation')
9103 void stopPropagation() native; 9690 void stopPropagation() native;
9104 9691
9105 } 9692 }
9106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9107 // for details. All rights reserved. Use of this source code is governed by a 9694 // for details. All rights reserved. Use of this source code is governed by a
9108 // BSD-style license that can be found in the LICENSE file. 9695 // BSD-style license that can be found in the LICENSE file.
9109 9696
9110 9697
9111 9698
9112 @DocsEditable 9699 @DocsEditable
9113 @DomName('EventException') 9700 @DomName('EventException')
9114 class EventException native "*EventException" { 9701 class EventException native "*EventException" {
9115 9702
9116 static const int DISPATCH_REQUEST_ERR = 1; 9703 static const int DISPATCH_REQUEST_ERR = 1;
9117 9704
9118 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; 9705 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
9119 9706
9120 @DocsEditable @DomName('EventException.code') 9707 @DocsEditable
9708 @DomName('EventException.code')
9121 final int code; 9709 final int code;
9122 9710
9123 @DocsEditable @DomName('EventException.message') 9711 @DocsEditable
9712 @DomName('EventException.message')
9124 final String message; 9713 final String message;
9125 9714
9126 @DocsEditable @DomName('EventException.name') 9715 @DocsEditable
9716 @DomName('EventException.name')
9127 final String name; 9717 final String name;
9128 9718
9129 @DocsEditable @DomName('EventException.toString') 9719 @DocsEditable
9720 @DomName('EventException.toString')
9130 String toString() native; 9721 String toString() native;
9131 } 9722 }
9132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9723 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9133 // for details. All rights reserved. Use of this source code is governed by a 9724 // for details. All rights reserved. Use of this source code is governed by a
9134 // BSD-style license that can be found in the LICENSE file. 9725 // BSD-style license that can be found in the LICENSE file.
9135 9726
9136 9727
9137 9728
9138 @DocsEditable 9729 @DocsEditable
9139 @DomName('EventSource') 9730 @DomName('EventSource')
(...skipping 23 matching lines...) Expand all
9163 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 9754 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
9164 EventSourceEvents get on => 9755 EventSourceEvents get on =>
9165 new EventSourceEvents(this); 9756 new EventSourceEvents(this);
9166 9757
9167 static const int CLOSED = 2; 9758 static const int CLOSED = 2;
9168 9759
9169 static const int CONNECTING = 0; 9760 static const int CONNECTING = 0;
9170 9761
9171 static const int OPEN = 1; 9762 static const int OPEN = 1;
9172 9763
9173 @DocsEditable @DomName('EventSource.readyState') 9764 @DocsEditable
9765 @DomName('EventSource.readyState')
9174 final int readyState; 9766 final int readyState;
9175 9767
9176 @DocsEditable @DomName('EventSource.url') 9768 @DocsEditable
9769 @DomName('EventSource.url')
9177 final String url; 9770 final String url;
9178 9771
9179 @DocsEditable @DomName('EventSource.withCredentials') 9772 @DocsEditable
9773 @DomName('EventSource.withCredentials')
9180 final bool withCredentials; 9774 final bool withCredentials;
9181 9775
9182 @JSName('addEventListener') 9776 @JSName('addEventListener')
9183 @DocsEditable @DomName('EventSource.addEventListener') 9777 @DocsEditable
9778 @DomName('EventSource.addEventListener')
9184 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 9779 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
9185 9780
9186 @DocsEditable @DomName('EventSource.close') 9781 @DocsEditable
9782 @DomName('EventSource.close')
9187 void close() native; 9783 void close() native;
9188 9784
9189 @JSName('dispatchEvent') 9785 @JSName('dispatchEvent')
9190 @DocsEditable @DomName('EventSource.dispatchEvent') 9786 @DocsEditable
9787 @DomName('EventSource.dispatchEvent')
9191 bool $dom_dispatchEvent(Event evt) native; 9788 bool $dom_dispatchEvent(Event evt) native;
9192 9789
9193 @JSName('removeEventListener') 9790 @JSName('removeEventListener')
9194 @DocsEditable @DomName('EventSource.removeEventListener') 9791 @DocsEditable
9792 @DomName('EventSource.removeEventListener')
9195 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 9793 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
9196 9794
9197 Stream<Event> get onError => errorEvent.forTarget(this); 9795 Stream<Event> get onError => errorEvent.forTarget(this);
9198 9796
9199 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 9797 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
9200 9798
9201 Stream<Event> get onOpen => openEvent.forTarget(this); 9799 Stream<Event> get onOpen => openEvent.forTarget(this);
9202 } 9800 }
9203 9801
9204 @DocsEditable 9802 @DocsEditable
(...skipping 14 matching lines...) Expand all
9219 // for details. All rights reserved. Use of this source code is governed by a 9817 // for details. All rights reserved. Use of this source code is governed by a
9220 // BSD-style license that can be found in the LICENSE file. 9818 // BSD-style license that can be found in the LICENSE file.
9221 9819
9222 9820
9223 /** 9821 /**
9224 * Base class that supports listening for and dispatching browser events. 9822 * Base class that supports listening for and dispatching browser events.
9225 * 9823 *
9226 * Events can either be accessed by string name (using the indexed getter) or by 9824 * Events can either be accessed by string name (using the indexed getter) or by
9227 * getters exposed by subclasses. Use the getters exposed by subclasses when 9825 * getters exposed by subclasses. Use the getters exposed by subclasses when
9228 * possible for better compile-time type checks. 9826 * possible for better compile-time type checks.
9229 * 9827 *
9230 * Using an indexed getter: 9828 * Using an indexed getter:
9231 * events['mouseover'].add((e) => print("Mouse over!")); 9829 * events['mouseover'].add((e) => print("Mouse over!"));
9232 * 9830 *
9233 * Using a getter provided by a subclass: 9831 * Using a getter provided by a subclass:
9234 * elementEvents.mouseOver.add((e) => print("Mouse over!")); 9832 * elementEvents.mouseOver.add((e) => print("Mouse over!"));
9235 */ 9833 */
9236 class Events { 9834 class Events {
9237 /* Raw event target. */ 9835 /* Raw event target. */
9238 final EventTarget _ptr; 9836 final EventTarget _ptr;
9239 9837
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
9274 9872
9275 void _add(EventListener listener, bool useCapture) { 9873 void _add(EventListener listener, bool useCapture) {
9276 _ptr.$dom_addEventListener(_type, listener, useCapture); 9874 _ptr.$dom_addEventListener(_type, listener, useCapture);
9277 } 9875 }
9278 9876
9279 void _remove(EventListener listener, bool useCapture) { 9877 void _remove(EventListener listener, bool useCapture) {
9280 _ptr.$dom_removeEventListener(_type, listener, useCapture); 9878 _ptr.$dom_removeEventListener(_type, listener, useCapture);
9281 } 9879 }
9282 } 9880 }
9283 9881
9284 @DocsEditable
9285 @DomName('EventTarget')
9286 /** 9882 /**
9287 * Base class for all browser objects that support events. 9883 * Base class for all browser objects that support events.
9288 * 9884 *
9289 * Use the [on] property to add, remove, and dispatch events (rather than 9885 * Use the [on] property to add, remove, and dispatch events (rather than
9290 * [$dom_addEventListener], [$dom_dispatchEvent], and 9886 * [$dom_addEventListener], [$dom_dispatchEvent], and
9291 * [$dom_removeEventListener]) for compile-time type checks and a more concise 9887 * [$dom_removeEventListener]) for compile-time type checks and a more concise
9292 * API. 9888 * API.
9293 */ 9889 */
9890 @DocsEditable
9891 @DomName('EventTarget')
9294 class EventTarget native "*EventTarget" { 9892 class EventTarget native "*EventTarget" {
9295 9893
9296 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 9894 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
9297 Events get on => new Events(this); 9895 Events get on => new Events(this);
9298 9896
9299 @JSName('addEventListener') 9897 @JSName('addEventListener')
9300 @DocsEditable @DomName('EventTarget.addEventListener') 9898 @DocsEditable
9899 @DomName('EventTarget.addEventListener')
9301 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 9900 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
9302 9901
9303 @JSName('dispatchEvent') 9902 @JSName('dispatchEvent')
9304 @DocsEditable @DomName('EventTarget.dispatchEvent') 9903 @DocsEditable
9904 @DomName('EventTarget.dispatchEvent')
9305 bool $dom_dispatchEvent(Event event) native; 9905 bool $dom_dispatchEvent(Event event) native;
9306 9906
9307 @JSName('removeEventListener') 9907 @JSName('removeEventListener')
9308 @DocsEditable @DomName('EventTarget.removeEventListener') 9908 @DocsEditable
9909 @DomName('EventTarget.removeEventListener')
9309 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 9910 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
9310 9911
9311 } 9912 }
9312 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9313 // for details. All rights reserved. Use of this source code is governed by a 9914 // for details. All rights reserved. Use of this source code is governed by a
9314 // BSD-style license that can be found in the LICENSE file. 9915 // BSD-style license that can be found in the LICENSE file.
9315 9916
9316 9917
9317 9918
9318 @DocsEditable 9919 @DocsEditable
(...skipping 10 matching lines...) Expand all
9329 9930
9330 9931
9331 9932
9332 @DocsEditable 9933 @DocsEditable
9333 @DomName('HTMLFieldSetElement') 9934 @DomName('HTMLFieldSetElement')
9334 class FieldSetElement extends Element native "*HTMLFieldSetElement" { 9935 class FieldSetElement extends Element native "*HTMLFieldSetElement" {
9335 9936
9336 @DocsEditable 9937 @DocsEditable
9337 factory FieldSetElement() => document.$dom_createElement("fieldset"); 9938 factory FieldSetElement() => document.$dom_createElement("fieldset");
9338 9939
9339 @DocsEditable @DomName('HTMLFieldSetElement.disabled') 9940 @DocsEditable
9941 @DomName('HTMLFieldSetElement.disabled')
9340 bool disabled; 9942 bool disabled;
9341 9943
9342 @DocsEditable @DomName('HTMLFieldSetElement.elements') 9944 @DocsEditable
9945 @DomName('HTMLFieldSetElement.elements')
9343 final HtmlCollection elements; 9946 final HtmlCollection elements;
9344 9947
9345 @DocsEditable @DomName('HTMLFieldSetElement.form') 9948 @DocsEditable
9949 @DomName('HTMLFieldSetElement.form')
9346 final FormElement form; 9950 final FormElement form;
9347 9951
9348 @DocsEditable @DomName('HTMLFieldSetElement.name') 9952 @DocsEditable
9953 @DomName('HTMLFieldSetElement.name')
9349 String name; 9954 String name;
9350 9955
9351 @DocsEditable @DomName('HTMLFieldSetElement.type') 9956 @DocsEditable
9957 @DomName('HTMLFieldSetElement.type')
9352 final String type; 9958 final String type;
9353 9959
9354 @DocsEditable @DomName('HTMLFieldSetElement.validationMessage') 9960 @DocsEditable
9961 @DomName('HTMLFieldSetElement.validationMessage')
9355 final String validationMessage; 9962 final String validationMessage;
9356 9963
9357 @DocsEditable @DomName('HTMLFieldSetElement.validity') 9964 @DocsEditable
9965 @DomName('HTMLFieldSetElement.validity')
9358 final ValidityState validity; 9966 final ValidityState validity;
9359 9967
9360 @DocsEditable @DomName('HTMLFieldSetElement.willValidate') 9968 @DocsEditable
9969 @DomName('HTMLFieldSetElement.willValidate')
9361 final bool willValidate; 9970 final bool willValidate;
9362 9971
9363 @DocsEditable @DomName('HTMLFieldSetElement.checkValidity') 9972 @DocsEditable
9973 @DomName('HTMLFieldSetElement.checkValidity')
9364 bool checkValidity() native; 9974 bool checkValidity() native;
9365 9975
9366 @DocsEditable @DomName('HTMLFieldSetElement.setCustomValidity') 9976 @DocsEditable
9977 @DomName('HTMLFieldSetElement.setCustomValidity')
9367 void setCustomValidity(String error) native; 9978 void setCustomValidity(String error) native;
9368 } 9979 }
9369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9370 // for details. All rights reserved. Use of this source code is governed by a 9981 // for details. All rights reserved. Use of this source code is governed by a
9371 // BSD-style license that can be found in the LICENSE file. 9982 // BSD-style license that can be found in the LICENSE file.
9372 9983
9373 9984
9374 9985
9375 @DocsEditable 9986 @DocsEditable
9376 @DomName('File') 9987 @DomName('File')
9377 class File extends Blob native "*File" { 9988 class File extends Blob native "*File" {
9378 9989
9379 @DocsEditable @DomName('File.lastModifiedDate') 9990 @DocsEditable
9991 @DomName('File.lastModifiedDate')
9380 final Date lastModifiedDate; 9992 final Date lastModifiedDate;
9381 9993
9382 @DocsEditable @DomName('File.name') 9994 @DocsEditable
9995 @DomName('File.name')
9383 final String name; 9996 final String name;
9384 9997
9385 @DocsEditable @DomName('File.webkitRelativePath') 9998 @DocsEditable
9999 @DomName('File.webkitRelativePath')
9386 final String webkitRelativePath; 10000 final String webkitRelativePath;
9387 } 10001 }
9388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9389 // for details. All rights reserved. Use of this source code is governed by a 10003 // for details. All rights reserved. Use of this source code is governed by a
9390 // BSD-style license that can be found in the LICENSE file. 10004 // BSD-style license that can be found in the LICENSE file.
9391 10005
9392 // WARNING: Do not edit - generated code. 10006 // WARNING: Do not edit - generated code.
9393 10007
9394 10008
9395 typedef void FileCallback(File file); 10009 typedef void FileCallback(File file);
9396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9397 // for details. All rights reserved. Use of this source code is governed by a 10011 // for details. All rights reserved. Use of this source code is governed by a
9398 // BSD-style license that can be found in the LICENSE file. 10012 // BSD-style license that can be found in the LICENSE file.
9399 10013
9400 10014
9401 10015
9402 @DocsEditable 10016 @DocsEditable
9403 @DomName('FileEntry') 10017 @DomName('FileEntry')
9404 class FileEntry extends Entry native "*FileEntry" { 10018 class FileEntry extends Entry native "*FileEntry" {
9405 10019
9406 @DocsEditable @DomName('FileEntry.createWriter') 10020 @DocsEditable
10021 @DomName('FileEntry.createWriter')
9407 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]) native; 10022 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]) native;
9408 10023
9409 @DocsEditable @DomName('FileEntry.file') 10024 @DocsEditable
10025 @DomName('FileEntry.file')
9410 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; 10026 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native;
9411 } 10027 }
9412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9413 // for details. All rights reserved. Use of this source code is governed by a 10029 // for details. All rights reserved. Use of this source code is governed by a
9414 // BSD-style license that can be found in the LICENSE file. 10030 // BSD-style license that can be found in the LICENSE file.
9415 10031
9416 10032
9417 10033
9418 @DocsEditable 10034 @DocsEditable
9419 @DomName('FileEntrySync') 10035 @DomName('FileEntrySync')
9420 class FileEntrySync extends EntrySync native "*FileEntrySync" { 10036 class FileEntrySync extends EntrySync native "*FileEntrySync" {
9421 10037
9422 @DocsEditable @DomName('FileEntrySync.createWriter') 10038 @DocsEditable
10039 @DomName('FileEntrySync.createWriter')
9423 FileWriterSync createWriter() native; 10040 FileWriterSync createWriter() native;
9424 10041
9425 @DocsEditable @DomName('FileEntrySync.file') 10042 @DocsEditable
10043 @DomName('FileEntrySync.file')
9426 File file() native; 10044 File file() native;
9427 } 10045 }
9428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9429 // for details. All rights reserved. Use of this source code is governed by a 10047 // for details. All rights reserved. Use of this source code is governed by a
9430 // BSD-style license that can be found in the LICENSE file. 10048 // BSD-style license that can be found in the LICENSE file.
9431 10049
9432 10050
9433 10051
9434 @DocsEditable 10052 @DocsEditable
9435 @DomName('FileError') 10053 @DomName('FileError')
(...skipping 16 matching lines...) Expand all
9452 static const int PATH_EXISTS_ERR = 12; 10070 static const int PATH_EXISTS_ERR = 12;
9453 10071
9454 static const int QUOTA_EXCEEDED_ERR = 10; 10072 static const int QUOTA_EXCEEDED_ERR = 10;
9455 10073
9456 static const int SECURITY_ERR = 2; 10074 static const int SECURITY_ERR = 2;
9457 10075
9458 static const int SYNTAX_ERR = 8; 10076 static const int SYNTAX_ERR = 8;
9459 10077
9460 static const int TYPE_MISMATCH_ERR = 11; 10078 static const int TYPE_MISMATCH_ERR = 11;
9461 10079
9462 @DocsEditable @DomName('FileError.code') 10080 @DocsEditable
10081 @DomName('FileError.code')
9463 final int code; 10082 final int code;
9464 } 10083 }
9465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9466 // for details. All rights reserved. Use of this source code is governed by a 10085 // for details. All rights reserved. Use of this source code is governed by a
9467 // BSD-style license that can be found in the LICENSE file. 10086 // BSD-style license that can be found in the LICENSE file.
9468 10087
9469 10088
9470 10089
9471 @DocsEditable 10090 @DocsEditable
9472 @DomName('FileException') 10091 @DomName('FileException')
(...skipping 16 matching lines...) Expand all
9489 static const int PATH_EXISTS_ERR = 12; 10108 static const int PATH_EXISTS_ERR = 12;
9490 10109
9491 static const int QUOTA_EXCEEDED_ERR = 10; 10110 static const int QUOTA_EXCEEDED_ERR = 10;
9492 10111
9493 static const int SECURITY_ERR = 2; 10112 static const int SECURITY_ERR = 2;
9494 10113
9495 static const int SYNTAX_ERR = 8; 10114 static const int SYNTAX_ERR = 8;
9496 10115
9497 static const int TYPE_MISMATCH_ERR = 11; 10116 static const int TYPE_MISMATCH_ERR = 11;
9498 10117
9499 @DocsEditable @DomName('FileException.code') 10118 @DocsEditable
10119 @DomName('FileException.code')
9500 final int code; 10120 final int code;
9501 10121
9502 @DocsEditable @DomName('FileException.message') 10122 @DocsEditable
10123 @DomName('FileException.message')
9503 final String message; 10124 final String message;
9504 10125
9505 @DocsEditable @DomName('FileException.name') 10126 @DocsEditable
10127 @DomName('FileException.name')
9506 final String name; 10128 final String name;
9507 10129
9508 @DocsEditable @DomName('FileException.toString') 10130 @DocsEditable
10131 @DomName('FileException.toString')
9509 String toString() native; 10132 String toString() native;
9510 } 10133 }
9511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9512 // for details. All rights reserved. Use of this source code is governed by a 10135 // for details. All rights reserved. Use of this source code is governed by a
9513 // BSD-style license that can be found in the LICENSE file. 10136 // BSD-style license that can be found in the LICENSE file.
9514 10137
9515 10138
9516 10139
9517 @DocsEditable 10140 @DocsEditable
9518 @DomName('FileList') 10141 @DomName('FileList')
9519 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi st" { 10142 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi st" {
9520 10143
9521 @DocsEditable @DomName('FileList.length') 10144 @DocsEditable
10145 @DomName('FileList.length')
9522 int get length => JS("int", "#.length", this); 10146 int get length => JS("int", "#.length", this);
9523 10147
9524 File operator[](int index) => JS("File", "#[#]", this, index); 10148 File operator[](int index) => JS("File", "#[#]", this, index);
9525 10149
9526 void operator[]=(int index, File value) { 10150 void operator[]=(int index, File value) {
9527 throw new UnsupportedError("Cannot assign element of immutable List."); 10151 throw new UnsupportedError("Cannot assign element of immutable List.");
9528 } 10152 }
9529 // -- start List<File> mixins. 10153 // -- start List<File> mixins.
9530 // File is the element type. 10154 // File is the element type.
9531 10155
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
9662 10286
9663 void insertRange(int start, int rangeLength, [File initialValue]) { 10287 void insertRange(int start, int rangeLength, [File initialValue]) {
9664 throw new UnsupportedError("Cannot insertRange on immutable List."); 10288 throw new UnsupportedError("Cannot insertRange on immutable List.");
9665 } 10289 }
9666 10290
9667 List<File> getRange(int start, int rangeLength) => 10291 List<File> getRange(int start, int rangeLength) =>
9668 Lists.getRange(this, start, rangeLength, <File>[]); 10292 Lists.getRange(this, start, rangeLength, <File>[]);
9669 10293
9670 // -- end List<File> mixins. 10294 // -- end List<File> mixins.
9671 10295
9672 @DocsEditable @DomName('FileList.item') 10296 @DocsEditable
10297 @DomName('FileList.item')
9673 File item(int index) native; 10298 File item(int index) native;
9674 } 10299 }
9675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9676 // for details. All rights reserved. Use of this source code is governed by a 10301 // for details. All rights reserved. Use of this source code is governed by a
9677 // BSD-style license that can be found in the LICENSE file. 10302 // BSD-style license that can be found in the LICENSE file.
9678 10303
9679 10304
9680 10305
9681 @DocsEditable 10306 @DocsEditable
9682 @DomName('FileReader') 10307 @DomName('FileReader')
(...skipping 19 matching lines...) Expand all
9702 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 10327 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
9703 FileReaderEvents get on => 10328 FileReaderEvents get on =>
9704 new FileReaderEvents(this); 10329 new FileReaderEvents(this);
9705 10330
9706 static const int DONE = 2; 10331 static const int DONE = 2;
9707 10332
9708 static const int EMPTY = 0; 10333 static const int EMPTY = 0;
9709 10334
9710 static const int LOADING = 1; 10335 static const int LOADING = 1;
9711 10336
9712 @DocsEditable @DomName('FileReader.error') 10337 @DocsEditable
10338 @DomName('FileReader.error')
9713 final FileError error; 10339 final FileError error;
9714 10340
9715 @DocsEditable @DomName('FileReader.readyState') 10341 @DocsEditable
10342 @DomName('FileReader.readyState')
9716 final int readyState; 10343 final int readyState;
9717 10344
9718 @DocsEditable @DomName('FileReader.result') @Creates('String|ArrayBuffer|Null' ) 10345 @DocsEditable
10346 @DomName('FileReader.result')
10347 @Creates('String|ArrayBuffer|Null')
9719 final Object result; 10348 final Object result;
9720 10349
9721 @DocsEditable @DomName('FileReader.abort') 10350 @DocsEditable
10351 @DomName('FileReader.abort')
9722 void abort() native; 10352 void abort() native;
9723 10353
9724 @JSName('addEventListener') 10354 @JSName('addEventListener')
9725 @DocsEditable @DomName('FileReader.addEventListener') 10355 @DocsEditable
10356 @DomName('FileReader.addEventListener')
9726 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 10357 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
9727 10358
9728 @JSName('dispatchEvent') 10359 @JSName('dispatchEvent')
9729 @DocsEditable @DomName('FileReader.dispatchEvent') 10360 @DocsEditable
10361 @DomName('FileReader.dispatchEvent')
9730 bool $dom_dispatchEvent(Event evt) native; 10362 bool $dom_dispatchEvent(Event evt) native;
9731 10363
9732 @DocsEditable @DomName('FileReader.readAsArrayBuffer') 10364 @DocsEditable
10365 @DomName('FileReader.readAsArrayBuffer')
9733 void readAsArrayBuffer(Blob blob) native; 10366 void readAsArrayBuffer(Blob blob) native;
9734 10367
9735 @DocsEditable @DomName('FileReader.readAsBinaryString') 10368 @DocsEditable
10369 @DomName('FileReader.readAsBinaryString')
9736 void readAsBinaryString(Blob blob) native; 10370 void readAsBinaryString(Blob blob) native;
9737 10371
9738 @JSName('readAsDataURL') 10372 @JSName('readAsDataURL')
9739 @DocsEditable @DomName('FileReader.readAsDataURL') 10373 @DocsEditable
10374 @DomName('FileReader.readAsDataURL')
9740 void readAsDataUrl(Blob blob) native; 10375 void readAsDataUrl(Blob blob) native;
9741 10376
9742 @DocsEditable @DomName('FileReader.readAsText') 10377 @DocsEditable
10378 @DomName('FileReader.readAsText')
9743 void readAsText(Blob blob, [String encoding]) native; 10379 void readAsText(Blob blob, [String encoding]) native;
9744 10380
9745 @JSName('removeEventListener') 10381 @JSName('removeEventListener')
9746 @DocsEditable @DomName('FileReader.removeEventListener') 10382 @DocsEditable
10383 @DomName('FileReader.removeEventListener')
9747 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 10384 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
9748 10385
9749 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); 10386 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this);
9750 10387
9751 Stream<Event> get onError => errorEvent.forTarget(this); 10388 Stream<Event> get onError => errorEvent.forTarget(this);
9752 10389
9753 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); 10390 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this);
9754 10391
9755 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); 10392 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this);
9756 10393
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
9789 10426
9790 10427
9791 @DocsEditable 10428 @DocsEditable
9792 @DomName('FileReaderSync') 10429 @DomName('FileReaderSync')
9793 class FileReaderSync native "*FileReaderSync" { 10430 class FileReaderSync native "*FileReaderSync" {
9794 10431
9795 @DocsEditable 10432 @DocsEditable
9796 factory FileReaderSync() => FileReaderSync._create(); 10433 factory FileReaderSync() => FileReaderSync._create();
9797 static FileReaderSync _create() => JS('FileReaderSync', 'new FileReaderSync()' ); 10434 static FileReaderSync _create() => JS('FileReaderSync', 'new FileReaderSync()' );
9798 10435
9799 @DocsEditable @DomName('FileReaderSync.readAsArrayBuffer') 10436 @DocsEditable
10437 @DomName('FileReaderSync.readAsArrayBuffer')
9800 ArrayBuffer readAsArrayBuffer(Blob blob) native; 10438 ArrayBuffer readAsArrayBuffer(Blob blob) native;
9801 10439
9802 @DocsEditable @DomName('FileReaderSync.readAsBinaryString') 10440 @DocsEditable
10441 @DomName('FileReaderSync.readAsBinaryString')
9803 String readAsBinaryString(Blob blob) native; 10442 String readAsBinaryString(Blob blob) native;
9804 10443
9805 @JSName('readAsDataURL') 10444 @JSName('readAsDataURL')
9806 @DocsEditable @DomName('FileReaderSync.readAsDataURL') 10445 @DocsEditable
10446 @DomName('FileReaderSync.readAsDataURL')
9807 String readAsDataUrl(Blob blob) native; 10447 String readAsDataUrl(Blob blob) native;
9808 10448
9809 @DocsEditable @DomName('FileReaderSync.readAsText') 10449 @DocsEditable
10450 @DomName('FileReaderSync.readAsText')
9810 String readAsText(Blob blob, [String encoding]) native; 10451 String readAsText(Blob blob, [String encoding]) native;
9811 } 10452 }
9812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9813 // for details. All rights reserved. Use of this source code is governed by a 10454 // for details. All rights reserved. Use of this source code is governed by a
9814 // BSD-style license that can be found in the LICENSE file. 10455 // BSD-style license that can be found in the LICENSE file.
9815 10456
9816 10457
9817 10458
9818 @DocsEditable 10459 @DocsEditable
9819 @DomName('DOMFileSystem') 10460 @DomName('DOMFileSystem')
9820 class FileSystem native "*DOMFileSystem" { 10461 class FileSystem native "*DOMFileSystem" {
9821 10462
9822 /// Checks if this type is supported on the current platform. 10463 /// Checks if this type is supported on the current platform.
9823 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); 10464 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)');
9824 10465
9825 @DocsEditable @DomName('DOMFileSystem.name') 10466 @DocsEditable
10467 @DomName('DOMFileSystem.name')
9826 final String name; 10468 final String name;
9827 10469
9828 @DocsEditable @DomName('DOMFileSystem.root') 10470 @DocsEditable
10471 @DomName('DOMFileSystem.root')
9829 final DirectoryEntry root; 10472 final DirectoryEntry root;
9830 } 10473 }
9831 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9832 // for details. All rights reserved. Use of this source code is governed by a 10475 // for details. All rights reserved. Use of this source code is governed by a
9833 // BSD-style license that can be found in the LICENSE file. 10476 // BSD-style license that can be found in the LICENSE file.
9834 10477
9835 // WARNING: Do not edit - generated code. 10478 // WARNING: Do not edit - generated code.
9836 10479
9837 10480
9838 typedef void FileSystemCallback(FileSystem fileSystem); 10481 typedef void FileSystemCallback(FileSystem fileSystem);
9839 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9840 // for details. All rights reserved. Use of this source code is governed by a 10483 // for details. All rights reserved. Use of this source code is governed by a
9841 // BSD-style license that can be found in the LICENSE file. 10484 // BSD-style license that can be found in the LICENSE file.
9842 10485
9843 10486
9844 10487
9845 @DocsEditable 10488 @DocsEditable
9846 @DomName('DOMFileSystemSync') 10489 @DomName('DOMFileSystemSync')
9847 class FileSystemSync native "*DOMFileSystemSync" { 10490 class FileSystemSync native "*DOMFileSystemSync" {
9848 10491
9849 @DocsEditable @DomName('DOMFileSystemSync.name') 10492 @DocsEditable
10493 @DomName('DOMFileSystemSync.name')
9850 final String name; 10494 final String name;
9851 10495
9852 @DocsEditable @DomName('DOMFileSystemSync.root') 10496 @DocsEditable
10497 @DomName('DOMFileSystemSync.root')
9853 final DirectoryEntrySync root; 10498 final DirectoryEntrySync root;
9854 } 10499 }
9855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9856 // for details. All rights reserved. Use of this source code is governed by a 10501 // for details. All rights reserved. Use of this source code is governed by a
9857 // BSD-style license that can be found in the LICENSE file. 10502 // BSD-style license that can be found in the LICENSE file.
9858 10503
9859 10504
9860 10505
9861 @DocsEditable 10506 @DocsEditable
9862 @DomName('FileWriter') 10507 @DomName('FileWriter')
(...skipping 15 matching lines...) Expand all
9878 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 10523 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
9879 FileWriterEvents get on => 10524 FileWriterEvents get on =>
9880 new FileWriterEvents(this); 10525 new FileWriterEvents(this);
9881 10526
9882 static const int DONE = 2; 10527 static const int DONE = 2;
9883 10528
9884 static const int INIT = 0; 10529 static const int INIT = 0;
9885 10530
9886 static const int WRITING = 1; 10531 static const int WRITING = 1;
9887 10532
9888 @DocsEditable @DomName('FileWriter.error') 10533 @DocsEditable
10534 @DomName('FileWriter.error')
9889 final FileError error; 10535 final FileError error;
9890 10536
9891 @DocsEditable @DomName('FileWriter.length') 10537 @DocsEditable
10538 @DomName('FileWriter.length')
9892 final int length; 10539 final int length;
9893 10540
9894 @DocsEditable @DomName('FileWriter.position') 10541 @DocsEditable
10542 @DomName('FileWriter.position')
9895 final int position; 10543 final int position;
9896 10544
9897 @DocsEditable @DomName('FileWriter.readyState') 10545 @DocsEditable
10546 @DomName('FileWriter.readyState')
9898 final int readyState; 10547 final int readyState;
9899 10548
9900 @DocsEditable @DomName('FileWriter.abort') 10549 @DocsEditable
10550 @DomName('FileWriter.abort')
9901 void abort() native; 10551 void abort() native;
9902 10552
9903 @JSName('addEventListener') 10553 @JSName('addEventListener')
9904 @DocsEditable @DomName('FileWriter.addEventListener') 10554 @DocsEditable
10555 @DomName('FileWriter.addEventListener')
9905 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 10556 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
9906 10557
9907 @JSName('dispatchEvent') 10558 @JSName('dispatchEvent')
9908 @DocsEditable @DomName('FileWriter.dispatchEvent') 10559 @DocsEditable
10560 @DomName('FileWriter.dispatchEvent')
9909 bool $dom_dispatchEvent(Event evt) native; 10561 bool $dom_dispatchEvent(Event evt) native;
9910 10562
9911 @JSName('removeEventListener') 10563 @JSName('removeEventListener')
9912 @DocsEditable @DomName('FileWriter.removeEventListener') 10564 @DocsEditable
10565 @DomName('FileWriter.removeEventListener')
9913 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 10566 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
9914 10567
9915 @DocsEditable @DomName('FileWriter.seek') 10568 @DocsEditable
10569 @DomName('FileWriter.seek')
9916 void seek(int position) native; 10570 void seek(int position) native;
9917 10571
9918 @DocsEditable @DomName('FileWriter.truncate') 10572 @DocsEditable
10573 @DomName('FileWriter.truncate')
9919 void truncate(int size) native; 10574 void truncate(int size) native;
9920 10575
9921 @DocsEditable @DomName('FileWriter.write') 10576 @DocsEditable
10577 @DomName('FileWriter.write')
9922 void write(Blob data) native; 10578 void write(Blob data) native;
9923 10579
9924 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); 10580 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this);
9925 10581
9926 Stream<Event> get onError => errorEvent.forTarget(this); 10582 Stream<Event> get onError => errorEvent.forTarget(this);
9927 10583
9928 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); 10584 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this);
9929 10585
9930 Stream<ProgressEvent> get onWrite => writeEvent.forTarget(this); 10586 Stream<ProgressEvent> get onWrite => writeEvent.forTarget(this);
9931 10587
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
9968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9969 // for details. All rights reserved. Use of this source code is governed by a 10625 // for details. All rights reserved. Use of this source code is governed by a
9970 // BSD-style license that can be found in the LICENSE file. 10626 // BSD-style license that can be found in the LICENSE file.
9971 10627
9972 10628
9973 10629
9974 @DocsEditable 10630 @DocsEditable
9975 @DomName('FileWriterSync') 10631 @DomName('FileWriterSync')
9976 class FileWriterSync native "*FileWriterSync" { 10632 class FileWriterSync native "*FileWriterSync" {
9977 10633
9978 @DocsEditable @DomName('FileWriterSync.length') 10634 @DocsEditable
10635 @DomName('FileWriterSync.length')
9979 final int length; 10636 final int length;
9980 10637
9981 @DocsEditable @DomName('FileWriterSync.position') 10638 @DocsEditable
10639 @DomName('FileWriterSync.position')
9982 final int position; 10640 final int position;
9983 10641
9984 @DocsEditable @DomName('FileWriterSync.seek') 10642 @DocsEditable
10643 @DomName('FileWriterSync.seek')
9985 void seek(int position) native; 10644 void seek(int position) native;
9986 10645
9987 @DocsEditable @DomName('FileWriterSync.truncate') 10646 @DocsEditable
10647 @DomName('FileWriterSync.truncate')
9988 void truncate(int size) native; 10648 void truncate(int size) native;
9989 10649
9990 @DocsEditable @DomName('FileWriterSync.write') 10650 @DocsEditable
10651 @DomName('FileWriterSync.write')
9991 void write(Blob data) native; 10652 void write(Blob data) native;
9992 } 10653 }
9993 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9994 // for details. All rights reserved. Use of this source code is governed by a 10655 // for details. All rights reserved. Use of this source code is governed by a
9995 // BSD-style license that can be found in the LICENSE file. 10656 // BSD-style license that can be found in the LICENSE file.
9996 10657
9997 10658
9998 10659
9999 @DocsEditable 10660 @DocsEditable
10000 @DomName('Float32Array') 10661 @DomName('Float32Array')
10001 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float32Array" { 10662 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float32Array" {
10002 10663
10003 factory Float32Array(int length) => 10664 factory Float32Array(int length) =>
10004 _TypedArrayFactoryProvider.createFloat32Array(length); 10665 _TypedArrayFactoryProvider.createFloat32Array(length);
10005 10666
10006 factory Float32Array.fromList(List<num> list) => 10667 factory Float32Array.fromList(List<num> list) =>
10007 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); 10668 _TypedArrayFactoryProvider.createFloat32Array_fromList(list);
10008 10669
10009 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 10670 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
10010 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); 10671 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length);
10011 10672
10012 static const int BYTES_PER_ELEMENT = 4; 10673 static const int BYTES_PER_ELEMENT = 4;
10013 10674
10014 @DocsEditable @DomName('Float32Array.length') 10675 @DocsEditable
10676 @DomName('Float32Array.length')
10015 int get length => JS("int", "#.length", this); 10677 int get length => JS("int", "#.length", this);
10016 10678
10017 num operator[](int index) => JS("num", "#[#]", this, index); 10679 num operator[](int index) => JS("num", "#[#]", this, index);
10018 10680
10019 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins. 10681 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
10020 // num is the element type. 10682 // num is the element type.
10021 10683
10022 // From Iterable<num>: 10684 // From Iterable<num>:
10023 10685
10024 Iterator<num> get iterator { 10686 Iterator<num> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
10153 void insertRange(int start, int rangeLength, [num initialValue]) { 10815 void insertRange(int start, int rangeLength, [num initialValue]) {
10154 throw new UnsupportedError("Cannot insertRange on immutable List."); 10816 throw new UnsupportedError("Cannot insertRange on immutable List.");
10155 } 10817 }
10156 10818
10157 List<num> getRange(int start, int rangeLength) => 10819 List<num> getRange(int start, int rangeLength) =>
10158 Lists.getRange(this, start, rangeLength, <num>[]); 10820 Lists.getRange(this, start, rangeLength, <num>[]);
10159 10821
10160 // -- end List<num> mixins. 10822 // -- end List<num> mixins.
10161 10823
10162 @JSName('set') 10824 @JSName('set')
10163 @DocsEditable @DomName('Float32Array.set') 10825 @DocsEditable
10826 @DomName('Float32Array.set')
10164 void setElements(Object array, [int offset]) native; 10827 void setElements(Object array, [int offset]) native;
10165 10828
10166 @DocsEditable @DomName('Float32Array.subarray') 10829 @DocsEditable
10830 @DomName('Float32Array.subarray')
10167 Float32Array subarray(int start, [int end]) native; 10831 Float32Array subarray(int start, [int end]) native;
10168 } 10832 }
10169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10170 // for details. All rights reserved. Use of this source code is governed by a 10834 // for details. All rights reserved. Use of this source code is governed by a
10171 // BSD-style license that can be found in the LICENSE file. 10835 // BSD-style license that can be found in the LICENSE file.
10172 10836
10173 10837
10174 10838
10175 @DocsEditable 10839 @DocsEditable
10176 @DomName('Float64Array') 10840 @DomName('Float64Array')
10177 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float64Array" { 10841 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float64Array" {
10178 10842
10179 factory Float64Array(int length) => 10843 factory Float64Array(int length) =>
10180 _TypedArrayFactoryProvider.createFloat64Array(length); 10844 _TypedArrayFactoryProvider.createFloat64Array(length);
10181 10845
10182 factory Float64Array.fromList(List<num> list) => 10846 factory Float64Array.fromList(List<num> list) =>
10183 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); 10847 _TypedArrayFactoryProvider.createFloat64Array_fromList(list);
10184 10848
10185 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 10849 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
10186 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); 10850 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length);
10187 10851
10188 static const int BYTES_PER_ELEMENT = 8; 10852 static const int BYTES_PER_ELEMENT = 8;
10189 10853
10190 @DocsEditable @DomName('Float64Array.length') 10854 @DocsEditable
10855 @DomName('Float64Array.length')
10191 int get length => JS("int", "#.length", this); 10856 int get length => JS("int", "#.length", this);
10192 10857
10193 num operator[](int index) => JS("num", "#[#]", this, index); 10858 num operator[](int index) => JS("num", "#[#]", this, index);
10194 10859
10195 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins. 10860 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
10196 // num is the element type. 10861 // num is the element type.
10197 10862
10198 // From Iterable<num>: 10863 // From Iterable<num>:
10199 10864
10200 Iterator<num> get iterator { 10865 Iterator<num> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
10329 void insertRange(int start, int rangeLength, [num initialValue]) { 10994 void insertRange(int start, int rangeLength, [num initialValue]) {
10330 throw new UnsupportedError("Cannot insertRange on immutable List."); 10995 throw new UnsupportedError("Cannot insertRange on immutable List.");
10331 } 10996 }
10332 10997
10333 List<num> getRange(int start, int rangeLength) => 10998 List<num> getRange(int start, int rangeLength) =>
10334 Lists.getRange(this, start, rangeLength, <num>[]); 10999 Lists.getRange(this, start, rangeLength, <num>[]);
10335 11000
10336 // -- end List<num> mixins. 11001 // -- end List<num> mixins.
10337 11002
10338 @JSName('set') 11003 @JSName('set')
10339 @DocsEditable @DomName('Float64Array.set') 11004 @DocsEditable
11005 @DomName('Float64Array.set')
10340 void setElements(Object array, [int offset]) native; 11006 void setElements(Object array, [int offset]) native;
10341 11007
10342 @DocsEditable @DomName('Float64Array.subarray') 11008 @DocsEditable
11009 @DomName('Float64Array.subarray')
10343 Float64Array subarray(int start, [int end]) native; 11010 Float64Array subarray(int start, [int end]) native;
10344 } 11011 }
10345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10346 // for details. All rights reserved. Use of this source code is governed by a 11013 // for details. All rights reserved. Use of this source code is governed by a
10347 // BSD-style license that can be found in the LICENSE file. 11014 // BSD-style license that can be found in the LICENSE file.
10348 11015
10349 11016
10350 11017
10351 @DocsEditable 11018 @DocsEditable
10352 @DomName('FormData') 11019 @DomName('FormData')
10353 class FormData native "*FormData" { 11020 class FormData native "*FormData" {
10354 11021
10355 @DocsEditable 11022 @DocsEditable
10356 factory FormData([FormElement form]) { 11023 factory FormData([FormElement form]) {
10357 if (!?form) { 11024 if (!?form) {
10358 return FormData._create(); 11025 return FormData._create();
10359 } 11026 }
10360 return FormData._create(form); 11027 return FormData._create(form);
10361 } 11028 }
10362 static FormData _create([FormElement form]) { 11029 static FormData _create([FormElement form]) {
10363 if (!?form) { 11030 if (!?form) {
10364 return JS('FormData', 'new FormData()'); 11031 return JS('FormData', 'new FormData()');
10365 } 11032 }
10366 return JS('FormData', 'new FormData(#)', form); 11033 return JS('FormData', 'new FormData(#)', form);
10367 } 11034 }
10368 11035
10369 @DocsEditable @DomName('DOMFormData.append') 11036 @DocsEditable
11037 @DomName('DOMFormData.append')
10370 void append(String name, value, [String filename]) native; 11038 void append(String name, value, [String filename]) native;
10371 } 11039 }
10372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10373 // for details. All rights reserved. Use of this source code is governed by a 11041 // for details. All rights reserved. Use of this source code is governed by a
10374 // BSD-style license that can be found in the LICENSE file. 11042 // BSD-style license that can be found in the LICENSE file.
10375 11043
10376 11044
10377 11045
10378 @DocsEditable 11046 @DocsEditable
10379 @DomName('HTMLFormElement') 11047 @DomName('HTMLFormElement')
10380 class FormElement extends Element native "*HTMLFormElement" { 11048 class FormElement extends Element native "*HTMLFormElement" {
10381 11049
10382 @DocsEditable 11050 @DocsEditable
10383 factory FormElement() => document.$dom_createElement("form"); 11051 factory FormElement() => document.$dom_createElement("form");
10384 11052
10385 @DocsEditable @DomName('HTMLFormElement.acceptCharset') 11053 @DocsEditable
11054 @DomName('HTMLFormElement.acceptCharset')
10386 String acceptCharset; 11055 String acceptCharset;
10387 11056
10388 @DocsEditable @DomName('HTMLFormElement.action') 11057 @DocsEditable
11058 @DomName('HTMLFormElement.action')
10389 String action; 11059 String action;
10390 11060
10391 @DocsEditable @DomName('HTMLFormElement.autocomplete') 11061 @DocsEditable
11062 @DomName('HTMLFormElement.autocomplete')
10392 String autocomplete; 11063 String autocomplete;
10393 11064
10394 @DocsEditable @DomName('HTMLFormElement.encoding') 11065 @DocsEditable
11066 @DomName('HTMLFormElement.encoding')
10395 String encoding; 11067 String encoding;
10396 11068
10397 @DocsEditable @DomName('HTMLFormElement.enctype') 11069 @DocsEditable
11070 @DomName('HTMLFormElement.enctype')
10398 String enctype; 11071 String enctype;
10399 11072
10400 @DocsEditable @DomName('HTMLFormElement.length') 11073 @DocsEditable
11074 @DomName('HTMLFormElement.length')
10401 final int length; 11075 final int length;
10402 11076
10403 @DocsEditable @DomName('HTMLFormElement.method') 11077 @DocsEditable
11078 @DomName('HTMLFormElement.method')
10404 String method; 11079 String method;
10405 11080
10406 @DocsEditable @DomName('HTMLFormElement.name') 11081 @DocsEditable
11082 @DomName('HTMLFormElement.name')
10407 String name; 11083 String name;
10408 11084
10409 @DocsEditable @DomName('HTMLFormElement.noValidate') 11085 @DocsEditable
11086 @DomName('HTMLFormElement.noValidate')
10410 bool noValidate; 11087 bool noValidate;
10411 11088
10412 @DocsEditable @DomName('HTMLFormElement.target') 11089 @DocsEditable
11090 @DomName('HTMLFormElement.target')
10413 String target; 11091 String target;
10414 11092
10415 @DocsEditable @DomName('HTMLFormElement.checkValidity') 11093 @DocsEditable
11094 @DomName('HTMLFormElement.checkValidity')
10416 bool checkValidity() native; 11095 bool checkValidity() native;
10417 11096
10418 @DocsEditable @DomName('HTMLFormElement.reset') 11097 @DocsEditable
11098 @DomName('HTMLFormElement.reset')
10419 void reset() native; 11099 void reset() native;
10420 11100
10421 @DocsEditable @DomName('HTMLFormElement.submit') 11101 @DocsEditable
11102 @DomName('HTMLFormElement.submit')
10422 void submit() native; 11103 void submit() native;
10423 } 11104 }
10424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10425 // for details. All rights reserved. Use of this source code is governed by a 11106 // for details. All rights reserved. Use of this source code is governed by a
10426 // BSD-style license that can be found in the LICENSE file. 11107 // BSD-style license that can be found in the LICENSE file.
10427 11108
10428 11109
10429 11110
10430 @DocsEditable 11111 @DocsEditable
10431 @DomName('Gamepad') 11112 @DomName('Gamepad')
10432 class Gamepad native "*Gamepad" { 11113 class Gamepad native "*Gamepad" {
10433 11114
10434 @DocsEditable @DomName('Gamepad.axes') 11115 @DocsEditable
11116 @DomName('Gamepad.axes')
10435 final List<num> axes; 11117 final List<num> axes;
10436 11118
10437 @DocsEditable @DomName('Gamepad.buttons') 11119 @DocsEditable
11120 @DomName('Gamepad.buttons')
10438 final List<num> buttons; 11121 final List<num> buttons;
10439 11122
10440 @DocsEditable @DomName('Gamepad.id') 11123 @DocsEditable
11124 @DomName('Gamepad.id')
10441 final String id; 11125 final String id;
10442 11126
10443 @DocsEditable @DomName('Gamepad.index') 11127 @DocsEditable
11128 @DomName('Gamepad.index')
10444 final int index; 11129 final int index;
10445 11130
10446 @DocsEditable @DomName('Gamepad.timestamp') 11131 @DocsEditable
11132 @DomName('Gamepad.timestamp')
10447 final int timestamp; 11133 final int timestamp;
10448 } 11134 }
10449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10450 // for details. All rights reserved. Use of this source code is governed by a 11136 // for details. All rights reserved. Use of this source code is governed by a
10451 // BSD-style license that can be found in the LICENSE file. 11137 // BSD-style license that can be found in the LICENSE file.
10452 11138
10453 11139
10454 11140
10455 @DocsEditable 11141 @DocsEditable
10456 @DomName('Geolocation') 11142 @DomName('Geolocation')
10457 class Geolocation native "*Geolocation" { 11143 class Geolocation native "*Geolocation" {
10458 11144
10459 @DocsEditable @DomName('Geolocation.clearWatch') 11145 @DocsEditable
11146 @DomName('Geolocation.clearWatch')
10460 void clearWatch(int watchId) native; 11147 void clearWatch(int watchId) native;
10461 11148
10462 @DocsEditable @DomName('Geolocation.getCurrentPosition') 11149 @DocsEditable
11150 @DomName('Geolocation.getCurrentPosition')
10463 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback, Object options]) native; 11151 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback, Object options]) native;
10464 11152
10465 @DocsEditable @DomName('Geolocation.watchPosition') 11153 @DocsEditable
11154 @DomName('Geolocation.watchPosition')
10466 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback, Object options]) native; 11155 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback, Object options]) native;
10467 } 11156 }
10468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10469 // for details. All rights reserved. Use of this source code is governed by a 11158 // for details. All rights reserved. Use of this source code is governed by a
10470 // BSD-style license that can be found in the LICENSE file. 11159 // BSD-style license that can be found in the LICENSE file.
10471 11160
10472 11161
10473 11162
10474 @DocsEditable 11163 @DocsEditable
10475 @DomName('Geoposition') 11164 @DomName('Geoposition')
10476 class Geoposition native "*Geoposition" { 11165 class Geoposition native "*Geoposition" {
10477 11166
10478 @DocsEditable @DomName('Geoposition.coords') 11167 @DocsEditable
11168 @DomName('Geoposition.coords')
10479 final Coordinates coords; 11169 final Coordinates coords;
10480 11170
10481 @DocsEditable @DomName('Geoposition.timestamp') 11171 @DocsEditable
11172 @DomName('Geoposition.timestamp')
10482 final int timestamp; 11173 final int timestamp;
10483 } 11174 }
10484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10485 // for details. All rights reserved. Use of this source code is governed by a 11176 // for details. All rights reserved. Use of this source code is governed by a
10486 // BSD-style license that can be found in the LICENSE file. 11177 // BSD-style license that can be found in the LICENSE file.
10487 11178
10488 11179
10489 11180
10490 @DocsEditable 11181 @DocsEditable
10491 @DomName('HTMLHRElement') 11182 @DomName('HTMLHRElement')
10492 class HRElement extends Element native "*HTMLHRElement" { 11183 class HRElement extends Element native "*HTMLHRElement" {
10493 11184
10494 @DocsEditable 11185 @DocsEditable
10495 factory HRElement() => document.$dom_createElement("hr"); 11186 factory HRElement() => document.$dom_createElement("hr");
10496 } 11187 }
10497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10498 // for details. All rights reserved. Use of this source code is governed by a 11189 // for details. All rights reserved. Use of this source code is governed by a
10499 // BSD-style license that can be found in the LICENSE file. 11190 // BSD-style license that can be found in the LICENSE file.
10500 11191
10501 11192
10502 11193
10503 @DocsEditable 11194 @DocsEditable
10504 @DomName('HashChangeEvent') 11195 @DomName('HashChangeEvent')
10505 class HashChangeEvent extends Event native "*HashChangeEvent" { 11196 class HashChangeEvent extends Event native "*HashChangeEvent" {
10506 11197
10507 @JSName('newURL') 11198 @JSName('newURL')
10508 @DocsEditable @DomName('HashChangeEvent.newURL') 11199 @DocsEditable
11200 @DomName('HashChangeEvent.newURL')
10509 final String newUrl; 11201 final String newUrl;
10510 11202
10511 @JSName('oldURL') 11203 @JSName('oldURL')
10512 @DocsEditable @DomName('HashChangeEvent.oldURL') 11204 @DocsEditable
11205 @DomName('HashChangeEvent.oldURL')
10513 final String oldUrl; 11206 final String oldUrl;
10514 11207
10515 @DocsEditable @DomName('HashChangeEvent.initHashChangeEvent') 11208 @DocsEditable
11209 @DomName('HashChangeEvent.initHashChangeEvent')
10516 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; 11210 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
10517 } 11211 }
10518 // 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
10519 // 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
10520 // BSD-style license that can be found in the LICENSE file. 11214 // BSD-style license that can be found in the LICENSE file.
10521 11215
10522 11216
10523 11217
10524 @DocsEditable 11218 @DocsEditable
10525 @DomName('HTMLHeadElement') 11219 @DomName('HTMLHeadElement')
(...skipping 28 matching lines...) Expand all
10554 factory HeadingElement.h5() => document.$dom_createElement("h5"); 11248 factory HeadingElement.h5() => document.$dom_createElement("h5");
10555 11249
10556 @DocsEditable 11250 @DocsEditable
10557 factory HeadingElement.h6() => document.$dom_createElement("h6"); 11251 factory HeadingElement.h6() => document.$dom_createElement("h6");
10558 } 11252 }
10559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10560 // for details. All rights reserved. Use of this source code is governed by a 11254 // for details. All rights reserved. Use of this source code is governed by a
10561 // BSD-style license that can be found in the LICENSE file. 11255 // BSD-style license that can be found in the LICENSE file.
10562 11256
10563 11257
10564
10565 @DocsEditable 11258 @DocsEditable
10566 @DomName('History') 11259 @DomName('History')
10567 class History implements HistoryBase native "*History" { 11260 class History implements HistoryBase native "*History" {
10568 11261
10569 /** 11262 /**
10570 * Checks if the State APIs are supported on the current platform. 11263 * Checks if the State APIs are supported on the current platform.
10571 * 11264 *
10572 * See also: 11265 * See also:
10573 * 11266 *
10574 * * [pushState] 11267 * * [pushState]
10575 * * [replaceState] 11268 * * [replaceState]
10576 * * [state] 11269 * * [state]
10577 */ 11270 */
10578 static bool get supportsState => JS('bool', '!!window.history.pushState'); 11271 static bool get supportsState => JS('bool', '!!window.history.pushState');
10579 11272
10580 @DocsEditable @DomName('History.length') 11273 @DocsEditable
11274 @DomName('History.length')
10581 final int length; 11275 final int length;
10582 11276
10583 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); 11277 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state);
10584 @JSName('state') 11278 @JSName('state')
10585 @DocsEditable @DomName('History.state') @annotation_Creates_SerializedScriptVa lue @annotation_Returns_SerializedScriptValue 11279 @DocsEditable
11280 @DomName('History.state')
11281 @annotation_Creates_SerializedScriptValue
11282 @annotation_Returns_SerializedScriptValue
10586 final dynamic _state; 11283 final dynamic _state;
10587 11284
10588 @DocsEditable @DomName('History.back') 11285 @DocsEditable
11286 @DomName('History.back')
10589 void back() native; 11287 void back() native;
10590 11288
10591 @DocsEditable @DomName('History.forward') 11289 @DocsEditable
11290 @DomName('History.forward')
10592 void forward() native; 11291 void forward() native;
10593 11292
10594 @DocsEditable @DomName('History.go') 11293 @DocsEditable
11294 @DomName('History.go')
10595 void go(int distance) native; 11295 void go(int distance) native;
10596 11296
10597 @DocsEditable @DomName('History.pushState') @SupportedBrowser(SupportedBrowser .CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(Supported Browser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) 11297 @DocsEditable
11298 @DomName('History.pushState')
11299 @SupportedBrowser(SupportedBrowser.CHROME)
11300 @SupportedBrowser(SupportedBrowser.FIREFOX)
11301 @SupportedBrowser(SupportedBrowser.IE, '10')
11302 @SupportedBrowser(SupportedBrowser.SAFARI)
10598 void pushState(Object data, String title, [String url]) native; 11303 void pushState(Object data, String title, [String url]) native;
10599 11304
10600 @DocsEditable @DomName('History.replaceState') @SupportedBrowser(SupportedBrow ser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(Suppor tedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) 11305 @DocsEditable
11306 @DomName('History.replaceState')
11307 @SupportedBrowser(SupportedBrowser.CHROME)
11308 @SupportedBrowser(SupportedBrowser.FIREFOX)
11309 @SupportedBrowser(SupportedBrowser.IE, '10')
11310 @SupportedBrowser(SupportedBrowser.SAFARI)
10601 void replaceState(Object data, String title, [String url]) native; 11311 void replaceState(Object data, String title, [String url]) native;
10602 } 11312 }
10603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10604 // for details. All rights reserved. Use of this source code is governed by a 11314 // for details. All rights reserved. Use of this source code is governed by a
10605 // BSD-style license that can be found in the LICENSE file. 11315 // BSD-style license that can be found in the LICENSE file.
10606 11316
10607 11317
10608 11318
10609 @DocsEditable 11319 @DocsEditable
10610 @DomName('HTMLAllCollection') 11320 @DomName('HTMLAllCollection')
10611 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { 11321 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" {
10612 11322
10613 @DocsEditable @DomName('HTMLAllCollection.length') 11323 @DocsEditable
11324 @DomName('HTMLAllCollection.length')
10614 int get length => JS("int", "#.length", this); 11325 int get length => JS("int", "#.length", this);
10615 11326
10616 Node operator[](int index) => JS("Node", "#[#]", this, index); 11327 Node operator[](int index) => JS("Node", "#[#]", this, index);
10617 11328
10618 void operator[]=(int index, Node value) { 11329 void operator[]=(int index, Node value) {
10619 throw new UnsupportedError("Cannot assign element of immutable List."); 11330 throw new UnsupportedError("Cannot assign element of immutable List.");
10620 } 11331 }
10621 // -- start List<Node> mixins. 11332 // -- start List<Node> mixins.
10622 // Node is the element type. 11333 // Node is the element type.
10623 11334
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
10754 11465
10755 void insertRange(int start, int rangeLength, [Node initialValue]) { 11466 void insertRange(int start, int rangeLength, [Node initialValue]) {
10756 throw new UnsupportedError("Cannot insertRange on immutable List."); 11467 throw new UnsupportedError("Cannot insertRange on immutable List.");
10757 } 11468 }
10758 11469
10759 List<Node> getRange(int start, int rangeLength) => 11470 List<Node> getRange(int start, int rangeLength) =>
10760 Lists.getRange(this, start, rangeLength, <Node>[]); 11471 Lists.getRange(this, start, rangeLength, <Node>[]);
10761 11472
10762 // -- end List<Node> mixins. 11473 // -- end List<Node> mixins.
10763 11474
10764 @DocsEditable @DomName('HTMLAllCollection.item') 11475 @DocsEditable
11476 @DomName('HTMLAllCollection.item')
10765 Node item(int index) native; 11477 Node item(int index) native;
10766 11478
10767 @DocsEditable @DomName('HTMLAllCollection.namedItem') 11479 @DocsEditable
11480 @DomName('HTMLAllCollection.namedItem')
10768 Node namedItem(String name) native; 11481 Node namedItem(String name) native;
10769 11482
10770 @DocsEditable @DomName('HTMLAllCollection.tags') 11483 @DocsEditable
10771 @Returns('NodeList') @Creates('NodeList') 11484 @DomName('HTMLAllCollection.tags')
11485 @Returns('NodeList')
11486 @Creates('NodeList')
10772 List<Node> tags(String name) native; 11487 List<Node> tags(String name) native;
10773 } 11488 }
10774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10775 // for details. All rights reserved. Use of this source code is governed by a 11490 // for details. All rights reserved. Use of this source code is governed by a
10776 // BSD-style license that can be found in the LICENSE file. 11491 // BSD-style license that can be found in the LICENSE file.
10777 11492
10778 11493
10779 11494
10780 @DocsEditable 11495 @DocsEditable
10781 @DomName('HTMLCollection') 11496 @DomName('HTMLCollection')
10782 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" { 11497 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" {
10783 11498
10784 @DocsEditable @DomName('HTMLCollection.length') 11499 @DocsEditable
11500 @DomName('HTMLCollection.length')
10785 int get length => JS("int", "#.length", this); 11501 int get length => JS("int", "#.length", this);
10786 11502
10787 Node operator[](int index) => JS("Node", "#[#]", this, index); 11503 Node operator[](int index) => JS("Node", "#[#]", this, index);
10788 11504
10789 void operator[]=(int index, Node value) { 11505 void operator[]=(int index, Node value) {
10790 throw new UnsupportedError("Cannot assign element of immutable List."); 11506 throw new UnsupportedError("Cannot assign element of immutable List.");
10791 } 11507 }
10792 // -- start List<Node> mixins. 11508 // -- start List<Node> mixins.
10793 // Node is the element type. 11509 // Node is the element type.
10794 11510
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
10925 11641
10926 void insertRange(int start, int rangeLength, [Node initialValue]) { 11642 void insertRange(int start, int rangeLength, [Node initialValue]) {
10927 throw new UnsupportedError("Cannot insertRange on immutable List."); 11643 throw new UnsupportedError("Cannot insertRange on immutable List.");
10928 } 11644 }
10929 11645
10930 List<Node> getRange(int start, int rangeLength) => 11646 List<Node> getRange(int start, int rangeLength) =>
10931 Lists.getRange(this, start, rangeLength, <Node>[]); 11647 Lists.getRange(this, start, rangeLength, <Node>[]);
10932 11648
10933 // -- end List<Node> mixins. 11649 // -- end List<Node> mixins.
10934 11650
10935 @DocsEditable @DomName('HTMLCollection.item') 11651 @DocsEditable
11652 @DomName('HTMLCollection.item')
10936 Node item(int index) native; 11653 Node item(int index) native;
10937 11654
10938 @DocsEditable @DomName('HTMLCollection.namedItem') 11655 @DocsEditable
11656 @DomName('HTMLCollection.namedItem')
10939 Node namedItem(String name) native; 11657 Node namedItem(String name) native;
10940 } 11658 }
10941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10942 // for details. All rights reserved. Use of this source code is governed by a 11660 // for details. All rights reserved. Use of this source code is governed by a
10943 // BSD-style license that can be found in the LICENSE file. 11661 // BSD-style license that can be found in the LICENSE file.
10944 11662
10945 // WARNING: Do not edit - generated code. 11663 // WARNING: Do not edit - generated code.
10946 11664
10947 11665
10948 @DocsEditable 11666 @DocsEditable
10949 @DomName('HTMLDocument') 11667 @DomName('HTMLDocument')
10950 class HtmlDocument extends Document native "*HTMLDocument" { 11668 class HtmlDocument extends Document native "*HTMLDocument" {
10951 11669
10952 @DocsEditable @DomName('HTMLDocument.activeElement') 11670 @DocsEditable
11671 @DomName('HTMLDocument.activeElement')
10953 final Element activeElement; 11672 final Element activeElement;
10954 11673
10955 @DomName('Document.body') 11674 @DomName('Document.body')
10956 BodyElement get body => document.$dom_body; 11675 BodyElement get body => document.$dom_body;
10957 11676
10958 @DomName('Document.body') 11677 @DomName('Document.body')
10959 void set body(BodyElement value) { 11678 void set body(BodyElement value) {
10960 document.$dom_body = value; 11679 document.$dom_body = value;
10961 } 11680 }
10962 11681
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
11089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11090 // for details. All rights reserved. Use of this source code is governed by a 11809 // for details. All rights reserved. Use of this source code is governed by a
11091 // BSD-style license that can be found in the LICENSE file. 11810 // BSD-style license that can be found in the LICENSE file.
11092 11811
11093 11812
11094 11813
11095 @DocsEditable 11814 @DocsEditable
11096 @DomName('HTMLFormControlsCollection') 11815 @DomName('HTMLFormControlsCollection')
11097 class HtmlFormControlsCollection extends HtmlCollection native "*HTMLFormControl sCollection" { 11816 class HtmlFormControlsCollection extends HtmlCollection native "*HTMLFormControl sCollection" {
11098 11817
11099 @DocsEditable @DomName('HTMLFormControlsCollection.namedItem') 11818 @DocsEditable
11819 @DomName('HTMLFormControlsCollection.namedItem')
11100 Node namedItem(String name) native; 11820 Node namedItem(String name) native;
11101 } 11821 }
11102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11822 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11103 // for details. All rights reserved. Use of this source code is governed by a 11823 // for details. All rights reserved. Use of this source code is governed by a
11104 // BSD-style license that can be found in the LICENSE file. 11824 // BSD-style license that can be found in the LICENSE file.
11105 11825
11106 11826
11107 11827
11108 @DocsEditable 11828 @DocsEditable
11109 @DomName('HTMLOptionsCollection') 11829 @DomName('HTMLOptionsCollection')
11110 class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio n" { 11830 class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio n" {
11111 } 11831 }
11112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11113 // for details. All rights reserved. Use of this source code is governed by a 11833 // for details. All rights reserved. Use of this source code is governed by a
11114 // BSD-style license that can be found in the LICENSE file. 11834 // BSD-style license that can be found in the LICENSE file.
11115 11835
11116 11836
11117 /** 11837 /**
11118 * A utility for retrieving data from a URL. 11838 * A utility for retrieving data from a URL.
11119 * 11839 *
11120 * HttpRequest can be used to obtain data from http, ftp, and file 11840 * HttpRequest can be used to obtain data from http, ftp, and file
11121 * protocols. 11841 * protocols.
11122 * 11842 *
11123 * For example, suppose we're developing these API docs, and we 11843 * For example, suppose we're developing these API docs, and we
11124 * wish to retrieve the HTML of the top-level page and print it out. 11844 * wish to retrieve the HTML of the top-level page and print it out.
11125 * The easiest way to do that would be: 11845 * The easiest way to do that would be:
11126 * 11846 *
11127 * var httpRequest = HttpRequest.get('http://api.dartlang.org', 11847 * var httpRequest = HttpRequest.get('http://api.dartlang.org',
11128 * (request) => print(request.responseText)); 11848 * (request) => print(request.responseText));
11129 * 11849 *
11130 * **Important**: With the default behavior of this class, your 11850 * **Important**: With the default behavior of this class, your
11131 * code making the request should be served from the same origin (domain name, 11851 * code making the request should be served from the same origin (domain name,
11132 * port, and application layer protocol) as the URL you are trying to access 11852 * port, and application layer protocol) as the URL you are trying to access
11133 * with HttpRequest. However, there are ways to 11853 * with HttpRequest. However, there are ways to
11134 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi ce/#note-on-jsonp). 11854 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi ce/#note-on-jsonp).
11135 * 11855 *
11136 * See also: 11856 * See also:
11137 * 11857 *
11138 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json- web-service/#getting-data) 11858 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json- web-service/#getting-data)
11139 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq uest) 11859 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq uest)
11140 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp Request/Using_XMLHttpRequest) 11860 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp Request/Using_XMLHttpRequest)
11141 */ 11861 */
11862 @DocsEditable
11142 @DomName('XMLHttpRequest') 11863 @DomName('XMLHttpRequest')
11143 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 11864 class HttpRequest extends EventTarget native "*XMLHttpRequest" {
11144 /** 11865 /**
11145 * Creates a URL get request for the specified `url`. 11866 * Creates a URL get request for the specified `url`.
11146 * 11867 *
11147 * After completing the request, the object will call the user-provided 11868 * After completing the request, the object will call the user-provided
11148 * [onComplete] callback. 11869 * [onComplete] callback.
11149 */ 11870 */
11150 factory HttpRequest.get(String url, onComplete(HttpRequest request)) => 11871 factory HttpRequest.get(String url, onComplete(HttpRequest request)) =>
11151 _HttpRequestUtils.get(url, onComplete, false); 11872 _HttpRequestUtils.get(url, onComplete, false);
11152 11873
11153 // 80 char issue for comments in lists: dartbug.com/7588. 11874 // 80 char issue for comments in lists: dartbug.com/7588.
11154 /** 11875 /**
11155 * Creates a URL GET request for the specified `url` with 11876 * Creates a URL GET request for the specified `url` with
11156 * credentials such a cookie (already) set in the header or 11877 * credentials such a cookie (already) set in the header or
11157 * [authorization headers](http://tools.ietf.org/html/rfc1945#section-10.2). 11878 * [authorization headers](http://tools.ietf.org/html/rfc1945#section-10.2).
11158 * 11879 *
11159 * After completing the request, the object will call the user-provided 11880 * After completing the request, the object will call the user-provided
11160 * [onComplete] callback. 11881 * [onComplete] callback.
11161 * 11882 *
11162 * A few other details to keep in mind when using credentials: 11883 * A few other details to keep in mind when using credentials:
11163 * 11884 *
11164 * * Using credentials is only useful for cross-origin requests. 11885 * * Using credentials is only useful for cross-origin requests.
11165 * * The `Access-Control-Allow-Origin` header of `url` cannot contain a wildca rd (*). 11886 * * The `Access-Control-Allow-Origin` header of `url` cannot contain a wildca rd (*).
11166 * * The `Access-Control-Allow-Credentials` header of `url` must be set to tru e. 11887 * * The `Access-Control-Allow-Credentials` header of `url` must be set to tru e.
11167 * * If `Access-Control-Expose-Headers` has not been set to true, only a subse t of all the response headers will be returned when calling [getAllRequestHeader s]. 11888 * * If `Access-Control-Expose-Headers` has not been set to true, only a subse t of all the response headers will be returned when calling [getAllRequestHeader s].
11168 * 11889 *
11169 * See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access _authentication). 11890 * See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access _authentication).
11170 */ 11891 */
11171 factory HttpRequest.getWithCredentials(String url, 11892 factory HttpRequest.getWithCredentials(String url,
11172 onComplete(HttpRequest request)) => 11893 onComplete(HttpRequest request)) =>
11173 _HttpRequestUtils.get(url, onComplete, true); 11894 _HttpRequestUtils.get(url, onComplete, true);
11174 11895
11175 11896
11176 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 11897 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
11177 11898
11178 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error'); 11899 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error');
(...skipping 20 matching lines...) Expand all
11199 static const int DONE = 4; 11920 static const int DONE = 4;
11200 11921
11201 static const int HEADERS_RECEIVED = 2; 11922 static const int HEADERS_RECEIVED = 2;
11202 11923
11203 static const int LOADING = 3; 11924 static const int LOADING = 3;
11204 11925
11205 static const int OPENED = 1; 11926 static const int OPENED = 1;
11206 11927
11207 static const int UNSENT = 0; 11928 static const int UNSENT = 0;
11208 11929
11209 @DocsEditable @DomName('XMLHttpRequest.readyState') 11930 @DocsEditable
11931 @DomName('XMLHttpRequest.readyState')
11210 final int readyState; 11932 final int readyState;
11211 11933
11212 @DocsEditable @DomName('XMLHttpRequest.response') @Creates('ArrayBuffer|Blob|D ocument|=Object|=List|String|num') 11934 @DocsEditable
11935 @DomName('XMLHttpRequest.response')
11936 @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')
11213 final Object response; 11937 final Object response;
11214 11938
11215 @DocsEditable @DomName('XMLHttpRequest.responseText') 11939 @DocsEditable
11940 @DomName('XMLHttpRequest.responseText')
11216 final String responseText; 11941 final String responseText;
11217 11942
11218 @DocsEditable @DomName('XMLHttpRequest.responseType') 11943 @DocsEditable
11944 @DomName('XMLHttpRequest.responseType')
11219 String responseType; 11945 String responseType;
11220 11946
11221 @JSName('responseXML') 11947 @JSName('responseXML')
11222 @DocsEditable @DomName('XMLHttpRequest.responseXML') 11948 @DocsEditable
11949 @DomName('XMLHttpRequest.responseXML')
11223 final Document responseXml; 11950 final Document responseXml;
11224 11951
11225 @DocsEditable @DomName('XMLHttpRequest.status') 11952 @DocsEditable
11953 @DomName('XMLHttpRequest.status')
11226 final int status; 11954 final int status;
11227 11955
11228 @DocsEditable @DomName('XMLHttpRequest.statusText') 11956 @DocsEditable
11957 @DomName('XMLHttpRequest.statusText')
11229 final String statusText; 11958 final String statusText;
11230 11959
11231 @DocsEditable @DomName('XMLHttpRequest.upload') 11960 @DocsEditable
11961 @DomName('XMLHttpRequest.upload')
11232 final HttpRequestUpload upload; 11962 final HttpRequestUpload upload;
11233 11963
11234 @DocsEditable @DomName('XMLHttpRequest.withCredentials') 11964 @DocsEditable
11965 @DomName('XMLHttpRequest.withCredentials')
11235 bool withCredentials; 11966 bool withCredentials;
11236 11967
11237 @DocsEditable @DomName('XMLHttpRequest.abort') 11968 @DocsEditable
11969 @DomName('XMLHttpRequest.abort')
11238 void abort() native; 11970 void abort() native;
11239 11971
11240 @JSName('addEventListener') 11972 @JSName('addEventListener')
11241 @DocsEditable @DomName('XMLHttpRequest.addEventListener') 11973 @DocsEditable
11974 @DomName('XMLHttpRequest.addEventListener')
11242 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 11975 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
11243 11976
11244 @JSName('dispatchEvent') 11977 @JSName('dispatchEvent')
11245 @DocsEditable @DomName('XMLHttpRequest.dispatchEvent') 11978 @DocsEditable
11979 @DomName('XMLHttpRequest.dispatchEvent')
11246 bool $dom_dispatchEvent(Event evt) native; 11980 bool $dom_dispatchEvent(Event evt) native;
11247 11981
11248 @DocsEditable @DomName('XMLHttpRequest.getAllResponseHeaders') 11982 @DocsEditable
11983 @DomName('XMLHttpRequest.getAllResponseHeaders')
11249 String getAllResponseHeaders() native; 11984 String getAllResponseHeaders() native;
11250 11985
11251 @DocsEditable @DomName('XMLHttpRequest.getResponseHeader') 11986 @DocsEditable
11987 @DomName('XMLHttpRequest.getResponseHeader')
11252 String getResponseHeader(String header) native; 11988 String getResponseHeader(String header) native;
11253 11989
11254 @DocsEditable @DomName('XMLHttpRequest.open') 11990 @DocsEditable
11991 @DomName('XMLHttpRequest.open')
11255 void open(String method, String url, [bool async, String user, String password ]) native; 11992 void open(String method, String url, [bool async, String user, String password ]) native;
11256 11993
11257 @DocsEditable @DomName('XMLHttpRequest.overrideMimeType') 11994 @DocsEditable
11995 @DomName('XMLHttpRequest.overrideMimeType')
11258 void overrideMimeType(String override) native; 11996 void overrideMimeType(String override) native;
11259 11997
11260 @JSName('removeEventListener') 11998 @JSName('removeEventListener')
11261 @DocsEditable @DomName('XMLHttpRequest.removeEventListener') 11999 @DocsEditable
12000 @DomName('XMLHttpRequest.removeEventListener')
11262 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 12001 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
11263 12002
11264 @DocsEditable @DomName('XMLHttpRequest.send') 12003 @DocsEditable
12004 @DomName('XMLHttpRequest.send')
11265 void send([data]) native; 12005 void send([data]) native;
11266 12006
11267 @DocsEditable @DomName('XMLHttpRequest.setRequestHeader') 12007 @DocsEditable
12008 @DomName('XMLHttpRequest.setRequestHeader')
11268 void setRequestHeader(String header, String value) native; 12009 void setRequestHeader(String header, String value) native;
11269 12010
11270 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); 12011 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this);
11271 12012
11272 Stream<ProgressEvent> get onError => errorEvent.forTarget(this); 12013 Stream<ProgressEvent> get onError => errorEvent.forTarget(this);
11273 12014
11274 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); 12015 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this);
11275 12016
11276 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); 12017 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this);
11277 12018
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
11316 12057
11317 12058
11318 @DocsEditable 12059 @DocsEditable
11319 @DomName('XMLHttpRequestException') 12060 @DomName('XMLHttpRequestException')
11320 class HttpRequestException native "*XMLHttpRequestException" { 12061 class HttpRequestException native "*XMLHttpRequestException" {
11321 12062
11322 static const int ABORT_ERR = 102; 12063 static const int ABORT_ERR = 102;
11323 12064
11324 static const int NETWORK_ERR = 101; 12065 static const int NETWORK_ERR = 101;
11325 12066
11326 @DocsEditable @DomName('XMLHttpRequestException.code') 12067 @DocsEditable
12068 @DomName('XMLHttpRequestException.code')
11327 final int code; 12069 final int code;
11328 12070
11329 @DocsEditable @DomName('XMLHttpRequestException.message') 12071 @DocsEditable
12072 @DomName('XMLHttpRequestException.message')
11330 final String message; 12073 final String message;
11331 12074
11332 @DocsEditable @DomName('XMLHttpRequestException.name') 12075 @DocsEditable
12076 @DomName('XMLHttpRequestException.name')
11333 final String name; 12077 final String name;
11334 12078
11335 @DocsEditable @DomName('XMLHttpRequestException.toString') 12079 @DocsEditable
12080 @DomName('XMLHttpRequestException.toString')
11336 String toString() native; 12081 String toString() native;
11337 } 12082 }
11338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11339 // for details. All rights reserved. Use of this source code is governed by a 12084 // for details. All rights reserved. Use of this source code is governed by a
11340 // BSD-style license that can be found in the LICENSE file. 12085 // BSD-style license that can be found in the LICENSE file.
11341 12086
11342 12087
11343 12088
11344 @DocsEditable 12089 @DocsEditable
11345 @DomName('XMLHttpRequestProgressEvent') 12090 @DomName('XMLHttpRequestProgressEvent')
11346 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" { 12091 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" {
11347 12092
11348 @DocsEditable @DomName('XMLHttpRequestProgressEvent.position') 12093 @DocsEditable
12094 @DomName('XMLHttpRequestProgressEvent.position')
11349 final int position; 12095 final int position;
11350 12096
11351 @DocsEditable @DomName('XMLHttpRequestProgressEvent.totalSize') 12097 @DocsEditable
12098 @DomName('XMLHttpRequestProgressEvent.totalSize')
11352 final int totalSize; 12099 final int totalSize;
11353 } 12100 }
11354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11355 // for details. All rights reserved. Use of this source code is governed by a 12102 // for details. All rights reserved. Use of this source code is governed by a
11356 // BSD-style license that can be found in the LICENSE file. 12103 // BSD-style license that can be found in the LICENSE file.
11357 12104
11358 12105
11359 12106
11360 @DocsEditable 12107 @DocsEditable
11361 @DomName('XMLHttpRequestUpload') 12108 @DomName('XMLHttpRequestUpload')
(...skipping 10 matching lines...) Expand all
11372 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt reamProvider<ProgressEvent>('loadstart'); 12119 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt reamProvider<ProgressEvent>('loadstart');
11373 12120
11374 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr eamProvider<ProgressEvent>('progress'); 12121 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr eamProvider<ProgressEvent>('progress');
11375 12122
11376 @DocsEditable 12123 @DocsEditable
11377 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 12124 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
11378 HttpRequestUploadEvents get on => 12125 HttpRequestUploadEvents get on =>
11379 new HttpRequestUploadEvents(this); 12126 new HttpRequestUploadEvents(this);
11380 12127
11381 @JSName('addEventListener') 12128 @JSName('addEventListener')
11382 @DocsEditable @DomName('XMLHttpRequestUpload.addEventListener') 12129 @DocsEditable
12130 @DomName('XMLHttpRequestUpload.addEventListener')
11383 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 12131 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
11384 12132
11385 @JSName('dispatchEvent') 12133 @JSName('dispatchEvent')
11386 @DocsEditable @DomName('XMLHttpRequestUpload.dispatchEvent') 12134 @DocsEditable
12135 @DomName('XMLHttpRequestUpload.dispatchEvent')
11387 bool $dom_dispatchEvent(Event evt) native; 12136 bool $dom_dispatchEvent(Event evt) native;
11388 12137
11389 @JSName('removeEventListener') 12138 @JSName('removeEventListener')
11390 @DocsEditable @DomName('XMLHttpRequestUpload.removeEventListener') 12139 @DocsEditable
12140 @DomName('XMLHttpRequestUpload.removeEventListener')
11391 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 12141 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
11392 12142
11393 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); 12143 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this);
11394 12144
11395 Stream<ProgressEvent> get onError => errorEvent.forTarget(this); 12145 Stream<ProgressEvent> get onError => errorEvent.forTarget(this);
11396 12146
11397 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); 12147 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this);
11398 12148
11399 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); 12149 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this);
11400 12150
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
11434 12184
11435 @DocsEditable 12185 @DocsEditable
11436 @DomName('HTMLIFrameElement') 12186 @DomName('HTMLIFrameElement')
11437 class IFrameElement extends Element native "*HTMLIFrameElement" { 12187 class IFrameElement extends Element native "*HTMLIFrameElement" {
11438 12188
11439 @DocsEditable 12189 @DocsEditable
11440 factory IFrameElement() => document.$dom_createElement("iframe"); 12190 factory IFrameElement() => document.$dom_createElement("iframe");
11441 12191
11442 WindowBase get contentWindow => _convertNativeToDart_Window(this._contentWindo w); 12192 WindowBase get contentWindow => _convertNativeToDart_Window(this._contentWindo w);
11443 @JSName('contentWindow') 12193 @JSName('contentWindow')
11444 @DocsEditable @DomName('HTMLIFrameElement.contentWindow') @Creates('Window|=Ob ject') @Returns('Window|=Object') 12194 @DocsEditable
12195 @DomName('HTMLIFrameElement.contentWindow')
12196 @Creates('Window|=Object')
12197 @Returns('Window|=Object')
11445 final dynamic _contentWindow; 12198 final dynamic _contentWindow;
11446 12199
11447 @DocsEditable @DomName('HTMLIFrameElement.height') 12200 @DocsEditable
12201 @DomName('HTMLIFrameElement.height')
11448 String height; 12202 String height;
11449 12203
11450 @DocsEditable @DomName('HTMLIFrameElement.name') 12204 @DocsEditable
12205 @DomName('HTMLIFrameElement.name')
11451 String name; 12206 String name;
11452 12207
11453 @DocsEditable @DomName('HTMLIFrameElement.sandbox') 12208 @DocsEditable
12209 @DomName('HTMLIFrameElement.sandbox')
11454 String sandbox; 12210 String sandbox;
11455 12211
11456 @DocsEditable @DomName('HTMLIFrameElement.src') 12212 @DocsEditable
12213 @DomName('HTMLIFrameElement.src')
11457 String src; 12214 String src;
11458 12215
11459 @DocsEditable @DomName('HTMLIFrameElement.srcdoc') 12216 @DocsEditable
12217 @DomName('HTMLIFrameElement.srcdoc')
11460 String srcdoc; 12218 String srcdoc;
11461 12219
11462 @DocsEditable @DomName('HTMLIFrameElement.width') 12220 @DocsEditable
12221 @DomName('HTMLIFrameElement.width')
11463 String width; 12222 String width;
11464 } 12223 }
11465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11466 // for details. All rights reserved. Use of this source code is governed by a 12225 // for details. All rights reserved. Use of this source code is governed by a
11467 // BSD-style license that can be found in the LICENSE file. 12226 // BSD-style license that can be found in the LICENSE file.
11468 12227
11469 12228
11470 12229
11471 @DocsEditable 12230 @DocsEditable
11472 @DomName('ImageData') 12231 @DomName('ImageData')
11473 class ImageData native "*ImageData" { 12232 class ImageData native "*ImageData" {
11474 12233
11475 @DocsEditable @DomName('ImageData.data') 12234 @DocsEditable
12235 @DomName('ImageData.data')
11476 final Uint8ClampedArray data; 12236 final Uint8ClampedArray data;
11477 12237
11478 @DocsEditable @DomName('ImageData.height') 12238 @DocsEditable
12239 @DomName('ImageData.height')
11479 final int height; 12240 final int height;
11480 12241
11481 @DocsEditable @DomName('ImageData.width') 12242 @DocsEditable
12243 @DomName('ImageData.width')
11482 final int width; 12244 final int width;
11483 } 12245 }
11484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11485 // for details. All rights reserved. Use of this source code is governed by a 12247 // for details. All rights reserved. Use of this source code is governed by a
11486 // BSD-style license that can be found in the LICENSE file. 12248 // BSD-style license that can be found in the LICENSE file.
11487 12249
11488 12250
11489 12251
11490 @DocsEditable 12252 @DocsEditable
11491 @DomName('HTMLImageElement') 12253 @DomName('HTMLImageElement')
11492 class ImageElement extends Element native "*HTMLImageElement" { 12254 class ImageElement extends Element native "*HTMLImageElement" {
11493 12255
11494 @DocsEditable 12256 @DocsEditable
11495 factory ImageElement({String src, int width, int height}) { 12257 factory ImageElement({String src, int width, int height}) {
11496 var e = document.$dom_createElement("img"); 12258 var e = document.$dom_createElement("img");
11497 if (src != null) e.src = src; 12259 if (src != null) e.src = src;
11498 if (width != null) e.width = width; 12260 if (width != null) e.width = width;
11499 if (height != null) e.height = height; 12261 if (height != null) e.height = height;
11500 return e; 12262 return e;
11501 } 12263 }
11502 12264
11503 @DocsEditable @DomName('HTMLImageElement.alt') 12265 @DocsEditable
12266 @DomName('HTMLImageElement.alt')
11504 String alt; 12267 String alt;
11505 12268
11506 @DocsEditable @DomName('HTMLImageElement.border') 12269 @DocsEditable
12270 @DomName('HTMLImageElement.border')
11507 String border; 12271 String border;
11508 12272
11509 @DocsEditable @DomName('HTMLImageElement.complete') 12273 @DocsEditable
12274 @DomName('HTMLImageElement.complete')
11510 final bool complete; 12275 final bool complete;
11511 12276
11512 @DocsEditable @DomName('HTMLImageElement.crossOrigin') 12277 @DocsEditable
12278 @DomName('HTMLImageElement.crossOrigin')
11513 String crossOrigin; 12279 String crossOrigin;
11514 12280
11515 @DocsEditable @DomName('HTMLImageElement.height') 12281 @DocsEditable
12282 @DomName('HTMLImageElement.height')
11516 int height; 12283 int height;
11517 12284
11518 @DocsEditable @DomName('HTMLImageElement.isMap') 12285 @DocsEditable
12286 @DomName('HTMLImageElement.isMap')
11519 bool isMap; 12287 bool isMap;
11520 12288
11521 @DocsEditable @DomName('HTMLImageElement.lowsrc') 12289 @DocsEditable
12290 @DomName('HTMLImageElement.lowsrc')
11522 String lowsrc; 12291 String lowsrc;
11523 12292
11524 @DocsEditable @DomName('HTMLImageElement.naturalHeight') 12293 @DocsEditable
12294 @DomName('HTMLImageElement.naturalHeight')
11525 final int naturalHeight; 12295 final int naturalHeight;
11526 12296
11527 @DocsEditable @DomName('HTMLImageElement.naturalWidth') 12297 @DocsEditable
12298 @DomName('HTMLImageElement.naturalWidth')
11528 final int naturalWidth; 12299 final int naturalWidth;
11529 12300
11530 @DocsEditable @DomName('HTMLImageElement.src') 12301 @DocsEditable
12302 @DomName('HTMLImageElement.src')
11531 String src; 12303 String src;
11532 12304
11533 @DocsEditable @DomName('HTMLImageElement.useMap') 12305 @DocsEditable
12306 @DomName('HTMLImageElement.useMap')
11534 String useMap; 12307 String useMap;
11535 12308
11536 @DocsEditable @DomName('HTMLImageElement.width') 12309 @DocsEditable
12310 @DomName('HTMLImageElement.width')
11537 int width; 12311 int width;
11538 12312
11539 @DocsEditable @DomName('HTMLImageElement.x') 12313 @DocsEditable
12314 @DomName('HTMLImageElement.x')
11540 final int x; 12315 final int x;
11541 12316
11542 @DocsEditable @DomName('HTMLImageElement.y') 12317 @DocsEditable
12318 @DomName('HTMLImageElement.y')
11543 final int y; 12319 final int y;
11544 } 12320 }
11545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11546 // for details. All rights reserved. Use of this source code is governed by a 12322 // for details. All rights reserved. Use of this source code is governed by a
11547 // BSD-style license that can be found in the LICENSE file. 12323 // BSD-style license that can be found in the LICENSE file.
11548 12324
11549 12325
11550 @DocsEditable 12326 @DocsEditable
11551 @DomName('HTMLInputElement') 12327 @DomName('HTMLInputElement')
11552 class InputElement extends Element implements 12328 class InputElement extends Element implements
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
11585 return e; 12361 return e;
11586 } 12362 }
11587 12363
11588 static const EventStreamProvider<Event> speechChangeEvent = const EventStreamP rovider<Event>('webkitSpeechChange'); 12364 static const EventStreamProvider<Event> speechChangeEvent = const EventStreamP rovider<Event>('webkitSpeechChange');
11589 12365
11590 @DocsEditable 12366 @DocsEditable
11591 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 12367 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
11592 InputElementEvents get on => 12368 InputElementEvents get on =>
11593 new InputElementEvents(this); 12369 new InputElementEvents(this);
11594 12370
11595 @DocsEditable @DomName('HTMLInputElement.accept') 12371 @DocsEditable
12372 @DomName('HTMLInputElement.accept')
11596 String accept; 12373 String accept;
11597 12374
11598 @DocsEditable @DomName('HTMLInputElement.alt') 12375 @DocsEditable
12376 @DomName('HTMLInputElement.alt')
11599 String alt; 12377 String alt;
11600 12378
11601 @DocsEditable @DomName('HTMLInputElement.autocomplete') 12379 @DocsEditable
12380 @DomName('HTMLInputElement.autocomplete')
11602 String autocomplete; 12381 String autocomplete;
11603 12382
11604 @DocsEditable @DomName('HTMLInputElement.autofocus') 12383 @DocsEditable
12384 @DomName('HTMLInputElement.autofocus')
11605 bool autofocus; 12385 bool autofocus;
11606 12386
11607 @DocsEditable @DomName('HTMLInputElement.checked') 12387 @DocsEditable
12388 @DomName('HTMLInputElement.checked')
11608 bool checked; 12389 bool checked;
11609 12390
11610 @DocsEditable @DomName('HTMLInputElement.defaultChecked') 12391 @DocsEditable
12392 @DomName('HTMLInputElement.defaultChecked')
11611 bool defaultChecked; 12393 bool defaultChecked;
11612 12394
11613 @DocsEditable @DomName('HTMLInputElement.defaultValue') 12395 @DocsEditable
12396 @DomName('HTMLInputElement.defaultValue')
11614 String defaultValue; 12397 String defaultValue;
11615 12398
11616 @DocsEditable @DomName('HTMLInputElement.dirName') 12399 @DocsEditable
12400 @DomName('HTMLInputElement.dirName')
11617 String dirName; 12401 String dirName;
11618 12402
11619 @DocsEditable @DomName('HTMLInputElement.disabled') 12403 @DocsEditable
12404 @DomName('HTMLInputElement.disabled')
11620 bool disabled; 12405 bool disabled;
11621 12406
11622 @DocsEditable @DomName('HTMLInputElement.files') 12407 @DocsEditable
11623 @Returns('FileList') @Creates('FileList') 12408 @DomName('HTMLInputElement.files')
12409 @Returns('FileList')
12410 @Creates('FileList')
11624 List<File> files; 12411 List<File> files;
11625 12412
11626 @DocsEditable @DomName('HTMLInputElement.form') 12413 @DocsEditable
12414 @DomName('HTMLInputElement.form')
11627 final FormElement form; 12415 final FormElement form;
11628 12416
11629 @DocsEditable @DomName('HTMLInputElement.formAction') 12417 @DocsEditable
12418 @DomName('HTMLInputElement.formAction')
11630 String formAction; 12419 String formAction;
11631 12420
11632 @DocsEditable @DomName('HTMLInputElement.formEnctype') 12421 @DocsEditable
12422 @DomName('HTMLInputElement.formEnctype')
11633 String formEnctype; 12423 String formEnctype;
11634 12424
11635 @DocsEditable @DomName('HTMLInputElement.formMethod') 12425 @DocsEditable
12426 @DomName('HTMLInputElement.formMethod')
11636 String formMethod; 12427 String formMethod;
11637 12428
11638 @DocsEditable @DomName('HTMLInputElement.formNoValidate') 12429 @DocsEditable
12430 @DomName('HTMLInputElement.formNoValidate')
11639 bool formNoValidate; 12431 bool formNoValidate;
11640 12432
11641 @DocsEditable @DomName('HTMLInputElement.formTarget') 12433 @DocsEditable
12434 @DomName('HTMLInputElement.formTarget')
11642 String formTarget; 12435 String formTarget;
11643 12436
11644 @DocsEditable @DomName('HTMLInputElement.height') 12437 @DocsEditable
12438 @DomName('HTMLInputElement.height')
11645 int height; 12439 int height;
11646 12440
11647 @DocsEditable @DomName('HTMLInputElement.incremental') 12441 @DocsEditable
12442 @DomName('HTMLInputElement.incremental')
11648 bool incremental; 12443 bool incremental;
11649 12444
11650 @DocsEditable @DomName('HTMLInputElement.indeterminate') 12445 @DocsEditable
12446 @DomName('HTMLInputElement.indeterminate')
11651 bool indeterminate; 12447 bool indeterminate;
11652 12448
11653 @DocsEditable @DomName('HTMLInputElement.labels') 12449 @DocsEditable
11654 @Returns('NodeList') @Creates('NodeList') 12450 @DomName('HTMLInputElement.labels')
12451 @Returns('NodeList')
12452 @Creates('NodeList')
11655 final List<Node> labels; 12453 final List<Node> labels;
11656 12454
11657 @DocsEditable @DomName('HTMLInputElement.list') 12455 @DocsEditable
12456 @DomName('HTMLInputElement.list')
11658 final Element list; 12457 final Element list;
11659 12458
11660 @DocsEditable @DomName('HTMLInputElement.max') 12459 @DocsEditable
12460 @DomName('HTMLInputElement.max')
11661 String max; 12461 String max;
11662 12462
11663 @DocsEditable @DomName('HTMLInputElement.maxLength') 12463 @DocsEditable
12464 @DomName('HTMLInputElement.maxLength')
11664 int maxLength; 12465 int maxLength;
11665 12466
11666 @DocsEditable @DomName('HTMLInputElement.min') 12467 @DocsEditable
12468 @DomName('HTMLInputElement.min')
11667 String min; 12469 String min;
11668 12470
11669 @DocsEditable @DomName('HTMLInputElement.multiple') 12471 @DocsEditable
12472 @DomName('HTMLInputElement.multiple')
11670 bool multiple; 12473 bool multiple;
11671 12474
11672 @DocsEditable @DomName('HTMLInputElement.name') 12475 @DocsEditable
12476 @DomName('HTMLInputElement.name')
11673 String name; 12477 String name;
11674 12478
11675 @DocsEditable @DomName('HTMLInputElement.pattern') 12479 @DocsEditable
12480 @DomName('HTMLInputElement.pattern')
11676 String pattern; 12481 String pattern;
11677 12482
11678 @DocsEditable @DomName('HTMLInputElement.placeholder') 12483 @DocsEditable
12484 @DomName('HTMLInputElement.placeholder')
11679 String placeholder; 12485 String placeholder;
11680 12486
11681 @DocsEditable @DomName('HTMLInputElement.readOnly') 12487 @DocsEditable
12488 @DomName('HTMLInputElement.readOnly')
11682 bool readOnly; 12489 bool readOnly;
11683 12490
11684 @DocsEditable @DomName('HTMLInputElement.required') 12491 @DocsEditable
12492 @DomName('HTMLInputElement.required')
11685 bool required; 12493 bool required;
11686 12494
11687 @DocsEditable @DomName('HTMLInputElement.selectionDirection') 12495 @DocsEditable
12496 @DomName('HTMLInputElement.selectionDirection')
11688 String selectionDirection; 12497 String selectionDirection;
11689 12498
11690 @DocsEditable @DomName('HTMLInputElement.selectionEnd') 12499 @DocsEditable
12500 @DomName('HTMLInputElement.selectionEnd')
11691 int selectionEnd; 12501 int selectionEnd;
11692 12502
11693 @DocsEditable @DomName('HTMLInputElement.selectionStart') 12503 @DocsEditable
12504 @DomName('HTMLInputElement.selectionStart')
11694 int selectionStart; 12505 int selectionStart;
11695 12506
11696 @DocsEditable @DomName('HTMLInputElement.size') 12507 @DocsEditable
12508 @DomName('HTMLInputElement.size')
11697 int size; 12509 int size;
11698 12510
11699 @DocsEditable @DomName('HTMLInputElement.src') 12511 @DocsEditable
12512 @DomName('HTMLInputElement.src')
11700 String src; 12513 String src;
11701 12514
11702 @DocsEditable @DomName('HTMLInputElement.step') 12515 @DocsEditable
12516 @DomName('HTMLInputElement.step')
11703 String step; 12517 String step;
11704 12518
11705 @DocsEditable @DomName('HTMLInputElement.type') 12519 @DocsEditable
12520 @DomName('HTMLInputElement.type')
11706 String type; 12521 String type;
11707 12522
11708 @DocsEditable @DomName('HTMLInputElement.useMap') 12523 @DocsEditable
12524 @DomName('HTMLInputElement.useMap')
11709 String useMap; 12525 String useMap;
11710 12526
11711 @DocsEditable @DomName('HTMLInputElement.validationMessage') 12527 @DocsEditable
12528 @DomName('HTMLInputElement.validationMessage')
11712 final String validationMessage; 12529 final String validationMessage;
11713 12530
11714 @DocsEditable @DomName('HTMLInputElement.validity') 12531 @DocsEditable
12532 @DomName('HTMLInputElement.validity')
11715 final ValidityState validity; 12533 final ValidityState validity;
11716 12534
11717 @DocsEditable @DomName('HTMLInputElement.value') 12535 @DocsEditable
12536 @DomName('HTMLInputElement.value')
11718 String value; 12537 String value;
11719 12538
11720 @DocsEditable @DomName('HTMLInputElement.valueAsDate') 12539 @DocsEditable
12540 @DomName('HTMLInputElement.valueAsDate')
11721 Date valueAsDate; 12541 Date valueAsDate;
11722 12542
11723 @DocsEditable @DomName('HTMLInputElement.valueAsNumber') 12543 @DocsEditable
12544 @DomName('HTMLInputElement.valueAsNumber')
11724 num valueAsNumber; 12545 num valueAsNumber;
11725 12546
11726 @DocsEditable @DomName('HTMLInputElement.webkitEntries') 12547 @DocsEditable
11727 @Returns('_EntryArray') @Creates('_EntryArray') 12548 @DomName('HTMLInputElement.webkitEntries')
12549 @Returns('_EntryArray')
12550 @Creates('_EntryArray')
11728 final List<Entry> webkitEntries; 12551 final List<Entry> webkitEntries;
11729 12552
11730 @DocsEditable @DomName('HTMLInputElement.webkitGrammar') 12553 @DocsEditable
12554 @DomName('HTMLInputElement.webkitGrammar')
11731 bool webkitGrammar; 12555 bool webkitGrammar;
11732 12556
11733 @DocsEditable @DomName('HTMLInputElement.webkitSpeech') 12557 @DocsEditable
12558 @DomName('HTMLInputElement.webkitSpeech')
11734 bool webkitSpeech; 12559 bool webkitSpeech;
11735 12560
11736 @DocsEditable @DomName('HTMLInputElement.webkitdirectory') 12561 @DocsEditable
12562 @DomName('HTMLInputElement.webkitdirectory')
11737 bool webkitdirectory; 12563 bool webkitdirectory;
11738 12564
11739 @DocsEditable @DomName('HTMLInputElement.width') 12565 @DocsEditable
12566 @DomName('HTMLInputElement.width')
11740 int width; 12567 int width;
11741 12568
11742 @DocsEditable @DomName('HTMLInputElement.willValidate') 12569 @DocsEditable
12570 @DomName('HTMLInputElement.willValidate')
11743 final bool willValidate; 12571 final bool willValidate;
11744 12572
11745 @DocsEditable @DomName('HTMLInputElement.checkValidity') 12573 @DocsEditable
12574 @DomName('HTMLInputElement.checkValidity')
11746 bool checkValidity() native; 12575 bool checkValidity() native;
11747 12576
11748 @DocsEditable @DomName('HTMLInputElement.select') 12577 @DocsEditable
12578 @DomName('HTMLInputElement.select')
11749 void select() native; 12579 void select() native;
11750 12580
11751 @DocsEditable @DomName('HTMLInputElement.setCustomValidity') 12581 @DocsEditable
12582 @DomName('HTMLInputElement.setCustomValidity')
11752 void setCustomValidity(String error) native; 12583 void setCustomValidity(String error) native;
11753 12584
11754 @DocsEditable @DomName('HTMLInputElement.setRangeText') 12585 @DocsEditable
12586 @DomName('HTMLInputElement.setRangeText')
11755 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 12587 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native;
11756 12588
11757 @DocsEditable @DomName('HTMLInputElement.setSelectionRange') 12589 @DocsEditable
12590 @DomName('HTMLInputElement.setSelectionRange')
11758 void setSelectionRange(int start, int end, [String direction]) native; 12591 void setSelectionRange(int start, int end, [String direction]) native;
11759 12592
11760 @DocsEditable @DomName('HTMLInputElement.stepDown') 12593 @DocsEditable
12594 @DomName('HTMLInputElement.stepDown')
11761 void stepDown([int n]) native; 12595 void stepDown([int n]) native;
11762 12596
11763 @DocsEditable @DomName('HTMLInputElement.stepUp') 12597 @DocsEditable
12598 @DomName('HTMLInputElement.stepUp')
11764 void stepUp([int n]) native; 12599 void stepUp([int n]) native;
11765 12600
11766 Stream<Event> get onSpeechChange => speechChangeEvent.forTarget(this); 12601 Stream<Event> get onSpeechChange => speechChangeEvent.forTarget(this);
11767 12602
11768 } 12603 }
11769 12604
11770 12605
11771 // Interfaces representing the InputElement APIs which are supported 12606 // Interfaces representing the InputElement APIs which are supported
11772 // for the various types of InputElement. 12607 // for the various types of InputElement.
11773 // From http://dev.w3.org/html5/spec/the-input-element.html#the-input-element. 12608 // From http://dev.w3.org/html5/spec/the-input-element.html#the-input-element.
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
12371 _TypedArrayFactoryProvider.createInt16Array(length); 13206 _TypedArrayFactoryProvider.createInt16Array(length);
12372 13207
12373 factory Int16Array.fromList(List<int> list) => 13208 factory Int16Array.fromList(List<int> list) =>
12374 _TypedArrayFactoryProvider.createInt16Array_fromList(list); 13209 _TypedArrayFactoryProvider.createInt16Array_fromList(list);
12375 13210
12376 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 13211 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
12377 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength); 13212 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength);
12378 13213
12379 static const int BYTES_PER_ELEMENT = 2; 13214 static const int BYTES_PER_ELEMENT = 2;
12380 13215
12381 @DocsEditable @DomName('Int16Array.length') 13216 @DocsEditable
13217 @DomName('Int16Array.length')
12382 int get length => JS("int", "#.length", this); 13218 int get length => JS("int", "#.length", this);
12383 13219
12384 int operator[](int index) => JS("int", "#[#]", this, index); 13220 int operator[](int index) => JS("int", "#[#]", this, index);
12385 13221
12386 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 13222 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
12387 // int is the element type. 13223 // int is the element type.
12388 13224
12389 // From Iterable<int>: 13225 // From Iterable<int>:
12390 13226
12391 Iterator<int> get iterator { 13227 Iterator<int> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
12520 void insertRange(int start, int rangeLength, [int initialValue]) { 13356 void insertRange(int start, int rangeLength, [int initialValue]) {
12521 throw new UnsupportedError("Cannot insertRange on immutable List."); 13357 throw new UnsupportedError("Cannot insertRange on immutable List.");
12522 } 13358 }
12523 13359
12524 List<int> getRange(int start, int rangeLength) => 13360 List<int> getRange(int start, int rangeLength) =>
12525 Lists.getRange(this, start, rangeLength, <int>[]); 13361 Lists.getRange(this, start, rangeLength, <int>[]);
12526 13362
12527 // -- end List<int> mixins. 13363 // -- end List<int> mixins.
12528 13364
12529 @JSName('set') 13365 @JSName('set')
12530 @DocsEditable @DomName('Int16Array.set') 13366 @DocsEditable
13367 @DomName('Int16Array.set')
12531 void setElements(Object array, [int offset]) native; 13368 void setElements(Object array, [int offset]) native;
12532 13369
12533 @DocsEditable @DomName('Int16Array.subarray') 13370 @DocsEditable
13371 @DomName('Int16Array.subarray')
12534 Int16Array subarray(int start, [int end]) native; 13372 Int16Array subarray(int start, [int end]) native;
12535 } 13373 }
12536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12537 // for details. All rights reserved. Use of this source code is governed by a 13375 // for details. All rights reserved. Use of this source code is governed by a
12538 // BSD-style license that can be found in the LICENSE file. 13376 // BSD-style license that can be found in the LICENSE file.
12539 13377
12540 13378
12541 13379
12542 @DocsEditable 13380 @DocsEditable
12543 @DomName('Int32Array') 13381 @DomName('Int32Array')
12544 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int32Array" { 13382 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int32Array" {
12545 13383
12546 factory Int32Array(int length) => 13384 factory Int32Array(int length) =>
12547 _TypedArrayFactoryProvider.createInt32Array(length); 13385 _TypedArrayFactoryProvider.createInt32Array(length);
12548 13386
12549 factory Int32Array.fromList(List<int> list) => 13387 factory Int32Array.fromList(List<int> list) =>
12550 _TypedArrayFactoryProvider.createInt32Array_fromList(list); 13388 _TypedArrayFactoryProvider.createInt32Array_fromList(list);
12551 13389
12552 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 13390 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
12553 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength); 13391 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength);
12554 13392
12555 static const int BYTES_PER_ELEMENT = 4; 13393 static const int BYTES_PER_ELEMENT = 4;
12556 13394
12557 @DocsEditable @DomName('Int32Array.length') 13395 @DocsEditable
13396 @DomName('Int32Array.length')
12558 int get length => JS("int", "#.length", this); 13397 int get length => JS("int", "#.length", this);
12559 13398
12560 int operator[](int index) => JS("int", "#[#]", this, index); 13399 int operator[](int index) => JS("int", "#[#]", this, index);
12561 13400
12562 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 13401 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
12563 // int is the element type. 13402 // int is the element type.
12564 13403
12565 // From Iterable<int>: 13404 // From Iterable<int>:
12566 13405
12567 Iterator<int> get iterator { 13406 Iterator<int> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
12696 void insertRange(int start, int rangeLength, [int initialValue]) { 13535 void insertRange(int start, int rangeLength, [int initialValue]) {
12697 throw new UnsupportedError("Cannot insertRange on immutable List."); 13536 throw new UnsupportedError("Cannot insertRange on immutable List.");
12698 } 13537 }
12699 13538
12700 List<int> getRange(int start, int rangeLength) => 13539 List<int> getRange(int start, int rangeLength) =>
12701 Lists.getRange(this, start, rangeLength, <int>[]); 13540 Lists.getRange(this, start, rangeLength, <int>[]);
12702 13541
12703 // -- end List<int> mixins. 13542 // -- end List<int> mixins.
12704 13543
12705 @JSName('set') 13544 @JSName('set')
12706 @DocsEditable @DomName('Int32Array.set') 13545 @DocsEditable
13546 @DomName('Int32Array.set')
12707 void setElements(Object array, [int offset]) native; 13547 void setElements(Object array, [int offset]) native;
12708 13548
12709 @DocsEditable @DomName('Int32Array.subarray') 13549 @DocsEditable
13550 @DomName('Int32Array.subarray')
12710 Int32Array subarray(int start, [int end]) native; 13551 Int32Array subarray(int start, [int end]) native;
12711 } 13552 }
12712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12713 // for details. All rights reserved. Use of this source code is governed by a 13554 // for details. All rights reserved. Use of this source code is governed by a
12714 // BSD-style license that can be found in the LICENSE file. 13555 // BSD-style license that can be found in the LICENSE file.
12715 13556
12716 13557
12717 13558
12718 @DocsEditable 13559 @DocsEditable
12719 @DomName('Int8Array') 13560 @DomName('Int8Array')
12720 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L ist<int> native "*Int8Array" { 13561 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L ist<int> native "*Int8Array" {
12721 13562
12722 factory Int8Array(int length) => 13563 factory Int8Array(int length) =>
12723 _TypedArrayFactoryProvider.createInt8Array(length); 13564 _TypedArrayFactoryProvider.createInt8Array(length);
12724 13565
12725 factory Int8Array.fromList(List<int> list) => 13566 factory Int8Array.fromList(List<int> list) =>
12726 _TypedArrayFactoryProvider.createInt8Array_fromList(list); 13567 _TypedArrayFactoryProvider.createInt8Array_fromList(list);
12727 13568
12728 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => 13569 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
12729 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth); 13570 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth);
12730 13571
12731 static const int BYTES_PER_ELEMENT = 1; 13572 static const int BYTES_PER_ELEMENT = 1;
12732 13573
12733 @DocsEditable @DomName('Int8Array.length') 13574 @DocsEditable
13575 @DomName('Int8Array.length')
12734 int get length => JS("int", "#.length", this); 13576 int get length => JS("int", "#.length", this);
12735 13577
12736 int operator[](int index) => JS("int", "#[#]", this, index); 13578 int operator[](int index) => JS("int", "#[#]", this, index);
12737 13579
12738 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 13580 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
12739 // int is the element type. 13581 // int is the element type.
12740 13582
12741 // From Iterable<int>: 13583 // From Iterable<int>:
12742 13584
12743 Iterator<int> get iterator { 13585 Iterator<int> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
12872 void insertRange(int start, int rangeLength, [int initialValue]) { 13714 void insertRange(int start, int rangeLength, [int initialValue]) {
12873 throw new UnsupportedError("Cannot insertRange on immutable List."); 13715 throw new UnsupportedError("Cannot insertRange on immutable List.");
12874 } 13716 }
12875 13717
12876 List<int> getRange(int start, int rangeLength) => 13718 List<int> getRange(int start, int rangeLength) =>
12877 Lists.getRange(this, start, rangeLength, <int>[]); 13719 Lists.getRange(this, start, rangeLength, <int>[]);
12878 13720
12879 // -- end List<int> mixins. 13721 // -- end List<int> mixins.
12880 13722
12881 @JSName('set') 13723 @JSName('set')
12882 @DocsEditable @DomName('Int8Array.set') 13724 @DocsEditable
13725 @DomName('Int8Array.set')
12883 void setElements(Object array, [int offset]) native; 13726 void setElements(Object array, [int offset]) native;
12884 13727
12885 @DocsEditable @DomName('Int8Array.subarray') 13728 @DocsEditable
13729 @DomName('Int8Array.subarray')
12886 Int8Array subarray(int start, [int end]) native; 13730 Int8Array subarray(int start, [int end]) native;
12887 } 13731 }
12888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12889 // for details. All rights reserved. Use of this source code is governed by a 13733 // for details. All rights reserved. Use of this source code is governed by a
12890 // BSD-style license that can be found in the LICENSE file. 13734 // BSD-style license that can be found in the LICENSE file.
12891 13735
12892 13736
12893 13737
12894 @DocsEditable 13738 @DocsEditable
12895 @DomName('JavaScriptCallFrame') 13739 @DomName('JavaScriptCallFrame')
12896 class JavaScriptCallFrame native "*JavaScriptCallFrame" { 13740 class JavaScriptCallFrame native "*JavaScriptCallFrame" {
12897 13741
12898 static const int CATCH_SCOPE = 4; 13742 static const int CATCH_SCOPE = 4;
12899 13743
12900 static const int CLOSURE_SCOPE = 3; 13744 static const int CLOSURE_SCOPE = 3;
12901 13745
12902 static const int GLOBAL_SCOPE = 0; 13746 static const int GLOBAL_SCOPE = 0;
12903 13747
12904 static const int LOCAL_SCOPE = 1; 13748 static const int LOCAL_SCOPE = 1;
12905 13749
12906 static const int WITH_SCOPE = 2; 13750 static const int WITH_SCOPE = 2;
12907 13751
12908 @DocsEditable @DomName('JavaScriptCallFrame.caller') 13752 @DocsEditable
13753 @DomName('JavaScriptCallFrame.caller')
12909 final JavaScriptCallFrame caller; 13754 final JavaScriptCallFrame caller;
12910 13755
12911 @DocsEditable @DomName('JavaScriptCallFrame.column') 13756 @DocsEditable
13757 @DomName('JavaScriptCallFrame.column')
12912 final int column; 13758 final int column;
12913 13759
12914 @DocsEditable @DomName('JavaScriptCallFrame.functionName') 13760 @DocsEditable
13761 @DomName('JavaScriptCallFrame.functionName')
12915 final String functionName; 13762 final String functionName;
12916 13763
12917 @DocsEditable @DomName('JavaScriptCallFrame.line') 13764 @DocsEditable
13765 @DomName('JavaScriptCallFrame.line')
12918 final int line; 13766 final int line;
12919 13767
12920 @DocsEditable @DomName('JavaScriptCallFrame.scopeChain') 13768 @DocsEditable
13769 @DomName('JavaScriptCallFrame.scopeChain')
12921 final List scopeChain; 13770 final List scopeChain;
12922 13771
12923 @DocsEditable @DomName('JavaScriptCallFrame.sourceID') 13772 @DocsEditable
13773 @DomName('JavaScriptCallFrame.sourceID')
12924 final int sourceID; 13774 final int sourceID;
12925 13775
12926 @DocsEditable @DomName('JavaScriptCallFrame.thisObject') 13776 @DocsEditable
13777 @DomName('JavaScriptCallFrame.thisObject')
12927 final Object thisObject; 13778 final Object thisObject;
12928 13779
12929 @DocsEditable @DomName('JavaScriptCallFrame.type') 13780 @DocsEditable
13781 @DomName('JavaScriptCallFrame.type')
12930 final String type; 13782 final String type;
12931 13783
12932 @DocsEditable @DomName('JavaScriptCallFrame.evaluate') 13784 @DocsEditable
13785 @DomName('JavaScriptCallFrame.evaluate')
12933 void evaluate(String script) native; 13786 void evaluate(String script) native;
12934 13787
12935 @DocsEditable @DomName('JavaScriptCallFrame.restart') 13788 @DocsEditable
13789 @DomName('JavaScriptCallFrame.restart')
12936 Object restart() native; 13790 Object restart() native;
12937 13791
12938 @DocsEditable @DomName('JavaScriptCallFrame.scopeType') 13792 @DocsEditable
13793 @DomName('JavaScriptCallFrame.scopeType')
12939 int scopeType(int scopeIndex) native; 13794 int scopeType(int scopeIndex) native;
12940 } 13795 }
12941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12942 // for details. All rights reserved. Use of this source code is governed by a 13797 // for details. All rights reserved. Use of this source code is governed by a
12943 // BSD-style license that can be found in the LICENSE file. 13798 // BSD-style license that can be found in the LICENSE file.
12944 13799
12945 13800
13801 @DocsEditable
12946 @DomName('KeyboardEvent') 13802 @DomName('KeyboardEvent')
12947 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { 13803 class KeyboardEvent extends UIEvent native "*KeyboardEvent" {
12948 13804
12949 factory KeyboardEvent(String type, Window view, 13805 factory KeyboardEvent(String type, Window view,
12950 [bool canBubble = true, bool cancelable = true, 13806 [bool canBubble = true, bool cancelable = true,
12951 String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false, 13807 String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false,
12952 bool altKey = false, bool shiftKey = false, bool metaKey = false, 13808 bool altKey = false, bool shiftKey = false, bool metaKey = false,
12953 bool altGraphKey = false]) { 13809 bool altGraphKey = false]) {
12954 final e = document.$dom_createEvent("KeyboardEvent"); 13810 final e = document.$dom_createEvent("KeyboardEvent");
12955 e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, 13811 e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, keyIdentifier,
(...skipping 20 matching lines...) Expand all
12976 ctrlKey, altKey, shiftKey, metaKey, altGraphKey); 13832 ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
12977 } 13833 }
12978 } 13834 }
12979 13835
12980 @DomName('KeyboardEvent.keyCode') 13836 @DomName('KeyboardEvent.keyCode')
12981 int get keyCode => $dom_keyCode; 13837 int get keyCode => $dom_keyCode;
12982 13838
12983 @DomName('KeyboardEvent.charCode') 13839 @DomName('KeyboardEvent.charCode')
12984 int get charCode => $dom_charCode; 13840 int get charCode => $dom_charCode;
12985 13841
12986 @DocsEditable @DomName('KeyboardEvent.altGraphKey') 13842 @DocsEditable
13843 @DomName('KeyboardEvent.altGraphKey')
12987 final bool altGraphKey; 13844 final bool altGraphKey;
12988 13845
12989 @DocsEditable @DomName('KeyboardEvent.altKey') 13846 @DocsEditable
13847 @DomName('KeyboardEvent.altKey')
12990 final bool altKey; 13848 final bool altKey;
12991 13849
12992 @DocsEditable @DomName('KeyboardEvent.ctrlKey') 13850 @DocsEditable
13851 @DomName('KeyboardEvent.ctrlKey')
12993 final bool ctrlKey; 13852 final bool ctrlKey;
12994 13853
12995 @JSName('keyIdentifier') 13854 @JSName('keyIdentifier')
12996 @DocsEditable @DomName('KeyboardEvent.keyIdentifier') 13855 @DocsEditable
13856 @DomName('KeyboardEvent.keyIdentifier')
12997 final String $dom_keyIdentifier; 13857 final String $dom_keyIdentifier;
12998 13858
12999 @DocsEditable @DomName('KeyboardEvent.keyLocation') 13859 @DocsEditable
13860 @DomName('KeyboardEvent.keyLocation')
13000 final int keyLocation; 13861 final int keyLocation;
13001 13862
13002 @DocsEditable @DomName('KeyboardEvent.metaKey') 13863 @DocsEditable
13864 @DomName('KeyboardEvent.metaKey')
13003 final bool metaKey; 13865 final bool metaKey;
13004 13866
13005 @DocsEditable @DomName('KeyboardEvent.shiftKey') 13867 @DocsEditable
13868 @DomName('KeyboardEvent.shiftKey')
13006 final bool shiftKey; 13869 final bool shiftKey;
13007 13870
13008 } 13871 }
13009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13010 // for details. All rights reserved. Use of this source code is governed by a 13873 // for details. All rights reserved. Use of this source code is governed by a
13011 // BSD-style license that can be found in the LICENSE file. 13874 // BSD-style license that can be found in the LICENSE file.
13012 13875
13013 13876
13014 13877
13015 @DocsEditable 13878 @DocsEditable
13016 @DomName('HTMLKeygenElement') 13879 @DomName('HTMLKeygenElement')
13017 @SupportedBrowser(SupportedBrowser.CHROME) 13880 @SupportedBrowser(SupportedBrowser.CHROME)
13018 @SupportedBrowser(SupportedBrowser.SAFARI) 13881 @SupportedBrowser(SupportedBrowser.SAFARI)
13019 @Experimental() 13882 @Experimental()
13020 class KeygenElement extends Element native "*HTMLKeygenElement" { 13883 class KeygenElement extends Element native "*HTMLKeygenElement" {
13021 13884
13022 @DocsEditable 13885 @DocsEditable
13023 factory KeygenElement() => document.$dom_createElement("keygen"); 13886 factory KeygenElement() => document.$dom_createElement("keygen");
13024 13887
13025 /// Checks if this type is supported on the current platform. 13888 /// Checks if this type is supported on the current platform.
13026 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement); 13889 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement);
13027 13890
13028 @DocsEditable @DomName('HTMLKeygenElement.autofocus') 13891 @DocsEditable
13892 @DomName('HTMLKeygenElement.autofocus')
13029 bool autofocus; 13893 bool autofocus;
13030 13894
13031 @DocsEditable @DomName('HTMLKeygenElement.challenge') 13895 @DocsEditable
13896 @DomName('HTMLKeygenElement.challenge')
13032 String challenge; 13897 String challenge;
13033 13898
13034 @DocsEditable @DomName('HTMLKeygenElement.disabled') 13899 @DocsEditable
13900 @DomName('HTMLKeygenElement.disabled')
13035 bool disabled; 13901 bool disabled;
13036 13902
13037 @DocsEditable @DomName('HTMLKeygenElement.form') 13903 @DocsEditable
13904 @DomName('HTMLKeygenElement.form')
13038 final FormElement form; 13905 final FormElement form;
13039 13906
13040 @DocsEditable @DomName('HTMLKeygenElement.keytype') 13907 @DocsEditable
13908 @DomName('HTMLKeygenElement.keytype')
13041 String keytype; 13909 String keytype;
13042 13910
13043 @DocsEditable @DomName('HTMLKeygenElement.labels') 13911 @DocsEditable
13044 @Returns('NodeList') @Creates('NodeList') 13912 @DomName('HTMLKeygenElement.labels')
13913 @Returns('NodeList')
13914 @Creates('NodeList')
13045 final List<Node> labels; 13915 final List<Node> labels;
13046 13916
13047 @DocsEditable @DomName('HTMLKeygenElement.name') 13917 @DocsEditable
13918 @DomName('HTMLKeygenElement.name')
13048 String name; 13919 String name;
13049 13920
13050 @DocsEditable @DomName('HTMLKeygenElement.type') 13921 @DocsEditable
13922 @DomName('HTMLKeygenElement.type')
13051 final String type; 13923 final String type;
13052 13924
13053 @DocsEditable @DomName('HTMLKeygenElement.validationMessage') 13925 @DocsEditable
13926 @DomName('HTMLKeygenElement.validationMessage')
13054 final String validationMessage; 13927 final String validationMessage;
13055 13928
13056 @DocsEditable @DomName('HTMLKeygenElement.validity') 13929 @DocsEditable
13930 @DomName('HTMLKeygenElement.validity')
13057 final ValidityState validity; 13931 final ValidityState validity;
13058 13932
13059 @DocsEditable @DomName('HTMLKeygenElement.willValidate') 13933 @DocsEditable
13934 @DomName('HTMLKeygenElement.willValidate')
13060 final bool willValidate; 13935 final bool willValidate;
13061 13936
13062 @DocsEditable @DomName('HTMLKeygenElement.checkValidity') 13937 @DocsEditable
13938 @DomName('HTMLKeygenElement.checkValidity')
13063 bool checkValidity() native; 13939 bool checkValidity() native;
13064 13940
13065 @DocsEditable @DomName('HTMLKeygenElement.setCustomValidity') 13941 @DocsEditable
13942 @DomName('HTMLKeygenElement.setCustomValidity')
13066 void setCustomValidity(String error) native; 13943 void setCustomValidity(String error) native;
13067 } 13944 }
13068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13069 // for details. All rights reserved. Use of this source code is governed by a 13946 // for details. All rights reserved. Use of this source code is governed by a
13070 // BSD-style license that can be found in the LICENSE file. 13947 // BSD-style license that can be found in the LICENSE file.
13071 13948
13072 13949
13073 13950
13074 @DocsEditable 13951 @DocsEditable
13075 @DomName('HTMLLIElement') 13952 @DomName('HTMLLIElement')
13076 class LIElement extends Element native "*HTMLLIElement" { 13953 class LIElement extends Element native "*HTMLLIElement" {
13077 13954
13078 @DocsEditable 13955 @DocsEditable
13079 factory LIElement() => document.$dom_createElement("li"); 13956 factory LIElement() => document.$dom_createElement("li");
13080 13957
13081 @DocsEditable @DomName('HTMLLIElement.type') 13958 @DocsEditable
13959 @DomName('HTMLLIElement.type')
13082 String type; 13960 String type;
13083 13961
13084 @DocsEditable @DomName('HTMLLIElement.value') 13962 @DocsEditable
13963 @DomName('HTMLLIElement.value')
13085 int value; 13964 int value;
13086 } 13965 }
13087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13088 // for details. All rights reserved. Use of this source code is governed by a 13967 // for details. All rights reserved. Use of this source code is governed by a
13089 // BSD-style license that can be found in the LICENSE file. 13968 // BSD-style license that can be found in the LICENSE file.
13090 13969
13091 13970
13092 13971
13093 @DocsEditable 13972 @DocsEditable
13094 @DomName('HTMLLabelElement') 13973 @DomName('HTMLLabelElement')
13095 class LabelElement extends Element native "*HTMLLabelElement" { 13974 class LabelElement extends Element native "*HTMLLabelElement" {
13096 13975
13097 @DocsEditable 13976 @DocsEditable
13098 factory LabelElement() => document.$dom_createElement("label"); 13977 factory LabelElement() => document.$dom_createElement("label");
13099 13978
13100 @DocsEditable @DomName('HTMLLabelElement.control') 13979 @DocsEditable
13980 @DomName('HTMLLabelElement.control')
13101 final Element control; 13981 final Element control;
13102 13982
13103 @DocsEditable @DomName('HTMLLabelElement.form') 13983 @DocsEditable
13984 @DomName('HTMLLabelElement.form')
13104 final FormElement form; 13985 final FormElement form;
13105 13986
13106 @DocsEditable @DomName('HTMLLabelElement.htmlFor') 13987 @DocsEditable
13988 @DomName('HTMLLabelElement.htmlFor')
13107 String htmlFor; 13989 String htmlFor;
13108 } 13990 }
13109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13110 // for details. All rights reserved. Use of this source code is governed by a 13992 // for details. All rights reserved. Use of this source code is governed by a
13111 // BSD-style license that can be found in the LICENSE file. 13993 // BSD-style license that can be found in the LICENSE file.
13112 13994
13113 13995
13114 13996
13115 @DocsEditable 13997 @DocsEditable
13116 @DomName('HTMLLegendElement') 13998 @DomName('HTMLLegendElement')
13117 class LegendElement extends Element native "*HTMLLegendElement" { 13999 class LegendElement extends Element native "*HTMLLegendElement" {
13118 14000
13119 @DocsEditable 14001 @DocsEditable
13120 factory LegendElement() => document.$dom_createElement("legend"); 14002 factory LegendElement() => document.$dom_createElement("legend");
13121 14003
13122 @DocsEditable @DomName('HTMLLegendElement.form') 14004 @DocsEditable
14005 @DomName('HTMLLegendElement.form')
13123 final FormElement form; 14006 final FormElement form;
13124 } 14007 }
13125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13126 // for details. All rights reserved. Use of this source code is governed by a 14009 // for details. All rights reserved. Use of this source code is governed by a
13127 // BSD-style license that can be found in the LICENSE file. 14010 // BSD-style license that can be found in the LICENSE file.
13128 14011
13129 14012
13130 14013
13131 @DocsEditable 14014 @DocsEditable
13132 @DomName('HTMLLinkElement') 14015 @DomName('HTMLLinkElement')
13133 class LinkElement extends Element native "*HTMLLinkElement" { 14016 class LinkElement extends Element native "*HTMLLinkElement" {
13134 14017
13135 @DocsEditable 14018 @DocsEditable
13136 factory LinkElement() => document.$dom_createElement("link"); 14019 factory LinkElement() => document.$dom_createElement("link");
13137 14020
13138 @DocsEditable @DomName('HTMLLinkElement.disabled') 14021 @DocsEditable
14022 @DomName('HTMLLinkElement.disabled')
13139 bool disabled; 14023 bool disabled;
13140 14024
13141 @DocsEditable @DomName('HTMLLinkElement.href') 14025 @DocsEditable
14026 @DomName('HTMLLinkElement.href')
13142 String href; 14027 String href;
13143 14028
13144 @DocsEditable @DomName('HTMLLinkElement.hreflang') 14029 @DocsEditable
14030 @DomName('HTMLLinkElement.hreflang')
13145 String hreflang; 14031 String hreflang;
13146 14032
13147 @DocsEditable @DomName('HTMLLinkElement.media') 14033 @DocsEditable
14034 @DomName('HTMLLinkElement.media')
13148 String media; 14035 String media;
13149 14036
13150 @DocsEditable @DomName('HTMLLinkElement.rel') 14037 @DocsEditable
14038 @DomName('HTMLLinkElement.rel')
13151 String rel; 14039 String rel;
13152 14040
13153 @DocsEditable @DomName('HTMLLinkElement.sheet') 14041 @DocsEditable
14042 @DomName('HTMLLinkElement.sheet')
13154 final StyleSheet sheet; 14043 final StyleSheet sheet;
13155 14044
13156 @DocsEditable @DomName('HTMLLinkElement.sizes') 14045 @DocsEditable
14046 @DomName('HTMLLinkElement.sizes')
13157 DomSettableTokenList sizes; 14047 DomSettableTokenList sizes;
13158 14048
13159 @DocsEditable @DomName('HTMLLinkElement.type') 14049 @DocsEditable
14050 @DomName('HTMLLinkElement.type')
13160 String type; 14051 String type;
13161 } 14052 }
13162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13163 // for details. All rights reserved. Use of this source code is governed by a 14054 // for details. All rights reserved. Use of this source code is governed by a
13164 // BSD-style license that can be found in the LICENSE file. 14055 // BSD-style license that can be found in the LICENSE file.
13165 14056
13166 14057
13167 14058
13168 @DocsEditable 14059 @DocsEditable
13169 @DomName('LocalMediaStream') 14060 @DomName('LocalMediaStream')
13170 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" { 14061 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" {
13171 14062
13172 @DocsEditable @DomName('LocalMediaStream.stop') 14063 @DocsEditable
14064 @DomName('LocalMediaStream.stop')
13173 void stop() native; 14065 void stop() native;
13174 } 14066 }
13175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13176 // for details. All rights reserved. Use of this source code is governed by a 14068 // for details. All rights reserved. Use of this source code is governed by a
13177 // BSD-style license that can be found in the LICENSE file. 14069 // BSD-style license that can be found in the LICENSE file.
13178 14070
13179 14071
13180 14072
13181 @DocsEditable 14073 @DocsEditable
13182 @DomName('Location') 14074 @DomName('Location')
13183 class Location implements LocationBase native "*Location" { 14075 class Location implements LocationBase native "*Location" {
13184 14076
13185 @DocsEditable @DomName('Location.ancestorOrigins') 14077 @DocsEditable
13186 @Returns('DomStringList') @Creates('DomStringList') 14078 @DomName('Location.ancestorOrigins')
14079 @Returns('DomStringList')
14080 @Creates('DomStringList')
13187 final List<String> ancestorOrigins; 14081 final List<String> ancestorOrigins;
13188 14082
13189 @DocsEditable @DomName('Location.hash') 14083 @DocsEditable
14084 @DomName('Location.hash')
13190 String hash; 14085 String hash;
13191 14086
13192 @DocsEditable @DomName('Location.host') 14087 @DocsEditable
14088 @DomName('Location.host')
13193 String host; 14089 String host;
13194 14090
13195 @DocsEditable @DomName('Location.hostname') 14091 @DocsEditable
14092 @DomName('Location.hostname')
13196 String hostname; 14093 String hostname;
13197 14094
13198 @DocsEditable @DomName('Location.href') 14095 @DocsEditable
14096 @DomName('Location.href')
13199 String href; 14097 String href;
13200 14098
13201 @DocsEditable @DomName('Location.origin') 14099 @DocsEditable
14100 @DomName('Location.origin')
13202 final String origin; 14101 final String origin;
13203 14102
13204 @DocsEditable @DomName('Location.pathname') 14103 @DocsEditable
14104 @DomName('Location.pathname')
13205 String pathname; 14105 String pathname;
13206 14106
13207 @DocsEditable @DomName('Location.port') 14107 @DocsEditable
14108 @DomName('Location.port')
13208 String port; 14109 String port;
13209 14110
13210 @DocsEditable @DomName('Location.protocol') 14111 @DocsEditable
14112 @DomName('Location.protocol')
13211 String protocol; 14113 String protocol;
13212 14114
13213 @DocsEditable @DomName('Location.search') 14115 @DocsEditable
14116 @DomName('Location.search')
13214 String search; 14117 String search;
13215 14118
13216 @DocsEditable @DomName('Location.assign') 14119 @DocsEditable
14120 @DomName('Location.assign')
13217 void assign(String url) native; 14121 void assign(String url) native;
13218 14122
13219 @DocsEditable @DomName('Location.reload') 14123 @DocsEditable
14124 @DomName('Location.reload')
13220 void reload() native; 14125 void reload() native;
13221 14126
13222 @DocsEditable @DomName('Location.replace') 14127 @DocsEditable
14128 @DomName('Location.replace')
13223 void replace(String url) native; 14129 void replace(String url) native;
13224 14130
13225 @DocsEditable @DomName('Location.toString') 14131 @DocsEditable
14132 @DomName('Location.toString')
13226 String toString() native; 14133 String toString() native;
13227 } 14134 }
13228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13229 // for details. All rights reserved. Use of this source code is governed by a 14136 // for details. All rights reserved. Use of this source code is governed by a
13230 // BSD-style license that can be found in the LICENSE file. 14137 // BSD-style license that can be found in the LICENSE file.
13231 14138
13232 14139
13233 14140
13234 @DocsEditable 14141 @DocsEditable
13235 @DomName('HTMLMapElement') 14142 @DomName('HTMLMapElement')
13236 class MapElement extends Element native "*HTMLMapElement" { 14143 class MapElement extends Element native "*HTMLMapElement" {
13237 14144
13238 @DocsEditable 14145 @DocsEditable
13239 factory MapElement() => document.$dom_createElement("map"); 14146 factory MapElement() => document.$dom_createElement("map");
13240 14147
13241 @DocsEditable @DomName('HTMLMapElement.areas') 14148 @DocsEditable
14149 @DomName('HTMLMapElement.areas')
13242 final HtmlCollection areas; 14150 final HtmlCollection areas;
13243 14151
13244 @DocsEditable @DomName('HTMLMapElement.name') 14152 @DocsEditable
14153 @DomName('HTMLMapElement.name')
13245 String name; 14154 String name;
13246 } 14155 }
13247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13248 // for details. All rights reserved. Use of this source code is governed by a 14157 // for details. All rights reserved. Use of this source code is governed by a
13249 // BSD-style license that can be found in the LICENSE file. 14158 // BSD-style license that can be found in the LICENSE file.
13250 14159
13251 14160
13252 14161
13253 @DocsEditable 14162 @DocsEditable
13254 @DomName('MediaController') 14163 @DomName('MediaController')
13255 class MediaController extends EventTarget native "*MediaController" { 14164 class MediaController extends EventTarget native "*MediaController" {
13256 14165
13257 @DocsEditable 14166 @DocsEditable
13258 factory MediaController() => MediaController._create(); 14167 factory MediaController() => MediaController._create();
13259 static MediaController _create() => JS('MediaController', 'new MediaController ()'); 14168 static MediaController _create() => JS('MediaController', 'new MediaController ()');
13260 14169
13261 @DocsEditable @DomName('MediaController.buffered') 14170 @DocsEditable
14171 @DomName('MediaController.buffered')
13262 final TimeRanges buffered; 14172 final TimeRanges buffered;
13263 14173
13264 @DocsEditable @DomName('MediaController.currentTime') 14174 @DocsEditable
14175 @DomName('MediaController.currentTime')
13265 num currentTime; 14176 num currentTime;
13266 14177
13267 @DocsEditable @DomName('MediaController.defaultPlaybackRate') 14178 @DocsEditable
14179 @DomName('MediaController.defaultPlaybackRate')
13268 num defaultPlaybackRate; 14180 num defaultPlaybackRate;
13269 14181
13270 @DocsEditable @DomName('MediaController.duration') 14182 @DocsEditable
14183 @DomName('MediaController.duration')
13271 final num duration; 14184 final num duration;
13272 14185
13273 @DocsEditable @DomName('MediaController.muted') 14186 @DocsEditable
14187 @DomName('MediaController.muted')
13274 bool muted; 14188 bool muted;
13275 14189
13276 @DocsEditable @DomName('MediaController.paused') 14190 @DocsEditable
14191 @DomName('MediaController.paused')
13277 final bool paused; 14192 final bool paused;
13278 14193
13279 @DocsEditable @DomName('MediaController.playbackRate') 14194 @DocsEditable
14195 @DomName('MediaController.playbackRate')
13280 num playbackRate; 14196 num playbackRate;
13281 14197
13282 @DocsEditable @DomName('MediaController.playbackState') 14198 @DocsEditable
14199 @DomName('MediaController.playbackState')
13283 final String playbackState; 14200 final String playbackState;
13284 14201
13285 @DocsEditable @DomName('MediaController.played') 14202 @DocsEditable
14203 @DomName('MediaController.played')
13286 final TimeRanges played; 14204 final TimeRanges played;
13287 14205
13288 @DocsEditable @DomName('MediaController.seekable') 14206 @DocsEditable
14207 @DomName('MediaController.seekable')
13289 final TimeRanges seekable; 14208 final TimeRanges seekable;
13290 14209
13291 @DocsEditable @DomName('MediaController.volume') 14210 @DocsEditable
14211 @DomName('MediaController.volume')
13292 num volume; 14212 num volume;
13293 14213
13294 @JSName('addEventListener') 14214 @JSName('addEventListener')
13295 @DocsEditable @DomName('MediaController.addEventListener') 14215 @DocsEditable
14216 @DomName('MediaController.addEventListener')
13296 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14217 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
13297 14218
13298 @JSName('dispatchEvent') 14219 @JSName('dispatchEvent')
13299 @DocsEditable @DomName('MediaController.dispatchEvent') 14220 @DocsEditable
14221 @DomName('MediaController.dispatchEvent')
13300 bool $dom_dispatchEvent(Event evt) native; 14222 bool $dom_dispatchEvent(Event evt) native;
13301 14223
13302 @DocsEditable @DomName('MediaController.pause') 14224 @DocsEditable
14225 @DomName('MediaController.pause')
13303 void pause() native; 14226 void pause() native;
13304 14227
13305 @DocsEditable @DomName('MediaController.play') 14228 @DocsEditable
14229 @DomName('MediaController.play')
13306 void play() native; 14230 void play() native;
13307 14231
13308 @JSName('removeEventListener') 14232 @JSName('removeEventListener')
13309 @DocsEditable @DomName('MediaController.removeEventListener') 14233 @DocsEditable
14234 @DomName('MediaController.removeEventListener')
13310 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 14235 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
13311 14236
13312 @DocsEditable @DomName('MediaController.unpause') 14237 @DocsEditable
14238 @DomName('MediaController.unpause')
13313 void unpause() native; 14239 void unpause() native;
13314 } 14240 }
13315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13316 // for details. All rights reserved. Use of this source code is governed by a 14242 // for details. All rights reserved. Use of this source code is governed by a
13317 // BSD-style license that can be found in the LICENSE file. 14243 // BSD-style license that can be found in the LICENSE file.
13318 14244
13319 14245
13320 14246
13321 @DocsEditable 14247 @DocsEditable
13322 @DomName('HTMLMediaElement') 14248 @DomName('HTMLMediaElement')
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
13388 static const int HAVE_NOTHING = 0; 14314 static const int HAVE_NOTHING = 0;
13389 14315
13390 static const int NETWORK_EMPTY = 0; 14316 static const int NETWORK_EMPTY = 0;
13391 14317
13392 static const int NETWORK_IDLE = 1; 14318 static const int NETWORK_IDLE = 1;
13393 14319
13394 static const int NETWORK_LOADING = 2; 14320 static const int NETWORK_LOADING = 2;
13395 14321
13396 static const int NETWORK_NO_SOURCE = 3; 14322 static const int NETWORK_NO_SOURCE = 3;
13397 14323
13398 @DocsEditable @DomName('HTMLMediaElement.autoplay') 14324 @DocsEditable
14325 @DomName('HTMLMediaElement.autoplay')
13399 bool autoplay; 14326 bool autoplay;
13400 14327
13401 @DocsEditable @DomName('HTMLMediaElement.buffered') 14328 @DocsEditable
14329 @DomName('HTMLMediaElement.buffered')
13402 final TimeRanges buffered; 14330 final TimeRanges buffered;
13403 14331
13404 @DocsEditable @DomName('HTMLMediaElement.controller') 14332 @DocsEditable
14333 @DomName('HTMLMediaElement.controller')
13405 MediaController controller; 14334 MediaController controller;
13406 14335
13407 @DocsEditable @DomName('HTMLMediaElement.controls') 14336 @DocsEditable
14337 @DomName('HTMLMediaElement.controls')
13408 bool controls; 14338 bool controls;
13409 14339
13410 @DocsEditable @DomName('HTMLMediaElement.currentSrc') 14340 @DocsEditable
14341 @DomName('HTMLMediaElement.currentSrc')
13411 final String currentSrc; 14342 final String currentSrc;
13412 14343
13413 @DocsEditable @DomName('HTMLMediaElement.currentTime') 14344 @DocsEditable
14345 @DomName('HTMLMediaElement.currentTime')
13414 num currentTime; 14346 num currentTime;
13415 14347
13416 @DocsEditable @DomName('HTMLMediaElement.defaultMuted') 14348 @DocsEditable
14349 @DomName('HTMLMediaElement.defaultMuted')
13417 bool defaultMuted; 14350 bool defaultMuted;
13418 14351
13419 @DocsEditable @DomName('HTMLMediaElement.defaultPlaybackRate') 14352 @DocsEditable
14353 @DomName('HTMLMediaElement.defaultPlaybackRate')
13420 num defaultPlaybackRate; 14354 num defaultPlaybackRate;
13421 14355
13422 @DocsEditable @DomName('HTMLMediaElement.duration') 14356 @DocsEditable
14357 @DomName('HTMLMediaElement.duration')
13423 final num duration; 14358 final num duration;
13424 14359
13425 @DocsEditable @DomName('HTMLMediaElement.ended') 14360 @DocsEditable
14361 @DomName('HTMLMediaElement.ended')
13426 final bool ended; 14362 final bool ended;
13427 14363
13428 @DocsEditable @DomName('HTMLMediaElement.error') 14364 @DocsEditable
14365 @DomName('HTMLMediaElement.error')
13429 final MediaError error; 14366 final MediaError error;
13430 14367
13431 @DocsEditable @DomName('HTMLMediaElement.initialTime') 14368 @DocsEditable
14369 @DomName('HTMLMediaElement.initialTime')
13432 final num initialTime; 14370 final num initialTime;
13433 14371
13434 @DocsEditable @DomName('HTMLMediaElement.loop') 14372 @DocsEditable
14373 @DomName('HTMLMediaElement.loop')
13435 bool loop; 14374 bool loop;
13436 14375
13437 @DocsEditable @DomName('HTMLMediaElement.mediaGroup') 14376 @DocsEditable
14377 @DomName('HTMLMediaElement.mediaGroup')
13438 String mediaGroup; 14378 String mediaGroup;
13439 14379
13440 @DocsEditable @DomName('HTMLMediaElement.muted') 14380 @DocsEditable
14381 @DomName('HTMLMediaElement.muted')
13441 bool muted; 14382 bool muted;
13442 14383
13443 @DocsEditable @DomName('HTMLMediaElement.networkState') 14384 @DocsEditable
14385 @DomName('HTMLMediaElement.networkState')
13444 final int networkState; 14386 final int networkState;
13445 14387
13446 @DocsEditable @DomName('HTMLMediaElement.paused') 14388 @DocsEditable
14389 @DomName('HTMLMediaElement.paused')
13447 final bool paused; 14390 final bool paused;
13448 14391
13449 @DocsEditable @DomName('HTMLMediaElement.playbackRate') 14392 @DocsEditable
14393 @DomName('HTMLMediaElement.playbackRate')
13450 num playbackRate; 14394 num playbackRate;
13451 14395
13452 @DocsEditable @DomName('HTMLMediaElement.played') 14396 @DocsEditable
14397 @DomName('HTMLMediaElement.played')
13453 final TimeRanges played; 14398 final TimeRanges played;
13454 14399
13455 @DocsEditable @DomName('HTMLMediaElement.preload') 14400 @DocsEditable
14401 @DomName('HTMLMediaElement.preload')
13456 String preload; 14402 String preload;
13457 14403
13458 @DocsEditable @DomName('HTMLMediaElement.readyState') 14404 @DocsEditable
14405 @DomName('HTMLMediaElement.readyState')
13459 final int readyState; 14406 final int readyState;
13460 14407
13461 @DocsEditable @DomName('HTMLMediaElement.seekable') 14408 @DocsEditable
14409 @DomName('HTMLMediaElement.seekable')
13462 final TimeRanges seekable; 14410 final TimeRanges seekable;
13463 14411
13464 @DocsEditable @DomName('HTMLMediaElement.seeking') 14412 @DocsEditable
14413 @DomName('HTMLMediaElement.seeking')
13465 final bool seeking; 14414 final bool seeking;
13466 14415
13467 @DocsEditable @DomName('HTMLMediaElement.src') 14416 @DocsEditable
14417 @DomName('HTMLMediaElement.src')
13468 String src; 14418 String src;
13469 14419
13470 @DocsEditable @DomName('HTMLMediaElement.startTime') 14420 @DocsEditable
14421 @DomName('HTMLMediaElement.startTime')
13471 final num startTime; 14422 final num startTime;
13472 14423
13473 @DocsEditable @DomName('HTMLMediaElement.textTracks') 14424 @DocsEditable
14425 @DomName('HTMLMediaElement.textTracks')
13474 final TextTrackList textTracks; 14426 final TextTrackList textTracks;
13475 14427
13476 @DocsEditable @DomName('HTMLMediaElement.volume') 14428 @DocsEditable
14429 @DomName('HTMLMediaElement.volume')
13477 num volume; 14430 num volume;
13478 14431
13479 @DocsEditable @DomName('HTMLMediaElement.webkitAudioDecodedByteCount') 14432 @DocsEditable
14433 @DomName('HTMLMediaElement.webkitAudioDecodedByteCount')
13480 final int webkitAudioDecodedByteCount; 14434 final int webkitAudioDecodedByteCount;
13481 14435
13482 @DocsEditable @DomName('HTMLMediaElement.webkitClosedCaptionsVisible') 14436 @DocsEditable
14437 @DomName('HTMLMediaElement.webkitClosedCaptionsVisible')
13483 bool webkitClosedCaptionsVisible; 14438 bool webkitClosedCaptionsVisible;
13484 14439
13485 @DocsEditable @DomName('HTMLMediaElement.webkitHasClosedCaptions') 14440 @DocsEditable
14441 @DomName('HTMLMediaElement.webkitHasClosedCaptions')
13486 final bool webkitHasClosedCaptions; 14442 final bool webkitHasClosedCaptions;
13487 14443
13488 @DocsEditable @DomName('HTMLMediaElement.webkitPreservesPitch') 14444 @DocsEditable
14445 @DomName('HTMLMediaElement.webkitPreservesPitch')
13489 bool webkitPreservesPitch; 14446 bool webkitPreservesPitch;
13490 14447
13491 @DocsEditable @DomName('HTMLMediaElement.webkitVideoDecodedByteCount') 14448 @DocsEditable
14449 @DomName('HTMLMediaElement.webkitVideoDecodedByteCount')
13492 final int webkitVideoDecodedByteCount; 14450 final int webkitVideoDecodedByteCount;
13493 14451
13494 @DocsEditable @DomName('HTMLMediaElement.addTextTrack') 14452 @DocsEditable
14453 @DomName('HTMLMediaElement.addTextTrack')
13495 TextTrack addTextTrack(String kind, [String label, String language]) native; 14454 TextTrack addTextTrack(String kind, [String label, String language]) native;
13496 14455
13497 @DocsEditable @DomName('HTMLMediaElement.canPlayType') 14456 @DocsEditable
14457 @DomName('HTMLMediaElement.canPlayType')
13498 String canPlayType(String type, String keySystem) native; 14458 String canPlayType(String type, String keySystem) native;
13499 14459
13500 @DocsEditable @DomName('HTMLMediaElement.load') 14460 @DocsEditable
14461 @DomName('HTMLMediaElement.load')
13501 void load() native; 14462 void load() native;
13502 14463
13503 @DocsEditable @DomName('HTMLMediaElement.pause') 14464 @DocsEditable
14465 @DomName('HTMLMediaElement.pause')
13504 void pause() native; 14466 void pause() native;
13505 14467
13506 @DocsEditable @DomName('HTMLMediaElement.play') 14468 @DocsEditable
14469 @DomName('HTMLMediaElement.play')
13507 void play() native; 14470 void play() native;
13508 14471
13509 @DocsEditable @DomName('HTMLMediaElement.webkitAddKey') 14472 @DocsEditable
14473 @DomName('HTMLMediaElement.webkitAddKey')
13510 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]) native; 14474 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]) native;
13511 14475
13512 @DocsEditable @DomName('HTMLMediaElement.webkitCancelKeyRequest') 14476 @DocsEditable
14477 @DomName('HTMLMediaElement.webkitCancelKeyRequest')
13513 void webkitCancelKeyRequest(String keySystem, String sessionId) native; 14478 void webkitCancelKeyRequest(String keySystem, String sessionId) native;
13514 14479
13515 @DocsEditable @DomName('HTMLMediaElement.webkitGenerateKeyRequest') 14480 @DocsEditable
14481 @DomName('HTMLMediaElement.webkitGenerateKeyRequest')
13516 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; 14482 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native;
13517 14483
13518 Stream<Event> get onCanPlay => canPlayEvent.forTarget(this); 14484 Stream<Event> get onCanPlay => canPlayEvent.forTarget(this);
13519 14485
13520 Stream<Event> get onCanPlayThrough => canPlayThroughEvent.forTarget(this); 14486 Stream<Event> get onCanPlayThrough => canPlayThroughEvent.forTarget(this);
13521 14487
13522 Stream<Event> get onDurationChange => durationChangeEvent.forTarget(this); 14488 Stream<Event> get onDurationChange => durationChangeEvent.forTarget(this);
13523 14489
13524 Stream<Event> get onEmptied => emptiedEvent.forTarget(this); 14490 Stream<Event> get onEmptied => emptiedEvent.forTarget(this);
13525 14491
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
13659 static const int MEDIA_ERR_ABORTED = 1; 14625 static const int MEDIA_ERR_ABORTED = 1;
13660 14626
13661 static const int MEDIA_ERR_DECODE = 3; 14627 static const int MEDIA_ERR_DECODE = 3;
13662 14628
13663 static const int MEDIA_ERR_ENCRYPTED = 5; 14629 static const int MEDIA_ERR_ENCRYPTED = 5;
13664 14630
13665 static const int MEDIA_ERR_NETWORK = 2; 14631 static const int MEDIA_ERR_NETWORK = 2;
13666 14632
13667 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 14633 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
13668 14634
13669 @DocsEditable @DomName('MediaError.code') 14635 @DocsEditable
14636 @DomName('MediaError.code')
13670 final int code; 14637 final int code;
13671 } 14638 }
13672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13673 // for details. All rights reserved. Use of this source code is governed by a 14640 // for details. All rights reserved. Use of this source code is governed by a
13674 // BSD-style license that can be found in the LICENSE file. 14641 // BSD-style license that can be found in the LICENSE file.
13675 14642
13676 14643
13677 14644
13678 @DocsEditable 14645 @DocsEditable
13679 @DomName('MediaKeyError') 14646 @DomName('MediaKeyError')
13680 class MediaKeyError native "*MediaKeyError" { 14647 class MediaKeyError native "*MediaKeyError" {
13681 14648
13682 static const int MEDIA_KEYERR_CLIENT = 2; 14649 static const int MEDIA_KEYERR_CLIENT = 2;
13683 14650
13684 static const int MEDIA_KEYERR_DOMAIN = 6; 14651 static const int MEDIA_KEYERR_DOMAIN = 6;
13685 14652
13686 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; 14653 static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
13687 14654
13688 static const int MEDIA_KEYERR_OUTPUT = 4; 14655 static const int MEDIA_KEYERR_OUTPUT = 4;
13689 14656
13690 static const int MEDIA_KEYERR_SERVICE = 3; 14657 static const int MEDIA_KEYERR_SERVICE = 3;
13691 14658
13692 static const int MEDIA_KEYERR_UNKNOWN = 1; 14659 static const int MEDIA_KEYERR_UNKNOWN = 1;
13693 14660
13694 @DocsEditable @DomName('MediaKeyError.code') 14661 @DocsEditable
14662 @DomName('MediaKeyError.code')
13695 final int code; 14663 final int code;
13696 } 14664 }
13697 // 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
13698 // 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
13699 // BSD-style license that can be found in the LICENSE file. 14667 // BSD-style license that can be found in the LICENSE file.
13700 14668
13701 14669
13702 14670
13703 @DocsEditable 14671 @DocsEditable
13704 @DomName('MediaKeyEvent') 14672 @DomName('MediaKeyEvent')
13705 class MediaKeyEvent extends Event native "*MediaKeyEvent" { 14673 class MediaKeyEvent extends Event native "*MediaKeyEvent" {
13706 14674
13707 @JSName('defaultURL') 14675 @JSName('defaultURL')
13708 @DocsEditable @DomName('MediaKeyEvent.defaultURL') 14676 @DocsEditable
14677 @DomName('MediaKeyEvent.defaultURL')
13709 final String defaultUrl; 14678 final String defaultUrl;
13710 14679
13711 @DocsEditable @DomName('MediaKeyEvent.errorCode') 14680 @DocsEditable
14681 @DomName('MediaKeyEvent.errorCode')
13712 final MediaKeyError errorCode; 14682 final MediaKeyError errorCode;
13713 14683
13714 @DocsEditable @DomName('MediaKeyEvent.initData') 14684 @DocsEditable
14685 @DomName('MediaKeyEvent.initData')
13715 final Uint8Array initData; 14686 final Uint8Array initData;
13716 14687
13717 @DocsEditable @DomName('MediaKeyEvent.keySystem') 14688 @DocsEditable
14689 @DomName('MediaKeyEvent.keySystem')
13718 final String keySystem; 14690 final String keySystem;
13719 14691
13720 @DocsEditable @DomName('MediaKeyEvent.message') 14692 @DocsEditable
14693 @DomName('MediaKeyEvent.message')
13721 final Uint8Array message; 14694 final Uint8Array message;
13722 14695
13723 @DocsEditable @DomName('MediaKeyEvent.sessionId') 14696 @DocsEditable
14697 @DomName('MediaKeyEvent.sessionId')
13724 final String sessionId; 14698 final String sessionId;
13725 14699
13726 @DocsEditable @DomName('MediaKeyEvent.systemCode') 14700 @DocsEditable
14701 @DomName('MediaKeyEvent.systemCode')
13727 final int systemCode; 14702 final int systemCode;
13728 } 14703 }
13729 // 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
13730 // 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
13731 // BSD-style license that can be found in the LICENSE file. 14706 // BSD-style license that can be found in the LICENSE file.
13732 14707
13733 14708
13734 14709
13735 @DocsEditable 14710 @DocsEditable
13736 @DomName('MediaList') 14711 @DomName('MediaList')
13737 class MediaList native "*MediaList" { 14712 class MediaList native "*MediaList" {
13738 14713
13739 @DocsEditable @DomName('MediaList.length') 14714 @DocsEditable
14715 @DomName('MediaList.length')
13740 final int length; 14716 final int length;
13741 14717
13742 @DocsEditable @DomName('MediaList.mediaText') 14718 @DocsEditable
14719 @DomName('MediaList.mediaText')
13743 String mediaText; 14720 String mediaText;
13744 14721
13745 @DocsEditable @DomName('MediaList.appendMedium') 14722 @DocsEditable
14723 @DomName('MediaList.appendMedium')
13746 void appendMedium(String newMedium) native; 14724 void appendMedium(String newMedium) native;
13747 14725
13748 @DocsEditable @DomName('MediaList.deleteMedium') 14726 @DocsEditable
14727 @DomName('MediaList.deleteMedium')
13749 void deleteMedium(String oldMedium) native; 14728 void deleteMedium(String oldMedium) native;
13750 14729
13751 @DocsEditable @DomName('MediaList.item') 14730 @DocsEditable
14731 @DomName('MediaList.item')
13752 String item(int index) native; 14732 String item(int index) native;
13753 } 14733 }
13754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14734 // 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 14735 // 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. 14736 // BSD-style license that can be found in the LICENSE file.
13757 14737
13758 14738
13759 14739
13760 @DocsEditable 14740 @DocsEditable
13761 @DomName('MediaQueryList') 14741 @DomName('MediaQueryList')
13762 class MediaQueryList native "*MediaQueryList" { 14742 class MediaQueryList native "*MediaQueryList" {
13763 14743
13764 @DocsEditable @DomName('MediaQueryList.matches') 14744 @DocsEditable
14745 @DomName('MediaQueryList.matches')
13765 final bool matches; 14746 final bool matches;
13766 14747
13767 @DocsEditable @DomName('MediaQueryList.media') 14748 @DocsEditable
14749 @DomName('MediaQueryList.media')
13768 final String media; 14750 final String media;
13769 14751
13770 @DocsEditable @DomName('MediaQueryList.addListener') 14752 @DocsEditable
14753 @DomName('MediaQueryList.addListener')
13771 void addListener(MediaQueryListListener listener) native; 14754 void addListener(MediaQueryListListener listener) native;
13772 14755
13773 @DocsEditable @DomName('MediaQueryList.removeListener') 14756 @DocsEditable
14757 @DomName('MediaQueryList.removeListener')
13774 void removeListener(MediaQueryListListener listener) native; 14758 void removeListener(MediaQueryListListener listener) native;
13775 } 14759 }
13776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13777 // for details. All rights reserved. Use of this source code is governed by a 14761 // for details. All rights reserved. Use of this source code is governed by a
13778 // BSD-style license that can be found in the LICENSE file. 14762 // BSD-style license that can be found in the LICENSE file.
13779 14763
13780 14764
13781 @DocsEditable 14765 @DocsEditable
13782 @DomName('MediaQueryListListener') 14766 @DomName('MediaQueryListListener')
13783 abstract class MediaQueryListListener { 14767 abstract class MediaQueryListListener {
13784 14768
13785 void queryChanged(MediaQueryList list); 14769 void queryChanged(MediaQueryList list);
13786 } 14770 }
13787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13788 // for details. All rights reserved. Use of this source code is governed by a 14772 // for details. All rights reserved. Use of this source code is governed by a
13789 // BSD-style license that can be found in the LICENSE file. 14773 // BSD-style license that can be found in the LICENSE file.
13790 14774
13791 14775
13792 14776
13793 @DocsEditable 14777 @DocsEditable
13794 @DomName('MediaSource') 14778 @DomName('MediaSource')
13795 class MediaSource extends EventTarget native "*MediaSource" { 14779 class MediaSource extends EventTarget native "*MediaSource" {
13796 14780
13797 @DocsEditable 14781 @DocsEditable
13798 factory MediaSource() => MediaSource._create(); 14782 factory MediaSource() => MediaSource._create();
13799 static MediaSource _create() => JS('MediaSource', 'new MediaSource()'); 14783 static MediaSource _create() => JS('MediaSource', 'new MediaSource()');
13800 14784
13801 @DocsEditable @DomName('MediaSource.activeSourceBuffers') 14785 @DocsEditable
14786 @DomName('MediaSource.activeSourceBuffers')
13802 final SourceBufferList activeSourceBuffers; 14787 final SourceBufferList activeSourceBuffers;
13803 14788
13804 @DocsEditable @DomName('MediaSource.duration') 14789 @DocsEditable
14790 @DomName('MediaSource.duration')
13805 num duration; 14791 num duration;
13806 14792
13807 @DocsEditable @DomName('MediaSource.readyState') 14793 @DocsEditable
14794 @DomName('MediaSource.readyState')
13808 final String readyState; 14795 final String readyState;
13809 14796
13810 @DocsEditable @DomName('MediaSource.sourceBuffers') 14797 @DocsEditable
14798 @DomName('MediaSource.sourceBuffers')
13811 final SourceBufferList sourceBuffers; 14799 final SourceBufferList sourceBuffers;
13812 14800
13813 @JSName('addEventListener') 14801 @JSName('addEventListener')
13814 @DocsEditable @DomName('MediaSource.addEventListener') 14802 @DocsEditable
14803 @DomName('MediaSource.addEventListener')
13815 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14804 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
13816 14805
13817 @DocsEditable @DomName('MediaSource.addSourceBuffer') 14806 @DocsEditable
14807 @DomName('MediaSource.addSourceBuffer')
13818 SourceBuffer addSourceBuffer(String type) native; 14808 SourceBuffer addSourceBuffer(String type) native;
13819 14809
13820 @JSName('dispatchEvent') 14810 @JSName('dispatchEvent')
13821 @DocsEditable @DomName('MediaSource.dispatchEvent') 14811 @DocsEditable
14812 @DomName('MediaSource.dispatchEvent')
13822 bool $dom_dispatchEvent(Event event) native; 14813 bool $dom_dispatchEvent(Event event) native;
13823 14814
13824 @DocsEditable @DomName('MediaSource.endOfStream') 14815 @DocsEditable
14816 @DomName('MediaSource.endOfStream')
13825 void endOfStream(String error) native; 14817 void endOfStream(String error) native;
13826 14818
13827 @JSName('removeEventListener') 14819 @JSName('removeEventListener')
13828 @DocsEditable @DomName('MediaSource.removeEventListener') 14820 @DocsEditable
14821 @DomName('MediaSource.removeEventListener')
13829 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 14822 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
13830 14823
13831 @DocsEditable @DomName('MediaSource.removeSourceBuffer') 14824 @DocsEditable
14825 @DomName('MediaSource.removeSourceBuffer')
13832 void removeSourceBuffer(SourceBuffer buffer) native; 14826 void removeSourceBuffer(SourceBuffer buffer) native;
13833 } 14827 }
13834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13835 // for details. All rights reserved. Use of this source code is governed by a 14829 // for details. All rights reserved. Use of this source code is governed by a
13836 // BSD-style license that can be found in the LICENSE file. 14830 // BSD-style license that can be found in the LICENSE file.
13837 14831
13838 14832
13839 14833
13840 @DocsEditable 14834 @DocsEditable
13841 @DomName('MediaStream') 14835 @DomName('MediaStream')
13842 class MediaStream extends EventTarget native "*MediaStream" { 14836 class MediaStream extends EventTarget native "*MediaStream" {
13843 14837
13844 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14838 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
13845 14839
13846 @DocsEditable 14840 @DocsEditable
13847 factory MediaStream() => MediaStream._create(); 14841 factory MediaStream() => MediaStream._create();
13848 static MediaStream _create() => JS('MediaStream', 'new MediaStream()'); 14842 static MediaStream _create() => JS('MediaStream', 'new MediaStream()');
13849 14843
13850 @DocsEditable 14844 @DocsEditable
13851 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 14845 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
13852 MediaStreamEvents get on => 14846 MediaStreamEvents get on =>
13853 new MediaStreamEvents(this); 14847 new MediaStreamEvents(this);
13854 14848
13855 @DocsEditable @DomName('MediaStream.ended') 14849 @DocsEditable
14850 @DomName('MediaStream.ended')
13856 final bool ended; 14851 final bool ended;
13857 14852
13858 @DocsEditable @DomName('MediaStream.id') 14853 @DocsEditable
14854 @DomName('MediaStream.id')
13859 final String id; 14855 final String id;
13860 14856
13861 @DocsEditable @DomName('MediaStream.label') 14857 @DocsEditable
14858 @DomName('MediaStream.label')
13862 final String label; 14859 final String label;
13863 14860
13864 @JSName('addEventListener') 14861 @JSName('addEventListener')
13865 @DocsEditable @DomName('MediaStream.addEventListener') 14862 @DocsEditable
14863 @DomName('MediaStream.addEventListener')
13866 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14864 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
13867 14865
13868 @DocsEditable @DomName('MediaStream.addTrack') 14866 @DocsEditable
14867 @DomName('MediaStream.addTrack')
13869 void addTrack(MediaStreamTrack track) native; 14868 void addTrack(MediaStreamTrack track) native;
13870 14869
13871 @JSName('dispatchEvent') 14870 @JSName('dispatchEvent')
13872 @DocsEditable @DomName('MediaStream.dispatchEvent') 14871 @DocsEditable
14872 @DomName('MediaStream.dispatchEvent')
13873 bool $dom_dispatchEvent(Event event) native; 14873 bool $dom_dispatchEvent(Event event) native;
13874 14874
13875 @DocsEditable @DomName('MediaStream.getAudioTracks') 14875 @DocsEditable
14876 @DomName('MediaStream.getAudioTracks')
13876 List<MediaStreamTrack> getAudioTracks() native; 14877 List<MediaStreamTrack> getAudioTracks() native;
13877 14878
13878 @DocsEditable @DomName('MediaStream.getTrackById') 14879 @DocsEditable
14880 @DomName('MediaStream.getTrackById')
13879 MediaStreamTrack getTrackById(String trackId) native; 14881 MediaStreamTrack getTrackById(String trackId) native;
13880 14882
13881 @DocsEditable @DomName('MediaStream.getVideoTracks') 14883 @DocsEditable
14884 @DomName('MediaStream.getVideoTracks')
13882 List<MediaStreamTrack> getVideoTracks() native; 14885 List<MediaStreamTrack> getVideoTracks() native;
13883 14886
13884 @JSName('removeEventListener') 14887 @JSName('removeEventListener')
13885 @DocsEditable @DomName('MediaStream.removeEventListener') 14888 @DocsEditable
14889 @DomName('MediaStream.removeEventListener')
13886 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 14890 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
13887 14891
13888 @DocsEditable @DomName('MediaStream.removeTrack') 14892 @DocsEditable
14893 @DomName('MediaStream.removeTrack')
13889 void removeTrack(MediaStreamTrack track) native; 14894 void removeTrack(MediaStreamTrack track) native;
13890 14895
13891 Stream<Event> get onEnded => endedEvent.forTarget(this); 14896 Stream<Event> get onEnded => endedEvent.forTarget(this);
13892 } 14897 }
13893 14898
13894 @DocsEditable 14899 @DocsEditable
13895 class MediaStreamEvents extends Events { 14900 class MediaStreamEvents extends Events {
13896 @DocsEditable 14901 @DocsEditable
13897 MediaStreamEvents(EventTarget _ptr) : super(_ptr); 14902 MediaStreamEvents(EventTarget _ptr) : super(_ptr);
13898 14903
13899 @DocsEditable 14904 @DocsEditable
13900 EventListenerList get addTrack => this['addtrack']; 14905 EventListenerList get addTrack => this['addtrack'];
13901 14906
13902 @DocsEditable 14907 @DocsEditable
13903 EventListenerList get ended => this['ended']; 14908 EventListenerList get ended => this['ended'];
13904 14909
13905 @DocsEditable 14910 @DocsEditable
13906 EventListenerList get removeTrack => this['removetrack']; 14911 EventListenerList get removeTrack => this['removetrack'];
13907 } 14912 }
13908 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13909 // for details. All rights reserved. Use of this source code is governed by a 14914 // for details. All rights reserved. Use of this source code is governed by a
13910 // BSD-style license that can be found in the LICENSE file. 14915 // BSD-style license that can be found in the LICENSE file.
13911 14916
13912 14917
13913 14918
13914 @DocsEditable 14919 @DocsEditable
13915 @DomName('MediaStreamEvent') 14920 @DomName('MediaStreamEvent')
13916 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 14921 class MediaStreamEvent extends Event native "*MediaStreamEvent" {
13917 14922
13918 @DocsEditable @DomName('MediaStreamEvent.stream') 14923 @DocsEditable
14924 @DomName('MediaStreamEvent.stream')
13919 final MediaStream stream; 14925 final MediaStream stream;
13920 } 14926 }
13921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14927 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13922 // for details. All rights reserved. Use of this source code is governed by a 14928 // for details. All rights reserved. Use of this source code is governed by a
13923 // BSD-style license that can be found in the LICENSE file. 14929 // BSD-style license that can be found in the LICENSE file.
13924 14930
13925 14931
13926 14932
13927 @DocsEditable 14933 @DocsEditable
13928 @DomName('MediaStreamTrack') 14934 @DomName('MediaStreamTrack')
13929 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { 14935 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" {
13930 14936
13931 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14937 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
13932 14938
13933 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute'); 14939 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute');
13934 14940
13935 static const EventStreamProvider<Event> unmuteEvent = const EventStreamProvide r<Event>('unmute'); 14941 static const EventStreamProvider<Event> unmuteEvent = const EventStreamProvide r<Event>('unmute');
13936 14942
13937 @DocsEditable 14943 @DocsEditable
13938 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 14944 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
13939 MediaStreamTrackEvents get on => 14945 MediaStreamTrackEvents get on =>
13940 new MediaStreamTrackEvents(this); 14946 new MediaStreamTrackEvents(this);
13941 14947
13942 static const int ENDED = 2; 14948 static const int ENDED = 2;
13943 14949
13944 static const int LIVE = 0; 14950 static const int LIVE = 0;
13945 14951
13946 static const int MUTED = 1; 14952 static const int MUTED = 1;
13947 14953
13948 @DocsEditable @DomName('MediaStreamTrack.enabled') 14954 @DocsEditable
14955 @DomName('MediaStreamTrack.enabled')
13949 bool enabled; 14956 bool enabled;
13950 14957
13951 @DocsEditable @DomName('MediaStreamTrack.id') 14958 @DocsEditable
14959 @DomName('MediaStreamTrack.id')
13952 final String id; 14960 final String id;
13953 14961
13954 @DocsEditable @DomName('MediaStreamTrack.kind') 14962 @DocsEditable
14963 @DomName('MediaStreamTrack.kind')
13955 final String kind; 14964 final String kind;
13956 14965
13957 @DocsEditable @DomName('MediaStreamTrack.label') 14966 @DocsEditable
14967 @DomName('MediaStreamTrack.label')
13958 final String label; 14968 final String label;
13959 14969
13960 @DocsEditable @DomName('MediaStreamTrack.readyState') 14970 @DocsEditable
14971 @DomName('MediaStreamTrack.readyState')
13961 final int readyState; 14972 final int readyState;
13962 14973
13963 @JSName('addEventListener') 14974 @JSName('addEventListener')
13964 @DocsEditable @DomName('MediaStreamTrack.addEventListener') 14975 @DocsEditable
14976 @DomName('MediaStreamTrack.addEventListener')
13965 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14977 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
13966 14978
13967 @JSName('dispatchEvent') 14979 @JSName('dispatchEvent')
13968 @DocsEditable @DomName('MediaStreamTrack.dispatchEvent') 14980 @DocsEditable
14981 @DomName('MediaStreamTrack.dispatchEvent')
13969 bool $dom_dispatchEvent(Event event) native; 14982 bool $dom_dispatchEvent(Event event) native;
13970 14983
13971 @JSName('removeEventListener') 14984 @JSName('removeEventListener')
13972 @DocsEditable @DomName('MediaStreamTrack.removeEventListener') 14985 @DocsEditable
14986 @DomName('MediaStreamTrack.removeEventListener')
13973 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 14987 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
13974 14988
13975 Stream<Event> get onEnded => endedEvent.forTarget(this); 14989 Stream<Event> get onEnded => endedEvent.forTarget(this);
13976 14990
13977 Stream<Event> get onMute => muteEvent.forTarget(this); 14991 Stream<Event> get onMute => muteEvent.forTarget(this);
13978 14992
13979 Stream<Event> get onUnmute => unmuteEvent.forTarget(this); 14993 Stream<Event> get onUnmute => unmuteEvent.forTarget(this);
13980 } 14994 }
13981 14995
13982 @DocsEditable 14996 @DocsEditable
(...skipping 13 matching lines...) Expand all
13996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13997 // for details. All rights reserved. Use of this source code is governed by a 15011 // for details. All rights reserved. Use of this source code is governed by a
13998 // BSD-style license that can be found in the LICENSE file. 15012 // BSD-style license that can be found in the LICENSE file.
13999 15013
14000 15014
14001 15015
14002 @DocsEditable 15016 @DocsEditable
14003 @DomName('MediaStreamTrackEvent') 15017 @DomName('MediaStreamTrackEvent')
14004 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { 15018 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" {
14005 15019
14006 @DocsEditable @DomName('MediaStreamTrackEvent.track') 15020 @DocsEditable
15021 @DomName('MediaStreamTrackEvent.track')
14007 final MediaStreamTrack track; 15022 final MediaStreamTrack track;
14008 } 15023 }
14009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15024 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14010 // for details. All rights reserved. Use of this source code is governed by a 15025 // for details. All rights reserved. Use of this source code is governed by a
14011 // BSD-style license that can be found in the LICENSE file. 15026 // BSD-style license that can be found in the LICENSE file.
14012 15027
14013 15028
14014 15029
14015 @DocsEditable 15030 @DocsEditable
14016 @DomName('MemoryInfo') 15031 @DomName('MemoryInfo')
14017 class MemoryInfo native "*MemoryInfo" { 15032 class MemoryInfo native "*MemoryInfo" {
14018 15033
14019 @DocsEditable @DomName('MemoryInfo.jsHeapSizeLimit') 15034 @DocsEditable
15035 @DomName('MemoryInfo.jsHeapSizeLimit')
14020 final int jsHeapSizeLimit; 15036 final int jsHeapSizeLimit;
14021 15037
14022 @DocsEditable @DomName('MemoryInfo.totalJSHeapSize') 15038 @DocsEditable
15039 @DomName('MemoryInfo.totalJSHeapSize')
14023 final int totalJSHeapSize; 15040 final int totalJSHeapSize;
14024 15041
14025 @DocsEditable @DomName('MemoryInfo.usedJSHeapSize') 15042 @DocsEditable
15043 @DomName('MemoryInfo.usedJSHeapSize')
14026 final int usedJSHeapSize; 15044 final int usedJSHeapSize;
14027 } 15045 }
14028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14029 // for details. All rights reserved. Use of this source code is governed by a 15047 // for details. All rights reserved. Use of this source code is governed by a
14030 // BSD-style license that can be found in the LICENSE file. 15048 // BSD-style license that can be found in the LICENSE file.
14031 15049
14032 15050
14033 15051
14034 @DocsEditable 15052 @DocsEditable
14035 @DomName('HTMLMenuElement') 15053 @DomName('HTMLMenuElement')
14036 class MenuElement extends Element native "*HTMLMenuElement" { 15054 class MenuElement extends Element native "*HTMLMenuElement" {
14037 15055
14038 @DocsEditable 15056 @DocsEditable
14039 factory MenuElement() => document.$dom_createElement("menu"); 15057 factory MenuElement() => document.$dom_createElement("menu");
14040 } 15058 }
14041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14042 // for details. All rights reserved. Use of this source code is governed by a 15060 // for details. All rights reserved. Use of this source code is governed by a
14043 // BSD-style license that can be found in the LICENSE file. 15061 // BSD-style license that can be found in the LICENSE file.
14044 15062
14045 15063
14046 15064
14047 @DocsEditable 15065 @DocsEditable
14048 @DomName('MessageChannel') 15066 @DomName('MessageChannel')
14049 class MessageChannel native "*MessageChannel" { 15067 class MessageChannel native "*MessageChannel" {
14050 15068
14051 @DocsEditable 15069 @DocsEditable
14052 factory MessageChannel() => MessageChannel._create(); 15070 factory MessageChannel() => MessageChannel._create();
14053 static MessageChannel _create() => JS('MessageChannel', 'new MessageChannel()' ); 15071 static MessageChannel _create() => JS('MessageChannel', 'new MessageChannel()' );
14054 15072
14055 @DocsEditable @DomName('MessageChannel.port1') 15073 @DocsEditable
15074 @DomName('MessageChannel.port1')
14056 final MessagePort port1; 15075 final MessagePort port1;
14057 15076
14058 @DocsEditable @DomName('MessageChannel.port2') 15077 @DocsEditable
15078 @DomName('MessageChannel.port2')
14059 final MessagePort port2; 15079 final MessagePort port2;
14060 } 15080 }
14061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14062 // for details. All rights reserved. Use of this source code is governed by a 15082 // for details. All rights reserved. Use of this source code is governed by a
14063 // BSD-style license that can be found in the LICENSE file. 15083 // BSD-style license that can be found in the LICENSE file.
14064 15084
14065 15085
14066 15086
14067 @DocsEditable 15087 @DocsEditable
14068 @DomName('MessageEvent') 15088 @DomName('MessageEvent')
14069 class MessageEvent extends Event native "*MessageEvent" { 15089 class MessageEvent extends Event native "*MessageEvent" {
14070 15090
14071 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data); 15091 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data);
14072 @JSName('data') 15092 @JSName('data')
14073 @DocsEditable @DomName('MessageEvent.data') @annotation_Creates_SerializedScri ptValue @annotation_Returns_SerializedScriptValue 15093 @DocsEditable
15094 @DomName('MessageEvent.data')
15095 @annotation_Creates_SerializedScriptValue
15096 @annotation_Returns_SerializedScriptValue
14074 final dynamic _data; 15097 final dynamic _data;
14075 15098
14076 @DocsEditable @DomName('MessageEvent.lastEventId') 15099 @DocsEditable
15100 @DomName('MessageEvent.lastEventId')
14077 final String lastEventId; 15101 final String lastEventId;
14078 15102
14079 @DocsEditable @DomName('MessageEvent.origin') 15103 @DocsEditable
15104 @DomName('MessageEvent.origin')
14080 final String origin; 15105 final String origin;
14081 15106
14082 @DocsEditable @DomName('MessageEvent.ports') @Creates('=List') 15107 @DocsEditable
15108 @DomName('MessageEvent.ports')
15109 @Creates('=List')
14083 final List ports; 15110 final List ports;
14084 15111
14085 WindowBase get source => _convertNativeToDart_Window(this._source); 15112 WindowBase get source => _convertNativeToDart_Window(this._source);
14086 @JSName('source') 15113 @JSName('source')
14087 @DocsEditable @DomName('MessageEvent.source') @Creates('Window|=Object') @Retu rns('Window|=Object') 15114 @DocsEditable
15115 @DomName('MessageEvent.source')
15116 @Creates('Window|=Object')
15117 @Returns('Window|=Object')
14088 final dynamic _source; 15118 final dynamic _source;
14089 15119
14090 @DocsEditable @DomName('MessageEvent.initMessageEvent') 15120 @DocsEditable
15121 @DomName('MessageEvent.initMessageEvent')
14091 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, Window sourceArg, List m essagePorts) native; 15122 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, Window sourceArg, List m essagePorts) native;
14092 15123
14093 @DocsEditable @DomName('MessageEvent.webkitInitMessageEvent') 15124 @DocsEditable
15125 @DomName('MessageEvent.webkitInitMessageEvent')
14094 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, List transferables) native; 15126 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, List transferables) native;
14095 } 15127 }
14096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14097 // for details. All rights reserved. Use of this source code is governed by a 15129 // for details. All rights reserved. Use of this source code is governed by a
14098 // BSD-style license that can be found in the LICENSE file. 15130 // BSD-style license that can be found in the LICENSE file.
14099 15131
14100 15132
14101 15133
14102 @DocsEditable 15134 @DocsEditable
14103 @DomName('MessagePort') 15135 @DomName('MessagePort')
14104 class MessagePort extends EventTarget native "*MessagePort" { 15136 class MessagePort extends EventTarget native "*MessagePort" {
14105 15137
14106 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 15138 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
14107 15139
14108 @DocsEditable 15140 @DocsEditable
14109 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 15141 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
14110 MessagePortEvents get on => 15142 MessagePortEvents get on =>
14111 new MessagePortEvents(this); 15143 new MessagePortEvents(this);
14112 15144
14113 @JSName('addEventListener') 15145 @JSName('addEventListener')
14114 @DocsEditable @DomName('MessagePort.addEventListener') 15146 @DocsEditable
15147 @DomName('MessagePort.addEventListener')
14115 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 15148 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14116 15149
14117 @DocsEditable @DomName('MessagePort.close') 15150 @DocsEditable
15151 @DomName('MessagePort.close')
14118 void close() native; 15152 void close() native;
14119 15153
14120 @JSName('dispatchEvent') 15154 @JSName('dispatchEvent')
14121 @DocsEditable @DomName('MessagePort.dispatchEvent') 15155 @DocsEditable
15156 @DomName('MessagePort.dispatchEvent')
14122 bool $dom_dispatchEvent(Event evt) native; 15157 bool $dom_dispatchEvent(Event evt) native;
14123 15158
14124 void postMessage(/*any*/ message, [List messagePorts]) { 15159 void postMessage(/*any*/ message, [List messagePorts]) {
14125 if (?messagePorts) { 15160 if (?messagePorts) {
14126 var message_1 = convertDartToNative_SerializedScriptValue(message); 15161 var message_1 = convertDartToNative_SerializedScriptValue(message);
14127 _postMessage_1(message_1, messagePorts); 15162 _postMessage_1(message_1, messagePorts);
14128 return; 15163 return;
14129 } 15164 }
14130 var message_2 = convertDartToNative_SerializedScriptValue(message); 15165 var message_2 = convertDartToNative_SerializedScriptValue(message);
14131 _postMessage_2(message_2); 15166 _postMessage_2(message_2);
14132 return; 15167 return;
14133 } 15168 }
14134 @JSName('postMessage') 15169 @JSName('postMessage')
14135 @DocsEditable @DomName('MessagePort.postMessage') 15170 @DocsEditable
15171 @DomName('MessagePort.postMessage')
14136 void _postMessage_1(message, List messagePorts) native; 15172 void _postMessage_1(message, List messagePorts) native;
14137 @JSName('postMessage') 15173 @JSName('postMessage')
14138 @DocsEditable @DomName('MessagePort.postMessage') 15174 @DocsEditable
15175 @DomName('MessagePort.postMessage')
14139 void _postMessage_2(message) native; 15176 void _postMessage_2(message) native;
14140 15177
14141 @JSName('removeEventListener') 15178 @JSName('removeEventListener')
14142 @DocsEditable @DomName('MessagePort.removeEventListener') 15179 @DocsEditable
15180 @DomName('MessagePort.removeEventListener')
14143 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 15181 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
14144 15182
14145 @DocsEditable @DomName('MessagePort.start') 15183 @DocsEditable
15184 @DomName('MessagePort.start')
14146 void start() native; 15185 void start() native;
14147 15186
14148 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 15187 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
14149 } 15188 }
14150 15189
14151 @DocsEditable 15190 @DocsEditable
14152 class MessagePortEvents extends Events { 15191 class MessagePortEvents extends Events {
14153 @DocsEditable 15192 @DocsEditable
14154 MessagePortEvents(EventTarget _ptr) : super(_ptr); 15193 MessagePortEvents(EventTarget _ptr) : super(_ptr);
14155 15194
14156 @DocsEditable 15195 @DocsEditable
14157 EventListenerList get message => this['message']; 15196 EventListenerList get message => this['message'];
14158 } 15197 }
14159 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14160 // for details. All rights reserved. Use of this source code is governed by a 15199 // for details. All rights reserved. Use of this source code is governed by a
14161 // BSD-style license that can be found in the LICENSE file. 15200 // BSD-style license that can be found in the LICENSE file.
14162 15201
14163 15202
14164 15203
14165 @DocsEditable 15204 @DocsEditable
14166 @DomName('HTMLMetaElement') 15205 @DomName('HTMLMetaElement')
14167 class MetaElement extends Element native "*HTMLMetaElement" { 15206 class MetaElement extends Element native "*HTMLMetaElement" {
14168 15207
14169 @DocsEditable @DomName('HTMLMetaElement.content') 15208 @DocsEditable
15209 @DomName('HTMLMetaElement.content')
14170 String content; 15210 String content;
14171 15211
14172 @DocsEditable @DomName('HTMLMetaElement.httpEquiv') 15212 @DocsEditable
15213 @DomName('HTMLMetaElement.httpEquiv')
14173 String httpEquiv; 15214 String httpEquiv;
14174 15215
14175 @DocsEditable @DomName('HTMLMetaElement.name') 15216 @DocsEditable
15217 @DomName('HTMLMetaElement.name')
14176 String name; 15218 String name;
14177 } 15219 }
14178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14179 // for details. All rights reserved. Use of this source code is governed by a 15221 // for details. All rights reserved. Use of this source code is governed by a
14180 // BSD-style license that can be found in the LICENSE file. 15222 // BSD-style license that can be found in the LICENSE file.
14181 15223
14182 15224
14183 15225
14184 @DocsEditable 15226 @DocsEditable
14185 @DomName('Metadata') 15227 @DomName('Metadata')
14186 class Metadata native "*Metadata" { 15228 class Metadata native "*Metadata" {
14187 15229
14188 @DocsEditable @DomName('Metadata.modificationTime') 15230 @DocsEditable
15231 @DomName('Metadata.modificationTime')
14189 final Date modificationTime; 15232 final Date modificationTime;
14190 15233
14191 @DocsEditable @DomName('Metadata.size') 15234 @DocsEditable
15235 @DomName('Metadata.size')
14192 final int size; 15236 final int size;
14193 } 15237 }
14194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14195 // for details. All rights reserved. Use of this source code is governed by a 15239 // for details. All rights reserved. Use of this source code is governed by a
14196 // BSD-style license that can be found in the LICENSE file. 15240 // BSD-style license that can be found in the LICENSE file.
14197 15241
14198 // WARNING: Do not edit - generated code. 15242 // WARNING: Do not edit - generated code.
14199 15243
14200 15244
14201 typedef void MetadataCallback(Metadata metadata); 15245 typedef void MetadataCallback(Metadata metadata);
14202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14203 // for details. All rights reserved. Use of this source code is governed by a 15247 // for details. All rights reserved. Use of this source code is governed by a
14204 // BSD-style license that can be found in the LICENSE file. 15248 // BSD-style license that can be found in the LICENSE file.
14205 15249
14206 15250
14207 15251
14208 @DocsEditable 15252 @DocsEditable
14209 @DomName('HTMLMeterElement') 15253 @DomName('HTMLMeterElement')
14210 @SupportedBrowser(SupportedBrowser.CHROME) 15254 @SupportedBrowser(SupportedBrowser.CHROME)
14211 @SupportedBrowser(SupportedBrowser.FIREFOX) 15255 @SupportedBrowser(SupportedBrowser.FIREFOX)
14212 @SupportedBrowser(SupportedBrowser.SAFARI) 15256 @SupportedBrowser(SupportedBrowser.SAFARI)
14213 class MeterElement extends Element native "*HTMLMeterElement" { 15257 class MeterElement extends Element native "*HTMLMeterElement" {
14214 15258
14215 @DocsEditable 15259 @DocsEditable
14216 factory MeterElement() => document.$dom_createElement("meter"); 15260 factory MeterElement() => document.$dom_createElement("meter");
14217 15261
14218 /// Checks if this type is supported on the current platform. 15262 /// Checks if this type is supported on the current platform.
14219 static bool get supported => Element.isTagSupported('meter'); 15263 static bool get supported => Element.isTagSupported('meter');
14220 15264
14221 @DocsEditable @DomName('HTMLMeterElement.high') 15265 @DocsEditable
15266 @DomName('HTMLMeterElement.high')
14222 num high; 15267 num high;
14223 15268
14224 @DocsEditable @DomName('HTMLMeterElement.labels') 15269 @DocsEditable
14225 @Returns('NodeList') @Creates('NodeList') 15270 @DomName('HTMLMeterElement.labels')
15271 @Returns('NodeList')
15272 @Creates('NodeList')
14226 final List<Node> labels; 15273 final List<Node> labels;
14227 15274
14228 @DocsEditable @DomName('HTMLMeterElement.low') 15275 @DocsEditable
15276 @DomName('HTMLMeterElement.low')
14229 num low; 15277 num low;
14230 15278
14231 @DocsEditable @DomName('HTMLMeterElement.max') 15279 @DocsEditable
15280 @DomName('HTMLMeterElement.max')
14232 num max; 15281 num max;
14233 15282
14234 @DocsEditable @DomName('HTMLMeterElement.min') 15283 @DocsEditable
15284 @DomName('HTMLMeterElement.min')
14235 num min; 15285 num min;
14236 15286
14237 @DocsEditable @DomName('HTMLMeterElement.optimum') 15287 @DocsEditable
15288 @DomName('HTMLMeterElement.optimum')
14238 num optimum; 15289 num optimum;
14239 15290
14240 @DocsEditable @DomName('HTMLMeterElement.value') 15291 @DocsEditable
15292 @DomName('HTMLMeterElement.value')
14241 num value; 15293 num value;
14242 } 15294 }
14243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14244 // for details. All rights reserved. Use of this source code is governed by a 15296 // for details. All rights reserved. Use of this source code is governed by a
14245 // BSD-style license that can be found in the LICENSE file. 15297 // BSD-style license that can be found in the LICENSE file.
14246 15298
14247 15299
14248 15300
14249 @DocsEditable 15301 @DocsEditable
14250 @DomName('HTMLModElement') 15302 @DomName('HTMLModElement')
14251 class ModElement extends Element native "*HTMLModElement" { 15303 class ModElement extends Element native "*HTMLModElement" {
14252 15304
14253 @DocsEditable @DomName('HTMLModElement.cite') 15305 @DocsEditable
15306 @DomName('HTMLModElement.cite')
14254 String cite; 15307 String cite;
14255 15308
14256 @DocsEditable @DomName('HTMLModElement.dateTime') 15309 @DocsEditable
15310 @DomName('HTMLModElement.dateTime')
14257 String dateTime; 15311 String dateTime;
14258 } 15312 }
14259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15313 // 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 15314 // 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. 15315 // BSD-style license that can be found in the LICENSE file.
14262 15316
14263 15317
14264 @DocsEditable 15318 @DocsEditable
14265 @DomName('MouseEvent') 15319 @DomName('MouseEvent')
14266 class MouseEvent extends UIEvent native "*MouseEvent" { 15320 class MouseEvent extends UIEvent native "*MouseEvent" {
14267 factory MouseEvent(String type, Window view, int detail, int screenX, 15321 factory MouseEvent(String type, Window view, int detail, int screenX,
14268 int screenY, int clientX, int clientY, int button, [bool canBubble = true, 15322 int screenY, int clientX, int clientY, int button, [bool canBubble = true,
14269 bool cancelable = true, bool ctrlKey = false, bool altKey = false, 15323 bool cancelable = true, bool ctrlKey = false, bool altKey = false,
14270 bool shiftKey = false, bool metaKey = false, 15324 bool shiftKey = false, bool metaKey = false,
14271 EventTarget relatedTarget = null]) => 15325 EventTarget relatedTarget = null]) =>
14272 _MouseEventFactoryProvider.createMouseEvent( 15326 _MouseEventFactoryProvider.createMouseEvent(
14273 type, view, detail, screenX, screenY, 15327 type, view, detail, screenX, screenY,
14274 clientX, clientY, button, canBubble, cancelable, 15328 clientX, clientY, button, canBubble, cancelable,
14275 ctrlKey, altKey, shiftKey, metaKey, 15329 ctrlKey, altKey, shiftKey, metaKey,
14276 relatedTarget); 15330 relatedTarget);
14277 15331
14278 @DocsEditable @DomName('MouseEvent.altKey') 15332 @DocsEditable
15333 @DomName('MouseEvent.altKey')
14279 final bool altKey; 15334 final bool altKey;
14280 15335
14281 @DocsEditable @DomName('MouseEvent.button') 15336 @DocsEditable
15337 @DomName('MouseEvent.button')
14282 final int button; 15338 final int button;
14283 15339
14284 @DocsEditable @DomName('MouseEvent.clientX') 15340 @DocsEditable
15341 @DomName('MouseEvent.clientX')
14285 final int clientX; 15342 final int clientX;
14286 15343
14287 @DocsEditable @DomName('MouseEvent.clientY') 15344 @DocsEditable
15345 @DomName('MouseEvent.clientY')
14288 final int clientY; 15346 final int clientY;
14289 15347
14290 @DocsEditable @DomName('MouseEvent.ctrlKey') 15348 @DocsEditable
15349 @DomName('MouseEvent.ctrlKey')
14291 final bool ctrlKey; 15350 final bool ctrlKey;
14292 15351
14293 @DocsEditable @DomName('MouseEvent.dataTransfer') 15352 @DocsEditable
15353 @DomName('MouseEvent.dataTransfer')
14294 final Clipboard dataTransfer; 15354 final Clipboard dataTransfer;
14295 15355
14296 @DocsEditable @DomName('MouseEvent.fromElement') 15356 @DocsEditable
15357 @DomName('MouseEvent.fromElement')
14297 final Node fromElement; 15358 final Node fromElement;
14298 15359
14299 @DocsEditable @DomName('MouseEvent.metaKey') 15360 @DocsEditable
15361 @DomName('MouseEvent.metaKey')
14300 final bool metaKey; 15362 final bool metaKey;
14301 15363
14302 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate dTarget); 15364 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate dTarget);
14303 @JSName('relatedTarget') 15365 @JSName('relatedTarget')
14304 @DocsEditable @DomName('MouseEvent.relatedTarget') @Creates('Node') @Returns(' EventTarget|=Object') 15366 @DocsEditable
15367 @DomName('MouseEvent.relatedTarget')
15368 @Creates('Node')
15369 @Returns('EventTarget|=Object')
14305 final dynamic _relatedTarget; 15370 final dynamic _relatedTarget;
14306 15371
14307 @DocsEditable @DomName('MouseEvent.screenX') 15372 @DocsEditable
15373 @DomName('MouseEvent.screenX')
14308 final int screenX; 15374 final int screenX;
14309 15375
14310 @DocsEditable @DomName('MouseEvent.screenY') 15376 @DocsEditable
15377 @DomName('MouseEvent.screenY')
14311 final int screenY; 15378 final int screenY;
14312 15379
14313 @DocsEditable @DomName('MouseEvent.shiftKey') 15380 @DocsEditable
15381 @DomName('MouseEvent.shiftKey')
14314 final bool shiftKey; 15382 final bool shiftKey;
14315 15383
14316 @DocsEditable @DomName('MouseEvent.toElement') 15384 @DocsEditable
15385 @DomName('MouseEvent.toElement')
14317 final Node toElement; 15386 final Node toElement;
14318 15387
14319 @DocsEditable @DomName('MouseEvent.webkitMovementX') 15388 @DocsEditable
15389 @DomName('MouseEvent.webkitMovementX')
14320 final int webkitMovementX; 15390 final int webkitMovementX;
14321 15391
14322 @DocsEditable @DomName('MouseEvent.webkitMovementY') 15392 @DocsEditable
15393 @DomName('MouseEvent.webkitMovementY')
14323 final int webkitMovementY; 15394 final int webkitMovementY;
14324 15395
14325 @DocsEditable @DomName('MouseEvent.x') 15396 @DocsEditable
15397 @DomName('MouseEvent.x')
14326 final int x; 15398 final int x;
14327 15399
14328 @DocsEditable @DomName('MouseEvent.y') 15400 @DocsEditable
15401 @DomName('MouseEvent.y')
14329 final int y; 15402 final int y;
14330 15403
14331 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar get) { 15404 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar get) {
14332 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); 15405 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget);
14333 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar get_1); 15406 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar get_1);
14334 return; 15407 return;
14335 } 15408 }
14336 @JSName('initMouseEvent') 15409 @JSName('initMouseEvent')
14337 @DocsEditable @DomName('MouseEvent.initMouseEvent') 15410 @DocsEditable
15411 @DomName('MouseEvent.initMouseEvent')
14338 void _$dom_initMouseEvent_1(type, canBubble, cancelable, Window view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native; 15412 void _$dom_initMouseEvent_1(type, canBubble, cancelable, Window view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native;
14339 15413
14340 15414
14341 int get offsetX { 15415 int get offsetX {
14342 if (JS('bool', '!!#.offsetX', this)) { 15416 if (JS('bool', '!!#.offsetX', this)) {
14343 return JS('int', '#.offsetX', this); 15417 return JS('int', '#.offsetX', this);
14344 } else { 15418 } else {
14345 // Firefox does not support offsetX. 15419 // Firefox does not support offsetX.
14346 var target = this.target; 15420 var target = this.target;
14347 if (!(target is Element)) { 15421 if (!(target is Element)) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
14383 @DocsEditable 15457 @DocsEditable
14384 @DomName('MutationEvent') 15458 @DomName('MutationEvent')
14385 class MutationEvent extends Event native "*MutationEvent" { 15459 class MutationEvent extends Event native "*MutationEvent" {
14386 15460
14387 static const int ADDITION = 2; 15461 static const int ADDITION = 2;
14388 15462
14389 static const int MODIFICATION = 1; 15463 static const int MODIFICATION = 1;
14390 15464
14391 static const int REMOVAL = 3; 15465 static const int REMOVAL = 3;
14392 15466
14393 @DocsEditable @DomName('MutationEvent.attrChange') 15467 @DocsEditable
15468 @DomName('MutationEvent.attrChange')
14394 final int attrChange; 15469 final int attrChange;
14395 15470
14396 @DocsEditable @DomName('MutationEvent.attrName') 15471 @DocsEditable
15472 @DomName('MutationEvent.attrName')
14397 final String attrName; 15473 final String attrName;
14398 15474
14399 @DocsEditable @DomName('MutationEvent.newValue') 15475 @DocsEditable
15476 @DomName('MutationEvent.newValue')
14400 final String newValue; 15477 final String newValue;
14401 15478
14402 @DocsEditable @DomName('MutationEvent.prevValue') 15479 @DocsEditable
15480 @DomName('MutationEvent.prevValue')
14403 final String prevValue; 15481 final String prevValue;
14404 15482
14405 @DocsEditable @DomName('MutationEvent.relatedNode') 15483 @DocsEditable
15484 @DomName('MutationEvent.relatedNode')
14406 final Node relatedNode; 15485 final Node relatedNode;
14407 15486
14408 @DocsEditable @DomName('MutationEvent.initMutationEvent') 15487 @DocsEditable
15488 @DomName('MutationEvent.initMutationEvent')
14409 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive; 15489 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive;
14410 } 15490 }
14411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14412 // for details. All rights reserved. Use of this source code is governed by a 15492 // for details. All rights reserved. Use of this source code is governed by a
14413 // BSD-style license that can be found in the LICENSE file. 15493 // BSD-style license that can be found in the LICENSE file.
14414 15494
14415 15495
14416 @DocsEditable 15496 @DocsEditable
14417 @DomName('MutationObserver') 15497 @DomName('MutationObserver')
14418 @SupportedBrowser(SupportedBrowser.CHROME) 15498 @SupportedBrowser(SupportedBrowser.CHROME)
14419 @SupportedBrowser(SupportedBrowser.FIREFOX) 15499 @SupportedBrowser(SupportedBrowser.FIREFOX)
14420 @SupportedBrowser(SupportedBrowser.SAFARI) 15500 @SupportedBrowser(SupportedBrowser.SAFARI)
14421 @Experimental() 15501 @Experimental()
14422 class MutationObserver native "*MutationObserver" { 15502 class MutationObserver native "*MutationObserver" {
14423 15503
14424 @DocsEditable 15504 @DocsEditable
14425 factory MutationObserver(MutationCallback callback) => MutationObserver._creat e(callback); 15505 factory MutationObserver(MutationCallback callback) => MutationObserver._creat e(callback);
14426 15506
14427 @DocsEditable @DomName('MutationObserver.disconnect') 15507 @DocsEditable
15508 @DomName('MutationObserver.disconnect')
14428 void disconnect() native; 15509 void disconnect() native;
14429 15510
14430 void _observe(Node target, Map options) { 15511 void _observe(Node target, Map options) {
14431 var options_1 = convertDartToNative_Dictionary(options); 15512 var options_1 = convertDartToNative_Dictionary(options);
14432 __observe_1(target, options_1); 15513 __observe_1(target, options_1);
14433 return; 15514 return;
14434 } 15515 }
14435 @JSName('observe') 15516 @JSName('observe')
14436 @DocsEditable @DomName('MutationObserver.observe') 15517 @DocsEditable
15518 @DomName('MutationObserver.observe')
14437 void __observe_1(Node target, options) native; 15519 void __observe_1(Node target, options) native;
14438 15520
14439 @DocsEditable @DomName('MutationObserver.takeRecords') 15521 @DocsEditable
15522 @DomName('MutationObserver.takeRecords')
14440 List<MutationRecord> takeRecords() native; 15523 List<MutationRecord> takeRecords() native;
14441 15524
14442 /** 15525 /**
14443 * Checks to see if the mutation observer API is supported on the current 15526 * Checks to see if the mutation observer API is supported on the current
14444 * platform. 15527 * platform.
14445 */ 15528 */
14446 static bool get supported { 15529 static bool get supported {
14447 return JS('bool', 15530 return JS('bool',
14448 '!!(window.MutationObserver || window.WebKitMutationObserver)'); 15531 '!!(window.MutationObserver || window.WebKitMutationObserver)');
14449 } 15532 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
14523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14524 // for details. All rights reserved. Use of this source code is governed by a 15607 // for details. All rights reserved. Use of this source code is governed by a
14525 // BSD-style license that can be found in the LICENSE file. 15608 // BSD-style license that can be found in the LICENSE file.
14526 15609
14527 15610
14528 15611
14529 @DocsEditable 15612 @DocsEditable
14530 @DomName('MutationRecord') 15613 @DomName('MutationRecord')
14531 class MutationRecord native "*MutationRecord" { 15614 class MutationRecord native "*MutationRecord" {
14532 15615
14533 @DocsEditable @DomName('MutationRecord.addedNodes') 15616 @DocsEditable
14534 @Returns('NodeList') @Creates('NodeList') 15617 @DomName('MutationRecord.addedNodes')
15618 @Returns('NodeList')
15619 @Creates('NodeList')
14535 final List<Node> addedNodes; 15620 final List<Node> addedNodes;
14536 15621
14537 @DocsEditable @DomName('MutationRecord.attributeName') 15622 @DocsEditable
15623 @DomName('MutationRecord.attributeName')
14538 final String attributeName; 15624 final String attributeName;
14539 15625
14540 @DocsEditable @DomName('MutationRecord.attributeNamespace') 15626 @DocsEditable
15627 @DomName('MutationRecord.attributeNamespace')
14541 final String attributeNamespace; 15628 final String attributeNamespace;
14542 15629
14543 @DocsEditable @DomName('MutationRecord.nextSibling') 15630 @DocsEditable
15631 @DomName('MutationRecord.nextSibling')
14544 final Node nextSibling; 15632 final Node nextSibling;
14545 15633
14546 @DocsEditable @DomName('MutationRecord.oldValue') 15634 @DocsEditable
15635 @DomName('MutationRecord.oldValue')
14547 final String oldValue; 15636 final String oldValue;
14548 15637
14549 @DocsEditable @DomName('MutationRecord.previousSibling') 15638 @DocsEditable
15639 @DomName('MutationRecord.previousSibling')
14550 final Node previousSibling; 15640 final Node previousSibling;
14551 15641
14552 @DocsEditable @DomName('MutationRecord.removedNodes') 15642 @DocsEditable
14553 @Returns('NodeList') @Creates('NodeList') 15643 @DomName('MutationRecord.removedNodes')
15644 @Returns('NodeList')
15645 @Creates('NodeList')
14554 final List<Node> removedNodes; 15646 final List<Node> removedNodes;
14555 15647
14556 @DocsEditable @DomName('MutationRecord.target') 15648 @DocsEditable
15649 @DomName('MutationRecord.target')
14557 final Node target; 15650 final Node target;
14558 15651
14559 @DocsEditable @DomName('MutationRecord.type') 15652 @DocsEditable
15653 @DomName('MutationRecord.type')
14560 final String type; 15654 final String type;
14561 } 15655 }
14562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14563 // for details. All rights reserved. Use of this source code is governed by a 15657 // for details. All rights reserved. Use of this source code is governed by a
14564 // BSD-style license that can be found in the LICENSE file. 15658 // BSD-style license that can be found in the LICENSE file.
14565 15659
14566 15660
14567 15661
14568 @DocsEditable 15662 @DocsEditable
14569 @DomName('NamedNodeMap') 15663 @DomName('NamedNodeMap')
14570 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na medNodeMap" { 15664 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na medNodeMap" {
14571 15665
14572 @DocsEditable @DomName('NamedNodeMap.length') 15666 @DocsEditable
15667 @DomName('NamedNodeMap.length')
14573 int get length => JS("int", "#.length", this); 15668 int get length => JS("int", "#.length", this);
14574 15669
14575 Node operator[](int index) => JS("Node", "#[#]", this, index); 15670 Node operator[](int index) => JS("Node", "#[#]", this, index);
14576 15671
14577 void operator[]=(int index, Node value) { 15672 void operator[]=(int index, Node value) {
14578 throw new UnsupportedError("Cannot assign element of immutable List."); 15673 throw new UnsupportedError("Cannot assign element of immutable List.");
14579 } 15674 }
14580 // -- start List<Node> mixins. 15675 // -- start List<Node> mixins.
14581 // Node is the element type. 15676 // Node is the element type.
14582 15677
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
14713 15808
14714 void insertRange(int start, int rangeLength, [Node initialValue]) { 15809 void insertRange(int start, int rangeLength, [Node initialValue]) {
14715 throw new UnsupportedError("Cannot insertRange on immutable List."); 15810 throw new UnsupportedError("Cannot insertRange on immutable List.");
14716 } 15811 }
14717 15812
14718 List<Node> getRange(int start, int rangeLength) => 15813 List<Node> getRange(int start, int rangeLength) =>
14719 Lists.getRange(this, start, rangeLength, <Node>[]); 15814 Lists.getRange(this, start, rangeLength, <Node>[]);
14720 15815
14721 // -- end List<Node> mixins. 15816 // -- end List<Node> mixins.
14722 15817
14723 @DocsEditable @DomName('NamedNodeMap.getNamedItem') 15818 @DocsEditable
15819 @DomName('NamedNodeMap.getNamedItem')
14724 Node getNamedItem(String name) native; 15820 Node getNamedItem(String name) native;
14725 15821
14726 @DocsEditable @DomName('NamedNodeMap.getNamedItemNS') 15822 @DocsEditable
15823 @DomName('NamedNodeMap.getNamedItemNS')
14727 Node getNamedItemNS(String namespaceURI, String localName) native; 15824 Node getNamedItemNS(String namespaceURI, String localName) native;
14728 15825
14729 @DocsEditable @DomName('NamedNodeMap.item') 15826 @DocsEditable
15827 @DomName('NamedNodeMap.item')
14730 Node item(int index) native; 15828 Node item(int index) native;
14731 15829
14732 @DocsEditable @DomName('NamedNodeMap.removeNamedItem') 15830 @DocsEditable
15831 @DomName('NamedNodeMap.removeNamedItem')
14733 Node removeNamedItem(String name) native; 15832 Node removeNamedItem(String name) native;
14734 15833
14735 @DocsEditable @DomName('NamedNodeMap.removeNamedItemNS') 15834 @DocsEditable
15835 @DomName('NamedNodeMap.removeNamedItemNS')
14736 Node removeNamedItemNS(String namespaceURI, String localName) native; 15836 Node removeNamedItemNS(String namespaceURI, String localName) native;
14737 15837
14738 @DocsEditable @DomName('NamedNodeMap.setNamedItem') 15838 @DocsEditable
15839 @DomName('NamedNodeMap.setNamedItem')
14739 Node setNamedItem(Node node) native; 15840 Node setNamedItem(Node node) native;
14740 15841
14741 @DocsEditable @DomName('NamedNodeMap.setNamedItemNS') 15842 @DocsEditable
15843 @DomName('NamedNodeMap.setNamedItemNS')
14742 Node setNamedItemNS(Node node) native; 15844 Node setNamedItemNS(Node node) native;
14743 } 15845 }
14744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14745 // for details. All rights reserved. Use of this source code is governed by a 15847 // for details. All rights reserved. Use of this source code is governed by a
14746 // BSD-style license that can be found in the LICENSE file. 15848 // BSD-style license that can be found in the LICENSE file.
14747 15849
14748 15850
14749 @DocsEditable 15851 @DocsEditable
14750 @DomName('Navigator') 15852 @DomName('Navigator')
14751 class Navigator native "*Navigator" { 15853 class Navigator native "*Navigator" {
14752 15854
14753 @DomName('Navigator.language') 15855 @DomName('Navigator.language')
14754 String get language => JS('String', '#.language || #.userLanguage', this, 15856 String get language => JS('String', '#.language || #.userLanguage', this,
14755 this); 15857 this);
14756 15858
14757 @DocsEditable @DomName('Navigator.appCodeName') 15859 @DocsEditable
15860 @DomName('Navigator.appCodeName')
14758 final String appCodeName; 15861 final String appCodeName;
14759 15862
14760 @DocsEditable @DomName('Navigator.appName') 15863 @DocsEditable
15864 @DomName('Navigator.appName')
14761 final String appName; 15865 final String appName;
14762 15866
14763 @DocsEditable @DomName('Navigator.appVersion') 15867 @DocsEditable
15868 @DomName('Navigator.appVersion')
14764 final String appVersion; 15869 final String appVersion;
14765 15870
14766 @DocsEditable @DomName('Navigator.cookieEnabled') 15871 @DocsEditable
15872 @DomName('Navigator.cookieEnabled')
14767 final bool cookieEnabled; 15873 final bool cookieEnabled;
14768 15874
14769 @DocsEditable @DomName('Navigator.geolocation') 15875 @DocsEditable
15876 @DomName('Navigator.geolocation')
14770 final Geolocation geolocation; 15877 final Geolocation geolocation;
14771 15878
14772 @DocsEditable @DomName('Navigator.mimeTypes') 15879 @DocsEditable
15880 @DomName('Navigator.mimeTypes')
14773 final DomMimeTypeArray mimeTypes; 15881 final DomMimeTypeArray mimeTypes;
14774 15882
14775 @DocsEditable @DomName('Navigator.onLine') 15883 @DocsEditable
15884 @DomName('Navigator.onLine')
14776 final bool onLine; 15885 final bool onLine;
14777 15886
14778 @DocsEditable @DomName('Navigator.platform') 15887 @DocsEditable
15888 @DomName('Navigator.platform')
14779 final String platform; 15889 final String platform;
14780 15890
14781 @DocsEditable @DomName('Navigator.plugins') 15891 @DocsEditable
15892 @DomName('Navigator.plugins')
14782 final DomPluginArray plugins; 15893 final DomPluginArray plugins;
14783 15894
14784 @DocsEditable @DomName('Navigator.product') 15895 @DocsEditable
15896 @DomName('Navigator.product')
14785 final String product; 15897 final String product;
14786 15898
14787 @DocsEditable @DomName('Navigator.productSub') 15899 @DocsEditable
15900 @DomName('Navigator.productSub')
14788 final String productSub; 15901 final String productSub;
14789 15902
14790 @DocsEditable @DomName('Navigator.userAgent') 15903 @DocsEditable
15904 @DomName('Navigator.userAgent')
14791 final String userAgent; 15905 final String userAgent;
14792 15906
14793 @DocsEditable @DomName('Navigator.vendor') 15907 @DocsEditable
15908 @DomName('Navigator.vendor')
14794 final String vendor; 15909 final String vendor;
14795 15910
14796 @DocsEditable @DomName('Navigator.vendorSub') 15911 @DocsEditable
15912 @DomName('Navigator.vendorSub')
14797 final String vendorSub; 15913 final String vendorSub;
14798 15914
14799 @DocsEditable @DomName('Navigator.webkitBattery') 15915 @DocsEditable
15916 @DomName('Navigator.webkitBattery')
14800 final BatteryManager webkitBattery; 15917 final BatteryManager webkitBattery;
14801 15918
14802 @DocsEditable @DomName('Navigator.getStorageUpdates') 15919 @DocsEditable
15920 @DomName('Navigator.getStorageUpdates')
14803 void getStorageUpdates() native; 15921 void getStorageUpdates() native;
14804 15922
14805 @DocsEditable @DomName('Navigator.javaEnabled') 15923 @DocsEditable
15924 @DomName('Navigator.javaEnabled')
14806 bool javaEnabled() native; 15925 bool javaEnabled() native;
14807 15926
14808 @DocsEditable @DomName('Navigator.webkitGetGamepads') 15927 @DocsEditable
14809 @Returns('_GamepadList') @Creates('_GamepadList') 15928 @DomName('Navigator.webkitGetGamepads')
15929 @Returns('_GamepadList')
15930 @Creates('_GamepadList')
14810 List<Gamepad> webkitGetGamepads() native; 15931 List<Gamepad> webkitGetGamepads() native;
14811 15932
14812 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) { 15933 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) {
14813 if (?errorCallback) { 15934 if (?errorCallback) {
14814 var options_1 = convertDartToNative_Dictionary(options); 15935 var options_1 = convertDartToNative_Dictionary(options);
14815 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); 15936 _webkitGetUserMedia_1(options_1, successCallback, errorCallback);
14816 return; 15937 return;
14817 } 15938 }
14818 var options_2 = convertDartToNative_Dictionary(options); 15939 var options_2 = convertDartToNative_Dictionary(options);
14819 _webkitGetUserMedia_2(options_2, successCallback); 15940 _webkitGetUserMedia_2(options_2, successCallback);
14820 return; 15941 return;
14821 } 15942 }
14822 @JSName('webkitGetUserMedia') 15943 @JSName('webkitGetUserMedia')
14823 @DocsEditable @DomName('Navigator.webkitGetUserMedia') 15944 @DocsEditable
15945 @DomName('Navigator.webkitGetUserMedia')
14824 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native; 15946 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native;
14825 @JSName('webkitGetUserMedia') 15947 @JSName('webkitGetUserMedia')
14826 @DocsEditable @DomName('Navigator.webkitGetUserMedia') 15948 @DocsEditable
15949 @DomName('Navigator.webkitGetUserMedia')
14827 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native; 15950 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native;
14828 15951
14829 } 15952 }
14830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14831 // for details. All rights reserved. Use of this source code is governed by a 15954 // for details. All rights reserved. Use of this source code is governed by a
14832 // BSD-style license that can be found in the LICENSE file. 15955 // BSD-style license that can be found in the LICENSE file.
14833 15956
14834 15957
14835 15958
14836 @DocsEditable 15959 @DocsEditable
14837 @DomName('NavigatorUserMediaError') 15960 @DomName('NavigatorUserMediaError')
14838 class NavigatorUserMediaError native "*NavigatorUserMediaError" { 15961 class NavigatorUserMediaError native "*NavigatorUserMediaError" {
14839 15962
14840 static const int PERMISSION_DENIED = 1; 15963 static const int PERMISSION_DENIED = 1;
14841 15964
14842 @DocsEditable @DomName('NavigatorUserMediaError.code') 15965 @DocsEditable
15966 @DomName('NavigatorUserMediaError.code')
14843 final int code; 15967 final int code;
14844 } 15968 }
14845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14846 // for details. All rights reserved. Use of this source code is governed by a 15970 // for details. All rights reserved. Use of this source code is governed by a
14847 // BSD-style license that can be found in the LICENSE file. 15971 // BSD-style license that can be found in the LICENSE file.
14848 15972
14849 // WARNING: Do not edit - generated code. 15973 // WARNING: Do not edit - generated code.
14850 15974
14851 15975
14852 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); 15976 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
15087 final Node parent = this.parentNode; 16211 final Node parent = this.parentNode;
15088 parent.$dom_replaceChild(otherNode, this); 16212 parent.$dom_replaceChild(otherNode, this);
15089 } catch (e) { 16213 } catch (e) {
15090 16214
15091 }; 16215 };
15092 return this; 16216 return this;
15093 } 16217 }
15094 16218
15095 16219
15096 @JSName('attributes') 16220 @JSName('attributes')
15097 @DocsEditable @DomName('Node.attributes') 16221 @DocsEditable
16222 @DomName('Node.attributes')
15098 final NamedNodeMap $dom_attributes; 16223 final NamedNodeMap $dom_attributes;
15099 16224
15100 @JSName('childNodes') 16225 @JSName('childNodes')
15101 @DocsEditable @DomName('Node.childNodes') 16226 @DocsEditable
15102 @Returns('NodeList') @Creates('NodeList') 16227 @DomName('Node.childNodes')
16228 @Returns('NodeList')
16229 @Creates('NodeList')
15103 final List<Node> $dom_childNodes; 16230 final List<Node> $dom_childNodes;
15104 16231
15105 @JSName('firstChild') 16232 @JSName('firstChild')
15106 @DocsEditable @DomName('Node.firstChild') 16233 @DocsEditable
16234 @DomName('Node.firstChild')
15107 final Node $dom_firstChild; 16235 final Node $dom_firstChild;
15108 16236
15109 @JSName('lastChild') 16237 @JSName('lastChild')
15110 @DocsEditable @DomName('Node.lastChild') 16238 @DocsEditable
16239 @DomName('Node.lastChild')
15111 final Node $dom_lastChild; 16240 final Node $dom_lastChild;
15112 16241
15113 @JSName('localName') 16242 @JSName('localName')
15114 @DocsEditable @DomName('Node.localName') 16243 @DocsEditable
16244 @DomName('Node.localName')
15115 final String $dom_localName; 16245 final String $dom_localName;
15116 16246
15117 @JSName('namespaceURI') 16247 @JSName('namespaceURI')
15118 @DocsEditable @DomName('Node.namespaceURI') 16248 @DocsEditable
16249 @DomName('Node.namespaceURI')
15119 final String $dom_namespaceUri; 16250 final String $dom_namespaceUri;
15120 16251
15121 @JSName('nextSibling') 16252 @JSName('nextSibling')
15122 @DocsEditable @DomName('Node.nextSibling') 16253 @DocsEditable
16254 @DomName('Node.nextSibling')
15123 final Node nextNode; 16255 final Node nextNode;
15124 16256
15125 @DocsEditable @DomName('Node.nodeType') 16257 @DocsEditable
16258 @DomName('Node.nodeType')
15126 final int nodeType; 16259 final int nodeType;
15127 16260
15128 @DocsEditable @DomName('Node.nodeValue') 16261 @DocsEditable
16262 @DomName('Node.nodeValue')
15129 final String nodeValue; 16263 final String nodeValue;
15130 16264
15131 @JSName('ownerDocument') 16265 @JSName('ownerDocument')
15132 @DocsEditable @DomName('Node.ownerDocument') 16266 @DocsEditable
16267 @DomName('Node.ownerDocument')
15133 final Document document; 16268 final Document document;
15134 16269
15135 @JSName('parentElement') 16270 @JSName('parentElement')
15136 @DocsEditable @DomName('Node.parentElement') 16271 @DocsEditable
16272 @DomName('Node.parentElement')
15137 final Element parent; 16273 final Element parent;
15138 16274
15139 @DocsEditable @DomName('Node.parentNode') 16275 @DocsEditable
16276 @DomName('Node.parentNode')
15140 final Node parentNode; 16277 final Node parentNode;
15141 16278
15142 @JSName('previousSibling') 16279 @JSName('previousSibling')
15143 @DocsEditable @DomName('Node.previousSibling') 16280 @DocsEditable
16281 @DomName('Node.previousSibling')
15144 final Node previousNode; 16282 final Node previousNode;
15145 16283
15146 @JSName('textContent') 16284 @JSName('textContent')
15147 @DocsEditable @DomName('Node.textContent') 16285 @DocsEditable
16286 @DomName('Node.textContent')
15148 String text; 16287 String text;
15149 16288
15150 @JSName('addEventListener') 16289 @JSName('addEventListener')
15151 @DocsEditable @DomName('Node.addEventListener') 16290 @DocsEditable
16291 @DomName('Node.addEventListener')
15152 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 16292 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
15153 16293
15154 @JSName('appendChild') 16294 @JSName('appendChild')
15155 @DocsEditable @DomName('Node.appendChild') 16295 @DocsEditable
16296 @DomName('Node.appendChild')
15156 Node $dom_appendChild(Node newChild) native; 16297 Node $dom_appendChild(Node newChild) native;
15157 16298
15158 @JSName('cloneNode') 16299 @JSName('cloneNode')
15159 @DocsEditable @DomName('Node.cloneNode') 16300 @DocsEditable
16301 @DomName('Node.cloneNode')
15160 Node clone(bool deep) native; 16302 Node clone(bool deep) native;
15161 16303
15162 @DocsEditable @DomName('Node.contains') 16304 @DocsEditable
16305 @DomName('Node.contains')
15163 bool contains(Node other) native; 16306 bool contains(Node other) native;
15164 16307
15165 @JSName('dispatchEvent') 16308 @JSName('dispatchEvent')
15166 @DocsEditable @DomName('Node.dispatchEvent') 16309 @DocsEditable
16310 @DomName('Node.dispatchEvent')
15167 bool $dom_dispatchEvent(Event event) native; 16311 bool $dom_dispatchEvent(Event event) native;
15168 16312
15169 @DocsEditable @DomName('Node.hasChildNodes') 16313 @DocsEditable
16314 @DomName('Node.hasChildNodes')
15170 bool hasChildNodes() native; 16315 bool hasChildNodes() native;
15171 16316
15172 @DocsEditable @DomName('Node.insertBefore') 16317 @DocsEditable
16318 @DomName('Node.insertBefore')
15173 Node insertBefore(Node newChild, Node refChild) native; 16319 Node insertBefore(Node newChild, Node refChild) native;
15174 16320
15175 @JSName('removeChild') 16321 @JSName('removeChild')
15176 @DocsEditable @DomName('Node.removeChild') 16322 @DocsEditable
16323 @DomName('Node.removeChild')
15177 Node $dom_removeChild(Node oldChild) native; 16324 Node $dom_removeChild(Node oldChild) native;
15178 16325
15179 @JSName('removeEventListener') 16326 @JSName('removeEventListener')
15180 @DocsEditable @DomName('Node.removeEventListener') 16327 @DocsEditable
16328 @DomName('Node.removeEventListener')
15181 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 16329 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
15182 16330
15183 @JSName('replaceChild') 16331 @JSName('replaceChild')
15184 @DocsEditable @DomName('Node.replaceChild') 16332 @DocsEditable
16333 @DomName('Node.replaceChild')
15185 Node $dom_replaceChild(Node newChild, Node oldChild) native; 16334 Node $dom_replaceChild(Node newChild, Node oldChild) native;
15186 16335
15187 } 16336 }
15188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15189 // for details. All rights reserved. Use of this source code is governed by a 16338 // for details. All rights reserved. Use of this source code is governed by a
15190 // BSD-style license that can be found in the LICENSE file. 16339 // BSD-style license that can be found in the LICENSE file.
15191 16340
15192 16341
15193 16342
15194 @DocsEditable 16343 @DocsEditable
(...skipping 25 matching lines...) Expand all
15220 static const int SHOW_ENTITY = 0x00000020; 16369 static const int SHOW_ENTITY = 0x00000020;
15221 16370
15222 static const int SHOW_ENTITY_REFERENCE = 0x00000010; 16371 static const int SHOW_ENTITY_REFERENCE = 0x00000010;
15223 16372
15224 static const int SHOW_NOTATION = 0x00000800; 16373 static const int SHOW_NOTATION = 0x00000800;
15225 16374
15226 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; 16375 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
15227 16376
15228 static const int SHOW_TEXT = 0x00000004; 16377 static const int SHOW_TEXT = 0x00000004;
15229 16378
15230 @DocsEditable @DomName('NodeFilter.acceptNode') 16379 @DocsEditable
16380 @DomName('NodeFilter.acceptNode')
15231 int acceptNode(Node n) native; 16381 int acceptNode(Node n) native;
15232 } 16382 }
15233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15234 // for details. All rights reserved. Use of this source code is governed by a 16384 // for details. All rights reserved. Use of this source code is governed by a
15235 // BSD-style license that can be found in the LICENSE file. 16385 // BSD-style license that can be found in the LICENSE file.
15236 16386
15237 16387
15238 16388
15239 @DocsEditable 16389 @DocsEditable
15240 @DomName('NodeIterator') 16390 @DomName('NodeIterator')
15241 class NodeIterator native "*NodeIterator" { 16391 class NodeIterator native "*NodeIterator" {
15242 16392
15243 @DocsEditable @DomName('NodeIterator.expandEntityReferences') 16393 @DocsEditable
16394 @DomName('NodeIterator.expandEntityReferences')
15244 final bool expandEntityReferences; 16395 final bool expandEntityReferences;
15245 16396
15246 @DocsEditable @DomName('NodeIterator.filter') 16397 @DocsEditable
16398 @DomName('NodeIterator.filter')
15247 final NodeFilter filter; 16399 final NodeFilter filter;
15248 16400
15249 @DocsEditable @DomName('NodeIterator.pointerBeforeReferenceNode') 16401 @DocsEditable
16402 @DomName('NodeIterator.pointerBeforeReferenceNode')
15250 final bool pointerBeforeReferenceNode; 16403 final bool pointerBeforeReferenceNode;
15251 16404
15252 @DocsEditable @DomName('NodeIterator.referenceNode') 16405 @DocsEditable
16406 @DomName('NodeIterator.referenceNode')
15253 final Node referenceNode; 16407 final Node referenceNode;
15254 16408
15255 @DocsEditable @DomName('NodeIterator.root') 16409 @DocsEditable
16410 @DomName('NodeIterator.root')
15256 final Node root; 16411 final Node root;
15257 16412
15258 @DocsEditable @DomName('NodeIterator.whatToShow') 16413 @DocsEditable
16414 @DomName('NodeIterator.whatToShow')
15259 final int whatToShow; 16415 final int whatToShow;
15260 16416
15261 @DocsEditable @DomName('NodeIterator.detach') 16417 @DocsEditable
16418 @DomName('NodeIterator.detach')
15262 void detach() native; 16419 void detach() native;
15263 16420
15264 @DocsEditable @DomName('NodeIterator.nextNode') 16421 @DocsEditable
16422 @DomName('NodeIterator.nextNode')
15265 Node nextNode() native; 16423 Node nextNode() native;
15266 16424
15267 @DocsEditable @DomName('NodeIterator.previousNode') 16425 @DocsEditable
16426 @DomName('NodeIterator.previousNode')
15268 Node previousNode() native; 16427 Node previousNode() native;
15269 } 16428 }
15270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15271 // for details. All rights reserved. Use of this source code is governed by a 16430 // for details. All rights reserved. Use of this source code is governed by a
15272 // BSD-style license that can be found in the LICENSE file. 16431 // BSD-style license that can be found in the LICENSE file.
15273 16432
15274 16433
15275 16434
15276 @DocsEditable 16435 @DocsEditable
15277 @DomName('NodeList') 16436 @DomName('NodeList')
15278 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi st" { 16437 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi st" {
15279 16438
15280 @DocsEditable @DomName('NodeList.length') 16439 @DocsEditable
16440 @DomName('NodeList.length')
15281 int get length => JS("int", "#.length", this); 16441 int get length => JS("int", "#.length", this);
15282 16442
15283 Node operator[](int index) => JS("Node", "#[#]", this, index); 16443 Node operator[](int index) => JS("Node", "#[#]", this, index);
15284 16444
15285 void operator[]=(int index, Node value) { 16445 void operator[]=(int index, Node value) {
15286 throw new UnsupportedError("Cannot assign element of immutable List."); 16446 throw new UnsupportedError("Cannot assign element of immutable List.");
15287 } 16447 }
15288 // -- start List<Node> mixins. 16448 // -- start List<Node> mixins.
15289 // Node is the element type. 16449 // Node is the element type.
15290 16450
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
15422 void insertRange(int start, int rangeLength, [Node initialValue]) { 16582 void insertRange(int start, int rangeLength, [Node initialValue]) {
15423 throw new UnsupportedError("Cannot insertRange on immutable List."); 16583 throw new UnsupportedError("Cannot insertRange on immutable List.");
15424 } 16584 }
15425 16585
15426 List<Node> getRange(int start, int rangeLength) => 16586 List<Node> getRange(int start, int rangeLength) =>
15427 Lists.getRange(this, start, rangeLength, <Node>[]); 16587 Lists.getRange(this, start, rangeLength, <Node>[]);
15428 16588
15429 // -- end List<Node> mixins. 16589 // -- end List<Node> mixins.
15430 16590
15431 @JSName('item') 16591 @JSName('item')
15432 @DocsEditable @DomName('NodeList.item') 16592 @DocsEditable
16593 @DomName('NodeList.item')
15433 Node _item(int index) native; 16594 Node _item(int index) native;
15434 } 16595 }
15435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16596 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15436 // for details. All rights reserved. Use of this source code is governed by a 16597 // for details. All rights reserved. Use of this source code is governed by a
15437 // BSD-style license that can be found in the LICENSE file. 16598 // BSD-style license that can be found in the LICENSE file.
15438 16599
15439 16600
15440 16601
15441 @DocsEditable 16602 @DocsEditable
15442 @DomName('Notation') 16603 @DomName('Notation')
15443 class Notation extends Node native "*Notation" { 16604 class Notation extends Node native "*Notation" {
15444 16605
15445 @DocsEditable @DomName('Notation.publicId') 16606 @DocsEditable
16607 @DomName('Notation.publicId')
15446 final String publicId; 16608 final String publicId;
15447 16609
15448 @DocsEditable @DomName('Notation.systemId') 16610 @DocsEditable
16611 @DomName('Notation.systemId')
15449 final String systemId; 16612 final String systemId;
15450 } 16613 }
15451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15452 // for details. All rights reserved. Use of this source code is governed by a 16615 // for details. All rights reserved. Use of this source code is governed by a
15453 // BSD-style license that can be found in the LICENSE file. 16616 // BSD-style license that can be found in the LICENSE file.
15454 16617
15455 16618
15456 16619
15457 @DocsEditable 16620 @DocsEditable
15458 @DomName('Notification') 16621 @DomName('Notification')
(...skipping 21 matching lines...) Expand all
15480 return JS('Notification', 'new Notification(#)', title); 16643 return JS('Notification', 'new Notification(#)', title);
15481 } 16644 }
15482 return JS('Notification', 'new Notification(#,#)', title, options); 16645 return JS('Notification', 'new Notification(#,#)', title, options);
15483 } 16646 }
15484 16647
15485 @DocsEditable 16648 @DocsEditable
15486 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 16649 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
15487 NotificationEvents get on => 16650 NotificationEvents get on =>
15488 new NotificationEvents(this); 16651 new NotificationEvents(this);
15489 16652
15490 @DocsEditable @DomName('Notification.dir') 16653 @DocsEditable
16654 @DomName('Notification.dir')
15491 String dir; 16655 String dir;
15492 16656
15493 @DocsEditable @DomName('Notification.permission') 16657 @DocsEditable
16658 @DomName('Notification.permission')
15494 final String permission; 16659 final String permission;
15495 16660
15496 @DocsEditable @DomName('Notification.replaceId') 16661 @DocsEditable
16662 @DomName('Notification.replaceId')
15497 String replaceId; 16663 String replaceId;
15498 16664
15499 @DocsEditable @DomName('Notification.tag') 16665 @DocsEditable
16666 @DomName('Notification.tag')
15500 String tag; 16667 String tag;
15501 16668
15502 @JSName('addEventListener') 16669 @JSName('addEventListener')
15503 @DocsEditable @DomName('Notification.addEventListener') 16670 @DocsEditable
16671 @DomName('Notification.addEventListener')
15504 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 16672 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
15505 16673
15506 @DocsEditable @DomName('Notification.cancel') 16674 @DocsEditable
16675 @DomName('Notification.cancel')
15507 void cancel() native; 16676 void cancel() native;
15508 16677
15509 @DocsEditable @DomName('Notification.close') 16678 @DocsEditable
16679 @DomName('Notification.close')
15510 void close() native; 16680 void close() native;
15511 16681
15512 @JSName('dispatchEvent') 16682 @JSName('dispatchEvent')
15513 @DocsEditable @DomName('Notification.dispatchEvent') 16683 @DocsEditable
16684 @DomName('Notification.dispatchEvent')
15514 bool $dom_dispatchEvent(Event evt) native; 16685 bool $dom_dispatchEvent(Event evt) native;
15515 16686
15516 @JSName('removeEventListener') 16687 @JSName('removeEventListener')
15517 @DocsEditable @DomName('Notification.removeEventListener') 16688 @DocsEditable
16689 @DomName('Notification.removeEventListener')
15518 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 16690 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
15519 16691
15520 @DocsEditable @DomName('Notification.requestPermission') 16692 @DocsEditable
16693 @DomName('Notification.requestPermission')
15521 static void requestPermission(NotificationPermissionCallback callback) native; 16694 static void requestPermission(NotificationPermissionCallback callback) native;
15522 16695
15523 @DocsEditable @DomName('Notification.show') 16696 @DocsEditable
16697 @DomName('Notification.show')
15524 void show() native; 16698 void show() native;
15525 16699
15526 Stream<Event> get onClick => clickEvent.forTarget(this); 16700 Stream<Event> get onClick => clickEvent.forTarget(this);
15527 16701
15528 Stream<Event> get onClose => closeEvent.forTarget(this); 16702 Stream<Event> get onClose => closeEvent.forTarget(this);
15529 16703
15530 Stream<Event> get onDisplay => displayEvent.forTarget(this); 16704 Stream<Event> get onDisplay => displayEvent.forTarget(this);
15531 16705
15532 Stream<Event> get onError => errorEvent.forTarget(this); 16706 Stream<Event> get onError => errorEvent.forTarget(this);
15533 16707
(...skipping 29 matching lines...) Expand all
15563 @DocsEditable 16737 @DocsEditable
15564 @DomName('NotificationCenter') 16738 @DomName('NotificationCenter')
15565 @SupportedBrowser(SupportedBrowser.CHROME) 16739 @SupportedBrowser(SupportedBrowser.CHROME)
15566 @SupportedBrowser(SupportedBrowser.SAFARI) 16740 @SupportedBrowser(SupportedBrowser.SAFARI)
15567 @Experimental() 16741 @Experimental()
15568 class NotificationCenter native "*NotificationCenter" { 16742 class NotificationCenter native "*NotificationCenter" {
15569 16743
15570 /// Checks if this type is supported on the current platform. 16744 /// Checks if this type is supported on the current platform.
15571 static bool get supported => JS('bool', '!!(window.webkitNotifications)'); 16745 static bool get supported => JS('bool', '!!(window.webkitNotifications)');
15572 16746
15573 @DocsEditable @DomName('NotificationCenter.checkPermission') 16747 @DocsEditable
16748 @DomName('NotificationCenter.checkPermission')
15574 int checkPermission() native; 16749 int checkPermission() native;
15575 16750
15576 @JSName('createHTMLNotification') 16751 @JSName('createHTMLNotification')
15577 @DocsEditable @DomName('NotificationCenter.createHTMLNotification') 16752 @DocsEditable
16753 @DomName('NotificationCenter.createHTMLNotification')
15578 Notification createHtmlNotification(String url) native; 16754 Notification createHtmlNotification(String url) native;
15579 16755
15580 @DocsEditable @DomName('NotificationCenter.createNotification') 16756 @DocsEditable
16757 @DomName('NotificationCenter.createNotification')
15581 Notification createNotification(String iconUrl, String title, String body) nat ive; 16758 Notification createNotification(String iconUrl, String title, String body) nat ive;
15582 16759
15583 @DocsEditable @DomName('NotificationCenter.requestPermission') 16760 @DocsEditable
16761 @DomName('NotificationCenter.requestPermission')
15584 void requestPermission(VoidCallback callback) native; 16762 void requestPermission(VoidCallback callback) native;
15585 } 16763 }
15586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15587 // for details. All rights reserved. Use of this source code is governed by a 16765 // for details. All rights reserved. Use of this source code is governed by a
15588 // BSD-style license that can be found in the LICENSE file. 16766 // BSD-style license that can be found in the LICENSE file.
15589 16767
15590 // WARNING: Do not edit - generated code. 16768 // WARNING: Do not edit - generated code.
15591 16769
15592 16770
15593 typedef void NotificationPermissionCallback(String permission); 16771 typedef void NotificationPermissionCallback(String permission);
15594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15595 // for details. All rights reserved. Use of this source code is governed by a 16773 // for details. All rights reserved. Use of this source code is governed by a
15596 // BSD-style license that can be found in the LICENSE file. 16774 // BSD-style license that can be found in the LICENSE file.
15597 16775
15598 16776
15599 16777
15600 @DocsEditable 16778 @DocsEditable
15601 @DomName('HTMLOListElement') 16779 @DomName('HTMLOListElement')
15602 class OListElement extends Element native "*HTMLOListElement" { 16780 class OListElement extends Element native "*HTMLOListElement" {
15603 16781
15604 @DocsEditable 16782 @DocsEditable
15605 factory OListElement() => document.$dom_createElement("ol"); 16783 factory OListElement() => document.$dom_createElement("ol");
15606 16784
15607 @DocsEditable @DomName('HTMLOListElement.reversed') 16785 @DocsEditable
16786 @DomName('HTMLOListElement.reversed')
15608 bool reversed; 16787 bool reversed;
15609 16788
15610 @DocsEditable @DomName('HTMLOListElement.start') 16789 @DocsEditable
16790 @DomName('HTMLOListElement.start')
15611 int start; 16791 int start;
15612 16792
15613 @DocsEditable @DomName('HTMLOListElement.type') 16793 @DocsEditable
16794 @DomName('HTMLOListElement.type')
15614 String type; 16795 String type;
15615 } 16796 }
15616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15617 // for details. All rights reserved. Use of this source code is governed by a 16798 // for details. All rights reserved. Use of this source code is governed by a
15618 // BSD-style license that can be found in the LICENSE file. 16799 // BSD-style license that can be found in the LICENSE file.
15619 16800
15620 16801
15621 16802
15622 @DocsEditable 16803 @DocsEditable
15623 @DomName('HTMLObjectElement') 16804 @DomName('HTMLObjectElement')
15624 @SupportedBrowser(SupportedBrowser.CHROME) 16805 @SupportedBrowser(SupportedBrowser.CHROME)
15625 @SupportedBrowser(SupportedBrowser.FIREFOX) 16806 @SupportedBrowser(SupportedBrowser.FIREFOX)
15626 @SupportedBrowser(SupportedBrowser.SAFARI) 16807 @SupportedBrowser(SupportedBrowser.SAFARI)
15627 class ObjectElement extends Element native "*HTMLObjectElement" { 16808 class ObjectElement extends Element native "*HTMLObjectElement" {
15628 16809
15629 @DocsEditable 16810 @DocsEditable
15630 factory ObjectElement() => document.$dom_createElement("object"); 16811 factory ObjectElement() => document.$dom_createElement("object");
15631 16812
15632 /// Checks if this type is supported on the current platform. 16813 /// Checks if this type is supported on the current platform.
15633 static bool get supported => Element.isTagSupported('object'); 16814 static bool get supported => Element.isTagSupported('object');
15634 16815
15635 @DocsEditable @DomName('HTMLObjectElement.code') 16816 @DocsEditable
16817 @DomName('HTMLObjectElement.code')
15636 String code; 16818 String code;
15637 16819
15638 @DocsEditable @DomName('HTMLObjectElement.data') 16820 @DocsEditable
16821 @DomName('HTMLObjectElement.data')
15639 String data; 16822 String data;
15640 16823
15641 @DocsEditable @DomName('HTMLObjectElement.form') 16824 @DocsEditable
16825 @DomName('HTMLObjectElement.form')
15642 final FormElement form; 16826 final FormElement form;
15643 16827
15644 @DocsEditable @DomName('HTMLObjectElement.height') 16828 @DocsEditable
16829 @DomName('HTMLObjectElement.height')
15645 String height; 16830 String height;
15646 16831
15647 @DocsEditable @DomName('HTMLObjectElement.name') 16832 @DocsEditable
16833 @DomName('HTMLObjectElement.name')
15648 String name; 16834 String name;
15649 16835
15650 @DocsEditable @DomName('HTMLObjectElement.type') 16836 @DocsEditable
16837 @DomName('HTMLObjectElement.type')
15651 String type; 16838 String type;
15652 16839
15653 @DocsEditable @DomName('HTMLObjectElement.useMap') 16840 @DocsEditable
16841 @DomName('HTMLObjectElement.useMap')
15654 String useMap; 16842 String useMap;
15655 16843
15656 @DocsEditable @DomName('HTMLObjectElement.validationMessage') 16844 @DocsEditable
16845 @DomName('HTMLObjectElement.validationMessage')
15657 final String validationMessage; 16846 final String validationMessage;
15658 16847
15659 @DocsEditable @DomName('HTMLObjectElement.validity') 16848 @DocsEditable
16849 @DomName('HTMLObjectElement.validity')
15660 final ValidityState validity; 16850 final ValidityState validity;
15661 16851
15662 @DocsEditable @DomName('HTMLObjectElement.width') 16852 @DocsEditable
16853 @DomName('HTMLObjectElement.width')
15663 String width; 16854 String width;
15664 16855
15665 @DocsEditable @DomName('HTMLObjectElement.willValidate') 16856 @DocsEditable
16857 @DomName('HTMLObjectElement.willValidate')
15666 final bool willValidate; 16858 final bool willValidate;
15667 16859
15668 @DocsEditable @DomName('HTMLObjectElement.checkValidity') 16860 @DocsEditable
16861 @DomName('HTMLObjectElement.checkValidity')
15669 bool checkValidity() native; 16862 bool checkValidity() native;
15670 16863
15671 @DocsEditable @DomName('HTMLObjectElement.setCustomValidity') 16864 @DocsEditable
16865 @DomName('HTMLObjectElement.setCustomValidity')
15672 void setCustomValidity(String error) native; 16866 void setCustomValidity(String error) native;
15673 } 16867 }
15674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15675 // for details. All rights reserved. Use of this source code is governed by a 16869 // for details. All rights reserved. Use of this source code is governed by a
15676 // BSD-style license that can be found in the LICENSE file. 16870 // BSD-style license that can be found in the LICENSE file.
15677 16871
15678 16872
15679 16873
15680 @DocsEditable 16874 @DocsEditable
15681 @DomName('OESElementIndexUint') 16875 @DomName('OESElementIndexUint')
(...skipping 27 matching lines...) Expand all
15709 16903
15710 16904
15711 16905
15712 @DocsEditable 16906 @DocsEditable
15713 @DomName('OESVertexArrayObject') 16907 @DomName('OESVertexArrayObject')
15714 class OesVertexArrayObject native "*OESVertexArrayObject" { 16908 class OesVertexArrayObject native "*OESVertexArrayObject" {
15715 16909
15716 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 16910 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
15717 16911
15718 @JSName('bindVertexArrayOES') 16912 @JSName('bindVertexArrayOES')
15719 @DocsEditable @DomName('OESVertexArrayObject.bindVertexArrayOES') 16913 @DocsEditable
16914 @DomName('OESVertexArrayObject.bindVertexArrayOES')
15720 void bindVertexArray(WebGLVertexArrayObject arrayObject) native; 16915 void bindVertexArray(WebGLVertexArrayObject arrayObject) native;
15721 16916
15722 @JSName('createVertexArrayOES') 16917 @JSName('createVertexArrayOES')
15723 @DocsEditable @DomName('OESVertexArrayObject.createVertexArrayOES') 16918 @DocsEditable
16919 @DomName('OESVertexArrayObject.createVertexArrayOES')
15724 WebGLVertexArrayObject createVertexArray() native; 16920 WebGLVertexArrayObject createVertexArray() native;
15725 16921
15726 @JSName('deleteVertexArrayOES') 16922 @JSName('deleteVertexArrayOES')
15727 @DocsEditable @DomName('OESVertexArrayObject.deleteVertexArrayOES') 16923 @DocsEditable
16924 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
15728 void deleteVertexArray(WebGLVertexArrayObject arrayObject) native; 16925 void deleteVertexArray(WebGLVertexArrayObject arrayObject) native;
15729 16926
15730 @JSName('isVertexArrayOES') 16927 @JSName('isVertexArrayOES')
15731 @DocsEditable @DomName('OESVertexArrayObject.isVertexArrayOES') 16928 @DocsEditable
16929 @DomName('OESVertexArrayObject.isVertexArrayOES')
15732 bool isVertexArray(WebGLVertexArrayObject arrayObject) native; 16930 bool isVertexArray(WebGLVertexArrayObject arrayObject) native;
15733 } 16931 }
15734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15735 // for details. All rights reserved. Use of this source code is governed by a 16933 // for details. All rights reserved. Use of this source code is governed by a
15736 // BSD-style license that can be found in the LICENSE file. 16934 // BSD-style license that can be found in the LICENSE file.
15737 16935
15738 16936
15739 16937
15740 @DocsEditable 16938 @DocsEditable
15741 @DomName('HTMLOptGroupElement') 16939 @DomName('HTMLOptGroupElement')
15742 class OptGroupElement extends Element native "*HTMLOptGroupElement" { 16940 class OptGroupElement extends Element native "*HTMLOptGroupElement" {
15743 16941
15744 @DocsEditable 16942 @DocsEditable
15745 factory OptGroupElement() => document.$dom_createElement("optgroup"); 16943 factory OptGroupElement() => document.$dom_createElement("optgroup");
15746 16944
15747 @DocsEditable @DomName('HTMLOptGroupElement.disabled') 16945 @DocsEditable
16946 @DomName('HTMLOptGroupElement.disabled')
15748 bool disabled; 16947 bool disabled;
15749 16948
15750 @DocsEditable @DomName('HTMLOptGroupElement.label') 16949 @DocsEditable
16950 @DomName('HTMLOptGroupElement.label')
15751 String label; 16951 String label;
15752 } 16952 }
15753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15754 // for details. All rights reserved. Use of this source code is governed by a 16954 // for details. All rights reserved. Use of this source code is governed by a
15755 // BSD-style license that can be found in the LICENSE file. 16955 // BSD-style license that can be found in the LICENSE file.
15756 16956
15757 16957
15758 16958
15759 @DocsEditable 16959 @DocsEditable
15760 @DomName('HTMLOptionElement') 16960 @DomName('HTMLOptionElement')
(...skipping 24 matching lines...) Expand all
15785 } 16985 }
15786 if (!?defaultSelected) { 16986 if (!?defaultSelected) {
15787 return JS('OptionElement', 'new Option(#,#)', data, value); 16987 return JS('OptionElement', 'new Option(#,#)', data, value);
15788 } 16988 }
15789 if (!?selected) { 16989 if (!?selected) {
15790 return JS('OptionElement', 'new Option(#,#,#)', data, value, defaultSelect ed); 16990 return JS('OptionElement', 'new Option(#,#,#)', data, value, defaultSelect ed);
15791 } 16991 }
15792 return JS('OptionElement', 'new Option(#,#,#,#)', data, value, defaultSelect ed, selected); 16992 return JS('OptionElement', 'new Option(#,#,#,#)', data, value, defaultSelect ed, selected);
15793 } 16993 }
15794 16994
15795 @DocsEditable @DomName('HTMLOptionElement.defaultSelected') 16995 @DocsEditable
16996 @DomName('HTMLOptionElement.defaultSelected')
15796 bool defaultSelected; 16997 bool defaultSelected;
15797 16998
15798 @DocsEditable @DomName('HTMLOptionElement.disabled') 16999 @DocsEditable
17000 @DomName('HTMLOptionElement.disabled')
15799 bool disabled; 17001 bool disabled;
15800 17002
15801 @DocsEditable @DomName('HTMLOptionElement.form') 17003 @DocsEditable
17004 @DomName('HTMLOptionElement.form')
15802 final FormElement form; 17005 final FormElement form;
15803 17006
15804 @DocsEditable @DomName('HTMLOptionElement.index') 17007 @DocsEditable
17008 @DomName('HTMLOptionElement.index')
15805 final int index; 17009 final int index;
15806 17010
15807 @DocsEditable @DomName('HTMLOptionElement.label') 17011 @DocsEditable
17012 @DomName('HTMLOptionElement.label')
15808 String label; 17013 String label;
15809 17014
15810 @DocsEditable @DomName('HTMLOptionElement.selected') 17015 @DocsEditable
17016 @DomName('HTMLOptionElement.selected')
15811 bool selected; 17017 bool selected;
15812 17018
15813 @DocsEditable @DomName('HTMLOptionElement.value') 17019 @DocsEditable
17020 @DomName('HTMLOptionElement.value')
15814 String value; 17021 String value;
15815 } 17022 }
15816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17023 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15817 // for details. All rights reserved. Use of this source code is governed by a 17024 // for details. All rights reserved. Use of this source code is governed by a
15818 // BSD-style license that can be found in the LICENSE file. 17025 // BSD-style license that can be found in the LICENSE file.
15819 17026
15820 17027
15821 17028
15822 @DocsEditable 17029 @DocsEditable
15823 @DomName('HTMLOutputElement') 17030 @DomName('HTMLOutputElement')
15824 @SupportedBrowser(SupportedBrowser.CHROME) 17031 @SupportedBrowser(SupportedBrowser.CHROME)
15825 @SupportedBrowser(SupportedBrowser.FIREFOX) 17032 @SupportedBrowser(SupportedBrowser.FIREFOX)
15826 @SupportedBrowser(SupportedBrowser.SAFARI) 17033 @SupportedBrowser(SupportedBrowser.SAFARI)
15827 class OutputElement extends Element native "*HTMLOutputElement" { 17034 class OutputElement extends Element native "*HTMLOutputElement" {
15828 17035
15829 @DocsEditable 17036 @DocsEditable
15830 factory OutputElement() => document.$dom_createElement("output"); 17037 factory OutputElement() => document.$dom_createElement("output");
15831 17038
15832 /// Checks if this type is supported on the current platform. 17039 /// Checks if this type is supported on the current platform.
15833 static bool get supported => Element.isTagSupported('output'); 17040 static bool get supported => Element.isTagSupported('output');
15834 17041
15835 @DocsEditable @DomName('HTMLOutputElement.defaultValue') 17042 @DocsEditable
17043 @DomName('HTMLOutputElement.defaultValue')
15836 String defaultValue; 17044 String defaultValue;
15837 17045
15838 @DocsEditable @DomName('HTMLOutputElement.form') 17046 @DocsEditable
17047 @DomName('HTMLOutputElement.form')
15839 final FormElement form; 17048 final FormElement form;
15840 17049
15841 @DocsEditable @DomName('HTMLOutputElement.htmlFor') 17050 @DocsEditable
17051 @DomName('HTMLOutputElement.htmlFor')
15842 DomSettableTokenList htmlFor; 17052 DomSettableTokenList htmlFor;
15843 17053
15844 @DocsEditable @DomName('HTMLOutputElement.labels') 17054 @DocsEditable
15845 @Returns('NodeList') @Creates('NodeList') 17055 @DomName('HTMLOutputElement.labels')
17056 @Returns('NodeList')
17057 @Creates('NodeList')
15846 final List<Node> labels; 17058 final List<Node> labels;
15847 17059
15848 @DocsEditable @DomName('HTMLOutputElement.name') 17060 @DocsEditable
17061 @DomName('HTMLOutputElement.name')
15849 String name; 17062 String name;
15850 17063
15851 @DocsEditable @DomName('HTMLOutputElement.type') 17064 @DocsEditable
17065 @DomName('HTMLOutputElement.type')
15852 final String type; 17066 final String type;
15853 17067
15854 @DocsEditable @DomName('HTMLOutputElement.validationMessage') 17068 @DocsEditable
17069 @DomName('HTMLOutputElement.validationMessage')
15855 final String validationMessage; 17070 final String validationMessage;
15856 17071
15857 @DocsEditable @DomName('HTMLOutputElement.validity') 17072 @DocsEditable
17073 @DomName('HTMLOutputElement.validity')
15858 final ValidityState validity; 17074 final ValidityState validity;
15859 17075
15860 @DocsEditable @DomName('HTMLOutputElement.value') 17076 @DocsEditable
17077 @DomName('HTMLOutputElement.value')
15861 String value; 17078 String value;
15862 17079
15863 @DocsEditable @DomName('HTMLOutputElement.willValidate') 17080 @DocsEditable
17081 @DomName('HTMLOutputElement.willValidate')
15864 final bool willValidate; 17082 final bool willValidate;
15865 17083
15866 @DocsEditable @DomName('HTMLOutputElement.checkValidity') 17084 @DocsEditable
17085 @DomName('HTMLOutputElement.checkValidity')
15867 bool checkValidity() native; 17086 bool checkValidity() native;
15868 17087
15869 @DocsEditable @DomName('HTMLOutputElement.setCustomValidity') 17088 @DocsEditable
17089 @DomName('HTMLOutputElement.setCustomValidity')
15870 void setCustomValidity(String error) native; 17090 void setCustomValidity(String error) native;
15871 } 17091 }
15872 // 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
15873 // 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
15874 // BSD-style license that can be found in the LICENSE file. 17094 // BSD-style license that can be found in the LICENSE file.
15875 17095
15876 17096
15877 17097
15878 @DocsEditable 17098 @DocsEditable
15879 @DomName('OverflowEvent') 17099 @DomName('OverflowEvent')
15880 class OverflowEvent extends Event native "*OverflowEvent" { 17100 class OverflowEvent extends Event native "*OverflowEvent" {
15881 17101
15882 static const int BOTH = 2; 17102 static const int BOTH = 2;
15883 17103
15884 static const int HORIZONTAL = 0; 17104 static const int HORIZONTAL = 0;
15885 17105
15886 static const int VERTICAL = 1; 17106 static const int VERTICAL = 1;
15887 17107
15888 @DocsEditable @DomName('OverflowEvent.horizontalOverflow') 17108 @DocsEditable
17109 @DomName('OverflowEvent.horizontalOverflow')
15889 final bool horizontalOverflow; 17110 final bool horizontalOverflow;
15890 17111
15891 @DocsEditable @DomName('OverflowEvent.orient') 17112 @DocsEditable
17113 @DomName('OverflowEvent.orient')
15892 final int orient; 17114 final int orient;
15893 17115
15894 @DocsEditable @DomName('OverflowEvent.verticalOverflow') 17116 @DocsEditable
17117 @DomName('OverflowEvent.verticalOverflow')
15895 final bool verticalOverflow; 17118 final bool verticalOverflow;
15896 } 17119 }
15897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15898 // for details. All rights reserved. Use of this source code is governed by a 17121 // for details. All rights reserved. Use of this source code is governed by a
15899 // BSD-style license that can be found in the LICENSE file. 17122 // BSD-style license that can be found in the LICENSE file.
15900 17123
15901 17124
15902 17125
15903 @DocsEditable 17126 @DocsEditable
15904 @DomName('PagePopupController') 17127 @DomName('PagePopupController')
15905 class PagePopupController native "*PagePopupController" { 17128 class PagePopupController native "*PagePopupController" {
15906 17129
15907 @DocsEditable @DomName('PagePopupController.formatMonth') 17130 @DocsEditable
17131 @DomName('PagePopupController.formatMonth')
15908 String formatMonth(int year, int zeroBaseMonth) native; 17132 String formatMonth(int year, int zeroBaseMonth) native;
15909 17133
15910 @DocsEditable @DomName('PagePopupController.histogramEnumeration') 17134 @DocsEditable
17135 @DomName('PagePopupController.histogramEnumeration')
15911 void histogramEnumeration(String name, int sample, int boundaryValue) native; 17136 void histogramEnumeration(String name, int sample, int boundaryValue) native;
15912 17137
15913 @DocsEditable @DomName('PagePopupController.localizeNumberString') 17138 @DocsEditable
17139 @DomName('PagePopupController.localizeNumberString')
15914 String localizeNumberString(String numberString) native; 17140 String localizeNumberString(String numberString) native;
15915 17141
15916 @DocsEditable @DomName('PagePopupController.setValueAndClosePopup') 17142 @DocsEditable
17143 @DomName('PagePopupController.setValueAndClosePopup')
15917 void setValueAndClosePopup(int numberValue, String stringValue) native; 17144 void setValueAndClosePopup(int numberValue, String stringValue) native;
15918 } 17145 }
15919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15920 // for details. All rights reserved. Use of this source code is governed by a 17147 // for details. All rights reserved. Use of this source code is governed by a
15921 // BSD-style license that can be found in the LICENSE file. 17148 // BSD-style license that can be found in the LICENSE file.
15922 17149
15923 17150
15924 17151
15925 @DocsEditable 17152 @DocsEditable
15926 @DomName('PageTransitionEvent') 17153 @DomName('PageTransitionEvent')
15927 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 17154 class PageTransitionEvent extends Event native "*PageTransitionEvent" {
15928 17155
15929 @DocsEditable @DomName('PageTransitionEvent.persisted') 17156 @DocsEditable
17157 @DomName('PageTransitionEvent.persisted')
15930 final bool persisted; 17158 final bool persisted;
15931 } 17159 }
15932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15933 // for details. All rights reserved. Use of this source code is governed by a 17161 // for details. All rights reserved. Use of this source code is governed by a
15934 // BSD-style license that can be found in the LICENSE file. 17162 // BSD-style license that can be found in the LICENSE file.
15935 17163
15936 17164
15937 17165
15938 @DocsEditable 17166 @DocsEditable
15939 @DomName('HTMLParagraphElement') 17167 @DomName('HTMLParagraphElement')
15940 class ParagraphElement extends Element native "*HTMLParagraphElement" { 17168 class ParagraphElement extends Element native "*HTMLParagraphElement" {
15941 17169
15942 @DocsEditable 17170 @DocsEditable
15943 factory ParagraphElement() => document.$dom_createElement("p"); 17171 factory ParagraphElement() => document.$dom_createElement("p");
15944 } 17172 }
15945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15946 // for details. All rights reserved. Use of this source code is governed by a 17174 // for details. All rights reserved. Use of this source code is governed by a
15947 // BSD-style license that can be found in the LICENSE file. 17175 // BSD-style license that can be found in the LICENSE file.
15948 17176
15949 17177
15950 17178
15951 @DocsEditable 17179 @DocsEditable
15952 @DomName('HTMLParamElement') 17180 @DomName('HTMLParamElement')
15953 class ParamElement extends Element native "*HTMLParamElement" { 17181 class ParamElement extends Element native "*HTMLParamElement" {
15954 17182
15955 @DocsEditable 17183 @DocsEditable
15956 factory ParamElement() => document.$dom_createElement("param"); 17184 factory ParamElement() => document.$dom_createElement("param");
15957 17185
15958 @DocsEditable @DomName('HTMLParamElement.name') 17186 @DocsEditable
17187 @DomName('HTMLParamElement.name')
15959 String name; 17188 String name;
15960 17189
15961 @DocsEditable @DomName('HTMLParamElement.value') 17190 @DocsEditable
17191 @DomName('HTMLParamElement.value')
15962 String value; 17192 String value;
15963 } 17193 }
15964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15965 // for details. All rights reserved. Use of this source code is governed by a 17195 // for details. All rights reserved. Use of this source code is governed by a
15966 // BSD-style license that can be found in the LICENSE file. 17196 // BSD-style license that can be found in the LICENSE file.
15967 17197
15968 17198
15969 17199
15970 @DocsEditable 17200 @DocsEditable
15971 @DomName('Performance') 17201 @DomName('Performance')
15972 @SupportedBrowser(SupportedBrowser.CHROME) 17202 @SupportedBrowser(SupportedBrowser.CHROME)
15973 @SupportedBrowser(SupportedBrowser.FIREFOX) 17203 @SupportedBrowser(SupportedBrowser.FIREFOX)
15974 @SupportedBrowser(SupportedBrowser.IE) 17204 @SupportedBrowser(SupportedBrowser.IE)
15975 class Performance extends EventTarget native "*Performance" { 17205 class Performance extends EventTarget native "*Performance" {
15976 17206
15977 /// Checks if this type is supported on the current platform. 17207 /// Checks if this type is supported on the current platform.
15978 static bool get supported => JS('bool', '!!(window.performance)'); 17208 static bool get supported => JS('bool', '!!(window.performance)');
15979 17209
15980 @DocsEditable @DomName('Performance.memory') 17210 @DocsEditable
17211 @DomName('Performance.memory')
15981 final MemoryInfo memory; 17212 final MemoryInfo memory;
15982 17213
15983 @DocsEditable @DomName('Performance.navigation') 17214 @DocsEditable
17215 @DomName('Performance.navigation')
15984 final PerformanceNavigation navigation; 17216 final PerformanceNavigation navigation;
15985 17217
15986 @DocsEditable @DomName('Performance.timing') 17218 @DocsEditable
17219 @DomName('Performance.timing')
15987 final PerformanceTiming timing; 17220 final PerformanceTiming timing;
15988 17221
15989 @DocsEditable @DomName('Performance.now') 17222 @DocsEditable
17223 @DomName('Performance.now')
15990 num now() native; 17224 num now() native;
15991 } 17225 }
15992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15993 // for details. All rights reserved. Use of this source code is governed by a 17227 // for details. All rights reserved. Use of this source code is governed by a
15994 // BSD-style license that can be found in the LICENSE file. 17228 // BSD-style license that can be found in the LICENSE file.
15995 17229
15996 17230
15997 17231
15998 @DocsEditable 17232 @DocsEditable
15999 @DomName('PerformanceNavigation') 17233 @DomName('PerformanceNavigation')
16000 class PerformanceNavigation native "*PerformanceNavigation" { 17234 class PerformanceNavigation native "*PerformanceNavigation" {
16001 17235
16002 static const int TYPE_BACK_FORWARD = 2; 17236 static const int TYPE_BACK_FORWARD = 2;
16003 17237
16004 static const int TYPE_NAVIGATE = 0; 17238 static const int TYPE_NAVIGATE = 0;
16005 17239
16006 static const int TYPE_RELOAD = 1; 17240 static const int TYPE_RELOAD = 1;
16007 17241
16008 static const int TYPE_RESERVED = 255; 17242 static const int TYPE_RESERVED = 255;
16009 17243
16010 @DocsEditable @DomName('PerformanceNavigation.redirectCount') 17244 @DocsEditable
17245 @DomName('PerformanceNavigation.redirectCount')
16011 final int redirectCount; 17246 final int redirectCount;
16012 17247
16013 @DocsEditable @DomName('PerformanceNavigation.type') 17248 @DocsEditable
17249 @DomName('PerformanceNavigation.type')
16014 final int type; 17250 final int type;
16015 } 17251 }
16016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16017 // for details. All rights reserved. Use of this source code is governed by a 17253 // for details. All rights reserved. Use of this source code is governed by a
16018 // BSD-style license that can be found in the LICENSE file. 17254 // BSD-style license that can be found in the LICENSE file.
16019 17255
16020 17256
16021 17257
16022 @DocsEditable 17258 @DocsEditable
16023 @DomName('PerformanceTiming') 17259 @DomName('PerformanceTiming')
16024 class PerformanceTiming native "*PerformanceTiming" { 17260 class PerformanceTiming native "*PerformanceTiming" {
16025 17261
16026 @DocsEditable @DomName('PerformanceTiming.connectEnd') 17262 @DocsEditable
17263 @DomName('PerformanceTiming.connectEnd')
16027 final int connectEnd; 17264 final int connectEnd;
16028 17265
16029 @DocsEditable @DomName('PerformanceTiming.connectStart') 17266 @DocsEditable
17267 @DomName('PerformanceTiming.connectStart')
16030 final int connectStart; 17268 final int connectStart;
16031 17269
16032 @DocsEditable @DomName('PerformanceTiming.domComplete') 17270 @DocsEditable
17271 @DomName('PerformanceTiming.domComplete')
16033 final int domComplete; 17272 final int domComplete;
16034 17273
16035 @DocsEditable @DomName('PerformanceTiming.domContentLoadedEventEnd') 17274 @DocsEditable
17275 @DomName('PerformanceTiming.domContentLoadedEventEnd')
16036 final int domContentLoadedEventEnd; 17276 final int domContentLoadedEventEnd;
16037 17277
16038 @DocsEditable @DomName('PerformanceTiming.domContentLoadedEventStart') 17278 @DocsEditable
17279 @DomName('PerformanceTiming.domContentLoadedEventStart')
16039 final int domContentLoadedEventStart; 17280 final int domContentLoadedEventStart;
16040 17281
16041 @DocsEditable @DomName('PerformanceTiming.domInteractive') 17282 @DocsEditable
17283 @DomName('PerformanceTiming.domInteractive')
16042 final int domInteractive; 17284 final int domInteractive;
16043 17285
16044 @DocsEditable @DomName('PerformanceTiming.domLoading') 17286 @DocsEditable
17287 @DomName('PerformanceTiming.domLoading')
16045 final int domLoading; 17288 final int domLoading;
16046 17289
16047 @DocsEditable @DomName('PerformanceTiming.domainLookupEnd') 17290 @DocsEditable
17291 @DomName('PerformanceTiming.domainLookupEnd')
16048 final int domainLookupEnd; 17292 final int domainLookupEnd;
16049 17293
16050 @DocsEditable @DomName('PerformanceTiming.domainLookupStart') 17294 @DocsEditable
17295 @DomName('PerformanceTiming.domainLookupStart')
16051 final int domainLookupStart; 17296 final int domainLookupStart;
16052 17297
16053 @DocsEditable @DomName('PerformanceTiming.fetchStart') 17298 @DocsEditable
17299 @DomName('PerformanceTiming.fetchStart')
16054 final int fetchStart; 17300 final int fetchStart;
16055 17301
16056 @DocsEditable @DomName('PerformanceTiming.loadEventEnd') 17302 @DocsEditable
17303 @DomName('PerformanceTiming.loadEventEnd')
16057 final int loadEventEnd; 17304 final int loadEventEnd;
16058 17305
16059 @DocsEditable @DomName('PerformanceTiming.loadEventStart') 17306 @DocsEditable
17307 @DomName('PerformanceTiming.loadEventStart')
16060 final int loadEventStart; 17308 final int loadEventStart;
16061 17309
16062 @DocsEditable @DomName('PerformanceTiming.navigationStart') 17310 @DocsEditable
17311 @DomName('PerformanceTiming.navigationStart')
16063 final int navigationStart; 17312 final int navigationStart;
16064 17313
16065 @DocsEditable @DomName('PerformanceTiming.redirectEnd') 17314 @DocsEditable
17315 @DomName('PerformanceTiming.redirectEnd')
16066 final int redirectEnd; 17316 final int redirectEnd;
16067 17317
16068 @DocsEditable @DomName('PerformanceTiming.redirectStart') 17318 @DocsEditable
17319 @DomName('PerformanceTiming.redirectStart')
16069 final int redirectStart; 17320 final int redirectStart;
16070 17321
16071 @DocsEditable @DomName('PerformanceTiming.requestStart') 17322 @DocsEditable
17323 @DomName('PerformanceTiming.requestStart')
16072 final int requestStart; 17324 final int requestStart;
16073 17325
16074 @DocsEditable @DomName('PerformanceTiming.responseEnd') 17326 @DocsEditable
17327 @DomName('PerformanceTiming.responseEnd')
16075 final int responseEnd; 17328 final int responseEnd;
16076 17329
16077 @DocsEditable @DomName('PerformanceTiming.responseStart') 17330 @DocsEditable
17331 @DomName('PerformanceTiming.responseStart')
16078 final int responseStart; 17332 final int responseStart;
16079 17333
16080 @DocsEditable @DomName('PerformanceTiming.secureConnectionStart') 17334 @DocsEditable
17335 @DomName('PerformanceTiming.secureConnectionStart')
16081 final int secureConnectionStart; 17336 final int secureConnectionStart;
16082 17337
16083 @DocsEditable @DomName('PerformanceTiming.unloadEventEnd') 17338 @DocsEditable
17339 @DomName('PerformanceTiming.unloadEventEnd')
16084 final int unloadEventEnd; 17340 final int unloadEventEnd;
16085 17341
16086 @DocsEditable @DomName('PerformanceTiming.unloadEventStart') 17342 @DocsEditable
17343 @DomName('PerformanceTiming.unloadEventStart')
16087 final int unloadEventStart; 17344 final int unloadEventStart;
16088 } 17345 }
16089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16090 // for details. All rights reserved. Use of this source code is governed by a 17347 // for details. All rights reserved. Use of this source code is governed by a
16091 // BSD-style license that can be found in the LICENSE file. 17348 // BSD-style license that can be found in the LICENSE file.
16092 17349
16093 17350
16094 17351
16095 @DocsEditable 17352 @DocsEditable
16096 @DomName('WebKitPoint') 17353 @DomName('WebKitPoint')
16097 class Point native "*WebKitPoint" { 17354 class Point native "*WebKitPoint" {
16098 17355
16099 @DocsEditable 17356 @DocsEditable
16100 factory Point(num x, num y) => Point._create(x, y); 17357 factory Point(num x, num y) => Point._create(x, y);
16101 static Point _create(num x, num y) => JS('Point', 'new WebKitPoint(#,#)', x, y ); 17358 static Point _create(num x, num y) => JS('Point', 'new WebKitPoint(#,#)', x, y );
16102 17359
16103 @DocsEditable @DomName('WebKitPoint.x') 17360 @DocsEditable
17361 @DomName('WebKitPoint.x')
16104 num x; 17362 num x;
16105 17363
16106 @DocsEditable @DomName('WebKitPoint.y') 17364 @DocsEditable
17365 @DomName('WebKitPoint.y')
16107 num y; 17366 num y;
16108 } 17367 }
16109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16110 // for details. All rights reserved. Use of this source code is governed by a 17369 // for details. All rights reserved. Use of this source code is governed by a
16111 // BSD-style license that can be found in the LICENSE file. 17370 // BSD-style license that can be found in the LICENSE file.
16112 17371
16113 17372
16114 17373
16115 @DocsEditable 17374 @DocsEditable
16116 @DomName('PopStateEvent') 17375 @DomName('PopStateEvent')
16117 class PopStateEvent extends Event native "*PopStateEvent" { 17376 class PopStateEvent extends Event native "*PopStateEvent" {
16118 17377
16119 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); 17378 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state);
16120 @JSName('state') 17379 @JSName('state')
16121 @DocsEditable @DomName('PopStateEvent.state') @annotation_Creates_SerializedSc riptValue @annotation_Returns_SerializedScriptValue 17380 @DocsEditable
17381 @DomName('PopStateEvent.state')
17382 @annotation_Creates_SerializedScriptValue
17383 @annotation_Returns_SerializedScriptValue
16122 final dynamic _state; 17384 final dynamic _state;
16123 } 17385 }
16124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16125 // for details. All rights reserved. Use of this source code is governed by a 17387 // for details. All rights reserved. Use of this source code is governed by a
16126 // BSD-style license that can be found in the LICENSE file. 17388 // BSD-style license that can be found in the LICENSE file.
16127 17389
16128 // WARNING: Do not edit - generated code. 17390 // WARNING: Do not edit - generated code.
16129 17391
16130 17392
16131 typedef void PositionCallback(Geoposition position); 17393 typedef void PositionCallback(Geoposition position);
16132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17394 // 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 17395 // 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. 17396 // BSD-style license that can be found in the LICENSE file.
16135 17397
16136 17398
16137 17399
16138 @DocsEditable 17400 @DocsEditable
16139 @DomName('PositionError') 17401 @DomName('PositionError')
16140 class PositionError native "*PositionError" { 17402 class PositionError native "*PositionError" {
16141 17403
16142 static const int PERMISSION_DENIED = 1; 17404 static const int PERMISSION_DENIED = 1;
16143 17405
16144 static const int POSITION_UNAVAILABLE = 2; 17406 static const int POSITION_UNAVAILABLE = 2;
16145 17407
16146 static const int TIMEOUT = 3; 17408 static const int TIMEOUT = 3;
16147 17409
16148 @DocsEditable @DomName('PositionError.code') 17410 @DocsEditable
17411 @DomName('PositionError.code')
16149 final int code; 17412 final int code;
16150 17413
16151 @DocsEditable @DomName('PositionError.message') 17414 @DocsEditable
17415 @DomName('PositionError.message')
16152 final String message; 17416 final String message;
16153 } 17417 }
16154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16155 // for details. All rights reserved. Use of this source code is governed by a 17419 // for details. All rights reserved. Use of this source code is governed by a
16156 // BSD-style license that can be found in the LICENSE file. 17420 // BSD-style license that can be found in the LICENSE file.
16157 17421
16158 // WARNING: Do not edit - generated code. 17422 // WARNING: Do not edit - generated code.
16159 17423
16160 17424
16161 typedef void PositionErrorCallback(PositionError error); 17425 typedef void PositionErrorCallback(PositionError error);
16162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16163 // for details. All rights reserved. Use of this source code is governed by a 17427 // for details. All rights reserved. Use of this source code is governed by a
16164 // BSD-style license that can be found in the LICENSE file. 17428 // BSD-style license that can be found in the LICENSE file.
16165 17429
16166 17430
16167 17431
16168 @DocsEditable 17432 @DocsEditable
16169 @DomName('HTMLPreElement') 17433 @DomName('HTMLPreElement')
16170 class PreElement extends Element native "*HTMLPreElement" { 17434 class PreElement extends Element native "*HTMLPreElement" {
16171 17435
16172 @DocsEditable 17436 @DocsEditable
16173 factory PreElement() => document.$dom_createElement("pre"); 17437 factory PreElement() => document.$dom_createElement("pre");
16174 17438
16175 @DocsEditable @DomName('HTMLPreElement.wrap') 17439 @DocsEditable
17440 @DomName('HTMLPreElement.wrap')
16176 bool wrap; 17441 bool wrap;
16177 } 17442 }
16178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16179 // for details. All rights reserved. Use of this source code is governed by a 17444 // for details. All rights reserved. Use of this source code is governed by a
16180 // BSD-style license that can be found in the LICENSE file. 17445 // BSD-style license that can be found in the LICENSE file.
16181 17446
16182 17447
16183 17448
16184 @DocsEditable 17449 @DocsEditable
16185 @DomName('ProcessingInstruction') 17450 @DomName('ProcessingInstruction')
16186 class ProcessingInstruction extends Node native "*ProcessingInstruction" { 17451 class ProcessingInstruction extends Node native "*ProcessingInstruction" {
16187 17452
16188 @DocsEditable @DomName('ProcessingInstruction.data') 17453 @DocsEditable
17454 @DomName('ProcessingInstruction.data')
16189 String data; 17455 String data;
16190 17456
16191 @DocsEditable @DomName('ProcessingInstruction.sheet') 17457 @DocsEditable
17458 @DomName('ProcessingInstruction.sheet')
16192 final StyleSheet sheet; 17459 final StyleSheet sheet;
16193 17460
16194 @DocsEditable @DomName('ProcessingInstruction.target') 17461 @DocsEditable
17462 @DomName('ProcessingInstruction.target')
16195 final String target; 17463 final String target;
16196 } 17464 }
16197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16198 // for details. All rights reserved. Use of this source code is governed by a 17466 // for details. All rights reserved. Use of this source code is governed by a
16199 // BSD-style license that can be found in the LICENSE file. 17467 // BSD-style license that can be found in the LICENSE file.
16200 17468
16201 17469
16202 17470
16203 @DocsEditable 17471 @DocsEditable
16204 @DomName('HTMLProgressElement') 17472 @DomName('HTMLProgressElement')
16205 @SupportedBrowser(SupportedBrowser.CHROME) 17473 @SupportedBrowser(SupportedBrowser.CHROME)
16206 @SupportedBrowser(SupportedBrowser.FIREFOX) 17474 @SupportedBrowser(SupportedBrowser.FIREFOX)
16207 @SupportedBrowser(SupportedBrowser.IE, '10') 17475 @SupportedBrowser(SupportedBrowser.IE, '10')
16208 @SupportedBrowser(SupportedBrowser.SAFARI) 17476 @SupportedBrowser(SupportedBrowser.SAFARI)
16209 class ProgressElement extends Element native "*HTMLProgressElement" { 17477 class ProgressElement extends Element native "*HTMLProgressElement" {
16210 17478
16211 @DocsEditable 17479 @DocsEditable
16212 factory ProgressElement() => document.$dom_createElement("progress"); 17480 factory ProgressElement() => document.$dom_createElement("progress");
16213 17481
16214 /// Checks if this type is supported on the current platform. 17482 /// Checks if this type is supported on the current platform.
16215 static bool get supported => Element.isTagSupported('progress'); 17483 static bool get supported => Element.isTagSupported('progress');
16216 17484
16217 @DocsEditable @DomName('HTMLProgressElement.labels') 17485 @DocsEditable
16218 @Returns('NodeList') @Creates('NodeList') 17486 @DomName('HTMLProgressElement.labels')
17487 @Returns('NodeList')
17488 @Creates('NodeList')
16219 final List<Node> labels; 17489 final List<Node> labels;
16220 17490
16221 @DocsEditable @DomName('HTMLProgressElement.max') 17491 @DocsEditable
17492 @DomName('HTMLProgressElement.max')
16222 num max; 17493 num max;
16223 17494
16224 @DocsEditable @DomName('HTMLProgressElement.position') 17495 @DocsEditable
17496 @DomName('HTMLProgressElement.position')
16225 final num position; 17497 final num position;
16226 17498
16227 @DocsEditable @DomName('HTMLProgressElement.value') 17499 @DocsEditable
17500 @DomName('HTMLProgressElement.value')
16228 num value; 17501 num value;
16229 } 17502 }
16230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16231 // for details. All rights reserved. Use of this source code is governed by a 17504 // for details. All rights reserved. Use of this source code is governed by a
16232 // BSD-style license that can be found in the LICENSE file. 17505 // BSD-style license that can be found in the LICENSE file.
16233 17506
16234 17507
16235 17508
16236 @DocsEditable 17509 @DocsEditable
16237 @DomName('ProgressEvent') 17510 @DomName('ProgressEvent')
16238 class ProgressEvent extends Event native "*ProgressEvent" { 17511 class ProgressEvent extends Event native "*ProgressEvent" {
16239 17512
16240 @DocsEditable @DomName('ProgressEvent.lengthComputable') 17513 @DocsEditable
17514 @DomName('ProgressEvent.lengthComputable')
16241 final bool lengthComputable; 17515 final bool lengthComputable;
16242 17516
16243 @DocsEditable @DomName('ProgressEvent.loaded') 17517 @DocsEditable
17518 @DomName('ProgressEvent.loaded')
16244 final int loaded; 17519 final int loaded;
16245 17520
16246 @DocsEditable @DomName('ProgressEvent.total') 17521 @DocsEditable
17522 @DomName('ProgressEvent.total')
16247 final int total; 17523 final int total;
16248 } 17524 }
16249 // 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
16250 // 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
16251 // BSD-style license that can be found in the LICENSE file. 17527 // BSD-style license that can be found in the LICENSE file.
16252 17528
16253 17529
16254 17530
16255 @DocsEditable 17531 @DocsEditable
16256 @DomName('HTMLQuoteElement') 17532 @DomName('HTMLQuoteElement')
16257 class QuoteElement extends Element native "*HTMLQuoteElement" { 17533 class QuoteElement extends Element native "*HTMLQuoteElement" {
16258 17534
16259 @DocsEditable @DomName('HTMLQuoteElement.cite') 17535 @DocsEditable
17536 @DomName('HTMLQuoteElement.cite')
16260 String cite; 17537 String cite;
16261 } 17538 }
16262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16263 // for details. All rights reserved. Use of this source code is governed by a 17540 // for details. All rights reserved. Use of this source code is governed by a
16264 // BSD-style license that can be found in the LICENSE file. 17541 // BSD-style license that can be found in the LICENSE file.
16265 17542
16266 // WARNING: Do not edit - generated code. 17543 // WARNING: Do not edit - generated code.
16267 17544
16268 17545
16269 typedef void RtcErrorCallback(String errorInformation); 17546 typedef void RtcErrorCallback(String errorInformation);
(...skipping 16 matching lines...) Expand all
16286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16287 // for details. All rights reserved. Use of this source code is governed by a 17564 // for details. All rights reserved. Use of this source code is governed by a
16288 // BSD-style license that can be found in the LICENSE file. 17565 // BSD-style license that can be found in the LICENSE file.
16289 17566
16290 17567
16291 17568
16292 @DocsEditable 17569 @DocsEditable
16293 @DomName('RadioNodeList') 17570 @DomName('RadioNodeList')
16294 class RadioNodeList extends NodeList native "*RadioNodeList" { 17571 class RadioNodeList extends NodeList native "*RadioNodeList" {
16295 17572
16296 @DocsEditable @DomName('RadioNodeList.value') 17573 @DocsEditable
17574 @DomName('RadioNodeList.value')
16297 String value; 17575 String value;
16298 } 17576 }
16299 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16300 // for details. All rights reserved. Use of this source code is governed by a 17578 // for details. All rights reserved. Use of this source code is governed by a
16301 // BSD-style license that can be found in the LICENSE file. 17579 // BSD-style license that can be found in the LICENSE file.
16302 17580
16303 // WARNING: Do not edit - generated code. 17581 // WARNING: Do not edit - generated code.
16304 17582
16305 17583
16306 @DocsEditable 17584 @DocsEditable
(...skipping 11 matching lines...) Expand all
16318 static const int NODE_BEFORE = 0; 17596 static const int NODE_BEFORE = 0;
16319 17597
16320 static const int NODE_BEFORE_AND_AFTER = 2; 17598 static const int NODE_BEFORE_AND_AFTER = 2;
16321 17599
16322 static const int NODE_INSIDE = 3; 17600 static const int NODE_INSIDE = 3;
16323 17601
16324 static const int START_TO_END = 1; 17602 static const int START_TO_END = 1;
16325 17603
16326 static const int START_TO_START = 0; 17604 static const int START_TO_START = 0;
16327 17605
16328 @DocsEditable @DomName('Range.collapsed') 17606 @DocsEditable
17607 @DomName('Range.collapsed')
16329 final bool collapsed; 17608 final bool collapsed;
16330 17609
16331 @DocsEditable @DomName('Range.commonAncestorContainer') 17610 @DocsEditable
17611 @DomName('Range.commonAncestorContainer')
16332 final Node commonAncestorContainer; 17612 final Node commonAncestorContainer;
16333 17613
16334 @DocsEditable @DomName('Range.endContainer') 17614 @DocsEditable
17615 @DomName('Range.endContainer')
16335 final Node endContainer; 17616 final Node endContainer;
16336 17617
16337 @DocsEditable @DomName('Range.endOffset') 17618 @DocsEditable
17619 @DomName('Range.endOffset')
16338 final int endOffset; 17620 final int endOffset;
16339 17621
16340 @DocsEditable @DomName('Range.startContainer') 17622 @DocsEditable
17623 @DomName('Range.startContainer')
16341 final Node startContainer; 17624 final Node startContainer;
16342 17625
16343 @DocsEditable @DomName('Range.startOffset') 17626 @DocsEditable
17627 @DomName('Range.startOffset')
16344 final int startOffset; 17628 final int startOffset;
16345 17629
16346 @DocsEditable @DomName('Range.cloneContents') 17630 @DocsEditable
17631 @DomName('Range.cloneContents')
16347 DocumentFragment cloneContents() native; 17632 DocumentFragment cloneContents() native;
16348 17633
16349 @DocsEditable @DomName('Range.cloneRange') 17634 @DocsEditable
17635 @DomName('Range.cloneRange')
16350 Range cloneRange() native; 17636 Range cloneRange() native;
16351 17637
16352 @DocsEditable @DomName('Range.collapse') 17638 @DocsEditable
17639 @DomName('Range.collapse')
16353 void collapse(bool toStart) native; 17640 void collapse(bool toStart) native;
16354 17641
16355 @DocsEditable @DomName('Range.compareNode') 17642 @DocsEditable
17643 @DomName('Range.compareNode')
16356 int compareNode(Node refNode) native; 17644 int compareNode(Node refNode) native;
16357 17645
16358 @DocsEditable @DomName('Range.comparePoint') 17646 @DocsEditable
17647 @DomName('Range.comparePoint')
16359 int comparePoint(Node refNode, int offset) native; 17648 int comparePoint(Node refNode, int offset) native;
16360 17649
16361 @DocsEditable @DomName('Range.createContextualFragment') 17650 @DocsEditable
17651 @DomName('Range.createContextualFragment')
16362 DocumentFragment createContextualFragment(String html) native; 17652 DocumentFragment createContextualFragment(String html) native;
16363 17653
16364 @DocsEditable @DomName('Range.deleteContents') 17654 @DocsEditable
17655 @DomName('Range.deleteContents')
16365 void deleteContents() native; 17656 void deleteContents() native;
16366 17657
16367 @DocsEditable @DomName('Range.detach') 17658 @DocsEditable
17659 @DomName('Range.detach')
16368 void detach() native; 17660 void detach() native;
16369 17661
16370 @DocsEditable @DomName('Range.expand') 17662 @DocsEditable
17663 @DomName('Range.expand')
16371 void expand(String unit) native; 17664 void expand(String unit) native;
16372 17665
16373 @DocsEditable @DomName('Range.extractContents') 17666 @DocsEditable
17667 @DomName('Range.extractContents')
16374 DocumentFragment extractContents() native; 17668 DocumentFragment extractContents() native;
16375 17669
16376 @DocsEditable @DomName('Range.getBoundingClientRect') 17670 @DocsEditable
17671 @DomName('Range.getBoundingClientRect')
16377 ClientRect getBoundingClientRect() native; 17672 ClientRect getBoundingClientRect() native;
16378 17673
16379 @DocsEditable @DomName('Range.getClientRects') 17674 @DocsEditable
16380 @Returns('_ClientRectList') @Creates('_ClientRectList') 17675 @DomName('Range.getClientRects')
17676 @Returns('_ClientRectList')
17677 @Creates('_ClientRectList')
16381 List<ClientRect> getClientRects() native; 17678 List<ClientRect> getClientRects() native;
16382 17679
16383 @DocsEditable @DomName('Range.insertNode') 17680 @DocsEditable
17681 @DomName('Range.insertNode')
16384 void insertNode(Node newNode) native; 17682 void insertNode(Node newNode) native;
16385 17683
16386 @DocsEditable @DomName('Range.intersectsNode') 17684 @DocsEditable
17685 @DomName('Range.intersectsNode')
16387 bool intersectsNode(Node refNode) native; 17686 bool intersectsNode(Node refNode) native;
16388 17687
16389 @DocsEditable @DomName('Range.isPointInRange') 17688 @DocsEditable
17689 @DomName('Range.isPointInRange')
16390 bool isPointInRange(Node refNode, int offset) native; 17690 bool isPointInRange(Node refNode, int offset) native;
16391 17691
16392 @DocsEditable @DomName('Range.selectNode') 17692 @DocsEditable
17693 @DomName('Range.selectNode')
16393 void selectNode(Node refNode) native; 17694 void selectNode(Node refNode) native;
16394 17695
16395 @DocsEditable @DomName('Range.selectNodeContents') 17696 @DocsEditable
17697 @DomName('Range.selectNodeContents')
16396 void selectNodeContents(Node refNode) native; 17698 void selectNodeContents(Node refNode) native;
16397 17699
16398 @DocsEditable @DomName('Range.setEnd') 17700 @DocsEditable
17701 @DomName('Range.setEnd')
16399 void setEnd(Node refNode, int offset) native; 17702 void setEnd(Node refNode, int offset) native;
16400 17703
16401 @DocsEditable @DomName('Range.setEndAfter') 17704 @DocsEditable
17705 @DomName('Range.setEndAfter')
16402 void setEndAfter(Node refNode) native; 17706 void setEndAfter(Node refNode) native;
16403 17707
16404 @DocsEditable @DomName('Range.setEndBefore') 17708 @DocsEditable
17709 @DomName('Range.setEndBefore')
16405 void setEndBefore(Node refNode) native; 17710 void setEndBefore(Node refNode) native;
16406 17711
16407 @DocsEditable @DomName('Range.setStart') 17712 @DocsEditable
17713 @DomName('Range.setStart')
16408 void setStart(Node refNode, int offset) native; 17714 void setStart(Node refNode, int offset) native;
16409 17715
16410 @DocsEditable @DomName('Range.setStartAfter') 17716 @DocsEditable
17717 @DomName('Range.setStartAfter')
16411 void setStartAfter(Node refNode) native; 17718 void setStartAfter(Node refNode) native;
16412 17719
16413 @DocsEditable @DomName('Range.setStartBefore') 17720 @DocsEditable
17721 @DomName('Range.setStartBefore')
16414 void setStartBefore(Node refNode) native; 17722 void setStartBefore(Node refNode) native;
16415 17723
16416 @DocsEditable @DomName('Range.surroundContents') 17724 @DocsEditable
17725 @DomName('Range.surroundContents')
16417 void surroundContents(Node newParent) native; 17726 void surroundContents(Node newParent) native;
16418 17727
16419 @DocsEditable @DomName('Range.toString') 17728 @DocsEditable
17729 @DomName('Range.toString')
16420 String toString() native; 17730 String toString() native;
16421 17731
16422 } 17732 }
16423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16424 // for details. All rights reserved. Use of this source code is governed by a 17734 // for details. All rights reserved. Use of this source code is governed by a
16425 // BSD-style license that can be found in the LICENSE file. 17735 // BSD-style license that can be found in the LICENSE file.
16426 17736
16427 17737
16428 17738
16429 @DocsEditable 17739 @DocsEditable
16430 @DomName('RangeException') 17740 @DomName('RangeException')
16431 class RangeException native "*RangeException" { 17741 class RangeException native "*RangeException" {
16432 17742
16433 static const int BAD_BOUNDARYPOINTS_ERR = 1; 17743 static const int BAD_BOUNDARYPOINTS_ERR = 1;
16434 17744
16435 static const int INVALID_NODE_TYPE_ERR = 2; 17745 static const int INVALID_NODE_TYPE_ERR = 2;
16436 17746
16437 @DocsEditable @DomName('RangeException.code') 17747 @DocsEditable
17748 @DomName('RangeException.code')
16438 final int code; 17749 final int code;
16439 17750
16440 @DocsEditable @DomName('RangeException.message') 17751 @DocsEditable
17752 @DomName('RangeException.message')
16441 final String message; 17753 final String message;
16442 17754
16443 @DocsEditable @DomName('RangeException.name') 17755 @DocsEditable
17756 @DomName('RangeException.name')
16444 final String name; 17757 final String name;
16445 17758
16446 @DocsEditable @DomName('RangeException.toString') 17759 @DocsEditable
17760 @DomName('RangeException.toString')
16447 String toString() native; 17761 String toString() native;
16448 } 17762 }
16449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16450 // for details. All rights reserved. Use of this source code is governed by a 17764 // for details. All rights reserved. Use of this source code is governed by a
16451 // BSD-style license that can be found in the LICENSE file. 17765 // BSD-style license that can be found in the LICENSE file.
16452 17766
16453 17767
16454 17768
16455 @DocsEditable 17769 @DocsEditable
16456 @DomName('Rect') 17770 @DomName('Rect')
16457 class Rect native "*Rect" { 17771 class Rect native "*Rect" {
16458 17772
16459 @DocsEditable @DomName('Rect.bottom') 17773 @DocsEditable
17774 @DomName('Rect.bottom')
16460 final CssPrimitiveValue bottom; 17775 final CssPrimitiveValue bottom;
16461 17776
16462 @DocsEditable @DomName('Rect.left') 17777 @DocsEditable
17778 @DomName('Rect.left')
16463 final CssPrimitiveValue left; 17779 final CssPrimitiveValue left;
16464 17780
16465 @DocsEditable @DomName('Rect.right') 17781 @DocsEditable
17782 @DomName('Rect.right')
16466 final CssPrimitiveValue right; 17783 final CssPrimitiveValue right;
16467 17784
16468 @DocsEditable @DomName('Rect.top') 17785 @DocsEditable
17786 @DomName('Rect.top')
16469 final CssPrimitiveValue top; 17787 final CssPrimitiveValue top;
16470 } 17788 }
16471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16472 // for details. All rights reserved. Use of this source code is governed by a 17790 // for details. All rights reserved. Use of this source code is governed by a
16473 // BSD-style license that can be found in the LICENSE file. 17791 // BSD-style license that can be found in the LICENSE file.
16474 17792
16475 // WARNING: Do not edit - generated code. 17793 // WARNING: Do not edit - generated code.
16476 17794
16477 17795
16478 typedef void RequestAnimationFrameCallback(num highResTime); 17796 typedef void RequestAnimationFrameCallback(num highResTime);
16479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16480 // for details. All rights reserved. Use of this source code is governed by a 17798 // for details. All rights reserved. Use of this source code is governed by a
16481 // BSD-style license that can be found in the LICENSE file. 17799 // BSD-style license that can be found in the LICENSE file.
16482 17800
16483 17801
16484 17802
16485 @DocsEditable 17803 @DocsEditable
16486 @DomName('RGBColor') 17804 @DomName('RGBColor')
16487 class RgbColor native "*RGBColor" { 17805 class RgbColor native "*RGBColor" {
16488 17806
16489 @DocsEditable @DomName('RGBColor.blue') 17807 @DocsEditable
17808 @DomName('RGBColor.blue')
16490 final CssPrimitiveValue blue; 17809 final CssPrimitiveValue blue;
16491 17810
16492 @DocsEditable @DomName('RGBColor.green') 17811 @DocsEditable
17812 @DomName('RGBColor.green')
16493 final CssPrimitiveValue green; 17813 final CssPrimitiveValue green;
16494 17814
16495 @DocsEditable @DomName('RGBColor.red') 17815 @DocsEditable
17816 @DomName('RGBColor.red')
16496 final CssPrimitiveValue red; 17817 final CssPrimitiveValue red;
16497 } 17818 }
16498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16499 // for details. All rights reserved. Use of this source code is governed by a 17820 // for details. All rights reserved. Use of this source code is governed by a
16500 // BSD-style license that can be found in the LICENSE file. 17821 // BSD-style license that can be found in the LICENSE file.
16501 17822
16502 17823
16503 17824
16504 @DocsEditable 17825 @DocsEditable
16505 @DomName('RTCDataChannel') 17826 @DomName('RTCDataChannel')
16506 class RtcDataChannel extends EventTarget native "*RTCDataChannel" { 17827 class RtcDataChannel extends EventTarget native "*RTCDataChannel" {
16507 17828
16508 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close'); 17829 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close');
16509 17830
16510 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 17831 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
16511 17832
16512 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 17833 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
16513 17834
16514 static const EventStreamProvider<Event> openEvent = const EventStreamProvider< Event>('open'); 17835 static const EventStreamProvider<Event> openEvent = const EventStreamProvider< Event>('open');
16515 17836
16516 @DocsEditable 17837 @DocsEditable
16517 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 17838 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
16518 RtcDataChannelEvents get on => 17839 RtcDataChannelEvents get on =>
16519 new RtcDataChannelEvents(this); 17840 new RtcDataChannelEvents(this);
16520 17841
16521 @DocsEditable @DomName('RTCDataChannel.binaryType') 17842 @DocsEditable
17843 @DomName('RTCDataChannel.binaryType')
16522 String binaryType; 17844 String binaryType;
16523 17845
16524 @DocsEditable @DomName('RTCDataChannel.bufferedAmount') 17846 @DocsEditable
17847 @DomName('RTCDataChannel.bufferedAmount')
16525 final int bufferedAmount; 17848 final int bufferedAmount;
16526 17849
16527 @DocsEditable @DomName('RTCDataChannel.label') 17850 @DocsEditable
17851 @DomName('RTCDataChannel.label')
16528 final String label; 17852 final String label;
16529 17853
16530 @DocsEditable @DomName('RTCDataChannel.readyState') 17854 @DocsEditable
17855 @DomName('RTCDataChannel.readyState')
16531 final String readyState; 17856 final String readyState;
16532 17857
16533 @DocsEditable @DomName('RTCDataChannel.reliable') 17858 @DocsEditable
17859 @DomName('RTCDataChannel.reliable')
16534 final bool reliable; 17860 final bool reliable;
16535 17861
16536 @JSName('addEventListener') 17862 @JSName('addEventListener')
16537 @DocsEditable @DomName('RTCDataChannel.addEventListener') 17863 @DocsEditable
17864 @DomName('RTCDataChannel.addEventListener')
16538 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 17865 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
16539 17866
16540 @DocsEditable @DomName('RTCDataChannel.close') 17867 @DocsEditable
17868 @DomName('RTCDataChannel.close')
16541 void close() native; 17869 void close() native;
16542 17870
16543 @JSName('dispatchEvent') 17871 @JSName('dispatchEvent')
16544 @DocsEditable @DomName('RTCDataChannel.dispatchEvent') 17872 @DocsEditable
17873 @DomName('RTCDataChannel.dispatchEvent')
16545 bool $dom_dispatchEvent(Event event) native; 17874 bool $dom_dispatchEvent(Event event) native;
16546 17875
16547 @JSName('removeEventListener') 17876 @JSName('removeEventListener')
16548 @DocsEditable @DomName('RTCDataChannel.removeEventListener') 17877 @DocsEditable
17878 @DomName('RTCDataChannel.removeEventListener')
16549 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 17879 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
16550 17880
16551 @DocsEditable @DomName('RTCDataChannel.send') 17881 @DocsEditable
17882 @DomName('RTCDataChannel.send')
16552 void send(data) native; 17883 void send(data) native;
16553 17884
16554 Stream<Event> get onClose => closeEvent.forTarget(this); 17885 Stream<Event> get onClose => closeEvent.forTarget(this);
16555 17886
16556 Stream<Event> get onError => errorEvent.forTarget(this); 17887 Stream<Event> get onError => errorEvent.forTarget(this);
16557 17888
16558 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 17889 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
16559 17890
16560 Stream<Event> get onOpen => openEvent.forTarget(this); 17891 Stream<Event> get onOpen => openEvent.forTarget(this);
16561 } 17892 }
(...skipping 18 matching lines...) Expand all
16580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16581 // for details. All rights reserved. Use of this source code is governed by a 17912 // for details. All rights reserved. Use of this source code is governed by a
16582 // BSD-style license that can be found in the LICENSE file. 17913 // BSD-style license that can be found in the LICENSE file.
16583 17914
16584 17915
16585 17916
16586 @DocsEditable 17917 @DocsEditable
16587 @DomName('RTCDataChannelEvent') 17918 @DomName('RTCDataChannelEvent')
16588 class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" { 17919 class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" {
16589 17920
16590 @DocsEditable @DomName('RTCDataChannelEvent.channel') 17921 @DocsEditable
17922 @DomName('RTCDataChannelEvent.channel')
16591 final RtcDataChannel channel; 17923 final RtcDataChannel channel;
16592 } 17924 }
16593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16594 // for details. All rights reserved. Use of this source code is governed by a 17926 // for details. All rights reserved. Use of this source code is governed by a
16595 // BSD-style license that can be found in the LICENSE file. 17927 // BSD-style license that can be found in the LICENSE file.
16596 17928
16597 17929
16598 17930
16599 @DocsEditable 17931 @DocsEditable
16600 @DomName('RTCIceCandidate') 17932 @DomName('RTCIceCandidate')
16601 class RtcIceCandidate native "*RTCIceCandidate" { 17933 class RtcIceCandidate native "*RTCIceCandidate" {
16602 17934
16603 @DocsEditable 17935 @DocsEditable
16604 factory RtcIceCandidate(Map dictionary) => RtcIceCandidate._create(dictionary) ; 17936 factory RtcIceCandidate(Map dictionary) => RtcIceCandidate._create(dictionary) ;
16605 static RtcIceCandidate _create(Map dictionary) => JS('RtcIceCandidate', 'new R TCIceCandidate(#)', dictionary); 17937 static RtcIceCandidate _create(Map dictionary) => JS('RtcIceCandidate', 'new R TCIceCandidate(#)', dictionary);
16606 17938
16607 @DocsEditable @DomName('RTCIceCandidate.candidate') 17939 @DocsEditable
17940 @DomName('RTCIceCandidate.candidate')
16608 final String candidate; 17941 final String candidate;
16609 17942
16610 @DocsEditable @DomName('RTCIceCandidate.sdpMLineIndex') 17943 @DocsEditable
17944 @DomName('RTCIceCandidate.sdpMLineIndex')
16611 final int sdpMLineIndex; 17945 final int sdpMLineIndex;
16612 17946
16613 @DocsEditable @DomName('RTCIceCandidate.sdpMid') 17947 @DocsEditable
17948 @DomName('RTCIceCandidate.sdpMid')
16614 final String sdpMid; 17949 final String sdpMid;
16615 } 17950 }
16616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17951 // 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 17952 // 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. 17953 // BSD-style license that can be found in the LICENSE file.
16619 17954
16620 17955
16621 17956
16622 @DocsEditable 17957 @DocsEditable
16623 @DomName('RTCIceCandidateEvent') 17958 @DomName('RTCIceCandidateEvent')
16624 class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { 17959 class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" {
16625 17960
16626 @DocsEditable @DomName('RTCIceCandidateEvent.candidate') 17961 @DocsEditable
17962 @DomName('RTCIceCandidateEvent.candidate')
16627 final RtcIceCandidate candidate; 17963 final RtcIceCandidate candidate;
16628 } 17964 }
16629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16630 // for details. All rights reserved. Use of this source code is governed by a 17966 // for details. All rights reserved. Use of this source code is governed by a
16631 // BSD-style license that can be found in the LICENSE file. 17967 // BSD-style license that can be found in the LICENSE file.
16632 17968
16633 17969
16634 17970
16635 @DocsEditable 17971 @DocsEditable
16636 @DomName('RTCPeerConnection') 17972 @DomName('RTCPeerConnection')
(...skipping 27 matching lines...) Expand all
16664 return JS('RtcPeerConnection', 'new RTCPeerConnection(#)', rtcIceServers); 18000 return JS('RtcPeerConnection', 'new RTCPeerConnection(#)', rtcIceServers);
16665 } 18001 }
16666 return JS('RtcPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers, mediaConstraints); 18002 return JS('RtcPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers, mediaConstraints);
16667 } 18003 }
16668 18004
16669 @DocsEditable 18005 @DocsEditable
16670 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 18006 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
16671 RtcPeerConnectionEvents get on => 18007 RtcPeerConnectionEvents get on =>
16672 new RtcPeerConnectionEvents(this); 18008 new RtcPeerConnectionEvents(this);
16673 18009
16674 @DocsEditable @DomName('RTCPeerConnection.iceGatheringState') 18010 @DocsEditable
18011 @DomName('RTCPeerConnection.iceGatheringState')
16675 final String iceGatheringState; 18012 final String iceGatheringState;
16676 18013
16677 @DocsEditable @DomName('RTCPeerConnection.iceState') 18014 @DocsEditable
18015 @DomName('RTCPeerConnection.iceState')
16678 final String iceState; 18016 final String iceState;
16679 18017
16680 @DocsEditable @DomName('RTCPeerConnection.localDescription') 18018 @DocsEditable
18019 @DomName('RTCPeerConnection.localDescription')
16681 final RtcSessionDescription localDescription; 18020 final RtcSessionDescription localDescription;
16682 18021
16683 @DocsEditable @DomName('RTCPeerConnection.localStreams') 18022 @DocsEditable
16684 @Returns('_MediaStreamList') @Creates('_MediaStreamList') 18023 @DomName('RTCPeerConnection.localStreams')
18024 @Returns('_MediaStreamList')
18025 @Creates('_MediaStreamList')
16685 final List<MediaStream> localStreams; 18026 final List<MediaStream> localStreams;
16686 18027
16687 @DocsEditable @DomName('RTCPeerConnection.readyState') 18028 @DocsEditable
18029 @DomName('RTCPeerConnection.readyState')
16688 final String readyState; 18030 final String readyState;
16689 18031
16690 @DocsEditable @DomName('RTCPeerConnection.remoteDescription') 18032 @DocsEditable
18033 @DomName('RTCPeerConnection.remoteDescription')
16691 final RtcSessionDescription remoteDescription; 18034 final RtcSessionDescription remoteDescription;
16692 18035
16693 @DocsEditable @DomName('RTCPeerConnection.remoteStreams') 18036 @DocsEditable
16694 @Returns('_MediaStreamList') @Creates('_MediaStreamList') 18037 @DomName('RTCPeerConnection.remoteStreams')
18038 @Returns('_MediaStreamList')
18039 @Creates('_MediaStreamList')
16695 final List<MediaStream> remoteStreams; 18040 final List<MediaStream> remoteStreams;
16696 18041
16697 @JSName('addEventListener') 18042 @JSName('addEventListener')
16698 @DocsEditable @DomName('RTCPeerConnection.addEventListener') 18043 @DocsEditable
18044 @DomName('RTCPeerConnection.addEventListener')
16699 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 18045 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
16700 18046
16701 @DocsEditable @DomName('RTCPeerConnection.addIceCandidate') 18047 @DocsEditable
18048 @DomName('RTCPeerConnection.addIceCandidate')
16702 void addIceCandidate(RtcIceCandidate candidate) native; 18049 void addIceCandidate(RtcIceCandidate candidate) native;
16703 18050
16704 void addStream(MediaStream stream, [Map mediaConstraints]) { 18051 void addStream(MediaStream stream, [Map mediaConstraints]) {
16705 if (?mediaConstraints) { 18052 if (?mediaConstraints) {
16706 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); 18053 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
16707 _addStream_1(stream, mediaConstraints_1); 18054 _addStream_1(stream, mediaConstraints_1);
16708 return; 18055 return;
16709 } 18056 }
16710 _addStream_2(stream); 18057 _addStream_2(stream);
16711 return; 18058 return;
16712 } 18059 }
16713 @JSName('addStream') 18060 @JSName('addStream')
16714 @DocsEditable @DomName('RTCPeerConnection.addStream') 18061 @DocsEditable
18062 @DomName('RTCPeerConnection.addStream')
16715 void _addStream_1(MediaStream stream, mediaConstraints) native; 18063 void _addStream_1(MediaStream stream, mediaConstraints) native;
16716 @JSName('addStream') 18064 @JSName('addStream')
16717 @DocsEditable @DomName('RTCPeerConnection.addStream') 18065 @DocsEditable
18066 @DomName('RTCPeerConnection.addStream')
16718 void _addStream_2(MediaStream stream) native; 18067 void _addStream_2(MediaStream stream) native;
16719 18068
16720 @DocsEditable @DomName('RTCPeerConnection.close') 18069 @DocsEditable
18070 @DomName('RTCPeerConnection.close')
16721 void close() native; 18071 void close() native;
16722 18072
16723 void createAnswer(RtcSessionDescriptionCallback successCallback, [RtcErrorCall back failureCallback, Map mediaConstraints]) { 18073 void createAnswer(RtcSessionDescriptionCallback successCallback, [RtcErrorCall back failureCallback, Map mediaConstraints]) {
16724 if (?mediaConstraints) { 18074 if (?mediaConstraints) {
16725 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); 18075 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
16726 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); 18076 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
16727 return; 18077 return;
16728 } 18078 }
16729 _createAnswer_2(successCallback, failureCallback); 18079 _createAnswer_2(successCallback, failureCallback);
16730 return; 18080 return;
16731 } 18081 }
16732 @JSName('createAnswer') 18082 @JSName('createAnswer')
16733 @DocsEditable @DomName('RTCPeerConnection.createAnswer') 18083 @DocsEditable
18084 @DomName('RTCPeerConnection.createAnswer')
16734 void _createAnswer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCa llback failureCallback, mediaConstraints) native; 18085 void _createAnswer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCa llback failureCallback, mediaConstraints) native;
16735 @JSName('createAnswer') 18086 @JSName('createAnswer')
16736 @DocsEditable @DomName('RTCPeerConnection.createAnswer') 18087 @DocsEditable
18088 @DomName('RTCPeerConnection.createAnswer')
16737 void _createAnswer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCa llback failureCallback) native; 18089 void _createAnswer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCa llback failureCallback) native;
16738 18090
16739 RtcDataChannel createDataChannel(String label, [Map options]) { 18091 RtcDataChannel createDataChannel(String label, [Map options]) {
16740 if (?options) { 18092 if (?options) {
16741 var options_1 = convertDartToNative_Dictionary(options); 18093 var options_1 = convertDartToNative_Dictionary(options);
16742 return _createDataChannel_1(label, options_1); 18094 return _createDataChannel_1(label, options_1);
16743 } 18095 }
16744 return _createDataChannel_2(label); 18096 return _createDataChannel_2(label);
16745 } 18097 }
16746 @JSName('createDataChannel') 18098 @JSName('createDataChannel')
16747 @DocsEditable @DomName('RTCPeerConnection.createDataChannel') 18099 @DocsEditable
18100 @DomName('RTCPeerConnection.createDataChannel')
16748 RtcDataChannel _createDataChannel_1(label, options) native; 18101 RtcDataChannel _createDataChannel_1(label, options) native;
16749 @JSName('createDataChannel') 18102 @JSName('createDataChannel')
16750 @DocsEditable @DomName('RTCPeerConnection.createDataChannel') 18103 @DocsEditable
18104 @DomName('RTCPeerConnection.createDataChannel')
16751 RtcDataChannel _createDataChannel_2(label) native; 18105 RtcDataChannel _createDataChannel_2(label) native;
16752 18106
16753 void createOffer(RtcSessionDescriptionCallback successCallback, [RtcErrorCallb ack failureCallback, Map mediaConstraints]) { 18107 void createOffer(RtcSessionDescriptionCallback successCallback, [RtcErrorCallb ack failureCallback, Map mediaConstraints]) {
16754 if (?mediaConstraints) { 18108 if (?mediaConstraints) {
16755 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); 18109 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
16756 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); 18110 _createOffer_1(successCallback, failureCallback, mediaConstraints_1);
16757 return; 18111 return;
16758 } 18112 }
16759 _createOffer_2(successCallback, failureCallback); 18113 _createOffer_2(successCallback, failureCallback);
16760 return; 18114 return;
16761 } 18115 }
16762 @JSName('createOffer') 18116 @JSName('createOffer')
16763 @DocsEditable @DomName('RTCPeerConnection.createOffer') 18117 @DocsEditable
18118 @DomName('RTCPeerConnection.createOffer')
16764 void _createOffer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCal lback failureCallback, mediaConstraints) native; 18119 void _createOffer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCal lback failureCallback, mediaConstraints) native;
16765 @JSName('createOffer') 18120 @JSName('createOffer')
16766 @DocsEditable @DomName('RTCPeerConnection.createOffer') 18121 @DocsEditable
18122 @DomName('RTCPeerConnection.createOffer')
16767 void _createOffer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCal lback failureCallback) native; 18123 void _createOffer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCal lback failureCallback) native;
16768 18124
16769 @JSName('dispatchEvent') 18125 @JSName('dispatchEvent')
16770 @DocsEditable @DomName('RTCPeerConnection.dispatchEvent') 18126 @DocsEditable
18127 @DomName('RTCPeerConnection.dispatchEvent')
16771 bool $dom_dispatchEvent(Event event) native; 18128 bool $dom_dispatchEvent(Event event) native;
16772 18129
16773 @DocsEditable @DomName('RTCPeerConnection.getStats') 18130 @DocsEditable
18131 @DomName('RTCPeerConnection.getStats')
16774 void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector) nat ive; 18132 void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector) nat ive;
16775 18133
16776 @JSName('removeEventListener') 18134 @JSName('removeEventListener')
16777 @DocsEditable @DomName('RTCPeerConnection.removeEventListener') 18135 @DocsEditable
18136 @DomName('RTCPeerConnection.removeEventListener')
16778 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 18137 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
16779 18138
16780 @DocsEditable @DomName('RTCPeerConnection.removeStream') 18139 @DocsEditable
18140 @DomName('RTCPeerConnection.removeStream')
16781 void removeStream(MediaStream stream) native; 18141 void removeStream(MediaStream stream) native;
16782 18142
16783 @DocsEditable @DomName('RTCPeerConnection.setLocalDescription') 18143 @DocsEditable
18144 @DomName('RTCPeerConnection.setLocalDescription')
16784 void setLocalDescription(RtcSessionDescription description, [VoidCallback succ essCallback, RtcErrorCallback failureCallback]) native; 18145 void setLocalDescription(RtcSessionDescription description, [VoidCallback succ essCallback, RtcErrorCallback failureCallback]) native;
16785 18146
16786 @DocsEditable @DomName('RTCPeerConnection.setRemoteDescription') 18147 @DocsEditable
18148 @DomName('RTCPeerConnection.setRemoteDescription')
16787 void setRemoteDescription(RtcSessionDescription description, [VoidCallback suc cessCallback, RtcErrorCallback failureCallback]) native; 18149 void setRemoteDescription(RtcSessionDescription description, [VoidCallback suc cessCallback, RtcErrorCallback failureCallback]) native;
16788 18150
16789 void updateIce([Map configuration, Map mediaConstraints]) { 18151 void updateIce([Map configuration, Map mediaConstraints]) {
16790 if (?mediaConstraints) { 18152 if (?mediaConstraints) {
16791 var configuration_1 = convertDartToNative_Dictionary(configuration); 18153 var configuration_1 = convertDartToNative_Dictionary(configuration);
16792 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); 18154 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints);
16793 _updateIce_1(configuration_1, mediaConstraints_2); 18155 _updateIce_1(configuration_1, mediaConstraints_2);
16794 return; 18156 return;
16795 } 18157 }
16796 if (?configuration) { 18158 if (?configuration) {
16797 var configuration_3 = convertDartToNative_Dictionary(configuration); 18159 var configuration_3 = convertDartToNative_Dictionary(configuration);
16798 _updateIce_2(configuration_3); 18160 _updateIce_2(configuration_3);
16799 return; 18161 return;
16800 } 18162 }
16801 _updateIce_3(); 18163 _updateIce_3();
16802 return; 18164 return;
16803 } 18165 }
16804 @JSName('updateIce') 18166 @JSName('updateIce')
16805 @DocsEditable @DomName('RTCPeerConnection.updateIce') 18167 @DocsEditable
18168 @DomName('RTCPeerConnection.updateIce')
16806 void _updateIce_1(configuration, mediaConstraints) native; 18169 void _updateIce_1(configuration, mediaConstraints) native;
16807 @JSName('updateIce') 18170 @JSName('updateIce')
16808 @DocsEditable @DomName('RTCPeerConnection.updateIce') 18171 @DocsEditable
18172 @DomName('RTCPeerConnection.updateIce')
16809 void _updateIce_2(configuration) native; 18173 void _updateIce_2(configuration) native;
16810 @JSName('updateIce') 18174 @JSName('updateIce')
16811 @DocsEditable @DomName('RTCPeerConnection.updateIce') 18175 @DocsEditable
18176 @DomName('RTCPeerConnection.updateIce')
16812 void _updateIce_3() native; 18177 void _updateIce_3() native;
16813 18178
16814 Stream<MediaStreamEvent> get onAddStream => addStreamEvent.forTarget(this); 18179 Stream<MediaStreamEvent> get onAddStream => addStreamEvent.forTarget(this);
16815 18180
16816 Stream<RtcDataChannelEvent> get onDataChannel => dataChannelEvent.forTarget(th is); 18181 Stream<RtcDataChannelEvent> get onDataChannel => dataChannelEvent.forTarget(th is);
16817 18182
16818 Stream<RtcIceCandidateEvent> get onIceCandidate => iceCandidateEvent.forTarget (this); 18183 Stream<RtcIceCandidateEvent> get onIceCandidate => iceCandidateEvent.forTarget (this);
16819 18184
16820 Stream<Event> get onIceChange => iceChangeEvent.forTarget(this); 18185 Stream<Event> get onIceChange => iceChangeEvent.forTarget(this);
16821 18186
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
16861 18226
16862 18227
16863 @DocsEditable 18228 @DocsEditable
16864 @DomName('RTCSessionDescription') 18229 @DomName('RTCSessionDescription')
16865 class RtcSessionDescription native "*RTCSessionDescription" { 18230 class RtcSessionDescription native "*RTCSessionDescription" {
16866 18231
16867 @DocsEditable 18232 @DocsEditable
16868 factory RtcSessionDescription(Map dictionary) => RtcSessionDescription._create (dictionary); 18233 factory RtcSessionDescription(Map dictionary) => RtcSessionDescription._create (dictionary);
16869 static RtcSessionDescription _create(Map dictionary) => JS('RtcSessionDescript ion', 'new RTCSessionDescription(#)', dictionary); 18234 static RtcSessionDescription _create(Map dictionary) => JS('RtcSessionDescript ion', 'new RTCSessionDescription(#)', dictionary);
16870 18235
16871 @DocsEditable @DomName('RTCSessionDescription.sdp') 18236 @DocsEditable
18237 @DomName('RTCSessionDescription.sdp')
16872 String sdp; 18238 String sdp;
16873 18239
16874 @DocsEditable @DomName('RTCSessionDescription.type') 18240 @DocsEditable
18241 @DomName('RTCSessionDescription.type')
16875 String type; 18242 String type;
16876 } 18243 }
16877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16878 // for details. All rights reserved. Use of this source code is governed by a 18245 // for details. All rights reserved. Use of this source code is governed by a
16879 // BSD-style license that can be found in the LICENSE file. 18246 // BSD-style license that can be found in the LICENSE file.
16880 18247
16881 18248
16882 18249
16883 @DocsEditable 18250 @DocsEditable
16884 @DomName('RTCStatsElement') 18251 @DomName('RTCStatsElement')
16885 class RtcStatsElement native "*RTCStatsElement" { 18252 class RtcStatsElement native "*RTCStatsElement" {
16886 18253
16887 @DocsEditable @DomName('RTCStatsElement.timestamp') 18254 @DocsEditable
18255 @DomName('RTCStatsElement.timestamp')
16888 final Date timestamp; 18256 final Date timestamp;
16889 18257
16890 @DocsEditable @DomName('RTCStatsElement.names') 18258 @DocsEditable
18259 @DomName('RTCStatsElement.names')
16891 List<String> names() native; 18260 List<String> names() native;
16892 18261
16893 @DocsEditable @DomName('RTCStatsElement.stat') 18262 @DocsEditable
18263 @DomName('RTCStatsElement.stat')
16894 String stat(String name) native; 18264 String stat(String name) native;
16895 } 18265 }
16896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16897 // for details. All rights reserved. Use of this source code is governed by a 18267 // for details. All rights reserved. Use of this source code is governed by a
16898 // BSD-style license that can be found in the LICENSE file. 18268 // BSD-style license that can be found in the LICENSE file.
16899 18269
16900 18270
16901 18271
16902 @DocsEditable 18272 @DocsEditable
16903 @DomName('RTCStatsReport') 18273 @DomName('RTCStatsReport')
16904 class RtcStatsReport native "*RTCStatsReport" { 18274 class RtcStatsReport native "*RTCStatsReport" {
16905 18275
16906 @DocsEditable @DomName('RTCStatsReport.local') 18276 @DocsEditable
18277 @DomName('RTCStatsReport.local')
16907 final RtcStatsElement local; 18278 final RtcStatsElement local;
16908 18279
16909 @DocsEditable @DomName('RTCStatsReport.remote') 18280 @DocsEditable
18281 @DomName('RTCStatsReport.remote')
16910 final RtcStatsElement remote; 18282 final RtcStatsElement remote;
16911 } 18283 }
16912 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16913 // for details. All rights reserved. Use of this source code is governed by a 18285 // for details. All rights reserved. Use of this source code is governed by a
16914 // BSD-style license that can be found in the LICENSE file. 18286 // BSD-style license that can be found in the LICENSE file.
16915 18287
16916 18288
16917 18289
16918 @DocsEditable 18290 @DocsEditable
16919 @DomName('RTCStatsResponse') 18291 @DomName('RTCStatsResponse')
16920 class RtcStatsResponse native "*RTCStatsResponse" { 18292 class RtcStatsResponse native "*RTCStatsResponse" {
16921 18293
16922 @DocsEditable @DomName('RTCStatsResponse.result') 18294 @DocsEditable
18295 @DomName('RTCStatsResponse.result')
16923 List<RtcStatsReport> result() native; 18296 List<RtcStatsReport> result() native;
16924 } 18297 }
16925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16926 // for details. All rights reserved. Use of this source code is governed by a 18299 // for details. All rights reserved. Use of this source code is governed by a
16927 // BSD-style license that can be found in the LICENSE file. 18300 // BSD-style license that can be found in the LICENSE file.
16928 18301
16929 // WARNING: Do not edit - generated code. 18302 // WARNING: Do not edit - generated code.
16930 18303
16931 18304
16932 typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resul tSet); 18305 typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resul tSet);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
16965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16966 // for details. All rights reserved. Use of this source code is governed by a 18339 // for details. All rights reserved. Use of this source code is governed by a
16967 // BSD-style license that can be found in the LICENSE file. 18340 // BSD-style license that can be found in the LICENSE file.
16968 18341
16969 18342
16970 18343
16971 @DocsEditable 18344 @DocsEditable
16972 @DomName('Screen') 18345 @DomName('Screen')
16973 class Screen native "*Screen" { 18346 class Screen native "*Screen" {
16974 18347
16975 @DocsEditable @DomName('Screen.availHeight') 18348 @DocsEditable
18349 @DomName('Screen.availHeight')
16976 final int availHeight; 18350 final int availHeight;
16977 18351
16978 @DocsEditable @DomName('Screen.availLeft') 18352 @DocsEditable
18353 @DomName('Screen.availLeft')
16979 final int availLeft; 18354 final int availLeft;
16980 18355
16981 @DocsEditable @DomName('Screen.availTop') 18356 @DocsEditable
18357 @DomName('Screen.availTop')
16982 final int availTop; 18358 final int availTop;
16983 18359
16984 @DocsEditable @DomName('Screen.availWidth') 18360 @DocsEditable
18361 @DomName('Screen.availWidth')
16985 final int availWidth; 18362 final int availWidth;
16986 18363
16987 @DocsEditable @DomName('Screen.colorDepth') 18364 @DocsEditable
18365 @DomName('Screen.colorDepth')
16988 final int colorDepth; 18366 final int colorDepth;
16989 18367
16990 @DocsEditable @DomName('Screen.height') 18368 @DocsEditable
18369 @DomName('Screen.height')
16991 final int height; 18370 final int height;
16992 18371
16993 @DocsEditable @DomName('Screen.pixelDepth') 18372 @DocsEditable
18373 @DomName('Screen.pixelDepth')
16994 final int pixelDepth; 18374 final int pixelDepth;
16995 18375
16996 @DocsEditable @DomName('Screen.width') 18376 @DocsEditable
18377 @DomName('Screen.width')
16997 final int width; 18378 final int width;
16998 } 18379 }
16999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17000 // for details. All rights reserved. Use of this source code is governed by a 18381 // for details. All rights reserved. Use of this source code is governed by a
17001 // BSD-style license that can be found in the LICENSE file. 18382 // BSD-style license that can be found in the LICENSE file.
17002 18383
17003 18384
17004 18385
17005 @DocsEditable 18386 @DocsEditable
17006 @DomName('HTMLScriptElement') 18387 @DomName('HTMLScriptElement')
17007 class ScriptElement extends Element native "*HTMLScriptElement" { 18388 class ScriptElement extends Element native "*HTMLScriptElement" {
17008 18389
17009 @DocsEditable 18390 @DocsEditable
17010 factory ScriptElement() => document.$dom_createElement("script"); 18391 factory ScriptElement() => document.$dom_createElement("script");
17011 18392
17012 @DocsEditable @DomName('HTMLScriptElement.async') 18393 @DocsEditable
18394 @DomName('HTMLScriptElement.async')
17013 bool async; 18395 bool async;
17014 18396
17015 @DocsEditable @DomName('HTMLScriptElement.charset') 18397 @DocsEditable
18398 @DomName('HTMLScriptElement.charset')
17016 String charset; 18399 String charset;
17017 18400
17018 @DocsEditable @DomName('HTMLScriptElement.crossOrigin') 18401 @DocsEditable
18402 @DomName('HTMLScriptElement.crossOrigin')
17019 String crossOrigin; 18403 String crossOrigin;
17020 18404
17021 @DocsEditable @DomName('HTMLScriptElement.defer') 18405 @DocsEditable
18406 @DomName('HTMLScriptElement.defer')
17022 bool defer; 18407 bool defer;
17023 18408
17024 @DocsEditable @DomName('HTMLScriptElement.event') 18409 @DocsEditable
18410 @DomName('HTMLScriptElement.event')
17025 String event; 18411 String event;
17026 18412
17027 @DocsEditable @DomName('HTMLScriptElement.htmlFor') 18413 @DocsEditable
18414 @DomName('HTMLScriptElement.htmlFor')
17028 String htmlFor; 18415 String htmlFor;
17029 18416
17030 @DocsEditable @DomName('HTMLScriptElement.src') 18417 @DocsEditable
18418 @DomName('HTMLScriptElement.src')
17031 String src; 18419 String src;
17032 18420
17033 @DocsEditable @DomName('HTMLScriptElement.type') 18421 @DocsEditable
18422 @DomName('HTMLScriptElement.type')
17034 String type; 18423 String type;
17035 } 18424 }
17036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18425 // 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 18426 // 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. 18427 // BSD-style license that can be found in the LICENSE file.
17039 18428
17040 18429
17041 18430
17042 @DocsEditable 18431 @DocsEditable
17043 @DomName('ScriptProfile') 18432 @DomName('ScriptProfile')
17044 class ScriptProfile native "*ScriptProfile" { 18433 class ScriptProfile native "*ScriptProfile" {
17045 18434
17046 @DocsEditable @DomName('ScriptProfile.head') 18435 @DocsEditable
18436 @DomName('ScriptProfile.head')
17047 final ScriptProfileNode head; 18437 final ScriptProfileNode head;
17048 18438
17049 @DocsEditable @DomName('ScriptProfile.idleTime') 18439 @DocsEditable
18440 @DomName('ScriptProfile.idleTime')
17050 final num idleTime; 18441 final num idleTime;
17051 18442
17052 @DocsEditable @DomName('ScriptProfile.title') 18443 @DocsEditable
18444 @DomName('ScriptProfile.title')
17053 final String title; 18445 final String title;
17054 18446
17055 @DocsEditable @DomName('ScriptProfile.uid') 18447 @DocsEditable
18448 @DomName('ScriptProfile.uid')
17056 final int uid; 18449 final int uid;
17057 } 18450 }
17058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17059 // for details. All rights reserved. Use of this source code is governed by a 18452 // for details. All rights reserved. Use of this source code is governed by a
17060 // BSD-style license that can be found in the LICENSE file. 18453 // BSD-style license that can be found in the LICENSE file.
17061 18454
17062 18455
17063 18456
17064 @DocsEditable 18457 @DocsEditable
17065 @DomName('ScriptProfileNode') 18458 @DomName('ScriptProfileNode')
17066 class ScriptProfileNode native "*ScriptProfileNode" { 18459 class ScriptProfileNode native "*ScriptProfileNode" {
17067 18460
17068 @JSName('callUID') 18461 @JSName('callUID')
17069 @DocsEditable @DomName('ScriptProfileNode.callUID') 18462 @DocsEditable
18463 @DomName('ScriptProfileNode.callUID')
17070 final int callUid; 18464 final int callUid;
17071 18465
17072 @DocsEditable @DomName('ScriptProfileNode.functionName') 18466 @DocsEditable
18467 @DomName('ScriptProfileNode.functionName')
17073 final String functionName; 18468 final String functionName;
17074 18469
17075 @DocsEditable @DomName('ScriptProfileNode.lineNumber') 18470 @DocsEditable
18471 @DomName('ScriptProfileNode.lineNumber')
17076 final int lineNumber; 18472 final int lineNumber;
17077 18473
17078 @DocsEditable @DomName('ScriptProfileNode.numberOfCalls') 18474 @DocsEditable
18475 @DomName('ScriptProfileNode.numberOfCalls')
17079 final int numberOfCalls; 18476 final int numberOfCalls;
17080 18477
17081 @DocsEditable @DomName('ScriptProfileNode.selfTime') 18478 @DocsEditable
18479 @DomName('ScriptProfileNode.selfTime')
17082 final num selfTime; 18480 final num selfTime;
17083 18481
17084 @DocsEditable @DomName('ScriptProfileNode.totalTime') 18482 @DocsEditable
18483 @DomName('ScriptProfileNode.totalTime')
17085 final num totalTime; 18484 final num totalTime;
17086 18485
17087 @DocsEditable @DomName('ScriptProfileNode.url') 18486 @DocsEditable
18487 @DomName('ScriptProfileNode.url')
17088 final String url; 18488 final String url;
17089 18489
17090 @DocsEditable @DomName('ScriptProfileNode.visible') 18490 @DocsEditable
18491 @DomName('ScriptProfileNode.visible')
17091 final bool visible; 18492 final bool visible;
17092 18493
17093 @DocsEditable @DomName('ScriptProfileNode.children') 18494 @DocsEditable
18495 @DomName('ScriptProfileNode.children')
17094 List<ScriptProfileNode> children() native; 18496 List<ScriptProfileNode> children() native;
17095 } 18497 }
17096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17097 // for details. All rights reserved. Use of this source code is governed by a 18499 // for details. All rights reserved. Use of this source code is governed by a
17098 // BSD-style license that can be found in the LICENSE file. 18500 // BSD-style license that can be found in the LICENSE file.
17099 18501
17100 18502
17101 @DocsEditable 18503 @DocsEditable
17102 @DomName('HTMLSelectElement') 18504 @DomName('HTMLSelectElement')
17103 class SelectElement extends Element native "*HTMLSelectElement" { 18505 class SelectElement extends Element native "*HTMLSelectElement" {
17104 18506
17105 @DocsEditable 18507 @DocsEditable
17106 factory SelectElement() => document.$dom_createElement("select"); 18508 factory SelectElement() => document.$dom_createElement("select");
17107 18509
17108 @DocsEditable @DomName('HTMLSelectElement.autofocus') 18510 @DocsEditable
18511 @DomName('HTMLSelectElement.autofocus')
17109 bool autofocus; 18512 bool autofocus;
17110 18513
17111 @DocsEditable @DomName('HTMLSelectElement.disabled') 18514 @DocsEditable
18515 @DomName('HTMLSelectElement.disabled')
17112 bool disabled; 18516 bool disabled;
17113 18517
17114 @DocsEditable @DomName('HTMLSelectElement.form') 18518 @DocsEditable
18519 @DomName('HTMLSelectElement.form')
17115 final FormElement form; 18520 final FormElement form;
17116 18521
17117 @DocsEditable @DomName('HTMLSelectElement.labels') 18522 @DocsEditable
17118 @Returns('NodeList') @Creates('NodeList') 18523 @DomName('HTMLSelectElement.labels')
18524 @Returns('NodeList')
18525 @Creates('NodeList')
17119 final List<Node> labels; 18526 final List<Node> labels;
17120 18527
17121 @DocsEditable @DomName('HTMLSelectElement.length') 18528 @DocsEditable
18529 @DomName('HTMLSelectElement.length')
17122 int length; 18530 int length;
17123 18531
17124 @DocsEditable @DomName('HTMLSelectElement.multiple') 18532 @DocsEditable
18533 @DomName('HTMLSelectElement.multiple')
17125 bool multiple; 18534 bool multiple;
17126 18535
17127 @DocsEditable @DomName('HTMLSelectElement.name') 18536 @DocsEditable
18537 @DomName('HTMLSelectElement.name')
17128 String name; 18538 String name;
17129 18539
17130 @DocsEditable @DomName('HTMLSelectElement.required') 18540 @DocsEditable
18541 @DomName('HTMLSelectElement.required')
17131 bool required; 18542 bool required;
17132 18543
17133 @DocsEditable @DomName('HTMLSelectElement.selectedIndex') 18544 @DocsEditable
18545 @DomName('HTMLSelectElement.selectedIndex')
17134 int selectedIndex; 18546 int selectedIndex;
17135 18547
17136 @DocsEditable @DomName('HTMLSelectElement.size') 18548 @DocsEditable
18549 @DomName('HTMLSelectElement.size')
17137 int size; 18550 int size;
17138 18551
17139 @DocsEditable @DomName('HTMLSelectElement.type') 18552 @DocsEditable
18553 @DomName('HTMLSelectElement.type')
17140 final String type; 18554 final String type;
17141 18555
17142 @DocsEditable @DomName('HTMLSelectElement.validationMessage') 18556 @DocsEditable
18557 @DomName('HTMLSelectElement.validationMessage')
17143 final String validationMessage; 18558 final String validationMessage;
17144 18559
17145 @DocsEditable @DomName('HTMLSelectElement.validity') 18560 @DocsEditable
18561 @DomName('HTMLSelectElement.validity')
17146 final ValidityState validity; 18562 final ValidityState validity;
17147 18563
17148 @DocsEditable @DomName('HTMLSelectElement.value') 18564 @DocsEditable
18565 @DomName('HTMLSelectElement.value')
17149 String value; 18566 String value;
17150 18567
17151 @DocsEditable @DomName('HTMLSelectElement.willValidate') 18568 @DocsEditable
18569 @DomName('HTMLSelectElement.willValidate')
17152 final bool willValidate; 18570 final bool willValidate;
17153 18571
17154 @DocsEditable @DomName('HTMLSelectElement.checkValidity') 18572 @DocsEditable
18573 @DomName('HTMLSelectElement.checkValidity')
17155 bool checkValidity() native; 18574 bool checkValidity() native;
17156 18575
17157 @DocsEditable @DomName('HTMLSelectElement.item') 18576 @DocsEditable
18577 @DomName('HTMLSelectElement.item')
17158 Node item(int index) native; 18578 Node item(int index) native;
17159 18579
17160 @DocsEditable @DomName('HTMLSelectElement.namedItem') 18580 @DocsEditable
18581 @DomName('HTMLSelectElement.namedItem')
17161 Node namedItem(String name) native; 18582 Node namedItem(String name) native;
17162 18583
17163 @DocsEditable @DomName('HTMLSelectElement.setCustomValidity') 18584 @DocsEditable
18585 @DomName('HTMLSelectElement.setCustomValidity')
17164 void setCustomValidity(String error) native; 18586 void setCustomValidity(String error) native;
17165 18587
17166 18588
17167 // Override default options, since IE returns SelectElement itself and it 18589 // Override default options, since IE returns SelectElement itself and it
17168 // does not operate as a List. 18590 // does not operate as a List.
17169 List<OptionElement> get options { 18591 List<OptionElement> get options {
17170 var options = this.children.where((e) => e is OptionElement).toList(); 18592 var options = this.children.where((e) => e is OptionElement).toList();
17171 return new ListView(options, 0, options.length); 18593 return new ListView(options, 0, options.length);
17172 } 18594 }
17173 18595
(...skipping 15 matching lines...) Expand all
17189 18611
17190 @DocsEditable 18612 @DocsEditable
17191 @DomName('HTMLShadowElement') 18613 @DomName('HTMLShadowElement')
17192 @SupportedBrowser(SupportedBrowser.CHROME, '25') 18614 @SupportedBrowser(SupportedBrowser.CHROME, '25')
17193 @Experimental() 18615 @Experimental()
17194 class ShadowElement extends Element native "*HTMLShadowElement" { 18616 class ShadowElement extends Element native "*HTMLShadowElement" {
17195 18617
17196 /// Checks if this type is supported on the current platform. 18618 /// Checks if this type is supported on the current platform.
17197 static bool get supported => Element.isTagSupported('shadow'); 18619 static bool get supported => Element.isTagSupported('shadow');
17198 18620
17199 @DocsEditable @DomName('HTMLShadowElement.olderShadowRoot') 18621 @DocsEditable
18622 @DomName('HTMLShadowElement.olderShadowRoot')
17200 final ShadowRoot olderShadowRoot; 18623 final ShadowRoot olderShadowRoot;
17201 18624
17202 @DocsEditable @DomName('HTMLShadowElement.resetStyleInheritance') 18625 @DocsEditable
18626 @DomName('HTMLShadowElement.resetStyleInheritance')
17203 bool resetStyleInheritance; 18627 bool resetStyleInheritance;
17204 } 18628 }
17205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17206 // for details. All rights reserved. Use of this source code is governed by a 18630 // for details. All rights reserved. Use of this source code is governed by a
17207 // BSD-style license that can be found in the LICENSE file. 18631 // BSD-style license that can be found in the LICENSE file.
17208 18632
17209 // WARNING: Do not edit - generated code. 18633 // WARNING: Do not edit - generated code.
17210 18634
17211 18635
17212 @DocsEditable 18636 @DocsEditable
17213 @DomName('ShadowRoot') 18637 @DomName('ShadowRoot')
17214 @SupportedBrowser(SupportedBrowser.CHROME, '25') 18638 @SupportedBrowser(SupportedBrowser.CHROME, '25')
17215 @Experimental() 18639 @Experimental()
17216 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { 18640 class ShadowRoot extends DocumentFragment native "*ShadowRoot" {
17217 18641
17218 @DocsEditable @DomName('ShadowRoot.activeElement') 18642 @DocsEditable
18643 @DomName('ShadowRoot.activeElement')
17219 final Element activeElement; 18644 final Element activeElement;
17220 18645
17221 @DocsEditable @DomName('ShadowRoot.applyAuthorStyles') 18646 @DocsEditable
18647 @DomName('ShadowRoot.applyAuthorStyles')
17222 bool applyAuthorStyles; 18648 bool applyAuthorStyles;
17223 18649
17224 @JSName('innerHTML') 18650 @JSName('innerHTML')
17225 @DocsEditable @DomName('ShadowRoot.innerHTML') 18651 @DocsEditable
18652 @DomName('ShadowRoot.innerHTML')
17226 String innerHtml; 18653 String innerHtml;
17227 18654
17228 @DocsEditable @DomName('ShadowRoot.resetStyleInheritance') 18655 @DocsEditable
18656 @DomName('ShadowRoot.resetStyleInheritance')
17229 bool resetStyleInheritance; 18657 bool resetStyleInheritance;
17230 18658
17231 @JSName('cloneNode') 18659 @JSName('cloneNode')
17232 @DocsEditable @DomName('ShadowRoot.cloneNode') 18660 @DocsEditable
18661 @DomName('ShadowRoot.cloneNode')
17233 Node clone(bool deep) native; 18662 Node clone(bool deep) native;
17234 18663
17235 @DocsEditable @DomName('ShadowRoot.elementFromPoint') 18664 @DocsEditable
18665 @DomName('ShadowRoot.elementFromPoint')
17236 Element elementFromPoint(int x, int y) native; 18666 Element elementFromPoint(int x, int y) native;
17237 18667
17238 @JSName('getElementById') 18668 @JSName('getElementById')
17239 @DocsEditable @DomName('ShadowRoot.getElementById') 18669 @DocsEditable
18670 @DomName('ShadowRoot.getElementById')
17240 Element $dom_getElementById(String elementId) native; 18671 Element $dom_getElementById(String elementId) native;
17241 18672
17242 @JSName('getElementsByClassName') 18673 @JSName('getElementsByClassName')
17243 @DocsEditable @DomName('ShadowRoot.getElementsByClassName') 18674 @DocsEditable
17244 @Returns('NodeList') @Creates('NodeList') 18675 @DomName('ShadowRoot.getElementsByClassName')
18676 @Returns('NodeList')
18677 @Creates('NodeList')
17245 List<Node> $dom_getElementsByClassName(String className) native; 18678 List<Node> $dom_getElementsByClassName(String className) native;
17246 18679
17247 @JSName('getElementsByTagName') 18680 @JSName('getElementsByTagName')
17248 @DocsEditable @DomName('ShadowRoot.getElementsByTagName') 18681 @DocsEditable
17249 @Returns('NodeList') @Creates('NodeList') 18682 @DomName('ShadowRoot.getElementsByTagName')
18683 @Returns('NodeList')
18684 @Creates('NodeList')
17250 List<Node> $dom_getElementsByTagName(String tagName) native; 18685 List<Node> $dom_getElementsByTagName(String tagName) native;
17251 18686
17252 @DocsEditable @DomName('ShadowRoot.getSelection') 18687 @DocsEditable
18688 @DomName('ShadowRoot.getSelection')
17253 DomSelection getSelection() native; 18689 DomSelection getSelection() native;
17254 18690
17255 static bool get supported => 18691 static bool get supported =>
17256 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); 18692 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)');
17257 } 18693 }
17258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17259 // for details. All rights reserved. Use of this source code is governed by a 18695 // for details. All rights reserved. Use of this source code is governed by a
17260 // BSD-style license that can be found in the LICENSE file. 18696 // BSD-style license that can be found in the LICENSE file.
17261 18697
17262 18698
17263 18699
17264 @DocsEditable 18700 @DocsEditable
17265 @DomName('SharedWorker') 18701 @DomName('SharedWorker')
17266 class SharedWorker extends AbstractWorker native "*SharedWorker" { 18702 class SharedWorker extends AbstractWorker native "*SharedWorker" {
17267 18703
17268 @DocsEditable 18704 @DocsEditable
17269 factory SharedWorker(String scriptURL, [String name]) { 18705 factory SharedWorker(String scriptURL, [String name]) {
17270 if (!?name) { 18706 if (!?name) {
17271 return SharedWorker._create(scriptURL); 18707 return SharedWorker._create(scriptURL);
17272 } 18708 }
17273 return SharedWorker._create(scriptURL, name); 18709 return SharedWorker._create(scriptURL, name);
17274 } 18710 }
17275 static SharedWorker _create(String scriptURL, [String name]) { 18711 static SharedWorker _create(String scriptURL, [String name]) {
17276 if (!?name) { 18712 if (!?name) {
17277 return JS('SharedWorker', 'new SharedWorker(#)', scriptURL); 18713 return JS('SharedWorker', 'new SharedWorker(#)', scriptURL);
17278 } 18714 }
17279 return JS('SharedWorker', 'new SharedWorker(#,#)', scriptURL, name); 18715 return JS('SharedWorker', 'new SharedWorker(#,#)', scriptURL, name);
17280 } 18716 }
17281 18717
17282 @DocsEditable @DomName('SharedWorker.port') 18718 @DocsEditable
18719 @DomName('SharedWorker.port')
17283 final MessagePort port; 18720 final MessagePort port;
17284 } 18721 }
17285 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17286 // for details. All rights reserved. Use of this source code is governed by a 18723 // for details. All rights reserved. Use of this source code is governed by a
17287 // BSD-style license that can be found in the LICENSE file. 18724 // BSD-style license that can be found in the LICENSE file.
17288 18725
17289 18726
17290 18727
17291 @DocsEditable 18728 @DocsEditable
17292 @DomName('SharedWorkerContext') 18729 @DomName('SharedWorkerContext')
17293 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { 18730 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" {
17294 18731
17295 static const EventStreamProvider<Event> connectEvent = const EventStreamProvid er<Event>('connect'); 18732 static const EventStreamProvider<Event> connectEvent = const EventStreamProvid er<Event>('connect');
17296 18733
17297 @DocsEditable 18734 @DocsEditable
17298 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 18735 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
17299 SharedWorkerContextEvents get on => 18736 SharedWorkerContextEvents get on =>
17300 new SharedWorkerContextEvents(this); 18737 new SharedWorkerContextEvents(this);
17301 18738
17302 @DocsEditable @DomName('SharedWorkerContext.name') 18739 @DocsEditable
18740 @DomName('SharedWorkerContext.name')
17303 final String name; 18741 final String name;
17304 18742
17305 Stream<Event> get onConnect => connectEvent.forTarget(this); 18743 Stream<Event> get onConnect => connectEvent.forTarget(this);
17306 } 18744 }
17307 18745
17308 @DocsEditable 18746 @DocsEditable
17309 class SharedWorkerContextEvents extends WorkerContextEvents { 18747 class SharedWorkerContextEvents extends WorkerContextEvents {
17310 @DocsEditable 18748 @DocsEditable
17311 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 18749 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
17312 18750
17313 @DocsEditable 18751 @DocsEditable
17314 EventListenerList get connect => this['connect']; 18752 EventListenerList get connect => this['connect'];
17315 } 18753 }
17316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17317 // for details. All rights reserved. Use of this source code is governed by a 18755 // for details. All rights reserved. Use of this source code is governed by a
17318 // BSD-style license that can be found in the LICENSE file. 18756 // BSD-style license that can be found in the LICENSE file.
17319 18757
17320 18758
17321 18759
17322 @DocsEditable 18760 @DocsEditable
17323 @DomName('SourceBuffer') 18761 @DomName('SourceBuffer')
17324 class SourceBuffer native "*SourceBuffer" { 18762 class SourceBuffer native "*SourceBuffer" {
17325 18763
17326 @DocsEditable @DomName('SourceBuffer.buffered') 18764 @DocsEditable
18765 @DomName('SourceBuffer.buffered')
17327 final TimeRanges buffered; 18766 final TimeRanges buffered;
17328 18767
17329 @DocsEditable @DomName('SourceBuffer.timestampOffset') 18768 @DocsEditable
18769 @DomName('SourceBuffer.timestampOffset')
17330 num timestampOffset; 18770 num timestampOffset;
17331 18771
17332 @DocsEditable @DomName('SourceBuffer.abort') 18772 @DocsEditable
18773 @DomName('SourceBuffer.abort')
17333 void abort() native; 18774 void abort() native;
17334 18775
17335 @DocsEditable @DomName('SourceBuffer.append') 18776 @DocsEditable
18777 @DomName('SourceBuffer.append')
17336 void append(Uint8Array data) native; 18778 void append(Uint8Array data) native;
17337 } 18779 }
17338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18780 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17339 // for details. All rights reserved. Use of this source code is governed by a 18781 // for details. All rights reserved. Use of this source code is governed by a
17340 // BSD-style license that can be found in the LICENSE file. 18782 // BSD-style license that can be found in the LICENSE file.
17341 18783
17342 18784
17343 18785
17344 @DocsEditable 18786 @DocsEditable
17345 @DomName('SourceBufferList') 18787 @DomName('SourceBufferList')
17346 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" { 18788 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" {
17347 18789
17348 @DocsEditable @DomName('SourceBufferList.length') 18790 @DocsEditable
18791 @DomName('SourceBufferList.length')
17349 int get length => JS("int", "#.length", this); 18792 int get length => JS("int", "#.length", this);
17350 18793
17351 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); 18794 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
17352 18795
17353 void operator[]=(int index, SourceBuffer value) { 18796 void operator[]=(int index, SourceBuffer value) {
17354 throw new UnsupportedError("Cannot assign element of immutable List."); 18797 throw new UnsupportedError("Cannot assign element of immutable List.");
17355 } 18798 }
17356 // -- start List<SourceBuffer> mixins. 18799 // -- start List<SourceBuffer> mixins.
17357 // SourceBuffer is the element type. 18800 // SourceBuffer is the element type.
17358 18801
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
17490 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { 18933 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
17491 throw new UnsupportedError("Cannot insertRange on immutable List."); 18934 throw new UnsupportedError("Cannot insertRange on immutable List.");
17492 } 18935 }
17493 18936
17494 List<SourceBuffer> getRange(int start, int rangeLength) => 18937 List<SourceBuffer> getRange(int start, int rangeLength) =>
17495 Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); 18938 Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
17496 18939
17497 // -- end List<SourceBuffer> mixins. 18940 // -- end List<SourceBuffer> mixins.
17498 18941
17499 @JSName('addEventListener') 18942 @JSName('addEventListener')
17500 @DocsEditable @DomName('SourceBufferList.addEventListener') 18943 @DocsEditable
18944 @DomName('SourceBufferList.addEventListener')
17501 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 18945 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
17502 18946
17503 @JSName('dispatchEvent') 18947 @JSName('dispatchEvent')
17504 @DocsEditable @DomName('SourceBufferList.dispatchEvent') 18948 @DocsEditable
18949 @DomName('SourceBufferList.dispatchEvent')
17505 bool $dom_dispatchEvent(Event event) native; 18950 bool $dom_dispatchEvent(Event event) native;
17506 18951
17507 @DocsEditable @DomName('SourceBufferList.item') 18952 @DocsEditable
18953 @DomName('SourceBufferList.item')
17508 SourceBuffer item(int index) native; 18954 SourceBuffer item(int index) native;
17509 18955
17510 @JSName('removeEventListener') 18956 @JSName('removeEventListener')
17511 @DocsEditable @DomName('SourceBufferList.removeEventListener') 18957 @DocsEditable
18958 @DomName('SourceBufferList.removeEventListener')
17512 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 18959 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
17513 } 18960 }
17514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17515 // for details. All rights reserved. Use of this source code is governed by a 18962 // for details. All rights reserved. Use of this source code is governed by a
17516 // BSD-style license that can be found in the LICENSE file. 18963 // BSD-style license that can be found in the LICENSE file.
17517 18964
17518 18965
17519 18966
17520 @DocsEditable 18967 @DocsEditable
17521 @DomName('HTMLSourceElement') 18968 @DomName('HTMLSourceElement')
17522 class SourceElement extends Element native "*HTMLSourceElement" { 18969 class SourceElement extends Element native "*HTMLSourceElement" {
17523 18970
17524 @DocsEditable 18971 @DocsEditable
17525 factory SourceElement() => document.$dom_createElement("source"); 18972 factory SourceElement() => document.$dom_createElement("source");
17526 18973
17527 @DocsEditable @DomName('HTMLSourceElement.media') 18974 @DocsEditable
18975 @DomName('HTMLSourceElement.media')
17528 String media; 18976 String media;
17529 18977
17530 @DocsEditable @DomName('HTMLSourceElement.src') 18978 @DocsEditable
18979 @DomName('HTMLSourceElement.src')
17531 String src; 18980 String src;
17532 18981
17533 @DocsEditable @DomName('HTMLSourceElement.type') 18982 @DocsEditable
18983 @DomName('HTMLSourceElement.type')
17534 String type; 18984 String type;
17535 } 18985 }
17536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17537 // for details. All rights reserved. Use of this source code is governed by a 18987 // for details. All rights reserved. Use of this source code is governed by a
17538 // BSD-style license that can be found in the LICENSE file. 18988 // BSD-style license that can be found in the LICENSE file.
17539 18989
17540 18990
17541 18991
17542 @DocsEditable 18992 @DocsEditable
17543 @DomName('HTMLSpanElement') 18993 @DomName('HTMLSpanElement')
17544 class SpanElement extends Element native "*HTMLSpanElement" { 18994 class SpanElement extends Element native "*HTMLSpanElement" {
17545 18995
17546 @DocsEditable 18996 @DocsEditable
17547 factory SpanElement() => document.$dom_createElement("span"); 18997 factory SpanElement() => document.$dom_createElement("span");
17548 } 18998 }
17549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17550 // for details. All rights reserved. Use of this source code is governed by a 19000 // for details. All rights reserved. Use of this source code is governed by a
17551 // BSD-style license that can be found in the LICENSE file. 19001 // BSD-style license that can be found in the LICENSE file.
17552 19002
17553 19003
17554 19004
17555 @DocsEditable 19005 @DocsEditable
17556 @DomName('SpeechGrammar') 19006 @DomName('SpeechGrammar')
17557 class SpeechGrammar native "*SpeechGrammar" { 19007 class SpeechGrammar native "*SpeechGrammar" {
17558 19008
17559 @DocsEditable 19009 @DocsEditable
17560 factory SpeechGrammar() => SpeechGrammar._create(); 19010 factory SpeechGrammar() => SpeechGrammar._create();
17561 static SpeechGrammar _create() => JS('SpeechGrammar', 'new SpeechGrammar()'); 19011 static SpeechGrammar _create() => JS('SpeechGrammar', 'new SpeechGrammar()');
17562 19012
17563 @DocsEditable @DomName('SpeechGrammar.src') 19013 @DocsEditable
19014 @DomName('SpeechGrammar.src')
17564 String src; 19015 String src;
17565 19016
17566 @DocsEditable @DomName('SpeechGrammar.weight') 19017 @DocsEditable
19018 @DomName('SpeechGrammar.weight')
17567 num weight; 19019 num weight;
17568 } 19020 }
17569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17570 // for details. All rights reserved. Use of this source code is governed by a 19022 // for details. All rights reserved. Use of this source code is governed by a
17571 // BSD-style license that can be found in the LICENSE file. 19023 // BSD-style license that can be found in the LICENSE file.
17572 19024
17573 19025
17574 19026
17575 @DocsEditable 19027 @DocsEditable
17576 @DomName('SpeechGrammarList') 19028 @DomName('SpeechGrammarList')
17577 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" { 19029 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" {
17578 19030
17579 @DocsEditable 19031 @DocsEditable
17580 factory SpeechGrammarList() => SpeechGrammarList._create(); 19032 factory SpeechGrammarList() => SpeechGrammarList._create();
17581 static SpeechGrammarList _create() => JS('SpeechGrammarList', 'new SpeechGramm arList()'); 19033 static SpeechGrammarList _create() => JS('SpeechGrammarList', 'new SpeechGramm arList()');
17582 19034
17583 @DocsEditable @DomName('SpeechGrammarList.length') 19035 @DocsEditable
19036 @DomName('SpeechGrammarList.length')
17584 int get length => JS("int", "#.length", this); 19037 int get length => JS("int", "#.length", this);
17585 19038
17586 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index ); 19039 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index );
17587 19040
17588 void operator[]=(int index, SpeechGrammar value) { 19041 void operator[]=(int index, SpeechGrammar value) {
17589 throw new UnsupportedError("Cannot assign element of immutable List."); 19042 throw new UnsupportedError("Cannot assign element of immutable List.");
17590 } 19043 }
17591 // -- start List<SpeechGrammar> mixins. 19044 // -- start List<SpeechGrammar> mixins.
17592 // SpeechGrammar is the element type. 19045 // SpeechGrammar is the element type.
17593 19046
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
17724 19177
17725 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { 19178 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
17726 throw new UnsupportedError("Cannot insertRange on immutable List."); 19179 throw new UnsupportedError("Cannot insertRange on immutable List.");
17727 } 19180 }
17728 19181
17729 List<SpeechGrammar> getRange(int start, int rangeLength) => 19182 List<SpeechGrammar> getRange(int start, int rangeLength) =>
17730 Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); 19183 Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
17731 19184
17732 // -- end List<SpeechGrammar> mixins. 19185 // -- end List<SpeechGrammar> mixins.
17733 19186
17734 @DocsEditable @DomName('SpeechGrammarList.addFromString') 19187 @DocsEditable
19188 @DomName('SpeechGrammarList.addFromString')
17735 void addFromString(String string, [num weight]) native; 19189 void addFromString(String string, [num weight]) native;
17736 19190
17737 @DocsEditable @DomName('SpeechGrammarList.addFromUri') 19191 @DocsEditable
19192 @DomName('SpeechGrammarList.addFromUri')
17738 void addFromUri(String src, [num weight]) native; 19193 void addFromUri(String src, [num weight]) native;
17739 19194
17740 @DocsEditable @DomName('SpeechGrammarList.item') 19195 @DocsEditable
19196 @DomName('SpeechGrammarList.item')
17741 SpeechGrammar item(int index) native; 19197 SpeechGrammar item(int index) native;
17742 } 19198 }
17743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17744 // for details. All rights reserved. Use of this source code is governed by a 19200 // for details. All rights reserved. Use of this source code is governed by a
17745 // BSD-style license that can be found in the LICENSE file. 19201 // BSD-style license that can be found in the LICENSE file.
17746 19202
17747 19203
17748 19204
17749 @DocsEditable 19205 @DocsEditable
17750 @DomName('SpeechInputEvent') 19206 @DomName('SpeechInputEvent')
17751 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 19207 class SpeechInputEvent extends Event native "*SpeechInputEvent" {
17752 19208
17753 @DocsEditable @DomName('SpeechInputEvent.results') 19209 @DocsEditable
17754 @Returns('_SpeechInputResultList') @Creates('_SpeechInputResultList') 19210 @DomName('SpeechInputEvent.results')
19211 @Returns('_SpeechInputResultList')
19212 @Creates('_SpeechInputResultList')
17755 final List<SpeechInputResult> results; 19213 final List<SpeechInputResult> results;
17756 } 19214 }
17757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17758 // for details. All rights reserved. Use of this source code is governed by a 19216 // for details. All rights reserved. Use of this source code is governed by a
17759 // BSD-style license that can be found in the LICENSE file. 19217 // BSD-style license that can be found in the LICENSE file.
17760 19218
17761 19219
17762 19220
17763 @DocsEditable 19221 @DocsEditable
17764 @DomName('SpeechInputResult') 19222 @DomName('SpeechInputResult')
17765 class SpeechInputResult native "*SpeechInputResult" { 19223 class SpeechInputResult native "*SpeechInputResult" {
17766 19224
17767 @DocsEditable @DomName('SpeechInputResult.confidence') 19225 @DocsEditable
19226 @DomName('SpeechInputResult.confidence')
17768 final num confidence; 19227 final num confidence;
17769 19228
17770 @DocsEditable @DomName('SpeechInputResult.utterance') 19229 @DocsEditable
19230 @DomName('SpeechInputResult.utterance')
17771 final String utterance; 19231 final String utterance;
17772 } 19232 }
17773 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17774 // for details. All rights reserved. Use of this source code is governed by a 19234 // for details. All rights reserved. Use of this source code is governed by a
17775 // BSD-style license that can be found in the LICENSE file. 19235 // BSD-style license that can be found in the LICENSE file.
17776 19236
17777 19237
17778 19238
17779 @DocsEditable 19239 @DocsEditable
17780 @DomName('SpeechRecognition') 19240 @DomName('SpeechRecognition')
(...skipping 23 matching lines...) Expand all
17804 19264
17805 @DocsEditable 19265 @DocsEditable
17806 factory SpeechRecognition() => SpeechRecognition._create(); 19266 factory SpeechRecognition() => SpeechRecognition._create();
17807 static SpeechRecognition _create() => JS('SpeechRecognition', 'new SpeechRecog nition()'); 19267 static SpeechRecognition _create() => JS('SpeechRecognition', 'new SpeechRecog nition()');
17808 19268
17809 @DocsEditable 19269 @DocsEditable
17810 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 19270 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
17811 SpeechRecognitionEvents get on => 19271 SpeechRecognitionEvents get on =>
17812 new SpeechRecognitionEvents(this); 19272 new SpeechRecognitionEvents(this);
17813 19273
17814 @DocsEditable @DomName('SpeechRecognition.continuous') 19274 @DocsEditable
19275 @DomName('SpeechRecognition.continuous')
17815 bool continuous; 19276 bool continuous;
17816 19277
17817 @DocsEditable @DomName('SpeechRecognition.grammars') 19278 @DocsEditable
19279 @DomName('SpeechRecognition.grammars')
17818 SpeechGrammarList grammars; 19280 SpeechGrammarList grammars;
17819 19281
17820 @DocsEditable @DomName('SpeechRecognition.interimResults') 19282 @DocsEditable
19283 @DomName('SpeechRecognition.interimResults')
17821 bool interimResults; 19284 bool interimResults;
17822 19285
17823 @DocsEditable @DomName('SpeechRecognition.lang') 19286 @DocsEditable
19287 @DomName('SpeechRecognition.lang')
17824 String lang; 19288 String lang;
17825 19289
17826 @DocsEditable @DomName('SpeechRecognition.maxAlternatives') 19290 @DocsEditable
19291 @DomName('SpeechRecognition.maxAlternatives')
17827 int maxAlternatives; 19292 int maxAlternatives;
17828 19293
17829 @DocsEditable @DomName('SpeechRecognition.abort') 19294 @DocsEditable
19295 @DomName('SpeechRecognition.abort')
17830 void abort() native; 19296 void abort() native;
17831 19297
17832 @JSName('addEventListener') 19298 @JSName('addEventListener')
17833 @DocsEditable @DomName('SpeechRecognition.addEventListener') 19299 @DocsEditable
19300 @DomName('SpeechRecognition.addEventListener')
17834 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 19301 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
17835 19302
17836 @JSName('dispatchEvent') 19303 @JSName('dispatchEvent')
17837 @DocsEditable @DomName('SpeechRecognition.dispatchEvent') 19304 @DocsEditable
19305 @DomName('SpeechRecognition.dispatchEvent')
17838 bool $dom_dispatchEvent(Event evt) native; 19306 bool $dom_dispatchEvent(Event evt) native;
17839 19307
17840 @JSName('removeEventListener') 19308 @JSName('removeEventListener')
17841 @DocsEditable @DomName('SpeechRecognition.removeEventListener') 19309 @DocsEditable
19310 @DomName('SpeechRecognition.removeEventListener')
17842 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 19311 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
17843 19312
17844 @DocsEditable @DomName('SpeechRecognition.start') 19313 @DocsEditable
19314 @DomName('SpeechRecognition.start')
17845 void start() native; 19315 void start() native;
17846 19316
17847 @DocsEditable @DomName('SpeechRecognition.stop') 19317 @DocsEditable
19318 @DomName('SpeechRecognition.stop')
17848 void stop() native; 19319 void stop() native;
17849 19320
17850 Stream<Event> get onAudioEnd => audioEndEvent.forTarget(this); 19321 Stream<Event> get onAudioEnd => audioEndEvent.forTarget(this);
17851 19322
17852 Stream<Event> get onAudioStart => audioStartEvent.forTarget(this); 19323 Stream<Event> get onAudioStart => audioStartEvent.forTarget(this);
17853 19324
17854 Stream<Event> get onEnd => endEvent.forTarget(this); 19325 Stream<Event> get onEnd => endEvent.forTarget(this);
17855 19326
17856 Stream<SpeechRecognitionError> get onError => errorEvent.forTarget(this); 19327 Stream<SpeechRecognitionError> get onError => errorEvent.forTarget(this);
17857 19328
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
17911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17912 // for details. All rights reserved. Use of this source code is governed by a 19383 // for details. All rights reserved. Use of this source code is governed by a
17913 // BSD-style license that can be found in the LICENSE file. 19384 // BSD-style license that can be found in the LICENSE file.
17914 19385
17915 19386
17916 19387
17917 @DocsEditable 19388 @DocsEditable
17918 @DomName('SpeechRecognitionAlternative') 19389 @DomName('SpeechRecognitionAlternative')
17919 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { 19390 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" {
17920 19391
17921 @DocsEditable @DomName('SpeechRecognitionAlternative.confidence') 19392 @DocsEditable
19393 @DomName('SpeechRecognitionAlternative.confidence')
17922 final num confidence; 19394 final num confidence;
17923 19395
17924 @DocsEditable @DomName('SpeechRecognitionAlternative.transcript') 19396 @DocsEditable
19397 @DomName('SpeechRecognitionAlternative.transcript')
17925 final String transcript; 19398 final String transcript;
17926 } 19399 }
17927 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17928 // for details. All rights reserved. Use of this source code is governed by a 19401 // for details. All rights reserved. Use of this source code is governed by a
17929 // BSD-style license that can be found in the LICENSE file. 19402 // BSD-style license that can be found in the LICENSE file.
17930 19403
17931 19404
17932 19405
17933 @DocsEditable 19406 @DocsEditable
17934 @DomName('SpeechRecognitionError') 19407 @DomName('SpeechRecognitionError')
17935 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { 19408 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" {
17936 19409
17937 @DocsEditable @DomName('SpeechRecognitionError.error') 19410 @DocsEditable
19411 @DomName('SpeechRecognitionError.error')
17938 final String error; 19412 final String error;
17939 19413
17940 @DocsEditable @DomName('SpeechRecognitionError.message') 19414 @DocsEditable
19415 @DomName('SpeechRecognitionError.message')
17941 final String message; 19416 final String message;
17942 } 19417 }
17943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17944 // for details. All rights reserved. Use of this source code is governed by a 19419 // for details. All rights reserved. Use of this source code is governed by a
17945 // BSD-style license that can be found in the LICENSE file. 19420 // BSD-style license that can be found in the LICENSE file.
17946 19421
17947 19422
17948 19423
17949 @DocsEditable 19424 @DocsEditable
17950 @DomName('SpeechRecognitionEvent') 19425 @DomName('SpeechRecognitionEvent')
17951 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { 19426 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" {
17952 19427
17953 @DocsEditable @DomName('SpeechRecognitionEvent.result') 19428 @DocsEditable
19429 @DomName('SpeechRecognitionEvent.result')
17954 final SpeechRecognitionResult result; 19430 final SpeechRecognitionResult result;
17955 19431
17956 @DocsEditable @DomName('SpeechRecognitionEvent.resultHistory') 19432 @DocsEditable
17957 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis t') 19433 @DomName('SpeechRecognitionEvent.resultHistory')
19434 @Returns('_SpeechRecognitionResultList')
19435 @Creates('_SpeechRecognitionResultList')
17958 final List<SpeechRecognitionResult> resultHistory; 19436 final List<SpeechRecognitionResult> resultHistory;
17959 19437
17960 @DocsEditable @DomName('SpeechRecognitionEvent.resultIndex') 19438 @DocsEditable
19439 @DomName('SpeechRecognitionEvent.resultIndex')
17961 final int resultIndex; 19440 final int resultIndex;
17962 19441
17963 @DocsEditable @DomName('SpeechRecognitionEvent.results') 19442 @DocsEditable
17964 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis t') 19443 @DomName('SpeechRecognitionEvent.results')
19444 @Returns('_SpeechRecognitionResultList')
19445 @Creates('_SpeechRecognitionResultList')
17965 final List<SpeechRecognitionResult> results; 19446 final List<SpeechRecognitionResult> results;
17966 } 19447 }
17967 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17968 // for details. All rights reserved. Use of this source code is governed by a 19449 // for details. All rights reserved. Use of this source code is governed by a
17969 // BSD-style license that can be found in the LICENSE file. 19450 // BSD-style license that can be found in the LICENSE file.
17970 19451
17971 19452
17972 19453
17973 @DocsEditable 19454 @DocsEditable
17974 @DomName('SpeechRecognitionResult') 19455 @DomName('SpeechRecognitionResult')
17975 class SpeechRecognitionResult native "*SpeechRecognitionResult" { 19456 class SpeechRecognitionResult native "*SpeechRecognitionResult" {
17976 19457
17977 @DocsEditable @DomName('SpeechRecognitionResult.isFinal') 19458 @DocsEditable
19459 @DomName('SpeechRecognitionResult.isFinal')
17978 final bool isFinal; 19460 final bool isFinal;
17979 19461
17980 @DocsEditable @DomName('SpeechRecognitionResult.length') 19462 @DocsEditable
19463 @DomName('SpeechRecognitionResult.length')
17981 final int length; 19464 final int length;
17982 19465
17983 @DocsEditable @DomName('SpeechRecognitionResult.item') 19466 @DocsEditable
19467 @DomName('SpeechRecognitionResult.item')
17984 SpeechRecognitionAlternative item(int index) native; 19468 SpeechRecognitionAlternative item(int index) native;
17985 } 19469 }
17986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17987 // for details. All rights reserved. Use of this source code is governed by a 19471 // for details. All rights reserved. Use of this source code is governed by a
17988 // BSD-style license that can be found in the LICENSE file. 19472 // BSD-style license that can be found in the LICENSE file.
17989 19473
17990 19474
17991 19475
17992 @DocsEditable 19476 @DocsEditable
17993 @DomName('SQLError') 19477 @DomName('SQLError')
17994 class SqlError native "*SQLError" { 19478 class SqlError native "*SQLError" {
17995 19479
17996 static const int CONSTRAINT_ERR = 6; 19480 static const int CONSTRAINT_ERR = 6;
17997 19481
17998 static const int DATABASE_ERR = 1; 19482 static const int DATABASE_ERR = 1;
17999 19483
18000 static const int QUOTA_ERR = 4; 19484 static const int QUOTA_ERR = 4;
18001 19485
18002 static const int SYNTAX_ERR = 5; 19486 static const int SYNTAX_ERR = 5;
18003 19487
18004 static const int TIMEOUT_ERR = 7; 19488 static const int TIMEOUT_ERR = 7;
18005 19489
18006 static const int TOO_LARGE_ERR = 3; 19490 static const int TOO_LARGE_ERR = 3;
18007 19491
18008 static const int UNKNOWN_ERR = 0; 19492 static const int UNKNOWN_ERR = 0;
18009 19493
18010 static const int VERSION_ERR = 2; 19494 static const int VERSION_ERR = 2;
18011 19495
18012 @DocsEditable @DomName('SQLError.code') 19496 @DocsEditable
19497 @DomName('SQLError.code')
18013 final int code; 19498 final int code;
18014 19499
18015 @DocsEditable @DomName('SQLError.message') 19500 @DocsEditable
19501 @DomName('SQLError.message')
18016 final String message; 19502 final String message;
18017 } 19503 }
18018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18019 // for details. All rights reserved. Use of this source code is governed by a 19505 // for details. All rights reserved. Use of this source code is governed by a
18020 // BSD-style license that can be found in the LICENSE file. 19506 // BSD-style license that can be found in the LICENSE file.
18021 19507
18022 19508
18023 19509
18024 @DocsEditable 19510 @DocsEditable
18025 @DomName('SQLException') 19511 @DomName('SQLException')
18026 class SqlException native "*SQLException" { 19512 class SqlException native "*SQLException" {
18027 19513
18028 static const int CONSTRAINT_ERR = 6; 19514 static const int CONSTRAINT_ERR = 6;
18029 19515
18030 static const int DATABASE_ERR = 1; 19516 static const int DATABASE_ERR = 1;
18031 19517
18032 static const int QUOTA_ERR = 4; 19518 static const int QUOTA_ERR = 4;
18033 19519
18034 static const int SYNTAX_ERR = 5; 19520 static const int SYNTAX_ERR = 5;
18035 19521
18036 static const int TIMEOUT_ERR = 7; 19522 static const int TIMEOUT_ERR = 7;
18037 19523
18038 static const int TOO_LARGE_ERR = 3; 19524 static const int TOO_LARGE_ERR = 3;
18039 19525
18040 static const int UNKNOWN_ERR = 0; 19526 static const int UNKNOWN_ERR = 0;
18041 19527
18042 static const int VERSION_ERR = 2; 19528 static const int VERSION_ERR = 2;
18043 19529
18044 @DocsEditable @DomName('SQLException.code') 19530 @DocsEditable
19531 @DomName('SQLException.code')
18045 final int code; 19532 final int code;
18046 19533
18047 @DocsEditable @DomName('SQLException.message') 19534 @DocsEditable
19535 @DomName('SQLException.message')
18048 final String message; 19536 final String message;
18049 } 19537 }
18050 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18051 // for details. All rights reserved. Use of this source code is governed by a 19539 // for details. All rights reserved. Use of this source code is governed by a
18052 // BSD-style license that can be found in the LICENSE file. 19540 // BSD-style license that can be found in the LICENSE file.
18053 19541
18054 19542
18055 19543
18056 @DocsEditable 19544 @DocsEditable
18057 @DomName('SQLResultSet') 19545 @DomName('SQLResultSet')
18058 class SqlResultSet native "*SQLResultSet" { 19546 class SqlResultSet native "*SQLResultSet" {
18059 19547
18060 @DocsEditable @DomName('SQLResultSet.insertId') 19548 @DocsEditable
19549 @DomName('SQLResultSet.insertId')
18061 final int insertId; 19550 final int insertId;
18062 19551
18063 @DocsEditable @DomName('SQLResultSet.rows') 19552 @DocsEditable
19553 @DomName('SQLResultSet.rows')
18064 final SqlResultSetRowList rows; 19554 final SqlResultSetRowList rows;
18065 19555
18066 @DocsEditable @DomName('SQLResultSet.rowsAffected') 19556 @DocsEditable
19557 @DomName('SQLResultSet.rowsAffected')
18067 final int rowsAffected; 19558 final int rowsAffected;
18068 } 19559 }
18069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18070 // for details. All rights reserved. Use of this source code is governed by a 19561 // for details. All rights reserved. Use of this source code is governed by a
18071 // BSD-style license that can be found in the LICENSE file. 19562 // BSD-style license that can be found in the LICENSE file.
18072 19563
18073 19564
18074 19565
18075 @DocsEditable 19566 @DocsEditable
18076 @DomName('SQLResultSetRowList') 19567 @DomName('SQLResultSetRowList')
18077 class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ e "*SQLResultSetRowList" { 19568 class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ e "*SQLResultSetRowList" {
18078 19569
18079 @DocsEditable @DomName('SQLResultSetRowList.length') 19570 @DocsEditable
19571 @DomName('SQLResultSetRowList.length')
18080 int get length => JS("int", "#.length", this); 19572 int get length => JS("int", "#.length", this);
18081 19573
18082 Map operator[](int index) => JS("Map", "#[#]", this, index); 19574 Map operator[](int index) => JS("Map", "#[#]", this, index);
18083 19575
18084 void operator[]=(int index, Map value) { 19576 void operator[]=(int index, Map value) {
18085 throw new UnsupportedError("Cannot assign element of immutable List."); 19577 throw new UnsupportedError("Cannot assign element of immutable List.");
18086 } 19578 }
18087 // -- start List<Map> mixins. 19579 // -- start List<Map> mixins.
18088 // Map is the element type. 19580 // Map is the element type.
18089 19581
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
18224 19716
18225 List<Map> getRange(int start, int rangeLength) => 19717 List<Map> getRange(int start, int rangeLength) =>
18226 Lists.getRange(this, start, rangeLength, <Map>[]); 19718 Lists.getRange(this, start, rangeLength, <Map>[]);
18227 19719
18228 // -- end List<Map> mixins. 19720 // -- end List<Map> mixins.
18229 19721
18230 Map item(int index) { 19722 Map item(int index) {
18231 return convertNativeToDart_Dictionary(_item_1(index)); 19723 return convertNativeToDart_Dictionary(_item_1(index));
18232 } 19724 }
18233 @JSName('item') 19725 @JSName('item')
18234 @DocsEditable @DomName('SQLResultSetRowList.item') @Creates('=Object') 19726 @DocsEditable
19727 @DomName('SQLResultSetRowList.item')
19728 @Creates('=Object')
18235 _item_1(index) native; 19729 _item_1(index) native;
18236 } 19730 }
18237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18238 // for details. All rights reserved. Use of this source code is governed by a 19732 // for details. All rights reserved. Use of this source code is governed by a
18239 // BSD-style license that can be found in the LICENSE file. 19733 // BSD-style license that can be found in the LICENSE file.
18240 19734
18241 19735
18242 19736
18243 @DocsEditable 19737 @DocsEditable
18244 @DomName('SQLTransaction') 19738 @DomName('SQLTransaction')
18245 class SqlTransaction native "*SQLTransaction" { 19739 class SqlTransaction native "*SQLTransaction" {
18246 19740
18247 @DocsEditable @DomName('SQLTransaction.executeSql') 19741 @DocsEditable
19742 @DomName('SQLTransaction.executeSql')
18248 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native; 19743 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native;
18249 } 19744 }
18250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18251 // for details. All rights reserved. Use of this source code is governed by a 19746 // for details. All rights reserved. Use of this source code is governed by a
18252 // BSD-style license that can be found in the LICENSE file. 19747 // BSD-style license that can be found in the LICENSE file.
18253 19748
18254 19749
18255 19750
18256 @DocsEditable 19751 @DocsEditable
18257 @DomName('SQLTransactionSync') 19752 @DomName('SQLTransactionSync')
18258 class SqlTransactionSync native "*SQLTransactionSync" { 19753 class SqlTransactionSync native "*SQLTransactionSync" {
18259 19754
18260 @DocsEditable @DomName('SQLTransactionSync.executeSql') 19755 @DocsEditable
19756 @DomName('SQLTransactionSync.executeSql')
18261 SqlResultSet executeSql(String sqlStatement, List arguments) native; 19757 SqlResultSet executeSql(String sqlStatement, List arguments) native;
18262 } 19758 }
18263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18264 // for details. All rights reserved. Use of this source code is governed by a 19760 // for details. All rights reserved. Use of this source code is governed by a
18265 // BSD-style license that can be found in the LICENSE file. 19761 // BSD-style license that can be found in the LICENSE file.
18266 19762
18267 19763
18268 @DocsEditable 19764 @DocsEditable
18269 @DomName('Storage') 19765 @DomName('Storage')
18270 class Storage implements Map<String, String> native "*Storage" { 19766 class Storage implements Map<String, String>
19767 native "*Storage" {
18271 19768
18272 // TODO(nweiz): update this when maps support lazy iteration 19769 // TODO(nweiz): update this when maps support lazy iteration
18273 bool containsValue(String value) => values.any((e) => e == value); 19770 bool containsValue(String value) => values.any((e) => e == value);
18274 19771
18275 bool containsKey(String key) => $dom_getItem(key) != null; 19772 bool containsKey(String key) => $dom_getItem(key) != null;
18276 19773
18277 String operator [](String key) => $dom_getItem(key); 19774 String operator [](String key) => $dom_getItem(key);
18278 19775
18279 void operator []=(String key, String value) { $dom_setItem(key, value); } 19776 void operator []=(String key, String value) { $dom_setItem(key, value); }
18280 19777
(...skipping 29 matching lines...) Expand all
18310 final values = []; 19807 final values = [];
18311 forEach((k, v) => values.add(v)); 19808 forEach((k, v) => values.add(v));
18312 return values; 19809 return values;
18313 } 19810 }
18314 19811
18315 int get length => $dom_length; 19812 int get length => $dom_length;
18316 19813
18317 bool get isEmpty => $dom_key(0) == null; 19814 bool get isEmpty => $dom_key(0) == null;
18318 19815
18319 @JSName('length') 19816 @JSName('length')
18320 @DocsEditable @DomName('Storage.length') 19817 @DocsEditable
19818 @DomName('Storage.length')
18321 final int $dom_length; 19819 final int $dom_length;
18322 19820
18323 @JSName('clear') 19821 @JSName('clear')
18324 @DocsEditable @DomName('Storage.clear') 19822 @DocsEditable
19823 @DomName('Storage.clear')
18325 void $dom_clear() native; 19824 void $dom_clear() native;
18326 19825
18327 @JSName('getItem') 19826 @JSName('getItem')
18328 @DocsEditable @DomName('Storage.getItem') 19827 @DocsEditable
19828 @DomName('Storage.getItem')
18329 String $dom_getItem(String key) native; 19829 String $dom_getItem(String key) native;
18330 19830
18331 @JSName('key') 19831 @JSName('key')
18332 @DocsEditable @DomName('Storage.key') 19832 @DocsEditable
19833 @DomName('Storage.key')
18333 String $dom_key(int index) native; 19834 String $dom_key(int index) native;
18334 19835
18335 @JSName('removeItem') 19836 @JSName('removeItem')
18336 @DocsEditable @DomName('Storage.removeItem') 19837 @DocsEditable
19838 @DomName('Storage.removeItem')
18337 void $dom_removeItem(String key) native; 19839 void $dom_removeItem(String key) native;
18338 19840
18339 @JSName('setItem') 19841 @JSName('setItem')
18340 @DocsEditable @DomName('Storage.setItem') 19842 @DocsEditable
19843 @DomName('Storage.setItem')
18341 void $dom_setItem(String key, String data) native; 19844 void $dom_setItem(String key, String data) native;
18342 19845
18343 } 19846 }
18344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18345 // for details. All rights reserved. Use of this source code is governed by a 19848 // for details. All rights reserved. Use of this source code is governed by a
18346 // BSD-style license that can be found in the LICENSE file. 19849 // BSD-style license that can be found in the LICENSE file.
18347 19850
18348 19851
18349 19852
18350 @DocsEditable 19853 @DocsEditable
18351 @DomName('StorageEvent') 19854 @DomName('StorageEvent')
18352 class StorageEvent extends Event native "*StorageEvent" { 19855 class StorageEvent extends Event native "*StorageEvent" {
18353 19856
18354 @DocsEditable @DomName('StorageEvent.key') 19857 @DocsEditable
19858 @DomName('StorageEvent.key')
18355 final String key; 19859 final String key;
18356 19860
18357 @DocsEditable @DomName('StorageEvent.newValue') 19861 @DocsEditable
19862 @DomName('StorageEvent.newValue')
18358 final String newValue; 19863 final String newValue;
18359 19864
18360 @DocsEditable @DomName('StorageEvent.oldValue') 19865 @DocsEditable
19866 @DomName('StorageEvent.oldValue')
18361 final String oldValue; 19867 final String oldValue;
18362 19868
18363 @DocsEditable @DomName('StorageEvent.storageArea') 19869 @DocsEditable
19870 @DomName('StorageEvent.storageArea')
18364 final Storage storageArea; 19871 final Storage storageArea;
18365 19872
18366 @DocsEditable @DomName('StorageEvent.url') 19873 @DocsEditable
19874 @DomName('StorageEvent.url')
18367 final String url; 19875 final String url;
18368 19876
18369 @DocsEditable @DomName('StorageEvent.initStorageEvent') 19877 @DocsEditable
19878 @DomName('StorageEvent.initStorageEvent')
18370 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg) native; 19879 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg) native;
18371 } 19880 }
18372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18373 // for details. All rights reserved. Use of this source code is governed by a 19882 // for details. All rights reserved. Use of this source code is governed by a
18374 // BSD-style license that can be found in the LICENSE file. 19883 // BSD-style license that can be found in the LICENSE file.
18375 19884
18376 19885
18377 19886
18378 @DocsEditable 19887 @DocsEditable
18379 @DomName('StorageInfo') 19888 @DomName('StorageInfo')
18380 class StorageInfo native "*StorageInfo" { 19889 class StorageInfo native "*StorageInfo" {
18381 19890
18382 static const int PERSISTENT = 1; 19891 static const int PERSISTENT = 1;
18383 19892
18384 static const int TEMPORARY = 0; 19893 static const int TEMPORARY = 0;
18385 19894
18386 @DocsEditable @DomName('StorageInfo.queryUsageAndQuota') 19895 @DocsEditable
19896 @DomName('StorageInfo.queryUsageAndQuota')
18387 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) native; 19897 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) native;
18388 19898
18389 @DocsEditable @DomName('StorageInfo.requestQuota') 19899 @DocsEditable
19900 @DomName('StorageInfo.requestQuota')
18390 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; 19901 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) native;
18391 } 19902 }
18392 // 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
18393 // 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
18394 // BSD-style license that can be found in the LICENSE file. 19905 // BSD-style license that can be found in the LICENSE file.
18395 19906
18396 // WARNING: Do not edit - generated code. 19907 // WARNING: Do not edit - generated code.
18397 19908
18398 19909
18399 typedef void StorageInfoErrorCallback(DomException error); 19910 typedef void StorageInfoErrorCallback(DomException error);
(...skipping 27 matching lines...) Expand all
18427 19938
18428 19939
18429 19940
18430 @DocsEditable 19941 @DocsEditable
18431 @DomName('HTMLStyleElement') 19942 @DomName('HTMLStyleElement')
18432 class StyleElement extends Element native "*HTMLStyleElement" { 19943 class StyleElement extends Element native "*HTMLStyleElement" {
18433 19944
18434 @DocsEditable 19945 @DocsEditable
18435 factory StyleElement() => document.$dom_createElement("style"); 19946 factory StyleElement() => document.$dom_createElement("style");
18436 19947
18437 @DocsEditable @DomName('HTMLStyleElement.disabled') 19948 @DocsEditable
19949 @DomName('HTMLStyleElement.disabled')
18438 bool disabled; 19950 bool disabled;
18439 19951
18440 @DocsEditable @DomName('HTMLStyleElement.media') 19952 @DocsEditable
19953 @DomName('HTMLStyleElement.media')
18441 String media; 19954 String media;
18442 19955
18443 @DocsEditable @DomName('HTMLStyleElement.scoped') 19956 @DocsEditable
19957 @DomName('HTMLStyleElement.scoped')
18444 bool scoped; 19958 bool scoped;
18445 19959
18446 @DocsEditable @DomName('HTMLStyleElement.sheet') 19960 @DocsEditable
19961 @DomName('HTMLStyleElement.sheet')
18447 final StyleSheet sheet; 19962 final StyleSheet sheet;
18448 19963
18449 @DocsEditable @DomName('HTMLStyleElement.type') 19964 @DocsEditable
19965 @DomName('HTMLStyleElement.type')
18450 String type; 19966 String type;
18451 } 19967 }
18452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18453 // for details. All rights reserved. Use of this source code is governed by a 19969 // for details. All rights reserved. Use of this source code is governed by a
18454 // BSD-style license that can be found in the LICENSE file. 19970 // BSD-style license that can be found in the LICENSE file.
18455 19971
18456 19972
18457 19973
18458 @DocsEditable 19974 @DocsEditable
18459 @DomName('StyleMedia') 19975 @DomName('StyleMedia')
18460 class StyleMedia native "*StyleMedia" { 19976 class StyleMedia native "*StyleMedia" {
18461 19977
18462 @DocsEditable @DomName('StyleMedia.type') 19978 @DocsEditable
19979 @DomName('StyleMedia.type')
18463 final String type; 19980 final String type;
18464 19981
18465 @DocsEditable @DomName('StyleMedia.matchMedium') 19982 @DocsEditable
19983 @DomName('StyleMedia.matchMedium')
18466 bool matchMedium(String mediaquery) native; 19984 bool matchMedium(String mediaquery) native;
18467 } 19985 }
18468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18469 // for details. All rights reserved. Use of this source code is governed by a 19987 // for details. All rights reserved. Use of this source code is governed by a
18470 // BSD-style license that can be found in the LICENSE file. 19988 // BSD-style license that can be found in the LICENSE file.
18471 19989
18472 19990
18473 19991
18474 @DocsEditable 19992 @DocsEditable
18475 @DomName('StyleSheet') 19993 @DomName('StyleSheet')
18476 class StyleSheet native "*StyleSheet" { 19994 class StyleSheet native "*StyleSheet" {
18477 19995
18478 @DocsEditable @DomName('StyleSheet.disabled') 19996 @DocsEditable
19997 @DomName('StyleSheet.disabled')
18479 bool disabled; 19998 bool disabled;
18480 19999
18481 @DocsEditable @DomName('StyleSheet.href') 20000 @DocsEditable
20001 @DomName('StyleSheet.href')
18482 final String href; 20002 final String href;
18483 20003
18484 @DocsEditable @DomName('StyleSheet.media') 20004 @DocsEditable
20005 @DomName('StyleSheet.media')
18485 final MediaList media; 20006 final MediaList media;
18486 20007
18487 @DocsEditable @DomName('StyleSheet.ownerNode') 20008 @DocsEditable
20009 @DomName('StyleSheet.ownerNode')
18488 final Node ownerNode; 20010 final Node ownerNode;
18489 20011
18490 @DocsEditable @DomName('StyleSheet.parentStyleSheet') 20012 @DocsEditable
20013 @DomName('StyleSheet.parentStyleSheet')
18491 final StyleSheet parentStyleSheet; 20014 final StyleSheet parentStyleSheet;
18492 20015
18493 @DocsEditable @DomName('StyleSheet.title') 20016 @DocsEditable
20017 @DomName('StyleSheet.title')
18494 final String title; 20018 final String title;
18495 20019
18496 @DocsEditable @DomName('StyleSheet.type') 20020 @DocsEditable
20021 @DomName('StyleSheet.type')
18497 final String type; 20022 final String type;
18498 } 20023 }
18499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20024 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18500 // for details. All rights reserved. Use of this source code is governed by a 20025 // for details. All rights reserved. Use of this source code is governed by a
18501 // BSD-style license that can be found in the LICENSE file. 20026 // BSD-style license that can be found in the LICENSE file.
18502 20027
18503 20028
18504 20029
18505 @DocsEditable 20030 @DocsEditable
18506 @DomName('HTMLTableCaptionElement') 20031 @DomName('HTMLTableCaptionElement')
18507 class TableCaptionElement extends Element native "*HTMLTableCaptionElement" { 20032 class TableCaptionElement extends Element native "*HTMLTableCaptionElement" {
18508 20033
18509 @DocsEditable 20034 @DocsEditable
18510 factory TableCaptionElement() => document.$dom_createElement("caption"); 20035 factory TableCaptionElement() => document.$dom_createElement("caption");
18511 } 20036 }
18512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20037 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18513 // for details. All rights reserved. Use of this source code is governed by a 20038 // for details. All rights reserved. Use of this source code is governed by a
18514 // BSD-style license that can be found in the LICENSE file. 20039 // BSD-style license that can be found in the LICENSE file.
18515 20040
18516 20041
18517 20042
18518 @DocsEditable 20043 @DocsEditable
18519 @DomName('HTMLTableCellElement') 20044 @DomName('HTMLTableCellElement')
18520 class TableCellElement extends Element native "*HTMLTableCellElement" { 20045 class TableCellElement extends Element native "*HTMLTableCellElement" {
18521 20046
18522 @DocsEditable 20047 @DocsEditable
18523 factory TableCellElement() => document.$dom_createElement("td"); 20048 factory TableCellElement() => document.$dom_createElement("td");
18524 20049
18525 @DocsEditable @DomName('HTMLTableCellElement.cellIndex') 20050 @DocsEditable
20051 @DomName('HTMLTableCellElement.cellIndex')
18526 final int cellIndex; 20052 final int cellIndex;
18527 20053
18528 @DocsEditable @DomName('HTMLTableCellElement.colSpan') 20054 @DocsEditable
20055 @DomName('HTMLTableCellElement.colSpan')
18529 int colSpan; 20056 int colSpan;
18530 20057
18531 @DocsEditable @DomName('HTMLTableCellElement.headers') 20058 @DocsEditable
20059 @DomName('HTMLTableCellElement.headers')
18532 String headers; 20060 String headers;
18533 20061
18534 @DocsEditable @DomName('HTMLTableCellElement.rowSpan') 20062 @DocsEditable
20063 @DomName('HTMLTableCellElement.rowSpan')
18535 int rowSpan; 20064 int rowSpan;
18536 } 20065 }
18537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18538 // for details. All rights reserved. Use of this source code is governed by a 20067 // for details. All rights reserved. Use of this source code is governed by a
18539 // BSD-style license that can be found in the LICENSE file. 20068 // BSD-style license that can be found in the LICENSE file.
18540 20069
18541 20070
18542 20071
18543 @DocsEditable 20072 @DocsEditable
18544 @DomName('HTMLTableColElement') 20073 @DomName('HTMLTableColElement')
18545 class TableColElement extends Element native "*HTMLTableColElement" { 20074 class TableColElement extends Element native "*HTMLTableColElement" {
18546 20075
18547 @DocsEditable 20076 @DocsEditable
18548 factory TableColElement() => document.$dom_createElement("col"); 20077 factory TableColElement() => document.$dom_createElement("col");
18549 20078
18550 @DocsEditable @DomName('HTMLTableColElement.span') 20079 @DocsEditable
20080 @DomName('HTMLTableColElement.span')
18551 int span; 20081 int span;
18552 } 20082 }
18553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18554 // for details. All rights reserved. Use of this source code is governed by a 20084 // for details. All rights reserved. Use of this source code is governed by a
18555 // BSD-style license that can be found in the LICENSE file. 20085 // BSD-style license that can be found in the LICENSE file.
18556 20086
18557 20087
18558 @DocsEditable 20088 @DocsEditable
18559 @DomName('HTMLTableElement') 20089 @DomName('HTMLTableElement')
18560 class TableElement extends Element native "*HTMLTableElement" { 20090 class TableElement extends Element native "*HTMLTableElement" {
18561 20091
18562 @DocsEditable 20092 @DocsEditable
18563 factory TableElement() => document.$dom_createElement("table"); 20093 factory TableElement() => document.$dom_createElement("table");
18564 20094
18565 @DocsEditable @DomName('HTMLTableElement.border') 20095 @DocsEditable
20096 @DomName('HTMLTableElement.border')
18566 String border; 20097 String border;
18567 20098
18568 @DocsEditable @DomName('HTMLTableElement.caption') 20099 @DocsEditable
20100 @DomName('HTMLTableElement.caption')
18569 TableCaptionElement caption; 20101 TableCaptionElement caption;
18570 20102
18571 @DocsEditable @DomName('HTMLTableElement.rows') 20103 @DocsEditable
20104 @DomName('HTMLTableElement.rows')
18572 final HtmlCollection rows; 20105 final HtmlCollection rows;
18573 20106
18574 @DocsEditable @DomName('HTMLTableElement.tBodies') 20107 @DocsEditable
20108 @DomName('HTMLTableElement.tBodies')
18575 final HtmlCollection tBodies; 20109 final HtmlCollection tBodies;
18576 20110
18577 @DocsEditable @DomName('HTMLTableElement.tFoot') 20111 @DocsEditable
20112 @DomName('HTMLTableElement.tFoot')
18578 TableSectionElement tFoot; 20113 TableSectionElement tFoot;
18579 20114
18580 @DocsEditable @DomName('HTMLTableElement.tHead') 20115 @DocsEditable
20116 @DomName('HTMLTableElement.tHead')
18581 TableSectionElement tHead; 20117 TableSectionElement tHead;
18582 20118
18583 @DocsEditable @DomName('HTMLTableElement.createCaption') 20119 @DocsEditable
20120 @DomName('HTMLTableElement.createCaption')
18584 Element createCaption() native; 20121 Element createCaption() native;
18585 20122
18586 @DocsEditable @DomName('HTMLTableElement.createTFoot') 20123 @DocsEditable
20124 @DomName('HTMLTableElement.createTFoot')
18587 Element createTFoot() native; 20125 Element createTFoot() native;
18588 20126
18589 @DocsEditable @DomName('HTMLTableElement.createTHead') 20127 @DocsEditable
20128 @DomName('HTMLTableElement.createTHead')
18590 Element createTHead() native; 20129 Element createTHead() native;
18591 20130
18592 @DocsEditable @DomName('HTMLTableElement.deleteCaption') 20131 @DocsEditable
20132 @DomName('HTMLTableElement.deleteCaption')
18593 void deleteCaption() native; 20133 void deleteCaption() native;
18594 20134
18595 @DocsEditable @DomName('HTMLTableElement.deleteRow') 20135 @DocsEditable
20136 @DomName('HTMLTableElement.deleteRow')
18596 void deleteRow(int index) native; 20137 void deleteRow(int index) native;
18597 20138
18598 @DocsEditable @DomName('HTMLTableElement.deleteTFoot') 20139 @DocsEditable
20140 @DomName('HTMLTableElement.deleteTFoot')
18599 void deleteTFoot() native; 20141 void deleteTFoot() native;
18600 20142
18601 @DocsEditable @DomName('HTMLTableElement.deleteTHead') 20143 @DocsEditable
20144 @DomName('HTMLTableElement.deleteTHead')
18602 void deleteTHead() native; 20145 void deleteTHead() native;
18603 20146
18604 @DocsEditable @DomName('HTMLTableElement.insertRow') 20147 @DocsEditable
20148 @DomName('HTMLTableElement.insertRow')
18605 Element insertRow(int index) native; 20149 Element insertRow(int index) native;
18606 20150
18607 20151
18608 Element createTBody() { 20152 Element createTBody() {
18609 if (JS('bool', '!!#.createTBody', this)) { 20153 if (JS('bool', '!!#.createTBody', this)) {
18610 return this._createTBody(); 20154 return this._createTBody();
18611 } 20155 }
18612 var tbody = new Element.tag('tbody'); 20156 var tbody = new Element.tag('tbody');
18613 this.elements.add(tbody); 20157 this.elements.add(tbody);
18614 return tbody; 20158 return tbody;
18615 } 20159 }
18616 20160
18617 @JSName('createTBody') 20161 @JSName('createTBody')
18618 Element _createTBody() native; 20162 Element _createTBody() native;
18619 } 20163 }
18620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18621 // for details. All rights reserved. Use of this source code is governed by a 20165 // for details. All rights reserved. Use of this source code is governed by a
18622 // BSD-style license that can be found in the LICENSE file. 20166 // BSD-style license that can be found in the LICENSE file.
18623 20167
18624 20168
18625 20169
18626 @DocsEditable 20170 @DocsEditable
18627 @DomName('HTMLTableRowElement') 20171 @DomName('HTMLTableRowElement')
18628 class TableRowElement extends Element native "*HTMLTableRowElement" { 20172 class TableRowElement extends Element native "*HTMLTableRowElement" {
18629 20173
18630 @DocsEditable 20174 @DocsEditable
18631 factory TableRowElement() => document.$dom_createElement("tr"); 20175 factory TableRowElement() => document.$dom_createElement("tr");
18632 20176
18633 @DocsEditable @DomName('HTMLTableRowElement.cells') 20177 @DocsEditable
20178 @DomName('HTMLTableRowElement.cells')
18634 final HtmlCollection cells; 20179 final HtmlCollection cells;
18635 20180
18636 @DocsEditable @DomName('HTMLTableRowElement.rowIndex') 20181 @DocsEditable
20182 @DomName('HTMLTableRowElement.rowIndex')
18637 final int rowIndex; 20183 final int rowIndex;
18638 20184
18639 @DocsEditable @DomName('HTMLTableRowElement.sectionRowIndex') 20185 @DocsEditable
20186 @DomName('HTMLTableRowElement.sectionRowIndex')
18640 final int sectionRowIndex; 20187 final int sectionRowIndex;
18641 20188
18642 @DocsEditable @DomName('HTMLTableRowElement.deleteCell') 20189 @DocsEditable
20190 @DomName('HTMLTableRowElement.deleteCell')
18643 void deleteCell(int index) native; 20191 void deleteCell(int index) native;
18644 20192
18645 @DocsEditable @DomName('HTMLTableRowElement.insertCell') 20193 @DocsEditable
20194 @DomName('HTMLTableRowElement.insertCell')
18646 Element insertCell(int index) native; 20195 Element insertCell(int index) native;
18647 } 20196 }
18648 // 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
18649 // 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
18650 // BSD-style license that can be found in the LICENSE file. 20199 // BSD-style license that can be found in the LICENSE file.
18651 20200
18652 20201
18653 20202
18654 @DocsEditable 20203 @DocsEditable
18655 @DomName('HTMLTableSectionElement') 20204 @DomName('HTMLTableSectionElement')
18656 class TableSectionElement extends Element native "*HTMLTableSectionElement" { 20205 class TableSectionElement extends Element native "*HTMLTableSectionElement" {
18657 20206
18658 @DocsEditable @DomName('HTMLTableSectionElement.rows') 20207 @DocsEditable
20208 @DomName('HTMLTableSectionElement.rows')
18659 final HtmlCollection rows; 20209 final HtmlCollection rows;
18660 20210
18661 @DocsEditable @DomName('HTMLTableSectionElement.deleteRow') 20211 @DocsEditable
20212 @DomName('HTMLTableSectionElement.deleteRow')
18662 void deleteRow(int index) native; 20213 void deleteRow(int index) native;
18663 20214
18664 @DocsEditable @DomName('HTMLTableSectionElement.insertRow') 20215 @DocsEditable
20216 @DomName('HTMLTableSectionElement.insertRow')
18665 Element insertRow(int index) native; 20217 Element insertRow(int index) native;
18666 } 20218 }
18667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18668 // for details. All rights reserved. Use of this source code is governed by a 20220 // for details. All rights reserved. Use of this source code is governed by a
18669 // BSD-style license that can be found in the LICENSE file. 20221 // BSD-style license that can be found in the LICENSE file.
18670 20222
18671 // WARNING: Do not edit - generated code. 20223 // WARNING: Do not edit - generated code.
18672 20224
18673 20225
18674 @DocsEditable 20226 @DocsEditable
18675 @DomName('Text') 20227 @DomName('Text')
18676 class Text extends CharacterData native "*Text" { 20228 class Text extends CharacterData native "*Text" {
18677 factory Text(String data) => _TextFactoryProvider.createText(data); 20229 factory Text(String data) => _TextFactoryProvider.createText(data);
18678 20230
18679 @DocsEditable @DomName('Text.wholeText') 20231 @DocsEditable
20232 @DomName('Text.wholeText')
18680 final String wholeText; 20233 final String wholeText;
18681 20234
18682 @DocsEditable @DomName('Text.replaceWholeText') 20235 @DocsEditable
20236 @DomName('Text.replaceWholeText')
18683 Text replaceWholeText(String content) native; 20237 Text replaceWholeText(String content) native;
18684 20238
18685 @DocsEditable @DomName('Text.splitText') 20239 @DocsEditable
20240 @DomName('Text.splitText')
18686 Text splitText(int offset) native; 20241 Text splitText(int offset) native;
18687 20242
18688 } 20243 }
18689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18690 // for details. All rights reserved. Use of this source code is governed by a 20245 // for details. All rights reserved. Use of this source code is governed by a
18691 // BSD-style license that can be found in the LICENSE file. 20246 // BSD-style license that can be found in the LICENSE file.
18692 20247
18693 20248
18694 20249
18695 @DocsEditable 20250 @DocsEditable
18696 @DomName('HTMLTextAreaElement') 20251 @DomName('HTMLTextAreaElement')
18697 class TextAreaElement extends Element native "*HTMLTextAreaElement" { 20252 class TextAreaElement extends Element native "*HTMLTextAreaElement" {
18698 20253
18699 @DocsEditable 20254 @DocsEditable
18700 factory TextAreaElement() => document.$dom_createElement("textarea"); 20255 factory TextAreaElement() => document.$dom_createElement("textarea");
18701 20256
18702 @DocsEditable @DomName('HTMLTextAreaElement.autofocus') 20257 @DocsEditable
20258 @DomName('HTMLTextAreaElement.autofocus')
18703 bool autofocus; 20259 bool autofocus;
18704 20260
18705 @DocsEditable @DomName('HTMLTextAreaElement.cols') 20261 @DocsEditable
20262 @DomName('HTMLTextAreaElement.cols')
18706 int cols; 20263 int cols;
18707 20264
18708 @DocsEditable @DomName('HTMLTextAreaElement.defaultValue') 20265 @DocsEditable
20266 @DomName('HTMLTextAreaElement.defaultValue')
18709 String defaultValue; 20267 String defaultValue;
18710 20268
18711 @DocsEditable @DomName('HTMLTextAreaElement.dirName') 20269 @DocsEditable
20270 @DomName('HTMLTextAreaElement.dirName')
18712 String dirName; 20271 String dirName;
18713 20272
18714 @DocsEditable @DomName('HTMLTextAreaElement.disabled') 20273 @DocsEditable
20274 @DomName('HTMLTextAreaElement.disabled')
18715 bool disabled; 20275 bool disabled;
18716 20276
18717 @DocsEditable @DomName('HTMLTextAreaElement.form') 20277 @DocsEditable
20278 @DomName('HTMLTextAreaElement.form')
18718 final FormElement form; 20279 final FormElement form;
18719 20280
18720 @DocsEditable @DomName('HTMLTextAreaElement.labels') 20281 @DocsEditable
18721 @Returns('NodeList') @Creates('NodeList') 20282 @DomName('HTMLTextAreaElement.labels')
20283 @Returns('NodeList')
20284 @Creates('NodeList')
18722 final List<Node> labels; 20285 final List<Node> labels;
18723 20286
18724 @DocsEditable @DomName('HTMLTextAreaElement.maxLength') 20287 @DocsEditable
20288 @DomName('HTMLTextAreaElement.maxLength')
18725 int maxLength; 20289 int maxLength;
18726 20290
18727 @DocsEditable @DomName('HTMLTextAreaElement.name') 20291 @DocsEditable
20292 @DomName('HTMLTextAreaElement.name')
18728 String name; 20293 String name;
18729 20294
18730 @DocsEditable @DomName('HTMLTextAreaElement.placeholder') 20295 @DocsEditable
20296 @DomName('HTMLTextAreaElement.placeholder')
18731 String placeholder; 20297 String placeholder;
18732 20298
18733 @DocsEditable @DomName('HTMLTextAreaElement.readOnly') 20299 @DocsEditable
20300 @DomName('HTMLTextAreaElement.readOnly')
18734 bool readOnly; 20301 bool readOnly;
18735 20302
18736 @DocsEditable @DomName('HTMLTextAreaElement.required') 20303 @DocsEditable
20304 @DomName('HTMLTextAreaElement.required')
18737 bool required; 20305 bool required;
18738 20306
18739 @DocsEditable @DomName('HTMLTextAreaElement.rows') 20307 @DocsEditable
20308 @DomName('HTMLTextAreaElement.rows')
18740 int rows; 20309 int rows;
18741 20310
18742 @DocsEditable @DomName('HTMLTextAreaElement.selectionDirection') 20311 @DocsEditable
20312 @DomName('HTMLTextAreaElement.selectionDirection')
18743 String selectionDirection; 20313 String selectionDirection;
18744 20314
18745 @DocsEditable @DomName('HTMLTextAreaElement.selectionEnd') 20315 @DocsEditable
20316 @DomName('HTMLTextAreaElement.selectionEnd')
18746 int selectionEnd; 20317 int selectionEnd;
18747 20318
18748 @DocsEditable @DomName('HTMLTextAreaElement.selectionStart') 20319 @DocsEditable
20320 @DomName('HTMLTextAreaElement.selectionStart')
18749 int selectionStart; 20321 int selectionStart;
18750 20322
18751 @DocsEditable @DomName('HTMLTextAreaElement.textLength') 20323 @DocsEditable
20324 @DomName('HTMLTextAreaElement.textLength')
18752 final int textLength; 20325 final int textLength;
18753 20326
18754 @DocsEditable @DomName('HTMLTextAreaElement.type') 20327 @DocsEditable
20328 @DomName('HTMLTextAreaElement.type')
18755 final String type; 20329 final String type;
18756 20330
18757 @DocsEditable @DomName('HTMLTextAreaElement.validationMessage') 20331 @DocsEditable
20332 @DomName('HTMLTextAreaElement.validationMessage')
18758 final String validationMessage; 20333 final String validationMessage;
18759 20334
18760 @DocsEditable @DomName('HTMLTextAreaElement.validity') 20335 @DocsEditable
20336 @DomName('HTMLTextAreaElement.validity')
18761 final ValidityState validity; 20337 final ValidityState validity;
18762 20338
18763 @DocsEditable @DomName('HTMLTextAreaElement.value') 20339 @DocsEditable
20340 @DomName('HTMLTextAreaElement.value')
18764 String value; 20341 String value;
18765 20342
18766 @DocsEditable @DomName('HTMLTextAreaElement.willValidate') 20343 @DocsEditable
20344 @DomName('HTMLTextAreaElement.willValidate')
18767 final bool willValidate; 20345 final bool willValidate;
18768 20346
18769 @DocsEditable @DomName('HTMLTextAreaElement.wrap') 20347 @DocsEditable
20348 @DomName('HTMLTextAreaElement.wrap')
18770 String wrap; 20349 String wrap;
18771 20350
18772 @DocsEditable @DomName('HTMLTextAreaElement.checkValidity') 20351 @DocsEditable
20352 @DomName('HTMLTextAreaElement.checkValidity')
18773 bool checkValidity() native; 20353 bool checkValidity() native;
18774 20354
18775 @DocsEditable @DomName('HTMLTextAreaElement.select') 20355 @DocsEditable
20356 @DomName('HTMLTextAreaElement.select')
18776 void select() native; 20357 void select() native;
18777 20358
18778 @DocsEditable @DomName('HTMLTextAreaElement.setCustomValidity') 20359 @DocsEditable
20360 @DomName('HTMLTextAreaElement.setCustomValidity')
18779 void setCustomValidity(String error) native; 20361 void setCustomValidity(String error) native;
18780 20362
18781 @DocsEditable @DomName('HTMLTextAreaElement.setRangeText') 20363 @DocsEditable
20364 @DomName('HTMLTextAreaElement.setRangeText')
18782 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 20365 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native;
18783 20366
18784 @DocsEditable @DomName('HTMLTextAreaElement.setSelectionRange') 20367 @DocsEditable
20368 @DomName('HTMLTextAreaElement.setSelectionRange')
18785 void setSelectionRange(int start, int end, [String direction]) native; 20369 void setSelectionRange(int start, int end, [String direction]) native;
18786 } 20370 }
18787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18788 // for details. All rights reserved. Use of this source code is governed by a 20372 // for details. All rights reserved. Use of this source code is governed by a
18789 // BSD-style license that can be found in the LICENSE file. 20373 // BSD-style license that can be found in the LICENSE file.
18790 20374
18791 20375
18792 20376
18793 @DocsEditable 20377 @DocsEditable
18794 @DomName('TextEvent') 20378 @DomName('TextEvent')
18795 class TextEvent extends UIEvent native "*TextEvent" { 20379 class TextEvent extends UIEvent native "*TextEvent" {
18796 20380
18797 @DocsEditable @DomName('TextEvent.data') 20381 @DocsEditable
20382 @DomName('TextEvent.data')
18798 final String data; 20383 final String data;
18799 20384
18800 @DocsEditable @DomName('TextEvent.initTextEvent') 20385 @DocsEditable
20386 @DomName('TextEvent.initTextEvent')
18801 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind ow viewArg, String dataArg) native; 20387 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind ow viewArg, String dataArg) native;
18802 } 20388 }
18803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18804 // for details. All rights reserved. Use of this source code is governed by a 20390 // for details. All rights reserved. Use of this source code is governed by a
18805 // BSD-style license that can be found in the LICENSE file. 20391 // BSD-style license that can be found in the LICENSE file.
18806 20392
18807 20393
18808 20394
18809 @DocsEditable 20395 @DocsEditable
18810 @DomName('TextMetrics') 20396 @DomName('TextMetrics')
18811 class TextMetrics native "*TextMetrics" { 20397 class TextMetrics native "*TextMetrics" {
18812 20398
18813 @DocsEditable @DomName('TextMetrics.width') 20399 @DocsEditable
20400 @DomName('TextMetrics.width')
18814 final num width; 20401 final num width;
18815 } 20402 }
18816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18817 // for details. All rights reserved. Use of this source code is governed by a 20404 // for details. All rights reserved. Use of this source code is governed by a
18818 // BSD-style license that can be found in the LICENSE file. 20405 // BSD-style license that can be found in the LICENSE file.
18819 20406
18820 20407
18821 20408
18822 @DocsEditable 20409 @DocsEditable
18823 @DomName('TextTrack') 20410 @DomName('TextTrack')
18824 class TextTrack extends EventTarget native "*TextTrack" { 20411 class TextTrack extends EventTarget native "*TextTrack" {
18825 20412
18826 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange'); 20413 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange');
18827 20414
18828 @DocsEditable 20415 @DocsEditable
18829 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 20416 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
18830 TextTrackEvents get on => 20417 TextTrackEvents get on =>
18831 new TextTrackEvents(this); 20418 new TextTrackEvents(this);
18832 20419
18833 @DocsEditable @DomName('TextTrack.activeCues') 20420 @DocsEditable
20421 @DomName('TextTrack.activeCues')
18834 final TextTrackCueList activeCues; 20422 final TextTrackCueList activeCues;
18835 20423
18836 @DocsEditable @DomName('TextTrack.cues') 20424 @DocsEditable
20425 @DomName('TextTrack.cues')
18837 final TextTrackCueList cues; 20426 final TextTrackCueList cues;
18838 20427
18839 @DocsEditable @DomName('TextTrack.kind') 20428 @DocsEditable
20429 @DomName('TextTrack.kind')
18840 final String kind; 20430 final String kind;
18841 20431
18842 @DocsEditable @DomName('TextTrack.label') 20432 @DocsEditable
20433 @DomName('TextTrack.label')
18843 final String label; 20434 final String label;
18844 20435
18845 @DocsEditable @DomName('TextTrack.language') 20436 @DocsEditable
20437 @DomName('TextTrack.language')
18846 final String language; 20438 final String language;
18847 20439
18848 @DocsEditable @DomName('TextTrack.mode') 20440 @DocsEditable
20441 @DomName('TextTrack.mode')
18849 String mode; 20442 String mode;
18850 20443
18851 @DocsEditable @DomName('TextTrack.addCue') 20444 @DocsEditable
20445 @DomName('TextTrack.addCue')
18852 void addCue(TextTrackCue cue) native; 20446 void addCue(TextTrackCue cue) native;
18853 20447
18854 @JSName('addEventListener') 20448 @JSName('addEventListener')
18855 @DocsEditable @DomName('TextTrack.addEventListener') 20449 @DocsEditable
20450 @DomName('TextTrack.addEventListener')
18856 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 20451 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
18857 20452
18858 @JSName('dispatchEvent') 20453 @JSName('dispatchEvent')
18859 @DocsEditable @DomName('TextTrack.dispatchEvent') 20454 @DocsEditable
20455 @DomName('TextTrack.dispatchEvent')
18860 bool $dom_dispatchEvent(Event evt) native; 20456 bool $dom_dispatchEvent(Event evt) native;
18861 20457
18862 @DocsEditable @DomName('TextTrack.removeCue') 20458 @DocsEditable
20459 @DomName('TextTrack.removeCue')
18863 void removeCue(TextTrackCue cue) native; 20460 void removeCue(TextTrackCue cue) native;
18864 20461
18865 @JSName('removeEventListener') 20462 @JSName('removeEventListener')
18866 @DocsEditable @DomName('TextTrack.removeEventListener') 20463 @DocsEditable
20464 @DomName('TextTrack.removeEventListener')
18867 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 20465 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
18868 20466
18869 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this); 20467 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this);
18870 } 20468 }
18871 20469
18872 @DocsEditable 20470 @DocsEditable
18873 class TextTrackEvents extends Events { 20471 class TextTrackEvents extends Events {
18874 @DocsEditable 20472 @DocsEditable
18875 TextTrackEvents(EventTarget _ptr) : super(_ptr); 20473 TextTrackEvents(EventTarget _ptr) : super(_ptr);
18876 20474
(...skipping 16 matching lines...) Expand all
18893 20491
18894 @DocsEditable 20492 @DocsEditable
18895 factory TextTrackCue(num startTime, num endTime, String text) => TextTrackCue. _create(startTime, endTime, text); 20493 factory TextTrackCue(num startTime, num endTime, String text) => TextTrackCue. _create(startTime, endTime, text);
18896 static TextTrackCue _create(num startTime, num endTime, String text) => JS('Te xtTrackCue', 'new TextTrackCue(#,#,#)', startTime, endTime, text); 20494 static TextTrackCue _create(num startTime, num endTime, String text) => JS('Te xtTrackCue', 'new TextTrackCue(#,#,#)', startTime, endTime, text);
18897 20495
18898 @DocsEditable 20496 @DocsEditable
18899 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 20497 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
18900 TextTrackCueEvents get on => 20498 TextTrackCueEvents get on =>
18901 new TextTrackCueEvents(this); 20499 new TextTrackCueEvents(this);
18902 20500
18903 @DocsEditable @DomName('TextTrackCue.align') 20501 @DocsEditable
20502 @DomName('TextTrackCue.align')
18904 String align; 20503 String align;
18905 20504
18906 @DocsEditable @DomName('TextTrackCue.endTime') 20505 @DocsEditable
20506 @DomName('TextTrackCue.endTime')
18907 num endTime; 20507 num endTime;
18908 20508
18909 @DocsEditable @DomName('TextTrackCue.id') 20509 @DocsEditable
20510 @DomName('TextTrackCue.id')
18910 String id; 20511 String id;
18911 20512
18912 @DocsEditable @DomName('TextTrackCue.line') 20513 @DocsEditable
20514 @DomName('TextTrackCue.line')
18913 int line; 20515 int line;
18914 20516
18915 @DocsEditable @DomName('TextTrackCue.pauseOnExit') 20517 @DocsEditable
20518 @DomName('TextTrackCue.pauseOnExit')
18916 bool pauseOnExit; 20519 bool pauseOnExit;
18917 20520
18918 @DocsEditable @DomName('TextTrackCue.position') 20521 @DocsEditable
20522 @DomName('TextTrackCue.position')
18919 int position; 20523 int position;
18920 20524
18921 @DocsEditable @DomName('TextTrackCue.size') 20525 @DocsEditable
20526 @DomName('TextTrackCue.size')
18922 int size; 20527 int size;
18923 20528
18924 @DocsEditable @DomName('TextTrackCue.snapToLines') 20529 @DocsEditable
20530 @DomName('TextTrackCue.snapToLines')
18925 bool snapToLines; 20531 bool snapToLines;
18926 20532
18927 @DocsEditable @DomName('TextTrackCue.startTime') 20533 @DocsEditable
20534 @DomName('TextTrackCue.startTime')
18928 num startTime; 20535 num startTime;
18929 20536
18930 @DocsEditable @DomName('TextTrackCue.text') 20537 @DocsEditable
20538 @DomName('TextTrackCue.text')
18931 String text; 20539 String text;
18932 20540
18933 @DocsEditable @DomName('TextTrackCue.track') 20541 @DocsEditable
20542 @DomName('TextTrackCue.track')
18934 final TextTrack track; 20543 final TextTrack track;
18935 20544
18936 @DocsEditable @DomName('TextTrackCue.vertical') 20545 @DocsEditable
20546 @DomName('TextTrackCue.vertical')
18937 String vertical; 20547 String vertical;
18938 20548
18939 @JSName('addEventListener') 20549 @JSName('addEventListener')
18940 @DocsEditable @DomName('TextTrackCue.addEventListener') 20550 @DocsEditable
20551 @DomName('TextTrackCue.addEventListener')
18941 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 20552 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
18942 20553
18943 @JSName('dispatchEvent') 20554 @JSName('dispatchEvent')
18944 @DocsEditable @DomName('TextTrackCue.dispatchEvent') 20555 @DocsEditable
20556 @DomName('TextTrackCue.dispatchEvent')
18945 bool $dom_dispatchEvent(Event evt) native; 20557 bool $dom_dispatchEvent(Event evt) native;
18946 20558
18947 @JSName('getCueAsHTML') 20559 @JSName('getCueAsHTML')
18948 @DocsEditable @DomName('TextTrackCue.getCueAsHTML') 20560 @DocsEditable
20561 @DomName('TextTrackCue.getCueAsHTML')
18949 DocumentFragment getCueAsHtml() native; 20562 DocumentFragment getCueAsHtml() native;
18950 20563
18951 @JSName('removeEventListener') 20564 @JSName('removeEventListener')
18952 @DocsEditable @DomName('TextTrackCue.removeEventListener') 20565 @DocsEditable
20566 @DomName('TextTrackCue.removeEventListener')
18953 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 20567 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
18954 20568
18955 Stream<Event> get onEnter => enterEvent.forTarget(this); 20569 Stream<Event> get onEnter => enterEvent.forTarget(this);
18956 20570
18957 Stream<Event> get onExit => exitEvent.forTarget(this); 20571 Stream<Event> get onExit => exitEvent.forTarget(this);
18958 } 20572 }
18959 20573
18960 @DocsEditable 20574 @DocsEditable
18961 class TextTrackCueEvents extends Events { 20575 class TextTrackCueEvents extends Events {
18962 @DocsEditable 20576 @DocsEditable
18963 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); 20577 TextTrackCueEvents(EventTarget _ptr) : super(_ptr);
18964 20578
18965 @DocsEditable 20579 @DocsEditable
18966 EventListenerList get enter => this['enter']; 20580 EventListenerList get enter => this['enter'];
18967 20581
18968 @DocsEditable 20582 @DocsEditable
18969 EventListenerList get exit => this['exit']; 20583 EventListenerList get exit => this['exit'];
18970 } 20584 }
18971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18972 // for details. All rights reserved. Use of this source code is governed by a 20586 // for details. All rights reserved. Use of this source code is governed by a
18973 // BSD-style license that can be found in the LICENSE file. 20587 // BSD-style license that can be found in the LICENSE file.
18974 20588
18975 20589
18976 20590
18977 @DocsEditable 20591 @DocsEditable
18978 @DomName('TextTrackCueList') 20592 @DomName('TextTrackCueList')
18979 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" { 20593 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" {
18980 20594
18981 @DocsEditable @DomName('TextTrackCueList.length') 20595 @DocsEditable
20596 @DomName('TextTrackCueList.length')
18982 int get length => JS("int", "#.length", this); 20597 int get length => JS("int", "#.length", this);
18983 20598
18984 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); 20599 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
18985 20600
18986 void operator[]=(int index, TextTrackCue value) { 20601 void operator[]=(int index, TextTrackCue value) {
18987 throw new UnsupportedError("Cannot assign element of immutable List."); 20602 throw new UnsupportedError("Cannot assign element of immutable List.");
18988 } 20603 }
18989 // -- start List<TextTrackCue> mixins. 20604 // -- start List<TextTrackCue> mixins.
18990 // TextTrackCue is the element type. 20605 // TextTrackCue is the element type.
18991 20606
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
19122 20737
19123 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { 20738 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
19124 throw new UnsupportedError("Cannot insertRange on immutable List."); 20739 throw new UnsupportedError("Cannot insertRange on immutable List.");
19125 } 20740 }
19126 20741
19127 List<TextTrackCue> getRange(int start, int rangeLength) => 20742 List<TextTrackCue> getRange(int start, int rangeLength) =>
19128 Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); 20743 Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
19129 20744
19130 // -- end List<TextTrackCue> mixins. 20745 // -- end List<TextTrackCue> mixins.
19131 20746
19132 @DocsEditable @DomName('TextTrackCueList.getCueById') 20747 @DocsEditable
20748 @DomName('TextTrackCueList.getCueById')
19133 TextTrackCue getCueById(String id) native; 20749 TextTrackCue getCueById(String id) native;
19134 20750
19135 @DocsEditable @DomName('TextTrackCueList.item') 20751 @DocsEditable
20752 @DomName('TextTrackCueList.item')
19136 TextTrackCue item(int index) native; 20753 TextTrackCue item(int index) native;
19137 } 20754 }
19138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19139 // for details. All rights reserved. Use of this source code is governed by a 20756 // for details. All rights reserved. Use of this source code is governed by a
19140 // BSD-style license that can be found in the LICENSE file. 20757 // BSD-style license that can be found in the LICENSE file.
19141 20758
19142 20759
19143 20760
19144 @DocsEditable 20761 @DocsEditable
19145 @DomName('TextTrackList') 20762 @DomName('TextTrackList')
19146 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" { 20763 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" {
19147 20764
19148 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack'); 20765 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack');
19149 20766
19150 @DocsEditable 20767 @DocsEditable
19151 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 20768 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
19152 TextTrackListEvents get on => 20769 TextTrackListEvents get on =>
19153 new TextTrackListEvents(this); 20770 new TextTrackListEvents(this);
19154 20771
19155 @DocsEditable @DomName('TextTrackList.length') 20772 @DocsEditable
20773 @DomName('TextTrackList.length')
19156 int get length => JS("int", "#.length", this); 20774 int get length => JS("int", "#.length", this);
19157 20775
19158 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); 20776 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
19159 20777
19160 void operator[]=(int index, TextTrack value) { 20778 void operator[]=(int index, TextTrack value) {
19161 throw new UnsupportedError("Cannot assign element of immutable List."); 20779 throw new UnsupportedError("Cannot assign element of immutable List.");
19162 } 20780 }
19163 // -- start List<TextTrack> mixins. 20781 // -- start List<TextTrack> mixins.
19164 // TextTrack is the element type. 20782 // TextTrack is the element type.
19165 20783
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
19297 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { 20915 void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
19298 throw new UnsupportedError("Cannot insertRange on immutable List."); 20916 throw new UnsupportedError("Cannot insertRange on immutable List.");
19299 } 20917 }
19300 20918
19301 List<TextTrack> getRange(int start, int rangeLength) => 20919 List<TextTrack> getRange(int start, int rangeLength) =>
19302 Lists.getRange(this, start, rangeLength, <TextTrack>[]); 20920 Lists.getRange(this, start, rangeLength, <TextTrack>[]);
19303 20921
19304 // -- end List<TextTrack> mixins. 20922 // -- end List<TextTrack> mixins.
19305 20923
19306 @JSName('addEventListener') 20924 @JSName('addEventListener')
19307 @DocsEditable @DomName('TextTrackList.addEventListener') 20925 @DocsEditable
20926 @DomName('TextTrackList.addEventListener')
19308 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 20927 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
19309 20928
19310 @JSName('dispatchEvent') 20929 @JSName('dispatchEvent')
19311 @DocsEditable @DomName('TextTrackList.dispatchEvent') 20930 @DocsEditable
20931 @DomName('TextTrackList.dispatchEvent')
19312 bool $dom_dispatchEvent(Event evt) native; 20932 bool $dom_dispatchEvent(Event evt) native;
19313 20933
19314 @DocsEditable @DomName('TextTrackList.item') 20934 @DocsEditable
20935 @DomName('TextTrackList.item')
19315 TextTrack item(int index) native; 20936 TextTrack item(int index) native;
19316 20937
19317 @JSName('removeEventListener') 20938 @JSName('removeEventListener')
19318 @DocsEditable @DomName('TextTrackList.removeEventListener') 20939 @DocsEditable
20940 @DomName('TextTrackList.removeEventListener')
19319 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 20941 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
19320 20942
19321 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this); 20943 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
19322 } 20944 }
19323 20945
19324 @DocsEditable 20946 @DocsEditable
19325 class TextTrackListEvents extends Events { 20947 class TextTrackListEvents extends Events {
19326 @DocsEditable 20948 @DocsEditable
19327 TextTrackListEvents(EventTarget _ptr) : super(_ptr); 20949 TextTrackListEvents(EventTarget _ptr) : super(_ptr);
19328 20950
19329 @DocsEditable 20951 @DocsEditable
19330 EventListenerList get addTrack => this['addtrack']; 20952 EventListenerList get addTrack => this['addtrack'];
19331 } 20953 }
19332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19333 // for details. All rights reserved. Use of this source code is governed by a 20955 // for details. All rights reserved. Use of this source code is governed by a
19334 // BSD-style license that can be found in the LICENSE file. 20956 // BSD-style license that can be found in the LICENSE file.
19335 20957
19336 20958
19337 20959
19338 @DocsEditable 20960 @DocsEditable
19339 @DomName('TimeRanges') 20961 @DomName('TimeRanges')
19340 class TimeRanges native "*TimeRanges" { 20962 class TimeRanges native "*TimeRanges" {
19341 20963
19342 @DocsEditable @DomName('TimeRanges.length') 20964 @DocsEditable
20965 @DomName('TimeRanges.length')
19343 final int length; 20966 final int length;
19344 20967
19345 @DocsEditable @DomName('TimeRanges.end') 20968 @DocsEditable
20969 @DomName('TimeRanges.end')
19346 num end(int index) native; 20970 num end(int index) native;
19347 20971
19348 @DocsEditable @DomName('TimeRanges.start') 20972 @DocsEditable
20973 @DomName('TimeRanges.start')
19349 num start(int index) native; 20974 num start(int index) native;
19350 } 20975 }
19351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19352 // for details. All rights reserved. Use of this source code is governed by a 20977 // for details. All rights reserved. Use of this source code is governed by a
19353 // BSD-style license that can be found in the LICENSE file. 20978 // BSD-style license that can be found in the LICENSE file.
19354 20979
19355 // WARNING: Do not edit - generated code. 20980 // WARNING: Do not edit - generated code.
19356 20981
19357 20982
19358 typedef void TimeoutHandler(); 20983 typedef void TimeoutHandler();
(...skipping 13 matching lines...) Expand all
19372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19373 // for details. All rights reserved. Use of this source code is governed by a 20998 // for details. All rights reserved. Use of this source code is governed by a
19374 // BSD-style license that can be found in the LICENSE file. 20999 // BSD-style license that can be found in the LICENSE file.
19375 21000
19376 21001
19377 21002
19378 @DocsEditable 21003 @DocsEditable
19379 @DomName('Touch') 21004 @DomName('Touch')
19380 class Touch native "*Touch" { 21005 class Touch native "*Touch" {
19381 21006
19382 @DocsEditable @DomName('Touch.clientX') 21007 @DocsEditable
21008 @DomName('Touch.clientX')
19383 final int clientX; 21009 final int clientX;
19384 21010
19385 @DocsEditable @DomName('Touch.clientY') 21011 @DocsEditable
21012 @DomName('Touch.clientY')
19386 final int clientY; 21013 final int clientY;
19387 21014
19388 @DocsEditable @DomName('Touch.identifier') 21015 @DocsEditable
21016 @DomName('Touch.identifier')
19389 final int identifier; 21017 final int identifier;
19390 21018
19391 @DocsEditable @DomName('Touch.pageX') 21019 @DocsEditable
21020 @DomName('Touch.pageX')
19392 final int pageX; 21021 final int pageX;
19393 21022
19394 @DocsEditable @DomName('Touch.pageY') 21023 @DocsEditable
21024 @DomName('Touch.pageY')
19395 final int pageY; 21025 final int pageY;
19396 21026
19397 @DocsEditable @DomName('Touch.screenX') 21027 @DocsEditable
21028 @DomName('Touch.screenX')
19398 final int screenX; 21029 final int screenX;
19399 21030
19400 @DocsEditable @DomName('Touch.screenY') 21031 @DocsEditable
21032 @DomName('Touch.screenY')
19401 final int screenY; 21033 final int screenY;
19402 21034
19403 EventTarget get target => _convertNativeToDart_EventTarget(this._target); 21035 EventTarget get target => _convertNativeToDart_EventTarget(this._target);
19404 @JSName('target') 21036 @JSName('target')
19405 @DocsEditable @DomName('Touch.target') @Creates('Element|Document') @Returns(' Element|Document') 21037 @DocsEditable
21038 @DomName('Touch.target')
21039 @Creates('Element|Document')
21040 @Returns('Element|Document')
19406 final dynamic _target; 21041 final dynamic _target;
19407 21042
19408 @DocsEditable @DomName('Touch.webkitForce') 21043 @DocsEditable
21044 @DomName('Touch.webkitForce')
19409 final num webkitForce; 21045 final num webkitForce;
19410 21046
19411 @DocsEditable @DomName('Touch.webkitRadiusX') 21047 @DocsEditable
21048 @DomName('Touch.webkitRadiusX')
19412 final int webkitRadiusX; 21049 final int webkitRadiusX;
19413 21050
19414 @DocsEditable @DomName('Touch.webkitRadiusY') 21051 @DocsEditable
21052 @DomName('Touch.webkitRadiusY')
19415 final int webkitRadiusY; 21053 final int webkitRadiusY;
19416 21054
19417 @DocsEditable @DomName('Touch.webkitRotationAngle') 21055 @DocsEditable
21056 @DomName('Touch.webkitRotationAngle')
19418 final num webkitRotationAngle; 21057 final num webkitRotationAngle;
19419 } 21058 }
19420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19421 // for details. All rights reserved. Use of this source code is governed by a 21060 // for details. All rights reserved. Use of this source code is governed by a
19422 // BSD-style license that can be found in the LICENSE file. 21061 // BSD-style license that can be found in the LICENSE file.
19423 21062
19424 21063
19425 21064
19426 @DocsEditable 21065 @DocsEditable
19427 @DomName('TouchEvent') 21066 @DomName('TouchEvent')
19428 class TouchEvent extends UIEvent native "*TouchEvent" { 21067 class TouchEvent extends UIEvent native "*TouchEvent" {
19429 21068
19430 @DocsEditable @DomName('TouchEvent.altKey') 21069 @DocsEditable
21070 @DomName('TouchEvent.altKey')
19431 final bool altKey; 21071 final bool altKey;
19432 21072
19433 @DocsEditable @DomName('TouchEvent.changedTouches') 21073 @DocsEditable
21074 @DomName('TouchEvent.changedTouches')
19434 final TouchList changedTouches; 21075 final TouchList changedTouches;
19435 21076
19436 @DocsEditable @DomName('TouchEvent.ctrlKey') 21077 @DocsEditable
21078 @DomName('TouchEvent.ctrlKey')
19437 final bool ctrlKey; 21079 final bool ctrlKey;
19438 21080
19439 @DocsEditable @DomName('TouchEvent.metaKey') 21081 @DocsEditable
21082 @DomName('TouchEvent.metaKey')
19440 final bool metaKey; 21083 final bool metaKey;
19441 21084
19442 @DocsEditable @DomName('TouchEvent.shiftKey') 21085 @DocsEditable
21086 @DomName('TouchEvent.shiftKey')
19443 final bool shiftKey; 21087 final bool shiftKey;
19444 21088
19445 @DocsEditable @DomName('TouchEvent.targetTouches') 21089 @DocsEditable
21090 @DomName('TouchEvent.targetTouches')
19446 final TouchList targetTouches; 21091 final TouchList targetTouches;
19447 21092
19448 @DocsEditable @DomName('TouchEvent.touches') 21093 @DocsEditable
21094 @DomName('TouchEvent.touches')
19449 final TouchList touches; 21095 final TouchList touches;
19450 21096
19451 @DocsEditable @DomName('TouchEvent.initTouchEvent') 21097 @DocsEditable
21098 @DomName('TouchEvent.initTouchEvent')
19452 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan gedTouches, String type, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; 21099 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan gedTouches, String type, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native;
19453 } 21100 }
19454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19455 // for details. All rights reserved. Use of this source code is governed by a 21102 // for details. All rights reserved. Use of this source code is governed by a
19456 // BSD-style license that can be found in the LICENSE file. 21103 // BSD-style license that can be found in the LICENSE file.
19457 21104
19458 21105
19459 21106
19460 @DocsEditable 21107 @DocsEditable
19461 @DomName('TouchList') 21108 @DomName('TouchList')
19462 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" { 21109 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" {
19463 21110
19464 @DocsEditable @DomName('TouchList.length') 21111 @DocsEditable
21112 @DomName('TouchList.length')
19465 int get length => JS("int", "#.length", this); 21113 int get length => JS("int", "#.length", this);
19466 21114
19467 Touch operator[](int index) => JS("Touch", "#[#]", this, index); 21115 Touch operator[](int index) => JS("Touch", "#[#]", this, index);
19468 21116
19469 void operator[]=(int index, Touch value) { 21117 void operator[]=(int index, Touch value) {
19470 throw new UnsupportedError("Cannot assign element of immutable List."); 21118 throw new UnsupportedError("Cannot assign element of immutable List.");
19471 } 21119 }
19472 // -- start List<Touch> mixins. 21120 // -- start List<Touch> mixins.
19473 // Touch is the element type. 21121 // Touch is the element type.
19474 21122
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
19605 21253
19606 void insertRange(int start, int rangeLength, [Touch initialValue]) { 21254 void insertRange(int start, int rangeLength, [Touch initialValue]) {
19607 throw new UnsupportedError("Cannot insertRange on immutable List."); 21255 throw new UnsupportedError("Cannot insertRange on immutable List.");
19608 } 21256 }
19609 21257
19610 List<Touch> getRange(int start, int rangeLength) => 21258 List<Touch> getRange(int start, int rangeLength) =>
19611 Lists.getRange(this, start, rangeLength, <Touch>[]); 21259 Lists.getRange(this, start, rangeLength, <Touch>[]);
19612 21260
19613 // -- end List<Touch> mixins. 21261 // -- end List<Touch> mixins.
19614 21262
19615 @DocsEditable @DomName('TouchList.item') 21263 @DocsEditable
21264 @DomName('TouchList.item')
19616 Touch item(int index) native; 21265 Touch item(int index) native;
19617 } 21266 }
19618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19619 // for details. All rights reserved. Use of this source code is governed by a 21268 // for details. All rights reserved. Use of this source code is governed by a
19620 // BSD-style license that can be found in the LICENSE file. 21269 // BSD-style license that can be found in the LICENSE file.
19621 21270
19622 21271
19623 21272
19624 @DocsEditable 21273 @DocsEditable
19625 @DomName('HTMLTrackElement') 21274 @DomName('HTMLTrackElement')
(...skipping 10 matching lines...) Expand all
19636 21285
19637 static const int ERROR = 3; 21286 static const int ERROR = 3;
19638 21287
19639 static const int LOADED = 2; 21288 static const int LOADED = 2;
19640 21289
19641 static const int LOADING = 1; 21290 static const int LOADING = 1;
19642 21291
19643 static const int NONE = 0; 21292 static const int NONE = 0;
19644 21293
19645 @JSName('default') 21294 @JSName('default')
19646 @DocsEditable @DomName('HTMLTrackElement.default') 21295 @DocsEditable
21296 @DomName('HTMLTrackElement.default')
19647 bool defaultValue; 21297 bool defaultValue;
19648 21298
19649 @DocsEditable @DomName('HTMLTrackElement.kind') 21299 @DocsEditable
21300 @DomName('HTMLTrackElement.kind')
19650 String kind; 21301 String kind;
19651 21302
19652 @DocsEditable @DomName('HTMLTrackElement.label') 21303 @DocsEditable
21304 @DomName('HTMLTrackElement.label')
19653 String label; 21305 String label;
19654 21306
19655 @DocsEditable @DomName('HTMLTrackElement.readyState') 21307 @DocsEditable
21308 @DomName('HTMLTrackElement.readyState')
19656 final int readyState; 21309 final int readyState;
19657 21310
19658 @DocsEditable @DomName('HTMLTrackElement.src') 21311 @DocsEditable
21312 @DomName('HTMLTrackElement.src')
19659 String src; 21313 String src;
19660 21314
19661 @DocsEditable @DomName('HTMLTrackElement.srclang') 21315 @DocsEditable
21316 @DomName('HTMLTrackElement.srclang')
19662 String srclang; 21317 String srclang;
19663 21318
19664 @DocsEditable @DomName('HTMLTrackElement.track') 21319 @DocsEditable
21320 @DomName('HTMLTrackElement.track')
19665 final TextTrack track; 21321 final TextTrack track;
19666 } 21322 }
19667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19668 // for details. All rights reserved. Use of this source code is governed by a 21324 // for details. All rights reserved. Use of this source code is governed by a
19669 // BSD-style license that can be found in the LICENSE file. 21325 // BSD-style license that can be found in the LICENSE file.
19670 21326
19671 21327
19672 21328
19673 @DocsEditable 21329 @DocsEditable
19674 @DomName('TrackEvent') 21330 @DomName('TrackEvent')
19675 class TrackEvent extends Event native "*TrackEvent" { 21331 class TrackEvent extends Event native "*TrackEvent" {
19676 21332
19677 @DocsEditable @DomName('TrackEvent.track') 21333 @DocsEditable
21334 @DomName('TrackEvent.track')
19678 final Object track; 21335 final Object track;
19679 } 21336 }
19680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19681 // for details. All rights reserved. Use of this source code is governed by a 21338 // for details. All rights reserved. Use of this source code is governed by a
19682 // BSD-style license that can be found in the LICENSE file. 21339 // BSD-style license that can be found in the LICENSE file.
19683 21340
19684 21341
19685 21342
19686 @DocsEditable 21343 @DocsEditable
19687 @DomName('WebKitTransitionEvent') 21344 @DomName('WebKitTransitionEvent')
19688 class TransitionEvent extends Event native "*WebKitTransitionEvent" { 21345 class TransitionEvent extends Event native "*WebKitTransitionEvent" {
19689 21346
19690 @DocsEditable @DomName('WebKitTransitionEvent.elapsedTime') 21347 @DocsEditable
21348 @DomName('WebKitTransitionEvent.elapsedTime')
19691 final num elapsedTime; 21349 final num elapsedTime;
19692 21350
19693 @DocsEditable @DomName('WebKitTransitionEvent.propertyName') 21351 @DocsEditable
21352 @DomName('WebKitTransitionEvent.propertyName')
19694 final String propertyName; 21353 final String propertyName;
19695 } 21354 }
19696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19697 // for details. All rights reserved. Use of this source code is governed by a 21356 // for details. All rights reserved. Use of this source code is governed by a
19698 // BSD-style license that can be found in the LICENSE file. 21357 // BSD-style license that can be found in the LICENSE file.
19699 21358
19700 21359
19701 21360
19702 @DocsEditable 21361 @DocsEditable
19703 @DomName('TreeWalker') 21362 @DomName('TreeWalker')
19704 class TreeWalker native "*TreeWalker" { 21363 class TreeWalker native "*TreeWalker" {
19705 21364
19706 @DocsEditable @DomName('TreeWalker.currentNode') 21365 @DocsEditable
21366 @DomName('TreeWalker.currentNode')
19707 Node currentNode; 21367 Node currentNode;
19708 21368
19709 @DocsEditable @DomName('TreeWalker.expandEntityReferences') 21369 @DocsEditable
21370 @DomName('TreeWalker.expandEntityReferences')
19710 final bool expandEntityReferences; 21371 final bool expandEntityReferences;
19711 21372
19712 @DocsEditable @DomName('TreeWalker.filter') 21373 @DocsEditable
21374 @DomName('TreeWalker.filter')
19713 final NodeFilter filter; 21375 final NodeFilter filter;
19714 21376
19715 @DocsEditable @DomName('TreeWalker.root') 21377 @DocsEditable
21378 @DomName('TreeWalker.root')
19716 final Node root; 21379 final Node root;
19717 21380
19718 @DocsEditable @DomName('TreeWalker.whatToShow') 21381 @DocsEditable
21382 @DomName('TreeWalker.whatToShow')
19719 final int whatToShow; 21383 final int whatToShow;
19720 21384
19721 @DocsEditable @DomName('TreeWalker.firstChild') 21385 @DocsEditable
21386 @DomName('TreeWalker.firstChild')
19722 Node firstChild() native; 21387 Node firstChild() native;
19723 21388
19724 @DocsEditable @DomName('TreeWalker.lastChild') 21389 @DocsEditable
21390 @DomName('TreeWalker.lastChild')
19725 Node lastChild() native; 21391 Node lastChild() native;
19726 21392
19727 @DocsEditable @DomName('TreeWalker.nextNode') 21393 @DocsEditable
21394 @DomName('TreeWalker.nextNode')
19728 Node nextNode() native; 21395 Node nextNode() native;
19729 21396
19730 @DocsEditable @DomName('TreeWalker.nextSibling') 21397 @DocsEditable
21398 @DomName('TreeWalker.nextSibling')
19731 Node nextSibling() native; 21399 Node nextSibling() native;
19732 21400
19733 @DocsEditable @DomName('TreeWalker.parentNode') 21401 @DocsEditable
21402 @DomName('TreeWalker.parentNode')
19734 Node parentNode() native; 21403 Node parentNode() native;
19735 21404
19736 @DocsEditable @DomName('TreeWalker.previousNode') 21405 @DocsEditable
21406 @DomName('TreeWalker.previousNode')
19737 Node previousNode() native; 21407 Node previousNode() native;
19738 21408
19739 @DocsEditable @DomName('TreeWalker.previousSibling') 21409 @DocsEditable
21410 @DomName('TreeWalker.previousSibling')
19740 Node previousSibling() native; 21411 Node previousSibling() native;
19741 } 21412 }
19742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21413 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19743 // for details. All rights reserved. Use of this source code is governed by a 21414 // for details. All rights reserved. Use of this source code is governed by a
19744 // BSD-style license that can be found in the LICENSE file. 21415 // BSD-style license that can be found in the LICENSE file.
19745 21416
19746 // WARNING: Do not edit - generated code. 21417 // WARNING: Do not edit - generated code.
19747 21418
19748 21419
19749 @DocsEditable 21420 @DocsEditable
19750 @DomName('UIEvent') 21421 @DomName('UIEvent')
19751 class UIEvent extends Event native "*UIEvent" { 21422 class UIEvent extends Event native "*UIEvent" {
19752 // In JS, canBubble and cancelable are technically required parameters to 21423 // In JS, canBubble and cancelable are technically required parameters to
19753 // init*Event. In practice, though, if they aren't provided they simply 21424 // init*Event. In practice, though, if they aren't provided they simply
19754 // default to false (since that's Boolean(undefined)). 21425 // default to false (since that's Boolean(undefined)).
19755 // 21426 //
19756 // Contrary to JS, we default canBubble and cancelable to true, since that's 21427 // Contrary to JS, we default canBubble and cancelable to true, since that's
19757 // what people want most of the time anyway. 21428 // what people want most of the time anyway.
19758 factory UIEvent(String type, Window view, int detail, 21429 factory UIEvent(String type, Window view, int detail,
19759 [bool canBubble = true, bool cancelable = true]) { 21430 [bool canBubble = true, bool cancelable = true]) {
19760 final e = document.$dom_createEvent("UIEvent"); 21431 final e = document.$dom_createEvent("UIEvent");
19761 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail); 21432 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail);
19762 return e; 21433 return e;
19763 } 21434 }
19764 21435
19765 @JSName('charCode') 21436 @JSName('charCode')
19766 @DocsEditable @DomName('UIEvent.charCode') 21437 @DocsEditable
21438 @DomName('UIEvent.charCode')
19767 final int $dom_charCode; 21439 final int $dom_charCode;
19768 21440
19769 @DocsEditable @DomName('UIEvent.detail') 21441 @DocsEditable
21442 @DomName('UIEvent.detail')
19770 final int detail; 21443 final int detail;
19771 21444
19772 @JSName('keyCode') 21445 @JSName('keyCode')
19773 @DocsEditable @DomName('UIEvent.keyCode') 21446 @DocsEditable
21447 @DomName('UIEvent.keyCode')
19774 final int $dom_keyCode; 21448 final int $dom_keyCode;
19775 21449
19776 @DocsEditable @DomName('UIEvent.layerX') 21450 @DocsEditable
21451 @DomName('UIEvent.layerX')
19777 final int layerX; 21452 final int layerX;
19778 21453
19779 @DocsEditable @DomName('UIEvent.layerY') 21454 @DocsEditable
21455 @DomName('UIEvent.layerY')
19780 final int layerY; 21456 final int layerY;
19781 21457
19782 @DocsEditable @DomName('UIEvent.pageX') 21458 @DocsEditable
21459 @DomName('UIEvent.pageX')
19783 final int pageX; 21460 final int pageX;
19784 21461
19785 @DocsEditable @DomName('UIEvent.pageY') 21462 @DocsEditable
21463 @DomName('UIEvent.pageY')
19786 final int pageY; 21464 final int pageY;
19787 21465
19788 WindowBase get view => _convertNativeToDart_Window(this._view); 21466 WindowBase get view => _convertNativeToDart_Window(this._view);
19789 @JSName('view') 21467 @JSName('view')
19790 @DocsEditable @DomName('UIEvent.view') @Creates('Window|=Object') @Returns('Wi ndow|=Object') 21468 @DocsEditable
21469 @DomName('UIEvent.view')
21470 @Creates('Window|=Object')
21471 @Returns('Window|=Object')
19791 final dynamic _view; 21472 final dynamic _view;
19792 21473
19793 @DocsEditable @DomName('UIEvent.which') 21474 @DocsEditable
21475 @DomName('UIEvent.which')
19794 final int which; 21476 final int which;
19795 21477
19796 @JSName('initUIEvent') 21478 @JSName('initUIEvent')
19797 @DocsEditable @DomName('UIEvent.initUIEvent') 21479 @DocsEditable
21480 @DomName('UIEvent.initUIEvent')
19798 void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window vie w, int detail) native; 21481 void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window vie w, int detail) native;
19799 21482
19800 } 21483 }
19801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19802 // for details. All rights reserved. Use of this source code is governed by a 21485 // for details. All rights reserved. Use of this source code is governed by a
19803 // BSD-style license that can be found in the LICENSE file. 21486 // BSD-style license that can be found in the LICENSE file.
19804 21487
19805 21488
19806 21489
19807 @DocsEditable 21490 @DocsEditable
(...skipping 17 matching lines...) Expand all
19825 _TypedArrayFactoryProvider.createUint16Array(length); 21508 _TypedArrayFactoryProvider.createUint16Array(length);
19826 21509
19827 factory Uint16Array.fromList(List<int> list) => 21510 factory Uint16Array.fromList(List<int> list) =>
19828 _TypedArrayFactoryProvider.createUint16Array_fromList(list); 21511 _TypedArrayFactoryProvider.createUint16Array_fromList(list);
19829 21512
19830 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 21513 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
19831 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length); 21514 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
19832 21515
19833 static const int BYTES_PER_ELEMENT = 2; 21516 static const int BYTES_PER_ELEMENT = 2;
19834 21517
19835 @DocsEditable @DomName('Uint16Array.length') 21518 @DocsEditable
21519 @DomName('Uint16Array.length')
19836 int get length => JS("int", "#.length", this); 21520 int get length => JS("int", "#.length", this);
19837 21521
19838 int operator[](int index) => JS("int", "#[#]", this, index); 21522 int operator[](int index) => JS("int", "#[#]", this, index);
19839 21523
19840 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 21524 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
19841 // int is the element type. 21525 // int is the element type.
19842 21526
19843 // From Iterable<int>: 21527 // From Iterable<int>:
19844 21528
19845 Iterator<int> get iterator { 21529 Iterator<int> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
19974 void insertRange(int start, int rangeLength, [int initialValue]) { 21658 void insertRange(int start, int rangeLength, [int initialValue]) {
19975 throw new UnsupportedError("Cannot insertRange on immutable List."); 21659 throw new UnsupportedError("Cannot insertRange on immutable List.");
19976 } 21660 }
19977 21661
19978 List<int> getRange(int start, int rangeLength) => 21662 List<int> getRange(int start, int rangeLength) =>
19979 Lists.getRange(this, start, rangeLength, <int>[]); 21663 Lists.getRange(this, start, rangeLength, <int>[]);
19980 21664
19981 // -- end List<int> mixins. 21665 // -- end List<int> mixins.
19982 21666
19983 @JSName('set') 21667 @JSName('set')
19984 @DocsEditable @DomName('Uint16Array.set') 21668 @DocsEditable
21669 @DomName('Uint16Array.set')
19985 void setElements(Object array, [int offset]) native; 21670 void setElements(Object array, [int offset]) native;
19986 21671
19987 @DocsEditable @DomName('Uint16Array.subarray') 21672 @DocsEditable
21673 @DomName('Uint16Array.subarray')
19988 Uint16Array subarray(int start, [int end]) native; 21674 Uint16Array subarray(int start, [int end]) native;
19989 } 21675 }
19990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19991 // for details. All rights reserved. Use of this source code is governed by a 21677 // for details. All rights reserved. Use of this source code is governed by a
19992 // BSD-style license that can be found in the LICENSE file. 21678 // BSD-style license that can be found in the LICENSE file.
19993 21679
19994 21680
19995 21681
19996 @DocsEditable 21682 @DocsEditable
19997 @DomName('Uint32Array') 21683 @DomName('Uint32Array')
19998 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" { 21684 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" {
19999 21685
20000 factory Uint32Array(int length) => 21686 factory Uint32Array(int length) =>
20001 _TypedArrayFactoryProvider.createUint32Array(length); 21687 _TypedArrayFactoryProvider.createUint32Array(length);
20002 21688
20003 factory Uint32Array.fromList(List<int> list) => 21689 factory Uint32Array.fromList(List<int> list) =>
20004 _TypedArrayFactoryProvider.createUint32Array_fromList(list); 21690 _TypedArrayFactoryProvider.createUint32Array_fromList(list);
20005 21691
20006 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 21692 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
20007 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length); 21693 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
20008 21694
20009 static const int BYTES_PER_ELEMENT = 4; 21695 static const int BYTES_PER_ELEMENT = 4;
20010 21696
20011 @DocsEditable @DomName('Uint32Array.length') 21697 @DocsEditable
21698 @DomName('Uint32Array.length')
20012 int get length => JS("int", "#.length", this); 21699 int get length => JS("int", "#.length", this);
20013 21700
20014 int operator[](int index) => JS("int", "#[#]", this, index); 21701 int operator[](int index) => JS("int", "#[#]", this, index);
20015 21702
20016 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 21703 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
20017 // int is the element type. 21704 // int is the element type.
20018 21705
20019 // From Iterable<int>: 21706 // From Iterable<int>:
20020 21707
20021 Iterator<int> get iterator { 21708 Iterator<int> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
20150 void insertRange(int start, int rangeLength, [int initialValue]) { 21837 void insertRange(int start, int rangeLength, [int initialValue]) {
20151 throw new UnsupportedError("Cannot insertRange on immutable List."); 21838 throw new UnsupportedError("Cannot insertRange on immutable List.");
20152 } 21839 }
20153 21840
20154 List<int> getRange(int start, int rangeLength) => 21841 List<int> getRange(int start, int rangeLength) =>
20155 Lists.getRange(this, start, rangeLength, <int>[]); 21842 Lists.getRange(this, start, rangeLength, <int>[]);
20156 21843
20157 // -- end List<int> mixins. 21844 // -- end List<int> mixins.
20158 21845
20159 @JSName('set') 21846 @JSName('set')
20160 @DocsEditable @DomName('Uint32Array.set') 21847 @DocsEditable
21848 @DomName('Uint32Array.set')
20161 void setElements(Object array, [int offset]) native; 21849 void setElements(Object array, [int offset]) native;
20162 21850
20163 @DocsEditable @DomName('Uint32Array.subarray') 21851 @DocsEditable
21852 @DomName('Uint32Array.subarray')
20164 Uint32Array subarray(int start, [int end]) native; 21853 Uint32Array subarray(int start, [int end]) native;
20165 } 21854 }
20166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20167 // for details. All rights reserved. Use of this source code is governed by a 21856 // for details. All rights reserved. Use of this source code is governed by a
20168 // BSD-style license that can be found in the LICENSE file. 21857 // BSD-style license that can be found in the LICENSE file.
20169 21858
20170 21859
20171 21860
20172 @DocsEditable 21861 @DocsEditable
20173 @DomName('Uint8Array') 21862 @DomName('Uint8Array')
20174 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" { 21863 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" {
20175 21864
20176 factory Uint8Array(int length) => 21865 factory Uint8Array(int length) =>
20177 _TypedArrayFactoryProvider.createUint8Array(length); 21866 _TypedArrayFactoryProvider.createUint8Array(length);
20178 21867
20179 factory Uint8Array.fromList(List<int> list) => 21868 factory Uint8Array.fromList(List<int> list) =>
20180 _TypedArrayFactoryProvider.createUint8Array_fromList(list); 21869 _TypedArrayFactoryProvider.createUint8Array_fromList(list);
20181 21870
20182 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 21871 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
20183 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength); 21872 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength);
20184 21873
20185 static const int BYTES_PER_ELEMENT = 1; 21874 static const int BYTES_PER_ELEMENT = 1;
20186 21875
20187 @DocsEditable @DomName('Uint8Array.length') 21876 @DocsEditable
21877 @DomName('Uint8Array.length')
20188 int get length => JS("int", "#.length", this); 21878 int get length => JS("int", "#.length", this);
20189 21879
20190 int operator[](int index) => JS("int", "#[#]", this, index); 21880 int operator[](int index) => JS("int", "#[#]", this, index);
20191 21881
20192 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 21882 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
20193 // int is the element type. 21883 // int is the element type.
20194 21884
20195 // From Iterable<int>: 21885 // From Iterable<int>:
20196 21886
20197 Iterator<int> get iterator { 21887 Iterator<int> get iterator {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
20326 void insertRange(int start, int rangeLength, [int initialValue]) { 22016 void insertRange(int start, int rangeLength, [int initialValue]) {
20327 throw new UnsupportedError("Cannot insertRange on immutable List."); 22017 throw new UnsupportedError("Cannot insertRange on immutable List.");
20328 } 22018 }
20329 22019
20330 List<int> getRange(int start, int rangeLength) => 22020 List<int> getRange(int start, int rangeLength) =>
20331 Lists.getRange(this, start, rangeLength, <int>[]); 22021 Lists.getRange(this, start, rangeLength, <int>[]);
20332 22022
20333 // -- end List<int> mixins. 22023 // -- end List<int> mixins.
20334 22024
20335 @JSName('set') 22025 @JSName('set')
20336 @DocsEditable @DomName('Uint8Array.set') 22026 @DocsEditable
22027 @DomName('Uint8Array.set')
20337 void setElements(Object array, [int offset]) native; 22028 void setElements(Object array, [int offset]) native;
20338 22029
20339 @DocsEditable @DomName('Uint8Array.subarray') 22030 @DocsEditable
22031 @DomName('Uint8Array.subarray')
20340 Uint8Array subarray(int start, [int end]) native; 22032 Uint8Array subarray(int start, [int end]) native;
20341 } 22033 }
20342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20343 // for details. All rights reserved. Use of this source code is governed by a 22035 // for details. All rights reserved. Use of this source code is governed by a
20344 // BSD-style license that can be found in the LICENSE file. 22036 // BSD-style license that can be found in the LICENSE file.
20345 22037
20346 22038
20347 22039
20348 @DocsEditable 22040 @DocsEditable
20349 @DomName('Uint8ClampedArray') 22041 @DomName('Uint8ClampedArray')
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
20500 void insertRange(int start, int rangeLength, [int initialValue]) { 22192 void insertRange(int start, int rangeLength, [int initialValue]) {
20501 throw new UnsupportedError("Cannot insertRange on immutable List."); 22193 throw new UnsupportedError("Cannot insertRange on immutable List.");
20502 } 22194 }
20503 22195
20504 List<int> getRange(int start, int rangeLength) => 22196 List<int> getRange(int start, int rangeLength) =>
20505 Lists.getRange(this, start, rangeLength, <int>[]); 22197 Lists.getRange(this, start, rangeLength, <int>[]);
20506 22198
20507 // -- end List<int> mixins. 22199 // -- end List<int> mixins.
20508 22200
20509 @JSName('set') 22201 @JSName('set')
20510 @DocsEditable @DomName('Uint8ClampedArray.set') 22202 @DocsEditable
22203 @DomName('Uint8ClampedArray.set')
20511 void setElements(Object array, [int offset]) native; 22204 void setElements(Object array, [int offset]) native;
20512 22205
20513 @DocsEditable @DomName('Uint8ClampedArray.subarray') 22206 @DocsEditable
22207 @DomName('Uint8ClampedArray.subarray')
20514 Uint8ClampedArray subarray(int start, [int end]) native; 22208 Uint8ClampedArray subarray(int start, [int end]) native;
20515 } 22209 }
20516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20517 // for details. All rights reserved. Use of this source code is governed by a 22211 // for details. All rights reserved. Use of this source code is governed by a
20518 // BSD-style license that can be found in the LICENSE file. 22212 // BSD-style license that can be found in the LICENSE file.
20519 22213
20520 22214
20521 22215
20522 @DocsEditable 22216 @DocsEditable
20523 @DomName('HTMLUnknownElement') 22217 @DomName('HTMLUnknownElement')
(...skipping 21 matching lines...) Expand all
20545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20546 // for details. All rights reserved. Use of this source code is governed by a 22240 // for details. All rights reserved. Use of this source code is governed by a
20547 // BSD-style license that can be found in the LICENSE file. 22241 // BSD-style license that can be found in the LICENSE file.
20548 22242
20549 22243
20550 22244
20551 @DocsEditable 22245 @DocsEditable
20552 @DomName('ValidityState') 22246 @DomName('ValidityState')
20553 class ValidityState native "*ValidityState" { 22247 class ValidityState native "*ValidityState" {
20554 22248
20555 @DocsEditable @DomName('ValidityState.badInput') 22249 @DocsEditable
22250 @DomName('ValidityState.badInput')
20556 final bool badInput; 22251 final bool badInput;
20557 22252
20558 @DocsEditable @DomName('ValidityState.customError') 22253 @DocsEditable
22254 @DomName('ValidityState.customError')
20559 final bool customError; 22255 final bool customError;
20560 22256
20561 @DocsEditable @DomName('ValidityState.patternMismatch') 22257 @DocsEditable
22258 @DomName('ValidityState.patternMismatch')
20562 final bool patternMismatch; 22259 final bool patternMismatch;
20563 22260
20564 @DocsEditable @DomName('ValidityState.rangeOverflow') 22261 @DocsEditable
22262 @DomName('ValidityState.rangeOverflow')
20565 final bool rangeOverflow; 22263 final bool rangeOverflow;
20566 22264
20567 @DocsEditable @DomName('ValidityState.rangeUnderflow') 22265 @DocsEditable
22266 @DomName('ValidityState.rangeUnderflow')
20568 final bool rangeUnderflow; 22267 final bool rangeUnderflow;
20569 22268
20570 @DocsEditable @DomName('ValidityState.stepMismatch') 22269 @DocsEditable
22270 @DomName('ValidityState.stepMismatch')
20571 final bool stepMismatch; 22271 final bool stepMismatch;
20572 22272
20573 @DocsEditable @DomName('ValidityState.tooLong') 22273 @DocsEditable
22274 @DomName('ValidityState.tooLong')
20574 final bool tooLong; 22275 final bool tooLong;
20575 22276
20576 @DocsEditable @DomName('ValidityState.typeMismatch') 22277 @DocsEditable
22278 @DomName('ValidityState.typeMismatch')
20577 final bool typeMismatch; 22279 final bool typeMismatch;
20578 22280
20579 @DocsEditable @DomName('ValidityState.valid') 22281 @DocsEditable
22282 @DomName('ValidityState.valid')
20580 final bool valid; 22283 final bool valid;
20581 22284
20582 @DocsEditable @DomName('ValidityState.valueMissing') 22285 @DocsEditable
22286 @DomName('ValidityState.valueMissing')
20583 final bool valueMissing; 22287 final bool valueMissing;
20584 } 22288 }
20585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20586 // for details. All rights reserved. Use of this source code is governed by a 22290 // for details. All rights reserved. Use of this source code is governed by a
20587 // BSD-style license that can be found in the LICENSE file. 22291 // BSD-style license that can be found in the LICENSE file.
20588 22292
20589 22293
20590 22294
20591 @DocsEditable 22295 @DocsEditable
20592 @DomName('HTMLVideoElement') 22296 @DomName('HTMLVideoElement')
20593 class VideoElement extends MediaElement native "*HTMLVideoElement" { 22297 class VideoElement extends MediaElement native "*HTMLVideoElement" {
20594 22298
20595 @DocsEditable 22299 @DocsEditable
20596 factory VideoElement() => document.$dom_createElement("video"); 22300 factory VideoElement() => document.$dom_createElement("video");
20597 22301
20598 @DocsEditable @DomName('HTMLVideoElement.height') 22302 @DocsEditable
22303 @DomName('HTMLVideoElement.height')
20599 int height; 22304 int height;
20600 22305
20601 @DocsEditable @DomName('HTMLVideoElement.poster') 22306 @DocsEditable
22307 @DomName('HTMLVideoElement.poster')
20602 String poster; 22308 String poster;
20603 22309
20604 @DocsEditable @DomName('HTMLVideoElement.videoHeight') 22310 @DocsEditable
22311 @DomName('HTMLVideoElement.videoHeight')
20605 final int videoHeight; 22312 final int videoHeight;
20606 22313
20607 @DocsEditable @DomName('HTMLVideoElement.videoWidth') 22314 @DocsEditable
22315 @DomName('HTMLVideoElement.videoWidth')
20608 final int videoWidth; 22316 final int videoWidth;
20609 22317
20610 @DocsEditable @DomName('HTMLVideoElement.webkitDecodedFrameCount') 22318 @DocsEditable
22319 @DomName('HTMLVideoElement.webkitDecodedFrameCount')
20611 final int webkitDecodedFrameCount; 22320 final int webkitDecodedFrameCount;
20612 22321
20613 @DocsEditable @DomName('HTMLVideoElement.webkitDisplayingFullscreen') 22322 @DocsEditable
22323 @DomName('HTMLVideoElement.webkitDisplayingFullscreen')
20614 final bool webkitDisplayingFullscreen; 22324 final bool webkitDisplayingFullscreen;
20615 22325
20616 @DocsEditable @DomName('HTMLVideoElement.webkitDroppedFrameCount') 22326 @DocsEditable
22327 @DomName('HTMLVideoElement.webkitDroppedFrameCount')
20617 final int webkitDroppedFrameCount; 22328 final int webkitDroppedFrameCount;
20618 22329
20619 @DocsEditable @DomName('HTMLVideoElement.webkitSupportsFullscreen') 22330 @DocsEditable
22331 @DomName('HTMLVideoElement.webkitSupportsFullscreen')
20620 final bool webkitSupportsFullscreen; 22332 final bool webkitSupportsFullscreen;
20621 22333
20622 @DocsEditable @DomName('HTMLVideoElement.width') 22334 @DocsEditable
22335 @DomName('HTMLVideoElement.width')
20623 int width; 22336 int width;
20624 22337
20625 @DocsEditable @DomName('HTMLVideoElement.webkitEnterFullScreen') 22338 @DocsEditable
22339 @DomName('HTMLVideoElement.webkitEnterFullScreen')
20626 void webkitEnterFullScreen() native; 22340 void webkitEnterFullScreen() native;
20627 22341
20628 @DocsEditable @DomName('HTMLVideoElement.webkitEnterFullscreen') 22342 @DocsEditable
22343 @DomName('HTMLVideoElement.webkitEnterFullscreen')
20629 void webkitEnterFullscreen() native; 22344 void webkitEnterFullscreen() native;
20630 22345
20631 @DocsEditable @DomName('HTMLVideoElement.webkitExitFullScreen') 22346 @DocsEditable
22347 @DomName('HTMLVideoElement.webkitExitFullScreen')
20632 void webkitExitFullScreen() native; 22348 void webkitExitFullScreen() native;
20633 22349
20634 @DocsEditable @DomName('HTMLVideoElement.webkitExitFullscreen') 22350 @DocsEditable
22351 @DomName('HTMLVideoElement.webkitExitFullscreen')
20635 void webkitExitFullscreen() native; 22352 void webkitExitFullscreen() native;
20636 } 22353 }
20637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20638 // for details. All rights reserved. Use of this source code is governed by a 22355 // for details. All rights reserved. Use of this source code is governed by a
20639 // BSD-style license that can be found in the LICENSE file. 22356 // BSD-style license that can be found in the LICENSE file.
20640 22357
20641 // WARNING: Do not edit - generated code. 22358 // WARNING: Do not edit - generated code.
20642 22359
20643 22360
20644 typedef void VoidCallback(); 22361 typedef void VoidCallback();
20645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20646 // for details. All rights reserved. Use of this source code is governed by a 22363 // for details. All rights reserved. Use of this source code is governed by a
20647 // BSD-style license that can be found in the LICENSE file. 22364 // BSD-style license that can be found in the LICENSE file.
20648 22365
20649 22366
20650 22367
20651 @DocsEditable 22368 @DocsEditable
20652 @DomName('WebGLActiveInfo') 22369 @DomName('WebGLActiveInfo')
20653 class WebGLActiveInfo native "*WebGLActiveInfo" { 22370 class WebGLActiveInfo native "*WebGLActiveInfo" {
20654 22371
20655 @DocsEditable @DomName('WebGLActiveInfo.name') 22372 @DocsEditable
22373 @DomName('WebGLActiveInfo.name')
20656 final String name; 22374 final String name;
20657 22375
20658 @DocsEditable @DomName('WebGLActiveInfo.size') 22376 @DocsEditable
22377 @DomName('WebGLActiveInfo.size')
20659 final int size; 22378 final int size;
20660 22379
20661 @DocsEditable @DomName('WebGLActiveInfo.type') 22380 @DocsEditable
22381 @DomName('WebGLActiveInfo.type')
20662 final int type; 22382 final int type;
20663 } 22383 }
20664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20665 // for details. All rights reserved. Use of this source code is governed by a 22385 // for details. All rights reserved. Use of this source code is governed by a
20666 // BSD-style license that can be found in the LICENSE file. 22386 // BSD-style license that can be found in the LICENSE file.
20667 22387
20668 22388
20669 22389
20670 @DocsEditable 22390 @DocsEditable
20671 @DomName('WebGLBuffer') 22391 @DomName('WebGLBuffer')
(...skipping 20 matching lines...) Expand all
20692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22412 // 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 22413 // 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. 22414 // BSD-style license that can be found in the LICENSE file.
20695 22415
20696 22416
20697 22417
20698 @DocsEditable 22418 @DocsEditable
20699 @DomName('WebGLContextAttributes') 22419 @DomName('WebGLContextAttributes')
20700 class WebGLContextAttributes native "*WebGLContextAttributes" { 22420 class WebGLContextAttributes native "*WebGLContextAttributes" {
20701 22421
20702 @DocsEditable @DomName('WebGLContextAttributes.alpha') 22422 @DocsEditable
22423 @DomName('WebGLContextAttributes.alpha')
20703 bool alpha; 22424 bool alpha;
20704 22425
20705 @DocsEditable @DomName('WebGLContextAttributes.antialias') 22426 @DocsEditable
22427 @DomName('WebGLContextAttributes.antialias')
20706 bool antialias; 22428 bool antialias;
20707 22429
20708 @DocsEditable @DomName('WebGLContextAttributes.depth') 22430 @DocsEditable
22431 @DomName('WebGLContextAttributes.depth')
20709 bool depth; 22432 bool depth;
20710 22433
20711 @DocsEditable @DomName('WebGLContextAttributes.premultipliedAlpha') 22434 @DocsEditable
22435 @DomName('WebGLContextAttributes.premultipliedAlpha')
20712 bool premultipliedAlpha; 22436 bool premultipliedAlpha;
20713 22437
20714 @DocsEditable @DomName('WebGLContextAttributes.preserveDrawingBuffer') 22438 @DocsEditable
22439 @DomName('WebGLContextAttributes.preserveDrawingBuffer')
20715 bool preserveDrawingBuffer; 22440 bool preserveDrawingBuffer;
20716 22441
20717 @DocsEditable @DomName('WebGLContextAttributes.stencil') 22442 @DocsEditable
22443 @DomName('WebGLContextAttributes.stencil')
20718 bool stencil; 22444 bool stencil;
20719 } 22445 }
20720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20721 // for details. All rights reserved. Use of this source code is governed by a 22447 // for details. All rights reserved. Use of this source code is governed by a
20722 // BSD-style license that can be found in the LICENSE file. 22448 // BSD-style license that can be found in the LICENSE file.
20723 22449
20724 22450
20725 22451
20726 @DocsEditable 22452 @DocsEditable
20727 @DomName('WebGLContextEvent') 22453 @DomName('WebGLContextEvent')
20728 class WebGLContextEvent extends Event native "*WebGLContextEvent" { 22454 class WebGLContextEvent extends Event native "*WebGLContextEvent" {
20729 22455
20730 @DocsEditable @DomName('WebGLContextEvent.statusMessage') 22456 @DocsEditable
22457 @DomName('WebGLContextEvent.statusMessage')
20731 final String statusMessage; 22458 final String statusMessage;
20732 } 22459 }
20733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20734 // for details. All rights reserved. Use of this source code is governed by a 22461 // for details. All rights reserved. Use of this source code is governed by a
20735 // BSD-style license that can be found in the LICENSE file. 22462 // BSD-style license that can be found in the LICENSE file.
20736 22463
20737 22464
20738 22465
20739 @DocsEditable 22466 @DocsEditable
20740 @DomName('WebGLDebugRendererInfo') 22467 @DomName('WebGLDebugRendererInfo')
20741 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { 22468 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" {
20742 22469
20743 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 22470 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
20744 22471
20745 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 22472 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
20746 } 22473 }
20747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20748 // for details. All rights reserved. Use of this source code is governed by a 22475 // for details. All rights reserved. Use of this source code is governed by a
20749 // BSD-style license that can be found in the LICENSE file. 22476 // BSD-style license that can be found in the LICENSE file.
20750 22477
20751 22478
20752 22479
20753 @DocsEditable 22480 @DocsEditable
20754 @DomName('WebGLDebugShaders') 22481 @DomName('WebGLDebugShaders')
20755 class WebGLDebugShaders native "*WebGLDebugShaders" { 22482 class WebGLDebugShaders native "*WebGLDebugShaders" {
20756 22483
20757 @DocsEditable @DomName('WebGLDebugShaders.getTranslatedShaderSource') 22484 @DocsEditable
22485 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
20758 String getTranslatedShaderSource(WebGLShader shader) native; 22486 String getTranslatedShaderSource(WebGLShader shader) native;
20759 } 22487 }
20760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20761 // for details. All rights reserved. Use of this source code is governed by a 22489 // for details. All rights reserved. Use of this source code is governed by a
20762 // BSD-style license that can be found in the LICENSE file. 22490 // BSD-style license that can be found in the LICENSE file.
20763 22491
20764 22492
20765 22493
20766 @DocsEditable 22494 @DocsEditable
20767 @DomName('WebGLDepthTexture') 22495 @DomName('WebGLDepthTexture')
(...skipping 14 matching lines...) Expand all
20782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20783 // for details. All rights reserved. Use of this source code is governed by a 22511 // for details. All rights reserved. Use of this source code is governed by a
20784 // BSD-style license that can be found in the LICENSE file. 22512 // BSD-style license that can be found in the LICENSE file.
20785 22513
20786 22514
20787 22515
20788 @DocsEditable 22516 @DocsEditable
20789 @DomName('WebGLLoseContext') 22517 @DomName('WebGLLoseContext')
20790 class WebGLLoseContext native "*WebGLLoseContext" { 22518 class WebGLLoseContext native "*WebGLLoseContext" {
20791 22519
20792 @DocsEditable @DomName('WebGLLoseContext.loseContext') 22520 @DocsEditable
22521 @DomName('WebGLLoseContext.loseContext')
20793 void loseContext() native; 22522 void loseContext() native;
20794 22523
20795 @DocsEditable @DomName('WebGLLoseContext.restoreContext') 22524 @DocsEditable
22525 @DomName('WebGLLoseContext.restoreContext')
20796 void restoreContext() native; 22526 void restoreContext() native;
20797 } 22527 }
20798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20799 // for details. All rights reserved. Use of this source code is governed by a 22529 // for details. All rights reserved. Use of this source code is governed by a
20800 // BSD-style license that can be found in the LICENSE file. 22530 // BSD-style license that can be found in the LICENSE file.
20801 22531
20802 22532
20803 22533
20804 @DocsEditable 22534 @DocsEditable
20805 @DomName('WebGLProgram') 22535 @DomName('WebGLProgram')
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
21408 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; 23138 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
21409 23139
21410 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; 23140 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
21411 23141
21412 static const int VERTEX_SHADER = 0x8B31; 23142 static const int VERTEX_SHADER = 0x8B31;
21413 23143
21414 static const int VIEWPORT = 0x0BA2; 23144 static const int VIEWPORT = 0x0BA2;
21415 23145
21416 static const int ZERO = 0; 23146 static const int ZERO = 0;
21417 23147
21418 @DocsEditable @DomName('WebGLRenderingContext.drawingBufferHeight') 23148 @DocsEditable
23149 @DomName('WebGLRenderingContext.drawingBufferHeight')
21419 final int drawingBufferHeight; 23150 final int drawingBufferHeight;
21420 23151
21421 @DocsEditable @DomName('WebGLRenderingContext.drawingBufferWidth') 23152 @DocsEditable
23153 @DomName('WebGLRenderingContext.drawingBufferWidth')
21422 final int drawingBufferWidth; 23154 final int drawingBufferWidth;
21423 23155
21424 @DocsEditable @DomName('WebGLRenderingContext.activeTexture') 23156 @DocsEditable
23157 @DomName('WebGLRenderingContext.activeTexture')
21425 void activeTexture(int texture) native; 23158 void activeTexture(int texture) native;
21426 23159
21427 @DocsEditable @DomName('WebGLRenderingContext.attachShader') 23160 @DocsEditable
23161 @DomName('WebGLRenderingContext.attachShader')
21428 void attachShader(WebGLProgram program, WebGLShader shader) native; 23162 void attachShader(WebGLProgram program, WebGLShader shader) native;
21429 23163
21430 @DocsEditable @DomName('WebGLRenderingContext.bindAttribLocation') 23164 @DocsEditable
23165 @DomName('WebGLRenderingContext.bindAttribLocation')
21431 void bindAttribLocation(WebGLProgram program, int index, String name) native; 23166 void bindAttribLocation(WebGLProgram program, int index, String name) native;
21432 23167
21433 @DocsEditable @DomName('WebGLRenderingContext.bindBuffer') 23168 @DocsEditable
23169 @DomName('WebGLRenderingContext.bindBuffer')
21434 void bindBuffer(int target, WebGLBuffer buffer) native; 23170 void bindBuffer(int target, WebGLBuffer buffer) native;
21435 23171
21436 @DocsEditable @DomName('WebGLRenderingContext.bindFramebuffer') 23172 @DocsEditable
23173 @DomName('WebGLRenderingContext.bindFramebuffer')
21437 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; 23174 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native;
21438 23175
21439 @DocsEditable @DomName('WebGLRenderingContext.bindRenderbuffer') 23176 @DocsEditable
23177 @DomName('WebGLRenderingContext.bindRenderbuffer')
21440 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; 23178 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native;
21441 23179
21442 @DocsEditable @DomName('WebGLRenderingContext.bindTexture') 23180 @DocsEditable
23181 @DomName('WebGLRenderingContext.bindTexture')
21443 void bindTexture(int target, WebGLTexture texture) native; 23182 void bindTexture(int target, WebGLTexture texture) native;
21444 23183
21445 @DocsEditable @DomName('WebGLRenderingContext.blendColor') 23184 @DocsEditable
23185 @DomName('WebGLRenderingContext.blendColor')
21446 void blendColor(num red, num green, num blue, num alpha) native; 23186 void blendColor(num red, num green, num blue, num alpha) native;
21447 23187
21448 @DocsEditable @DomName('WebGLRenderingContext.blendEquation') 23188 @DocsEditable
23189 @DomName('WebGLRenderingContext.blendEquation')
21449 void blendEquation(int mode) native; 23190 void blendEquation(int mode) native;
21450 23191
21451 @DocsEditable @DomName('WebGLRenderingContext.blendEquationSeparate') 23192 @DocsEditable
23193 @DomName('WebGLRenderingContext.blendEquationSeparate')
21452 void blendEquationSeparate(int modeRGB, int modeAlpha) native; 23194 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
21453 23195
21454 @DocsEditable @DomName('WebGLRenderingContext.blendFunc') 23196 @DocsEditable
23197 @DomName('WebGLRenderingContext.blendFunc')
21455 void blendFunc(int sfactor, int dfactor) native; 23198 void blendFunc(int sfactor, int dfactor) native;
21456 23199
21457 @DocsEditable @DomName('WebGLRenderingContext.blendFuncSeparate') 23200 @DocsEditable
23201 @DomName('WebGLRenderingContext.blendFuncSeparate')
21458 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 23202 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
21459 23203
21460 @DocsEditable @DomName('WebGLRenderingContext.bufferData') 23204 @DocsEditable
23205 @DomName('WebGLRenderingContext.bufferData')
21461 void bufferData(int target, data_OR_size, int usage) native; 23206 void bufferData(int target, data_OR_size, int usage) native;
21462 23207
21463 @DocsEditable @DomName('WebGLRenderingContext.bufferSubData') 23208 @DocsEditable
23209 @DomName('WebGLRenderingContext.bufferSubData')
21464 void bufferSubData(int target, int offset, data) native; 23210 void bufferSubData(int target, int offset, data) native;
21465 23211
21466 @DocsEditable @DomName('WebGLRenderingContext.checkFramebufferStatus') 23212 @DocsEditable
23213 @DomName('WebGLRenderingContext.checkFramebufferStatus')
21467 int checkFramebufferStatus(int target) native; 23214 int checkFramebufferStatus(int target) native;
21468 23215
21469 @DocsEditable @DomName('WebGLRenderingContext.clear') 23216 @DocsEditable
23217 @DomName('WebGLRenderingContext.clear')
21470 void clear(int mask) native; 23218 void clear(int mask) native;
21471 23219
21472 @DocsEditable @DomName('WebGLRenderingContext.clearColor') 23220 @DocsEditable
23221 @DomName('WebGLRenderingContext.clearColor')
21473 void clearColor(num red, num green, num blue, num alpha) native; 23222 void clearColor(num red, num green, num blue, num alpha) native;
21474 23223
21475 @DocsEditable @DomName('WebGLRenderingContext.clearDepth') 23224 @DocsEditable
23225 @DomName('WebGLRenderingContext.clearDepth')
21476 void clearDepth(num depth) native; 23226 void clearDepth(num depth) native;
21477 23227
21478 @DocsEditable @DomName('WebGLRenderingContext.clearStencil') 23228 @DocsEditable
23229 @DomName('WebGLRenderingContext.clearStencil')
21479 void clearStencil(int s) native; 23230 void clearStencil(int s) native;
21480 23231
21481 @DocsEditable @DomName('WebGLRenderingContext.colorMask') 23232 @DocsEditable
23233 @DomName('WebGLRenderingContext.colorMask')
21482 void colorMask(bool red, bool green, bool blue, bool alpha) native; 23234 void colorMask(bool red, bool green, bool blue, bool alpha) native;
21483 23235
21484 @DocsEditable @DomName('WebGLRenderingContext.compileShader') 23236 @DocsEditable
23237 @DomName('WebGLRenderingContext.compileShader')
21485 void compileShader(WebGLShader shader) native; 23238 void compileShader(WebGLShader shader) native;
21486 23239
21487 @DocsEditable @DomName('WebGLRenderingContext.compressedTexImage2D') 23240 @DocsEditable
23241 @DomName('WebGLRenderingContext.compressedTexImage2D')
21488 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) native; 23242 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) native;
21489 23243
21490 @DocsEditable @DomName('WebGLRenderingContext.compressedTexSubImage2D') 23244 @DocsEditable
23245 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
21491 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native; 23246 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native;
21492 23247
21493 @DocsEditable @DomName('WebGLRenderingContext.copyTexImage2D') 23248 @DocsEditable
23249 @DomName('WebGLRenderingContext.copyTexImage2D')
21494 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native; 23250 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
21495 23251
21496 @DocsEditable @DomName('WebGLRenderingContext.copyTexSubImage2D') 23252 @DocsEditable
23253 @DomName('WebGLRenderingContext.copyTexSubImage2D')
21497 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; 23254 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
21498 23255
21499 @DocsEditable @DomName('WebGLRenderingContext.createBuffer') 23256 @DocsEditable
23257 @DomName('WebGLRenderingContext.createBuffer')
21500 WebGLBuffer createBuffer() native; 23258 WebGLBuffer createBuffer() native;
21501 23259
21502 @DocsEditable @DomName('WebGLRenderingContext.createFramebuffer') 23260 @DocsEditable
23261 @DomName('WebGLRenderingContext.createFramebuffer')
21503 WebGLFramebuffer createFramebuffer() native; 23262 WebGLFramebuffer createFramebuffer() native;
21504 23263
21505 @DocsEditable @DomName('WebGLRenderingContext.createProgram') 23264 @DocsEditable
23265 @DomName('WebGLRenderingContext.createProgram')
21506 WebGLProgram createProgram() native; 23266 WebGLProgram createProgram() native;
21507 23267
21508 @DocsEditable @DomName('WebGLRenderingContext.createRenderbuffer') 23268 @DocsEditable
23269 @DomName('WebGLRenderingContext.createRenderbuffer')
21509 WebGLRenderbuffer createRenderbuffer() native; 23270 WebGLRenderbuffer createRenderbuffer() native;
21510 23271
21511 @DocsEditable @DomName('WebGLRenderingContext.createShader') 23272 @DocsEditable
23273 @DomName('WebGLRenderingContext.createShader')
21512 WebGLShader createShader(int type) native; 23274 WebGLShader createShader(int type) native;
21513 23275
21514 @DocsEditable @DomName('WebGLRenderingContext.createTexture') 23276 @DocsEditable
23277 @DomName('WebGLRenderingContext.createTexture')
21515 WebGLTexture createTexture() native; 23278 WebGLTexture createTexture() native;
21516 23279
21517 @DocsEditable @DomName('WebGLRenderingContext.cullFace') 23280 @DocsEditable
23281 @DomName('WebGLRenderingContext.cullFace')
21518 void cullFace(int mode) native; 23282 void cullFace(int mode) native;
21519 23283
21520 @DocsEditable @DomName('WebGLRenderingContext.deleteBuffer') 23284 @DocsEditable
23285 @DomName('WebGLRenderingContext.deleteBuffer')
21521 void deleteBuffer(WebGLBuffer buffer) native; 23286 void deleteBuffer(WebGLBuffer buffer) native;
21522 23287
21523 @DocsEditable @DomName('WebGLRenderingContext.deleteFramebuffer') 23288 @DocsEditable
23289 @DomName('WebGLRenderingContext.deleteFramebuffer')
21524 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; 23290 void deleteFramebuffer(WebGLFramebuffer framebuffer) native;
21525 23291
21526 @DocsEditable @DomName('WebGLRenderingContext.deleteProgram') 23292 @DocsEditable
23293 @DomName('WebGLRenderingContext.deleteProgram')
21527 void deleteProgram(WebGLProgram program) native; 23294 void deleteProgram(WebGLProgram program) native;
21528 23295
21529 @DocsEditable @DomName('WebGLRenderingContext.deleteRenderbuffer') 23296 @DocsEditable
23297 @DomName('WebGLRenderingContext.deleteRenderbuffer')
21530 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; 23298 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native;
21531 23299
21532 @DocsEditable @DomName('WebGLRenderingContext.deleteShader') 23300 @DocsEditable
23301 @DomName('WebGLRenderingContext.deleteShader')
21533 void deleteShader(WebGLShader shader) native; 23302 void deleteShader(WebGLShader shader) native;
21534 23303
21535 @DocsEditable @DomName('WebGLRenderingContext.deleteTexture') 23304 @DocsEditable
23305 @DomName('WebGLRenderingContext.deleteTexture')
21536 void deleteTexture(WebGLTexture texture) native; 23306 void deleteTexture(WebGLTexture texture) native;
21537 23307
21538 @DocsEditable @DomName('WebGLRenderingContext.depthFunc') 23308 @DocsEditable
23309 @DomName('WebGLRenderingContext.depthFunc')
21539 void depthFunc(int func) native; 23310 void depthFunc(int func) native;
21540 23311
21541 @DocsEditable @DomName('WebGLRenderingContext.depthMask') 23312 @DocsEditable
23313 @DomName('WebGLRenderingContext.depthMask')
21542 void depthMask(bool flag) native; 23314 void depthMask(bool flag) native;
21543 23315
21544 @DocsEditable @DomName('WebGLRenderingContext.depthRange') 23316 @DocsEditable
23317 @DomName('WebGLRenderingContext.depthRange')
21545 void depthRange(num zNear, num zFar) native; 23318 void depthRange(num zNear, num zFar) native;
21546 23319
21547 @DocsEditable @DomName('WebGLRenderingContext.detachShader') 23320 @DocsEditable
23321 @DomName('WebGLRenderingContext.detachShader')
21548 void detachShader(WebGLProgram program, WebGLShader shader) native; 23322 void detachShader(WebGLProgram program, WebGLShader shader) native;
21549 23323
21550 @DocsEditable @DomName('WebGLRenderingContext.disable') 23324 @DocsEditable
23325 @DomName('WebGLRenderingContext.disable')
21551 void disable(int cap) native; 23326 void disable(int cap) native;
21552 23327
21553 @DocsEditable @DomName('WebGLRenderingContext.disableVertexAttribArray') 23328 @DocsEditable
23329 @DomName('WebGLRenderingContext.disableVertexAttribArray')
21554 void disableVertexAttribArray(int index) native; 23330 void disableVertexAttribArray(int index) native;
21555 23331
21556 @DocsEditable @DomName('WebGLRenderingContext.drawArrays') 23332 @DocsEditable
23333 @DomName('WebGLRenderingContext.drawArrays')
21557 void drawArrays(int mode, int first, int count) native; 23334 void drawArrays(int mode, int first, int count) native;
21558 23335
21559 @DocsEditable @DomName('WebGLRenderingContext.drawElements') 23336 @DocsEditable
23337 @DomName('WebGLRenderingContext.drawElements')
21560 void drawElements(int mode, int count, int type, int offset) native; 23338 void drawElements(int mode, int count, int type, int offset) native;
21561 23339
21562 @DocsEditable @DomName('WebGLRenderingContext.enable') 23340 @DocsEditable
23341 @DomName('WebGLRenderingContext.enable')
21563 void enable(int cap) native; 23342 void enable(int cap) native;
21564 23343
21565 @DocsEditable @DomName('WebGLRenderingContext.enableVertexAttribArray') 23344 @DocsEditable
23345 @DomName('WebGLRenderingContext.enableVertexAttribArray')
21566 void enableVertexAttribArray(int index) native; 23346 void enableVertexAttribArray(int index) native;
21567 23347
21568 @DocsEditable @DomName('WebGLRenderingContext.finish') 23348 @DocsEditable
23349 @DomName('WebGLRenderingContext.finish')
21569 void finish() native; 23350 void finish() native;
21570 23351
21571 @DocsEditable @DomName('WebGLRenderingContext.flush') 23352 @DocsEditable
23353 @DomName('WebGLRenderingContext.flush')
21572 void flush() native; 23354 void flush() native;
21573 23355
21574 @DocsEditable @DomName('WebGLRenderingContext.framebufferRenderbuffer') 23356 @DocsEditable
23357 @DomName('WebGLRenderingContext.framebufferRenderbuffer')
21575 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) native; 23358 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) native;
21576 23359
21577 @DocsEditable @DomName('WebGLRenderingContext.framebufferTexture2D') 23360 @DocsEditable
23361 @DomName('WebGLRenderingContext.framebufferTexture2D')
21578 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) native; 23362 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) native;
21579 23363
21580 @DocsEditable @DomName('WebGLRenderingContext.frontFace') 23364 @DocsEditable
23365 @DomName('WebGLRenderingContext.frontFace')
21581 void frontFace(int mode) native; 23366 void frontFace(int mode) native;
21582 23367
21583 @DocsEditable @DomName('WebGLRenderingContext.generateMipmap') 23368 @DocsEditable
23369 @DomName('WebGLRenderingContext.generateMipmap')
21584 void generateMipmap(int target) native; 23370 void generateMipmap(int target) native;
21585 23371
21586 @DocsEditable @DomName('WebGLRenderingContext.getActiveAttrib') 23372 @DocsEditable
23373 @DomName('WebGLRenderingContext.getActiveAttrib')
21587 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; 23374 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native;
21588 23375
21589 @DocsEditable @DomName('WebGLRenderingContext.getActiveUniform') 23376 @DocsEditable
23377 @DomName('WebGLRenderingContext.getActiveUniform')
21590 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; 23378 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native;
21591 23379
21592 @DocsEditable @DomName('WebGLRenderingContext.getAttachedShaders') 23380 @DocsEditable
23381 @DomName('WebGLRenderingContext.getAttachedShaders')
21593 void getAttachedShaders(WebGLProgram program) native; 23382 void getAttachedShaders(WebGLProgram program) native;
21594 23383
21595 @DocsEditable @DomName('WebGLRenderingContext.getAttribLocation') 23384 @DocsEditable
23385 @DomName('WebGLRenderingContext.getAttribLocation')
21596 int getAttribLocation(WebGLProgram program, String name) native; 23386 int getAttribLocation(WebGLProgram program, String name) native;
21597 23387
21598 @DocsEditable @DomName('WebGLRenderingContext.getBufferParameter') 23388 @DocsEditable
23389 @DomName('WebGLRenderingContext.getBufferParameter')
21599 Object getBufferParameter(int target, int pname) native; 23390 Object getBufferParameter(int target, int pname) native;
21600 23391
21601 @DocsEditable @DomName('WebGLRenderingContext.getContextAttributes') 23392 @DocsEditable
23393 @DomName('WebGLRenderingContext.getContextAttributes')
21602 WebGLContextAttributes getContextAttributes() native; 23394 WebGLContextAttributes getContextAttributes() native;
21603 23395
21604 @DocsEditable @DomName('WebGLRenderingContext.getError') 23396 @DocsEditable
23397 @DomName('WebGLRenderingContext.getError')
21605 int getError() native; 23398 int getError() native;
21606 23399
21607 @DocsEditable @DomName('WebGLRenderingContext.getExtension') 23400 @DocsEditable
23401 @DomName('WebGLRenderingContext.getExtension')
21608 Object getExtension(String name) native; 23402 Object getExtension(String name) native;
21609 23403
21610 @DocsEditable @DomName('WebGLRenderingContext.getFramebufferAttachmentParamete r') 23404 @DocsEditable
23405 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
21611 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native; 23406 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
21612 23407
21613 @DocsEditable @DomName('WebGLRenderingContext.getParameter') 23408 @DocsEditable
23409 @DomName('WebGLRenderingContext.getParameter')
21614 Object getParameter(int pname) native; 23410 Object getParameter(int pname) native;
21615 23411
21616 @DocsEditable @DomName('WebGLRenderingContext.getProgramInfoLog') 23412 @DocsEditable
23413 @DomName('WebGLRenderingContext.getProgramInfoLog')
21617 String getProgramInfoLog(WebGLProgram program) native; 23414 String getProgramInfoLog(WebGLProgram program) native;
21618 23415
21619 @DocsEditable @DomName('WebGLRenderingContext.getProgramParameter') 23416 @DocsEditable
23417 @DomName('WebGLRenderingContext.getProgramParameter')
21620 Object getProgramParameter(WebGLProgram program, int pname) native; 23418 Object getProgramParameter(WebGLProgram program, int pname) native;
21621 23419
21622 @DocsEditable @DomName('WebGLRenderingContext.getRenderbufferParameter') 23420 @DocsEditable
23421 @DomName('WebGLRenderingContext.getRenderbufferParameter')
21623 Object getRenderbufferParameter(int target, int pname) native; 23422 Object getRenderbufferParameter(int target, int pname) native;
21624 23423
21625 @DocsEditable @DomName('WebGLRenderingContext.getShaderInfoLog') 23424 @DocsEditable
23425 @DomName('WebGLRenderingContext.getShaderInfoLog')
21626 String getShaderInfoLog(WebGLShader shader) native; 23426 String getShaderInfoLog(WebGLShader shader) native;
21627 23427
21628 @DocsEditable @DomName('WebGLRenderingContext.getShaderParameter') 23428 @DocsEditable
23429 @DomName('WebGLRenderingContext.getShaderParameter')
21629 Object getShaderParameter(WebGLShader shader, int pname) native; 23430 Object getShaderParameter(WebGLShader shader, int pname) native;
21630 23431
21631 @DocsEditable @DomName('WebGLRenderingContext.getShaderPrecisionFormat') 23432 @DocsEditable
23433 @DomName('WebGLRenderingContext.getShaderPrecisionFormat')
21632 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype) native; 23434 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype) native;
21633 23435
21634 @DocsEditable @DomName('WebGLRenderingContext.getShaderSource') 23436 @DocsEditable
23437 @DomName('WebGLRenderingContext.getShaderSource')
21635 String getShaderSource(WebGLShader shader) native; 23438 String getShaderSource(WebGLShader shader) native;
21636 23439
21637 @DocsEditable @DomName('WebGLRenderingContext.getSupportedExtensions') 23440 @DocsEditable
23441 @DomName('WebGLRenderingContext.getSupportedExtensions')
21638 List<String> getSupportedExtensions() native; 23442 List<String> getSupportedExtensions() native;
21639 23443
21640 @DocsEditable @DomName('WebGLRenderingContext.getTexParameter') 23444 @DocsEditable
23445 @DomName('WebGLRenderingContext.getTexParameter')
21641 Object getTexParameter(int target, int pname) native; 23446 Object getTexParameter(int target, int pname) native;
21642 23447
21643 @DocsEditable @DomName('WebGLRenderingContext.getUniform') 23448 @DocsEditable
23449 @DomName('WebGLRenderingContext.getUniform')
21644 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; 23450 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native;
21645 23451
21646 @DocsEditable @DomName('WebGLRenderingContext.getUniformLocation') 23452 @DocsEditable
23453 @DomName('WebGLRenderingContext.getUniformLocation')
21647 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat ive; 23454 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat ive;
21648 23455
21649 @DocsEditable @DomName('WebGLRenderingContext.getVertexAttrib') 23456 @DocsEditable
23457 @DomName('WebGLRenderingContext.getVertexAttrib')
21650 Object getVertexAttrib(int index, int pname) native; 23458 Object getVertexAttrib(int index, int pname) native;
21651 23459
21652 @DocsEditable @DomName('WebGLRenderingContext.getVertexAttribOffset') 23460 @DocsEditable
23461 @DomName('WebGLRenderingContext.getVertexAttribOffset')
21653 int getVertexAttribOffset(int index, int pname) native; 23462 int getVertexAttribOffset(int index, int pname) native;
21654 23463
21655 @DocsEditable @DomName('WebGLRenderingContext.hint') 23464 @DocsEditable
23465 @DomName('WebGLRenderingContext.hint')
21656 void hint(int target, int mode) native; 23466 void hint(int target, int mode) native;
21657 23467
21658 @DocsEditable @DomName('WebGLRenderingContext.isBuffer') 23468 @DocsEditable
23469 @DomName('WebGLRenderingContext.isBuffer')
21659 bool isBuffer(WebGLBuffer buffer) native; 23470 bool isBuffer(WebGLBuffer buffer) native;
21660 23471
21661 @DocsEditable @DomName('WebGLRenderingContext.isContextLost') 23472 @DocsEditable
23473 @DomName('WebGLRenderingContext.isContextLost')
21662 bool isContextLost() native; 23474 bool isContextLost() native;
21663 23475
21664 @DocsEditable @DomName('WebGLRenderingContext.isEnabled') 23476 @DocsEditable
23477 @DomName('WebGLRenderingContext.isEnabled')
21665 bool isEnabled(int cap) native; 23478 bool isEnabled(int cap) native;
21666 23479
21667 @DocsEditable @DomName('WebGLRenderingContext.isFramebuffer') 23480 @DocsEditable
23481 @DomName('WebGLRenderingContext.isFramebuffer')
21668 bool isFramebuffer(WebGLFramebuffer framebuffer) native; 23482 bool isFramebuffer(WebGLFramebuffer framebuffer) native;
21669 23483
21670 @DocsEditable @DomName('WebGLRenderingContext.isProgram') 23484 @DocsEditable
23485 @DomName('WebGLRenderingContext.isProgram')
21671 bool isProgram(WebGLProgram program) native; 23486 bool isProgram(WebGLProgram program) native;
21672 23487
21673 @DocsEditable @DomName('WebGLRenderingContext.isRenderbuffer') 23488 @DocsEditable
23489 @DomName('WebGLRenderingContext.isRenderbuffer')
21674 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; 23490 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native;
21675 23491
21676 @DocsEditable @DomName('WebGLRenderingContext.isShader') 23492 @DocsEditable
23493 @DomName('WebGLRenderingContext.isShader')
21677 bool isShader(WebGLShader shader) native; 23494 bool isShader(WebGLShader shader) native;
21678 23495
21679 @DocsEditable @DomName('WebGLRenderingContext.isTexture') 23496 @DocsEditable
23497 @DomName('WebGLRenderingContext.isTexture')
21680 bool isTexture(WebGLTexture texture) native; 23498 bool isTexture(WebGLTexture texture) native;
21681 23499
21682 @DocsEditable @DomName('WebGLRenderingContext.lineWidth') 23500 @DocsEditable
23501 @DomName('WebGLRenderingContext.lineWidth')
21683 void lineWidth(num width) native; 23502 void lineWidth(num width) native;
21684 23503
21685 @DocsEditable @DomName('WebGLRenderingContext.linkProgram') 23504 @DocsEditable
23505 @DomName('WebGLRenderingContext.linkProgram')
21686 void linkProgram(WebGLProgram program) native; 23506 void linkProgram(WebGLProgram program) native;
21687 23507
21688 @DocsEditable @DomName('WebGLRenderingContext.pixelStorei') 23508 @DocsEditable
23509 @DomName('WebGLRenderingContext.pixelStorei')
21689 void pixelStorei(int pname, int param) native; 23510 void pixelStorei(int pname, int param) native;
21690 23511
21691 @DocsEditable @DomName('WebGLRenderingContext.polygonOffset') 23512 @DocsEditable
23513 @DomName('WebGLRenderingContext.polygonOffset')
21692 void polygonOffset(num factor, num units) native; 23514 void polygonOffset(num factor, num units) native;
21693 23515
21694 @DocsEditable @DomName('WebGLRenderingContext.readPixels') 23516 @DocsEditable
23517 @DomName('WebGLRenderingContext.readPixels')
21695 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) native; 23518 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) native;
21696 23519
21697 @DocsEditable @DomName('WebGLRenderingContext.releaseShaderCompiler') 23520 @DocsEditable
23521 @DomName('WebGLRenderingContext.releaseShaderCompiler')
21698 void releaseShaderCompiler() native; 23522 void releaseShaderCompiler() native;
21699 23523
21700 @DocsEditable @DomName('WebGLRenderingContext.renderbufferStorage') 23524 @DocsEditable
23525 @DomName('WebGLRenderingContext.renderbufferStorage')
21701 void renderbufferStorage(int target, int internalformat, int width, int height ) native; 23526 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
21702 23527
21703 @DocsEditable @DomName('WebGLRenderingContext.sampleCoverage') 23528 @DocsEditable
23529 @DomName('WebGLRenderingContext.sampleCoverage')
21704 void sampleCoverage(num value, bool invert) native; 23530 void sampleCoverage(num value, bool invert) native;
21705 23531
21706 @DocsEditable @DomName('WebGLRenderingContext.scissor') 23532 @DocsEditable
23533 @DomName('WebGLRenderingContext.scissor')
21707 void scissor(int x, int y, int width, int height) native; 23534 void scissor(int x, int y, int width, int height) native;
21708 23535
21709 @DocsEditable @DomName('WebGLRenderingContext.shaderSource') 23536 @DocsEditable
23537 @DomName('WebGLRenderingContext.shaderSource')
21710 void shaderSource(WebGLShader shader, String string) native; 23538 void shaderSource(WebGLShader shader, String string) native;
21711 23539
21712 @DocsEditable @DomName('WebGLRenderingContext.stencilFunc') 23540 @DocsEditable
23541 @DomName('WebGLRenderingContext.stencilFunc')
21713 void stencilFunc(int func, int ref, int mask) native; 23542 void stencilFunc(int func, int ref, int mask) native;
21714 23543
21715 @DocsEditable @DomName('WebGLRenderingContext.stencilFuncSeparate') 23544 @DocsEditable
23545 @DomName('WebGLRenderingContext.stencilFuncSeparate')
21716 void stencilFuncSeparate(int face, int func, int ref, int mask) native; 23546 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
21717 23547
21718 @DocsEditable @DomName('WebGLRenderingContext.stencilMask') 23548 @DocsEditable
23549 @DomName('WebGLRenderingContext.stencilMask')
21719 void stencilMask(int mask) native; 23550 void stencilMask(int mask) native;
21720 23551
21721 @DocsEditable @DomName('WebGLRenderingContext.stencilMaskSeparate') 23552 @DocsEditable
23553 @DomName('WebGLRenderingContext.stencilMaskSeparate')
21722 void stencilMaskSeparate(int face, int mask) native; 23554 void stencilMaskSeparate(int face, int mask) native;
21723 23555
21724 @DocsEditable @DomName('WebGLRenderingContext.stencilOp') 23556 @DocsEditable
23557 @DomName('WebGLRenderingContext.stencilOp')
21725 void stencilOp(int fail, int zfail, int zpass) native; 23558 void stencilOp(int fail, int zfail, int zpass) native;
21726 23559
21727 @DocsEditable @DomName('WebGLRenderingContext.stencilOpSeparate') 23560 @DocsEditable
23561 @DomName('WebGLRenderingContext.stencilOpSeparate')
21728 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 23562 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
21729 23563
21730 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]) { 23564 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]) {
21731 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas _OR_image_OR_pixels_OR_video == null)) { 23565 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas _OR_image_OR_pixels_OR_video == null)) {
21732 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 23566 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
21733 return; 23567 return;
21734 } 23568 }
21735 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && 23569 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) &&
21736 !?format && 23570 !?format &&
21737 !?type && 23571 !?type &&
(...skipping 19 matching lines...) Expand all
21757 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && 23591 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) &&
21758 !?format && 23592 !?format &&
21759 !?type && 23593 !?type &&
21760 !?pixels) { 23594 !?pixels) {
21761 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 23595 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
21762 return; 23596 return;
21763 } 23597 }
21764 throw new ArgumentError("Incorrect number or type of arguments"); 23598 throw new ArgumentError("Incorrect number or type of arguments");
21765 } 23599 }
21766 @JSName('texImage2D') 23600 @JSName('texImage2D')
21767 @DocsEditable @DomName('WebGLRenderingContext.texImage2D') 23601 @DocsEditable
23602 @DomName('WebGLRenderingContext.texImage2D')
21768 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, ArrayBufferView pixels) native; 23603 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, ArrayBufferView pixels) native;
21769 @JSName('texImage2D') 23604 @JSName('texImage2D')
21770 @DocsEditable @DomName('WebGLRenderingContext.texImage2D') 23605 @DocsEditable
23606 @DomName('WebGLRenderingContext.texImage2D')
21771 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ; 23607 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ;
21772 @JSName('texImage2D') 23608 @JSName('texImage2D')
21773 @DocsEditable @DomName('WebGLRenderingContext.texImage2D') 23609 @DocsEditable
23610 @DomName('WebGLRenderingContext.texImage2D')
21774 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native; 23611 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native;
21775 @JSName('texImage2D') 23612 @JSName('texImage2D')
21776 @DocsEditable @DomName('WebGLRenderingContext.texImage2D') 23613 @DocsEditable
23614 @DomName('WebGLRenderingContext.texImage2D')
21777 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; 23615 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native;
21778 @JSName('texImage2D') 23616 @JSName('texImage2D')
21779 @DocsEditable @DomName('WebGLRenderingContext.texImage2D') 23617 @DocsEditable
23618 @DomName('WebGLRenderingContext.texImage2D')
21780 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native; 23619 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native;
21781 23620
21782 @DocsEditable @DomName('WebGLRenderingContext.texParameterf') 23621 @DocsEditable
23622 @DomName('WebGLRenderingContext.texParameterf')
21783 void texParameterf(int target, int pname, num param) native; 23623 void texParameterf(int target, int pname, num param) native;
21784 23624
21785 @DocsEditable @DomName('WebGLRenderingContext.texParameteri') 23625 @DocsEditable
23626 @DomName('WebGLRenderingContext.texParameteri')
21786 void texParameteri(int target, int pname, int param) native; 23627 void texParameteri(int target, int pname, int param) native;
21787 23628
21788 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]) { 23629 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]) {
21789 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format _OR_image_OR_pixels_OR_video == null)) { 23630 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format _OR_image_OR_pixels_OR_video == null)) {
21790 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 23631 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
21791 return; 23632 return;
21792 } 23633 }
21793 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && 23634 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) &&
21794 !?type && 23635 !?type &&
21795 !?pixels) { 23636 !?pixels) {
(...skipping 15 matching lines...) Expand all
21811 } 23652 }
21812 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && 23653 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) &&
21813 !?type && 23654 !?type &&
21814 !?pixels) { 23655 !?pixels) {
21815 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 23656 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
21816 return; 23657 return;
21817 } 23658 }
21818 throw new ArgumentError("Incorrect number or type of arguments"); 23659 throw new ArgumentError("Incorrect number or type of arguments");
21819 } 23660 }
21820 @JSName('texSubImage2D') 23661 @JSName('texSubImage2D')
21821 @DocsEditable @DomName('WebGLRenderingContext.texSubImage2D') 23662 @DocsEditable
23663 @DomName('WebGLRenderingContext.texSubImage2D')
21822 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, ArrayBufferView pixels) native; 23664 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, ArrayBufferView pixels) native;
21823 @JSName('texSubImage2D') 23665 @JSName('texSubImage2D')
21824 @DocsEditable @DomName('WebGLRenderingContext.texSubImage2D') 23666 @DocsEditable
23667 @DomName('WebGLRenderingContext.texSubImage2D')
21825 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative; 23668 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative;
21826 @JSName('texSubImage2D') 23669 @JSName('texSubImage2D')
21827 @DocsEditable @DomName('WebGLRenderingContext.texSubImage2D') 23670 @DocsEditable
23671 @DomName('WebGLRenderingContext.texSubImage2D')
21828 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native; 23672 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native;
21829 @JSName('texSubImage2D') 23673 @JSName('texSubImage2D')
21830 @DocsEditable @DomName('WebGLRenderingContext.texSubImage2D') 23674 @DocsEditable
23675 @DomName('WebGLRenderingContext.texSubImage2D')
21831 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native; 23676 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native;
21832 @JSName('texSubImage2D') 23677 @JSName('texSubImage2D')
21833 @DocsEditable @DomName('WebGLRenderingContext.texSubImage2D') 23678 @DocsEditable
23679 @DomName('WebGLRenderingContext.texSubImage2D')
21834 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native; 23680 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native;
21835 23681
21836 @DocsEditable @DomName('WebGLRenderingContext.uniform1f') 23682 @DocsEditable
23683 @DomName('WebGLRenderingContext.uniform1f')
21837 void uniform1f(WebGLUniformLocation location, num x) native; 23684 void uniform1f(WebGLUniformLocation location, num x) native;
21838 23685
21839 @DocsEditable @DomName('WebGLRenderingContext.uniform1fv') 23686 @DocsEditable
23687 @DomName('WebGLRenderingContext.uniform1fv')
21840 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; 23688 void uniform1fv(WebGLUniformLocation location, Float32Array v) native;
21841 23689
21842 @DocsEditable @DomName('WebGLRenderingContext.uniform1i') 23690 @DocsEditable
23691 @DomName('WebGLRenderingContext.uniform1i')
21843 void uniform1i(WebGLUniformLocation location, int x) native; 23692 void uniform1i(WebGLUniformLocation location, int x) native;
21844 23693
21845 @DocsEditable @DomName('WebGLRenderingContext.uniform1iv') 23694 @DocsEditable
23695 @DomName('WebGLRenderingContext.uniform1iv')
21846 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; 23696 void uniform1iv(WebGLUniformLocation location, Int32Array v) native;
21847 23697
21848 @DocsEditable @DomName('WebGLRenderingContext.uniform2f') 23698 @DocsEditable
23699 @DomName('WebGLRenderingContext.uniform2f')
21849 void uniform2f(WebGLUniformLocation location, num x, num y) native; 23700 void uniform2f(WebGLUniformLocation location, num x, num y) native;
21850 23701
21851 @DocsEditable @DomName('WebGLRenderingContext.uniform2fv') 23702 @DocsEditable
23703 @DomName('WebGLRenderingContext.uniform2fv')
21852 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; 23704 void uniform2fv(WebGLUniformLocation location, Float32Array v) native;
21853 23705
21854 @DocsEditable @DomName('WebGLRenderingContext.uniform2i') 23706 @DocsEditable
23707 @DomName('WebGLRenderingContext.uniform2i')
21855 void uniform2i(WebGLUniformLocation location, int x, int y) native; 23708 void uniform2i(WebGLUniformLocation location, int x, int y) native;
21856 23709
21857 @DocsEditable @DomName('WebGLRenderingContext.uniform2iv') 23710 @DocsEditable
23711 @DomName('WebGLRenderingContext.uniform2iv')
21858 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; 23712 void uniform2iv(WebGLUniformLocation location, Int32Array v) native;
21859 23713
21860 @DocsEditable @DomName('WebGLRenderingContext.uniform3f') 23714 @DocsEditable
23715 @DomName('WebGLRenderingContext.uniform3f')
21861 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; 23716 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native;
21862 23717
21863 @DocsEditable @DomName('WebGLRenderingContext.uniform3fv') 23718 @DocsEditable
23719 @DomName('WebGLRenderingContext.uniform3fv')
21864 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; 23720 void uniform3fv(WebGLUniformLocation location, Float32Array v) native;
21865 23721
21866 @DocsEditable @DomName('WebGLRenderingContext.uniform3i') 23722 @DocsEditable
23723 @DomName('WebGLRenderingContext.uniform3i')
21867 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; 23724 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native;
21868 23725
21869 @DocsEditable @DomName('WebGLRenderingContext.uniform3iv') 23726 @DocsEditable
23727 @DomName('WebGLRenderingContext.uniform3iv')
21870 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; 23728 void uniform3iv(WebGLUniformLocation location, Int32Array v) native;
21871 23729
21872 @DocsEditable @DomName('WebGLRenderingContext.uniform4f') 23730 @DocsEditable
23731 @DomName('WebGLRenderingContext.uniform4f')
21873 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati ve; 23732 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati ve;
21874 23733
21875 @DocsEditable @DomName('WebGLRenderingContext.uniform4fv') 23734 @DocsEditable
23735 @DomName('WebGLRenderingContext.uniform4fv')
21876 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; 23736 void uniform4fv(WebGLUniformLocation location, Float32Array v) native;
21877 23737
21878 @DocsEditable @DomName('WebGLRenderingContext.uniform4i') 23738 @DocsEditable
23739 @DomName('WebGLRenderingContext.uniform4i')
21879 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati ve; 23740 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati ve;
21880 23741
21881 @DocsEditable @DomName('WebGLRenderingContext.uniform4iv') 23742 @DocsEditable
23743 @DomName('WebGLRenderingContext.uniform4iv')
21882 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; 23744 void uniform4iv(WebGLUniformLocation location, Int32Array v) native;
21883 23745
21884 @DocsEditable @DomName('WebGLRenderingContext.uniformMatrix2fv') 23746 @DocsEditable
23747 @DomName('WebGLRenderingContext.uniformMatrix2fv')
21885 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 23748 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
21886 23749
21887 @DocsEditable @DomName('WebGLRenderingContext.uniformMatrix3fv') 23750 @DocsEditable
23751 @DomName('WebGLRenderingContext.uniformMatrix3fv')
21888 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 23752 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
21889 23753
21890 @DocsEditable @DomName('WebGLRenderingContext.uniformMatrix4fv') 23754 @DocsEditable
23755 @DomName('WebGLRenderingContext.uniformMatrix4fv')
21891 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 23756 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
21892 23757
21893 @DocsEditable @DomName('WebGLRenderingContext.useProgram') 23758 @DocsEditable
23759 @DomName('WebGLRenderingContext.useProgram')
21894 void useProgram(WebGLProgram program) native; 23760 void useProgram(WebGLProgram program) native;
21895 23761
21896 @DocsEditable @DomName('WebGLRenderingContext.validateProgram') 23762 @DocsEditable
23763 @DomName('WebGLRenderingContext.validateProgram')
21897 void validateProgram(WebGLProgram program) native; 23764 void validateProgram(WebGLProgram program) native;
21898 23765
21899 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib1f') 23766 @DocsEditable
23767 @DomName('WebGLRenderingContext.vertexAttrib1f')
21900 void vertexAttrib1f(int indx, num x) native; 23768 void vertexAttrib1f(int indx, num x) native;
21901 23769
21902 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib1fv') 23770 @DocsEditable
23771 @DomName('WebGLRenderingContext.vertexAttrib1fv')
21903 void vertexAttrib1fv(int indx, Float32Array values) native; 23772 void vertexAttrib1fv(int indx, Float32Array values) native;
21904 23773
21905 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib2f') 23774 @DocsEditable
23775 @DomName('WebGLRenderingContext.vertexAttrib2f')
21906 void vertexAttrib2f(int indx, num x, num y) native; 23776 void vertexAttrib2f(int indx, num x, num y) native;
21907 23777
21908 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib2fv') 23778 @DocsEditable
23779 @DomName('WebGLRenderingContext.vertexAttrib2fv')
21909 void vertexAttrib2fv(int indx, Float32Array values) native; 23780 void vertexAttrib2fv(int indx, Float32Array values) native;
21910 23781
21911 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib3f') 23782 @DocsEditable
23783 @DomName('WebGLRenderingContext.vertexAttrib3f')
21912 void vertexAttrib3f(int indx, num x, num y, num z) native; 23784 void vertexAttrib3f(int indx, num x, num y, num z) native;
21913 23785
21914 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib3fv') 23786 @DocsEditable
23787 @DomName('WebGLRenderingContext.vertexAttrib3fv')
21915 void vertexAttrib3fv(int indx, Float32Array values) native; 23788 void vertexAttrib3fv(int indx, Float32Array values) native;
21916 23789
21917 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib4f') 23790 @DocsEditable
23791 @DomName('WebGLRenderingContext.vertexAttrib4f')
21918 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; 23792 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
21919 23793
21920 @DocsEditable @DomName('WebGLRenderingContext.vertexAttrib4fv') 23794 @DocsEditable
23795 @DomName('WebGLRenderingContext.vertexAttrib4fv')
21921 void vertexAttrib4fv(int indx, Float32Array values) native; 23796 void vertexAttrib4fv(int indx, Float32Array values) native;
21922 23797
21923 @DocsEditable @DomName('WebGLRenderingContext.vertexAttribPointer') 23798 @DocsEditable
23799 @DomName('WebGLRenderingContext.vertexAttribPointer')
21924 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native; 23800 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
21925 23801
21926 @DocsEditable @DomName('WebGLRenderingContext.viewport') 23802 @DocsEditable
23803 @DomName('WebGLRenderingContext.viewport')
21927 void viewport(int x, int y, int width, int height) native; 23804 void viewport(int x, int y, int width, int height) native;
21928 } 23805 }
21929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21930 // for details. All rights reserved. Use of this source code is governed by a 23807 // for details. All rights reserved. Use of this source code is governed by a
21931 // BSD-style license that can be found in the LICENSE file. 23808 // BSD-style license that can be found in the LICENSE file.
21932 23809
21933 23810
21934 23811
21935 @DocsEditable 23812 @DocsEditable
21936 @DomName('WebGLShader') 23813 @DomName('WebGLShader')
21937 class WebGLShader native "*WebGLShader" { 23814 class WebGLShader native "*WebGLShader" {
21938 } 23815 }
21939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21940 // for details. All rights reserved. Use of this source code is governed by a 23817 // for details. All rights reserved. Use of this source code is governed by a
21941 // BSD-style license that can be found in the LICENSE file. 23818 // BSD-style license that can be found in the LICENSE file.
21942 23819
21943 23820
21944 23821
21945 @DocsEditable 23822 @DocsEditable
21946 @DomName('WebGLShaderPrecisionFormat') 23823 @DomName('WebGLShaderPrecisionFormat')
21947 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { 23824 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" {
21948 23825
21949 @DocsEditable @DomName('WebGLShaderPrecisionFormat.precision') 23826 @DocsEditable
23827 @DomName('WebGLShaderPrecisionFormat.precision')
21950 final int precision; 23828 final int precision;
21951 23829
21952 @DocsEditable @DomName('WebGLShaderPrecisionFormat.rangeMax') 23830 @DocsEditable
23831 @DomName('WebGLShaderPrecisionFormat.rangeMax')
21953 final int rangeMax; 23832 final int rangeMax;
21954 23833
21955 @DocsEditable @DomName('WebGLShaderPrecisionFormat.rangeMin') 23834 @DocsEditable
23835 @DomName('WebGLShaderPrecisionFormat.rangeMin')
21956 final int rangeMin; 23836 final int rangeMin;
21957 } 23837 }
21958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21959 // for details. All rights reserved. Use of this source code is governed by a 23839 // for details. All rights reserved. Use of this source code is governed by a
21960 // BSD-style license that can be found in the LICENSE file. 23840 // BSD-style license that can be found in the LICENSE file.
21961 23841
21962 23842
21963 23843
21964 @DocsEditable 23844 @DocsEditable
21965 @DomName('WebGLTexture') 23845 @DomName('WebGLTexture')
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
22012 static const int CSS_FILTER_INVERT = 6; 23892 static const int CSS_FILTER_INVERT = 6;
22013 23893
22014 static const int CSS_FILTER_OPACITY = 7; 23894 static const int CSS_FILTER_OPACITY = 7;
22015 23895
22016 static const int CSS_FILTER_REFERENCE = 1; 23896 static const int CSS_FILTER_REFERENCE = 1;
22017 23897
22018 static const int CSS_FILTER_SATURATE = 4; 23898 static const int CSS_FILTER_SATURATE = 4;
22019 23899
22020 static const int CSS_FILTER_SEPIA = 3; 23900 static const int CSS_FILTER_SEPIA = 3;
22021 23901
22022 @DocsEditable @DomName('WebKitCSSFilterValue.operationType') 23902 @DocsEditable
23903 @DomName('WebKitCSSFilterValue.operationType')
22023 final int operationType; 23904 final int operationType;
22024 } 23905 }
22025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22026 // for details. All rights reserved. Use of this source code is governed by a 23907 // for details. All rights reserved. Use of this source code is governed by a
22027 // BSD-style license that can be found in the LICENSE file. 23908 // BSD-style license that can be found in the LICENSE file.
22028 23909
22029 23910
22030 23911
22031 @DocsEditable 23912 @DocsEditable
22032 @DomName('WebKitCSSMixFunctionValue') 23913 @DomName('WebKitCSSMixFunctionValue')
22033 class WebKitCssMixFunctionValue extends _CssValueList native "*WebKitCSSMixFunct ionValue" { 23914 class WebKitCssMixFunctionValue extends _CssValueList native "*WebKitCSSMixFunct ionValue" {
22034 } 23915 }
22035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22036 // for details. All rights reserved. Use of this source code is governed by a 23917 // for details. All rights reserved. Use of this source code is governed by a
22037 // BSD-style license that can be found in the LICENSE file. 23918 // BSD-style license that can be found in the LICENSE file.
22038 23919
22039 23920
22040 23921
22041 @DocsEditable 23922 @DocsEditable
22042 @DomName('WebKitNamedFlow') 23923 @DomName('WebKitNamedFlow')
22043 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { 23924 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" {
22044 23925
22045 @DocsEditable @DomName('WebKitNamedFlow.firstEmptyRegionIndex') 23926 @DocsEditable
23927 @DomName('WebKitNamedFlow.firstEmptyRegionIndex')
22046 final int firstEmptyRegionIndex; 23928 final int firstEmptyRegionIndex;
22047 23929
22048 @DocsEditable @DomName('WebKitNamedFlow.name') 23930 @DocsEditable
23931 @DomName('WebKitNamedFlow.name')
22049 final String name; 23932 final String name;
22050 23933
22051 @DocsEditable @DomName('WebKitNamedFlow.overset') 23934 @DocsEditable
23935 @DomName('WebKitNamedFlow.overset')
22052 final bool overset; 23936 final bool overset;
22053 23937
22054 @JSName('addEventListener') 23938 @JSName('addEventListener')
22055 @DocsEditable @DomName('WebKitNamedFlow.addEventListener') 23939 @DocsEditable
23940 @DomName('WebKitNamedFlow.addEventListener')
22056 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 23941 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
22057 23942
22058 @JSName('dispatchEvent') 23943 @JSName('dispatchEvent')
22059 @DocsEditable @DomName('WebKitNamedFlow.dispatchEvent') 23944 @DocsEditable
23945 @DomName('WebKitNamedFlow.dispatchEvent')
22060 bool $dom_dispatchEvent(Event event) native; 23946 bool $dom_dispatchEvent(Event event) native;
22061 23947
22062 @DocsEditable @DomName('WebKitNamedFlow.getContent') 23948 @DocsEditable
22063 @Returns('NodeList') @Creates('NodeList') 23949 @DomName('WebKitNamedFlow.getContent')
23950 @Returns('NodeList')
23951 @Creates('NodeList')
22064 List<Node> getContent() native; 23952 List<Node> getContent() native;
22065 23953
22066 @DocsEditable @DomName('WebKitNamedFlow.getRegions') 23954 @DocsEditable
22067 @Returns('NodeList') @Creates('NodeList') 23955 @DomName('WebKitNamedFlow.getRegions')
23956 @Returns('NodeList')
23957 @Creates('NodeList')
22068 List<Node> getRegions() native; 23958 List<Node> getRegions() native;
22069 23959
22070 @DocsEditable @DomName('WebKitNamedFlow.getRegionsByContent') 23960 @DocsEditable
22071 @Returns('NodeList') @Creates('NodeList') 23961 @DomName('WebKitNamedFlow.getRegionsByContent')
23962 @Returns('NodeList')
23963 @Creates('NodeList')
22072 List<Node> getRegionsByContent(Node contentNode) native; 23964 List<Node> getRegionsByContent(Node contentNode) native;
22073 23965
22074 @JSName('removeEventListener') 23966 @JSName('removeEventListener')
22075 @DocsEditable @DomName('WebKitNamedFlow.removeEventListener') 23967 @DocsEditable
23968 @DomName('WebKitNamedFlow.removeEventListener')
22076 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 23969 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
22077 } 23970 }
22078 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22079 // for details. All rights reserved. Use of this source code is governed by a 23972 // for details. All rights reserved. Use of this source code is governed by a
22080 // BSD-style license that can be found in the LICENSE file. 23973 // BSD-style license that can be found in the LICENSE file.
22081 23974
22082 23975
22083 23976
22084 @DocsEditable 23977 @DocsEditable
22085 @DomName('WebSocket') 23978 @DomName('WebSocket')
(...skipping 25 matching lines...) Expand all
22111 24004
22112 static const int CLOSED = 3; 24005 static const int CLOSED = 3;
22113 24006
22114 static const int CLOSING = 2; 24007 static const int CLOSING = 2;
22115 24008
22116 static const int CONNECTING = 0; 24009 static const int CONNECTING = 0;
22117 24010
22118 static const int OPEN = 1; 24011 static const int OPEN = 1;
22119 24012
22120 @JSName('URL') 24013 @JSName('URL')
22121 @DocsEditable @DomName('WebSocket.URL') 24014 @DocsEditable
24015 @DomName('WebSocket.URL')
22122 final String Url; 24016 final String Url;
22123 24017
22124 @DocsEditable @DomName('WebSocket.binaryType') 24018 @DocsEditable
24019 @DomName('WebSocket.binaryType')
22125 String binaryType; 24020 String binaryType;
22126 24021
22127 @DocsEditable @DomName('WebSocket.bufferedAmount') 24022 @DocsEditable
24023 @DomName('WebSocket.bufferedAmount')
22128 final int bufferedAmount; 24024 final int bufferedAmount;
22129 24025
22130 @DocsEditable @DomName('WebSocket.extensions') 24026 @DocsEditable
24027 @DomName('WebSocket.extensions')
22131 final String extensions; 24028 final String extensions;
22132 24029
22133 @DocsEditable @DomName('WebSocket.protocol') 24030 @DocsEditable
24031 @DomName('WebSocket.protocol')
22134 final String protocol; 24032 final String protocol;
22135 24033
22136 @DocsEditable @DomName('WebSocket.readyState') 24034 @DocsEditable
24035 @DomName('WebSocket.readyState')
22137 final int readyState; 24036 final int readyState;
22138 24037
22139 @DocsEditable @DomName('WebSocket.url') 24038 @DocsEditable
24039 @DomName('WebSocket.url')
22140 final String url; 24040 final String url;
22141 24041
22142 @JSName('addEventListener') 24042 @JSName('addEventListener')
22143 @DocsEditable @DomName('WebSocket.addEventListener') 24043 @DocsEditable
24044 @DomName('WebSocket.addEventListener')
22144 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 24045 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
22145 24046
22146 @DocsEditable @DomName('WebSocket.close') 24047 @DocsEditable
24048 @DomName('WebSocket.close')
22147 void close([int code, String reason]) native; 24049 void close([int code, String reason]) native;
22148 24050
22149 @JSName('dispatchEvent') 24051 @JSName('dispatchEvent')
22150 @DocsEditable @DomName('WebSocket.dispatchEvent') 24052 @DocsEditable
24053 @DomName('WebSocket.dispatchEvent')
22151 bool $dom_dispatchEvent(Event evt) native; 24054 bool $dom_dispatchEvent(Event evt) native;
22152 24055
22153 @JSName('removeEventListener') 24056 @JSName('removeEventListener')
22154 @DocsEditable @DomName('WebSocket.removeEventListener') 24057 @DocsEditable
24058 @DomName('WebSocket.removeEventListener')
22155 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 24059 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
22156 24060
22157 @DocsEditable @DomName('WebSocket.send') 24061 @DocsEditable
24062 @DomName('WebSocket.send')
22158 void send(data) native; 24063 void send(data) native;
22159 24064
22160 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); 24065 Stream<CloseEvent> get onClose => closeEvent.forTarget(this);
22161 24066
22162 Stream<Event> get onError => errorEvent.forTarget(this); 24067 Stream<Event> get onError => errorEvent.forTarget(this);
22163 24068
22164 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 24069 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
22165 24070
22166 Stream<Event> get onOpen => openEvent.forTarget(this); 24071 Stream<Event> get onOpen => openEvent.forTarget(this);
22167 } 24072 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
22246 event.$dom_initWebKitWheelEvent(wheelDeltaX, 24151 event.$dom_initWebKitWheelEvent(wheelDeltaX,
22247 wheelDeltaY ~/ 120, // Chrome does an auto-convert to pixels. 24152 wheelDeltaY ~/ 120, // Chrome does an auto-convert to pixels.
22248 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, 24153 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
22249 metaKey); 24154 metaKey);
22250 } 24155 }
22251 24156
22252 return event; 24157 return event;
22253 } 24158 }
22254 24159
22255 24160
22256 @DocsEditable @DomName('WheelEvent.webkitDirectionInvertedFromDevice') 24161 @DocsEditable
24162 @DomName('WheelEvent.webkitDirectionInvertedFromDevice')
22257 final bool webkitDirectionInvertedFromDevice; 24163 final bool webkitDirectionInvertedFromDevice;
22258 24164
22259 @JSName('initWebKitWheelEvent') 24165 @JSName('initWebKitWheelEvent')
22260 @DocsEditable @DomName('WheelEvent.initWebKitWheelEvent') 24166 @DocsEditable
24167 @DomName('WheelEvent.initWebKitWheelEvent')
22261 void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b ool shiftKey, bool metaKey) native; 24168 void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b ool shiftKey, bool metaKey) native;
22262 24169
22263 24170
22264 @DomName('WheelEvent.deltaY') 24171 @DomName('WheelEvent.deltaY')
22265 num get deltaY { 24172 num get deltaY {
22266 if (JS('bool', '#.deltaY !== undefined', this)) { 24173 if (JS('bool', '#.deltaY !== undefined', this)) {
22267 // W3C WheelEvent 24174 // W3C WheelEvent
22268 return this._deltaY; 24175 return this._deltaY;
22269 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { 24176 } else if (JS('bool', '#.wheelDelta !== undefined', this)) {
22270 // Chrome and IE 24177 // Chrome and IE
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
22577 24484
22578 @DocsEditable 24485 @DocsEditable
22579 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 24486 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
22580 WindowEvents get on => 24487 WindowEvents get on =>
22581 new WindowEvents(this); 24488 new WindowEvents(this);
22582 24489
22583 static const int PERSISTENT = 1; 24490 static const int PERSISTENT = 1;
22584 24491
22585 static const int TEMPORARY = 0; 24492 static const int TEMPORARY = 0;
22586 24493
22587 @DocsEditable @DomName('DOMWindow.applicationCache') 24494 @DocsEditable
24495 @DomName('DOMWindow.applicationCache')
22588 final ApplicationCache applicationCache; 24496 final ApplicationCache applicationCache;
22589 24497
22590 @DocsEditable @DomName('DOMWindow.closed') 24498 @DocsEditable
24499 @DomName('DOMWindow.closed')
22591 final bool closed; 24500 final bool closed;
22592 24501
22593 @DocsEditable @DomName('DOMWindow.crypto') 24502 @DocsEditable
24503 @DomName('DOMWindow.crypto')
22594 final Crypto crypto; 24504 final Crypto crypto;
22595 24505
22596 @DocsEditable @DomName('DOMWindow.defaultStatus') 24506 @DocsEditable
24507 @DomName('DOMWindow.defaultStatus')
22597 String defaultStatus; 24508 String defaultStatus;
22598 24509
22599 @DocsEditable @DomName('DOMWindow.defaultstatus') 24510 @DocsEditable
24511 @DomName('DOMWindow.defaultstatus')
22600 String defaultstatus; 24512 String defaultstatus;
22601 24513
22602 @DocsEditable @DomName('DOMWindow.devicePixelRatio') 24514 @DocsEditable
24515 @DomName('DOMWindow.devicePixelRatio')
22603 final num devicePixelRatio; 24516 final num devicePixelRatio;
22604 24517
22605 @DocsEditable @DomName('DOMWindow.event') 24518 @DocsEditable
24519 @DomName('DOMWindow.event')
22606 final Event event; 24520 final Event event;
22607 24521
22608 @DocsEditable @DomName('DOMWindow.history') 24522 @DocsEditable
24523 @DomName('DOMWindow.history')
22609 final History history; 24524 final History history;
22610 24525
22611 @DocsEditable @DomName('DOMWindow.innerHeight') 24526 @DocsEditable
24527 @DomName('DOMWindow.innerHeight')
22612 final int innerHeight; 24528 final int innerHeight;
22613 24529
22614 @DocsEditable @DomName('DOMWindow.innerWidth') 24530 @DocsEditable
24531 @DomName('DOMWindow.innerWidth')
22615 final int innerWidth; 24532 final int innerWidth;
22616 24533
22617 @DocsEditable @DomName('DOMWindow.localStorage') 24534 @DocsEditable
24535 @DomName('DOMWindow.localStorage')
22618 final Storage localStorage; 24536 final Storage localStorage;
22619 24537
22620 @DocsEditable @DomName('DOMWindow.locationbar') 24538 @DocsEditable
24539 @DomName('DOMWindow.locationbar')
22621 final BarInfo locationbar; 24540 final BarInfo locationbar;
22622 24541
22623 @DocsEditable @DomName('DOMWindow.menubar') 24542 @DocsEditable
24543 @DomName('DOMWindow.menubar')
22624 final BarInfo menubar; 24544 final BarInfo menubar;
22625 24545
22626 @DocsEditable @DomName('DOMWindow.name') 24546 @DocsEditable
24547 @DomName('DOMWindow.name')
22627 String name; 24548 String name;
22628 24549
22629 @DocsEditable @DomName('DOMWindow.navigator') 24550 @DocsEditable
24551 @DomName('DOMWindow.navigator')
22630 final Navigator navigator; 24552 final Navigator navigator;
22631 24553
22632 @DocsEditable @DomName('DOMWindow.offscreenBuffering') 24554 @DocsEditable
24555 @DomName('DOMWindow.offscreenBuffering')
22633 final bool offscreenBuffering; 24556 final bool offscreenBuffering;
22634 24557
22635 WindowBase get opener => _convertNativeToDart_Window(this._opener); 24558 WindowBase get opener => _convertNativeToDart_Window(this._opener);
22636 @JSName('opener') 24559 @JSName('opener')
22637 @DocsEditable @DomName('DOMWindow.opener') @Creates('Window|=Object') @Returns ('Window|=Object') 24560 @DocsEditable
24561 @DomName('DOMWindow.opener')
24562 @Creates('Window|=Object')
24563 @Returns('Window|=Object')
22638 final dynamic _opener; 24564 final dynamic _opener;
22639 24565
22640 @DocsEditable @DomName('DOMWindow.outerHeight') 24566 @DocsEditable
24567 @DomName('DOMWindow.outerHeight')
22641 final int outerHeight; 24568 final int outerHeight;
22642 24569
22643 @DocsEditable @DomName('DOMWindow.outerWidth') 24570 @DocsEditable
24571 @DomName('DOMWindow.outerWidth')
22644 final int outerWidth; 24572 final int outerWidth;
22645 24573
22646 @DocsEditable @DomName('DOMWindow.pagePopupController') 24574 @DocsEditable
24575 @DomName('DOMWindow.pagePopupController')
22647 final PagePopupController pagePopupController; 24576 final PagePopupController pagePopupController;
22648 24577
22649 @DocsEditable @DomName('DOMWindow.pageXOffset') 24578 @DocsEditable
24579 @DomName('DOMWindow.pageXOffset')
22650 final int pageXOffset; 24580 final int pageXOffset;
22651 24581
22652 @DocsEditable @DomName('DOMWindow.pageYOffset') 24582 @DocsEditable
24583 @DomName('DOMWindow.pageYOffset')
22653 final int pageYOffset; 24584 final int pageYOffset;
22654 24585
22655 WindowBase get parent => _convertNativeToDart_Window(this._parent); 24586 WindowBase get parent => _convertNativeToDart_Window(this._parent);
22656 @JSName('parent') 24587 @JSName('parent')
22657 @DocsEditable @DomName('DOMWindow.parent') @Creates('Window|=Object') @Returns ('Window|=Object') 24588 @DocsEditable
24589 @DomName('DOMWindow.parent')
24590 @Creates('Window|=Object')
24591 @Returns('Window|=Object')
22658 final dynamic _parent; 24592 final dynamic _parent;
22659 24593
22660 @DocsEditable @DomName('DOMWindow.performance') @SupportedBrowser(SupportedBro wser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(Suppo rtedBrowser.IE) 24594 @DocsEditable
24595 @DomName('DOMWindow.performance')
24596 @SupportedBrowser(SupportedBrowser.CHROME)
24597 @SupportedBrowser(SupportedBrowser.FIREFOX)
24598 @SupportedBrowser(SupportedBrowser.IE)
22661 final Performance performance; 24599 final Performance performance;
22662 24600
22663 @DocsEditable @DomName('DOMWindow.personalbar') 24601 @DocsEditable
24602 @DomName('DOMWindow.personalbar')
22664 final BarInfo personalbar; 24603 final BarInfo personalbar;
22665 24604
22666 @DocsEditable @DomName('DOMWindow.screen') 24605 @DocsEditable
24606 @DomName('DOMWindow.screen')
22667 final Screen screen; 24607 final Screen screen;
22668 24608
22669 @DocsEditable @DomName('DOMWindow.screenLeft') 24609 @DocsEditable
24610 @DomName('DOMWindow.screenLeft')
22670 final int screenLeft; 24611 final int screenLeft;
22671 24612
22672 @DocsEditable @DomName('DOMWindow.screenTop') 24613 @DocsEditable
24614 @DomName('DOMWindow.screenTop')
22673 final int screenTop; 24615 final int screenTop;
22674 24616
22675 @DocsEditable @DomName('DOMWindow.screenX') 24617 @DocsEditable
24618 @DomName('DOMWindow.screenX')
22676 final int screenX; 24619 final int screenX;
22677 24620
22678 @DocsEditable @DomName('DOMWindow.screenY') 24621 @DocsEditable
24622 @DomName('DOMWindow.screenY')
22679 final int screenY; 24623 final int screenY;
22680 24624
22681 @DocsEditable @DomName('DOMWindow.scrollX') 24625 @DocsEditable
24626 @DomName('DOMWindow.scrollX')
22682 final int scrollX; 24627 final int scrollX;
22683 24628
22684 @DocsEditable @DomName('DOMWindow.scrollY') 24629 @DocsEditable
24630 @DomName('DOMWindow.scrollY')
22685 final int scrollY; 24631 final int scrollY;
22686 24632
22687 @DocsEditable @DomName('DOMWindow.scrollbars') 24633 @DocsEditable
24634 @DomName('DOMWindow.scrollbars')
22688 final BarInfo scrollbars; 24635 final BarInfo scrollbars;
22689 24636
22690 WindowBase get self => _convertNativeToDart_Window(this._self); 24637 WindowBase get self => _convertNativeToDart_Window(this._self);
22691 @JSName('self') 24638 @JSName('self')
22692 @DocsEditable @DomName('DOMWindow.self') @Creates('Window|=Object') @Returns(' Window|=Object') 24639 @DocsEditable
24640 @DomName('DOMWindow.self')
24641 @Creates('Window|=Object')
24642 @Returns('Window|=Object')
22693 final dynamic _self; 24643 final dynamic _self;
22694 24644
22695 @DocsEditable @DomName('DOMWindow.sessionStorage') 24645 @DocsEditable
24646 @DomName('DOMWindow.sessionStorage')
22696 final Storage sessionStorage; 24647 final Storage sessionStorage;
22697 24648
22698 @DocsEditable @DomName('DOMWindow.status') 24649 @DocsEditable
24650 @DomName('DOMWindow.status')
22699 String status; 24651 String status;
22700 24652
22701 @DocsEditable @DomName('DOMWindow.statusbar') 24653 @DocsEditable
24654 @DomName('DOMWindow.statusbar')
22702 final BarInfo statusbar; 24655 final BarInfo statusbar;
22703 24656
22704 @DocsEditable @DomName('DOMWindow.styleMedia') 24657 @DocsEditable
24658 @DomName('DOMWindow.styleMedia')
22705 final StyleMedia styleMedia; 24659 final StyleMedia styleMedia;
22706 24660
22707 @DocsEditable @DomName('DOMWindow.toolbar') 24661 @DocsEditable
24662 @DomName('DOMWindow.toolbar')
22708 final BarInfo toolbar; 24663 final BarInfo toolbar;
22709 24664
22710 WindowBase get top => _convertNativeToDart_Window(this._top); 24665 WindowBase get top => _convertNativeToDart_Window(this._top);
22711 @JSName('top') 24666 @JSName('top')
22712 @DocsEditable @DomName('DOMWindow.top') @Creates('Window|=Object') @Returns('W indow|=Object') 24667 @DocsEditable
24668 @DomName('DOMWindow.top')
24669 @Creates('Window|=Object')
24670 @Returns('Window|=Object')
22713 final dynamic _top; 24671 final dynamic _top;
22714 24672
22715 @JSName('webkitNotifications') 24673 @JSName('webkitNotifications')
22716 @DocsEditable @DomName('DOMWindow.webkitNotifications') @SupportedBrowser(Supp ortedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.SAFARI) @Experimental() 24674 @DocsEditable
24675 @DomName('DOMWindow.webkitNotifications')
24676 @SupportedBrowser(SupportedBrowser.CHROME)
24677 @SupportedBrowser(SupportedBrowser.SAFARI)
24678 @Experimental()
22717 final NotificationCenter notifications; 24679 final NotificationCenter notifications;
22718 24680
22719 @DocsEditable @DomName('DOMWindow.webkitStorageInfo') 24681 @DocsEditable
24682 @DomName('DOMWindow.webkitStorageInfo')
22720 final StorageInfo webkitStorageInfo; 24683 final StorageInfo webkitStorageInfo;
22721 24684
22722 WindowBase get window => _convertNativeToDart_Window(this._window); 24685 WindowBase get window => _convertNativeToDart_Window(this._window);
22723 @JSName('window') 24686 @JSName('window')
22724 @DocsEditable @DomName('DOMWindow.window') @Creates('Window|=Object') @Returns ('Window|=Object') 24687 @DocsEditable
24688 @DomName('DOMWindow.window')
24689 @Creates('Window|=Object')
24690 @Returns('Window|=Object')
22725 final dynamic _window; 24691 final dynamic _window;
22726 24692
22727 @JSName('addEventListener') 24693 @JSName('addEventListener')
22728 @DocsEditable @DomName('DOMWindow.addEventListener') 24694 @DocsEditable
24695 @DomName('DOMWindow.addEventListener')
22729 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 24696 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
22730 24697
22731 @DocsEditable @DomName('DOMWindow.alert') 24698 @DocsEditable
24699 @DomName('DOMWindow.alert')
22732 void alert(String message) native; 24700 void alert(String message) native;
22733 24701
22734 @DocsEditable @DomName('DOMWindow.atob') 24702 @DocsEditable
24703 @DomName('DOMWindow.atob')
22735 String atob(String string) native; 24704 String atob(String string) native;
22736 24705
22737 @DocsEditable @DomName('DOMWindow.btoa') 24706 @DocsEditable
24707 @DomName('DOMWindow.btoa')
22738 String btoa(String string) native; 24708 String btoa(String string) native;
22739 24709
22740 @DocsEditable @DomName('DOMWindow.captureEvents') 24710 @DocsEditable
24711 @DomName('DOMWindow.captureEvents')
22741 void captureEvents() native; 24712 void captureEvents() native;
22742 24713
22743 @DocsEditable @DomName('DOMWindow.clearInterval') 24714 @DocsEditable
24715 @DomName('DOMWindow.clearInterval')
22744 void clearInterval(int handle) native; 24716 void clearInterval(int handle) native;
22745 24717
22746 @DocsEditable @DomName('DOMWindow.clearTimeout') 24718 @DocsEditable
24719 @DomName('DOMWindow.clearTimeout')
22747 void clearTimeout(int handle) native; 24720 void clearTimeout(int handle) native;
22748 24721
22749 @DocsEditable @DomName('DOMWindow.close') 24722 @DocsEditable
24723 @DomName('DOMWindow.close')
22750 void close() native; 24724 void close() native;
22751 24725
22752 @DocsEditable @DomName('DOMWindow.confirm') 24726 @DocsEditable
24727 @DomName('DOMWindow.confirm')
22753 bool confirm(String message) native; 24728 bool confirm(String message) native;
22754 24729
22755 @JSName('dispatchEvent') 24730 @JSName('dispatchEvent')
22756 @DocsEditable @DomName('DOMWindow.dispatchEvent') 24731 @DocsEditable
24732 @DomName('DOMWindow.dispatchEvent')
22757 bool $dom_dispatchEvent(Event evt) native; 24733 bool $dom_dispatchEvent(Event evt) native;
22758 24734
22759 @DocsEditable @DomName('DOMWindow.find') 24735 @DocsEditable
24736 @DomName('DOMWindow.find')
22760 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native; 24737 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
22761 24738
22762 @JSName('getComputedStyle') 24739 @JSName('getComputedStyle')
22763 @DocsEditable @DomName('DOMWindow.getComputedStyle') 24740 @DocsEditable
24741 @DomName('DOMWindow.getComputedStyle')
22764 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native; 24742 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native;
22765 24743
22766 @JSName('getMatchedCSSRules') 24744 @JSName('getMatchedCSSRules')
22767 @DocsEditable @DomName('DOMWindow.getMatchedCSSRules') 24745 @DocsEditable
22768 @Returns('_CssRuleList') @Creates('_CssRuleList') 24746 @DomName('DOMWindow.getMatchedCSSRules')
24747 @Returns('_CssRuleList')
24748 @Creates('_CssRuleList')
22769 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native ; 24749 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native ;
22770 24750
22771 @DocsEditable @DomName('DOMWindow.getSelection') 24751 @DocsEditable
24752 @DomName('DOMWindow.getSelection')
22772 DomSelection getSelection() native; 24753 DomSelection getSelection() native;
22773 24754
22774 @DocsEditable @DomName('DOMWindow.matchMedia') 24755 @DocsEditable
24756 @DomName('DOMWindow.matchMedia')
22775 MediaQueryList matchMedia(String query) native; 24757 MediaQueryList matchMedia(String query) native;
22776 24758
22777 @DocsEditable @DomName('DOMWindow.moveBy') 24759 @DocsEditable
24760 @DomName('DOMWindow.moveBy')
22778 void moveBy(num x, num y) native; 24761 void moveBy(num x, num y) native;
22779 24762
22780 @DocsEditable @DomName('DOMWindow.moveTo') 24763 @DocsEditable
24764 @DomName('DOMWindow.moveTo')
22781 void moveTo(num x, num y) native; 24765 void moveTo(num x, num y) native;
22782 24766
22783 @DocsEditable @DomName('DOMWindow.openDatabase') @Creates('Database') @Creates ('DatabaseSync') 24767 @DocsEditable
24768 @DomName('DOMWindow.openDatabase')
24769 @Creates('Database')
24770 @Creates('DatabaseSync')
22784 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 24771 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
22785 24772
22786 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 24773 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
22787 if (?message && 24774 if (?message &&
22788 !?messagePorts) { 24775 !?messagePorts) {
22789 var message_1 = convertDartToNative_SerializedScriptValue(message); 24776 var message_1 = convertDartToNative_SerializedScriptValue(message);
22790 _postMessage_1(message_1, targetOrigin); 24777 _postMessage_1(message_1, targetOrigin);
22791 return; 24778 return;
22792 } 24779 }
22793 if (?message) { 24780 if (?message) {
22794 var message_2 = convertDartToNative_SerializedScriptValue(message); 24781 var message_2 = convertDartToNative_SerializedScriptValue(message);
22795 _postMessage_2(message_2, targetOrigin, messagePorts); 24782 _postMessage_2(message_2, targetOrigin, messagePorts);
22796 return; 24783 return;
22797 } 24784 }
22798 throw new ArgumentError("Incorrect number or type of arguments"); 24785 throw new ArgumentError("Incorrect number or type of arguments");
22799 } 24786 }
22800 @JSName('postMessage') 24787 @JSName('postMessage')
22801 @DocsEditable @DomName('DOMWindow.postMessage') 24788 @DocsEditable
24789 @DomName('DOMWindow.postMessage')
22802 void _postMessage_1(message, targetOrigin) native; 24790 void _postMessage_1(message, targetOrigin) native;
22803 @JSName('postMessage') 24791 @JSName('postMessage')
22804 @DocsEditable @DomName('DOMWindow.postMessage') 24792 @DocsEditable
24793 @DomName('DOMWindow.postMessage')
22805 void _postMessage_2(message, targetOrigin, List messagePorts) native; 24794 void _postMessage_2(message, targetOrigin, List messagePorts) native;
22806 24795
22807 @DocsEditable @DomName('DOMWindow.print') 24796 @DocsEditable
24797 @DomName('DOMWindow.print')
22808 void print() native; 24798 void print() native;
22809 24799
22810 @DocsEditable @DomName('DOMWindow.releaseEvents') 24800 @DocsEditable
24801 @DomName('DOMWindow.releaseEvents')
22811 void releaseEvents() native; 24802 void releaseEvents() native;
22812 24803
22813 @JSName('removeEventListener') 24804 @JSName('removeEventListener')
22814 @DocsEditable @DomName('DOMWindow.removeEventListener') 24805 @DocsEditable
24806 @DomName('DOMWindow.removeEventListener')
22815 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 24807 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
22816 24808
22817 @DocsEditable @DomName('DOMWindow.resizeBy') 24809 @DocsEditable
24810 @DomName('DOMWindow.resizeBy')
22818 void resizeBy(num x, num y) native; 24811 void resizeBy(num x, num y) native;
22819 24812
22820 @DocsEditable @DomName('DOMWindow.resizeTo') 24813 @DocsEditable
24814 @DomName('DOMWindow.resizeTo')
22821 void resizeTo(num width, num height) native; 24815 void resizeTo(num width, num height) native;
22822 24816
22823 @DocsEditable @DomName('DOMWindow.scroll') 24817 @DocsEditable
24818 @DomName('DOMWindow.scroll')
22824 void scroll(int x, int y) native; 24819 void scroll(int x, int y) native;
22825 24820
22826 @DocsEditable @DomName('DOMWindow.scrollBy') 24821 @DocsEditable
24822 @DomName('DOMWindow.scrollBy')
22827 void scrollBy(int x, int y) native; 24823 void scrollBy(int x, int y) native;
22828 24824
22829 @DocsEditable @DomName('DOMWindow.scrollTo') 24825 @DocsEditable
24826 @DomName('DOMWindow.scrollTo')
22830 void scrollTo(int x, int y) native; 24827 void scrollTo(int x, int y) native;
22831 24828
22832 @DocsEditable @DomName('DOMWindow.setInterval') 24829 @DocsEditable
24830 @DomName('DOMWindow.setInterval')
22833 int setInterval(TimeoutHandler handler, int timeout) native; 24831 int setInterval(TimeoutHandler handler, int timeout) native;
22834 24832
22835 @DocsEditable @DomName('DOMWindow.setTimeout') 24833 @DocsEditable
24834 @DomName('DOMWindow.setTimeout')
22836 int setTimeout(TimeoutHandler handler, int timeout) native; 24835 int setTimeout(TimeoutHandler handler, int timeout) native;
22837 24836
22838 @DocsEditable @DomName('DOMWindow.showModalDialog') 24837 @DocsEditable
24838 @DomName('DOMWindow.showModalDialog')
22839 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive; 24839 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive;
22840 24840
22841 @DocsEditable @DomName('DOMWindow.stop') 24841 @DocsEditable
24842 @DomName('DOMWindow.stop')
22842 void stop() native; 24843 void stop() native;
22843 24844
22844 @DocsEditable @DomName('DOMWindow.webkitConvertPointFromNodeToPage') 24845 @DocsEditable
24846 @DomName('DOMWindow.webkitConvertPointFromNodeToPage')
22845 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; 24847 Point webkitConvertPointFromNodeToPage(Node node, Point p) native;
22846 24848
22847 @DocsEditable @DomName('DOMWindow.webkitConvertPointFromPageToNode') 24849 @DocsEditable
24850 @DomName('DOMWindow.webkitConvertPointFromPageToNode')
22848 Point webkitConvertPointFromPageToNode(Node node, Point p) native; 24851 Point webkitConvertPointFromPageToNode(Node node, Point p) native;
22849 24852
22850 @JSName('webkitRequestFileSystem') 24853 @JSName('webkitRequestFileSystem')
22851 @DocsEditable @DomName('DOMWindow.webkitRequestFileSystem') @SupportedBrowser( SupportedBrowser.CHROME) @Experimental() 24854 @DocsEditable
24855 @DomName('DOMWindow.webkitRequestFileSystem')
24856 @SupportedBrowser(SupportedBrowser.CHROME)
24857 @Experimental()
22852 void requestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]) native; 24858 void requestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]) native;
22853 24859
22854 @JSName('webkitResolveLocalFileSystemURL') 24860 @JSName('webkitResolveLocalFileSystemURL')
22855 @DocsEditable @DomName('DOMWindow.webkitResolveLocalFileSystemURL') @Supported Browser(SupportedBrowser.CHROME) @Experimental() 24861 @DocsEditable
24862 @DomName('DOMWindow.webkitResolveLocalFileSystemURL')
24863 @SupportedBrowser(SupportedBrowser.CHROME)
24864 @Experimental()
22856 void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [Err orCallback errorCallback]) native; 24865 void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [Err orCallback errorCallback]) native;
22857 24866
22858 Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this); 24867 Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this);
22859 24868
22860 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); 24869 Stream<Event> get onAbort => Element.abortEvent.forTarget(this);
22861 24870
22862 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); 24871 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this);
22863 24872
22864 Stream<Event> get onBlur => Element.blurEvent.forTarget(this); 24873 Stream<Event> get onBlur => Element.blurEvent.forTarget(this);
22865 24874
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
23217 if (?messagePorts) { 25226 if (?messagePorts) {
23218 var message_1 = convertDartToNative_SerializedScriptValue(message); 25227 var message_1 = convertDartToNative_SerializedScriptValue(message);
23219 _postMessage_1(message_1, messagePorts); 25228 _postMessage_1(message_1, messagePorts);
23220 return; 25229 return;
23221 } 25230 }
23222 var message_2 = convertDartToNative_SerializedScriptValue(message); 25231 var message_2 = convertDartToNative_SerializedScriptValue(message);
23223 _postMessage_2(message_2); 25232 _postMessage_2(message_2);
23224 return; 25233 return;
23225 } 25234 }
23226 @JSName('postMessage') 25235 @JSName('postMessage')
23227 @DocsEditable @DomName('Worker.postMessage') 25236 @DocsEditable
25237 @DomName('Worker.postMessage')
23228 void _postMessage_1(message, List messagePorts) native; 25238 void _postMessage_1(message, List messagePorts) native;
23229 @JSName('postMessage') 25239 @JSName('postMessage')
23230 @DocsEditable @DomName('Worker.postMessage') 25240 @DocsEditable
25241 @DomName('Worker.postMessage')
23231 void _postMessage_2(message) native; 25242 void _postMessage_2(message) native;
23232 25243
23233 @DocsEditable @DomName('Worker.terminate') 25244 @DocsEditable
25245 @DomName('Worker.terminate')
23234 void terminate() native; 25246 void terminate() native;
23235 25247
23236 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 25248 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
23237 } 25249 }
23238 25250
23239 @DocsEditable 25251 @DocsEditable
23240 class WorkerEvents extends AbstractWorkerEvents { 25252 class WorkerEvents extends AbstractWorkerEvents {
23241 @DocsEditable 25253 @DocsEditable
23242 WorkerEvents(EventTarget _ptr) : super(_ptr); 25254 WorkerEvents(EventTarget _ptr) : super(_ptr);
23243 25255
(...skipping 13 matching lines...) Expand all
23257 25269
23258 @DocsEditable 25270 @DocsEditable
23259 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 25271 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
23260 WorkerContextEvents get on => 25272 WorkerContextEvents get on =>
23261 new WorkerContextEvents(this); 25273 new WorkerContextEvents(this);
23262 25274
23263 static const int PERSISTENT = 1; 25275 static const int PERSISTENT = 1;
23264 25276
23265 static const int TEMPORARY = 0; 25277 static const int TEMPORARY = 0;
23266 25278
23267 @DocsEditable @DomName('WorkerContext.location') 25279 @DocsEditable
25280 @DomName('WorkerContext.location')
23268 final WorkerLocation location; 25281 final WorkerLocation location;
23269 25282
23270 @DocsEditable @DomName('WorkerContext.navigator') 25283 @DocsEditable
25284 @DomName('WorkerContext.navigator')
23271 final WorkerNavigator navigator; 25285 final WorkerNavigator navigator;
23272 25286
23273 @DocsEditable @DomName('WorkerContext.self') 25287 @DocsEditable
25288 @DomName('WorkerContext.self')
23274 final WorkerContext self; 25289 final WorkerContext self;
23275 25290
23276 @DocsEditable @DomName('WorkerContext.webkitNotifications') 25291 @DocsEditable
25292 @DomName('WorkerContext.webkitNotifications')
23277 final NotificationCenter webkitNotifications; 25293 final NotificationCenter webkitNotifications;
23278 25294
23279 @JSName('addEventListener') 25295 @JSName('addEventListener')
23280 @DocsEditable @DomName('WorkerContext.addEventListener') 25296 @DocsEditable
25297 @DomName('WorkerContext.addEventListener')
23281 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 25298 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
23282 25299
23283 @DocsEditable @DomName('WorkerContext.clearInterval') 25300 @DocsEditable
25301 @DomName('WorkerContext.clearInterval')
23284 void clearInterval(int handle) native; 25302 void clearInterval(int handle) native;
23285 25303
23286 @DocsEditable @DomName('WorkerContext.clearTimeout') 25304 @DocsEditable
25305 @DomName('WorkerContext.clearTimeout')
23287 void clearTimeout(int handle) native; 25306 void clearTimeout(int handle) native;
23288 25307
23289 @DocsEditable @DomName('WorkerContext.close') 25308 @DocsEditable
25309 @DomName('WorkerContext.close')
23290 void close() native; 25310 void close() native;
23291 25311
23292 @JSName('dispatchEvent') 25312 @JSName('dispatchEvent')
23293 @DocsEditable @DomName('WorkerContext.dispatchEvent') 25313 @DocsEditable
25314 @DomName('WorkerContext.dispatchEvent')
23294 bool $dom_dispatchEvent(Event evt) native; 25315 bool $dom_dispatchEvent(Event evt) native;
23295 25316
23296 @DocsEditable @DomName('WorkerContext.importScripts') 25317 @DocsEditable
25318 @DomName('WorkerContext.importScripts')
23297 void importScripts() native; 25319 void importScripts() native;
23298 25320
23299 @DocsEditable @DomName('WorkerContext.openDatabase') 25321 @DocsEditable
25322 @DomName('WorkerContext.openDatabase')
23300 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 25323 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
23301 25324
23302 @DocsEditable @DomName('WorkerContext.openDatabaseSync') 25325 @DocsEditable
25326 @DomName('WorkerContext.openDatabaseSync')
23303 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native; 25327 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
23304 25328
23305 @JSName('removeEventListener') 25329 @JSName('removeEventListener')
23306 @DocsEditable @DomName('WorkerContext.removeEventListener') 25330 @DocsEditable
25331 @DomName('WorkerContext.removeEventListener')
23307 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 25332 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
23308 25333
23309 @DocsEditable @DomName('WorkerContext.setInterval') 25334 @DocsEditable
25335 @DomName('WorkerContext.setInterval')
23310 int setInterval(TimeoutHandler handler, int timeout) native; 25336 int setInterval(TimeoutHandler handler, int timeout) native;
23311 25337
23312 @DocsEditable @DomName('WorkerContext.setTimeout') 25338 @DocsEditable
25339 @DomName('WorkerContext.setTimeout')
23313 int setTimeout(TimeoutHandler handler, int timeout) native; 25340 int setTimeout(TimeoutHandler handler, int timeout) native;
23314 25341
23315 @JSName('webkitRequestFileSystem') 25342 @JSName('webkitRequestFileSystem')
23316 @DocsEditable @DomName('WorkerContext.webkitRequestFileSystem') @SupportedBrow ser(SupportedBrowser.CHROME) @Experimental() 25343 @DocsEditable
25344 @DomName('WorkerContext.webkitRequestFileSystem')
25345 @SupportedBrowser(SupportedBrowser.CHROME)
25346 @Experimental()
23317 void requestFileSystem(int type, int size, [FileSystemCallback successCallback , ErrorCallback errorCallback]) native; 25347 void requestFileSystem(int type, int size, [FileSystemCallback successCallback , ErrorCallback errorCallback]) native;
23318 25348
23319 @JSName('webkitRequestFileSystemSync') 25349 @JSName('webkitRequestFileSystemSync')
23320 @DocsEditable @DomName('WorkerContext.webkitRequestFileSystemSync') @Supported Browser(SupportedBrowser.CHROME) @Experimental() 25350 @DocsEditable
25351 @DomName('WorkerContext.webkitRequestFileSystemSync')
25352 @SupportedBrowser(SupportedBrowser.CHROME)
25353 @Experimental()
23321 FileSystemSync requestFileSystemSync(int type, int size) native; 25354 FileSystemSync requestFileSystemSync(int type, int size) native;
23322 25355
23323 @JSName('webkitResolveLocalFileSystemSyncURL') 25356 @JSName('webkitResolveLocalFileSystemSyncURL')
23324 @DocsEditable @DomName('WorkerContext.webkitResolveLocalFileSystemSyncURL') @S upportedBrowser(SupportedBrowser.CHROME) @Experimental() 25357 @DocsEditable
25358 @DomName('WorkerContext.webkitResolveLocalFileSystemSyncURL')
25359 @SupportedBrowser(SupportedBrowser.CHROME)
25360 @Experimental()
23325 EntrySync resolveLocalFileSystemSyncUrl(String url) native; 25361 EntrySync resolveLocalFileSystemSyncUrl(String url) native;
23326 25362
23327 @JSName('webkitResolveLocalFileSystemURL') 25363 @JSName('webkitResolveLocalFileSystemURL')
23328 @DocsEditable @DomName('WorkerContext.webkitResolveLocalFileSystemURL') @Suppo rtedBrowser(SupportedBrowser.CHROME) @Experimental() 25364 @DocsEditable
25365 @DomName('WorkerContext.webkitResolveLocalFileSystemURL')
25366 @SupportedBrowser(SupportedBrowser.CHROME)
25367 @Experimental()
23329 void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [Err orCallback errorCallback]) native; 25368 void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [Err orCallback errorCallback]) native;
23330 25369
23331 Stream<Event> get onError => errorEvent.forTarget(this); 25370 Stream<Event> get onError => errorEvent.forTarget(this);
23332 25371
23333 25372
23334 /** 25373 /**
23335 * Gets an instance of the Indexed DB factory to being using Indexed DB. 25374 * Gets an instance of the Indexed DB factory to being using Indexed DB.
23336 * 25375 *
23337 * Use [IdbFactory.supported] to check if Indexed DB is supported on the 25376 * Use [IdbFactory.supported] to check if Indexed DB is supported on the
23338 * current platform. 25377 * current platform.
(...skipping 19 matching lines...) Expand all
23358 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23359 // for details. All rights reserved. Use of this source code is governed by a 25398 // for details. All rights reserved. Use of this source code is governed by a
23360 // BSD-style license that can be found in the LICENSE file. 25399 // BSD-style license that can be found in the LICENSE file.
23361 25400
23362 25401
23363 25402
23364 @DocsEditable 25403 @DocsEditable
23365 @DomName('WorkerLocation') 25404 @DomName('WorkerLocation')
23366 class WorkerLocation native "*WorkerLocation" { 25405 class WorkerLocation native "*WorkerLocation" {
23367 25406
23368 @DocsEditable @DomName('WorkerLocation.hash') 25407 @DocsEditable
25408 @DomName('WorkerLocation.hash')
23369 final String hash; 25409 final String hash;
23370 25410
23371 @DocsEditable @DomName('WorkerLocation.host') 25411 @DocsEditable
25412 @DomName('WorkerLocation.host')
23372 final String host; 25413 final String host;
23373 25414
23374 @DocsEditable @DomName('WorkerLocation.hostname') 25415 @DocsEditable
25416 @DomName('WorkerLocation.hostname')
23375 final String hostname; 25417 final String hostname;
23376 25418
23377 @DocsEditable @DomName('WorkerLocation.href') 25419 @DocsEditable
25420 @DomName('WorkerLocation.href')
23378 final String href; 25421 final String href;
23379 25422
23380 @DocsEditable @DomName('WorkerLocation.pathname') 25423 @DocsEditable
25424 @DomName('WorkerLocation.pathname')
23381 final String pathname; 25425 final String pathname;
23382 25426
23383 @DocsEditable @DomName('WorkerLocation.port') 25427 @DocsEditable
25428 @DomName('WorkerLocation.port')
23384 final String port; 25429 final String port;
23385 25430
23386 @DocsEditable @DomName('WorkerLocation.protocol') 25431 @DocsEditable
25432 @DomName('WorkerLocation.protocol')
23387 final String protocol; 25433 final String protocol;
23388 25434
23389 @DocsEditable @DomName('WorkerLocation.search') 25435 @DocsEditable
25436 @DomName('WorkerLocation.search')
23390 final String search; 25437 final String search;
23391 25438
23392 @DocsEditable @DomName('WorkerLocation.toString') 25439 @DocsEditable
25440 @DomName('WorkerLocation.toString')
23393 String toString() native; 25441 String toString() native;
23394 } 25442 }
23395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23396 // for details. All rights reserved. Use of this source code is governed by a 25444 // for details. All rights reserved. Use of this source code is governed by a
23397 // BSD-style license that can be found in the LICENSE file. 25445 // BSD-style license that can be found in the LICENSE file.
23398 25446
23399 25447
23400 25448
23401 @DocsEditable 25449 @DocsEditable
23402 @DomName('WorkerNavigator') 25450 @DomName('WorkerNavigator')
23403 class WorkerNavigator native "*WorkerNavigator" { 25451 class WorkerNavigator native "*WorkerNavigator" {
23404 25452
23405 @DocsEditable @DomName('WorkerNavigator.appName') 25453 @DocsEditable
25454 @DomName('WorkerNavigator.appName')
23406 final String appName; 25455 final String appName;
23407 25456
23408 @DocsEditable @DomName('WorkerNavigator.appVersion') 25457 @DocsEditable
25458 @DomName('WorkerNavigator.appVersion')
23409 final String appVersion; 25459 final String appVersion;
23410 25460
23411 @DocsEditable @DomName('WorkerNavigator.onLine') 25461 @DocsEditable
25462 @DomName('WorkerNavigator.onLine')
23412 final bool onLine; 25463 final bool onLine;
23413 25464
23414 @DocsEditable @DomName('WorkerNavigator.platform') 25465 @DocsEditable
25466 @DomName('WorkerNavigator.platform')
23415 final String platform; 25467 final String platform;
23416 25468
23417 @DocsEditable @DomName('WorkerNavigator.userAgent') 25469 @DocsEditable
25470 @DomName('WorkerNavigator.userAgent')
23418 final String userAgent; 25471 final String userAgent;
23419 } 25472 }
23420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23421 // for details. All rights reserved. Use of this source code is governed by a 25474 // for details. All rights reserved. Use of this source code is governed by a
23422 // BSD-style license that can be found in the LICENSE file. 25475 // BSD-style license that can be found in the LICENSE file.
23423 25476
23424 25477
23425 25478
23426 @DocsEditable 25479 @DocsEditable
23427 @DomName('XPathEvaluator') 25480 @DomName('XPathEvaluator')
23428 class XPathEvaluator native "*XPathEvaluator" { 25481 class XPathEvaluator native "*XPathEvaluator" {
23429 25482
23430 @DocsEditable 25483 @DocsEditable
23431 factory XPathEvaluator() => XPathEvaluator._create(); 25484 factory XPathEvaluator() => XPathEvaluator._create();
23432 static XPathEvaluator _create() => JS('XPathEvaluator', 'new XPathEvaluator()' ); 25485 static XPathEvaluator _create() => JS('XPathEvaluator', 'new XPathEvaluator()' );
23433 25486
23434 @DocsEditable @DomName('XPathEvaluator.createExpression') 25487 @DocsEditable
25488 @DomName('XPathEvaluator.createExpression')
23435 XPathExpression createExpression(String expression, XPathNSResolver resolver) native; 25489 XPathExpression createExpression(String expression, XPathNSResolver resolver) native;
23436 25490
23437 @DocsEditable @DomName('XPathEvaluator.createNSResolver') 25491 @DocsEditable
25492 @DomName('XPathEvaluator.createNSResolver')
23438 XPathNSResolver createNSResolver(Node nodeResolver) native; 25493 XPathNSResolver createNSResolver(Node nodeResolver) native;
23439 25494
23440 @DocsEditable @DomName('XPathEvaluator.evaluate') 25495 @DocsEditable
25496 @DomName('XPathEvaluator.evaluate')
23441 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native; 25497 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native;
23442 } 25498 }
23443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23444 // for details. All rights reserved. Use of this source code is governed by a 25500 // for details. All rights reserved. Use of this source code is governed by a
23445 // BSD-style license that can be found in the LICENSE file. 25501 // BSD-style license that can be found in the LICENSE file.
23446 25502
23447 25503
23448 25504
23449 @DocsEditable 25505 @DocsEditable
23450 @DomName('XPathException') 25506 @DomName('XPathException')
23451 class XPathException native "*XPathException" { 25507 class XPathException native "*XPathException" {
23452 25508
23453 static const int INVALID_EXPRESSION_ERR = 51; 25509 static const int INVALID_EXPRESSION_ERR = 51;
23454 25510
23455 static const int TYPE_ERR = 52; 25511 static const int TYPE_ERR = 52;
23456 25512
23457 @DocsEditable @DomName('XPathException.code') 25513 @DocsEditable
25514 @DomName('XPathException.code')
23458 final int code; 25515 final int code;
23459 25516
23460 @DocsEditable @DomName('XPathException.message') 25517 @DocsEditable
25518 @DomName('XPathException.message')
23461 final String message; 25519 final String message;
23462 25520
23463 @DocsEditable @DomName('XPathException.name') 25521 @DocsEditable
25522 @DomName('XPathException.name')
23464 final String name; 25523 final String name;
23465 25524
23466 @DocsEditable @DomName('XPathException.toString') 25525 @DocsEditable
25526 @DomName('XPathException.toString')
23467 String toString() native; 25527 String toString() native;
23468 } 25528 }
23469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23470 // for details. All rights reserved. Use of this source code is governed by a 25530 // for details. All rights reserved. Use of this source code is governed by a
23471 // BSD-style license that can be found in the LICENSE file. 25531 // BSD-style license that can be found in the LICENSE file.
23472 25532
23473 25533
23474 25534
23475 @DocsEditable 25535 @DocsEditable
23476 @DomName('XPathExpression') 25536 @DomName('XPathExpression')
23477 class XPathExpression native "*XPathExpression" { 25537 class XPathExpression native "*XPathExpression" {
23478 25538
23479 @DocsEditable @DomName('XPathExpression.evaluate') 25539 @DocsEditable
25540 @DomName('XPathExpression.evaluate')
23480 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; 25541 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native;
23481 } 25542 }
23482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23483 // for details. All rights reserved. Use of this source code is governed by a 25544 // for details. All rights reserved. Use of this source code is governed by a
23484 // BSD-style license that can be found in the LICENSE file. 25545 // BSD-style license that can be found in the LICENSE file.
23485 25546
23486 25547
23487 25548
23488 @DocsEditable 25549 @DocsEditable
23489 @DomName('XPathNSResolver') 25550 @DomName('XPathNSResolver')
23490 class XPathNSResolver native "*XPathNSResolver" { 25551 class XPathNSResolver native "*XPathNSResolver" {
23491 25552
23492 @JSName('lookupNamespaceURI') 25553 @JSName('lookupNamespaceURI')
23493 @DocsEditable @DomName('XPathNSResolver.lookupNamespaceURI') 25554 @DocsEditable
25555 @DomName('XPathNSResolver.lookupNamespaceURI')
23494 String lookupNamespaceUri(String prefix) native; 25556 String lookupNamespaceUri(String prefix) native;
23495 } 25557 }
23496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23497 // for details. All rights reserved. Use of this source code is governed by a 25559 // for details. All rights reserved. Use of this source code is governed by a
23498 // BSD-style license that can be found in the LICENSE file. 25560 // BSD-style license that can be found in the LICENSE file.
23499 25561
23500 25562
23501 25563
23502 @DocsEditable 25564 @DocsEditable
23503 @DomName('XPathResult') 25565 @DomName('XPathResult')
(...skipping 12 matching lines...) Expand all
23516 static const int ORDERED_NODE_ITERATOR_TYPE = 5; 25578 static const int ORDERED_NODE_ITERATOR_TYPE = 5;
23517 25579
23518 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; 25580 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7;
23519 25581
23520 static const int STRING_TYPE = 2; 25582 static const int STRING_TYPE = 2;
23521 25583
23522 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; 25584 static const int UNORDERED_NODE_ITERATOR_TYPE = 4;
23523 25585
23524 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; 25586 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6;
23525 25587
23526 @DocsEditable @DomName('XPathResult.booleanValue') 25588 @DocsEditable
25589 @DomName('XPathResult.booleanValue')
23527 final bool booleanValue; 25590 final bool booleanValue;
23528 25591
23529 @DocsEditable @DomName('XPathResult.invalidIteratorState') 25592 @DocsEditable
25593 @DomName('XPathResult.invalidIteratorState')
23530 final bool invalidIteratorState; 25594 final bool invalidIteratorState;
23531 25595
23532 @DocsEditable @DomName('XPathResult.numberValue') 25596 @DocsEditable
25597 @DomName('XPathResult.numberValue')
23533 final num numberValue; 25598 final num numberValue;
23534 25599
23535 @DocsEditable @DomName('XPathResult.resultType') 25600 @DocsEditable
25601 @DomName('XPathResult.resultType')
23536 final int resultType; 25602 final int resultType;
23537 25603
23538 @DocsEditable @DomName('XPathResult.singleNodeValue') 25604 @DocsEditable
25605 @DomName('XPathResult.singleNodeValue')
23539 final Node singleNodeValue; 25606 final Node singleNodeValue;
23540 25607
23541 @DocsEditable @DomName('XPathResult.snapshotLength') 25608 @DocsEditable
25609 @DomName('XPathResult.snapshotLength')
23542 final int snapshotLength; 25610 final int snapshotLength;
23543 25611
23544 @DocsEditable @DomName('XPathResult.stringValue') 25612 @DocsEditable
25613 @DomName('XPathResult.stringValue')
23545 final String stringValue; 25614 final String stringValue;
23546 25615
23547 @DocsEditable @DomName('XPathResult.iterateNext') 25616 @DocsEditable
25617 @DomName('XPathResult.iterateNext')
23548 Node iterateNext() native; 25618 Node iterateNext() native;
23549 25619
23550 @DocsEditable @DomName('XPathResult.snapshotItem') 25620 @DocsEditable
25621 @DomName('XPathResult.snapshotItem')
23551 Node snapshotItem(int index) native; 25622 Node snapshotItem(int index) native;
23552 } 25623 }
23553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23554 // for details. All rights reserved. Use of this source code is governed by a 25625 // for details. All rights reserved. Use of this source code is governed by a
23555 // BSD-style license that can be found in the LICENSE file. 25626 // BSD-style license that can be found in the LICENSE file.
23556 25627
23557 25628
23558 25629
23559 @DocsEditable 25630 @DocsEditable
23560 @DomName('XMLSerializer') 25631 @DomName('XMLSerializer')
23561 class XmlSerializer native "*XMLSerializer" { 25632 class XmlSerializer native "*XMLSerializer" {
23562 25633
23563 @DocsEditable 25634 @DocsEditable
23564 factory XmlSerializer() => XmlSerializer._create(); 25635 factory XmlSerializer() => XmlSerializer._create();
23565 static XmlSerializer _create() => JS('XmlSerializer', 'new XMLSerializer()'); 25636 static XmlSerializer _create() => JS('XmlSerializer', 'new XMLSerializer()');
23566 25637
23567 @DocsEditable @DomName('XMLSerializer.serializeToString') 25638 @DocsEditable
25639 @DomName('XMLSerializer.serializeToString')
23568 String serializeToString(Node node) native; 25640 String serializeToString(Node node) native;
23569 } 25641 }
23570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23571 // for details. All rights reserved. Use of this source code is governed by a 25643 // for details. All rights reserved. Use of this source code is governed by a
23572 // BSD-style license that can be found in the LICENSE file. 25644 // BSD-style license that can be found in the LICENSE file.
23573 25645
23574 25646
23575 25647
23576 @DocsEditable 25648 @DocsEditable
23577 @DomName('XSLTProcessor') 25649 @DomName('XSLTProcessor')
23578 class XsltProcessor native "*XSLTProcessor" { 25650 class XsltProcessor native "*XSLTProcessor" {
23579 25651
23580 @DocsEditable 25652 @DocsEditable
23581 factory XsltProcessor() => XsltProcessor._create(); 25653 factory XsltProcessor() => XsltProcessor._create();
23582 static XsltProcessor _create() => JS('XsltProcessor', 'new XSLTProcessor()'); 25654 static XsltProcessor _create() => JS('XsltProcessor', 'new XSLTProcessor()');
23583 25655
23584 @DocsEditable @DomName('XSLTProcessor.clearParameters') 25656 @DocsEditable
25657 @DomName('XSLTProcessor.clearParameters')
23585 void clearParameters() native; 25658 void clearParameters() native;
23586 25659
23587 @DocsEditable @DomName('XSLTProcessor.getParameter') 25660 @DocsEditable
25661 @DomName('XSLTProcessor.getParameter')
23588 String getParameter(String namespaceURI, String localName) native; 25662 String getParameter(String namespaceURI, String localName) native;
23589 25663
23590 @DocsEditable @DomName('XSLTProcessor.importStylesheet') 25664 @DocsEditable
25665 @DomName('XSLTProcessor.importStylesheet')
23591 void importStylesheet(Node stylesheet) native; 25666 void importStylesheet(Node stylesheet) native;
23592 25667
23593 @DocsEditable @DomName('XSLTProcessor.removeParameter') 25668 @DocsEditable
25669 @DomName('XSLTProcessor.removeParameter')
23594 void removeParameter(String namespaceURI, String localName) native; 25670 void removeParameter(String namespaceURI, String localName) native;
23595 25671
23596 @DocsEditable @DomName('XSLTProcessor.reset') 25672 @DocsEditable
25673 @DomName('XSLTProcessor.reset')
23597 void reset() native; 25674 void reset() native;
23598 25675
23599 @DocsEditable @DomName('XSLTProcessor.setParameter') 25676 @DocsEditable
25677 @DomName('XSLTProcessor.setParameter')
23600 void setParameter(String namespaceURI, String localName, String value) native; 25678 void setParameter(String namespaceURI, String localName, String value) native;
23601 25679
23602 @DocsEditable @DomName('XSLTProcessor.transformToDocument') 25680 @DocsEditable
25681 @DomName('XSLTProcessor.transformToDocument')
23603 Document transformToDocument(Node source) native; 25682 Document transformToDocument(Node source) native;
23604 25683
23605 @DocsEditable @DomName('XSLTProcessor.transformToFragment') 25684 @DocsEditable
25685 @DomName('XSLTProcessor.transformToFragment')
23606 DocumentFragment transformToFragment(Node source, Document docVal) native; 25686 DocumentFragment transformToFragment(Node source, Document docVal) native;
23607 } 25687 }
23608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23609 // for details. All rights reserved. Use of this source code is governed by a 25689 // for details. All rights reserved. Use of this source code is governed by a
23610 // BSD-style license that can be found in the LICENSE file. 25690 // BSD-style license that can be found in the LICENSE file.
23611 25691
23612 25692
23613 25693
23614 @DocsEditable 25694 @DocsEditable
23615 @DomName('HTMLAppletElement') 25695 @DomName('HTMLAppletElement')
(...skipping 12 matching lines...) Expand all
23628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23629 // for details. All rights reserved. Use of this source code is governed by a 25709 // for details. All rights reserved. Use of this source code is governed by a
23630 // BSD-style license that can be found in the LICENSE file. 25710 // BSD-style license that can be found in the LICENSE file.
23631 25711
23632 25712
23633 25713
23634 @DocsEditable 25714 @DocsEditable
23635 @DomName('ClientRectList') 25715 @DomName('ClientRectList')
23636 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na tive "*ClientRectList" { 25716 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na tive "*ClientRectList" {
23637 25717
23638 @DocsEditable @DomName('ClientRectList.length') 25718 @DocsEditable
25719 @DomName('ClientRectList.length')
23639 int get length => JS("int", "#.length", this); 25720 int get length => JS("int", "#.length", this);
23640 25721
23641 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); 25722 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index);
23642 25723
23643 void operator[]=(int index, ClientRect value) { 25724 void operator[]=(int index, ClientRect value) {
23644 throw new UnsupportedError("Cannot assign element of immutable List."); 25725 throw new UnsupportedError("Cannot assign element of immutable List.");
23645 } 25726 }
23646 // -- start List<ClientRect> mixins. 25727 // -- start List<ClientRect> mixins.
23647 // ClientRect is the element type. 25728 // ClientRect is the element type.
23648 25729
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
23779 25860
23780 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { 25861 void insertRange(int start, int rangeLength, [ClientRect initialValue]) {
23781 throw new UnsupportedError("Cannot insertRange on immutable List."); 25862 throw new UnsupportedError("Cannot insertRange on immutable List.");
23782 } 25863 }
23783 25864
23784 List<ClientRect> getRange(int start, int rangeLength) => 25865 List<ClientRect> getRange(int start, int rangeLength) =>
23785 Lists.getRange(this, start, rangeLength, <ClientRect>[]); 25866 Lists.getRange(this, start, rangeLength, <ClientRect>[]);
23786 25867
23787 // -- end List<ClientRect> mixins. 25868 // -- end List<ClientRect> mixins.
23788 25869
23789 @DocsEditable @DomName('ClientRectList.item') 25870 @DocsEditable
25871 @DomName('ClientRectList.item')
23790 ClientRect item(int index) native; 25872 ClientRect item(int index) native;
23791 } 25873 }
23792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23793 // for details. All rights reserved. Use of this source code is governed by a 25875 // for details. All rights reserved. Use of this source code is governed by a
23794 // BSD-style license that can be found in the LICENSE file. 25876 // BSD-style license that can be found in the LICENSE file.
23795 25877
23796 25878
23797 25879
23798 @DocsEditable 25880 @DocsEditable
23799 @DomName('CSSRuleList') 25881 @DomName('CSSRuleList')
23800 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native " *CSSRuleList" { 25882 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native " *CSSRuleList" {
23801 25883
23802 @DocsEditable @DomName('CSSRuleList.length') 25884 @DocsEditable
25885 @DomName('CSSRuleList.length')
23803 int get length => JS("int", "#.length", this); 25886 int get length => JS("int", "#.length", this);
23804 25887
23805 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); 25888 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index);
23806 25889
23807 void operator[]=(int index, CssRule value) { 25890 void operator[]=(int index, CssRule value) {
23808 throw new UnsupportedError("Cannot assign element of immutable List."); 25891 throw new UnsupportedError("Cannot assign element of immutable List.");
23809 } 25892 }
23810 // -- start List<CssRule> mixins. 25893 // -- start List<CssRule> mixins.
23811 // CssRule is the element type. 25894 // CssRule is the element type.
23812 25895
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
23943 26026
23944 void insertRange(int start, int rangeLength, [CssRule initialValue]) { 26027 void insertRange(int start, int rangeLength, [CssRule initialValue]) {
23945 throw new UnsupportedError("Cannot insertRange on immutable List."); 26028 throw new UnsupportedError("Cannot insertRange on immutable List.");
23946 } 26029 }
23947 26030
23948 List<CssRule> getRange(int start, int rangeLength) => 26031 List<CssRule> getRange(int start, int rangeLength) =>
23949 Lists.getRange(this, start, rangeLength, <CssRule>[]); 26032 Lists.getRange(this, start, rangeLength, <CssRule>[]);
23950 26033
23951 // -- end List<CssRule> mixins. 26034 // -- end List<CssRule> mixins.
23952 26035
23953 @DocsEditable @DomName('CSSRuleList.item') 26036 @DocsEditable
26037 @DomName('CSSRuleList.item')
23954 CssRule item(int index) native; 26038 CssRule item(int index) native;
23955 } 26039 }
23956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23957 // for details. All rights reserved. Use of this source code is governed by a 26041 // for details. All rights reserved. Use of this source code is governed by a
23958 // BSD-style license that can be found in the LICENSE file. 26042 // BSD-style license that can be found in the LICENSE file.
23959 26043
23960 26044
23961 26045
23962 @DocsEditable 26046 @DocsEditable
23963 @DomName('CSSValueList') 26047 @DomName('CSSValueList')
23964 class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi ngBehavior native "*CSSValueList" { 26048 class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi ngBehavior native "*CSSValueList" {
23965 26049
23966 @DocsEditable @DomName('CSSValueList.length') 26050 @DocsEditable
26051 @DomName('CSSValueList.length')
23967 int get length => JS("int", "#.length", this); 26052 int get length => JS("int", "#.length", this);
23968 26053
23969 CssValue operator[](int index) => JS("CssValue", "#[#]", this, index); 26054 CssValue operator[](int index) => JS("CssValue", "#[#]", this, index);
23970 26055
23971 void operator[]=(int index, CssValue value) { 26056 void operator[]=(int index, CssValue value) {
23972 throw new UnsupportedError("Cannot assign element of immutable List."); 26057 throw new UnsupportedError("Cannot assign element of immutable List.");
23973 } 26058 }
23974 // -- start List<CssValue> mixins. 26059 // -- start List<CssValue> mixins.
23975 // CssValue is the element type. 26060 // CssValue is the element type.
23976 26061
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
24107 26192
24108 void insertRange(int start, int rangeLength, [CssValue initialValue]) { 26193 void insertRange(int start, int rangeLength, [CssValue initialValue]) {
24109 throw new UnsupportedError("Cannot insertRange on immutable List."); 26194 throw new UnsupportedError("Cannot insertRange on immutable List.");
24110 } 26195 }
24111 26196
24112 List<CssValue> getRange(int start, int rangeLength) => 26197 List<CssValue> getRange(int start, int rangeLength) =>
24113 Lists.getRange(this, start, rangeLength, <CssValue>[]); 26198 Lists.getRange(this, start, rangeLength, <CssValue>[]);
24114 26199
24115 // -- end List<CssValue> mixins. 26200 // -- end List<CssValue> mixins.
24116 26201
24117 @DocsEditable @DomName('CSSValueList.item') 26202 @DocsEditable
26203 @DomName('CSSValueList.item')
24118 CssValue item(int index) native; 26204 CssValue item(int index) native;
24119 } 26205 }
24120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24121 // for details. All rights reserved. Use of this source code is governed by a 26207 // for details. All rights reserved. Use of this source code is governed by a
24122 // BSD-style license that can be found in the LICENSE file. 26208 // BSD-style license that can be found in the LICENSE file.
24123 26209
24124 26210
24125 26211
24126 @DocsEditable 26212 @DocsEditable
24127 @DomName('HTMLDirectoryElement') 26213 @DomName('HTMLDirectoryElement')
24128 class _DirectoryElement extends Element native "*HTMLDirectoryElement" { 26214 class _DirectoryElement extends Element native "*HTMLDirectoryElement" {
24129 } 26215 }
24130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24131 // for details. All rights reserved. Use of this source code is governed by a 26217 // for details. All rights reserved. Use of this source code is governed by a
24132 // BSD-style license that can be found in the LICENSE file. 26218 // BSD-style license that can be found in the LICENSE file.
24133 26219
24134 26220
24135 26221
24136 @DocsEditable 26222 @DocsEditable
24137 @DomName('EntryArray') 26223 @DomName('EntryArray')
24138 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 26224 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" {
24139 26225
24140 @DocsEditable @DomName('EntryArray.length') 26226 @DocsEditable
26227 @DomName('EntryArray.length')
24141 int get length => JS("int", "#.length", this); 26228 int get length => JS("int", "#.length", this);
24142 26229
24143 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 26230 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
24144 26231
24145 void operator[]=(int index, Entry value) { 26232 void operator[]=(int index, Entry value) {
24146 throw new UnsupportedError("Cannot assign element of immutable List."); 26233 throw new UnsupportedError("Cannot assign element of immutable List.");
24147 } 26234 }
24148 // -- start List<Entry> mixins. 26235 // -- start List<Entry> mixins.
24149 // Entry is the element type. 26236 // Entry is the element type.
24150 26237
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
24281 26368
24282 void insertRange(int start, int rangeLength, [Entry initialValue]) { 26369 void insertRange(int start, int rangeLength, [Entry initialValue]) {
24283 throw new UnsupportedError("Cannot insertRange on immutable List."); 26370 throw new UnsupportedError("Cannot insertRange on immutable List.");
24284 } 26371 }
24285 26372
24286 List<Entry> getRange(int start, int rangeLength) => 26373 List<Entry> getRange(int start, int rangeLength) =>
24287 Lists.getRange(this, start, rangeLength, <Entry>[]); 26374 Lists.getRange(this, start, rangeLength, <Entry>[]);
24288 26375
24289 // -- end List<Entry> mixins. 26376 // -- end List<Entry> mixins.
24290 26377
24291 @DocsEditable @DomName('EntryArray.item') 26378 @DocsEditable
26379 @DomName('EntryArray.item')
24292 Entry item(int index) native; 26380 Entry item(int index) native;
24293 } 26381 }
24294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24295 // for details. All rights reserved. Use of this source code is governed by a 26383 // for details. All rights reserved. Use of this source code is governed by a
24296 // BSD-style license that can be found in the LICENSE file. 26384 // BSD-style license that can be found in the LICENSE file.
24297 26385
24298 26386
24299 26387
24300 @DocsEditable 26388 @DocsEditable
24301 @DomName('EntryArraySync') 26389 @DomName('EntryArraySync')
24302 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat ive "*EntryArraySync" { 26390 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat ive "*EntryArraySync" {
24303 26391
24304 @DocsEditable @DomName('EntryArraySync.length') 26392 @DocsEditable
26393 @DomName('EntryArraySync.length')
24305 int get length => JS("int", "#.length", this); 26394 int get length => JS("int", "#.length", this);
24306 26395
24307 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); 26396 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index);
24308 26397
24309 void operator[]=(int index, EntrySync value) { 26398 void operator[]=(int index, EntrySync value) {
24310 throw new UnsupportedError("Cannot assign element of immutable List."); 26399 throw new UnsupportedError("Cannot assign element of immutable List.");
24311 } 26400 }
24312 // -- start List<EntrySync> mixins. 26401 // -- start List<EntrySync> mixins.
24313 // EntrySync is the element type. 26402 // EntrySync is the element type.
24314 26403
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
24445 26534
24446 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { 26535 void insertRange(int start, int rangeLength, [EntrySync initialValue]) {
24447 throw new UnsupportedError("Cannot insertRange on immutable List."); 26536 throw new UnsupportedError("Cannot insertRange on immutable List.");
24448 } 26537 }
24449 26538
24450 List<EntrySync> getRange(int start, int rangeLength) => 26539 List<EntrySync> getRange(int start, int rangeLength) =>
24451 Lists.getRange(this, start, rangeLength, <EntrySync>[]); 26540 Lists.getRange(this, start, rangeLength, <EntrySync>[]);
24452 26541
24453 // -- end List<EntrySync> mixins. 26542 // -- end List<EntrySync> mixins.
24454 26543
24455 @DocsEditable @DomName('EntryArraySync.item') 26544 @DocsEditable
26545 @DomName('EntryArraySync.item')
24456 EntrySync item(int index) native; 26546 EntrySync item(int index) native;
24457 } 26547 }
24458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24459 // for details. All rights reserved. Use of this source code is governed by a 26549 // for details. All rights reserved. Use of this source code is governed by a
24460 // BSD-style license that can be found in the LICENSE file. 26550 // BSD-style license that can be found in the LICENSE file.
24461 26551
24462 26552
24463 26553
24464 @DocsEditable 26554 @DocsEditable
24465 @DomName('HTMLFontElement') 26555 @DomName('HTMLFontElement')
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
24538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24539 // for details. All rights reserved. Use of this source code is governed by a 26629 // for details. All rights reserved. Use of this source code is governed by a
24540 // BSD-style license that can be found in the LICENSE file. 26630 // BSD-style license that can be found in the LICENSE file.
24541 26631
24542 26632
24543 26633
24544 @DocsEditable 26634 @DocsEditable
24545 @DomName('GamepadList') 26635 @DomName('GamepadList')
24546 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" { 26636 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" {
24547 26637
24548 @DocsEditable @DomName('GamepadList.length') 26638 @DocsEditable
26639 @DomName('GamepadList.length')
24549 int get length => JS("int", "#.length", this); 26640 int get length => JS("int", "#.length", this);
24550 26641
24551 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); 26642 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index);
24552 26643
24553 void operator[]=(int index, Gamepad value) { 26644 void operator[]=(int index, Gamepad value) {
24554 throw new UnsupportedError("Cannot assign element of immutable List."); 26645 throw new UnsupportedError("Cannot assign element of immutable List.");
24555 } 26646 }
24556 // -- start List<Gamepad> mixins. 26647 // -- start List<Gamepad> mixins.
24557 // Gamepad is the element type. 26648 // Gamepad is the element type.
24558 26649
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
24689 26780
24690 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { 26781 void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
24691 throw new UnsupportedError("Cannot insertRange on immutable List."); 26782 throw new UnsupportedError("Cannot insertRange on immutable List.");
24692 } 26783 }
24693 26784
24694 List<Gamepad> getRange(int start, int rangeLength) => 26785 List<Gamepad> getRange(int start, int rangeLength) =>
24695 Lists.getRange(this, start, rangeLength, <Gamepad>[]); 26786 Lists.getRange(this, start, rangeLength, <Gamepad>[]);
24696 26787
24697 // -- end List<Gamepad> mixins. 26788 // -- end List<Gamepad> mixins.
24698 26789
24699 @DocsEditable @DomName('GamepadList.item') 26790 @DocsEditable
26791 @DomName('GamepadList.item')
24700 Gamepad item(int index) native; 26792 Gamepad item(int index) native;
24701 } 26793 }
24702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24703 // for details. All rights reserved. Use of this source code is governed by a 26795 // for details. All rights reserved. Use of this source code is governed by a
24704 // BSD-style license that can be found in the LICENSE file. 26796 // BSD-style license that can be found in the LICENSE file.
24705 26797
24706 26798
24707 26799
24708 @DocsEditable 26800 @DocsEditable
24709 @DomName('HTMLMarqueeElement') 26801 @DomName('HTMLMarqueeElement')
24710 class _MarqueeElement extends Element native "*HTMLMarqueeElement" { 26802 class _MarqueeElement extends Element native "*HTMLMarqueeElement" {
24711 } 26803 }
24712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24713 // for details. All rights reserved. Use of this source code is governed by a 26805 // for details. All rights reserved. Use of this source code is governed by a
24714 // BSD-style license that can be found in the LICENSE file. 26806 // BSD-style license that can be found in the LICENSE file.
24715 26807
24716 26808
24717 26809
24718 @DocsEditable 26810 @DocsEditable
24719 @DomName('MediaStreamList') 26811 @DomName('MediaStreamList')
24720 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" { 26812 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" {
24721 26813
24722 @DocsEditable @DomName('MediaStreamList.length') 26814 @DocsEditable
26815 @DomName('MediaStreamList.length')
24723 int get length => JS("int", "#.length", this); 26816 int get length => JS("int", "#.length", this);
24724 26817
24725 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); 26818 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index);
24726 26819
24727 void operator[]=(int index, MediaStream value) { 26820 void operator[]=(int index, MediaStream value) {
24728 throw new UnsupportedError("Cannot assign element of immutable List."); 26821 throw new UnsupportedError("Cannot assign element of immutable List.");
24729 } 26822 }
24730 // -- start List<MediaStream> mixins. 26823 // -- start List<MediaStream> mixins.
24731 // MediaStream is the element type. 26824 // MediaStream is the element type.
24732 26825
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
24863 26956
24864 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { 26957 void insertRange(int start, int rangeLength, [MediaStream initialValue]) {
24865 throw new UnsupportedError("Cannot insertRange on immutable List."); 26958 throw new UnsupportedError("Cannot insertRange on immutable List.");
24866 } 26959 }
24867 26960
24868 List<MediaStream> getRange(int start, int rangeLength) => 26961 List<MediaStream> getRange(int start, int rangeLength) =>
24869 Lists.getRange(this, start, rangeLength, <MediaStream>[]); 26962 Lists.getRange(this, start, rangeLength, <MediaStream>[]);
24870 26963
24871 // -- end List<MediaStream> mixins. 26964 // -- end List<MediaStream> mixins.
24872 26965
24873 @DocsEditable @DomName('MediaStreamList.item') 26966 @DocsEditable
26967 @DomName('MediaStreamList.item')
24874 MediaStream item(int index) native; 26968 MediaStream item(int index) native;
24875 } 26969 }
24876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26970 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24877 // for details. All rights reserved. Use of this source code is governed by a 26971 // for details. All rights reserved. Use of this source code is governed by a
24878 // BSD-style license that can be found in the LICENSE file. 26972 // BSD-style license that can be found in the LICENSE file.
24879 26973
24880 26974
24881 26975
24882 @DocsEditable 26976 @DocsEditable
24883 @DomName('SpeechInputResultList') 26977 @DomName('SpeechInputResultList')
24884 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" { 26978 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" {
24885 26979
24886 @DocsEditable @DomName('SpeechInputResultList.length') 26980 @DocsEditable
26981 @DomName('SpeechInputResultList.length')
24887 int get length => JS("int", "#.length", this); 26982 int get length => JS("int", "#.length", this);
24888 26983
24889 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index); 26984 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index);
24890 26985
24891 void operator[]=(int index, SpeechInputResult value) { 26986 void operator[]=(int index, SpeechInputResult value) {
24892 throw new UnsupportedError("Cannot assign element of immutable List."); 26987 throw new UnsupportedError("Cannot assign element of immutable List.");
24893 } 26988 }
24894 // -- start List<SpeechInputResult> mixins. 26989 // -- start List<SpeechInputResult> mixins.
24895 // SpeechInputResult is the element type. 26990 // SpeechInputResult is the element type.
24896 26991
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
25027 27122
25028 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) { 27123 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
25029 throw new UnsupportedError("Cannot insertRange on immutable List."); 27124 throw new UnsupportedError("Cannot insertRange on immutable List.");
25030 } 27125 }
25031 27126
25032 List<SpeechInputResult> getRange(int start, int rangeLength) => 27127 List<SpeechInputResult> getRange(int start, int rangeLength) =>
25033 Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); 27128 Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]);
25034 27129
25035 // -- end List<SpeechInputResult> mixins. 27130 // -- end List<SpeechInputResult> mixins.
25036 27131
25037 @DocsEditable @DomName('SpeechInputResultList.item') 27132 @DocsEditable
27133 @DomName('SpeechInputResultList.item')
25038 SpeechInputResult item(int index) native; 27134 SpeechInputResult item(int index) native;
25039 } 27135 }
25040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25041 // for details. All rights reserved. Use of this source code is governed by a 27137 // for details. All rights reserved. Use of this source code is governed by a
25042 // BSD-style license that can be found in the LICENSE file. 27138 // BSD-style license that can be found in the LICENSE file.
25043 27139
25044 27140
25045 27141
25046 @DocsEditable 27142 @DocsEditable
25047 @DomName('SpeechRecognitionResultList') 27143 @DomName('SpeechRecognitionResultList')
25048 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" { 27144 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" {
25049 27145
25050 @DocsEditable @DomName('SpeechRecognitionResultList.length') 27146 @DocsEditable
27147 @DomName('SpeechRecognitionResultList.length')
25051 int get length => JS("int", "#.length", this); 27148 int get length => JS("int", "#.length", this);
25052 27149
25053 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index); 27150 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index);
25054 27151
25055 void operator[]=(int index, SpeechRecognitionResult value) { 27152 void operator[]=(int index, SpeechRecognitionResult value) {
25056 throw new UnsupportedError("Cannot assign element of immutable List."); 27153 throw new UnsupportedError("Cannot assign element of immutable List.");
25057 } 27154 }
25058 // -- start List<SpeechRecognitionResult> mixins. 27155 // -- start List<SpeechRecognitionResult> mixins.
25059 // SpeechRecognitionResult is the element type. 27156 // SpeechRecognitionResult is the element type.
25060 27157
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
25191 27288
25192 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV alue]) { 27289 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV alue]) {
25193 throw new UnsupportedError("Cannot insertRange on immutable List."); 27290 throw new UnsupportedError("Cannot insertRange on immutable List.");
25194 } 27291 }
25195 27292
25196 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => 27293 List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
25197 Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); 27294 Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
25198 27295
25199 // -- end List<SpeechRecognitionResult> mixins. 27296 // -- end List<SpeechRecognitionResult> mixins.
25200 27297
25201 @DocsEditable @DomName('SpeechRecognitionResultList.item') 27298 @DocsEditable
27299 @DomName('SpeechRecognitionResultList.item')
25202 SpeechRecognitionResult item(int index) native; 27300 SpeechRecognitionResult item(int index) native;
25203 } 27301 }
25204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25205 // for details. All rights reserved. Use of this source code is governed by a 27303 // for details. All rights reserved. Use of this source code is governed by a
25206 // BSD-style license that can be found in the LICENSE file. 27304 // BSD-style license that can be found in the LICENSE file.
25207 27305
25208 27306
25209 27307
25210 @DocsEditable 27308 @DocsEditable
25211 @DomName('StyleSheetList') 27309 @DomName('StyleSheetList')
25212 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" { 27310 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" {
25213 27311
25214 @DocsEditable @DomName('StyleSheetList.length') 27312 @DocsEditable
27313 @DomName('StyleSheetList.length')
25215 int get length => JS("int", "#.length", this); 27314 int get length => JS("int", "#.length", this);
25216 27315
25217 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); 27316 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
25218 27317
25219 void operator[]=(int index, StyleSheet value) { 27318 void operator[]=(int index, StyleSheet value) {
25220 throw new UnsupportedError("Cannot assign element of immutable List."); 27319 throw new UnsupportedError("Cannot assign element of immutable List.");
25221 } 27320 }
25222 // -- start List<StyleSheet> mixins. 27321 // -- start List<StyleSheet> mixins.
25223 // StyleSheet is the element type. 27322 // StyleSheet is the element type.
25224 27323
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
25355 27454
25356 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { 27455 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
25357 throw new UnsupportedError("Cannot insertRange on immutable List."); 27456 throw new UnsupportedError("Cannot insertRange on immutable List.");
25358 } 27457 }
25359 27458
25360 List<StyleSheet> getRange(int start, int rangeLength) => 27459 List<StyleSheet> getRange(int start, int rangeLength) =>
25361 Lists.getRange(this, start, rangeLength, <StyleSheet>[]); 27460 Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
25362 27461
25363 // -- end List<StyleSheet> mixins. 27462 // -- end List<StyleSheet> mixins.
25364 27463
25365 @DocsEditable @DomName('StyleSheetList.item') 27464 @DocsEditable
27465 @DomName('StyleSheetList.item')
25366 StyleSheet item(int index) native; 27466 StyleSheet item(int index) native;
25367 } 27467 }
25368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25369 // for details. All rights reserved. Use of this source code is governed by a 27469 // for details. All rights reserved. Use of this source code is governed by a
25370 // BSD-style license that can be found in the LICENSE file. 27470 // BSD-style license that can be found in the LICENSE file.
25371 27471
25372 27472
25373 abstract class _AttributeMap implements Map<String, String> { 27473 abstract class _AttributeMap implements Map<String, String> {
25374 final Element _element; 27474 final Element _element;
25375 27475
(...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after
28607 _position = nextPosition; 30707 _position = nextPosition;
28608 return true; 30708 return true;
28609 } 30709 }
28610 _current = null; 30710 _current = null;
28611 _position = _array.length; 30711 _position = _array.length;
28612 return false; 30712 return false;
28613 } 30713 }
28614 30714
28615 T get current => _current; 30715 T get current => _current;
28616 } 30716 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/scripts/generator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698