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 11779024: Fix FrozenElementListIterator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Run go.sh 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') | no next file with comments »
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 7504 matching lines...) Expand 10 before | Expand all | Expand 10 after
7515 } 7515 }
7516 7516
7517 Element max([int compare(Element a, Element b)]) { 7517 Element max([int compare(Element a, Element b)]) {
7518 return _Collections.maxInList(this, compare); 7518 return _Collections.maxInList(this, compare);
7519 } 7519 }
7520 } 7520 }
7521 7521
7522 class _FrozenElementListIterator implements Iterator<Element> { 7522 class _FrozenElementListIterator implements Iterator<Element> {
7523 final _FrozenElementList _list; 7523 final _FrozenElementList _list;
7524 int _index = 0; 7524 int _index = 0;
7525 Element _current;
7525 7526
7526 _FrozenElementListIterator(this._list); 7527 _FrozenElementListIterator(this._list);
7527 7528
7528 /** 7529 /**
7529 * Moves to the next element. Returns true if the iterator is positioned 7530 * Moves to the next element. Returns true if the iterator is positioned
7530 * at an element. Returns false if it is positioned after the last element. 7531 * at an element. Returns false if it is positioned after the last element.
7531 */ 7532 */
7532 bool moveNext() { 7533 bool moveNext() {
7533 int nextIndex = _index + 1; 7534 int nextIndex = _index + 1;
7534 if (nextIndex < _list.length) { 7535 if (nextIndex < _list.length) {
7535 _current = _list[nextIndex]; 7536 _current = _list[nextIndex];
7536 _index = nextIndex; 7537 _index = nextIndex;
7537 return true; 7538 return true;
7538 } 7539 }
7539 _index = _list.length; 7540 _index = _list.length;
7540 _current = null; 7541 _current = null;
7541 return false; 7542 return false;
7542 } 7543 }
7543 7544
7544 /** 7545 /**
7545 * Returns the element the [Iterator] is positioned at. 7546 * Returns the element the [Iterator] is positioned at.
7546 * 7547 *
7547 * Return [:null:] if the iterator is positioned before the first, or 7548 * Return [:null:] if the iterator is positioned before the first, or
7548 * after the last element. 7549 * after the last element.
7549 */ 7550 */
7550 E get current => _current; 7551 Element get current => _current;
7551 } 7552 }
7552 7553
7553 class _ElementCssClassSet extends CssClassSet { 7554 class _ElementCssClassSet extends CssClassSet {
7554 7555
7555 final Element _element; 7556 final Element _element;
7556 7557
7557 _ElementCssClassSet(this._element); 7558 _ElementCssClassSet(this._element);
7558 7559
7559 Set<String> readClasses() { 7560 Set<String> readClasses() {
7560 var s = new Set<String>(); 7561 var s = new Set<String>();
(...skipping 13658 matching lines...) Expand 10 before | Expand all | Expand 10 after
21219 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this); 21220 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this);
21220 num get _detail => JS('num', '#.detail', this); 21221 num get _detail => JS('num', '#.detail', this);
21221 int get _deltaMode => JS('int', '#.deltaMode', this); 21222 int get _deltaMode => JS('int', '#.deltaMode', this);
21222 21223
21223 } 21224 }
21224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21225 // for details. All rights reserved. Use of this source code is governed by a 21226 // for details. All rights reserved. Use of this source code is governed by a
21226 // BSD-style license that can be found in the LICENSE file. 21227 // BSD-style license that can be found in the LICENSE file.
21227 21228
21228 21229
21229 /// @domName Window
21230 class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
21231
21232 Document get document => JS('Document', '#.document', this);
21233
21234 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name);
21235
21236 WindowBase _open3(url, name, options) =>
21237 JS('Window', '#.open(#,#,#)', this, url, name, options);
21238
21239 WindowBase open(String url, String name, [String options]) {
21240 if (options == null) {
21241 return _DOMWindowCrossFrame._createSafe(_open2(url, name));
21242 } else {
21243 return _DOMWindowCrossFrame._createSafe(_open3(url, name, options));
21244 }
21245 }
21246
21247 // API level getter and setter for Location.
21248 // TODO: The cross domain safe wrapper can be inserted here or folded into
21249 // _LocationWrapper.
21250 Location get location {
21251 // Firefox work-around for Location. The Firefox location object cannot be
21252 // made to behave like a Dart object so must be wrapped.
21253 var result = _location;
21254 if (_isDartLocation(result)) return result; // e.g. on Chrome.
21255 if (null == _location_wrapper) {
21256 _location_wrapper = new _LocationWrapper(result);
21257 }
21258 return _location_wrapper;
21259 }
21260
21261 // TODO: consider forcing users to do: window.location.assign('string').
21262 /**
21263 * Sets the window's location, which causes the browser to navigate to the new
21264 * location. [value] may be a Location object or a string.
21265 */
21266 void set location(value) {
21267 if (value is _LocationWrapper) {
21268 _location = value._ptr;
21269 } else {
21270 _location = value;
21271 }
21272 }
21273
21274 _LocationWrapper _location_wrapper; // Cached wrapped Location object.
21275
21276 // Native getter and setter to access raw Location object.
21277 dynamic get _location => JS('Location|=Object', '#.location', this);
21278 void set _location(value) {
21279 JS('void', '#.location = #', this, value);
21280 }
21281 // Prevent compiled from thinking 'location' property is available for a Dart
21282 // member.
21283 @JSName('location')
21284 _protect_location() native;
21285
21286 static _isDartLocation(thing) {
21287 // On Firefox the code that implements 'is Location' fails to find the patch
21288 // stub on Object.prototype and throws an exception.
21289 try {
21290 return thing is Location;
21291 } catch (e) {
21292 return false;
21293 }
21294 }
21295
21296 /**
21297 * Executes a [callback] after the next batch of browser layout measurements
21298 * has completed or would have completed if any browser layout measurements
21299 * had been scheduled.
21300 */
21301 void requestLayoutFrame(TimeoutHandler callback) {
21302 _addMeasurementFrameCallback(callback);
21303 }
21304
21305 /** @domName DOMWindow.requestAnimationFrame */
21306 int requestAnimationFrame(RequestAnimationFrameCallback callback) {
21307 _ensureRequestAnimationFrame();
21308 return _requestAnimationFrame(callback);
21309 }
21310
21311 void cancelAnimationFrame(id) {
21312 _ensureRequestAnimationFrame();
21313 _cancelAnimationFrame(id);
21314 }
21315
21316 @JSName('requestAnimationFrame')
21317 int _requestAnimationFrame(RequestAnimationFrameCallback callback) native;
21318
21319 @JSName('cancelAnimationFrame')
21320 void _cancelAnimationFrame(int id) native;
21321
21322 _ensureRequestAnimationFrame() {
21323 if (JS('bool',
21324 '!!(#.requestAnimationFrame && #.cancelAnimationFrame)', this, this))
21325 return;
21326
21327 JS('void',
21328 r"""
21329 (function($this) {
21330 var vendors = ['ms', 'moz', 'webkit', 'o'];
21331 for (var i = 0; i < vendors.length && !$this.requestAnimationFrame; ++i) {
21332 $this.requestAnimationFrame = $this[vendors[i] + 'RequestAnimationFrame'];
21333 $this.cancelAnimationFrame =
21334 $this[vendors[i]+'CancelAnimationFrame'] ||
21335 $this[vendors[i]+'CancelRequestAnimationFrame'];
21336 }
21337 if ($this.requestAnimationFrame && $this.cancelAnimationFrame) return;
21338 $this.requestAnimationFrame = function(callback) {
21339 return window.setTimeout(function() {
21340 callback(Date.now());
21341 }, 16 /* 16ms ~= 60fps */);
21342 };
21343 $this.cancelAnimationFrame = function(id) { clearTimeout(id); }
21344 })(#)""",
21345 this);
21346 }
21347
21348 /**
21349 * Gets an instance of the Indexed DB factory to being using Indexed DB.
21350 *
21351 * Use [IdbFactory.supported] to check if Indexed DB is supported on the
21352 * current platform.
21353 */
21354 @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
21355 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
21356 @SupportedBrowser(SupportedBrowser.IE, '10.0')
21357 @Experimental()
21358 IdbFactory get indexedDB =>
21359 JS('IdbFactory',
21360 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
21361 this, this, this);
21362
21363 /**
21364 * Lookup a port by its [name]. Return null if no port is
21365 * registered under [name].
21366 */
21367 SendPortSync lookupPort(String name) {
21368 var port = json.parse(document.documentElement.attributes['dart-port:$name'] );
21369 return _deserialize(port);
21370 }
21371
21372 /**
21373 * Register a [port] on this window under the given [name]. This
21374 * port may be retrieved by any isolate (or JavaScript script)
21375 * running in this window.
21376 */
21377 void registerPort(String name, var port) {
21378 var serialized = _serialize(port);
21379 document.documentElement.attributes['dart-port:$name'] = json.stringify(seri alized);
21380 }
21381
21382 /// @domName Window.console; @docsEditable true
21383 Console get console => Console.safeConsole;
21384
21385
21386 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
21387 WindowEvents get on =>
21388 new WindowEvents(this);
21389
21390 static const int PERSISTENT = 1;
21391
21392 static const int TEMPORARY = 0;
21393
21394 /// @domName Window.applicationCache; @docsEditable true
21395 final ApplicationCache applicationCache;
21396
21397 /// @domName Window.closed; @docsEditable true
21398 final bool closed;
21399
21400 /// @domName Window.crypto; @docsEditable true
21401 final Crypto crypto;
21402
21403 /// @domName Window.defaultStatus; @docsEditable true
21404 String defaultStatus;
21405
21406 /// @domName Window.defaultstatus; @docsEditable true
21407 String defaultstatus;
21408
21409 /// @domName Window.devicePixelRatio; @docsEditable true
21410 final num devicePixelRatio;
21411
21412 /// @domName Window.event; @docsEditable true
21413 final Event event;
21414
21415 /// @domName Window.history; @docsEditable true
21416 final History history;
21417
21418 /// @domName Window.innerHeight; @docsEditable true
21419 final int innerHeight;
21420
21421 /// @domName Window.innerWidth; @docsEditable true
21422 final int innerWidth;
21423
21424 /// @domName Window.localStorage; @docsEditable true
21425 final Storage localStorage;
21426
21427 /// @domName Window.locationbar; @docsEditable true
21428 final BarInfo locationbar;
21429
21430 /// @domName Window.menubar; @docsEditable true
21431 final BarInfo menubar;
21432
21433 /// @domName Window.name; @docsEditable true
21434 String name;
21435
21436 /// @domName Window.navigator; @docsEditable true
21437 final Navigator navigator;
21438
21439 /// @domName Window.offscreenBuffering; @docsEditable true
21440 final bool offscreenBuffering;
21441
21442 /// @domName Window.opener; @docsEditable true
21443 WindowBase get opener => _convertNativeToDart_Window(this._opener);
21444 @JSName('opener')
21445 @Creates('Window|=Object') @Returns('Window|=Object')
21446 final dynamic _opener;
21447
21448 /// @domName Window.outerHeight; @docsEditable true
21449 final int outerHeight;
21450
21451 /// @domName Window.outerWidth; @docsEditable true
21452 final int outerWidth;
21453
21454 /// @domName DOMWindow.pagePopupController; @docsEditable true
21455 final PagePopupController pagePopupController;
21456
21457 /// @domName Window.pageXOffset; @docsEditable true
21458 final int pageXOffset;
21459
21460 /// @domName Window.pageYOffset; @docsEditable true
21461 final int pageYOffset;
21462
21463 /// @domName Window.parent; @docsEditable true
21464 WindowBase get parent => _convertNativeToDart_Window(this._parent);
21465 @JSName('parent')
21466 @Creates('Window|=Object') @Returns('Window|=Object')
21467 final dynamic _parent;
21468
21469 /// @domName Window.performance; @docsEditable true
21470 final Performance performance;
21471
21472 /// @domName Window.personalbar; @docsEditable true
21473 final BarInfo personalbar;
21474
21475 /// @domName Window.screen; @docsEditable true
21476 final Screen screen;
21477
21478 /// @domName Window.screenLeft; @docsEditable true
21479 final int screenLeft;
21480
21481 /// @domName Window.screenTop; @docsEditable true
21482 final int screenTop;
21483
21484 /// @domName Window.screenX; @docsEditable true
21485 final int screenX;
21486
21487 /// @domName Window.screenY; @docsEditable true
21488 final int screenY;
21489
21490 /// @domName Window.scrollX; @docsEditable true
21491 final int scrollX;
21492
21493 /// @domName Window.scrollY; @docsEditable true
21494 final int scrollY;
21495
21496 /// @domName Window.scrollbars; @docsEditable true
21497 final BarInfo scrollbars;
21498
21499 /// @domName Window.self; @docsEditable true
21500 WindowBase get self => _convertNativeToDart_Window(this._self);
21501 @JSName('self')
21502 @Creates('Window|=Object') @Returns('Window|=Object')
21503 final dynamic _self;
21504
21505 /// @domName Window.sessionStorage; @docsEditable true
21506 final Storage sessionStorage;
21507
21508 /// @domName Window.status; @docsEditable true
21509 String status;
21510
21511 /// @domName Window.statusbar; @docsEditable true
21512 final BarInfo statusbar;
21513
21514 /// @domName Window.styleMedia; @docsEditable true
21515 final StyleMedia styleMedia;
21516
21517 /// @domName Window.toolbar; @docsEditable true
21518 final BarInfo toolbar;
21519
21520 /// @domName Window.top; @docsEditable true
21521 WindowBase get top => _convertNativeToDart_Window(this._top);
21522 @JSName('top')
21523 @Creates('Window|=Object') @Returns('Window|=Object')
21524 final dynamic _top;
21525
21526 /// @domName DOMWindow.webkitNotifications; @docsEditable true
21527 final NotificationCenter webkitNotifications;
21528
21529 /// @domName DOMWindow.webkitStorageInfo; @docsEditable true
21530 final StorageInfo webkitStorageInfo;
21531
21532 /// @domName Window.window; @docsEditable true
21533 WindowBase get window => _convertNativeToDart_Window(this._window);
21534 @JSName('window')
21535 @Creates('Window|=Object') @Returns('Window|=Object')
21536 final dynamic _window;
21537
21538 /// @domName Window.addEventListener; @docsEditable true
21539 @JSName('addEventListener')
21540 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
21541
21542 /// @domName Window.alert; @docsEditable true
21543 void alert(String message) native;
21544
21545 /// @domName Window.atob; @docsEditable true
21546 String atob(String string) native;
21547
21548 /// @domName Window.btoa; @docsEditable true
21549 String btoa(String string) native;
21550
21551 /// @domName Window.captureEvents; @docsEditable true
21552 void captureEvents() native;
21553
21554 /// @domName Window.clearInterval; @docsEditable true
21555 void clearInterval(int handle) native;
21556
21557 /// @domName Window.clearTimeout; @docsEditable true
21558 void clearTimeout(int handle) native;
21559
21560 /// @domName Window.close; @docsEditable true
21561 void close() native;
21562
21563 /// @domName Window.confirm; @docsEditable true
21564 bool confirm(String message) native;
21565
21566 /// @domName Window.dispatchEvent; @docsEditable true
21567 @JSName('dispatchEvent')
21568 bool $dom_dispatchEvent(Event evt) native;
21569
21570 /// @domName Window.find; @docsEditable true
21571 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
21572
21573 /// @domName Window.getComputedStyle; @docsEditable true
21574 @JSName('getComputedStyle')
21575 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native;
21576
21577 /// @domName Window.getMatchedCSSRules; @docsEditable true
21578 @JSName('getMatchedCSSRules')
21579 @Returns('_CssRuleList') @Creates('_CssRuleList')
21580 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native ;
21581
21582 /// @domName Window.getSelection; @docsEditable true
21583 DomSelection getSelection() native;
21584
21585 /// @domName Window.matchMedia; @docsEditable true
21586 MediaQueryList matchMedia(String query) native;
21587
21588 /// @domName Window.moveBy; @docsEditable true
21589 void moveBy(num x, num y) native;
21590
21591 /// @domName Window.moveTo; @docsEditable true
21592 void moveTo(num x, num y) native;
21593
21594 /// @domName DOMWindow.openDatabase; @docsEditable true
21595 @Creates('Database') @Creates('DatabaseSync')
21596 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
21597
21598 /// @domName Window.postMessage; @docsEditable true
21599 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
21600 if (?message &&
21601 !?messagePorts) {
21602 var message_1 = convertDartToNative_SerializedScriptValue(message);
21603 _postMessage_1(message_1, targetOrigin);
21604 return;
21605 }
21606 if (?message) {
21607 var message_2 = convertDartToNative_SerializedScriptValue(message);
21608 _postMessage_2(message_2, targetOrigin, messagePorts);
21609 return;
21610 }
21611 throw new ArgumentError("Incorrect number or type of arguments");
21612 }
21613 @JSName('postMessage')
21614 void _postMessage_1(message, targetOrigin) native;
21615 @JSName('postMessage')
21616 void _postMessage_2(message, targetOrigin, List messagePorts) native;
21617
21618 /// @domName Window.print; @docsEditable true
21619 void print() native;
21620
21621 /// @domName Window.releaseEvents; @docsEditable true
21622 void releaseEvents() native;
21623
21624 /// @domName Window.removeEventListener; @docsEditable true
21625 @JSName('removeEventListener')
21626 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
21627
21628 /// @domName Window.resizeBy; @docsEditable true
21629 void resizeBy(num x, num y) native;
21630
21631 /// @domName Window.resizeTo; @docsEditable true
21632 void resizeTo(num width, num height) native;
21633
21634 /// @domName Window.scroll; @docsEditable true
21635 void scroll(int x, int y) native;
21636
21637 /// @domName Window.scrollBy; @docsEditable true
21638 void scrollBy(int x, int y) native;
21639
21640 /// @domName Window.scrollTo; @docsEditable true
21641 void scrollTo(int x, int y) native;
21642
21643 /// @domName Window.setInterval; @docsEditable true
21644 int setInterval(TimeoutHandler handler, int timeout) native;
21645
21646 /// @domName Window.setTimeout; @docsEditable true
21647 int setTimeout(TimeoutHandler handler, int timeout) native;
21648
21649 /// @domName Window.showModalDialog; @docsEditable true
21650 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive;
21651
21652 /// @domName Window.stop; @docsEditable true
21653 void stop() native;
21654
21655 /// @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true
21656 Point webkitConvertPointFromNodeToPage(Node node, Point p) native;
21657
21658 /// @domName Window.webkitConvertPointFromPageToNode; @docsEditable true
21659 Point webkitConvertPointFromPageToNode(Node node, Point p) native;
21660
21661 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true
21662 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native;
21663
21664 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true
21665 @JSName('webkitResolveLocalFileSystemURL')
21666 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native;
21667
21668 }
21669
21670 /// @docsEditable true
21671 class WindowEvents extends Events {
21672 /// @docsEditable true
21673 WindowEvents(EventTarget _ptr) : super(_ptr);
21674
21675 /// @docsEditable true
21676 EventListenerList get contentLoaded => this['DOMContentLoaded'];
21677
21678 /// @docsEditable true
21679 EventListenerList get abort => this['abort'];
21680
21681 /// @docsEditable true
21682 EventListenerList get beforeUnload => this['beforeunload'];
21683
21684 /// @docsEditable true
21685 EventListenerList get blur => this['blur'];
21686
21687 /// @docsEditable true
21688 EventListenerList get canPlay => this['canplay'];
21689
21690 /// @docsEditable true
21691 EventListenerList get canPlayThrough => this['canplaythrough'];
21692
21693 /// @docsEditable true
21694 EventListenerList get change => this['change'];
21695
21696 /// @docsEditable true
21697 EventListenerList get click => this['click'];
21698
21699 /// @docsEditable true
21700 EventListenerList get contextMenu => this['contextmenu'];
21701
21702 /// @docsEditable true
21703 EventListenerList get doubleClick => this['dblclick'];
21704
21705 /// @docsEditable true
21706 EventListenerList get deviceMotion => this['devicemotion'];
21707
21708 /// @docsEditable true
21709 EventListenerList get deviceOrientation => this['deviceorientation'];
21710
21711 /// @docsEditable true
21712 EventListenerList get drag => this['drag'];
21713
21714 /// @docsEditable true
21715 EventListenerList get dragEnd => this['dragend'];
21716
21717 /// @docsEditable true
21718 EventListenerList get dragEnter => this['dragenter'];
21719
21720 /// @docsEditable true
21721 EventListenerList get dragLeave => this['dragleave'];
21722
21723 /// @docsEditable true
21724 EventListenerList get dragOver => this['dragover'];
21725
21726 /// @docsEditable true
21727 EventListenerList get dragStart => this['dragstart'];
21728
21729 /// @docsEditable true
21730 EventListenerList get drop => this['drop'];
21731
21732 /// @docsEditable true
21733 EventListenerList get durationChange => this['durationchange'];
21734
21735 /// @docsEditable true
21736 EventListenerList get emptied => this['emptied'];
21737
21738 /// @docsEditable true
21739 EventListenerList get ended => this['ended'];
21740
21741 /// @docsEditable true
21742 EventListenerList get error => this['error'];
21743
21744 /// @docsEditable true
21745 EventListenerList get focus => this['focus'];
21746
21747 /// @docsEditable true
21748 EventListenerList get hashChange => this['hashchange'];
21749
21750 /// @docsEditable true
21751 EventListenerList get input => this['input'];
21752
21753 /// @docsEditable true
21754 EventListenerList get invalid => this['invalid'];
21755
21756 /// @docsEditable true
21757 EventListenerList get keyDown => this['keydown'];
21758
21759 /// @docsEditable true
21760 EventListenerList get keyPress => this['keypress'];
21761
21762 /// @docsEditable true
21763 EventListenerList get keyUp => this['keyup'];
21764
21765 /// @docsEditable true
21766 EventListenerList get load => this['load'];
21767
21768 /// @docsEditable true
21769 EventListenerList get loadedData => this['loadeddata'];
21770
21771 /// @docsEditable true
21772 EventListenerList get loadedMetadata => this['loadedmetadata'];
21773
21774 /// @docsEditable true
21775 EventListenerList get loadStart => this['loadstart'];
21776
21777 /// @docsEditable true
21778 EventListenerList get message => this['message'];
21779
21780 /// @docsEditable true
21781 EventListenerList get mouseDown => this['mousedown'];
21782
21783 /// @docsEditable true
21784 EventListenerList get mouseMove => this['mousemove'];
21785
21786 /// @docsEditable true
21787 EventListenerList get mouseOut => this['mouseout'];
21788
21789 /// @docsEditable true
21790 EventListenerList get mouseOver => this['mouseover'];
21791
21792 /// @docsEditable true
21793 EventListenerList get mouseUp => this['mouseup'];
21794
21795 /// @docsEditable true
21796 EventListenerList get mouseWheel => this['mousewheel'];
21797
21798 /// @docsEditable true
21799 EventListenerList get offline => this['offline'];
21800
21801 /// @docsEditable true
21802 EventListenerList get online => this['online'];
21803
21804 /// @docsEditable true
21805 EventListenerList get pageHide => this['pagehide'];
21806
21807 /// @docsEditable true
21808 EventListenerList get pageShow => this['pageshow'];
21809
21810 /// @docsEditable true
21811 EventListenerList get pause => this['pause'];
21812
21813 /// @docsEditable true
21814 EventListenerList get play => this['play'];
21815
21816 /// @docsEditable true
21817 EventListenerList get playing => this['playing'];
21818
21819 /// @docsEditable true
21820 EventListenerList get popState => this['popstate'];
21821
21822 /// @docsEditable true
21823 EventListenerList get progress => this['progress'];
21824
21825 /// @docsEditable true
21826 EventListenerList get rateChange => this['ratechange'];
21827
21828 /// @docsEditable true
21829 EventListenerList get reset => this['reset'];
21830
21831 /// @docsEditable true
21832 EventListenerList get resize => this['resize'];
21833
21834 /// @docsEditable true
21835 EventListenerList get scroll => this['scroll'];
21836
21837 /// @docsEditable true
21838 EventListenerList get search => this['search'];
21839
21840 /// @docsEditable true
21841 EventListenerList get seeked => this['seeked'];
21842
21843 /// @docsEditable true
21844 EventListenerList get seeking => this['seeking'];
21845
21846 /// @docsEditable true
21847 EventListenerList get select => this['select'];
21848
21849 /// @docsEditable true
21850 EventListenerList get stalled => this['stalled'];
21851
21852 /// @docsEditable true
21853 EventListenerList get storage => this['storage'];
21854
21855 /// @docsEditable true
21856 EventListenerList get submit => this['submit'];
21857
21858 /// @docsEditable true
21859 EventListenerList get suspend => this['suspend'];
21860
21861 /// @docsEditable true
21862 EventListenerList get timeUpdate => this['timeupdate'];
21863
21864 /// @docsEditable true
21865 EventListenerList get touchCancel => this['touchcancel'];
21866
21867 /// @docsEditable true
21868 EventListenerList get touchEnd => this['touchend'];
21869
21870 /// @docsEditable true
21871 EventListenerList get touchMove => this['touchmove'];
21872
21873 /// @docsEditable true
21874 EventListenerList get touchStart => this['touchstart'];
21875
21876 /// @docsEditable true
21877 EventListenerList get unload => this['unload'];
21878
21879 /// @docsEditable true
21880 EventListenerList get volumeChange => this['volumechange'];
21881
21882 /// @docsEditable true
21883 EventListenerList get waiting => this['waiting'];
21884
21885 /// @docsEditable true
21886 EventListenerList get animationEnd => this['webkitAnimationEnd'];
21887
21888 /// @docsEditable true
21889 EventListenerList get animationIteration => this['webkitAnimationIteration'];
21890
21891 /// @docsEditable true
21892 EventListenerList get animationStart => this['webkitAnimationStart'];
21893
21894 /// @docsEditable true
21895 EventListenerList get transitionEnd => this['webkitTransitionEnd'];
21896 }
21897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21898 // for details. All rights reserved. Use of this source code is governed by a
21899 // BSD-style license that can be found in the LICENSE file.
21900
21901
21902 /// @domName Worker; @docsEditable true 21230 /// @domName Worker; @docsEditable true
21903 class Worker extends AbstractWorker native "*Worker" { 21231 class Worker extends AbstractWorker native "*Worker" {
21904 21232
21905 ///@docsEditable true 21233 ///@docsEditable true
21906 factory Worker(String scriptUrl) => Worker._create(scriptUrl); 21234 factory Worker(String scriptUrl) => Worker._create(scriptUrl);
21907 static Worker _create(String scriptUrl) => JS('Worker', 'new Worker(#)', scrip tUrl); 21235 static Worker _create(String scriptUrl) => JS('Worker', 'new Worker(#)', scrip tUrl);
21908 21236
21909 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 21237 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
21910 WorkerEvents get on => 21238 WorkerEvents get on =>
21911 new WorkerEvents(this); 21239 new WorkerEvents(this);
(...skipping 5002 matching lines...) Expand 10 before | Expand all | Expand 10 after
26914 _position = nextPosition; 26242 _position = nextPosition;
26915 return true; 26243 return true;
26916 } 26244 }
26917 _current = null; 26245 _current = null;
26918 _position = _array.length; 26246 _position = _array.length;
26919 return false; 26247 return false;
26920 } 26248 }
26921 26249
26922 T get current => _current; 26250 T get current => _current;
26923 } 26251 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698