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

Side by Side Diff: lib/html/frog/html_frog.dart

Issue 9963004: Use the new syntax for native methods that are just renames of other native methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ready to review... Sra's change actually fixed a failing test instead of causing a new test to fail! Created 8 years, 8 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 | « lib/dom/scripts/systemhtml.py ('k') | samples/third_party/dromaeo/tests/dom-query-html.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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated dart:html library. 8 // Auto-generated dart:html library.
9 9
10 10
(...skipping 11 matching lines...) Expand all
22 // Workaround for tags like <cite> that lack their own Element subclass -- 22 // Workaround for tags like <cite> that lack their own Element subclass --
23 // Dart issue 1990. 23 // Dart issue 1990.
24 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { 24 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
25 } 25 }
26 26
27 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat ive "*AbstractWorker" { 27 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat ive "*AbstractWorker" {
28 28
29 _AbstractWorkerEventsImpl get on() => 29 _AbstractWorkerEventsImpl get on() =>
30 new _AbstractWorkerEventsImpl(this); 30 new _AbstractWorkerEventsImpl(this);
31 31
32 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 32 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
33 33
34 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 34 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
35 35
36 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 36 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
37 } 37 }
38 38
39 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve nts { 39 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve nts {
40 _AbstractWorkerEventsImpl(_ptr) : super(_ptr); 40 _AbstractWorkerEventsImpl(_ptr) : super(_ptr);
41 41
42 EventListenerList get error() => _get('error'); 42 EventListenerList get error() => _get('error');
43 } 43 }
44 44
45 class _AnchorElementImpl extends _ElementImpl implements AnchorElement native "* HTMLAnchorElement" { 45 class _AnchorElementImpl extends _ElementImpl implements AnchorElement native "* HTMLAnchorElement" {
46 46
(...skipping 4121 matching lines...) Expand 10 before | Expand all | Expand 10 after
4168 static final int OBSOLETE = 5; 4168 static final int OBSOLETE = 5;
4169 4169
4170 static final int UNCACHED = 0; 4170 static final int UNCACHED = 0;
4171 4171
4172 static final int UPDATEREADY = 4; 4172 static final int UPDATEREADY = 4;
4173 4173
4174 final int status; 4174 final int status;
4175 4175
4176 void abort() native; 4176 void abort() native;
4177 4177
4178 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 4178 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
4179 4179
4180 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 4180 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
4181 4181
4182 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 4182 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
4183 4183
4184 void swapCache() native; 4184 void swapCache() native;
4185 4185
4186 void update() native; 4186 void update() native;
4187 } 4187 }
4188 4188
4189 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati onCacheEvents { 4189 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati onCacheEvents {
4190 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); 4190 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr);
4191 4191
4192 EventListenerList get cached() => _get('cached'); 4192 EventListenerList get cached() => _get('cached');
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
4694 final bool webkitIsFullScreen; 4694 final bool webkitIsFullScreen;
4695 4695
4696 final String webkitVisibilityState; 4696 final String webkitVisibilityState;
4697 4697
4698 _RangeImpl caretRangeFromPoint(int x, int y) native; 4698 _RangeImpl caretRangeFromPoint(int x, int y) native;
4699 4699
4700 _CDATASectionImpl createCDATASection(String data) native; 4700 _CDATASectionImpl createCDATASection(String data) native;
4701 4701
4702 _DocumentFragmentImpl createDocumentFragment() native; 4702 _DocumentFragmentImpl createDocumentFragment() native;
4703 4703
4704 _ElementImpl $dom_createElement(String tagName) native "return this.createElem ent(tagName);"; 4704 _ElementImpl $dom_createElement(String tagName) native "createElement";
4705 4705
4706 _ElementImpl $dom_createElementNS(String namespaceURI, String qualifiedName) n ative "return this.createElementNS(namespaceURI, qualifiedName);"; 4706 _ElementImpl $dom_createElementNS(String namespaceURI, String qualifiedName) n ative "createElementNS";
4707 4707
4708 _EventImpl $dom_createEvent(String eventType) native "return this.createEvent( eventType);"; 4708 _EventImpl $dom_createEvent(String eventType) native "createEvent";
4709 4709
4710 _RangeImpl createRange() native; 4710 _RangeImpl createRange() native;
4711 4711
4712 _TextImpl $dom_createTextNode(String data) native "return this.createTextNode( data);"; 4712 _TextImpl $dom_createTextNode(String data) native "createTextNode";
4713 4713
4714 _TouchImpl createTouch(_WindowImpl window, _EventTargetImpl target, int identi fier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int web kitRadiusY, num webkitRotationAngle, num webkitForce) native; 4714 _TouchImpl createTouch(_WindowImpl window, _EventTargetImpl target, int identi fier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int web kitRadiusY, num webkitRotationAngle, num webkitForce) native;
4715 4715
4716 _TouchListImpl $dom_createTouchList() native "return this.createTouchList();"; 4716 _TouchListImpl $dom_createTouchList() native "createTouchList";
4717 4717
4718 _ElementImpl elementFromPoint(int x, int y) native; 4718 _ElementImpl elementFromPoint(int x, int y) native;
4719 4719
4720 bool execCommand(String command, bool userInterface, String value) native; 4720 bool execCommand(String command, bool userInterface, String value) native;
4721 4721
4722 _CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name, int width, int height) native; 4722 _CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name, int width, int height) native;
4723 4723
4724 _ElementImpl $dom_getElementById(String elementId) native "return this.getElem entById(elementId);"; 4724 _ElementImpl $dom_getElementById(String elementId) native "getElementById";
4725 4725
4726 _NodeListImpl $dom_getElementsByClassName(String tagname) native "return this. getElementsByClassName(tagname);"; 4726 _NodeListImpl $dom_getElementsByClassName(String tagname) native "getElementsB yClassName";
4727 4727
4728 _NodeListImpl $dom_getElementsByName(String elementName) native "return this.g etElementsByName(elementName);"; 4728 _NodeListImpl $dom_getElementsByName(String elementName) native "getElementsBy Name";
4729 4729
4730 _NodeListImpl $dom_getElementsByTagName(String tagname) native "return this.ge tElementsByTagName(tagname);"; 4730 _NodeListImpl $dom_getElementsByTagName(String tagname) native "getElementsByT agName";
4731 4731
4732 bool queryCommandEnabled(String command) native; 4732 bool queryCommandEnabled(String command) native;
4733 4733
4734 bool queryCommandIndeterm(String command) native; 4734 bool queryCommandIndeterm(String command) native;
4735 4735
4736 bool queryCommandState(String command) native; 4736 bool queryCommandState(String command) native;
4737 4737
4738 bool queryCommandSupported(String command) native; 4738 bool queryCommandSupported(String command) native;
4739 4739
4740 String queryCommandValue(String command) native; 4740 String queryCommandValue(String command) native;
4741 4741
4742 _ElementImpl _query(String selectors) native "return this.querySelector(select ors);"; 4742 _ElementImpl _query(String selectors) native "querySelector";
4743 4743
4744 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer ySelectorAll(selectors);"; 4744 _NodeListImpl $dom_querySelectorAll(String selectors) native "querySelectorAll ";
4745 4745
4746 void webkitCancelFullScreen() native; 4746 void webkitCancelFullScreen() native;
4747 4747
4748 void webkitExitFullscreen() native; 4748 void webkitExitFullscreen() native;
4749 4749
4750 _WebKitNamedFlowImpl webkitGetFlowByName(String name) native; 4750 _WebKitNamedFlowImpl webkitGetFlowByName(String name) native;
4751 4751
4752 // TODO(jacobr): implement all Element methods not on Document. 4752 // TODO(jacobr): implement all Element methods not on Document.
4753 4753
4754 _ElementImpl query(String selectors) { 4754 _ElementImpl query(String selectors) {
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
5223 5223
5224 void set webkitRegionOverflow(String value) { 5224 void set webkitRegionOverflow(String value) {
5225 throw new UnsupportedOperationException( 5225 throw new UnsupportedOperationException(
5226 "WebKit region overflow can't be set for document fragments."); 5226 "WebKit region overflow can't be set for document fragments.");
5227 } 5227 }
5228 5228
5229 5229
5230 _ElementEventsImpl get on() => 5230 _ElementEventsImpl get on() =>
5231 new _ElementEventsImpl(this); 5231 new _ElementEventsImpl(this);
5232 5232
5233 _ElementImpl query(String selectors) native "return this.querySelector(selecto rs);"; 5233 _ElementImpl query(String selectors) native "querySelector";
5234 5234
5235 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer ySelectorAll(selectors);"; 5235 _NodeListImpl $dom_querySelectorAll(String selectors) native "querySelectorAll ";
5236 5236
5237 } 5237 }
5238 5238
5239 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum entType" { 5239 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum entType" {
5240 5240
5241 final _NamedNodeMapImpl entities; 5241 final _NamedNodeMapImpl entities;
5242 5242
5243 final String internalSubset; 5243 final String internalSubset;
5244 5244
5245 final String name; 5245 final String name;
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
6070 final String webkitRegionOverflow; 6070 final String webkitRegionOverflow;
6071 6071
6072 String webkitdropzone; 6072 String webkitdropzone;
6073 6073
6074 void blur() native; 6074 void blur() native;
6075 6075
6076 void click() native; 6076 void click() native;
6077 6077
6078 void focus() native; 6078 void focus() native;
6079 6079
6080 String $dom_getAttribute(String name) native "return this.getAttribute(name);" ; 6080 String $dom_getAttribute(String name) native "getAttribute";
6081 6081
6082 _ClientRectImpl $dom_getBoundingClientRect() native "return this.getBoundingCl ientRect();"; 6082 _ClientRectImpl $dom_getBoundingClientRect() native "getBoundingClientRect";
6083 6083
6084 _ClientRectListImpl $dom_getClientRects() native "return this.getClientRects() ;"; 6084 _ClientRectListImpl $dom_getClientRects() native "getClientRects";
6085 6085
6086 _NodeListImpl $dom_getElementsByClassName(String name) native "return this.get ElementsByClassName(name);"; 6086 _NodeListImpl $dom_getElementsByClassName(String name) native "getElementsByCl assName";
6087 6087
6088 _NodeListImpl $dom_getElementsByTagName(String name) native "return this.getEl ementsByTagName(name);"; 6088 _NodeListImpl $dom_getElementsByTagName(String name) native "getElementsByTagN ame";
6089 6089
6090 bool $dom_hasAttribute(String name) native "return this.hasAttribute(name);"; 6090 bool $dom_hasAttribute(String name) native "hasAttribute";
6091 6091
6092 _ElementImpl insertAdjacentElement(String where, _ElementImpl element) native; 6092 _ElementImpl insertAdjacentElement(String where, _ElementImpl element) native;
6093 6093
6094 void insertAdjacentHTML(String where, String html) native; 6094 void insertAdjacentHTML(String where, String html) native;
6095 6095
6096 void insertAdjacentText(String where, String text) native; 6096 void insertAdjacentText(String where, String text) native;
6097 6097
6098 _ElementImpl query(String selectors) native "return this.querySelector(selecto rs);"; 6098 _ElementImpl query(String selectors) native "querySelector";
6099 6099
6100 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer ySelectorAll(selectors);"; 6100 _NodeListImpl $dom_querySelectorAll(String selectors) native "querySelectorAll ";
6101 6101
6102 void $dom_removeAttribute(String name) native "this.removeAttribute(name);"; 6102 void $dom_removeAttribute(String name) native "removeAttribute";
6103 6103
6104 void scrollByLines(int lines) native; 6104 void scrollByLines(int lines) native;
6105 6105
6106 void scrollByPages(int pages) native; 6106 void scrollByPages(int pages) native;
6107 6107
6108 void scrollIntoView([bool centerIfNeeded = null]) native "this.scrollIntoViewI fNeeded(centerIfNeeded);"; 6108 void scrollIntoView([bool centerIfNeeded = null]) native "scrollIntoViewIfNeed ed";
6109 6109
6110 void $dom_setAttribute(String name, String value) native "this.setAttribute(na me, value);"; 6110 void $dom_setAttribute(String name, String value) native "setAttribute";
6111 6111
6112 bool matchesSelector(String selectors) native "return this.webkitMatchesSelect or(selectors);"; 6112 bool matchesSelector(String selectors) native "webkitMatchesSelector";
6113 6113
6114 void webkitRequestFullScreen(int flags) native; 6114 void webkitRequestFullScreen(int flags) native;
6115 6115
6116 void webkitRequestFullscreen() native; 6116 void webkitRequestFullscreen() native;
6117 6117
6118 } 6118 }
6119 6119
6120 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); 6120 final _START_TAG_REGEXP = const RegExp('<(\\w+)');
6121 class _ElementFactoryProvider { 6121 class _ElementFactoryProvider {
6122 static final _CUSTOM_PARENT_TAG_MAP = const { 6122 static final _CUSTOM_PARENT_TAG_MAP = const {
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
6454 bool returnValue; 6454 bool returnValue;
6455 6455
6456 final _EventTargetImpl srcElement; 6456 final _EventTargetImpl srcElement;
6457 6457
6458 final _EventTargetImpl target; 6458 final _EventTargetImpl target;
6459 6459
6460 final int timeStamp; 6460 final int timeStamp;
6461 6461
6462 final String type; 6462 final String type;
6463 6463
6464 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native "this.initEvent(eventTypeArg, canBubbleArg, cancelableArg);"; 6464 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native "initEvent";
6465 6465
6466 void preventDefault() native; 6466 void preventDefault() native;
6467 6467
6468 void stopImmediatePropagation() native; 6468 void stopImmediatePropagation() native;
6469 6469
6470 void stopPropagation() native; 6470 void stopPropagation() native;
6471 } 6471 }
6472 6472
6473 class _EventExceptionImpl implements EventException native "*EventException" { 6473 class _EventExceptionImpl implements EventException native "*EventException" {
6474 6474
(...skipping 20 matching lines...) Expand all
6495 static final int CONNECTING = 0; 6495 static final int CONNECTING = 0;
6496 6496
6497 static final int OPEN = 1; 6497 static final int OPEN = 1;
6498 6498
6499 final String URL; 6499 final String URL;
6500 6500
6501 final int readyState; 6501 final int readyState;
6502 6502
6503 final String url; 6503 final String url;
6504 6504
6505 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 6505 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
6506 6506
6507 void close() native; 6507 void close() native;
6508 6508
6509 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 6509 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
6510 6510
6511 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 6511 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
6512 } 6512 }
6513 6513
6514 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents { 6514 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents {
6515 _EventSourceEventsImpl(_ptr) : super(_ptr); 6515 _EventSourceEventsImpl(_ptr) : super(_ptr);
6516 6516
6517 EventListenerList get error() => _get('error'); 6517 EventListenerList get error() => _get('error');
6518 6518
6519 EventListenerList get message() => _get('message'); 6519 EventListenerList get message() => _get('message');
6520 6520
6521 EventListenerList get open() => _get('open'); 6521 EventListenerList get open() => _get('open');
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
6575 void _remove(EventListener listener, bool useCapture) { 6575 void _remove(EventListener listener, bool useCapture) {
6576 _ptr.$dom_removeEventListener(_type, listener, useCapture); 6576 _ptr.$dom_removeEventListener(_type, listener, useCapture);
6577 } 6577 }
6578 } 6578 }
6579 6579
6580 6580
6581 class _EventTargetImpl implements EventTarget native "*EventTarget" { 6581 class _EventTargetImpl implements EventTarget native "*EventTarget" {
6582 6582
6583 Events get on() => new _EventsImpl(this); 6583 Events get on() => new _EventsImpl(this);
6584 6584
6585 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 6585 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
6586 6586
6587 bool $dom_dispatchEvent(_EventImpl event) native "return this.dispatchEvent(ev ent);"; 6587 bool $dom_dispatchEvent(_EventImpl event) native "dispatchEvent";
6588 6588
6589 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 6589 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
6590 6590
6591 } 6591 }
6592 6592
6593 class _FieldSetElementImpl extends _ElementImpl implements FieldSetElement nativ e "*HTMLFieldSetElement" { 6593 class _FieldSetElementImpl extends _ElementImpl implements FieldSetElement nativ e "*HTMLFieldSetElement" {
6594 6594
6595 final _FormElementImpl form; 6595 final _FormElementImpl form;
6596 6596
6597 String name; 6597 String name;
6598 6598
6599 final String type; 6599 final String type;
(...skipping 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after
8577 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, _WindowImpl sourceArg, L ist messagePorts) native; 8577 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, _WindowImpl sourceArg, L ist messagePorts) native;
8578 8578
8579 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowImpl source Arg, List transferables) native; 8579 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowImpl source Arg, List transferables) native;
8580 } 8580 }
8581 8581
8582 class _MessagePortImpl extends _EventTargetImpl implements MessagePort native "* MessagePort" { 8582 class _MessagePortImpl extends _EventTargetImpl implements MessagePort native "* MessagePort" {
8583 8583
8584 _MessagePortEventsImpl get on() => 8584 _MessagePortEventsImpl get on() =>
8585 new _MessagePortEventsImpl(this); 8585 new _MessagePortEventsImpl(this);
8586 8586
8587 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 8587 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
8588 8588
8589 void close() native; 8589 void close() native;
8590 8590
8591 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 8591 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
8592 8592
8593 void postMessage(String message, [List messagePorts = null]) native; 8593 void postMessage(String message, [List messagePorts = null]) native;
8594 8594
8595 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 8595 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
8596 8596
8597 void start() native; 8597 void start() native;
8598 8598
8599 void webkitPostMessage(String message, [List transfer = null]) native; 8599 void webkitPostMessage(String message, [List transfer = null]) native;
8600 } 8600 }
8601 8601
8602 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents { 8602 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents {
8603 _MessagePortEventsImpl(_ptr) : super(_ptr); 8603 _MessagePortEventsImpl(_ptr) : super(_ptr);
8604 8604
8605 EventListenerList get message() => _get('message'); 8605 EventListenerList get message() => _get('message');
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
8676 final int screenY; 8676 final int screenY;
8677 8677
8678 final bool shiftKey; 8678 final bool shiftKey;
8679 8679
8680 final _NodeImpl toElement; 8680 final _NodeImpl toElement;
8681 8681
8682 final int x; 8682 final int x;
8683 8683
8684 final int y; 8684 final int y;
8685 8685
8686 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, _Window Impl view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetImpl relatedTarget) native "this.initMouseEvent(type, canBubble, cancelable, view, de tail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, bu tton, relatedTarget);"; 8686 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, _Window Impl view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetImpl relatedTarget) native "initMouseEvent";
8687 } 8687 }
8688 8688
8689 class _MutationEventImpl extends _EventImpl implements MutationEvent native "*Mu tationEvent" { 8689 class _MutationEventImpl extends _EventImpl implements MutationEvent native "*Mu tationEvent" {
8690 8690
8691 static final int ADDITION = 2; 8691 static final int ADDITION = 2;
8692 8692
8693 static final int MODIFICATION = 1; 8693 static final int MODIFICATION = 1;
8694 8694
8695 static final int REMOVAL = 3; 8695 static final int REMOVAL = 3;
8696 8696
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
9037 _DocumentImpl get document() native "return this.ownerDocument;"; 9037 _DocumentImpl get document() native "return this.ownerDocument;";
9038 9038
9039 _NodeImpl get parent() native "return this.parentNode;"; 9039 _NodeImpl get parent() native "return this.parentNode;";
9040 9040
9041 _NodeImpl get previousNode() native "return this.previousSibling;"; 9041 _NodeImpl get previousNode() native "return this.previousSibling;";
9042 9042
9043 String get text() native "return this.textContent;"; 9043 String get text() native "return this.textContent;";
9044 9044
9045 void set text(String value) native "this.textContent = value;"; 9045 void set text(String value) native "this.textContent = value;";
9046 9046
9047 _NodeImpl $dom_appendChild(_NodeImpl newChild) native "return this.appendChild (newChild);"; 9047 _NodeImpl $dom_appendChild(_NodeImpl newChild) native "appendChild";
9048 9048
9049 _NodeImpl clone(bool deep) native "return this.cloneNode(deep);"; 9049 _NodeImpl clone(bool deep) native "cloneNode";
9050 9050
9051 bool contains(_NodeImpl other) native; 9051 bool contains(_NodeImpl other) native;
9052 9052
9053 bool hasChildNodes() native; 9053 bool hasChildNodes() native;
9054 9054
9055 _NodeImpl insertBefore(_NodeImpl newChild, _NodeImpl refChild) native; 9055 _NodeImpl insertBefore(_NodeImpl newChild, _NodeImpl refChild) native;
9056 9056
9057 _NodeImpl $dom_removeChild(_NodeImpl oldChild) native "return this.removeChild (oldChild);"; 9057 _NodeImpl $dom_removeChild(_NodeImpl oldChild) native "removeChild";
9058 9058
9059 _NodeImpl $dom_replaceChild(_NodeImpl newChild, _NodeImpl oldChild) native "re turn this.replaceChild(newChild, oldChild);"; 9059 _NodeImpl $dom_replaceChild(_NodeImpl newChild, _NodeImpl oldChild) native "re placeChild";
9060 9060
9061 } 9061 }
9062 9062
9063 class _NodeFilterImpl implements NodeFilter native "*NodeFilter" { 9063 class _NodeFilterImpl implements NodeFilter native "*NodeFilter" {
9064 9064
9065 static final int FILTER_ACCEPT = 1; 9065 static final int FILTER_ACCEPT = 1;
9066 9066
9067 static final int FILTER_REJECT = 2; 9067 static final int FILTER_REJECT = 2;
9068 9068
9069 static final int FILTER_SKIP = 3; 9069 static final int FILTER_SKIP = 3;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
9288 9288
9289 9289
9290 final int length; 9290 final int length;
9291 9291
9292 _NodeImpl operator[](int index) native "return this[index];"; 9292 _NodeImpl operator[](int index) native "return this[index];";
9293 9293
9294 } 9294 }
9295 9295
9296 class _NodeSelectorImpl implements NodeSelector native "*NodeSelector" { 9296 class _NodeSelectorImpl implements NodeSelector native "*NodeSelector" {
9297 9297
9298 _ElementImpl query(String selectors) native "return this.querySelector(selecto rs);"; 9298 _ElementImpl query(String selectors) native "querySelector";
9299 9299
9300 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer ySelectorAll(selectors);"; 9300 _NodeListImpl $dom_querySelectorAll(String selectors) native "querySelectorAll ";
9301 } 9301 }
9302 9302
9303 class _NotationImpl extends _NodeImpl implements Notation native "*Notation" { 9303 class _NotationImpl extends _NodeImpl implements Notation native "*Notation" {
9304 9304
9305 final String publicId; 9305 final String publicId;
9306 9306
9307 final String systemId; 9307 final String systemId;
9308 } 9308 }
9309 9309
9310 class _NotificationImpl extends _EventTargetImpl implements Notification native "*Notification" { 9310 class _NotificationImpl extends _EventTargetImpl implements Notification native "*Notification" {
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
10422 // Use implementation from Element. 10422 // Use implementation from Element.
10423 // final _CSSStyleDeclarationImpl style; 10423 // final _CSSStyleDeclarationImpl style;
10424 10424
10425 _CSSValueImpl getPresentationAttribute(String name) native; 10425 _CSSValueImpl getPresentationAttribute(String name) native;
10426 } 10426 }
10427 10427
10428 class _SVGDocumentImpl extends _DocumentImpl implements SVGDocument native "*SVG Document" { 10428 class _SVGDocumentImpl extends _DocumentImpl implements SVGDocument native "*SVG Document" {
10429 10429
10430 final _SVGSVGElementImpl rootElement; 10430 final _SVGSVGElementImpl rootElement;
10431 10431
10432 _EventImpl $dom_createEvent(String eventType) native "return this.createEvent( eventType);"; 10432 _EventImpl $dom_createEvent(String eventType) native "createEvent";
10433 } 10433 }
10434 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 10434 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
10435 // for details. All rights reserved. Use of this source code is governed by a 10435 // for details. All rights reserved. Use of this source code is governed by a
10436 // BSD-style license that can be found in the LICENSE file. 10436 // BSD-style license that can be found in the LICENSE file.
10437 10437
10438 class _AttributeClassSet extends _CssClassSet { 10438 class _AttributeClassSet extends _CssClassSet {
10439 _AttributeClassSet(element) : super(element); 10439 _AttributeClassSet(element) : super(element);
10440 10440
10441 String $dom_className() => _element.attributes['class']; 10441 String $dom_className() => _element.attributes['class'];
10442 10442
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
10511 final _SVGElementInstanceImpl firstChild; 10511 final _SVGElementInstanceImpl firstChild;
10512 10512
10513 final _SVGElementInstanceImpl lastChild; 10513 final _SVGElementInstanceImpl lastChild;
10514 10514
10515 final _SVGElementInstanceImpl nextSibling; 10515 final _SVGElementInstanceImpl nextSibling;
10516 10516
10517 final _SVGElementInstanceImpl parentNode; 10517 final _SVGElementInstanceImpl parentNode;
10518 10518
10519 final _SVGElementInstanceImpl previousSibling; 10519 final _SVGElementInstanceImpl previousSibling;
10520 10520
10521 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 10521 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
10522 10522
10523 bool $dom_dispatchEvent(_EventImpl event) native "return this.dispatchEvent(ev ent);"; 10523 bool $dom_dispatchEvent(_EventImpl event) native "dispatchEvent";
10524 10524
10525 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 10525 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
10526 } 10526 }
10527 10527
10528 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns tanceEvents { 10528 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns tanceEvents {
10529 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr); 10529 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr);
10530 10530
10531 EventListenerList get abort() => _get('abort'); 10531 EventListenerList get abort() => _get('abort');
10532 10532
10533 EventListenerList get beforeCopy() => _get('beforecopy'); 10533 EventListenerList get beforeCopy() => _get('beforecopy');
10534 10534
10535 EventListenerList get beforeCut() => _get('beforecut'); 10535 EventListenerList get beforeCut() => _get('beforecut');
(...skipping 5176 matching lines...) Expand 10 before | Expand all | Expand 10 after
15712 final int bufferedAmount; 15712 final int bufferedAmount;
15713 15713
15714 final String extensions; 15714 final String extensions;
15715 15715
15716 final String protocol; 15716 final String protocol;
15717 15717
15718 final int readyState; 15718 final int readyState;
15719 15719
15720 final String url; 15720 final String url;
15721 15721
15722 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 15722 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
15723 15723
15724 void close([int code = null, String reason = null]) native; 15724 void close([int code = null, String reason = null]) native;
15725 15725
15726 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 15726 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
15727 15727
15728 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 15728 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
15729 15729
15730 bool send(String data) native; 15730 bool send(String data) native;
15731 } 15731 }
15732 15732
15733 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents { 15733 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents {
15734 _WebSocketEventsImpl(_ptr) : super(_ptr); 15734 _WebSocketEventsImpl(_ptr) : super(_ptr);
15735 15735
15736 EventListenerList get close() => _get('close'); 15736 EventListenerList get close() => _get('close');
15737 15737
15738 EventListenerList get error() => _get('error'); 15738 EventListenerList get error() => _get('error');
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
15889 final _WindowImpl top; 15889 final _WindowImpl top;
15890 15890
15891 final _IDBFactoryImpl webkitIndexedDB; 15891 final _IDBFactoryImpl webkitIndexedDB;
15892 15892
15893 final _NotificationCenterImpl webkitNotifications; 15893 final _NotificationCenterImpl webkitNotifications;
15894 15894
15895 final _StorageInfoImpl webkitStorageInfo; 15895 final _StorageInfoImpl webkitStorageInfo;
15896 15896
15897 final _WindowImpl window; 15897 final _WindowImpl window;
15898 15898
15899 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 15899 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
15900 15900
15901 void alert(String message) native; 15901 void alert(String message) native;
15902 15902
15903 String atob(String string) native; 15903 String atob(String string) native;
15904 15904
15905 void blur() native; 15905 void blur() native;
15906 15906
15907 String btoa(String string) native; 15907 String btoa(String string) native;
15908 15908
15909 void captureEvents() native; 15909 void captureEvents() native;
15910 15910
15911 void clearInterval(int handle) native; 15911 void clearInterval(int handle) native;
15912 15912
15913 void clearTimeout(int handle) native; 15913 void clearTimeout(int handle) native;
15914 15914
15915 void close() native; 15915 void close() native;
15916 15916
15917 bool confirm(String message) native; 15917 bool confirm(String message) native;
15918 15918
15919 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 15919 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
15920 15920
15921 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native; 15921 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
15922 15922
15923 void focus() native; 15923 void focus() native;
15924 15924
15925 _CSSStyleDeclarationImpl $dom_getComputedStyle(_ElementImpl element, String ps eudoElement) native "return this.getComputedStyle(element, pseudoElement);"; 15925 _CSSStyleDeclarationImpl $dom_getComputedStyle(_ElementImpl element, String ps eudoElement) native "getComputedStyle";
15926 15926
15927 _CSSRuleListImpl getMatchedCSSRules(_ElementImpl element, String pseudoElement ) native; 15927 _CSSRuleListImpl getMatchedCSSRules(_ElementImpl element, String pseudoElement ) native;
15928 15928
15929 _DOMSelectionImpl getSelection() native; 15929 _DOMSelectionImpl getSelection() native;
15930 15930
15931 _MediaQueryListImpl matchMedia(String query) native; 15931 _MediaQueryListImpl matchMedia(String query) native;
15932 15932
15933 void moveBy(num x, num y) native; 15933 void moveBy(num x, num y) native;
15934 15934
15935 void moveTo(num x, num y) native; 15935 void moveTo(num x, num y) native;
15936 15936
15937 _WindowImpl open(String url, String name, [String options = null]) native; 15937 _WindowImpl open(String url, String name, [String options = null]) native;
15938 15938
15939 _DatabaseImpl openDatabase(String name, String version, String displayName, in t estimatedSize, [DatabaseCallback creationCallback = null]) native; 15939 _DatabaseImpl openDatabase(String name, String version, String displayName, in t estimatedSize, [DatabaseCallback creationCallback = null]) native;
15940 15940
15941 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu ll]) native; 15941 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu ll]) native;
15942 15942
15943 void print() native; 15943 void print() native;
15944 15944
15945 String prompt(String message, String defaultValue) native; 15945 String prompt(String message, String defaultValue) native;
15946 15946
15947 void releaseEvents() native; 15947 void releaseEvents() native;
15948 15948
15949 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 15949 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
15950 15950
15951 void resizeBy(num x, num y) native; 15951 void resizeBy(num x, num y) native;
15952 15952
15953 void resizeTo(num width, num height) native; 15953 void resizeTo(num width, num height) native;
15954 15954
15955 void scroll(int x, int y) native; 15955 void scroll(int x, int y) native;
15956 15956
15957 void scrollBy(int x, int y) native; 15957 void scrollBy(int x, int y) native;
15958 15958
15959 void scrollTo(int x, int y) native; 15959 void scrollTo(int x, int y) native;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
16269 final int status; 16269 final int status;
16270 16270
16271 final String statusText; 16271 final String statusText;
16272 16272
16273 final _XMLHttpRequestUploadImpl upload; 16273 final _XMLHttpRequestUploadImpl upload;
16274 16274
16275 bool withCredentials; 16275 bool withCredentials;
16276 16276
16277 void abort() native; 16277 void abort() native;
16278 16278
16279 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 16279 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
16280 16280
16281 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 16281 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
16282 16282
16283 String getAllResponseHeaders() native; 16283 String getAllResponseHeaders() native;
16284 16284
16285 String getResponseHeader(String header) native; 16285 String getResponseHeader(String header) native;
16286 16286
16287 void open(String method, String url, [bool async = null, String user = null, S tring password = null]) native; 16287 void open(String method, String url, [bool async = null, String user = null, S tring password = null]) native;
16288 16288
16289 void overrideMimeType(String override) native; 16289 void overrideMimeType(String override) native;
16290 16290
16291 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 16291 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
16292 16292
16293 void send([var data = null]) native; 16293 void send([var data = null]) native;
16294 16294
16295 void setRequestHeader(String header, String value) native; 16295 void setRequestHeader(String header, String value) native;
16296 } 16296 }
16297 16297
16298 class _XMLHttpRequestEventsImpl extends _EventsImpl implements XMLHttpRequestEve nts { 16298 class _XMLHttpRequestEventsImpl extends _EventsImpl implements XMLHttpRequestEve nts {
16299 _XMLHttpRequestEventsImpl(_ptr) : super(_ptr); 16299 _XMLHttpRequestEventsImpl(_ptr) : super(_ptr);
16300 16300
16301 EventListenerList get abort() => _get('abort'); 16301 EventListenerList get abort() => _get('abort');
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
16333 final int position; 16333 final int position;
16334 16334
16335 final int totalSize; 16335 final int totalSize;
16336 } 16336 }
16337 16337
16338 class _XMLHttpRequestUploadImpl extends _EventTargetImpl implements XMLHttpReque stUpload native "*XMLHttpRequestUpload" { 16338 class _XMLHttpRequestUploadImpl extends _EventTargetImpl implements XMLHttpReque stUpload native "*XMLHttpRequestUpload" {
16339 16339
16340 _XMLHttpRequestUploadEventsImpl get on() => 16340 _XMLHttpRequestUploadEventsImpl get on() =>
16341 new _XMLHttpRequestUploadEventsImpl(this); 16341 new _XMLHttpRequestUploadEventsImpl(this);
16342 16342
16343 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "this.addEventListener(type, listener, useCapture);"; 16343 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re = null]) native "addEventListener";
16344 16344
16345 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt) ;"; 16345 bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
16346 16346
16347 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "this.removeEventListener(type, listener, useCapture);"; 16347 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture = null]) native "removeEventListener";
16348 } 16348 }
16349 16349
16350 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ estUploadEvents { 16350 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ estUploadEvents {
16351 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr); 16351 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr);
16352 16352
16353 EventListenerList get abort() => _get('abort'); 16353 EventListenerList get abort() => _get('abort');
16354 16354
16355 EventListenerList get error() => _get('error'); 16355 EventListenerList get error() => _get('error');
16356 16356
16357 EventListenerList get load() => _get('load'); 16357 EventListenerList get load() => _get('load');
(...skipping 15739 matching lines...) Expand 10 before | Expand all | Expand 10 after
32097 if (length < 0) throw new IllegalArgumentException('length'); 32097 if (length < 0) throw new IllegalArgumentException('length');
32098 if (start < 0) throw new IndexOutOfRangeException(start); 32098 if (start < 0) throw new IndexOutOfRangeException(start);
32099 int end = start + length; 32099 int end = start + length;
32100 if (end > a.length) throw new IndexOutOfRangeException(end); 32100 if (end > a.length) throw new IndexOutOfRangeException(end);
32101 for (int i = start; i < end; i++) { 32101 for (int i = start; i < end; i++) {
32102 accumulator.add(a[i]); 32102 accumulator.add(a[i]);
32103 } 32103 }
32104 return accumulator; 32104 return accumulator;
32105 } 32105 }
32106 } 32106 }
OLDNEW
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | samples/third_party/dromaeo/tests/dom-query-html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698