OLD | NEW |
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 |
11 | 11 |
12 | 12 |
13 | 13 |
14 _WindowImpl _cachedWindow; | |
15 _DocumentImpl _cachedDocument; | |
16 | 14 |
17 void _init() { | 15 Window get window() native "return window;"; |
18 _cachedDocument = _document; | |
19 _cachedWindow = _window; | |
20 // Feature detect that dart:dom and dart:html are not both loaded by | |
21 // checking for the presence of a bug that manifests itself when both | |
22 // libraries are loaded. | |
23 // TODO(jacobr): remove this code once b/1911 is fixed and the frog compiler | |
24 // is changed to generate compile time errors if two libraries that define | |
25 // the same native types in conflicting ways are imported. | |
26 var element = new Element.tag('body'); | |
27 element.innerHTML = 'f'; | |
28 if (element.text == '') { | |
29 _cachedWindow.console.error( | |
30 'Cannot import dart:html and dart:dom within the same application.'); | |
31 throw new UnsupportedOperationException( | |
32 'Cannot import dart:html and dart:dom within the same application.'); | |
33 } | |
34 } | |
35 | |
36 Window get window() { | |
37 if (_cachedWindow == null) { | |
38 _init(); | |
39 } | |
40 return _cachedWindow; | |
41 } | |
42 | |
43 _WindowImpl get _window() native "return window;"; | 16 _WindowImpl get _window() native "return window;"; |
44 | 17 |
45 Document get document() { | 18 Document get document() native "return document;"; |
46 if (_cachedDocument == null) { | |
47 _init(); | |
48 } | |
49 return _cachedDocument; | |
50 } | |
51 | 19 |
52 _DocumentImpl get _document() native "return window.document.documentElement;"; | 20 _DocumentImpl get _document() native "return document;"; |
53 | 21 |
54 // Workaround for tags like <cite> that lack their own Element subclass -- | 22 // Workaround for tags like <cite> that lack their own Element subclass -- |
55 // Dart issue 1990. | 23 // Dart issue 1990. |
56 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { | 24 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { |
57 } | 25 } |
58 | 26 |
59 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat
ive "*AbstractWorker" { | 27 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat
ive "*AbstractWorker" { |
60 | 28 |
61 _AbstractWorkerEventsImpl get on() => | 29 _AbstractWorkerEventsImpl get on() => |
62 new _AbstractWorkerEventsImpl(this); | 30 new _AbstractWorkerEventsImpl(this); |
63 | 31 |
64 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 32 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
65 | 33 |
66 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 34 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
67 | 35 |
68 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 36 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
69 } | 37 } |
70 | 38 |
71 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve
nts { | 39 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve
nts { |
72 _AbstractWorkerEventsImpl(_ptr) : super(_ptr); | 40 _AbstractWorkerEventsImpl(_ptr) : super(_ptr); |
73 | 41 |
74 EventListenerList get error() => _get('error'); | 42 EventListenerList get error() => _get('error'); |
75 } | 43 } |
76 | 44 |
77 class _AnchorElementImpl extends _ElementImpl implements AnchorElement native "*
HTMLAnchorElement" { | 45 class _AnchorElementImpl extends _ElementImpl implements AnchorElement native "*
HTMLAnchorElement" { |
78 | 46 |
(...skipping 4121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4200 static final int OBSOLETE = 5; | 4168 static final int OBSOLETE = 5; |
4201 | 4169 |
4202 static final int UNCACHED = 0; | 4170 static final int UNCACHED = 0; |
4203 | 4171 |
4204 static final int UPDATEREADY = 4; | 4172 static final int UPDATEREADY = 4; |
4205 | 4173 |
4206 final int status; | 4174 final int status; |
4207 | 4175 |
4208 void abort() native; | 4176 void abort() native; |
4209 | 4177 |
4210 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 4178 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
4211 | 4179 |
4212 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 4180 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
4213 | 4181 |
4214 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 4182 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
4215 | 4183 |
4216 void swapCache() native; | 4184 void swapCache() native; |
4217 | 4185 |
4218 void update() native; | 4186 void update() native; |
4219 } | 4187 } |
4220 | 4188 |
4221 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati
onCacheEvents { | 4189 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati
onCacheEvents { |
4222 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); | 4190 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); |
4223 | 4191 |
4224 EventListenerList get cached() => _get('cached'); | 4192 EventListenerList get cached() => _get('cached'); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4315 | 4283 |
4316 class _DOMFormDataImpl implements DOMFormData native "*DOMFormData" { | 4284 class _DOMFormDataImpl implements DOMFormData native "*DOMFormData" { |
4317 | 4285 |
4318 void append(String name, String value, String filename) native; | 4286 void append(String name, String value, String filename) native; |
4319 } | 4287 } |
4320 | 4288 |
4321 class _DOMImplementationImpl implements DOMImplementation native "*DOMImplementa
tion" { | 4289 class _DOMImplementationImpl implements DOMImplementation native "*DOMImplementa
tion" { |
4322 | 4290 |
4323 _CSSStyleSheetImpl createCSSStyleSheet(String title, String media) native; | 4291 _CSSStyleSheetImpl createCSSStyleSheet(String title, String media) native; |
4324 | 4292 |
4325 _DocumentImpl createDocument(String namespaceURI, String qualifiedName, _Docum
entTypeImpl doctype) => _FixHtmlDocumentReference(_createDocument(namespaceURI,
qualifiedName, doctype)); | 4293 _DocumentImpl createDocument(String namespaceURI, String qualifiedName, _Docum
entTypeImpl doctype) native; |
4326 | |
4327 _EventTargetImpl _createDocument(String namespaceURI, String qualifiedName, _D
ocumentTypeImpl doctype) native "return this.createDocument(namespaceURI, qualif
iedName, doctype);"; | |
4328 | 4294 |
4329 _DocumentTypeImpl createDocumentType(String qualifiedName, String publicId, St
ring systemId) native; | 4295 _DocumentTypeImpl createDocumentType(String qualifiedName, String publicId, St
ring systemId) native; |
4330 | 4296 |
4331 _DocumentImpl createHTMLDocument(String title) => _FixHtmlDocumentReference(_c
reateHTMLDocument(title)); | 4297 _DocumentImpl createHTMLDocument(String title) native; |
4332 | |
4333 _EventTargetImpl _createHTMLDocument(String title) native "return this.createH
TMLDocument(title);"; | |
4334 | 4298 |
4335 bool hasFeature(String feature, String version) native; | 4299 bool hasFeature(String feature, String version) native; |
4336 } | 4300 } |
4337 | 4301 |
4338 class _DOMMimeTypeImpl implements DOMMimeType native "*DOMMimeType" { | 4302 class _DOMMimeTypeImpl implements DOMMimeType native "*DOMMimeType" { |
4339 | 4303 |
4340 final String description; | 4304 final String description; |
4341 | 4305 |
4342 final _DOMPluginImpl enabledPlugin; | 4306 final _DOMPluginImpl enabledPlugin; |
4343 | 4307 |
4344 final String suffixes; | 4308 final String suffixes; |
4345 | 4309 |
4346 final String type; | 4310 final String type; |
4347 } | 4311 } |
4348 | 4312 |
4349 class _DOMMimeTypeArrayImpl implements DOMMimeTypeArray native "*DOMMimeTypeArra
y" { | 4313 class _DOMMimeTypeArrayImpl implements DOMMimeTypeArray native "*DOMMimeTypeArra
y" { |
4350 | 4314 |
4351 final int length; | 4315 final int length; |
4352 | 4316 |
4353 _DOMMimeTypeImpl item(int index) native; | 4317 _DOMMimeTypeImpl item(int index) native; |
4354 | 4318 |
4355 _DOMMimeTypeImpl namedItem(String name) native; | 4319 _DOMMimeTypeImpl namedItem(String name) native; |
4356 } | 4320 } |
4357 | 4321 |
4358 class _DOMParserImpl implements DOMParser native "*DOMParser" { | 4322 class _DOMParserImpl implements DOMParser native "*DOMParser" { |
4359 | 4323 |
4360 _DocumentImpl parseFromString(String str, String contentType) => _FixHtmlDocum
entReference(_parseFromString(str, contentType)); | 4324 _DocumentImpl parseFromString(String str, String contentType) native; |
4361 | |
4362 _EventTargetImpl _parseFromString(String str, String contentType) native "retu
rn this.parseFromString(str, contentType);"; | |
4363 } | 4325 } |
4364 | 4326 |
4365 class _DOMPluginImpl implements DOMPlugin native "*DOMPlugin" { | 4327 class _DOMPluginImpl implements DOMPlugin native "*DOMPlugin" { |
4366 | 4328 |
4367 final String description; | 4329 final String description; |
4368 | 4330 |
4369 final String filename; | 4331 final String filename; |
4370 | 4332 |
4371 final int length; | 4333 final int length; |
4372 | 4334 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4673 } | 4635 } |
4674 | 4636 |
4675 class _DivElementImpl extends _ElementImpl implements DivElement native "*HTMLDi
vElement" { | 4637 class _DivElementImpl extends _ElementImpl implements DivElement native "*HTMLDi
vElement" { |
4676 | 4638 |
4677 String align; | 4639 String align; |
4678 } | 4640 } |
4679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4680 // for details. All rights reserved. Use of this source code is governed by a | 4642 // for details. All rights reserved. Use of this source code is governed by a |
4681 // BSD-style license that can be found in the LICENSE file. | 4643 // BSD-style license that can be found in the LICENSE file. |
4682 | 4644 |
4683 class _DocumentImpl extends _ElementImpl | 4645 class _DocumentImpl extends _NodeImpl |
4684 implements Document | 4646 implements Document |
4685 native "*HTMLHtmlElement" { | 4647 native "*HTMLDocument" |
| 4648 { |
| 4649 |
4686 | 4650 |
4687 _DocumentEventsImpl get on() => | 4651 _DocumentEventsImpl get on() => |
4688 new _DocumentEventsImpl(_jsDocument); | 4652 new _DocumentEventsImpl(this); |
4689 | 4653 |
4690 _ElementImpl get activeElement() native "return this.parentNode.activeElement;
"; | 4654 final _ElementImpl activeElement; |
4691 | 4655 |
4692 _ElementImpl get body() native "return this.parentNode.body;"; | 4656 _ElementImpl body; |
4693 | 4657 |
4694 void set body(_ElementImpl value) native "this.parentNode.body = value;"; | 4658 String charset; |
4695 | 4659 |
4696 String get charset() native "return this.parentNode.charset;"; | 4660 String cookie; |
4697 | 4661 |
4698 void set charset(String value) native "this.parentNode.charset = value;"; | 4662 _WindowImpl get window() native "return this.defaultView;"; |
4699 | 4663 |
4700 String get cookie() native "return this.parentNode.cookie;"; | 4664 final _ElementImpl documentElement; |
4701 | 4665 |
4702 void set cookie(String value) native "this.parentNode.cookie = value;"; | 4666 final String domain; |
4703 | 4667 |
4704 _WindowImpl get window() native "return this.parentNode.defaultView;"; | 4668 final _HeadElementImpl head; |
4705 | 4669 |
4706 String get domain() native "return this.parentNode.domain;"; | 4670 final String lastModified; |
4707 | 4671 |
4708 _HeadElementImpl get head() native "return this.parentNode.head;"; | 4672 final String preferredStylesheetSet; |
4709 | 4673 |
4710 String get lastModified() native "return this.parentNode.lastModified;"; | 4674 final String readyState; |
4711 | 4675 |
4712 String get preferredStylesheetSet() native "return this.parentNode.preferredSt
ylesheetSet;"; | 4676 final String referrer; |
4713 | 4677 |
4714 String get readyState() native "return this.parentNode.readyState;"; | 4678 String selectedStylesheetSet; |
4715 | 4679 |
4716 String get referrer() native "return this.parentNode.referrer;"; | 4680 final _StyleSheetListImpl styleSheets; |
4717 | 4681 |
4718 String get selectedStylesheetSet() native "return this.parentNode.selectedStyl
esheetSet;"; | 4682 String title; |
4719 | 4683 |
4720 void set selectedStylesheetSet(String value) native "this.parentNode.selectedS
tylesheetSet = value;"; | 4684 final _ElementImpl webkitCurrentFullScreenElement; |
4721 | 4685 |
4722 _StyleSheetListImpl get styleSheets() native "return this.parentNode.styleShee
ts;"; | 4686 final bool webkitFullScreenKeyboardInputAllowed; |
4723 | 4687 |
4724 String get title() native "return this.parentNode.title;"; | 4688 final _ElementImpl webkitFullscreenElement; |
4725 | 4689 |
4726 void set title(String value) native "this.parentNode.title = value;"; | 4690 final bool webkitFullscreenEnabled; |
4727 | 4691 |
4728 _ElementImpl get webkitCurrentFullScreenElement() native "return this.parentNo
de.webkitCurrentFullScreenElement;"; | 4692 final bool webkitHidden; |
4729 | 4693 |
4730 bool get webkitFullScreenKeyboardInputAllowed() native "return this.parentNode
.webkitFullScreenKeyboardInputAllowed;"; | 4694 final bool webkitIsFullScreen; |
4731 | 4695 |
4732 _ElementImpl get webkitFullscreenElement() native "return this.parentNode.webk
itFullscreenElement;"; | 4696 final String webkitVisibilityState; |
4733 | 4697 |
4734 bool get webkitFullscreenEnabled() native "return this.parentNode.webkitFullsc
reenEnabled;"; | 4698 _RangeImpl caretRangeFromPoint(int x, int y) native; |
4735 | 4699 |
4736 bool get webkitHidden() native "return this.parentNode.webkitHidden;"; | 4700 _CDATASectionImpl createCDATASection(String data) native; |
4737 | 4701 |
4738 bool get webkitIsFullScreen() native "return this.parentNode.webkitIsFullScree
n;"; | 4702 _DocumentFragmentImpl createDocumentFragment() native; |
4739 | 4703 |
4740 String get webkitVisibilityState() native "return this.parentNode.webkitVisibi
lityState;"; | 4704 _ElementImpl $dom_createElement(String tagName) native "return this.createElem
ent(tagName);"; |
4741 | 4705 |
4742 _RangeImpl caretRangeFromPoint(int x, int y) native "return this.parentNode.ca
retRangeFromPoint(x, y);"; | 4706 _ElementImpl $dom_createElementNS(String namespaceURI, String qualifiedName) n
ative "return this.createElementNS(namespaceURI, qualifiedName);"; |
4743 | 4707 |
4744 _CDATASectionImpl createCDATASection(String data) native "return this.parentNo
de.createCDATASection(data);"; | 4708 _EventImpl $dom_createEvent(String eventType) native "return this.createEvent(
eventType);"; |
4745 | 4709 |
4746 _DocumentFragmentImpl createDocumentFragment() native "return this.parentNode.
createDocumentFragment();"; | 4710 _RangeImpl createRange() native; |
4747 | 4711 |
4748 _ElementImpl _createElement(String tagName) native "return this.parentNode.cre
ateElement(tagName);"; | 4712 _TextImpl $dom_createTextNode(String data) native "return this.createTextNode(
data);"; |
4749 | 4713 |
4750 _ElementImpl _createElementNS(String namespaceURI, String qualifiedName) nativ
e "return this.parentNode.createElementNS(namespaceURI, qualifiedName);"; | 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; |
4751 | 4715 |
4752 _EventImpl _createEvent(String eventType) native "return this.parentNode.creat
eEvent(eventType);"; | 4716 _TouchListImpl $dom_createTouchList() native "return this.createTouchList();"; |
4753 | 4717 |
4754 _RangeImpl createRange() native "return this.parentNode.createRange();"; | 4718 _ElementImpl elementFromPoint(int x, int y) native; |
4755 | 4719 |
4756 _TextImpl _createTextNode(String data) native "return this.parentNode.createTe
xtNode(data);"; | 4720 bool execCommand(String command, bool userInterface, String value) native; |
4757 | 4721 |
4758 _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 "return this.parent
Node.createTouch(window, target, identifier, pageX, pageY, screenX, screenY, web
kitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);"; | 4722 _CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name,
int width, int height) native; |
4759 | 4723 |
4760 _TouchListImpl _createTouchList() native "return this.parentNode.createTouchLi
st();"; | 4724 _ElementImpl $dom_getElementById(String elementId) native "return this.getElem
entById(elementId);"; |
4761 | 4725 |
4762 _ElementImpl elementFromPoint(int x, int y) native "return this.parentNode.ele
mentFromPoint(x, y);"; | 4726 _NodeListImpl $dom_getElementsByClassName(String tagname) native "return this.
getElementsByClassName(tagname);"; |
4763 | 4727 |
4764 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; | 4728 _NodeListImpl $dom_getElementsByName(String elementName) native "return this.g
etElementsByName(elementName);"; |
4765 | 4729 |
4766 _CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name,
int width, int height) native "return this.parentNode.getCSSCanvasContext(conte
xtId, name, width, height);"; | 4730 _NodeListImpl $dom_getElementsByTagName(String tagname) native "return this.ge
tElementsByTagName(tagname);"; |
4767 | 4731 |
4768 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; | 4732 bool queryCommandEnabled(String command) native; |
4769 | 4733 |
4770 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; | 4734 bool queryCommandIndeterm(String command) native; |
4771 | 4735 |
4772 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; | 4736 bool queryCommandState(String command) native; |
4773 | 4737 |
4774 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; | 4738 bool queryCommandSupported(String command) native; |
4775 | 4739 |
4776 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; | 4740 String queryCommandValue(String command) native; |
4777 | 4741 |
4778 void webkitCancelFullScreen() native "this.parentNode.webkitCancelFullScreen()
;"; | 4742 _ElementImpl _query(String selectors) native "return this.querySelector(select
ors);"; |
4779 | 4743 |
4780 void webkitExitFullscreen() native "this.parentNode.webkitExitFullscreen();"; | 4744 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer
ySelectorAll(selectors);"; |
4781 | 4745 |
4782 _WebKitNamedFlowImpl webkitGetFlowByName(String name) native "return this.pare
ntNode.webkitGetFlowByName(name);"; | 4746 void webkitCancelFullScreen() native; |
4783 | 4747 |
| 4748 void webkitExitFullscreen() native; |
4784 | 4749 |
4785 // For efficiency and simplicity, we always use the HtmlElement as the | 4750 _WebKitNamedFlowImpl webkitGetFlowByName(String name) native; |
4786 // Document but sometimes internally we need the real JS document object. | |
4787 _NodeImpl get _jsDocument() native "return this.parentNode;"; | |
4788 | 4751 |
4789 // The document doesn't have a parent element. | 4752 // TODO(jacobr): implement all Element methods not on Document. |
4790 _ElementImpl get parent() => null; | |
4791 } | |
4792 | 4753 |
4793 // This class should not be externally visible. If a user ever gets access to | 4754 _ElementImpl query(String selectors) { |
4794 // a _SecretHtmlDocumentImpl object that is a bug. This object is hidden by | 4755 if (const RegExp("^#\\w+\$").hasMatch(selectors)) { |
4795 // adding checks to all methods that could an HTMLDocument. We believe that | 4756 return $dom_getElementById(selectors.substring(1)); |
4796 // list is limited to Event.target, and HTMLHtmlElement.parent. | 4757 } |
4797 class _SecretHtmlDocumentImpl extends _NodeImpl implements Node | 4758 return $dom_querySelector(selectors); |
4798 native "*HTMLDocument" { | 4759 } |
4799 _DocumentImpl get _documentElement() native "return this.documentElement;"; | |
4800 } | |
4801 | 4760 |
4802 EventTarget _FixHtmlDocumentReference(EventTarget eventTarget) { | 4761 _ElementImpl $dom_querySelector(String selectors) native "return this.querySel
ector(selectors);"; |
4803 if (eventTarget is _SecretHtmlDocumentImpl) { | 4762 |
4804 _SecretHtmlDocumentImpl secretDocument = eventTarget; | 4763 ElementList queryAll(String selectors) { |
4805 return secretDocument._documentElement; | 4764 if (const RegExp("""^\\[name=["'][^'"]+['"]\\]\$""").hasMatch(selectors)) { |
4806 } else { | 4765 final mutableMatches = $dom_getElementsByName( |
4807 return eventTarget; | 4766 selectors.substring(7,selectors.length - 2)); |
| 4767 int len = mutableMatches.length; |
| 4768 final copyOfMatches = new List<Element>(len); |
| 4769 for (int i = 0; i < len; ++i) { |
| 4770 copyOfMatches[i] = mutableMatches[i]; |
| 4771 } |
| 4772 return new _FrozenElementList._wrap(copyOfMatches); |
| 4773 } else if (const RegExp("^[*a-zA-Z0-9]+\$").hasMatch(selectors)) { |
| 4774 final mutableMatches = $dom_getElementsByTagName(selectors); |
| 4775 int len = mutableMatches.length; |
| 4776 final copyOfMatches = new List<Element>(len); |
| 4777 for (int i = 0; i < len; ++i) { |
| 4778 copyOfMatches[i] = mutableMatches[i]; |
| 4779 } |
| 4780 return new _FrozenElementList._wrap(copyOfMatches); |
| 4781 } else { |
| 4782 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| 4783 } |
4808 } | 4784 } |
4809 } | 4785 } |
4810 | 4786 |
4811 class _DocumentEventsImpl extends _ElementEventsImpl implements DocumentEvents { | 4787 class _DocumentEventsImpl extends _ElementEventsImpl implements DocumentEvents { |
4812 _DocumentEventsImpl(_ptr) : super(_ptr); | 4788 _DocumentEventsImpl(_ptr) : super(_ptr); |
4813 | 4789 |
4814 EventListenerList get abort() => _get('abort'); | 4790 EventListenerList get abort() => _get('abort'); |
4815 | 4791 |
4816 EventListenerList get beforeCopy() => _get('beforecopy'); | 4792 EventListenerList get beforeCopy() => _get('beforecopy'); |
4817 | 4793 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5046 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | 5022 // TODO: The type of value should be Collection<Element>. See http://b/5392897 |
5047 void set elements(value) { | 5023 void set elements(value) { |
5048 // Copy list first since we don't want liveness during iteration. | 5024 // Copy list first since we don't want liveness during iteration. |
5049 List copy = new List.from(value); | 5025 List copy = new List.from(value); |
5050 final elements = this.elements; | 5026 final elements = this.elements; |
5051 elements.clear(); | 5027 elements.clear(); |
5052 elements.addAll(copy); | 5028 elements.addAll(copy); |
5053 } | 5029 } |
5054 | 5030 |
5055 ElementList queryAll(String selectors) => | 5031 ElementList queryAll(String selectors) => |
5056 new _FrozenElementList._wrap(_querySelectorAll(selectors)); | 5032 new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
5057 | 5033 |
5058 String get innerHTML() { | 5034 String get innerHTML() { |
5059 final e = new Element.tag("div"); | 5035 final e = new Element.tag("div"); |
5060 e.nodes.add(this.clone(true)); | 5036 e.nodes.add(this.clone(true)); |
5061 return e.innerHTML; | 5037 return e.innerHTML; |
5062 } | 5038 } |
5063 | 5039 |
5064 String get outerHTML() => innerHTML; | 5040 String get outerHTML() => innerHTML; |
5065 | 5041 |
5066 // TODO(nweiz): Do we want to support some variant of innerHTML for XML and/or | 5042 // TODO(nweiz): Do we want to support some variant of innerHTML for XML and/or |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5115 bool get draggable() => false; | 5091 bool get draggable() => false; |
5116 bool get hidden() => false; | 5092 bool get hidden() => false; |
5117 bool get spellcheck() => false; | 5093 bool get spellcheck() => false; |
5118 bool get translate() => false; | 5094 bool get translate() => false; |
5119 int get tabIndex() => -1; | 5095 int get tabIndex() => -1; |
5120 String get id() => ""; | 5096 String get id() => ""; |
5121 String get title() => ""; | 5097 String get title() => ""; |
5122 String get tagName() => ""; | 5098 String get tagName() => ""; |
5123 String get webkitdropzone() => ""; | 5099 String get webkitdropzone() => ""; |
5124 String get webkitRegionOverflow() => ""; | 5100 String get webkitRegionOverflow() => ""; |
5125 Element get firstElementChild() => elements.first(); | 5101 Element get $dom_firstElementChild() => elements.first(); |
5126 Element get lastElementChild() => elements.last(); | 5102 Element get $dom_lastElementChild() => elements.last(); |
5127 Element get nextElementSibling() => null; | 5103 Element get nextElementSibling() => null; |
5128 Element get previousElementSibling() => null; | 5104 Element get previousElementSibling() => null; |
5129 Element get offsetParent() => null; | 5105 Element get offsetParent() => null; |
5130 Element get parent() => null; | 5106 Element get parent() => null; |
5131 Map<String, String> get attributes() => const {}; | 5107 Map<String, String> get attributes() => const {}; |
5132 // Issue 174: this should be a const set. | 5108 // Issue 174: this should be a const set. |
5133 Set<String> get classes() => new Set<String>(); | 5109 Set<String> get classes() => new Set<String>(); |
5134 Map<String, String> get dataAttributes() => const {}; | 5110 Map<String, String> get dataAttributes() => const {}; |
5135 CSSStyleDeclaration get style() => new Element.tag('div').style; | 5111 CSSStyleDeclaration get style() => new Element.tag('div').style; |
5136 Future<CSSStyleDeclaration> get computedStyle() => | 5112 Future<CSSStyleDeclaration> get computedStyle() => |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5246 throw new UnsupportedOperationException( | 5222 throw new UnsupportedOperationException( |
5247 "WebKit region overflow can't be set for document fragments."); | 5223 "WebKit region overflow can't be set for document fragments."); |
5248 } | 5224 } |
5249 | 5225 |
5250 | 5226 |
5251 _ElementEventsImpl get on() => | 5227 _ElementEventsImpl get on() => |
5252 new _ElementEventsImpl(this); | 5228 new _ElementEventsImpl(this); |
5253 | 5229 |
5254 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; | 5230 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; |
5255 | 5231 |
5256 _NodeListImpl _querySelectorAll(String selectors) native "return this.querySel
ectorAll(selectors);"; | 5232 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer
ySelectorAll(selectors);"; |
5257 | 5233 |
5258 } | 5234 } |
5259 | 5235 |
5260 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum
entType" { | 5236 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum
entType" { |
5261 | 5237 |
5262 final _NamedNodeMapImpl entities; | 5238 final _NamedNodeMapImpl entities; |
5263 | 5239 |
5264 final String internalSubset; | 5240 final String internalSubset; |
5265 | 5241 |
5266 final String name; | 5242 final String name; |
(...skipping 27 matching lines...) Expand all Loading... |
5294 // BSD-style license that can be found in the LICENSE file. | 5270 // BSD-style license that can be found in the LICENSE file. |
5295 | 5271 |
5296 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 5272 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
5297 // functionality. | 5273 // functionality. |
5298 class _ChildrenElementList implements ElementList { | 5274 class _ChildrenElementList implements ElementList { |
5299 // Raw Element. | 5275 // Raw Element. |
5300 final _ElementImpl _element; | 5276 final _ElementImpl _element; |
5301 final _HTMLCollectionImpl _childElements; | 5277 final _HTMLCollectionImpl _childElements; |
5302 | 5278 |
5303 _ChildrenElementList._wrap(_ElementImpl element) | 5279 _ChildrenElementList._wrap(_ElementImpl element) |
5304 : _childElements = element._children, | 5280 : _childElements = element.$dom_children, |
5305 _element = element; | 5281 _element = element; |
5306 | 5282 |
5307 List<Element> _toList() { | 5283 List<Element> _toList() { |
5308 final output = new List(_childElements.length); | 5284 final output = new List(_childElements.length); |
5309 for (int i = 0, len = _childElements.length; i < len; i++) { | 5285 for (int i = 0, len = _childElements.length; i < len; i++) { |
5310 output[i] = _childElements[i]; | 5286 output[i] = _childElements[i]; |
5311 } | 5287 } |
5312 return output; | 5288 return output; |
5313 } | 5289 } |
5314 | 5290 |
5315 _ElementImpl get first() { | 5291 _ElementImpl get first() { |
5316 return _element._firstElementChild; | 5292 return _element.$dom_firstElementChild; |
5317 } | 5293 } |
5318 | 5294 |
5319 void forEach(void f(Element element)) { | 5295 void forEach(void f(Element element)) { |
5320 for (_ElementImpl element in _childElements) { | 5296 for (_ElementImpl element in _childElements) { |
5321 f(element); | 5297 f(element); |
5322 } | 5298 } |
5323 } | 5299 } |
5324 | 5300 |
5325 ElementList filter(bool f(Element element)) { | 5301 ElementList filter(bool f(Element element)) { |
5326 final output = <Element>[]; | 5302 final output = <Element>[]; |
(...skipping 25 matching lines...) Expand all Loading... |
5352 | 5328 |
5353 Collection map(f(Element element)) { | 5329 Collection map(f(Element element)) { |
5354 final out = []; | 5330 final out = []; |
5355 for (Element el in this) { | 5331 for (Element el in this) { |
5356 out.add(f(el)); | 5332 out.add(f(el)); |
5357 } | 5333 } |
5358 return out; | 5334 return out; |
5359 } | 5335 } |
5360 | 5336 |
5361 bool isEmpty() { | 5337 bool isEmpty() { |
5362 return _element._firstElementChild == null; | 5338 return _element.$dom_firstElementChild == null; |
5363 } | 5339 } |
5364 | 5340 |
5365 int get length() { | 5341 int get length() { |
5366 return _childElements.length; | 5342 return _childElements.length; |
5367 } | 5343 } |
5368 | 5344 |
5369 _ElementImpl operator [](int index) { | 5345 _ElementImpl operator [](int index) { |
5370 return _childElements[index]; | 5346 return _childElements[index]; |
5371 } | 5347 } |
5372 | 5348 |
5373 void operator []=(int index, _ElementImpl value) { | 5349 void operator []=(int index, _ElementImpl value) { |
5374 _element._replaceChild(value, _childElements[index]); | 5350 _element.$dom_replaceChild(value, _childElements[index]); |
5375 } | 5351 } |
5376 | 5352 |
5377 void set length(int newLength) { | 5353 void set length(int newLength) { |
5378 // TODO(jacobr): remove children when length is reduced. | 5354 // TODO(jacobr): remove children when length is reduced. |
5379 throw const UnsupportedOperationException(''); | 5355 throw const UnsupportedOperationException(''); |
5380 } | 5356 } |
5381 | 5357 |
5382 Element add(_ElementImpl value) { | 5358 Element add(_ElementImpl value) { |
5383 _element._appendChild(value); | 5359 _element.$dom_appendChild(value); |
5384 return value; | 5360 return value; |
5385 } | 5361 } |
5386 | 5362 |
5387 Element addLast(_ElementImpl value) => add(value); | 5363 Element addLast(_ElementImpl value) => add(value); |
5388 | 5364 |
5389 Iterator<Element> iterator() => _toList().iterator(); | 5365 Iterator<Element> iterator() => _toList().iterator(); |
5390 | 5366 |
5391 void addAll(Collection<Element> collection) { | 5367 void addAll(Collection<Element> collection) { |
5392 for (_ElementImpl element in collection) { | 5368 for (_ElementImpl element in collection) { |
5393 _element._appendChild(element); | 5369 _element.$dom_appendChild(element); |
5394 } | 5370 } |
5395 } | 5371 } |
5396 | 5372 |
5397 void sort(int compare(Element a, Element b)) { | 5373 void sort(int compare(Element a, Element b)) { |
5398 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | 5374 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); |
5399 } | 5375 } |
5400 | 5376 |
5401 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | 5377 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { |
5402 throw 'Not impl yet. todo(jacobr)'; | 5378 throw 'Not impl yet. todo(jacobr)'; |
5403 } | 5379 } |
(...skipping 24 matching lines...) Expand all Loading... |
5428 } | 5404 } |
5429 | 5405 |
5430 void clear() { | 5406 void clear() { |
5431 // It is unclear if we want to keep non element nodes? | 5407 // It is unclear if we want to keep non element nodes? |
5432 _element.text = ''; | 5408 _element.text = ''; |
5433 } | 5409 } |
5434 | 5410 |
5435 Element removeLast() { | 5411 Element removeLast() { |
5436 final last = this.last(); | 5412 final last = this.last(); |
5437 if (last != null) { | 5413 if (last != null) { |
5438 _element._removeChild(last); | 5414 _element.$dom_removeChild(last); |
5439 } | 5415 } |
5440 return last; | 5416 return last; |
5441 } | 5417 } |
5442 | 5418 |
5443 Element last() { | 5419 Element last() { |
5444 return _element.lastElementChild; | 5420 return _element.$dom_lastElementChild; |
5445 } | 5421 } |
5446 } | 5422 } |
5447 | 5423 |
5448 // TODO(jacobr): this is an inefficient implementation but it is hard to see | 5424 // TODO(jacobr): this is an inefficient implementation but it is hard to see |
5449 // a better option given that we cannot quite force NodeList to be an | 5425 // a better option given that we cannot quite force NodeList to be an |
5450 // ElementList as there are valid cases where a NodeList JavaScript object | 5426 // ElementList as there are valid cases where a NodeList JavaScript object |
5451 // contains Node objects that are not Elements. | 5427 // contains Node objects that are not Elements. |
5452 class _FrozenElementList implements ElementList { | 5428 class _FrozenElementList implements ElementList { |
5453 final List<Node> _nodeList; | 5429 final List<Node> _nodeList; |
5454 | 5430 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5596 new _ElementList(super.getRange(start, length)); | 5572 new _ElementList(super.getRange(start, length)); |
5597 } | 5573 } |
5598 | 5574 |
5599 class ElementAttributeMap implements Map<String, String> { | 5575 class ElementAttributeMap implements Map<String, String> { |
5600 | 5576 |
5601 final _ElementImpl _element; | 5577 final _ElementImpl _element; |
5602 | 5578 |
5603 ElementAttributeMap._wrap(this._element); | 5579 ElementAttributeMap._wrap(this._element); |
5604 | 5580 |
5605 bool containsValue(String value) { | 5581 bool containsValue(String value) { |
5606 final attributes = _element._attributes; | 5582 final attributes = _element.$dom_attributes; |
5607 for (int i = 0, len = attributes.length; i < len; i++) { | 5583 for (int i = 0, len = attributes.length; i < len; i++) { |
5608 if(value == attributes[i].value) { | 5584 if(value == attributes[i].value) { |
5609 return true; | 5585 return true; |
5610 } | 5586 } |
5611 } | 5587 } |
5612 return false; | 5588 return false; |
5613 } | 5589 } |
5614 | 5590 |
5615 bool containsKey(String key) { | 5591 bool containsKey(String key) { |
5616 return _element._hasAttribute(key); | 5592 return _element.$dom_hasAttribute(key); |
5617 } | 5593 } |
5618 | 5594 |
5619 String operator [](String key) { | 5595 String operator [](String key) { |
5620 return _element._getAttribute(key); | 5596 return _element.$dom_getAttribute(key); |
5621 } | 5597 } |
5622 | 5598 |
5623 void operator []=(String key, String value) { | 5599 void operator []=(String key, String value) { |
5624 _element._setAttribute(key, value); | 5600 _element.$dom_setAttribute(key, value); |
5625 } | 5601 } |
5626 | 5602 |
5627 String putIfAbsent(String key, String ifAbsent()) { | 5603 String putIfAbsent(String key, String ifAbsent()) { |
5628 if (!containsKey(key)) { | 5604 if (!containsKey(key)) { |
5629 this[key] = ifAbsent(); | 5605 this[key] = ifAbsent(); |
5630 } | 5606 } |
5631 } | 5607 } |
5632 | 5608 |
5633 String remove(String key) { | 5609 String remove(String key) { |
5634 _element._removeAttribute(key); | 5610 _element.$dom_removeAttribute(key); |
5635 } | 5611 } |
5636 | 5612 |
5637 void clear() { | 5613 void clear() { |
5638 final attributes = _element._attributes; | 5614 final attributes = _element.$dom_attributes; |
5639 for (int i = attributes.length - 1; i >= 0; i--) { | 5615 for (int i = attributes.length - 1; i >= 0; i--) { |
5640 remove(attributes[i].name); | 5616 remove(attributes[i].name); |
5641 } | 5617 } |
5642 } | 5618 } |
5643 | 5619 |
5644 void forEach(void f(String key, String value)) { | 5620 void forEach(void f(String key, String value)) { |
5645 final attributes = _element._attributes; | 5621 final attributes = _element.$dom_attributes; |
5646 for (int i = 0, len = attributes.length; i < len; i++) { | 5622 for (int i = 0, len = attributes.length; i < len; i++) { |
5647 final item = attributes[i]; | 5623 final item = attributes[i]; |
5648 f(item.name, item.value); | 5624 f(item.name, item.value); |
5649 } | 5625 } |
5650 } | 5626 } |
5651 | 5627 |
5652 Collection<String> getKeys() { | 5628 Collection<String> getKeys() { |
5653 // TODO(jacobr): generate a lazy collection instead. | 5629 // TODO(jacobr): generate a lazy collection instead. |
5654 final attributes = _element._attributes; | 5630 final attributes = _element.$dom_attributes; |
5655 final keys = new List<String>(attributes.length); | 5631 final keys = new List<String>(attributes.length); |
5656 for (int i = 0, len = attributes.length; i < len; i++) { | 5632 for (int i = 0, len = attributes.length; i < len; i++) { |
5657 keys[i] = attributes[i].name; | 5633 keys[i] = attributes[i].name; |
5658 } | 5634 } |
5659 return keys; | 5635 return keys; |
5660 } | 5636 } |
5661 | 5637 |
5662 Collection<String> getValues() { | 5638 Collection<String> getValues() { |
5663 // TODO(jacobr): generate a lazy collection instead. | 5639 // TODO(jacobr): generate a lazy collection instead. |
5664 final attributes = _element._attributes; | 5640 final attributes = _element.$dom_attributes; |
5665 final values = new List<String>(attributes.length); | 5641 final values = new List<String>(attributes.length); |
5666 for (int i = 0, len = attributes.length; i < len; i++) { | 5642 for (int i = 0, len = attributes.length; i < len; i++) { |
5667 values[i] = attributes[i].value; | 5643 values[i] = attributes[i].value; |
5668 } | 5644 } |
5669 return values; | 5645 return values; |
5670 } | 5646 } |
5671 | 5647 |
5672 /** | 5648 /** |
5673 * The number of {key, value} pairs in the map. | 5649 * The number of {key, value} pairs in the map. |
5674 */ | 5650 */ |
5675 int get length() { | 5651 int get length() { |
5676 return _element._attributes.length; | 5652 return _element.$dom_attributes.length; |
5677 } | 5653 } |
5678 | 5654 |
5679 /** | 5655 /** |
5680 * Returns true if there is no {key, value} pair in the map. | 5656 * Returns true if there is no {key, value} pair in the map. |
5681 */ | 5657 */ |
5682 bool isEmpty() { | 5658 bool isEmpty() { |
5683 return length == 0; | 5659 return length == 0; |
5684 } | 5660 } |
5685 } | 5661 } |
5686 | 5662 |
(...skipping 26 matching lines...) Expand all Loading... |
5713 final ClientRect client; | 5689 final ClientRect client; |
5714 final ClientRect offset; | 5690 final ClientRect offset; |
5715 final ClientRect scroll; | 5691 final ClientRect scroll; |
5716 | 5692 |
5717 // TODO(jacobr): should we move these outside of ElementRect to avoid the | 5693 // TODO(jacobr): should we move these outside of ElementRect to avoid the |
5718 // overhead of computing them every time even though they are rarely used. | 5694 // overhead of computing them every time even though they are rarely used. |
5719 final _ClientRectImpl _boundingClientRect; | 5695 final _ClientRectImpl _boundingClientRect; |
5720 final _ClientRectListImpl _clientRects; | 5696 final _ClientRectListImpl _clientRects; |
5721 | 5697 |
5722 _ElementRectImpl(_ElementImpl element) : | 5698 _ElementRectImpl(_ElementImpl element) : |
5723 client = new _SimpleClientRect(element._clientLeft, | 5699 client = new _SimpleClientRect(element.$dom_clientLeft, |
5724 element._clientTop, | 5700 element.$dom_clientTop, |
5725 element._clientWidth, | 5701 element.$dom_clientWidth, |
5726 element._clientHeight), | 5702 element.$dom_clientHeight), |
5727 offset = new _SimpleClientRect(element._offsetLeft, | 5703 offset = new _SimpleClientRect(element.$dom_offsetLeft, |
5728 element._offsetTop, | 5704 element.$dom_offsetTop, |
5729 element._offsetWidth, | 5705 element.$dom_offsetWidth, |
5730 element._offsetHeight), | 5706 element.$dom_offsetHeight), |
5731 scroll = new _SimpleClientRect(element._scrollLeft, | 5707 scroll = new _SimpleClientRect(element.$dom_scrollLeft, |
5732 element._scrollTop, | 5708 element.$dom_scrollTop, |
5733 element._scrollWidth, | 5709 element.$dom_scrollWidth, |
5734 element._scrollHeight), | 5710 element.$dom_scrollHeight), |
5735 _boundingClientRect = element._getBoundingClientRect(), | 5711 _boundingClientRect = element.$dom_getBoundingClientRect(), |
5736 _clientRects = element._getClientRects(); | 5712 _clientRects = element.$dom_getClientRects(); |
5737 | 5713 |
5738 _ClientRectImpl get bounding() => _boundingClientRect; | 5714 _ClientRectImpl get bounding() => _boundingClientRect; |
5739 | 5715 |
5740 // TODO(jacobr): cleanup. | 5716 // TODO(jacobr): cleanup. |
5741 List<ClientRect> get clientRects() { | 5717 List<ClientRect> get clientRects() { |
5742 final out = new List(_clientRects.length); | 5718 final out = new List(_clientRects.length); |
5743 for (num i = 0; i < _clientRects.length; i++) { | 5719 for (num i = 0; i < _clientRects.length; i++) { |
5744 out[i] = _clientRects.item(i); | 5720 out[i] = _clientRects.item(i); |
5745 } | 5721 } |
5746 return out; | 5722 return out; |
(...skipping 28 matching lines...) Expand all Loading... |
5775 | 5751 |
5776 void set elements(Collection<Element> value) { | 5752 void set elements(Collection<Element> value) { |
5777 final elements = this.elements; | 5753 final elements = this.elements; |
5778 elements.clear(); | 5754 elements.clear(); |
5779 elements.addAll(value); | 5755 elements.addAll(value); |
5780 } | 5756 } |
5781 | 5757 |
5782 ElementList get elements() => new _ChildrenElementList._wrap(this); | 5758 ElementList get elements() => new _ChildrenElementList._wrap(this); |
5783 | 5759 |
5784 ElementList queryAll(String selectors) => | 5760 ElementList queryAll(String selectors) => |
5785 new _FrozenElementList._wrap(_querySelectorAll(selectors)); | 5761 new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
5786 | 5762 |
5787 Set<String> get classes() { | 5763 Set<String> get classes() { |
5788 if (_cssClassSet === null) { | 5764 if (_cssClassSet === null) { |
5789 _cssClassSet = new _CssClassSet(this); | 5765 _cssClassSet = new _CssClassSet(this); |
5790 } | 5766 } |
5791 return _cssClassSet; | 5767 return _cssClassSet; |
5792 } | 5768 } |
5793 | 5769 |
5794 void set classes(Collection<String> value) { | 5770 void set classes(Collection<String> value) { |
5795 _CssClassSet classSet = classes; | 5771 _CssClassSet classSet = classes; |
(...skipping 22 matching lines...) Expand all Loading... |
5818 new Completer<ElementRect>()); | 5794 new Completer<ElementRect>()); |
5819 } | 5795 } |
5820 | 5796 |
5821 Future<CSSStyleDeclaration> get computedStyle() { | 5797 Future<CSSStyleDeclaration> get computedStyle() { |
5822 // TODO(jacobr): last param should be null, see b/5045788 | 5798 // TODO(jacobr): last param should be null, see b/5045788 |
5823 return getComputedStyle(''); | 5799 return getComputedStyle(''); |
5824 } | 5800 } |
5825 | 5801 |
5826 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { | 5802 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { |
5827 return _createMeasurementFuture( | 5803 return _createMeasurementFuture( |
5828 () => _window._getComputedStyle(this, pseudoElement), | 5804 () => _window.$dom_getComputedStyle(this, pseudoElement), |
5829 new Completer<CSSStyleDeclaration>()); | 5805 new Completer<CSSStyleDeclaration>()); |
5830 } | 5806 } |
5831 | 5807 |
5832 _ElementEventsImpl get on() => | 5808 _ElementEventsImpl get on() => |
5833 new _ElementEventsImpl(this); | 5809 new _ElementEventsImpl(this); |
5834 | 5810 |
5835 static final int ALLOW_KEYBOARD_INPUT = 1; | 5811 static final int ALLOW_KEYBOARD_INPUT = 1; |
5836 | 5812 |
5837 int get _childElementCount() native "return this.childElementCount;"; | 5813 int get $dom_childElementCount() native "return this.childElementCount;"; |
5838 | 5814 |
5839 _HTMLCollectionImpl get _children() native "return this.children;"; | 5815 _HTMLCollectionImpl get $dom_children() native "return this.children;"; |
5840 | 5816 |
5841 String get _className() native "return this.className;"; | 5817 String get $dom_className() native "return this.className;"; |
5842 | 5818 |
5843 void set _className(String value) native "this.className = value;"; | 5819 void set $dom_className(String value) native "this.className = value;"; |
5844 | 5820 |
5845 int get _clientHeight() native "return this.clientHeight;"; | 5821 int get $dom_clientHeight() native "return this.clientHeight;"; |
5846 | 5822 |
5847 int get _clientLeft() native "return this.clientLeft;"; | 5823 int get $dom_clientLeft() native "return this.clientLeft;"; |
5848 | 5824 |
5849 int get _clientTop() native "return this.clientTop;"; | 5825 int get $dom_clientTop() native "return this.clientTop;"; |
5850 | 5826 |
5851 int get _clientWidth() native "return this.clientWidth;"; | 5827 int get $dom_clientWidth() native "return this.clientWidth;"; |
5852 | 5828 |
5853 String contentEditable; | 5829 String contentEditable; |
5854 | 5830 |
5855 String dir; | 5831 String dir; |
5856 | 5832 |
5857 bool draggable; | 5833 bool draggable; |
5858 | 5834 |
5859 _ElementImpl get _firstElementChild() native "return this.firstElementChild;"; | 5835 _ElementImpl get $dom_firstElementChild() native "return this.firstElementChil
d;"; |
5860 | 5836 |
5861 bool hidden; | 5837 bool hidden; |
5862 | 5838 |
5863 String id; | 5839 String id; |
5864 | 5840 |
5865 String innerHTML; | 5841 String innerHTML; |
5866 | 5842 |
5867 final bool isContentEditable; | 5843 final bool isContentEditable; |
5868 | 5844 |
5869 String lang; | 5845 String lang; |
5870 | 5846 |
5871 final _ElementImpl lastElementChild; | 5847 _ElementImpl get $dom_lastElementChild() native "return this.lastElementChild;
"; |
5872 | 5848 |
5873 final _ElementImpl nextElementSibling; | 5849 final _ElementImpl nextElementSibling; |
5874 | 5850 |
5875 int get _offsetHeight() native "return this.offsetHeight;"; | 5851 int get $dom_offsetHeight() native "return this.offsetHeight;"; |
5876 | 5852 |
5877 int get _offsetLeft() native "return this.offsetLeft;"; | 5853 int get $dom_offsetLeft() native "return this.offsetLeft;"; |
5878 | 5854 |
5879 final _ElementImpl offsetParent; | 5855 final _ElementImpl offsetParent; |
5880 | 5856 |
5881 int get _offsetTop() native "return this.offsetTop;"; | 5857 int get $dom_offsetTop() native "return this.offsetTop;"; |
5882 | 5858 |
5883 int get _offsetWidth() native "return this.offsetWidth;"; | 5859 int get $dom_offsetWidth() native "return this.offsetWidth;"; |
5884 | 5860 |
5885 final String outerHTML; | 5861 final String outerHTML; |
5886 | 5862 |
5887 final _ElementImpl previousElementSibling; | 5863 final _ElementImpl previousElementSibling; |
5888 | 5864 |
5889 int get _scrollHeight() native "return this.scrollHeight;"; | 5865 int get $dom_scrollHeight() native "return this.scrollHeight;"; |
5890 | 5866 |
5891 int get _scrollLeft() native "return this.scrollLeft;"; | 5867 int get $dom_scrollLeft() native "return this.scrollLeft;"; |
5892 | 5868 |
5893 void set _scrollLeft(int value) native "this.scrollLeft = value;"; | 5869 void set $dom_scrollLeft(int value) native "this.scrollLeft = value;"; |
5894 | 5870 |
5895 int get _scrollTop() native "return this.scrollTop;"; | 5871 int get $dom_scrollTop() native "return this.scrollTop;"; |
5896 | 5872 |
5897 void set _scrollTop(int value) native "this.scrollTop = value;"; | 5873 void set $dom_scrollTop(int value) native "this.scrollTop = value;"; |
5898 | 5874 |
5899 int get _scrollWidth() native "return this.scrollWidth;"; | 5875 int get $dom_scrollWidth() native "return this.scrollWidth;"; |
5900 | 5876 |
5901 bool spellcheck; | 5877 bool spellcheck; |
5902 | 5878 |
5903 final _CSSStyleDeclarationImpl style; | 5879 final _CSSStyleDeclarationImpl style; |
5904 | 5880 |
5905 int tabIndex; | 5881 int tabIndex; |
5906 | 5882 |
5907 final String tagName; | 5883 final String tagName; |
5908 | 5884 |
5909 String title; | 5885 String title; |
5910 | 5886 |
5911 bool translate; | 5887 bool translate; |
5912 | 5888 |
5913 final String webkitRegionOverflow; | 5889 final String webkitRegionOverflow; |
5914 | 5890 |
5915 String webkitdropzone; | 5891 String webkitdropzone; |
5916 | 5892 |
5917 void blur() native; | 5893 void blur() native; |
5918 | 5894 |
5919 void click() native; | 5895 void click() native; |
5920 | 5896 |
5921 void focus() native; | 5897 void focus() native; |
5922 | 5898 |
5923 String _getAttribute(String name) native "return this.getAttribute(name);"; | 5899 String $dom_getAttribute(String name) native "return this.getAttribute(name);"
; |
5924 | 5900 |
5925 _ClientRectImpl _getBoundingClientRect() native "return this.getBoundingClient
Rect();"; | 5901 _ClientRectImpl $dom_getBoundingClientRect() native "return this.getBoundingCl
ientRect();"; |
5926 | 5902 |
5927 _ClientRectListImpl _getClientRects() native "return this.getClientRects();"; | 5903 _ClientRectListImpl $dom_getClientRects() native "return this.getClientRects()
;"; |
5928 | 5904 |
5929 bool _hasAttribute(String name) native "return this.hasAttribute(name);"; | 5905 _NodeListImpl $dom_getElementsByClassName(String name) native "return this.get
ElementsByClassName(name);"; |
| 5906 |
| 5907 _NodeListImpl $dom_getElementsByTagName(String name) native "return this.getEl
ementsByTagName(name);"; |
| 5908 |
| 5909 bool $dom_hasAttribute(String name) native "return this.hasAttribute(name);"; |
5930 | 5910 |
5931 _ElementImpl insertAdjacentElement(String where, _ElementImpl element) native; | 5911 _ElementImpl insertAdjacentElement(String where, _ElementImpl element) native; |
5932 | 5912 |
5933 void insertAdjacentHTML(String where, String html) native; | 5913 void insertAdjacentHTML(String where, String html) native; |
5934 | 5914 |
5935 void insertAdjacentText(String where, String text) native; | 5915 void insertAdjacentText(String where, String text) native; |
5936 | 5916 |
5937 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; | 5917 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; |
5938 | 5918 |
5939 _NodeListImpl _querySelectorAll(String selectors) native "return this.querySel
ectorAll(selectors);"; | 5919 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer
ySelectorAll(selectors);"; |
5940 | 5920 |
5941 void _removeAttribute(String name) native "this.removeAttribute(name);"; | 5921 void $dom_removeAttribute(String name) native "this.removeAttribute(name);"; |
5942 | 5922 |
5943 void scrollByLines(int lines) native; | 5923 void scrollByLines(int lines) native; |
5944 | 5924 |
5945 void scrollByPages(int pages) native; | 5925 void scrollByPages(int pages) native; |
5946 | 5926 |
5947 void scrollIntoView([bool centerIfNeeded = null]) native "this.scrollIntoViewI
fNeeded(centerIfNeeded);"; | 5927 void scrollIntoView([bool centerIfNeeded = null]) native "this.scrollIntoViewI
fNeeded(centerIfNeeded);"; |
5948 | 5928 |
5949 void _setAttribute(String name, String value) native "this.setAttribute(name,
value);"; | 5929 void $dom_setAttribute(String name, String value) native "this.setAttribute(na
me, value);"; |
5950 | 5930 |
5951 bool matchesSelector(String selectors) native "return this.webkitMatchesSelect
or(selectors);"; | 5931 bool matchesSelector(String selectors) native "return this.webkitMatchesSelect
or(selectors);"; |
5952 | 5932 |
5953 void webkitRequestFullScreen(int flags) native; | 5933 void webkitRequestFullScreen(int flags) native; |
5954 | 5934 |
5955 void webkitRequestFullscreen() native; | 5935 void webkitRequestFullscreen() native; |
5956 | 5936 |
5957 } | 5937 } |
5958 | 5938 |
| 5939 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); |
| 5940 class _ElementFactoryProvider { |
| 5941 static final _CUSTOM_PARENT_TAG_MAP = const { |
| 5942 'body' : 'html', |
| 5943 'head' : 'html', |
| 5944 'caption' : 'table', |
| 5945 'td': 'tr', |
| 5946 'colgroup': 'table', |
| 5947 'col' : 'colgroup', |
| 5948 'tr' : 'tbody', |
| 5949 'tbody' : 'table', |
| 5950 'tfoot' : 'table', |
| 5951 'thead' : 'table', |
| 5952 'track' : 'audio', |
| 5953 }; |
| 5954 |
| 5955 /** @domName Document.createElement */ |
| 5956 factory Element.html(String html) { |
| 5957 // TODO(jacobr): this method can be made more robust and performant. |
| 5958 // 1) Cache the dummy parent elements required to use innerHTML rather than |
| 5959 // creating them every call. |
| 5960 // 2) Verify that the html does not contain leading or trailing text nodes. |
| 5961 // 3) Verify that the html does not contain both <head> and <body> tags. |
| 5962 // 4) Detatch the created element from its dummy parent. |
| 5963 String parentTag = 'div'; |
| 5964 String tag; |
| 5965 final match = _START_TAG_REGEXP.firstMatch(html); |
| 5966 if (match !== null) { |
| 5967 tag = match.group(1).toLowerCase(); |
| 5968 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { |
| 5969 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; |
| 5970 } |
| 5971 } |
| 5972 final _ElementImpl temp = new Element.tag(parentTag); |
| 5973 temp.innerHTML = html; |
| 5974 |
| 5975 Element element; |
| 5976 if (temp.elements.length == 1) { |
| 5977 element = temp.elements.first; |
| 5978 } else if (parentTag == 'html' && temp.elements.length == 2) { |
| 5979 // Work around for edge case in WebKit and possibly other browsers where |
| 5980 // both body and head elements are created even though the inner html |
| 5981 // only contains a head or body element. |
| 5982 element = temp.elements[tag == 'head' ? 0 : 1]; |
| 5983 } else { |
| 5984 throw new IllegalArgumentException('HTML had ${temp.elements.length} ' + |
| 5985 'top level elements but 1 expected'); |
| 5986 } |
| 5987 element.remove(); |
| 5988 return element; |
| 5989 } |
| 5990 |
| 5991 /** @domName Document.createElement */ |
| 5992 // Optimization to improve performance until the frog compiler inlines this |
| 5993 // method. |
| 5994 factory Element.tag(String tag) native "return document.createElement(tag)"; |
| 5995 } |
| 5996 |
5959 class _ElementEventsImpl extends _EventsImpl implements ElementEvents { | 5997 class _ElementEventsImpl extends _EventsImpl implements ElementEvents { |
5960 _ElementEventsImpl(_ptr) : super(_ptr); | 5998 _ElementEventsImpl(_ptr) : super(_ptr); |
5961 | 5999 |
5962 EventListenerList get abort() => _get('abort'); | 6000 EventListenerList get abort() => _get('abort'); |
5963 | 6001 |
5964 EventListenerList get beforeCopy() => _get('beforecopy'); | 6002 EventListenerList get beforeCopy() => _get('beforecopy'); |
5965 | 6003 |
5966 EventListenerList get beforeCut() => _get('beforecut'); | 6004 EventListenerList get beforeCut() => _get('beforecut'); |
5967 | 6005 |
5968 EventListenerList get beforePaste() => _get('beforepaste'); | 6006 EventListenerList get beforePaste() => _get('beforepaste'); |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6219 static final int SELECT = 16384; | 6257 static final int SELECT = 16384; |
6220 | 6258 |
6221 final bool bubbles; | 6259 final bool bubbles; |
6222 | 6260 |
6223 bool cancelBubble; | 6261 bool cancelBubble; |
6224 | 6262 |
6225 final bool cancelable; | 6263 final bool cancelable; |
6226 | 6264 |
6227 final _ClipboardImpl clipboardData; | 6265 final _ClipboardImpl clipboardData; |
6228 | 6266 |
6229 _EventTargetImpl get currentTarget() => _FixHtmlDocumentReference(_currentTarg
et); | 6267 final _EventTargetImpl currentTarget; |
6230 | |
6231 _EventTargetImpl get _currentTarget() native "return this.currentTarget;"; | |
6232 | 6268 |
6233 final bool defaultPrevented; | 6269 final bool defaultPrevented; |
6234 | 6270 |
6235 final int eventPhase; | 6271 final int eventPhase; |
6236 | 6272 |
6237 bool returnValue; | 6273 bool returnValue; |
6238 | 6274 |
6239 _EventTargetImpl get srcElement() => _FixHtmlDocumentReference(_srcElement); | 6275 final _EventTargetImpl srcElement; |
6240 | 6276 |
6241 _EventTargetImpl get _srcElement() native "return this.srcElement;"; | 6277 final _EventTargetImpl target; |
6242 | |
6243 _EventTargetImpl get target() => _FixHtmlDocumentReference(_target); | |
6244 | |
6245 _EventTargetImpl get _target() native "return this.target;"; | |
6246 | 6278 |
6247 final int timeStamp; | 6279 final int timeStamp; |
6248 | 6280 |
6249 final String type; | 6281 final String type; |
6250 | 6282 |
6251 void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) na
tive "this.initEvent(eventTypeArg, canBubbleArg, cancelableArg);"; | 6283 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native "this.initEvent(eventTypeArg, canBubbleArg, cancelableArg);"; |
6252 | 6284 |
6253 void preventDefault() native; | 6285 void preventDefault() native; |
6254 | 6286 |
6255 void stopImmediatePropagation() native; | 6287 void stopImmediatePropagation() native; |
6256 | 6288 |
6257 void stopPropagation() native; | 6289 void stopPropagation() native; |
6258 } | 6290 } |
6259 | 6291 |
6260 class _EventExceptionImpl implements EventException native "*EventException" { | 6292 class _EventExceptionImpl implements EventException native "*EventException" { |
6261 | 6293 |
(...skipping 20 matching lines...) Expand all Loading... |
6282 static final int CONNECTING = 0; | 6314 static final int CONNECTING = 0; |
6283 | 6315 |
6284 static final int OPEN = 1; | 6316 static final int OPEN = 1; |
6285 | 6317 |
6286 final String URL; | 6318 final String URL; |
6287 | 6319 |
6288 final int readyState; | 6320 final int readyState; |
6289 | 6321 |
6290 final String url; | 6322 final String url; |
6291 | 6323 |
6292 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 6324 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
6293 | 6325 |
6294 void close() native; | 6326 void close() native; |
6295 | 6327 |
6296 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 6328 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
6297 | 6329 |
6298 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 6330 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
6299 } | 6331 } |
6300 | 6332 |
6301 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents { | 6333 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents { |
6302 _EventSourceEventsImpl(_ptr) : super(_ptr); | 6334 _EventSourceEventsImpl(_ptr) : super(_ptr); |
6303 | 6335 |
6304 EventListenerList get error() => _get('error'); | 6336 EventListenerList get error() => _get('error'); |
6305 | 6337 |
6306 EventListenerList get message() => _get('message'); | 6338 EventListenerList get message() => _get('message'); |
6307 | 6339 |
6308 EventListenerList get open() => _get('open'); | 6340 EventListenerList get open() => _get('open'); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6345 _EventListenerListImpl remove(EventListener listener, | 6377 _EventListenerListImpl remove(EventListener listener, |
6346 [bool useCapture = false]) { | 6378 [bool useCapture = false]) { |
6347 _remove(listener, useCapture); | 6379 _remove(listener, useCapture); |
6348 return this; | 6380 return this; |
6349 } | 6381 } |
6350 | 6382 |
6351 bool dispatch(Event evt) { | 6383 bool dispatch(Event evt) { |
6352 // TODO(jacobr): what is the correct behavior here. We could alternately | 6384 // TODO(jacobr): what is the correct behavior here. We could alternately |
6353 // force the event to have the expected type. | 6385 // force the event to have the expected type. |
6354 assert(evt.type == _type); | 6386 assert(evt.type == _type); |
6355 return _ptr._dispatchEvent(evt); | 6387 return _ptr.$dom_dispatchEvent(evt); |
6356 } | 6388 } |
6357 | 6389 |
6358 void _add(EventListener listener, bool useCapture) { | 6390 void _add(EventListener listener, bool useCapture) { |
6359 _ptr._addEventListener(_type, listener, useCapture); | 6391 _ptr.$dom_addEventListener(_type, listener, useCapture); |
6360 } | 6392 } |
6361 | 6393 |
6362 void _remove(EventListener listener, bool useCapture) { | 6394 void _remove(EventListener listener, bool useCapture) { |
6363 _ptr._removeEventListener(_type, listener, useCapture); | 6395 _ptr.$dom_removeEventListener(_type, listener, useCapture); |
6364 } | 6396 } |
6365 } | 6397 } |
6366 | 6398 |
6367 | 6399 |
6368 class _EventTargetImpl implements EventTarget native "*EventTarget" { | 6400 class _EventTargetImpl implements EventTarget native "*EventTarget" { |
6369 | 6401 |
6370 Events get on() => new _EventsImpl(this); | 6402 Events get on() => new _EventsImpl(this); |
6371 | 6403 |
6372 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 6404 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
6373 | 6405 |
6374 bool _dispatchEvent(_EventImpl event) native "return this.dispatchEvent(event)
;"; | 6406 bool $dom_dispatchEvent(_EventImpl event) native "return this.dispatchEvent(ev
ent);"; |
6375 | 6407 |
6376 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 6408 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
6377 | 6409 |
6378 } | 6410 } |
6379 | 6411 |
6380 class _FieldSetElementImpl extends _ElementImpl implements FieldSetElement nativ
e "*HTMLFieldSetElement" { | 6412 class _FieldSetElementImpl extends _ElementImpl implements FieldSetElement nativ
e "*HTMLFieldSetElement" { |
6381 | 6413 |
6382 final _FormElementImpl form; | 6414 final _FormElementImpl form; |
6383 | 6415 |
6384 String name; | 6416 String name; |
6385 | 6417 |
6386 final String type; | 6418 final String type; |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6807 | 6839 |
6808 bool checkValidity() native; | 6840 bool checkValidity() native; |
6809 | 6841 |
6810 void reset() native; | 6842 void reset() native; |
6811 | 6843 |
6812 void submit() native; | 6844 void submit() native; |
6813 } | 6845 } |
6814 | 6846 |
6815 class _FrameElementImpl extends _ElementImpl implements FrameElement native "*HT
MLFrameElement" { | 6847 class _FrameElementImpl extends _ElementImpl implements FrameElement native "*HT
MLFrameElement" { |
6816 | 6848 |
6817 _DocumentImpl get contentDocument() => _FixHtmlDocumentReference(_contentDocum
ent); | 6849 final _DocumentImpl contentDocument; |
6818 | |
6819 _EventTargetImpl get _contentDocument() native "return this.contentDocument;"; | |
6820 | 6850 |
6821 final _WindowImpl contentWindow; | 6851 final _WindowImpl contentWindow; |
6822 | 6852 |
6823 String frameBorder; | 6853 String frameBorder; |
6824 | 6854 |
6825 final int height; | 6855 final int height; |
6826 | 6856 |
6827 String location; | 6857 String location; |
6828 | 6858 |
6829 String longDesc; | 6859 String longDesc; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7052 void back() native; | 7082 void back() native; |
7053 | 7083 |
7054 void forward() native; | 7084 void forward() native; |
7055 | 7085 |
7056 void go(int distance) native; | 7086 void go(int distance) native; |
7057 | 7087 |
7058 void pushState(Object data, String title, [String url = null]) native; | 7088 void pushState(Object data, String title, [String url = null]) native; |
7059 | 7089 |
7060 void replaceState(Object data, String title, [String url = null]) native; | 7090 void replaceState(Object data, String title, [String url = null]) native; |
7061 } | 7091 } |
7062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
7063 // for details. All rights reserved. Use of this source code is governed by a | |
7064 // BSD-style license that can be found in the LICENSE file. | |
7065 | 7092 |
7066 class _HtmlElementImpl extends _ElementImpl implements HtmlElement | 7093 class _HtmlElementImpl extends _ElementImpl implements HtmlElement native "*HTML
HtmlElement" { |
7067 native "*IntentionallyInvalid" { | |
7068 | |
7069 } | 7094 } |
7070 | 7095 |
7071 class _IDBAnyImpl implements IDBAny native "*IDBAny" { | 7096 class _IDBAnyImpl implements IDBAny native "*IDBAny" { |
7072 } | 7097 } |
7073 | 7098 |
7074 class _IDBCursorImpl implements IDBCursor native "*IDBCursor" { | 7099 class _IDBCursorImpl implements IDBCursor native "*IDBCursor" { |
7075 | 7100 |
7076 static final int NEXT = 0; | 7101 static final int NEXT = 0; |
7077 | 7102 |
7078 static final int NEXT_NO_DUPLICATE = 1; | 7103 static final int NEXT_NO_DUPLICATE = 1; |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7328 | 7353 |
7329 class _IDBVersionChangeRequestImpl extends _IDBRequestImpl implements IDBVersion
ChangeRequest native "*IDBVersionChangeRequest" { | 7354 class _IDBVersionChangeRequestImpl extends _IDBRequestImpl implements IDBVersion
ChangeRequest native "*IDBVersionChangeRequest" { |
7330 | 7355 |
7331 EventListener onblocked; | 7356 EventListener onblocked; |
7332 } | 7357 } |
7333 | 7358 |
7334 class _IFrameElementImpl extends _ElementImpl implements IFrameElement native "*
HTMLIFrameElement" { | 7359 class _IFrameElementImpl extends _ElementImpl implements IFrameElement native "*
HTMLIFrameElement" { |
7335 | 7360 |
7336 String align; | 7361 String align; |
7337 | 7362 |
7338 _DocumentImpl get contentDocument() => _FixHtmlDocumentReference(_contentDocum
ent); | 7363 final _DocumentImpl contentDocument; |
7339 | |
7340 _EventTargetImpl get _contentDocument() native "return this.contentDocument;"; | |
7341 | 7364 |
7342 final _WindowImpl contentWindow; | 7365 final _WindowImpl contentWindow; |
7343 | 7366 |
7344 String frameBorder; | 7367 String frameBorder; |
7345 | 7368 |
7346 String height; | 7369 String height; |
7347 | 7370 |
7348 String longDesc; | 7371 String longDesc; |
7349 | 7372 |
7350 String marginHeight; | 7373 String marginHeight; |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8373 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, _WindowImpl sourceArg, L
ist messagePorts) native; | 8396 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, _WindowImpl sourceArg, L
ist messagePorts) native; |
8374 | 8397 |
8375 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowImpl source
Arg, List transferables) native; | 8398 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowImpl source
Arg, List transferables) native; |
8376 } | 8399 } |
8377 | 8400 |
8378 class _MessagePortImpl extends _EventTargetImpl implements MessagePort native "*
MessagePort" { | 8401 class _MessagePortImpl extends _EventTargetImpl implements MessagePort native "*
MessagePort" { |
8379 | 8402 |
8380 _MessagePortEventsImpl get on() => | 8403 _MessagePortEventsImpl get on() => |
8381 new _MessagePortEventsImpl(this); | 8404 new _MessagePortEventsImpl(this); |
8382 | 8405 |
8383 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 8406 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
8384 | 8407 |
8385 void close() native; | 8408 void close() native; |
8386 | 8409 |
8387 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 8410 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
8388 | 8411 |
8389 void postMessage(String message, [List messagePorts = null]) native; | 8412 void postMessage(String message, [List messagePorts = null]) native; |
8390 | 8413 |
8391 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 8414 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
8392 | 8415 |
8393 void start() native; | 8416 void start() native; |
8394 | 8417 |
8395 void webkitPostMessage(String message, [List transfer = null]) native; | 8418 void webkitPostMessage(String message, [List transfer = null]) native; |
8396 } | 8419 } |
8397 | 8420 |
8398 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents { | 8421 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents { |
8399 _MessagePortEventsImpl(_ptr) : super(_ptr); | 8422 _MessagePortEventsImpl(_ptr) : super(_ptr); |
8400 | 8423 |
8401 EventListenerList get message() => _get('message'); | 8424 EventListenerList get message() => _get('message'); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8458 final _ClipboardImpl dataTransfer; | 8481 final _ClipboardImpl dataTransfer; |
8459 | 8482 |
8460 final _NodeImpl fromElement; | 8483 final _NodeImpl fromElement; |
8461 | 8484 |
8462 final bool metaKey; | 8485 final bool metaKey; |
8463 | 8486 |
8464 final int offsetX; | 8487 final int offsetX; |
8465 | 8488 |
8466 final int offsetY; | 8489 final int offsetY; |
8467 | 8490 |
8468 _EventTargetImpl get relatedTarget() => _FixHtmlDocumentReference(_relatedTarg
et); | 8491 final _EventTargetImpl relatedTarget; |
8469 | |
8470 _EventTargetImpl get _relatedTarget() native "return this.relatedTarget;"; | |
8471 | 8492 |
8472 final int screenX; | 8493 final int screenX; |
8473 | 8494 |
8474 final int screenY; | 8495 final int screenY; |
8475 | 8496 |
8476 final bool shiftKey; | 8497 final bool shiftKey; |
8477 | 8498 |
8478 final _NodeImpl toElement; | 8499 final _NodeImpl toElement; |
8479 | 8500 |
8480 final int x; | 8501 final int x; |
8481 | 8502 |
8482 final int y; | 8503 final int y; |
8483 | 8504 |
8484 void _initMouseEvent(String type, bool canBubble, bool cancelable, _WindowImpl
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrl
Key, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetImpl rela
tedTarget) native "this.initMouseEvent(type, canBubble, cancelable, view, detail
, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button
, relatedTarget);"; | 8505 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);"; |
8485 } | 8506 } |
8486 | 8507 |
8487 class _MutationEventImpl extends _EventImpl implements MutationEvent native "*Mu
tationEvent" { | 8508 class _MutationEventImpl extends _EventImpl implements MutationEvent native "*Mu
tationEvent" { |
8488 | 8509 |
8489 static final int ADDITION = 2; | 8510 static final int ADDITION = 2; |
8490 | 8511 |
8491 static final int MODIFICATION = 1; | 8512 static final int MODIFICATION = 1; |
8492 | 8513 |
8493 static final int REMOVAL = 3; | 8514 static final int REMOVAL = 3; |
8494 | 8515 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8641 class _NavigatorUserMediaErrorImpl implements NavigatorUserMediaError native "*N
avigatorUserMediaError" { | 8662 class _NavigatorUserMediaErrorImpl implements NavigatorUserMediaError native "*N
avigatorUserMediaError" { |
8642 | 8663 |
8643 static final int PERMISSION_DENIED = 1; | 8664 static final int PERMISSION_DENIED = 1; |
8644 | 8665 |
8645 final int code; | 8666 final int code; |
8646 } | 8667 } |
8647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8648 // for details. All rights reserved. Use of this source code is governed by a | 8669 // for details. All rights reserved. Use of this source code is governed by a |
8649 // BSD-style license that can be found in the LICENSE file. | 8670 // BSD-style license that can be found in the LICENSE file. |
8650 | 8671 |
| 8672 /** |
| 8673 * Lazy implementation of the child nodes of an element that does not request |
| 8674 * the actual child nodes of an element until strictly necessary greatly |
| 8675 * improving performance for the typical cases where it is not required. |
| 8676 */ |
| 8677 class _ChildNodeListLazy implements NodeList { |
| 8678 final _NodeImpl _this; |
| 8679 |
| 8680 _ChildNodeListLazy(this._this); |
| 8681 |
| 8682 |
| 8683 _NodeImpl get first() native "return this._this.firstChild;"; |
| 8684 _NodeImpl last() native "return this._this.lastChild;"; |
| 8685 |
| 8686 void add(_NodeImpl value) { |
| 8687 _this.$dom_appendChild(value); |
| 8688 } |
| 8689 |
| 8690 void addLast(_NodeImpl value) { |
| 8691 _this.$dom_appendChild(value); |
| 8692 } |
| 8693 |
| 8694 |
| 8695 void addAll(Collection<_NodeImpl> collection) { |
| 8696 for (_NodeImpl node in collection) { |
| 8697 _this.$dom_appendChild(node); |
| 8698 } |
| 8699 } |
| 8700 |
| 8701 _NodeImpl removeLast() { |
| 8702 final last = last(); |
| 8703 if (last != null) { |
| 8704 _this.$dom_removeChild(last); |
| 8705 } |
| 8706 return last; |
| 8707 } |
| 8708 |
| 8709 void clear() { |
| 8710 _this.text = ''; |
| 8711 } |
| 8712 |
| 8713 void operator []=(int index, _NodeImpl value) { |
| 8714 _this.$dom_replaceChild(value, this[index]); |
| 8715 } |
| 8716 |
| 8717 Iterator<Node> iterator() => _this.$dom_childNodes.iterator(); |
| 8718 |
| 8719 // TODO(jacobr): We can implement these methods much more efficiently by |
| 8720 // looking up the nodeList only once instead of once per iteration. |
| 8721 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 8722 |
| 8723 Collection map(f(Node element)) => _Collections.map(this, [], f); |
| 8724 |
| 8725 Collection<Node> filter(bool f(Node element)) => |
| 8726 new _NodeListWrapper(_Collections.filter(this, <Node>[], f)); |
| 8727 |
| 8728 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 8729 |
| 8730 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 8731 |
| 8732 bool isEmpty() => this.length == 0; |
| 8733 |
| 8734 // From List<Node>: |
| 8735 |
| 8736 // TODO(jacobr): this could be implemented for child node lists. |
| 8737 // The exception we throw here is misleading. |
| 8738 void sort(int compare(Node a, Node b)) { |
| 8739 throw new UnsupportedOperationException("Cannot sort immutable List."); |
| 8740 } |
| 8741 |
| 8742 int indexOf(Node element, [int start = 0]) => |
| 8743 _Lists.indexOf(this, element, start, this.length); |
| 8744 |
| 8745 int lastIndexOf(Node element, [int start = 0]) => |
| 8746 _Lists.lastIndexOf(this, element, start); |
| 8747 |
| 8748 // FIXME: implement thesee. |
| 8749 void setRange(int start, int length, List<Node> from, [int startFrom]) { |
| 8750 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
| 8751 } |
| 8752 void removeRange(int start, int length) { |
| 8753 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
| 8754 } |
| 8755 void insertRange(int start, int length, [Node initialValue]) { |
| 8756 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
| 8757 } |
| 8758 NodeList getRange(int start, int length) => |
| 8759 new _NodeListWrapper(_Lists.getRange(this, start, length, <Node>[])); |
| 8760 |
| 8761 // -- end List<Node> mixins. |
| 8762 |
| 8763 // TODO(jacobr): benchmark whether this is more efficient or whether caching |
| 8764 // a local copy of $dom_childNodes is more efficient. |
| 8765 int get length() => _this.$dom_childNodes.length; |
| 8766 |
| 8767 _NodeImpl operator[](int index) => _this.$dom_childNodes[index]; |
| 8768 } |
| 8769 |
8651 class _NodeImpl extends _EventTargetImpl implements Node native "*Node" { | 8770 class _NodeImpl extends _EventTargetImpl implements Node native "*Node" { |
8652 _NodeListImpl get nodes() { | 8771 _ChildNodeListLazy get nodes() { |
8653 final list = _childNodes; | 8772 return new _ChildNodeListLazy(this); |
8654 list._parent = this; | |
8655 return list; | |
8656 } | 8773 } |
8657 | 8774 |
8658 void set nodes(Collection<Node> value) { | 8775 void set nodes(Collection<Node> value) { |
8659 // Copy list first since we don't want liveness during iteration. | 8776 // Copy list first since we don't want liveness during iteration. |
8660 // TODO(jacobr): there is a better way to do this. | 8777 // TODO(jacobr): there is a better way to do this. |
8661 List copy = new List.from(value); | 8778 List copy = new List.from(value); |
8662 text = ''; | 8779 text = ''; |
8663 for (Node node in copy) { | 8780 for (Node node in copy) { |
8664 _appendChild(node); | 8781 $dom_appendChild(node); |
8665 } | 8782 } |
8666 } | 8783 } |
8667 | 8784 |
8668 // TODO(jacobr): should we throw an exception if parent is already null? | 8785 // TODO(jacobr): should we throw an exception if parent is already null? |
8669 _NodeImpl remove() { | 8786 _NodeImpl remove() { |
8670 if (this.parent != null) { | 8787 if (this.parent != null) { |
8671 final _NodeImpl parent = this.parent; | 8788 final _NodeImpl parent = this.parent; |
8672 parent._removeChild(this); | 8789 parent.$dom_removeChild(this); |
8673 } | 8790 } |
8674 return this; | 8791 return this; |
8675 } | 8792 } |
8676 | 8793 |
8677 _NodeImpl replaceWith(Node otherNode) { | 8794 _NodeImpl replaceWith(Node otherNode) { |
8678 try { | 8795 try { |
8679 final _NodeImpl parent = this.parent; | 8796 final _NodeImpl parent = this.parent; |
8680 parent._replaceChild(otherNode, this); | 8797 parent.$dom_replaceChild(otherNode, this); |
8681 } catch(var e) { | 8798 } catch(var e) { |
8682 | 8799 |
8683 }; | 8800 }; |
8684 return this; | 8801 return this; |
8685 } | 8802 } |
8686 | 8803 |
8687 | 8804 |
8688 static final int ATTRIBUTE_NODE = 2; | 8805 static final int ATTRIBUTE_NODE = 2; |
8689 | 8806 |
8690 static final int CDATA_SECTION_NODE = 4; | 8807 static final int CDATA_SECTION_NODE = 4; |
(...skipping 23 matching lines...) Expand all Loading... |
8714 static final int ENTITY_NODE = 6; | 8831 static final int ENTITY_NODE = 6; |
8715 | 8832 |
8716 static final int ENTITY_REFERENCE_NODE = 5; | 8833 static final int ENTITY_REFERENCE_NODE = 5; |
8717 | 8834 |
8718 static final int NOTATION_NODE = 12; | 8835 static final int NOTATION_NODE = 12; |
8719 | 8836 |
8720 static final int PROCESSING_INSTRUCTION_NODE = 7; | 8837 static final int PROCESSING_INSTRUCTION_NODE = 7; |
8721 | 8838 |
8722 static final int TEXT_NODE = 3; | 8839 static final int TEXT_NODE = 3; |
8723 | 8840 |
8724 _NamedNodeMapImpl get _attributes() native "return this.attributes;"; | 8841 _NamedNodeMapImpl get $dom_attributes() native "return this.attributes;"; |
8725 | 8842 |
8726 _NodeListImpl get _childNodes() native "return this.childNodes;"; | 8843 _NodeListImpl get $dom_childNodes() native "return this.childNodes;"; |
| 8844 |
| 8845 _NodeImpl get $dom_firstChild() native "return this.firstChild;"; |
| 8846 |
| 8847 _NodeImpl get $dom_lastChild() native "return this.lastChild;"; |
8727 | 8848 |
8728 _NodeImpl get nextNode() native "return this.nextSibling;"; | 8849 _NodeImpl get nextNode() native "return this.nextSibling;"; |
8729 | 8850 |
8730 _DocumentImpl get document() => _FixHtmlDocumentReference(_document); | 8851 _DocumentImpl get document() native "return this.ownerDocument;"; |
8731 | |
8732 _EventTargetImpl get _document() native "return this.ownerDocument;"; | |
8733 | 8852 |
8734 _NodeImpl get parent() native "return this.parentNode;"; | 8853 _NodeImpl get parent() native "return this.parentNode;"; |
8735 | 8854 |
8736 _NodeImpl get previousNode() native "return this.previousSibling;"; | 8855 _NodeImpl get previousNode() native "return this.previousSibling;"; |
8737 | 8856 |
8738 String get text() native "return this.textContent;"; | 8857 String get text() native "return this.textContent;"; |
8739 | 8858 |
8740 void set text(String value) native "this.textContent = value;"; | 8859 void set text(String value) native "this.textContent = value;"; |
8741 | 8860 |
8742 _NodeImpl _appendChild(_NodeImpl newChild) native "return this.appendChild(new
Child);"; | 8861 _NodeImpl $dom_appendChild(_NodeImpl newChild) native "return this.appendChild
(newChild);"; |
8743 | 8862 |
8744 _NodeImpl clone(bool deep) native "return this.cloneNode(deep);"; | 8863 _NodeImpl clone(bool deep) native "return this.cloneNode(deep);"; |
8745 | 8864 |
8746 bool contains(_NodeImpl other) native; | 8865 bool contains(_NodeImpl other) native; |
8747 | 8866 |
8748 bool hasChildNodes() native; | 8867 bool hasChildNodes() native; |
8749 | 8868 |
8750 _NodeImpl insertBefore(_NodeImpl newChild, _NodeImpl refChild) native; | 8869 _NodeImpl insertBefore(_NodeImpl newChild, _NodeImpl refChild) native; |
8751 | 8870 |
8752 _NodeImpl _removeChild(_NodeImpl oldChild) native "return this.removeChild(old
Child);"; | 8871 _NodeImpl $dom_removeChild(_NodeImpl oldChild) native "return this.removeChild
(oldChild);"; |
8753 | 8872 |
8754 _NodeImpl _replaceChild(_NodeImpl newChild, _NodeImpl oldChild) native "return
this.replaceChild(newChild, oldChild);"; | 8873 _NodeImpl $dom_replaceChild(_NodeImpl newChild, _NodeImpl oldChild) native "re
turn this.replaceChild(newChild, oldChild);"; |
8755 | 8874 |
8756 } | 8875 } |
8757 | 8876 |
8758 class _NodeFilterImpl implements NodeFilter native "*NodeFilter" { | 8877 class _NodeFilterImpl implements NodeFilter native "*NodeFilter" { |
8759 | 8878 |
8760 static final int FILTER_ACCEPT = 1; | 8879 static final int FILTER_ACCEPT = 1; |
8761 | 8880 |
8762 static final int FILTER_REJECT = 2; | 8881 static final int FILTER_REJECT = 2; |
8763 | 8882 |
8764 static final int FILTER_SKIP = 3; | 8883 static final int FILTER_SKIP = 3; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8902 Iterator<Node> iterator() { | 9021 Iterator<Node> iterator() { |
8903 // Note: NodeLists are not fixed size. And most probably length shouldn't | 9022 // Note: NodeLists are not fixed size. And most probably length shouldn't |
8904 // be cached in both iterator _and_ forEach method. For now caching it | 9023 // be cached in both iterator _and_ forEach method. For now caching it |
8905 // for consistency. | 9024 // for consistency. |
8906 return new _FixedSizeListIterator<Node>(this); | 9025 return new _FixedSizeListIterator<Node>(this); |
8907 } | 9026 } |
8908 | 9027 |
8909 // From Collection<Node>: | 9028 // From Collection<Node>: |
8910 | 9029 |
8911 void add(_NodeImpl value) { | 9030 void add(_NodeImpl value) { |
8912 _parent._appendChild(value); | 9031 _parent.$dom_appendChild(value); |
8913 } | 9032 } |
8914 | 9033 |
8915 void addLast(_NodeImpl value) { | 9034 void addLast(_NodeImpl value) { |
8916 _parent._appendChild(value); | 9035 _parent.$dom_appendChild(value); |
8917 } | 9036 } |
8918 | 9037 |
8919 void addAll(Collection<_NodeImpl> collection) { | 9038 void addAll(Collection<_NodeImpl> collection) { |
8920 for (_NodeImpl node in collection) { | 9039 for (_NodeImpl node in collection) { |
8921 _parent._appendChild(node); | 9040 _parent.$dom_appendChild(node); |
8922 } | 9041 } |
8923 } | 9042 } |
8924 | 9043 |
8925 _NodeImpl removeLast() { | 9044 _NodeImpl removeLast() { |
8926 final last = this.last(); | 9045 final last = this.last(); |
8927 if (last != null) { | 9046 if (last != null) { |
8928 _parent._removeChild(last); | 9047 _parent.$dom_removeChild(last); |
8929 } | 9048 } |
8930 return last; | 9049 return last; |
8931 } | 9050 } |
8932 | 9051 |
8933 void clear() { | 9052 void clear() { |
8934 _parent.text = ''; | 9053 _parent.text = ''; |
8935 } | 9054 } |
8936 | 9055 |
8937 void operator []=(int index, _NodeImpl value) { | 9056 void operator []=(int index, _NodeImpl value) { |
8938 _parent._replaceChild(value, this[index]); | 9057 _parent.$dom_replaceChild(value, this[index]); |
8939 } | 9058 } |
8940 | 9059 |
8941 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9060 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
8942 | 9061 |
8943 Collection map(f(Node element)) => _Collections.map(this, [], f); | 9062 Collection map(f(Node element)) => _Collections.map(this, [], f); |
8944 | 9063 |
8945 Collection<Node> filter(bool f(Node element)) => | 9064 Collection<Node> filter(bool f(Node element)) => |
8946 new _NodeListWrapper(_Collections.filter(this, <Node>[], f)); | 9065 new _NodeListWrapper(_Collections.filter(this, <Node>[], f)); |
8947 | 9066 |
8948 bool every(bool f(Node element)) => _Collections.every(this, f); | 9067 bool every(bool f(Node element)) => _Collections.every(this, f); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8985 final int length; | 9104 final int length; |
8986 | 9105 |
8987 _NodeImpl operator[](int index) native "return this[index];"; | 9106 _NodeImpl operator[](int index) native "return this[index];"; |
8988 | 9107 |
8989 } | 9108 } |
8990 | 9109 |
8991 class _NodeSelectorImpl implements NodeSelector native "*NodeSelector" { | 9110 class _NodeSelectorImpl implements NodeSelector native "*NodeSelector" { |
8992 | 9111 |
8993 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; | 9112 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; |
8994 | 9113 |
8995 _NodeListImpl _querySelectorAll(String selectors) native "return this.querySel
ectorAll(selectors);"; | 9114 _NodeListImpl $dom_querySelectorAll(String selectors) native "return this.quer
ySelectorAll(selectors);"; |
8996 } | 9115 } |
8997 | 9116 |
8998 class _NotationImpl extends _NodeImpl implements Notation native "*Notation" { | 9117 class _NotationImpl extends _NodeImpl implements Notation native "*Notation" { |
8999 | 9118 |
9000 final String publicId; | 9119 final String publicId; |
9001 | 9120 |
9002 final String systemId; | 9121 final String systemId; |
9003 } | 9122 } |
9004 | 9123 |
9005 class _NotificationImpl extends _EventTargetImpl implements Notification native
"*Notification" { | 9124 class _NotificationImpl extends _EventTargetImpl implements Notification native
"*Notification" { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9078 String archive; | 9197 String archive; |
9079 | 9198 |
9080 String border; | 9199 String border; |
9081 | 9200 |
9082 String code; | 9201 String code; |
9083 | 9202 |
9084 String codeBase; | 9203 String codeBase; |
9085 | 9204 |
9086 String codeType; | 9205 String codeType; |
9087 | 9206 |
9088 _DocumentImpl get contentDocument() => _FixHtmlDocumentReference(_contentDocum
ent); | 9207 final _DocumentImpl contentDocument; |
9089 | |
9090 _EventTargetImpl get _contentDocument() native "return this.contentDocument;"; | |
9091 | 9208 |
9092 String data; | 9209 String data; |
9093 | 9210 |
9094 bool declare; | 9211 bool declare; |
9095 | 9212 |
9096 final _FormElementImpl form; | 9213 final _FormElementImpl form; |
9097 | 9214 |
9098 String height; | 9215 String height; |
9099 | 9216 |
9100 int hspace; | 9217 int hspace; |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9665 String xmllang; | 9782 String xmllang; |
9666 | 9783 |
9667 String xmlspace; | 9784 String xmlspace; |
9668 | 9785 |
9669 // From SVGExternalResourcesRequired | 9786 // From SVGExternalResourcesRequired |
9670 | 9787 |
9671 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 9788 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9672 | 9789 |
9673 // From SVGStylable | 9790 // From SVGStylable |
9674 | 9791 |
9675 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 9792 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
9676 | 9793 |
9677 // Use implementation from Element. | 9794 // Use implementation from Element. |
9678 // final _CSSStyleDeclarationImpl style; | 9795 // final _CSSStyleDeclarationImpl style; |
9679 | 9796 |
9680 _CSSValueImpl getPresentationAttribute(String name) native; | 9797 _CSSValueImpl getPresentationAttribute(String name) native; |
9681 | 9798 |
9682 // From SVGTransformable | 9799 // From SVGTransformable |
9683 | 9800 |
9684 final _SVGAnimatedTransformListImpl transform; | 9801 final _SVGAnimatedTransformListImpl transform; |
9685 | 9802 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9894 String xmllang; | 10011 String xmllang; |
9895 | 10012 |
9896 String xmlspace; | 10013 String xmlspace; |
9897 | 10014 |
9898 // From SVGExternalResourcesRequired | 10015 // From SVGExternalResourcesRequired |
9899 | 10016 |
9900 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 10017 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9901 | 10018 |
9902 // From SVGStylable | 10019 // From SVGStylable |
9903 | 10020 |
9904 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10021 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
9905 | 10022 |
9906 // Use implementation from Element. | 10023 // Use implementation from Element. |
9907 // final _CSSStyleDeclarationImpl style; | 10024 // final _CSSStyleDeclarationImpl style; |
9908 | 10025 |
9909 _CSSValueImpl getPresentationAttribute(String name) native; | 10026 _CSSValueImpl getPresentationAttribute(String name) native; |
9910 | 10027 |
9911 // From SVGTransformable | 10028 // From SVGTransformable |
9912 | 10029 |
9913 final _SVGAnimatedTransformListImpl transform; | 10030 final _SVGAnimatedTransformListImpl transform; |
9914 | 10031 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9946 String xmllang; | 10063 String xmllang; |
9947 | 10064 |
9948 String xmlspace; | 10065 String xmlspace; |
9949 | 10066 |
9950 // From SVGExternalResourcesRequired | 10067 // From SVGExternalResourcesRequired |
9951 | 10068 |
9952 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 10069 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9953 | 10070 |
9954 // From SVGStylable | 10071 // From SVGStylable |
9955 | 10072 |
9956 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10073 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
9957 | 10074 |
9958 // Use implementation from Element. | 10075 // Use implementation from Element. |
9959 // final _CSSStyleDeclarationImpl style; | 10076 // final _CSSStyleDeclarationImpl style; |
9960 | 10077 |
9961 _CSSValueImpl getPresentationAttribute(String name) native; | 10078 _CSSValueImpl getPresentationAttribute(String name) native; |
9962 | 10079 |
9963 // From SVGTransformable | 10080 // From SVGTransformable |
9964 | 10081 |
9965 final _SVGAnimatedTransformListImpl transform; | 10082 final _SVGAnimatedTransformListImpl transform; |
9966 | 10083 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10071 String xmllang; | 10188 String xmllang; |
10072 | 10189 |
10073 String xmlspace; | 10190 String xmlspace; |
10074 | 10191 |
10075 // From SVGExternalResourcesRequired | 10192 // From SVGExternalResourcesRequired |
10076 | 10193 |
10077 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 10194 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10078 | 10195 |
10079 // From SVGStylable | 10196 // From SVGStylable |
10080 | 10197 |
10081 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10198 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10082 | 10199 |
10083 // Use implementation from Element. | 10200 // Use implementation from Element. |
10084 // final _CSSStyleDeclarationImpl style; | 10201 // final _CSSStyleDeclarationImpl style; |
10085 | 10202 |
10086 _CSSValueImpl getPresentationAttribute(String name) native; | 10203 _CSSValueImpl getPresentationAttribute(String name) native; |
10087 | 10204 |
10088 // From SVGTransformable | 10205 // From SVGTransformable |
10089 | 10206 |
10090 final _SVGAnimatedTransformListImpl transform; | 10207 final _SVGAnimatedTransformListImpl transform; |
10091 | 10208 |
(...skipping 15 matching lines...) Expand all Loading... |
10107 class _SVGDescElementImpl extends _SVGElementImpl implements SVGDescElement nati
ve "*SVGDescElement" { | 10224 class _SVGDescElementImpl extends _SVGElementImpl implements SVGDescElement nati
ve "*SVGDescElement" { |
10108 | 10225 |
10109 // From SVGLangSpace | 10226 // From SVGLangSpace |
10110 | 10227 |
10111 String xmllang; | 10228 String xmllang; |
10112 | 10229 |
10113 String xmlspace; | 10230 String xmlspace; |
10114 | 10231 |
10115 // From SVGStylable | 10232 // From SVGStylable |
10116 | 10233 |
10117 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10234 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10118 | 10235 |
10119 // Use implementation from Element. | 10236 // Use implementation from Element. |
10120 // final _CSSStyleDeclarationImpl style; | 10237 // final _CSSStyleDeclarationImpl style; |
10121 | 10238 |
10122 _CSSValueImpl getPresentationAttribute(String name) native; | 10239 _CSSValueImpl getPresentationAttribute(String name) native; |
10123 } | 10240 } |
10124 | 10241 |
10125 class _SVGDocumentImpl extends _DocumentImpl implements SVGDocument native "*SVG
Document" { | 10242 class _SVGDocumentImpl extends _DocumentImpl implements SVGDocument native "*SVG
Document" { |
10126 | 10243 |
10127 final _SVGSVGElementImpl rootElement; | 10244 final _SVGSVGElementImpl rootElement; |
10128 | 10245 |
10129 _EventImpl _createEvent(String eventType) native "return this.createEvent(even
tType);"; | 10246 _EventImpl $dom_createEvent(String eventType) native "return this.createEvent(
eventType);"; |
10130 } | 10247 } |
10131 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 10248 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
10132 // for details. All rights reserved. Use of this source code is governed by a | 10249 // for details. All rights reserved. Use of this source code is governed by a |
10133 // BSD-style license that can be found in the LICENSE file. | 10250 // BSD-style license that can be found in the LICENSE file. |
10134 | 10251 |
10135 class _AttributeClassSet extends _CssClassSet { | 10252 class _AttributeClassSet extends _CssClassSet { |
10136 _AttributeClassSet(element) : super(element); | 10253 _AttributeClassSet(element) : super(element); |
10137 | 10254 |
10138 String _className() => _element.attributes['class']; | 10255 String $dom_className() => _element.attributes['class']; |
10139 | 10256 |
10140 void _write(Set s) { | 10257 void _write(Set s) { |
10141 _element.attributes['class'] = _formatSet(s); | 10258 _element.attributes['class'] = _formatSet(s); |
10142 } | 10259 } |
10143 } | 10260 } |
10144 | 10261 |
10145 class _SVGElementImpl extends _ElementImpl implements SVGElement native "*SVGEle
ment" { | 10262 class _SVGElementImpl extends _ElementImpl implements SVGElement native "*SVGEle
ment" { |
10146 Set<String> get classes() { | 10263 Set<String> get classes() { |
10147 if (_cssClassSet === null) { | 10264 if (_cssClassSet === null) { |
10148 _cssClassSet = new _AttributeClassSet(_ptr); | 10265 _cssClassSet = new _AttributeClassSet(_ptr); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10208 final _SVGElementInstanceImpl firstChild; | 10325 final _SVGElementInstanceImpl firstChild; |
10209 | 10326 |
10210 final _SVGElementInstanceImpl lastChild; | 10327 final _SVGElementInstanceImpl lastChild; |
10211 | 10328 |
10212 final _SVGElementInstanceImpl nextSibling; | 10329 final _SVGElementInstanceImpl nextSibling; |
10213 | 10330 |
10214 final _SVGElementInstanceImpl parentNode; | 10331 final _SVGElementInstanceImpl parentNode; |
10215 | 10332 |
10216 final _SVGElementInstanceImpl previousSibling; | 10333 final _SVGElementInstanceImpl previousSibling; |
10217 | 10334 |
10218 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 10335 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
10219 | 10336 |
10220 bool _dispatchEvent(_EventImpl event) native "return this.dispatchEvent(event)
;"; | 10337 bool $dom_dispatchEvent(_EventImpl event) native "return this.dispatchEvent(ev
ent);"; |
10221 | 10338 |
10222 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 10339 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
10223 } | 10340 } |
10224 | 10341 |
10225 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns
tanceEvents { | 10342 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns
tanceEvents { |
10226 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr); | 10343 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr); |
10227 | 10344 |
10228 EventListenerList get abort() => _get('abort'); | 10345 EventListenerList get abort() => _get('abort'); |
10229 | 10346 |
10230 EventListenerList get beforeCopy() => _get('beforecopy'); | 10347 EventListenerList get beforeCopy() => _get('beforecopy'); |
10231 | 10348 |
10232 EventListenerList get beforeCut() => _get('beforecut'); | 10349 EventListenerList get beforeCut() => _get('beforecut'); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10338 String xmllang; | 10455 String xmllang; |
10339 | 10456 |
10340 String xmlspace; | 10457 String xmlspace; |
10341 | 10458 |
10342 // From SVGExternalResourcesRequired | 10459 // From SVGExternalResourcesRequired |
10343 | 10460 |
10344 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 10461 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10345 | 10462 |
10346 // From SVGStylable | 10463 // From SVGStylable |
10347 | 10464 |
10348 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10465 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10349 | 10466 |
10350 // Use implementation from Element. | 10467 // Use implementation from Element. |
10351 // final _CSSStyleDeclarationImpl style; | 10468 // final _CSSStyleDeclarationImpl style; |
10352 | 10469 |
10353 _CSSValueImpl getPresentationAttribute(String name) native; | 10470 _CSSValueImpl getPresentationAttribute(String name) native; |
10354 | 10471 |
10355 // From SVGTransformable | 10472 // From SVGTransformable |
10356 | 10473 |
10357 final _SVGAnimatedTransformListImpl transform; | 10474 final _SVGAnimatedTransformListImpl transform; |
10358 | 10475 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10420 final _SVGAnimatedStringImpl result; | 10537 final _SVGAnimatedStringImpl result; |
10421 | 10538 |
10422 final _SVGAnimatedLengthImpl width; | 10539 final _SVGAnimatedLengthImpl width; |
10423 | 10540 |
10424 final _SVGAnimatedLengthImpl x; | 10541 final _SVGAnimatedLengthImpl x; |
10425 | 10542 |
10426 final _SVGAnimatedLengthImpl y; | 10543 final _SVGAnimatedLengthImpl y; |
10427 | 10544 |
10428 // From SVGStylable | 10545 // From SVGStylable |
10429 | 10546 |
10430 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10547 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10431 | 10548 |
10432 // Use implementation from Element. | 10549 // Use implementation from Element. |
10433 // final _CSSStyleDeclarationImpl style; | 10550 // final _CSSStyleDeclarationImpl style; |
10434 | 10551 |
10435 _CSSValueImpl getPresentationAttribute(String name) native; | 10552 _CSSValueImpl getPresentationAttribute(String name) native; |
10436 } | 10553 } |
10437 | 10554 |
10438 class _SVGFEColorMatrixElementImpl extends _SVGElementImpl implements SVGFEColor
MatrixElement native "*SVGFEColorMatrixElement" { | 10555 class _SVGFEColorMatrixElementImpl extends _SVGElementImpl implements SVGFEColor
MatrixElement native "*SVGFEColorMatrixElement" { |
10439 | 10556 |
10440 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | 10557 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; |
(...skipping 19 matching lines...) Expand all Loading... |
10460 final _SVGAnimatedStringImpl result; | 10577 final _SVGAnimatedStringImpl result; |
10461 | 10578 |
10462 final _SVGAnimatedLengthImpl width; | 10579 final _SVGAnimatedLengthImpl width; |
10463 | 10580 |
10464 final _SVGAnimatedLengthImpl x; | 10581 final _SVGAnimatedLengthImpl x; |
10465 | 10582 |
10466 final _SVGAnimatedLengthImpl y; | 10583 final _SVGAnimatedLengthImpl y; |
10467 | 10584 |
10468 // From SVGStylable | 10585 // From SVGStylable |
10469 | 10586 |
10470 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10587 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10471 | 10588 |
10472 // Use implementation from Element. | 10589 // Use implementation from Element. |
10473 // final _CSSStyleDeclarationImpl style; | 10590 // final _CSSStyleDeclarationImpl style; |
10474 | 10591 |
10475 _CSSValueImpl getPresentationAttribute(String name) native; | 10592 _CSSValueImpl getPresentationAttribute(String name) native; |
10476 } | 10593 } |
10477 | 10594 |
10478 class _SVGFEComponentTransferElementImpl extends _SVGElementImpl implements SVGF
EComponentTransferElement native "*SVGFEComponentTransferElement" { | 10595 class _SVGFEComponentTransferElementImpl extends _SVGElementImpl implements SVGF
EComponentTransferElement native "*SVGFEComponentTransferElement" { |
10479 | 10596 |
10480 final _SVGAnimatedStringImpl in1; | 10597 final _SVGAnimatedStringImpl in1; |
10481 | 10598 |
10482 // From SVGFilterPrimitiveStandardAttributes | 10599 // From SVGFilterPrimitiveStandardAttributes |
10483 | 10600 |
10484 final _SVGAnimatedLengthImpl height; | 10601 final _SVGAnimatedLengthImpl height; |
10485 | 10602 |
10486 final _SVGAnimatedStringImpl result; | 10603 final _SVGAnimatedStringImpl result; |
10487 | 10604 |
10488 final _SVGAnimatedLengthImpl width; | 10605 final _SVGAnimatedLengthImpl width; |
10489 | 10606 |
10490 final _SVGAnimatedLengthImpl x; | 10607 final _SVGAnimatedLengthImpl x; |
10491 | 10608 |
10492 final _SVGAnimatedLengthImpl y; | 10609 final _SVGAnimatedLengthImpl y; |
10493 | 10610 |
10494 // From SVGStylable | 10611 // From SVGStylable |
10495 | 10612 |
10496 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10613 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10497 | 10614 |
10498 // Use implementation from Element. | 10615 // Use implementation from Element. |
10499 // final _CSSStyleDeclarationImpl style; | 10616 // final _CSSStyleDeclarationImpl style; |
10500 | 10617 |
10501 _CSSValueImpl getPresentationAttribute(String name) native; | 10618 _CSSValueImpl getPresentationAttribute(String name) native; |
10502 } | 10619 } |
10503 | 10620 |
10504 class _SVGFECompositeElementImpl extends _SVGElementImpl implements SVGFEComposi
teElement native "*SVGFECompositeElement" { | 10621 class _SVGFECompositeElementImpl extends _SVGElementImpl implements SVGFEComposi
teElement native "*SVGFECompositeElement" { |
10505 | 10622 |
10506 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | 10623 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10538 final _SVGAnimatedStringImpl result; | 10655 final _SVGAnimatedStringImpl result; |
10539 | 10656 |
10540 final _SVGAnimatedLengthImpl width; | 10657 final _SVGAnimatedLengthImpl width; |
10541 | 10658 |
10542 final _SVGAnimatedLengthImpl x; | 10659 final _SVGAnimatedLengthImpl x; |
10543 | 10660 |
10544 final _SVGAnimatedLengthImpl y; | 10661 final _SVGAnimatedLengthImpl y; |
10545 | 10662 |
10546 // From SVGStylable | 10663 // From SVGStylable |
10547 | 10664 |
10548 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10665 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10549 | 10666 |
10550 // Use implementation from Element. | 10667 // Use implementation from Element. |
10551 // final _CSSStyleDeclarationImpl style; | 10668 // final _CSSStyleDeclarationImpl style; |
10552 | 10669 |
10553 _CSSValueImpl getPresentationAttribute(String name) native; | 10670 _CSSValueImpl getPresentationAttribute(String name) native; |
10554 } | 10671 } |
10555 | 10672 |
10556 class _SVGFEConvolveMatrixElementImpl extends _SVGElementImpl implements SVGFECo
nvolveMatrixElement native "*SVGFEConvolveMatrixElement" { | 10673 class _SVGFEConvolveMatrixElementImpl extends _SVGElementImpl implements SVGFECo
nvolveMatrixElement native "*SVGFEConvolveMatrixElement" { |
10557 | 10674 |
10558 static final int SVG_EDGEMODE_DUPLICATE = 1; | 10675 static final int SVG_EDGEMODE_DUPLICATE = 1; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10594 final _SVGAnimatedStringImpl result; | 10711 final _SVGAnimatedStringImpl result; |
10595 | 10712 |
10596 final _SVGAnimatedLengthImpl width; | 10713 final _SVGAnimatedLengthImpl width; |
10597 | 10714 |
10598 final _SVGAnimatedLengthImpl x; | 10715 final _SVGAnimatedLengthImpl x; |
10599 | 10716 |
10600 final _SVGAnimatedLengthImpl y; | 10717 final _SVGAnimatedLengthImpl y; |
10601 | 10718 |
10602 // From SVGStylable | 10719 // From SVGStylable |
10603 | 10720 |
10604 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10721 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10605 | 10722 |
10606 // Use implementation from Element. | 10723 // Use implementation from Element. |
10607 // final _CSSStyleDeclarationImpl style; | 10724 // final _CSSStyleDeclarationImpl style; |
10608 | 10725 |
10609 _CSSValueImpl getPresentationAttribute(String name) native; | 10726 _CSSValueImpl getPresentationAttribute(String name) native; |
10610 } | 10727 } |
10611 | 10728 |
10612 class _SVGFEDiffuseLightingElementImpl extends _SVGElementImpl implements SVGFED
iffuseLightingElement native "*SVGFEDiffuseLightingElement" { | 10729 class _SVGFEDiffuseLightingElementImpl extends _SVGElementImpl implements SVGFED
iffuseLightingElement native "*SVGFEDiffuseLightingElement" { |
10613 | 10730 |
10614 final _SVGAnimatedNumberImpl diffuseConstant; | 10731 final _SVGAnimatedNumberImpl diffuseConstant; |
(...skipping 13 matching lines...) Expand all Loading... |
10628 final _SVGAnimatedStringImpl result; | 10745 final _SVGAnimatedStringImpl result; |
10629 | 10746 |
10630 final _SVGAnimatedLengthImpl width; | 10747 final _SVGAnimatedLengthImpl width; |
10631 | 10748 |
10632 final _SVGAnimatedLengthImpl x; | 10749 final _SVGAnimatedLengthImpl x; |
10633 | 10750 |
10634 final _SVGAnimatedLengthImpl y; | 10751 final _SVGAnimatedLengthImpl y; |
10635 | 10752 |
10636 // From SVGStylable | 10753 // From SVGStylable |
10637 | 10754 |
10638 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10755 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10639 | 10756 |
10640 // Use implementation from Element. | 10757 // Use implementation from Element. |
10641 // final _CSSStyleDeclarationImpl style; | 10758 // final _CSSStyleDeclarationImpl style; |
10642 | 10759 |
10643 _CSSValueImpl getPresentationAttribute(String name) native; | 10760 _CSSValueImpl getPresentationAttribute(String name) native; |
10644 } | 10761 } |
10645 | 10762 |
10646 class _SVGFEDisplacementMapElementImpl extends _SVGElementImpl implements SVGFED
isplacementMapElement native "*SVGFEDisplacementMapElement" { | 10763 class _SVGFEDisplacementMapElementImpl extends _SVGElementImpl implements SVGFED
isplacementMapElement native "*SVGFEDisplacementMapElement" { |
10647 | 10764 |
10648 static final int SVG_CHANNEL_A = 4; | 10765 static final int SVG_CHANNEL_A = 4; |
(...skipping 23 matching lines...) Expand all Loading... |
10672 final _SVGAnimatedStringImpl result; | 10789 final _SVGAnimatedStringImpl result; |
10673 | 10790 |
10674 final _SVGAnimatedLengthImpl width; | 10791 final _SVGAnimatedLengthImpl width; |
10675 | 10792 |
10676 final _SVGAnimatedLengthImpl x; | 10793 final _SVGAnimatedLengthImpl x; |
10677 | 10794 |
10678 final _SVGAnimatedLengthImpl y; | 10795 final _SVGAnimatedLengthImpl y; |
10679 | 10796 |
10680 // From SVGStylable | 10797 // From SVGStylable |
10681 | 10798 |
10682 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10799 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10683 | 10800 |
10684 // Use implementation from Element. | 10801 // Use implementation from Element. |
10685 // final _CSSStyleDeclarationImpl style; | 10802 // final _CSSStyleDeclarationImpl style; |
10686 | 10803 |
10687 _CSSValueImpl getPresentationAttribute(String name) native; | 10804 _CSSValueImpl getPresentationAttribute(String name) native; |
10688 } | 10805 } |
10689 | 10806 |
10690 class _SVGFEDistantLightElementImpl extends _SVGElementImpl implements SVGFEDist
antLightElement native "*SVGFEDistantLightElement" { | 10807 class _SVGFEDistantLightElementImpl extends _SVGElementImpl implements SVGFEDist
antLightElement native "*SVGFEDistantLightElement" { |
10691 | 10808 |
10692 final _SVGAnimatedNumberImpl azimuth; | 10809 final _SVGAnimatedNumberImpl azimuth; |
(...skipping 22 matching lines...) Expand all Loading... |
10715 final _SVGAnimatedStringImpl result; | 10832 final _SVGAnimatedStringImpl result; |
10716 | 10833 |
10717 final _SVGAnimatedLengthImpl width; | 10834 final _SVGAnimatedLengthImpl width; |
10718 | 10835 |
10719 final _SVGAnimatedLengthImpl x; | 10836 final _SVGAnimatedLengthImpl x; |
10720 | 10837 |
10721 final _SVGAnimatedLengthImpl y; | 10838 final _SVGAnimatedLengthImpl y; |
10722 | 10839 |
10723 // From SVGStylable | 10840 // From SVGStylable |
10724 | 10841 |
10725 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10842 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10726 | 10843 |
10727 // Use implementation from Element. | 10844 // Use implementation from Element. |
10728 // final _CSSStyleDeclarationImpl style; | 10845 // final _CSSStyleDeclarationImpl style; |
10729 | 10846 |
10730 _CSSValueImpl getPresentationAttribute(String name) native; | 10847 _CSSValueImpl getPresentationAttribute(String name) native; |
10731 } | 10848 } |
10732 | 10849 |
10733 class _SVGFEFloodElementImpl extends _SVGElementImpl implements SVGFEFloodElemen
t native "*SVGFEFloodElement" { | 10850 class _SVGFEFloodElementImpl extends _SVGElementImpl implements SVGFEFloodElemen
t native "*SVGFEFloodElement" { |
10734 | 10851 |
10735 // From SVGFilterPrimitiveStandardAttributes | 10852 // From SVGFilterPrimitiveStandardAttributes |
10736 | 10853 |
10737 final _SVGAnimatedLengthImpl height; | 10854 final _SVGAnimatedLengthImpl height; |
10738 | 10855 |
10739 final _SVGAnimatedStringImpl result; | 10856 final _SVGAnimatedStringImpl result; |
10740 | 10857 |
10741 final _SVGAnimatedLengthImpl width; | 10858 final _SVGAnimatedLengthImpl width; |
10742 | 10859 |
10743 final _SVGAnimatedLengthImpl x; | 10860 final _SVGAnimatedLengthImpl x; |
10744 | 10861 |
10745 final _SVGAnimatedLengthImpl y; | 10862 final _SVGAnimatedLengthImpl y; |
10746 | 10863 |
10747 // From SVGStylable | 10864 // From SVGStylable |
10748 | 10865 |
10749 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10866 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10750 | 10867 |
10751 // Use implementation from Element. | 10868 // Use implementation from Element. |
10752 // final _CSSStyleDeclarationImpl style; | 10869 // final _CSSStyleDeclarationImpl style; |
10753 | 10870 |
10754 _CSSValueImpl getPresentationAttribute(String name) native; | 10871 _CSSValueImpl getPresentationAttribute(String name) native; |
10755 } | 10872 } |
10756 | 10873 |
10757 class _SVGFEFuncAElementImpl extends _SVGComponentTransferFunctionElementImpl im
plements SVGFEFuncAElement native "*SVGFEFuncAElement" { | 10874 class _SVGFEFuncAElementImpl extends _SVGComponentTransferFunctionElementImpl im
plements SVGFEFuncAElement native "*SVGFEFuncAElement" { |
10758 } | 10875 } |
10759 | 10876 |
(...skipping 23 matching lines...) Expand all Loading... |
10783 final _SVGAnimatedStringImpl result; | 10900 final _SVGAnimatedStringImpl result; |
10784 | 10901 |
10785 final _SVGAnimatedLengthImpl width; | 10902 final _SVGAnimatedLengthImpl width; |
10786 | 10903 |
10787 final _SVGAnimatedLengthImpl x; | 10904 final _SVGAnimatedLengthImpl x; |
10788 | 10905 |
10789 final _SVGAnimatedLengthImpl y; | 10906 final _SVGAnimatedLengthImpl y; |
10790 | 10907 |
10791 // From SVGStylable | 10908 // From SVGStylable |
10792 | 10909 |
10793 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10910 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10794 | 10911 |
10795 // Use implementation from Element. | 10912 // Use implementation from Element. |
10796 // final _CSSStyleDeclarationImpl style; | 10913 // final _CSSStyleDeclarationImpl style; |
10797 | 10914 |
10798 _CSSValueImpl getPresentationAttribute(String name) native; | 10915 _CSSValueImpl getPresentationAttribute(String name) native; |
10799 } | 10916 } |
10800 | 10917 |
10801 class _SVGFEImageElementImpl extends _SVGElementImpl implements SVGFEImageElemen
t native "*SVGFEImageElement" { | 10918 class _SVGFEImageElementImpl extends _SVGElementImpl implements SVGFEImageElemen
t native "*SVGFEImageElement" { |
10802 | 10919 |
10803 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; | 10920 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
(...skipping 19 matching lines...) Expand all Loading... |
10823 final _SVGAnimatedStringImpl result; | 10940 final _SVGAnimatedStringImpl result; |
10824 | 10941 |
10825 final _SVGAnimatedLengthImpl width; | 10942 final _SVGAnimatedLengthImpl width; |
10826 | 10943 |
10827 final _SVGAnimatedLengthImpl x; | 10944 final _SVGAnimatedLengthImpl x; |
10828 | 10945 |
10829 final _SVGAnimatedLengthImpl y; | 10946 final _SVGAnimatedLengthImpl y; |
10830 | 10947 |
10831 // From SVGStylable | 10948 // From SVGStylable |
10832 | 10949 |
10833 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10950 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10834 | 10951 |
10835 // Use implementation from Element. | 10952 // Use implementation from Element. |
10836 // final _CSSStyleDeclarationImpl style; | 10953 // final _CSSStyleDeclarationImpl style; |
10837 | 10954 |
10838 _CSSValueImpl getPresentationAttribute(String name) native; | 10955 _CSSValueImpl getPresentationAttribute(String name) native; |
10839 } | 10956 } |
10840 | 10957 |
10841 class _SVGFEMergeElementImpl extends _SVGElementImpl implements SVGFEMergeElemen
t native "*SVGFEMergeElement" { | 10958 class _SVGFEMergeElementImpl extends _SVGElementImpl implements SVGFEMergeElemen
t native "*SVGFEMergeElement" { |
10842 | 10959 |
10843 // From SVGFilterPrimitiveStandardAttributes | 10960 // From SVGFilterPrimitiveStandardAttributes |
10844 | 10961 |
10845 final _SVGAnimatedLengthImpl height; | 10962 final _SVGAnimatedLengthImpl height; |
10846 | 10963 |
10847 final _SVGAnimatedStringImpl result; | 10964 final _SVGAnimatedStringImpl result; |
10848 | 10965 |
10849 final _SVGAnimatedLengthImpl width; | 10966 final _SVGAnimatedLengthImpl width; |
10850 | 10967 |
10851 final _SVGAnimatedLengthImpl x; | 10968 final _SVGAnimatedLengthImpl x; |
10852 | 10969 |
10853 final _SVGAnimatedLengthImpl y; | 10970 final _SVGAnimatedLengthImpl y; |
10854 | 10971 |
10855 // From SVGStylable | 10972 // From SVGStylable |
10856 | 10973 |
10857 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 10974 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10858 | 10975 |
10859 // Use implementation from Element. | 10976 // Use implementation from Element. |
10860 // final _CSSStyleDeclarationImpl style; | 10977 // final _CSSStyleDeclarationImpl style; |
10861 | 10978 |
10862 _CSSValueImpl getPresentationAttribute(String name) native; | 10979 _CSSValueImpl getPresentationAttribute(String name) native; |
10863 } | 10980 } |
10864 | 10981 |
10865 class _SVGFEMergeNodeElementImpl extends _SVGElementImpl implements SVGFEMergeNo
deElement native "*SVGFEMergeNodeElement" { | 10982 class _SVGFEMergeNodeElementImpl extends _SVGElementImpl implements SVGFEMergeNo
deElement native "*SVGFEMergeNodeElement" { |
10866 | 10983 |
10867 final _SVGAnimatedStringImpl in1; | 10984 final _SVGAnimatedStringImpl in1; |
(...skipping 24 matching lines...) Expand all Loading... |
10892 final _SVGAnimatedStringImpl result; | 11009 final _SVGAnimatedStringImpl result; |
10893 | 11010 |
10894 final _SVGAnimatedLengthImpl width; | 11011 final _SVGAnimatedLengthImpl width; |
10895 | 11012 |
10896 final _SVGAnimatedLengthImpl x; | 11013 final _SVGAnimatedLengthImpl x; |
10897 | 11014 |
10898 final _SVGAnimatedLengthImpl y; | 11015 final _SVGAnimatedLengthImpl y; |
10899 | 11016 |
10900 // From SVGStylable | 11017 // From SVGStylable |
10901 | 11018 |
10902 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11019 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10903 | 11020 |
10904 // Use implementation from Element. | 11021 // Use implementation from Element. |
10905 // final _CSSStyleDeclarationImpl style; | 11022 // final _CSSStyleDeclarationImpl style; |
10906 | 11023 |
10907 _CSSValueImpl getPresentationAttribute(String name) native; | 11024 _CSSValueImpl getPresentationAttribute(String name) native; |
10908 } | 11025 } |
10909 | 11026 |
10910 class _SVGFEOffsetElementImpl extends _SVGElementImpl implements SVGFEOffsetElem
ent native "*SVGFEOffsetElement" { | 11027 class _SVGFEOffsetElementImpl extends _SVGElementImpl implements SVGFEOffsetElem
ent native "*SVGFEOffsetElement" { |
10911 | 11028 |
10912 final _SVGAnimatedNumberImpl dx; | 11029 final _SVGAnimatedNumberImpl dx; |
10913 | 11030 |
10914 final _SVGAnimatedNumberImpl dy; | 11031 final _SVGAnimatedNumberImpl dy; |
10915 | 11032 |
10916 final _SVGAnimatedStringImpl in1; | 11033 final _SVGAnimatedStringImpl in1; |
10917 | 11034 |
10918 // From SVGFilterPrimitiveStandardAttributes | 11035 // From SVGFilterPrimitiveStandardAttributes |
10919 | 11036 |
10920 final _SVGAnimatedLengthImpl height; | 11037 final _SVGAnimatedLengthImpl height; |
10921 | 11038 |
10922 final _SVGAnimatedStringImpl result; | 11039 final _SVGAnimatedStringImpl result; |
10923 | 11040 |
10924 final _SVGAnimatedLengthImpl width; | 11041 final _SVGAnimatedLengthImpl width; |
10925 | 11042 |
10926 final _SVGAnimatedLengthImpl x; | 11043 final _SVGAnimatedLengthImpl x; |
10927 | 11044 |
10928 final _SVGAnimatedLengthImpl y; | 11045 final _SVGAnimatedLengthImpl y; |
10929 | 11046 |
10930 // From SVGStylable | 11047 // From SVGStylable |
10931 | 11048 |
10932 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11049 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10933 | 11050 |
10934 // Use implementation from Element. | 11051 // Use implementation from Element. |
10935 // final _CSSStyleDeclarationImpl style; | 11052 // final _CSSStyleDeclarationImpl style; |
10936 | 11053 |
10937 _CSSValueImpl getPresentationAttribute(String name) native; | 11054 _CSSValueImpl getPresentationAttribute(String name) native; |
10938 } | 11055 } |
10939 | 11056 |
10940 class _SVGFEPointLightElementImpl extends _SVGElementImpl implements SVGFEPointL
ightElement native "*SVGFEPointLightElement" { | 11057 class _SVGFEPointLightElementImpl extends _SVGElementImpl implements SVGFEPointL
ightElement native "*SVGFEPointLightElement" { |
10941 | 11058 |
10942 final _SVGAnimatedNumberImpl x; | 11059 final _SVGAnimatedNumberImpl x; |
(...skipping 20 matching lines...) Expand all Loading... |
10963 final _SVGAnimatedStringImpl result; | 11080 final _SVGAnimatedStringImpl result; |
10964 | 11081 |
10965 final _SVGAnimatedLengthImpl width; | 11082 final _SVGAnimatedLengthImpl width; |
10966 | 11083 |
10967 final _SVGAnimatedLengthImpl x; | 11084 final _SVGAnimatedLengthImpl x; |
10968 | 11085 |
10969 final _SVGAnimatedLengthImpl y; | 11086 final _SVGAnimatedLengthImpl y; |
10970 | 11087 |
10971 // From SVGStylable | 11088 // From SVGStylable |
10972 | 11089 |
10973 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11090 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
10974 | 11091 |
10975 // Use implementation from Element. | 11092 // Use implementation from Element. |
10976 // final _CSSStyleDeclarationImpl style; | 11093 // final _CSSStyleDeclarationImpl style; |
10977 | 11094 |
10978 _CSSValueImpl getPresentationAttribute(String name) native; | 11095 _CSSValueImpl getPresentationAttribute(String name) native; |
10979 } | 11096 } |
10980 | 11097 |
10981 class _SVGFESpotLightElementImpl extends _SVGElementImpl implements SVGFESpotLig
htElement native "*SVGFESpotLightElement" { | 11098 class _SVGFESpotLightElementImpl extends _SVGElementImpl implements SVGFESpotLig
htElement native "*SVGFESpotLightElement" { |
10982 | 11099 |
10983 final _SVGAnimatedNumberImpl limitingConeAngle; | 11100 final _SVGAnimatedNumberImpl limitingConeAngle; |
(...skipping 24 matching lines...) Expand all Loading... |
11008 final _SVGAnimatedStringImpl result; | 11125 final _SVGAnimatedStringImpl result; |
11009 | 11126 |
11010 final _SVGAnimatedLengthImpl width; | 11127 final _SVGAnimatedLengthImpl width; |
11011 | 11128 |
11012 final _SVGAnimatedLengthImpl x; | 11129 final _SVGAnimatedLengthImpl x; |
11013 | 11130 |
11014 final _SVGAnimatedLengthImpl y; | 11131 final _SVGAnimatedLengthImpl y; |
11015 | 11132 |
11016 // From SVGStylable | 11133 // From SVGStylable |
11017 | 11134 |
11018 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11135 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11019 | 11136 |
11020 // Use implementation from Element. | 11137 // Use implementation from Element. |
11021 // final _CSSStyleDeclarationImpl style; | 11138 // final _CSSStyleDeclarationImpl style; |
11022 | 11139 |
11023 _CSSValueImpl getPresentationAttribute(String name) native; | 11140 _CSSValueImpl getPresentationAttribute(String name) native; |
11024 } | 11141 } |
11025 | 11142 |
11026 class _SVGFETurbulenceElementImpl extends _SVGElementImpl implements SVGFETurbul
enceElement native "*SVGFETurbulenceElement" { | 11143 class _SVGFETurbulenceElementImpl extends _SVGElementImpl implements SVGFETurbul
enceElement native "*SVGFETurbulenceElement" { |
11027 | 11144 |
11028 static final int SVG_STITCHTYPE_NOSTITCH = 2; | 11145 static final int SVG_STITCHTYPE_NOSTITCH = 2; |
(...skipping 27 matching lines...) Expand all Loading... |
11056 final _SVGAnimatedStringImpl result; | 11173 final _SVGAnimatedStringImpl result; |
11057 | 11174 |
11058 final _SVGAnimatedLengthImpl width; | 11175 final _SVGAnimatedLengthImpl width; |
11059 | 11176 |
11060 final _SVGAnimatedLengthImpl x; | 11177 final _SVGAnimatedLengthImpl x; |
11061 | 11178 |
11062 final _SVGAnimatedLengthImpl y; | 11179 final _SVGAnimatedLengthImpl y; |
11063 | 11180 |
11064 // From SVGStylable | 11181 // From SVGStylable |
11065 | 11182 |
11066 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11183 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11067 | 11184 |
11068 // Use implementation from Element. | 11185 // Use implementation from Element. |
11069 // final _CSSStyleDeclarationImpl style; | 11186 // final _CSSStyleDeclarationImpl style; |
11070 | 11187 |
11071 _CSSValueImpl getPresentationAttribute(String name) native; | 11188 _CSSValueImpl getPresentationAttribute(String name) native; |
11072 } | 11189 } |
11073 | 11190 |
11074 class _SVGFilterElementImpl extends _SVGElementImpl implements SVGFilterElement
native "*SVGFilterElement" { | 11191 class _SVGFilterElementImpl extends _SVGElementImpl implements SVGFilterElement
native "*SVGFilterElement" { |
11075 | 11192 |
11076 final _SVGAnimatedIntegerImpl filterResX; | 11193 final _SVGAnimatedIntegerImpl filterResX; |
(...skipping 23 matching lines...) Expand all Loading... |
11100 String xmllang; | 11217 String xmllang; |
11101 | 11218 |
11102 String xmlspace; | 11219 String xmlspace; |
11103 | 11220 |
11104 // From SVGExternalResourcesRequired | 11221 // From SVGExternalResourcesRequired |
11105 | 11222 |
11106 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11223 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11107 | 11224 |
11108 // From SVGStylable | 11225 // From SVGStylable |
11109 | 11226 |
11110 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11227 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11111 | 11228 |
11112 // Use implementation from Element. | 11229 // Use implementation from Element. |
11113 // final _CSSStyleDeclarationImpl style; | 11230 // final _CSSStyleDeclarationImpl style; |
11114 | 11231 |
11115 _CSSValueImpl getPresentationAttribute(String name) native; | 11232 _CSSValueImpl getPresentationAttribute(String name) native; |
11116 } | 11233 } |
11117 | 11234 |
11118 class _SVGFilterPrimitiveStandardAttributesImpl extends _SVGStylableImpl impleme
nts SVGFilterPrimitiveStandardAttributes native "*SVGFilterPrimitiveStandardAttr
ibutes" { | 11235 class _SVGFilterPrimitiveStandardAttributesImpl extends _SVGStylableImpl impleme
nts SVGFilterPrimitiveStandardAttributes native "*SVGFilterPrimitiveStandardAttr
ibutes" { |
11119 | 11236 |
11120 final _SVGAnimatedLengthImpl height; | 11237 final _SVGAnimatedLengthImpl height; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11178 String xmllang; | 11295 String xmllang; |
11179 | 11296 |
11180 String xmlspace; | 11297 String xmlspace; |
11181 | 11298 |
11182 // From SVGExternalResourcesRequired | 11299 // From SVGExternalResourcesRequired |
11183 | 11300 |
11184 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11301 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11185 | 11302 |
11186 // From SVGStylable | 11303 // From SVGStylable |
11187 | 11304 |
11188 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11305 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11189 | 11306 |
11190 // Use implementation from Element. | 11307 // Use implementation from Element. |
11191 // final _CSSStyleDeclarationImpl style; | 11308 // final _CSSStyleDeclarationImpl style; |
11192 | 11309 |
11193 _CSSValueImpl getPresentationAttribute(String name) native; | 11310 _CSSValueImpl getPresentationAttribute(String name) native; |
11194 | 11311 |
11195 // From SVGTransformable | 11312 // From SVGTransformable |
11196 | 11313 |
11197 final _SVGAnimatedTransformListImpl transform; | 11314 final _SVGAnimatedTransformListImpl transform; |
11198 | 11315 |
(...skipping 29 matching lines...) Expand all Loading... |
11228 String xmllang; | 11345 String xmllang; |
11229 | 11346 |
11230 String xmlspace; | 11347 String xmlspace; |
11231 | 11348 |
11232 // From SVGExternalResourcesRequired | 11349 // From SVGExternalResourcesRequired |
11233 | 11350 |
11234 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11351 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11235 | 11352 |
11236 // From SVGStylable | 11353 // From SVGStylable |
11237 | 11354 |
11238 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11355 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11239 | 11356 |
11240 // Use implementation from Element. | 11357 // Use implementation from Element. |
11241 // final _CSSStyleDeclarationImpl style; | 11358 // final _CSSStyleDeclarationImpl style; |
11242 | 11359 |
11243 _CSSValueImpl getPresentationAttribute(String name) native; | 11360 _CSSValueImpl getPresentationAttribute(String name) native; |
11244 | 11361 |
11245 // From SVGTransformable | 11362 // From SVGTransformable |
11246 | 11363 |
11247 final _SVGAnimatedTransformListImpl transform; | 11364 final _SVGAnimatedTransformListImpl transform; |
11248 | 11365 |
(...skipping 28 matching lines...) Expand all Loading... |
11277 num x; | 11394 num x; |
11278 | 11395 |
11279 num y; | 11396 num y; |
11280 | 11397 |
11281 // From SVGURIReference | 11398 // From SVGURIReference |
11282 | 11399 |
11283 final _SVGAnimatedStringImpl href; | 11400 final _SVGAnimatedStringImpl href; |
11284 | 11401 |
11285 // From SVGStylable | 11402 // From SVGStylable |
11286 | 11403 |
11287 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11404 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11288 | 11405 |
11289 // Use implementation from Element. | 11406 // Use implementation from Element. |
11290 // final _CSSStyleDeclarationImpl style; | 11407 // final _CSSStyleDeclarationImpl style; |
11291 | 11408 |
11292 _CSSValueImpl getPresentationAttribute(String name) native; | 11409 _CSSValueImpl getPresentationAttribute(String name) native; |
11293 } | 11410 } |
11294 | 11411 |
11295 class _SVGGradientElementImpl extends _SVGElementImpl implements SVGGradientElem
ent native "*SVGGradientElement" { | 11412 class _SVGGradientElementImpl extends _SVGElementImpl implements SVGGradientElem
ent native "*SVGGradientElement" { |
11296 | 11413 |
11297 static final int SVG_SPREADMETHOD_PAD = 1; | 11414 static final int SVG_SPREADMETHOD_PAD = 1; |
(...skipping 13 matching lines...) Expand all Loading... |
11311 // From SVGURIReference | 11428 // From SVGURIReference |
11312 | 11429 |
11313 final _SVGAnimatedStringImpl href; | 11430 final _SVGAnimatedStringImpl href; |
11314 | 11431 |
11315 // From SVGExternalResourcesRequired | 11432 // From SVGExternalResourcesRequired |
11316 | 11433 |
11317 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11434 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11318 | 11435 |
11319 // From SVGStylable | 11436 // From SVGStylable |
11320 | 11437 |
11321 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11438 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11322 | 11439 |
11323 // Use implementation from Element. | 11440 // Use implementation from Element. |
11324 // final _CSSStyleDeclarationImpl style; | 11441 // final _CSSStyleDeclarationImpl style; |
11325 | 11442 |
11326 _CSSValueImpl getPresentationAttribute(String name) native; | 11443 _CSSValueImpl getPresentationAttribute(String name) native; |
11327 } | 11444 } |
11328 | 11445 |
11329 class _SVGHKernElementImpl extends _SVGElementImpl implements SVGHKernElement na
tive "*SVGHKernElement" { | 11446 class _SVGHKernElementImpl extends _SVGElementImpl implements SVGHKernElement na
tive "*SVGHKernElement" { |
11330 } | 11447 } |
11331 | 11448 |
(...skipping 28 matching lines...) Expand all Loading... |
11360 String xmllang; | 11477 String xmllang; |
11361 | 11478 |
11362 String xmlspace; | 11479 String xmlspace; |
11363 | 11480 |
11364 // From SVGExternalResourcesRequired | 11481 // From SVGExternalResourcesRequired |
11365 | 11482 |
11366 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11483 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11367 | 11484 |
11368 // From SVGStylable | 11485 // From SVGStylable |
11369 | 11486 |
11370 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11487 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11371 | 11488 |
11372 // Use implementation from Element. | 11489 // Use implementation from Element. |
11373 // final _CSSStyleDeclarationImpl style; | 11490 // final _CSSStyleDeclarationImpl style; |
11374 | 11491 |
11375 _CSSValueImpl getPresentationAttribute(String name) native; | 11492 _CSSValueImpl getPresentationAttribute(String name) native; |
11376 | 11493 |
11377 // From SVGTransformable | 11494 // From SVGTransformable |
11378 | 11495 |
11379 final _SVGAnimatedTransformListImpl transform; | 11496 final _SVGAnimatedTransformListImpl transform; |
11380 | 11497 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11481 String xmllang; | 11598 String xmllang; |
11482 | 11599 |
11483 String xmlspace; | 11600 String xmlspace; |
11484 | 11601 |
11485 // From SVGExternalResourcesRequired | 11602 // From SVGExternalResourcesRequired |
11486 | 11603 |
11487 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11604 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11488 | 11605 |
11489 // From SVGStylable | 11606 // From SVGStylable |
11490 | 11607 |
11491 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11608 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11492 | 11609 |
11493 // Use implementation from Element. | 11610 // Use implementation from Element. |
11494 // final _CSSStyleDeclarationImpl style; | 11611 // final _CSSStyleDeclarationImpl style; |
11495 | 11612 |
11496 _CSSValueImpl getPresentationAttribute(String name) native; | 11613 _CSSValueImpl getPresentationAttribute(String name) native; |
11497 | 11614 |
11498 // From SVGTransformable | 11615 // From SVGTransformable |
11499 | 11616 |
11500 final _SVGAnimatedTransformListImpl transform; | 11617 final _SVGAnimatedTransformListImpl transform; |
11501 | 11618 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11588 String xmllang; | 11705 String xmllang; |
11589 | 11706 |
11590 String xmlspace; | 11707 String xmlspace; |
11591 | 11708 |
11592 // From SVGExternalResourcesRequired | 11709 // From SVGExternalResourcesRequired |
11593 | 11710 |
11594 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11711 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11595 | 11712 |
11596 // From SVGStylable | 11713 // From SVGStylable |
11597 | 11714 |
11598 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11715 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11599 | 11716 |
11600 // Use implementation from Element. | 11717 // Use implementation from Element. |
11601 // final _CSSStyleDeclarationImpl style; | 11718 // final _CSSStyleDeclarationImpl style; |
11602 | 11719 |
11603 _CSSValueImpl getPresentationAttribute(String name) native; | 11720 _CSSValueImpl getPresentationAttribute(String name) native; |
11604 | 11721 |
11605 // From SVGFitToViewBox | 11722 // From SVGFitToViewBox |
11606 | 11723 |
11607 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; | 11724 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
11608 | 11725 |
(...skipping 29 matching lines...) Expand all Loading... |
11638 String xmllang; | 11755 String xmllang; |
11639 | 11756 |
11640 String xmlspace; | 11757 String xmlspace; |
11641 | 11758 |
11642 // From SVGExternalResourcesRequired | 11759 // From SVGExternalResourcesRequired |
11643 | 11760 |
11644 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11761 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11645 | 11762 |
11646 // From SVGStylable | 11763 // From SVGStylable |
11647 | 11764 |
11648 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11765 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11649 | 11766 |
11650 // Use implementation from Element. | 11767 // Use implementation from Element. |
11651 // final _CSSStyleDeclarationImpl style; | 11768 // final _CSSStyleDeclarationImpl style; |
11652 | 11769 |
11653 _CSSValueImpl getPresentationAttribute(String name) native; | 11770 _CSSValueImpl getPresentationAttribute(String name) native; |
11654 } | 11771 } |
11655 | 11772 |
11656 class _SVGMatrixImpl implements SVGMatrix native "*SVGMatrix" { | 11773 class _SVGMatrixImpl implements SVGMatrix native "*SVGMatrix" { |
11657 | 11774 |
11658 num a; | 11775 num a; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11822 String xmllang; | 11939 String xmllang; |
11823 | 11940 |
11824 String xmlspace; | 11941 String xmlspace; |
11825 | 11942 |
11826 // From SVGExternalResourcesRequired | 11943 // From SVGExternalResourcesRequired |
11827 | 11944 |
11828 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 11945 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11829 | 11946 |
11830 // From SVGStylable | 11947 // From SVGStylable |
11831 | 11948 |
11832 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 11949 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
11833 | 11950 |
11834 // Use implementation from Element. | 11951 // Use implementation from Element. |
11835 // final _CSSStyleDeclarationImpl style; | 11952 // final _CSSStyleDeclarationImpl style; |
11836 | 11953 |
11837 _CSSValueImpl getPresentationAttribute(String name) native; | 11954 _CSSValueImpl getPresentationAttribute(String name) native; |
11838 | 11955 |
11839 // From SVGTransformable | 11956 // From SVGTransformable |
11840 | 11957 |
11841 final _SVGAnimatedTransformListImpl transform; | 11958 final _SVGAnimatedTransformListImpl transform; |
11842 | 11959 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12129 String xmllang; | 12246 String xmllang; |
12130 | 12247 |
12131 String xmlspace; | 12248 String xmlspace; |
12132 | 12249 |
12133 // From SVGExternalResourcesRequired | 12250 // From SVGExternalResourcesRequired |
12134 | 12251 |
12135 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12252 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12136 | 12253 |
12137 // From SVGStylable | 12254 // From SVGStylable |
12138 | 12255 |
12139 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12256 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12140 | 12257 |
12141 // Use implementation from Element. | 12258 // Use implementation from Element. |
12142 // final _CSSStyleDeclarationImpl style; | 12259 // final _CSSStyleDeclarationImpl style; |
12143 | 12260 |
12144 _CSSValueImpl getPresentationAttribute(String name) native; | 12261 _CSSValueImpl getPresentationAttribute(String name) native; |
12145 | 12262 |
12146 // From SVGFitToViewBox | 12263 // From SVGFitToViewBox |
12147 | 12264 |
12148 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; | 12265 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
12149 | 12266 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12199 String xmllang; | 12316 String xmllang; |
12200 | 12317 |
12201 String xmlspace; | 12318 String xmlspace; |
12202 | 12319 |
12203 // From SVGExternalResourcesRequired | 12320 // From SVGExternalResourcesRequired |
12204 | 12321 |
12205 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12322 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12206 | 12323 |
12207 // From SVGStylable | 12324 // From SVGStylable |
12208 | 12325 |
12209 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12326 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12210 | 12327 |
12211 // Use implementation from Element. | 12328 // Use implementation from Element. |
12212 // final _CSSStyleDeclarationImpl style; | 12329 // final _CSSStyleDeclarationImpl style; |
12213 | 12330 |
12214 _CSSValueImpl getPresentationAttribute(String name) native; | 12331 _CSSValueImpl getPresentationAttribute(String name) native; |
12215 | 12332 |
12216 // From SVGTransformable | 12333 // From SVGTransformable |
12217 | 12334 |
12218 final _SVGAnimatedTransformListImpl transform; | 12335 final _SVGAnimatedTransformListImpl transform; |
12219 | 12336 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12253 String xmllang; | 12370 String xmllang; |
12254 | 12371 |
12255 String xmlspace; | 12372 String xmlspace; |
12256 | 12373 |
12257 // From SVGExternalResourcesRequired | 12374 // From SVGExternalResourcesRequired |
12258 | 12375 |
12259 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12376 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12260 | 12377 |
12261 // From SVGStylable | 12378 // From SVGStylable |
12262 | 12379 |
12263 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12380 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12264 | 12381 |
12265 // Use implementation from Element. | 12382 // Use implementation from Element. |
12266 // final _CSSStyleDeclarationImpl style; | 12383 // final _CSSStyleDeclarationImpl style; |
12267 | 12384 |
12268 _CSSValueImpl getPresentationAttribute(String name) native; | 12385 _CSSValueImpl getPresentationAttribute(String name) native; |
12269 | 12386 |
12270 // From SVGTransformable | 12387 // From SVGTransformable |
12271 | 12388 |
12272 final _SVGAnimatedTransformListImpl transform; | 12389 final _SVGAnimatedTransformListImpl transform; |
12273 | 12390 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12374 String xmllang; | 12491 String xmllang; |
12375 | 12492 |
12376 String xmlspace; | 12493 String xmlspace; |
12377 | 12494 |
12378 // From SVGExternalResourcesRequired | 12495 // From SVGExternalResourcesRequired |
12379 | 12496 |
12380 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12497 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12381 | 12498 |
12382 // From SVGStylable | 12499 // From SVGStylable |
12383 | 12500 |
12384 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12501 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12385 | 12502 |
12386 // Use implementation from Element. | 12503 // Use implementation from Element. |
12387 // final _CSSStyleDeclarationImpl style; | 12504 // final _CSSStyleDeclarationImpl style; |
12388 | 12505 |
12389 _CSSValueImpl getPresentationAttribute(String name) native; | 12506 _CSSValueImpl getPresentationAttribute(String name) native; |
12390 | 12507 |
12391 // From SVGTransformable | 12508 // From SVGTransformable |
12392 | 12509 |
12393 final _SVGAnimatedTransformListImpl transform; | 12510 final _SVGAnimatedTransformListImpl transform; |
12394 | 12511 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12513 String xmllang; | 12630 String xmllang; |
12514 | 12631 |
12515 String xmlspace; | 12632 String xmlspace; |
12516 | 12633 |
12517 // From SVGExternalResourcesRequired | 12634 // From SVGExternalResourcesRequired |
12518 | 12635 |
12519 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12636 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12520 | 12637 |
12521 // From SVGStylable | 12638 // From SVGStylable |
12522 | 12639 |
12523 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12640 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12524 | 12641 |
12525 // Use implementation from Element. | 12642 // Use implementation from Element. |
12526 // final _CSSStyleDeclarationImpl style; | 12643 // final _CSSStyleDeclarationImpl style; |
12527 | 12644 |
12528 _CSSValueImpl getPresentationAttribute(String name) native; | 12645 _CSSValueImpl getPresentationAttribute(String name) native; |
12529 | 12646 |
12530 // From SVGLocatable | 12647 // From SVGLocatable |
12531 | 12648 |
12532 final _SVGElementImpl farthestViewportElement; | 12649 final _SVGElementImpl farthestViewportElement; |
12533 | 12650 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12567 | 12684 |
12568 class _SVGSetElementImpl extends _SVGAnimationElementImpl implements SVGSetEleme
nt native "*SVGSetElement" { | 12685 class _SVGSetElementImpl extends _SVGAnimationElementImpl implements SVGSetEleme
nt native "*SVGSetElement" { |
12569 } | 12686 } |
12570 | 12687 |
12571 class _SVGStopElementImpl extends _SVGElementImpl implements SVGStopElement nati
ve "*SVGStopElement" { | 12688 class _SVGStopElementImpl extends _SVGElementImpl implements SVGStopElement nati
ve "*SVGStopElement" { |
12572 | 12689 |
12573 final _SVGAnimatedNumberImpl offset; | 12690 final _SVGAnimatedNumberImpl offset; |
12574 | 12691 |
12575 // From SVGStylable | 12692 // From SVGStylable |
12576 | 12693 |
12577 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12694 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12578 | 12695 |
12579 // Use implementation from Element. | 12696 // Use implementation from Element. |
12580 // final _CSSStyleDeclarationImpl style; | 12697 // final _CSSStyleDeclarationImpl style; |
12581 | 12698 |
12582 _CSSValueImpl getPresentationAttribute(String name) native; | 12699 _CSSValueImpl getPresentationAttribute(String name) native; |
12583 } | 12700 } |
12584 | 12701 |
12585 class _SVGStringListImpl implements SVGStringList native "*SVGStringList" { | 12702 class _SVGStringListImpl implements SVGStringList native "*SVGStringList" { |
12586 | 12703 |
12587 final int numberOfItems; | 12704 final int numberOfItems; |
12588 | 12705 |
12589 String appendItem(String item) native; | 12706 String appendItem(String item) native; |
12590 | 12707 |
12591 void clear() native; | 12708 void clear() native; |
12592 | 12709 |
12593 String getItem(int index) native; | 12710 String getItem(int index) native; |
12594 | 12711 |
12595 String initialize(String item) native; | 12712 String initialize(String item) native; |
12596 | 12713 |
12597 String insertItemBefore(String item, int index) native; | 12714 String insertItemBefore(String item, int index) native; |
12598 | 12715 |
12599 String removeItem(int index) native; | 12716 String removeItem(int index) native; |
12600 | 12717 |
12601 String replaceItem(String item, int index) native; | 12718 String replaceItem(String item, int index) native; |
12602 } | 12719 } |
12603 | 12720 |
12604 class _SVGStylableImpl implements SVGStylable native "*SVGStylable" { | 12721 class _SVGStylableImpl implements SVGStylable native "*SVGStylable" { |
12605 | 12722 |
12606 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12723 _SVGAnimatedStringImpl get $dom_svgClassName() native "return this.className;"
; |
12607 | 12724 |
12608 final _CSSStyleDeclarationImpl style; | 12725 final _CSSStyleDeclarationImpl style; |
12609 | 12726 |
12610 _CSSValueImpl getPresentationAttribute(String name) native; | 12727 _CSSValueImpl getPresentationAttribute(String name) native; |
12611 } | 12728 } |
12612 | 12729 |
12613 class _SVGStyleElementImpl extends _SVGElementImpl implements SVGStyleElement na
tive "*SVGStyleElement" { | 12730 class _SVGStyleElementImpl extends _SVGElementImpl implements SVGStyleElement na
tive "*SVGStyleElement" { |
12614 | 12731 |
12615 bool disabled; | 12732 bool disabled; |
12616 | 12733 |
(...skipping 30 matching lines...) Expand all Loading... |
12647 String xmllang; | 12764 String xmllang; |
12648 | 12765 |
12649 String xmlspace; | 12766 String xmlspace; |
12650 | 12767 |
12651 // From SVGExternalResourcesRequired | 12768 // From SVGExternalResourcesRequired |
12652 | 12769 |
12653 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12770 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12654 | 12771 |
12655 // From SVGStylable | 12772 // From SVGStylable |
12656 | 12773 |
12657 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12774 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12658 | 12775 |
12659 // Use implementation from Element. | 12776 // Use implementation from Element. |
12660 // final _CSSStyleDeclarationImpl style; | 12777 // final _CSSStyleDeclarationImpl style; |
12661 | 12778 |
12662 _CSSValueImpl getPresentationAttribute(String name) native; | 12779 _CSSValueImpl getPresentationAttribute(String name) native; |
12663 | 12780 |
12664 // From SVGTransformable | 12781 // From SVGTransformable |
12665 | 12782 |
12666 final _SVGAnimatedTransformListImpl transform; | 12783 final _SVGAnimatedTransformListImpl transform; |
12667 | 12784 |
(...skipping 19 matching lines...) Expand all Loading... |
12687 String xmllang; | 12804 String xmllang; |
12688 | 12805 |
12689 String xmlspace; | 12806 String xmlspace; |
12690 | 12807 |
12691 // From SVGExternalResourcesRequired | 12808 // From SVGExternalResourcesRequired |
12692 | 12809 |
12693 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12810 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12694 | 12811 |
12695 // From SVGStylable | 12812 // From SVGStylable |
12696 | 12813 |
12697 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12814 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12698 | 12815 |
12699 // Use implementation from Element. | 12816 // Use implementation from Element. |
12700 // final _CSSStyleDeclarationImpl style; | 12817 // final _CSSStyleDeclarationImpl style; |
12701 | 12818 |
12702 _CSSValueImpl getPresentationAttribute(String name) native; | 12819 _CSSValueImpl getPresentationAttribute(String name) native; |
12703 | 12820 |
12704 // From SVGFitToViewBox | 12821 // From SVGFitToViewBox |
12705 | 12822 |
12706 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; | 12823 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
12707 | 12824 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12774 String xmllang; | 12891 String xmllang; |
12775 | 12892 |
12776 String xmlspace; | 12893 String xmlspace; |
12777 | 12894 |
12778 // From SVGExternalResourcesRequired | 12895 // From SVGExternalResourcesRequired |
12779 | 12896 |
12780 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 12897 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12781 | 12898 |
12782 // From SVGStylable | 12899 // From SVGStylable |
12783 | 12900 |
12784 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12901 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12785 | 12902 |
12786 // Use implementation from Element. | 12903 // Use implementation from Element. |
12787 // final _CSSStyleDeclarationImpl style; | 12904 // final _CSSStyleDeclarationImpl style; |
12788 | 12905 |
12789 _CSSValueImpl getPresentationAttribute(String name) native; | 12906 _CSSValueImpl getPresentationAttribute(String name) native; |
12790 } | 12907 } |
12791 | 12908 |
12792 class _SVGTextElementImpl extends _SVGTextPositioningElementImpl implements SVGT
extElement native "*SVGTextElement" { | 12909 class _SVGTextElementImpl extends _SVGTextPositioningElementImpl implements SVGT
extElement native "*SVGTextElement" { |
12793 | 12910 |
12794 // From SVGTransformable | 12911 // From SVGTransformable |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12851 class _SVGTitleElementImpl extends _SVGElementImpl implements SVGTitleElement na
tive "*SVGTitleElement" { | 12968 class _SVGTitleElementImpl extends _SVGElementImpl implements SVGTitleElement na
tive "*SVGTitleElement" { |
12852 | 12969 |
12853 // From SVGLangSpace | 12970 // From SVGLangSpace |
12854 | 12971 |
12855 String xmllang; | 12972 String xmllang; |
12856 | 12973 |
12857 String xmlspace; | 12974 String xmlspace; |
12858 | 12975 |
12859 // From SVGStylable | 12976 // From SVGStylable |
12860 | 12977 |
12861 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 12978 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12862 | 12979 |
12863 // Use implementation from Element. | 12980 // Use implementation from Element. |
12864 // final _CSSStyleDeclarationImpl style; | 12981 // final _CSSStyleDeclarationImpl style; |
12865 | 12982 |
12866 _CSSValueImpl getPresentationAttribute(String name) native; | 12983 _CSSValueImpl getPresentationAttribute(String name) native; |
12867 } | 12984 } |
12868 | 12985 |
12869 class _SVGTransformImpl implements SVGTransform native "*SVGTransform" { | 12986 class _SVGTransformImpl implements SVGTransform native "*SVGTransform" { |
12870 | 12987 |
12871 static final int SVG_TRANSFORM_MATRIX = 1; | 12988 static final int SVG_TRANSFORM_MATRIX = 1; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12976 String xmllang; | 13093 String xmllang; |
12977 | 13094 |
12978 String xmlspace; | 13095 String xmlspace; |
12979 | 13096 |
12980 // From SVGExternalResourcesRequired | 13097 // From SVGExternalResourcesRequired |
12981 | 13098 |
12982 final _SVGAnimatedBooleanImpl externalResourcesRequired; | 13099 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12983 | 13100 |
12984 // From SVGStylable | 13101 // From SVGStylable |
12985 | 13102 |
12986 _SVGAnimatedStringImpl get _svgClassName() native "return this.className;"; | 13103 _SVGAnimatedStringImpl get $dom_$dom_svgClassName() native "return this.classN
ame;"; |
12987 | 13104 |
12988 // Use implementation from Element. | 13105 // Use implementation from Element. |
12989 // final _CSSStyleDeclarationImpl style; | 13106 // final _CSSStyleDeclarationImpl style; |
12990 | 13107 |
12991 _CSSValueImpl getPresentationAttribute(String name) native; | 13108 _CSSValueImpl getPresentationAttribute(String name) native; |
12992 | 13109 |
12993 // From SVGTransformable | 13110 // From SVGTransformable |
12994 | 13111 |
12995 final _SVGAnimatedTransformListImpl transform; | 13112 final _SVGAnimatedTransformListImpl transform; |
12996 | 13113 |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13866 final int identifier; | 13983 final int identifier; |
13867 | 13984 |
13868 final int pageX; | 13985 final int pageX; |
13869 | 13986 |
13870 final int pageY; | 13987 final int pageY; |
13871 | 13988 |
13872 final int screenX; | 13989 final int screenX; |
13873 | 13990 |
13874 final int screenY; | 13991 final int screenY; |
13875 | 13992 |
13876 _EventTargetImpl get target() => _FixHtmlDocumentReference(_target); | 13993 final _EventTargetImpl target; |
13877 | |
13878 _EventTargetImpl get _target() native "return this.target;"; | |
13879 | 13994 |
13880 final num webkitForce; | 13995 final num webkitForce; |
13881 | 13996 |
13882 final int webkitRadiusX; | 13997 final int webkitRadiusX; |
13883 | 13998 |
13884 final int webkitRadiusY; | 13999 final int webkitRadiusY; |
13885 | 14000 |
13886 final num webkitRotationAngle; | 14001 final num webkitRotationAngle; |
13887 } | 14002 } |
13888 | 14003 |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15411 final int bufferedAmount; | 15526 final int bufferedAmount; |
15412 | 15527 |
15413 final String extensions; | 15528 final String extensions; |
15414 | 15529 |
15415 final String protocol; | 15530 final String protocol; |
15416 | 15531 |
15417 final int readyState; | 15532 final int readyState; |
15418 | 15533 |
15419 final String url; | 15534 final String url; |
15420 | 15535 |
15421 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 15536 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
15422 | 15537 |
15423 void close([int code = null, String reason = null]) native; | 15538 void close([int code = null, String reason = null]) native; |
15424 | 15539 |
15425 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 15540 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
15426 | 15541 |
15427 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 15542 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
15428 | 15543 |
15429 bool send(String data) native; | 15544 bool send(String data) native; |
15430 } | 15545 } |
15431 | 15546 |
15432 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents { | 15547 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents { |
15433 _WebSocketEventsImpl(_ptr) : super(_ptr); | 15548 _WebSocketEventsImpl(_ptr) : super(_ptr); |
15434 | 15549 |
15435 EventListenerList get close() => _get('close'); | 15550 EventListenerList get close() => _get('close'); |
15436 | 15551 |
15437 EventListenerList get error() => _get('error'); | 15552 EventListenerList get error() => _get('error'); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15476 final int y; | 15591 final int y; |
15477 | 15592 |
15478 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, _WindowImpl view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; | 15593 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, _WindowImpl view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; |
15479 } | 15594 } |
15480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15481 // for details. All rights reserved. Use of this source code is governed by a | 15596 // for details. All rights reserved. Use of this source code is governed by a |
15482 // BSD-style license that can be found in the LICENSE file. | 15597 // BSD-style license that can be found in the LICENSE file. |
15483 | 15598 |
15484 class _WindowImpl extends _EventTargetImpl implements Window native "@*DOMWindow
" { | 15599 class _WindowImpl extends _EventTargetImpl implements Window native "@*DOMWindow
" { |
15485 | 15600 |
15486 _DocumentImpl get document() native "return this.document.documentElement;"; | 15601 _DocumentImpl get document() native "return this.document;"; |
15487 | 15602 |
15488 void requestLayoutFrame(TimeoutHandler callback) { | 15603 void requestLayoutFrame(TimeoutHandler callback) { |
15489 _addMeasurementFrameCallback(callback); | 15604 _addMeasurementFrameCallback(callback); |
15490 } | 15605 } |
15491 | 15606 |
15492 | 15607 |
15493 _WindowEventsImpl get on() => | 15608 _WindowEventsImpl get on() => |
15494 new _WindowEventsImpl(this); | 15609 new _WindowEventsImpl(this); |
15495 | 15610 |
15496 static final int PERSISTENT = 1; | 15611 static final int PERSISTENT = 1; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15588 final _WindowImpl top; | 15703 final _WindowImpl top; |
15589 | 15704 |
15590 final _IDBFactoryImpl webkitIndexedDB; | 15705 final _IDBFactoryImpl webkitIndexedDB; |
15591 | 15706 |
15592 final _NotificationCenterImpl webkitNotifications; | 15707 final _NotificationCenterImpl webkitNotifications; |
15593 | 15708 |
15594 final _StorageInfoImpl webkitStorageInfo; | 15709 final _StorageInfoImpl webkitStorageInfo; |
15595 | 15710 |
15596 final _WindowImpl window; | 15711 final _WindowImpl window; |
15597 | 15712 |
15598 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 15713 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
15599 | 15714 |
15600 void alert(String message) native; | 15715 void alert(String message) native; |
15601 | 15716 |
15602 String atob(String string) native; | 15717 String atob(String string) native; |
15603 | 15718 |
15604 void blur() native; | 15719 void blur() native; |
15605 | 15720 |
15606 String btoa(String string) native; | 15721 String btoa(String string) native; |
15607 | 15722 |
15608 void captureEvents() native; | 15723 void captureEvents() native; |
15609 | 15724 |
15610 void clearInterval(int handle) native; | 15725 void clearInterval(int handle) native; |
15611 | 15726 |
15612 void clearTimeout(int handle) native; | 15727 void clearTimeout(int handle) native; |
15613 | 15728 |
15614 void close() native; | 15729 void close() native; |
15615 | 15730 |
15616 bool confirm(String message) native; | 15731 bool confirm(String message) native; |
15617 | 15732 |
15618 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 15733 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
15619 | 15734 |
15620 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | 15735 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; |
15621 | 15736 |
15622 void focus() native; | 15737 void focus() native; |
15623 | 15738 |
15624 _CSSStyleDeclarationImpl _getComputedStyle(_ElementImpl element, String pseudo
Element) native "return this.getComputedStyle(element, pseudoElement);"; | 15739 _CSSStyleDeclarationImpl $dom_getComputedStyle(_ElementImpl element, String ps
eudoElement) native "return this.getComputedStyle(element, pseudoElement);"; |
15625 | 15740 |
15626 _CSSRuleListImpl getMatchedCSSRules(_ElementImpl element, String pseudoElement
) native; | 15741 _CSSRuleListImpl getMatchedCSSRules(_ElementImpl element, String pseudoElement
) native; |
15627 | 15742 |
15628 _DOMSelectionImpl getSelection() native; | 15743 _DOMSelectionImpl getSelection() native; |
15629 | 15744 |
15630 _MediaQueryListImpl matchMedia(String query) native; | 15745 _MediaQueryListImpl matchMedia(String query) native; |
15631 | 15746 |
15632 void moveBy(num x, num y) native; | 15747 void moveBy(num x, num y) native; |
15633 | 15748 |
15634 void moveTo(num x, num y) native; | 15749 void moveTo(num x, num y) native; |
15635 | 15750 |
15636 _WindowImpl open(String url, String name, [String options = null]) native; | 15751 _WindowImpl open(String url, String name, [String options = null]) native; |
15637 | 15752 |
15638 _DatabaseImpl openDatabase(String name, String version, String displayName, in
t estimatedSize, [DatabaseCallback creationCallback = null]) native; | 15753 _DatabaseImpl openDatabase(String name, String version, String displayName, in
t estimatedSize, [DatabaseCallback creationCallback = null]) native; |
15639 | 15754 |
15640 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu
ll]) native; | 15755 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu
ll]) native; |
15641 | 15756 |
15642 void print() native; | 15757 void print() native; |
15643 | 15758 |
15644 String prompt(String message, String defaultValue) native; | 15759 String prompt(String message, String defaultValue) native; |
15645 | 15760 |
15646 void releaseEvents() native; | 15761 void releaseEvents() native; |
15647 | 15762 |
15648 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 15763 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
15649 | 15764 |
15650 void resizeBy(num x, num y) native; | 15765 void resizeBy(num x, num y) native; |
15651 | 15766 |
15652 void resizeTo(num width, num height) native; | 15767 void resizeTo(num width, num height) native; |
15653 | 15768 |
15654 void scroll(int x, int y) native; | 15769 void scroll(int x, int y) native; |
15655 | 15770 |
15656 void scrollBy(int x, int y) native; | 15771 void scrollBy(int x, int y) native; |
15657 | 15772 |
15658 void scrollTo(int x, int y) native; | 15773 void scrollTo(int x, int y) native; |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15956 final int readyState; | 16071 final int readyState; |
15957 | 16072 |
15958 final Object response; | 16073 final Object response; |
15959 | 16074 |
15960 final _BlobImpl responseBlob; | 16075 final _BlobImpl responseBlob; |
15961 | 16076 |
15962 final String responseText; | 16077 final String responseText; |
15963 | 16078 |
15964 String responseType; | 16079 String responseType; |
15965 | 16080 |
15966 _DocumentImpl get responseXML() => _FixHtmlDocumentReference(_responseXML); | 16081 final _DocumentImpl responseXML; |
15967 | |
15968 _EventTargetImpl get _responseXML() native "return this.responseXML;"; | |
15969 | 16082 |
15970 final int status; | 16083 final int status; |
15971 | 16084 |
15972 final String statusText; | 16085 final String statusText; |
15973 | 16086 |
15974 final _XMLHttpRequestUploadImpl upload; | 16087 final _XMLHttpRequestUploadImpl upload; |
15975 | 16088 |
15976 bool withCredentials; | 16089 bool withCredentials; |
15977 | 16090 |
15978 void abort() native; | 16091 void abort() native; |
15979 | 16092 |
15980 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 16093 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
15981 | 16094 |
15982 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 16095 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
15983 | 16096 |
15984 String getAllResponseHeaders() native; | 16097 String getAllResponseHeaders() native; |
15985 | 16098 |
15986 String getResponseHeader(String header) native; | 16099 String getResponseHeader(String header) native; |
15987 | 16100 |
15988 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; | 16101 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; |
15989 | 16102 |
15990 void overrideMimeType(String override) native; | 16103 void overrideMimeType(String override) native; |
15991 | 16104 |
15992 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 16105 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
15993 | 16106 |
15994 void send([var data = null]) native; | 16107 void send([var data = null]) native; |
15995 | 16108 |
15996 void setRequestHeader(String header, String value) native; | 16109 void setRequestHeader(String header, String value) native; |
15997 } | 16110 } |
15998 | 16111 |
15999 class _XMLHttpRequestEventsImpl extends _EventsImpl implements XMLHttpRequestEve
nts { | 16112 class _XMLHttpRequestEventsImpl extends _EventsImpl implements XMLHttpRequestEve
nts { |
16000 _XMLHttpRequestEventsImpl(_ptr) : super(_ptr); | 16113 _XMLHttpRequestEventsImpl(_ptr) : super(_ptr); |
16001 | 16114 |
16002 EventListenerList get abort() => _get('abort'); | 16115 EventListenerList get abort() => _get('abort'); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16034 final int position; | 16147 final int position; |
16035 | 16148 |
16036 final int totalSize; | 16149 final int totalSize; |
16037 } | 16150 } |
16038 | 16151 |
16039 class _XMLHttpRequestUploadImpl extends _EventTargetImpl implements XMLHttpReque
stUpload native "*XMLHttpRequestUpload" { | 16152 class _XMLHttpRequestUploadImpl extends _EventTargetImpl implements XMLHttpReque
stUpload native "*XMLHttpRequestUpload" { |
16040 | 16153 |
16041 _XMLHttpRequestUploadEventsImpl get on() => | 16154 _XMLHttpRequestUploadEventsImpl get on() => |
16042 new _XMLHttpRequestUploadEventsImpl(this); | 16155 new _XMLHttpRequestUploadEventsImpl(this); |
16043 | 16156 |
16044 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 16157 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re = null]) native "this.addEventListener(type, listener, useCapture);"; |
16045 | 16158 |
16046 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; | 16159 bool $dom_dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt)
;"; |
16047 | 16160 |
16048 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 16161 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture = null]) native "this.removeEventListener(type, listener, useCapture);"; |
16049 } | 16162 } |
16050 | 16163 |
16051 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ
estUploadEvents { | 16164 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ
estUploadEvents { |
16052 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr); | 16165 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr); |
16053 | 16166 |
16054 EventListenerList get abort() => _get('abort'); | 16167 EventListenerList get abort() => _get('abort'); |
16055 | 16168 |
16056 EventListenerList get error() => _get('error'); | 16169 EventListenerList get error() => _get('error'); |
16057 | 16170 |
16058 EventListenerList get load() => _get('load'); | 16171 EventListenerList get load() => _get('load'); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16151 String getParameter(String namespaceURI, String localName) native; | 16264 String getParameter(String namespaceURI, String localName) native; |
16152 | 16265 |
16153 void importStylesheet(_NodeImpl stylesheet) native; | 16266 void importStylesheet(_NodeImpl stylesheet) native; |
16154 | 16267 |
16155 void removeParameter(String namespaceURI, String localName) native; | 16268 void removeParameter(String namespaceURI, String localName) native; |
16156 | 16269 |
16157 void reset() native; | 16270 void reset() native; |
16158 | 16271 |
16159 void setParameter(String namespaceURI, String localName, String value) native; | 16272 void setParameter(String namespaceURI, String localName, String value) native; |
16160 | 16273 |
16161 _DocumentImpl transformToDocument(_NodeImpl source) => _FixHtmlDocumentReferen
ce(_transformToDocument(source)); | 16274 _DocumentImpl transformToDocument(_NodeImpl source) native; |
16162 | |
16163 _EventTargetImpl _transformToDocument(_NodeImpl source) native "return this.tr
ansformToDocument(source);"; | |
16164 | 16275 |
16165 _DocumentFragmentImpl transformToFragment(_NodeImpl source, _DocumentImpl docV
al) native; | 16276 _DocumentFragmentImpl transformToFragment(_NodeImpl source, _DocumentImpl docV
al) native; |
16166 } | 16277 } |
16167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16168 // for details. All rights reserved. Use of this source code is governed by a | 16279 // for details. All rights reserved. Use of this source code is governed by a |
16169 // BSD-style license that can be found in the LICENSE file. | 16280 // BSD-style license that can be found in the LICENSE file. |
16170 | 16281 |
16171 class _AudioElementFactoryProvider { | 16282 class _AudioElementFactoryProvider { |
16172 factory AudioElement([String src = null]) native ''' | 16283 factory AudioElement([String src = null]) native ''' |
16173 if (src == null) return new Audio(); | 16284 if (src == null) return new Audio(); |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16402 } | 16513 } |
16403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16404 // for details. All rights reserved. Use of this source code is governed by a | 16515 // for details. All rights reserved. Use of this source code is governed by a |
16405 // BSD-style license that can be found in the LICENSE file. | 16516 // BSD-style license that can be found in the LICENSE file. |
16406 | 16517 |
16407 // WARNING: Do not edit - generated code. | 16518 // WARNING: Do not edit - generated code. |
16408 | 16519 |
16409 interface AbstractWorker extends EventTarget { | 16520 interface AbstractWorker extends EventTarget { |
16410 | 16521 |
16411 AbstractWorkerEvents get on(); | 16522 AbstractWorkerEvents get on(); |
| 16523 |
| 16524 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 16525 |
| 16526 bool $dom_dispatchEvent(Event evt); |
| 16527 |
| 16528 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
16412 } | 16529 } |
16413 | 16530 |
16414 interface AbstractWorkerEvents extends Events { | 16531 interface AbstractWorkerEvents extends Events { |
16415 | 16532 |
16416 EventListenerList get error(); | 16533 EventListenerList get error(); |
16417 } | 16534 } |
16418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16419 // for details. All rights reserved. Use of this source code is governed by a | 16536 // for details. All rights reserved. Use of this source code is governed by a |
16420 // BSD-style license that can be found in the LICENSE file. | 16537 // BSD-style license that can be found in the LICENSE file. |
16421 | 16538 |
(...skipping 3490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19912 static final int OBSOLETE = 5; | 20029 static final int OBSOLETE = 5; |
19913 | 20030 |
19914 static final int UNCACHED = 0; | 20031 static final int UNCACHED = 0; |
19915 | 20032 |
19916 static final int UPDATEREADY = 4; | 20033 static final int UPDATEREADY = 4; |
19917 | 20034 |
19918 final int status; | 20035 final int status; |
19919 | 20036 |
19920 void abort(); | 20037 void abort(); |
19921 | 20038 |
| 20039 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 20040 |
| 20041 bool $dom_dispatchEvent(Event evt); |
| 20042 |
| 20043 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 20044 |
19922 void swapCache(); | 20045 void swapCache(); |
19923 | 20046 |
19924 void update(); | 20047 void update(); |
19925 } | 20048 } |
19926 | 20049 |
19927 interface DOMApplicationCacheEvents extends Events { | 20050 interface DOMApplicationCacheEvents extends Events { |
19928 | 20051 |
19929 EventListenerList get cached(); | 20052 EventListenerList get cached(); |
19930 | 20053 |
19931 EventListenerList get checking(); | 20054 EventListenerList get checking(); |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20555 final Element activeElement; | 20678 final Element activeElement; |
20556 | 20679 |
20557 Element body; | 20680 Element body; |
20558 | 20681 |
20559 String charset; | 20682 String charset; |
20560 | 20683 |
20561 String cookie; | 20684 String cookie; |
20562 | 20685 |
20563 final Window window; | 20686 final Window window; |
20564 | 20687 |
| 20688 final Element documentElement; |
| 20689 |
20565 final String domain; | 20690 final String domain; |
20566 | 20691 |
20567 final HeadElement head; | 20692 final HeadElement head; |
20568 | 20693 |
20569 final String lastModified; | 20694 final String lastModified; |
20570 | 20695 |
20571 final String preferredStylesheetSet; | 20696 final String preferredStylesheetSet; |
20572 | 20697 |
20573 final String readyState; | 20698 final String readyState; |
20574 | 20699 |
(...skipping 18 matching lines...) Expand all Loading... |
20593 final bool webkitIsFullScreen; | 20718 final bool webkitIsFullScreen; |
20594 | 20719 |
20595 final String webkitVisibilityState; | 20720 final String webkitVisibilityState; |
20596 | 20721 |
20597 Range caretRangeFromPoint(int x, int y); | 20722 Range caretRangeFromPoint(int x, int y); |
20598 | 20723 |
20599 CDATASection createCDATASection(String data); | 20724 CDATASection createCDATASection(String data); |
20600 | 20725 |
20601 DocumentFragment createDocumentFragment(); | 20726 DocumentFragment createDocumentFragment(); |
20602 | 20727 |
| 20728 Element $dom_createElement(String tagName); |
| 20729 |
| 20730 Element $dom_createElementNS(String namespaceURI, String qualifiedName); |
| 20731 |
| 20732 Event $dom_createEvent(String eventType); |
| 20733 |
20603 Range createRange(); | 20734 Range createRange(); |
20604 | 20735 |
| 20736 Text $dom_createTextNode(String data); |
| 20737 |
20605 Touch createTouch(Window window, EventTarget target, int identifier, int pageX
, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num
webkitRotationAngle, num webkitForce); | 20738 Touch createTouch(Window window, EventTarget target, int identifier, int pageX
, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num
webkitRotationAngle, num webkitForce); |
20606 | 20739 |
| 20740 TouchList $dom_createTouchList(); |
| 20741 |
20607 Element elementFromPoint(int x, int y); | 20742 Element elementFromPoint(int x, int y); |
20608 | 20743 |
20609 bool execCommand(String command, bool userInterface, String value); | 20744 bool execCommand(String command, bool userInterface, String value); |
20610 | 20745 |
20611 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height); | 20746 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height); |
20612 | 20747 |
| 20748 Element $dom_getElementById(String elementId); |
| 20749 |
| 20750 NodeList $dom_getElementsByClassName(String tagname); |
| 20751 |
| 20752 NodeList $dom_getElementsByName(String elementName); |
| 20753 |
| 20754 NodeList $dom_getElementsByTagName(String tagname); |
| 20755 |
20613 bool queryCommandEnabled(String command); | 20756 bool queryCommandEnabled(String command); |
20614 | 20757 |
20615 bool queryCommandIndeterm(String command); | 20758 bool queryCommandIndeterm(String command); |
20616 | 20759 |
20617 bool queryCommandState(String command); | 20760 bool queryCommandState(String command); |
20618 | 20761 |
20619 bool queryCommandSupported(String command); | 20762 bool queryCommandSupported(String command); |
20620 | 20763 |
20621 String queryCommandValue(String command); | 20764 String queryCommandValue(String command); |
20622 | 20765 |
| 20766 Element query(String selectors); |
| 20767 |
| 20768 NodeList $dom_querySelectorAll(String selectors); |
| 20769 |
20623 void webkitCancelFullScreen(); | 20770 void webkitCancelFullScreen(); |
20624 | 20771 |
20625 void webkitExitFullscreen(); | 20772 void webkitExitFullscreen(); |
20626 | 20773 |
20627 WebKitNamedFlow webkitGetFlowByName(String name); | 20774 WebKitNamedFlow webkitGetFlowByName(String name); |
20628 | 20775 |
20629 } | 20776 } |
20630 | 20777 |
20631 interface DocumentEvents extends ElementEvents { | 20778 interface DocumentEvents extends ElementEvents { |
20632 | 20779 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20740 | 20887 |
20741 DocumentFragment.svg(String svg); | 20888 DocumentFragment.svg(String svg); |
20742 | 20889 |
20743 DocumentFragment clone(bool deep); | 20890 DocumentFragment clone(bool deep); |
20744 | 20891 |
20745 | 20892 |
20746 ElementEvents get on(); | 20893 ElementEvents get on(); |
20747 | 20894 |
20748 Element query(String selectors); | 20895 Element query(String selectors); |
20749 | 20896 |
| 20897 NodeList $dom_querySelectorAll(String selectors); |
| 20898 |
20750 } | 20899 } |
20751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20752 // for details. All rights reserved. Use of this source code is governed by a | 20901 // for details. All rights reserved. Use of this source code is governed by a |
20753 // BSD-style license that can be found in the LICENSE file. | 20902 // BSD-style license that can be found in the LICENSE file. |
20754 | 20903 |
20755 // WARNING: Do not edit - generated code. | 20904 // WARNING: Do not edit - generated code. |
20756 | 20905 |
20757 interface DocumentType extends Node { | 20906 interface DocumentType extends Node { |
20758 | 20907 |
20759 final NamedNodeMap entities; | 20908 final NamedNodeMap entities; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20801 // BSD-style license that can be found in the LICENSE file. | 20950 // BSD-style license that can be found in the LICENSE file. |
20802 | 20951 |
20803 // WARNING: Do not edit - generated code. | 20952 // WARNING: Do not edit - generated code. |
20804 | 20953 |
20805 /** | 20954 /** |
20806 * Provides a Map abstraction on top of data-* attributes, similar to the | 20955 * Provides a Map abstraction on top of data-* attributes, similar to the |
20807 * dataSet in the old DOM. | 20956 * dataSet in the old DOM. |
20808 */ | 20957 */ |
20809 class _DataAttributeMap implements Map<String, String> { | 20958 class _DataAttributeMap implements Map<String, String> { |
20810 | 20959 |
20811 final Map<String, String> _attributes; | 20960 final Map<String, String> $dom_attributes; |
20812 | 20961 |
20813 _DataAttributeMap(this._attributes); | 20962 _DataAttributeMap(this.$dom_attributes); |
20814 | 20963 |
20815 // interface Map | 20964 // interface Map |
20816 | 20965 |
20817 // TODO: Use lazy iterator when it is available on Map. | 20966 // TODO: Use lazy iterator when it is available on Map. |
20818 bool containsValue(String value) => getValues().some((v) => v == value); | 20967 bool containsValue(String value) => getValues().some((v) => v == value); |
20819 | 20968 |
20820 bool containsKey(String key) => _attributes.containsKey(_attr(key)); | 20969 bool containsKey(String key) => $dom_attributes.containsKey(_attr(key)); |
20821 | 20970 |
20822 String operator [](String key) => _attributes[_attr(key)]; | 20971 String operator [](String key) => $dom_attributes[_attr(key)]; |
20823 | 20972 |
20824 void operator []=(String key, String value) { | 20973 void operator []=(String key, String value) { |
20825 _attributes[_attr(key)] = value; | 20974 $dom_attributes[_attr(key)] = value; |
20826 } | 20975 } |
20827 | 20976 |
20828 String putIfAbsent(String key, String ifAbsent()) { | 20977 String putIfAbsent(String key, String ifAbsent()) { |
20829 if (!containsKey(key)) { | 20978 if (!containsKey(key)) { |
20830 return this[key] = ifAbsent(); | 20979 return this[key] = ifAbsent(); |
20831 } | 20980 } |
20832 return this[key]; | 20981 return this[key]; |
20833 } | 20982 } |
20834 | 20983 |
20835 String remove(String key) => _attributes.remove(_attr(key)); | 20984 String remove(String key) => $dom_attributes.remove(_attr(key)); |
20836 | 20985 |
20837 void clear() { | 20986 void clear() { |
20838 // Needs to operate on a snapshot since we are mutatiting the collection. | 20987 // Needs to operate on a snapshot since we are mutatiting the collection. |
20839 for (String key in getKeys()) { | 20988 for (String key in getKeys()) { |
20840 remove(key); | 20989 remove(key); |
20841 } | 20990 } |
20842 } | 20991 } |
20843 | 20992 |
20844 void forEach(void f(String key, String value)) { | 20993 void forEach(void f(String key, String value)) { |
20845 _attributes.forEach((String key, String value) { | 20994 $dom_attributes.forEach((String key, String value) { |
20846 if (_matches(key)) { | 20995 if (_matches(key)) { |
20847 f(_strip(key), value); | 20996 f(_strip(key), value); |
20848 } | 20997 } |
20849 }); | 20998 }); |
20850 } | 20999 } |
20851 | 21000 |
20852 Collection<String> getKeys() { | 21001 Collection<String> getKeys() { |
20853 final keys = new List<String>(); | 21002 final keys = new List<String>(); |
20854 _attributes.forEach((String key, String value) { | 21003 $dom_attributes.forEach((String key, String value) { |
20855 if (_matches(key)) { | 21004 if (_matches(key)) { |
20856 keys.add(_strip(key)); | 21005 keys.add(_strip(key)); |
20857 } | 21006 } |
20858 }); | 21007 }); |
20859 return keys; | 21008 return keys; |
20860 } | 21009 } |
20861 | 21010 |
20862 Collection<String> getValues() { | 21011 Collection<String> getValues() { |
20863 final values = new List<String>(); | 21012 final values = new List<String>(); |
20864 _attributes.forEach((String key, String value) { | 21013 $dom_attributes.forEach((String key, String value) { |
20865 if (_matches(key)) { | 21014 if (_matches(key)) { |
20866 values.add(value); | 21015 values.add(value); |
20867 } | 21016 } |
20868 }); | 21017 }); |
20869 return values; | 21018 return values; |
20870 } | 21019 } |
20871 | 21020 |
20872 int get length() => getKeys().length; | 21021 int get length() => getKeys().length; |
20873 | 21022 |
20874 // TODO: Use lazy iterator when it is available on Map. | 21023 // TODO: Use lazy iterator when it is available on Map. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20985 _write(s); | 21134 _write(s); |
20986 } | 21135 } |
20987 | 21136 |
20988 /** | 21137 /** |
20989 * Read the class names from the Element class property, | 21138 * Read the class names from the Element class property, |
20990 * and put them into a set (duplicates are discarded). | 21139 * and put them into a set (duplicates are discarded). |
20991 */ | 21140 */ |
20992 Set<String> _read() { | 21141 Set<String> _read() { |
20993 // TODO(mattsh) simplify this once split can take regex. | 21142 // TODO(mattsh) simplify this once split can take regex. |
20994 Set<String> s = new Set<String>(); | 21143 Set<String> s = new Set<String>(); |
20995 for (String name in _className().split(' ')) { | 21144 for (String name in $dom_className().split(' ')) { |
20996 String trimmed = name.trim(); | 21145 String trimmed = name.trim(); |
20997 if (!trimmed.isEmpty()) { | 21146 if (!trimmed.isEmpty()) { |
20998 s.add(trimmed); | 21147 s.add(trimmed); |
20999 } | 21148 } |
21000 } | 21149 } |
21001 return s; | 21150 return s; |
21002 } | 21151 } |
21003 | 21152 |
21004 /** | 21153 /** |
21005 * Read the class names as a space-separated string. This is meant to be | 21154 * Read the class names as a space-separated string. This is meant to be |
21006 * overridden by subclasses. | 21155 * overridden by subclasses. |
21007 */ | 21156 */ |
21008 String _className() => _element._className; | 21157 String $dom_className() => _element.$dom_className; |
21009 | 21158 |
21010 /** | 21159 /** |
21011 * Join all the elements of a set into one string and write | 21160 * Join all the elements of a set into one string and write |
21012 * back to the element. | 21161 * back to the element. |
21013 */ | 21162 */ |
21014 void _write(Set s) { | 21163 void _write(Set s) { |
21015 _element._className = _formatSet(s); | 21164 _element.$dom_className = _formatSet(s); |
21016 } | 21165 } |
21017 | 21166 |
21018 String _formatSet(Set<String> s) { | 21167 String _formatSet(Set<String> s) { |
21019 // TODO(mattsh) should be able to pass Set to String.joins http:/b/5398605 | 21168 // TODO(mattsh) should be able to pass Set to String.joins http:/b/5398605 |
21020 List list = new List.from(s); | 21169 List list = new List.from(s); |
21021 return Strings.join(list, ' '); | 21170 return Strings.join(list, ' '); |
21022 } | 21171 } |
21023 } | 21172 } |
21024 | 21173 |
21025 interface ElementList extends List<Element> { | 21174 interface ElementList extends List<Element> { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21092 | 21241 |
21093 Element clone(bool deep); | 21242 Element clone(bool deep); |
21094 | 21243 |
21095 Element get parent(); | 21244 Element get parent(); |
21096 | 21245 |
21097 | 21246 |
21098 ElementEvents get on(); | 21247 ElementEvents get on(); |
21099 | 21248 |
21100 static final int ALLOW_KEYBOARD_INPUT = 1; | 21249 static final int ALLOW_KEYBOARD_INPUT = 1; |
21101 | 21250 |
| 21251 final int $dom_childElementCount; |
| 21252 |
| 21253 final HTMLCollection $dom_children; |
| 21254 |
| 21255 String $dom_className; |
| 21256 |
| 21257 final int $dom_clientHeight; |
| 21258 |
| 21259 final int $dom_clientLeft; |
| 21260 |
| 21261 final int $dom_clientTop; |
| 21262 |
| 21263 final int $dom_clientWidth; |
| 21264 |
21102 String contentEditable; | 21265 String contentEditable; |
21103 | 21266 |
21104 String dir; | 21267 String dir; |
21105 | 21268 |
21106 bool draggable; | 21269 bool draggable; |
21107 | 21270 |
| 21271 final Element $dom_firstElementChild; |
| 21272 |
21108 bool hidden; | 21273 bool hidden; |
21109 | 21274 |
21110 String id; | 21275 String id; |
21111 | 21276 |
21112 String innerHTML; | 21277 String innerHTML; |
21113 | 21278 |
21114 final bool isContentEditable; | 21279 final bool isContentEditable; |
21115 | 21280 |
21116 String lang; | 21281 String lang; |
21117 | 21282 |
21118 final Element lastElementChild; | 21283 final Element $dom_lastElementChild; |
21119 | 21284 |
21120 final Element nextElementSibling; | 21285 final Element nextElementSibling; |
21121 | 21286 |
| 21287 final int $dom_offsetHeight; |
| 21288 |
| 21289 final int $dom_offsetLeft; |
| 21290 |
21122 final Element offsetParent; | 21291 final Element offsetParent; |
21123 | 21292 |
| 21293 final int $dom_offsetTop; |
| 21294 |
| 21295 final int $dom_offsetWidth; |
| 21296 |
21124 final String outerHTML; | 21297 final String outerHTML; |
21125 | 21298 |
21126 final Element previousElementSibling; | 21299 final Element previousElementSibling; |
21127 | 21300 |
| 21301 final int $dom_scrollHeight; |
| 21302 |
| 21303 int $dom_scrollLeft; |
| 21304 |
| 21305 int $dom_scrollTop; |
| 21306 |
| 21307 final int $dom_scrollWidth; |
| 21308 |
21128 bool spellcheck; | 21309 bool spellcheck; |
21129 | 21310 |
21130 final CSSStyleDeclaration style; | 21311 final CSSStyleDeclaration style; |
21131 | 21312 |
21132 int tabIndex; | 21313 int tabIndex; |
21133 | 21314 |
21134 final String tagName; | 21315 final String tagName; |
21135 | 21316 |
21136 String title; | 21317 String title; |
21137 | 21318 |
21138 bool translate; | 21319 bool translate; |
21139 | 21320 |
21140 final String webkitRegionOverflow; | 21321 final String webkitRegionOverflow; |
21141 | 21322 |
21142 String webkitdropzone; | 21323 String webkitdropzone; |
21143 | 21324 |
21144 void blur(); | 21325 void blur(); |
21145 | 21326 |
21146 void click(); | 21327 void click(); |
21147 | 21328 |
21148 void focus(); | 21329 void focus(); |
21149 | 21330 |
| 21331 String $dom_getAttribute(String name); |
| 21332 |
| 21333 ClientRect $dom_getBoundingClientRect(); |
| 21334 |
| 21335 ClientRectList $dom_getClientRects(); |
| 21336 |
| 21337 NodeList $dom_getElementsByClassName(String name); |
| 21338 |
| 21339 NodeList $dom_getElementsByTagName(String name); |
| 21340 |
| 21341 bool $dom_hasAttribute(String name); |
| 21342 |
21150 Element insertAdjacentElement(String where, Element element); | 21343 Element insertAdjacentElement(String where, Element element); |
21151 | 21344 |
21152 void insertAdjacentHTML(String where, String html); | 21345 void insertAdjacentHTML(String where, String html); |
21153 | 21346 |
21154 void insertAdjacentText(String where, String text); | 21347 void insertAdjacentText(String where, String text); |
21155 | 21348 |
21156 Element query(String selectors); | 21349 Element query(String selectors); |
21157 | 21350 |
| 21351 NodeList $dom_querySelectorAll(String selectors); |
| 21352 |
| 21353 void $dom_removeAttribute(String name); |
| 21354 |
21158 void scrollByLines(int lines); | 21355 void scrollByLines(int lines); |
21159 | 21356 |
21160 void scrollByPages(int pages); | 21357 void scrollByPages(int pages); |
21161 | 21358 |
21162 void scrollIntoView([bool centerIfNeeded]); | 21359 void scrollIntoView([bool centerIfNeeded]); |
21163 | 21360 |
| 21361 void $dom_setAttribute(String name, String value); |
| 21362 |
21164 bool matchesSelector(String selectors); | 21363 bool matchesSelector(String selectors); |
21165 | 21364 |
21166 void webkitRequestFullScreen(int flags); | 21365 void webkitRequestFullScreen(int flags); |
21167 | 21366 |
21168 void webkitRequestFullscreen(); | 21367 void webkitRequestFullscreen(); |
21169 | 21368 |
21170 } | 21369 } |
21171 | 21370 |
21172 interface ElementEvents extends Events { | 21371 interface ElementEvents extends Events { |
21173 | 21372 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21531 bool returnValue; | 21730 bool returnValue; |
21532 | 21731 |
21533 final EventTarget srcElement; | 21732 final EventTarget srcElement; |
21534 | 21733 |
21535 final EventTarget target; | 21734 final EventTarget target; |
21536 | 21735 |
21537 final int timeStamp; | 21736 final int timeStamp; |
21538 | 21737 |
21539 final String type; | 21738 final String type; |
21540 | 21739 |
| 21740 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
); |
| 21741 |
21541 void preventDefault(); | 21742 void preventDefault(); |
21542 | 21743 |
21543 void stopImmediatePropagation(); | 21744 void stopImmediatePropagation(); |
21544 | 21745 |
21545 void stopPropagation(); | 21746 void stopPropagation(); |
21546 } | 21747 } |
21547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21548 // for details. All rights reserved. Use of this source code is governed by a | 21749 // for details. All rights reserved. Use of this source code is governed by a |
21549 // BSD-style license that can be found in the LICENSE file. | 21750 // BSD-style license that can be found in the LICENSE file. |
21550 | 21751 |
(...skipping 30 matching lines...) Expand all Loading... |
21581 static final int CONNECTING = 0; | 21782 static final int CONNECTING = 0; |
21582 | 21783 |
21583 static final int OPEN = 1; | 21784 static final int OPEN = 1; |
21584 | 21785 |
21585 final String URL; | 21786 final String URL; |
21586 | 21787 |
21587 final int readyState; | 21788 final int readyState; |
21588 | 21789 |
21589 final String url; | 21790 final String url; |
21590 | 21791 |
| 21792 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 21793 |
21591 void close(); | 21794 void close(); |
| 21795 |
| 21796 bool $dom_dispatchEvent(Event evt); |
| 21797 |
| 21798 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
21592 } | 21799 } |
21593 | 21800 |
21594 interface EventSourceEvents extends Events { | 21801 interface EventSourceEvents extends Events { |
21595 | 21802 |
21596 EventListenerList get error(); | 21803 EventListenerList get error(); |
21597 | 21804 |
21598 EventListenerList get message(); | 21805 EventListenerList get message(); |
21599 | 21806 |
21600 EventListenerList get open(); | 21807 EventListenerList get open(); |
21601 } | 21808 } |
(...skipping 12 matching lines...) Expand all Loading... |
21614 } | 21821 } |
21615 | 21822 |
21616 interface Events { | 21823 interface Events { |
21617 EventListenerList operator [](String type); | 21824 EventListenerList operator [](String type); |
21618 } | 21825 } |
21619 | 21826 |
21620 interface EventTarget { | 21827 interface EventTarget { |
21621 | 21828 |
21622 final Events on; | 21829 final Events on; |
21623 | 21830 |
| 21831 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 21832 |
| 21833 bool $dom_dispatchEvent(Event event); |
| 21834 |
| 21835 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 21836 |
21624 } | 21837 } |
21625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21626 // for details. All rights reserved. Use of this source code is governed by a | 21839 // for details. All rights reserved. Use of this source code is governed by a |
21627 // BSD-style license that can be found in the LICENSE file. | 21840 // BSD-style license that can be found in the LICENSE file. |
21628 | 21841 |
21629 // WARNING: Do not edit - generated code. | 21842 // WARNING: Do not edit - generated code. |
21630 | 21843 |
21631 interface FieldSetElement extends Element { | 21844 interface FieldSetElement extends Element { |
21632 | 21845 |
21633 final FormElement form; | 21846 final FormElement form; |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23542 // for details. All rights reserved. Use of this source code is governed by a | 23755 // for details. All rights reserved. Use of this source code is governed by a |
23543 // BSD-style license that can be found in the LICENSE file. | 23756 // BSD-style license that can be found in the LICENSE file. |
23544 | 23757 |
23545 // WARNING: Do not edit - generated code. | 23758 // WARNING: Do not edit - generated code. |
23546 | 23759 |
23547 interface MessagePort extends EventTarget { | 23760 interface MessagePort extends EventTarget { |
23548 | 23761 |
23549 MessagePortEvents get on(); | 23762 MessagePortEvents get on(); |
23550 | 23763 |
| 23764 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 23765 |
23551 void close(); | 23766 void close(); |
23552 | 23767 |
| 23768 bool $dom_dispatchEvent(Event evt); |
| 23769 |
23553 void postMessage(String message, [List messagePorts]); | 23770 void postMessage(String message, [List messagePorts]); |
23554 | 23771 |
| 23772 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 23773 |
23555 void start(); | 23774 void start(); |
23556 | 23775 |
23557 void webkitPostMessage(String message, [List transfer]); | 23776 void webkitPostMessage(String message, [List transfer]); |
23558 } | 23777 } |
23559 | 23778 |
23560 interface MessagePortEvents extends Events { | 23779 interface MessagePortEvents extends Events { |
23561 | 23780 |
23562 EventListenerList get message(); | 23781 EventListenerList get message(); |
23563 } | 23782 } |
23564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23670 | 23889 |
23671 final int screenY; | 23890 final int screenY; |
23672 | 23891 |
23673 final bool shiftKey; | 23892 final bool shiftKey; |
23674 | 23893 |
23675 final Node toElement; | 23894 final Node toElement; |
23676 | 23895 |
23677 final int x; | 23896 final int x; |
23678 | 23897 |
23679 final int y; | 23898 final int y; |
| 23899 |
| 23900 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); |
23680 } | 23901 } |
23681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23902 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23682 // for details. All rights reserved. Use of this source code is governed by a | 23903 // for details. All rights reserved. Use of this source code is governed by a |
23683 // BSD-style license that can be found in the LICENSE file. | 23904 // BSD-style license that can be found in the LICENSE file. |
23684 | 23905 |
23685 // WARNING: Do not edit - generated code. | 23906 // WARNING: Do not edit - generated code. |
23686 | 23907 |
23687 interface MutationEvent extends Event { | 23908 interface MutationEvent extends Event { |
23688 | 23909 |
23689 static final int ADDITION = 2; | 23910 static final int ADDITION = 2; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23845 static final int ENTITY_NODE = 6; | 24066 static final int ENTITY_NODE = 6; |
23846 | 24067 |
23847 static final int ENTITY_REFERENCE_NODE = 5; | 24068 static final int ENTITY_REFERENCE_NODE = 5; |
23848 | 24069 |
23849 static final int NOTATION_NODE = 12; | 24070 static final int NOTATION_NODE = 12; |
23850 | 24071 |
23851 static final int PROCESSING_INSTRUCTION_NODE = 7; | 24072 static final int PROCESSING_INSTRUCTION_NODE = 7; |
23852 | 24073 |
23853 static final int TEXT_NODE = 3; | 24074 static final int TEXT_NODE = 3; |
23854 | 24075 |
| 24076 final NamedNodeMap $dom_attributes; |
| 24077 |
| 24078 final NodeList $dom_childNodes; |
| 24079 |
| 24080 final Node $dom_firstChild; |
| 24081 |
| 24082 final Node $dom_lastChild; |
| 24083 |
23855 final Node nextNode; | 24084 final Node nextNode; |
23856 | 24085 |
23857 final Document document; | 24086 final Document document; |
23858 | 24087 |
23859 final Node parent; | 24088 final Node parent; |
23860 | 24089 |
23861 final Node previousNode; | 24090 final Node previousNode; |
23862 | 24091 |
23863 String text; | 24092 String text; |
23864 | 24093 |
| 24094 Node $dom_appendChild(Node newChild); |
| 24095 |
23865 Node clone(bool deep); | 24096 Node clone(bool deep); |
23866 | 24097 |
23867 bool contains(Node other); | 24098 bool contains(Node other); |
23868 | 24099 |
23869 bool hasChildNodes(); | 24100 bool hasChildNodes(); |
23870 | 24101 |
23871 Node insertBefore(Node newChild, Node refChild); | 24102 Node insertBefore(Node newChild, Node refChild); |
23872 | 24103 |
| 24104 Node $dom_removeChild(Node oldChild); |
| 24105 |
| 24106 Node $dom_replaceChild(Node newChild, Node oldChild); |
| 24107 |
23873 } | 24108 } |
23874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23875 // for details. All rights reserved. Use of this source code is governed by a | 24110 // for details. All rights reserved. Use of this source code is governed by a |
23876 // BSD-style license that can be found in the LICENSE file. | 24111 // BSD-style license that can be found in the LICENSE file. |
23877 | 24112 |
23878 // WARNING: Do not edit - generated code. | 24113 // WARNING: Do not edit - generated code. |
23879 | 24114 |
23880 interface NodeFilter { | 24115 interface NodeFilter { |
23881 | 24116 |
23882 static final int FILTER_ACCEPT = 1; | 24117 static final int FILTER_ACCEPT = 1; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23964 // WARNING: Do not edit - generated code. | 24199 // WARNING: Do not edit - generated code. |
23965 | 24200 |
23966 interface NodeSelector { | 24201 interface NodeSelector { |
23967 | 24202 |
23968 // TODO(nweiz): add this back once DocumentFragment is ported. | 24203 // TODO(nweiz): add this back once DocumentFragment is ported. |
23969 // ElementList queryAll(String selectors); | 24204 // ElementList queryAll(String selectors); |
23970 | 24205 |
23971 | 24206 |
23972 Element query(String selectors); | 24207 Element query(String selectors); |
23973 | 24208 |
| 24209 NodeList $dom_querySelectorAll(String selectors); |
| 24210 |
23974 } | 24211 } |
23975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23976 // for details. All rights reserved. Use of this source code is governed by a | 24213 // for details. All rights reserved. Use of this source code is governed by a |
23977 // BSD-style license that can be found in the LICENSE file. | 24214 // BSD-style license that can be found in the LICENSE file. |
23978 | 24215 |
23979 // WARNING: Do not edit - generated code. | 24216 // WARNING: Do not edit - generated code. |
23980 | 24217 |
23981 interface Notation extends Node { | 24218 interface Notation extends Node { |
23982 | 24219 |
23983 final String publicId; | 24220 final String publicId; |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25251 } | 25488 } |
25252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
25253 // for details. All rights reserved. Use of this source code is governed by a | 25490 // for details. All rights reserved. Use of this source code is governed by a |
25254 // BSD-style license that can be found in the LICENSE file. | 25491 // BSD-style license that can be found in the LICENSE file. |
25255 | 25492 |
25256 // WARNING: Do not edit - generated code. | 25493 // WARNING: Do not edit - generated code. |
25257 | 25494 |
25258 interface SVGDocument extends Document { | 25495 interface SVGDocument extends Document { |
25259 | 25496 |
25260 final SVGSVGElement rootElement; | 25497 final SVGSVGElement rootElement; |
| 25498 |
| 25499 Event $dom_createEvent(String eventType); |
25261 } | 25500 } |
25262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
25263 // for details. All rights reserved. Use of this source code is governed by a | 25502 // for details. All rights reserved. Use of this source code is governed by a |
25264 // BSD-style license that can be found in the LICENSE file. | 25503 // BSD-style license that can be found in the LICENSE file. |
25265 | 25504 |
25266 interface SVGElement extends Element default _SVGElementFactoryProvider { | 25505 interface SVGElement extends Element default _SVGElementFactoryProvider { |
25267 | 25506 |
25268 SVGElement.tag(String tag); | 25507 SVGElement.tag(String tag); |
25269 SVGElement.svg(String svg); | 25508 SVGElement.svg(String svg); |
25270 | 25509 |
(...skipping 27 matching lines...) Expand all Loading... |
25298 | 25537 |
25299 final SVGElementInstance firstChild; | 25538 final SVGElementInstance firstChild; |
25300 | 25539 |
25301 final SVGElementInstance lastChild; | 25540 final SVGElementInstance lastChild; |
25302 | 25541 |
25303 final SVGElementInstance nextSibling; | 25542 final SVGElementInstance nextSibling; |
25304 | 25543 |
25305 final SVGElementInstance parentNode; | 25544 final SVGElementInstance parentNode; |
25306 | 25545 |
25307 final SVGElementInstance previousSibling; | 25546 final SVGElementInstance previousSibling; |
| 25547 |
| 25548 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 25549 |
| 25550 bool $dom_dispatchEvent(Event event); |
| 25551 |
| 25552 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
25308 } | 25553 } |
25309 | 25554 |
25310 interface SVGElementInstanceEvents extends Events { | 25555 interface SVGElementInstanceEvents extends Events { |
25311 | 25556 |
25312 EventListenerList get abort(); | 25557 EventListenerList get abort(); |
25313 | 25558 |
25314 EventListenerList get beforeCopy(); | 25559 EventListenerList get beforeCopy(); |
25315 | 25560 |
25316 EventListenerList get beforeCut(); | 25561 EventListenerList get beforeCut(); |
25317 | 25562 |
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
27150 String replaceItem(String item, int index); | 27395 String replaceItem(String item, int index); |
27151 } | 27396 } |
27152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
27153 // for details. All rights reserved. Use of this source code is governed by a | 27398 // for details. All rights reserved. Use of this source code is governed by a |
27154 // BSD-style license that can be found in the LICENSE file. | 27399 // BSD-style license that can be found in the LICENSE file. |
27155 | 27400 |
27156 // WARNING: Do not edit - generated code. | 27401 // WARNING: Do not edit - generated code. |
27157 | 27402 |
27158 interface SVGStylable { | 27403 interface SVGStylable { |
27159 | 27404 |
| 27405 final SVGAnimatedString $dom_svgClassName; |
| 27406 |
27160 final CSSStyleDeclaration style; | 27407 final CSSStyleDeclaration style; |
27161 | 27408 |
27162 CSSValue getPresentationAttribute(String name); | 27409 CSSValue getPresentationAttribute(String name); |
27163 } | 27410 } |
27164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
27165 // for details. All rights reserved. Use of this source code is governed by a | 27412 // for details. All rights reserved. Use of this source code is governed by a |
27166 // BSD-style license that can be found in the LICENSE file. | 27413 // BSD-style license that can be found in the LICENSE file. |
27167 | 27414 |
27168 // WARNING: Do not edit - generated code. | 27415 // WARNING: Do not edit - generated code. |
27169 | 27416 |
(...skipping 2778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29948 final int bufferedAmount; | 30195 final int bufferedAmount; |
29949 | 30196 |
29950 final String extensions; | 30197 final String extensions; |
29951 | 30198 |
29952 final String protocol; | 30199 final String protocol; |
29953 | 30200 |
29954 final int readyState; | 30201 final int readyState; |
29955 | 30202 |
29956 final String url; | 30203 final String url; |
29957 | 30204 |
| 30205 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 30206 |
29958 void close([int code, String reason]); | 30207 void close([int code, String reason]); |
29959 | 30208 |
| 30209 bool $dom_dispatchEvent(Event evt); |
| 30210 |
| 30211 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 30212 |
29960 bool send(String data); | 30213 bool send(String data); |
29961 } | 30214 } |
29962 | 30215 |
29963 interface WebSocketEvents extends Events { | 30216 interface WebSocketEvents extends Events { |
29964 | 30217 |
29965 EventListenerList get close(); | 30218 EventListenerList get close(); |
29966 | 30219 |
29967 EventListenerList get error(); | 30220 EventListenerList get error(); |
29968 | 30221 |
29969 EventListenerList get message(); | 30222 EventListenerList get message(); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30127 final Window top; | 30380 final Window top; |
30128 | 30381 |
30129 final IDBFactory webkitIndexedDB; | 30382 final IDBFactory webkitIndexedDB; |
30130 | 30383 |
30131 final NotificationCenter webkitNotifications; | 30384 final NotificationCenter webkitNotifications; |
30132 | 30385 |
30133 final StorageInfo webkitStorageInfo; | 30386 final StorageInfo webkitStorageInfo; |
30134 | 30387 |
30135 final Window window; | 30388 final Window window; |
30136 | 30389 |
| 30390 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 30391 |
30137 void alert(String message); | 30392 void alert(String message); |
30138 | 30393 |
30139 String atob(String string); | 30394 String atob(String string); |
30140 | 30395 |
30141 void blur(); | 30396 void blur(); |
30142 | 30397 |
30143 String btoa(String string); | 30398 String btoa(String string); |
30144 | 30399 |
30145 void captureEvents(); | 30400 void captureEvents(); |
30146 | 30401 |
30147 void clearInterval(int handle); | 30402 void clearInterval(int handle); |
30148 | 30403 |
30149 void clearTimeout(int handle); | 30404 void clearTimeout(int handle); |
30150 | 30405 |
30151 void close(); | 30406 void close(); |
30152 | 30407 |
30153 bool confirm(String message); | 30408 bool confirm(String message); |
30154 | 30409 |
| 30410 bool $dom_dispatchEvent(Event evt); |
| 30411 |
30155 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); | 30412 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); |
30156 | 30413 |
30157 void focus(); | 30414 void focus(); |
30158 | 30415 |
| 30416 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t); |
| 30417 |
30159 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); | 30418 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); |
30160 | 30419 |
30161 DOMSelection getSelection(); | 30420 DOMSelection getSelection(); |
30162 | 30421 |
30163 MediaQueryList matchMedia(String query); | 30422 MediaQueryList matchMedia(String query); |
30164 | 30423 |
30165 void moveBy(num x, num y); | 30424 void moveBy(num x, num y); |
30166 | 30425 |
30167 void moveTo(num x, num y); | 30426 void moveTo(num x, num y); |
30168 | 30427 |
30169 Window open(String url, String name, [String options]); | 30428 Window open(String url, String name, [String options]); |
30170 | 30429 |
30171 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | 30430 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); |
30172 | 30431 |
30173 void postMessage(Dynamic message, String targetOrigin, [List messagePorts]); | 30432 void postMessage(Dynamic message, String targetOrigin, [List messagePorts]); |
30174 | 30433 |
30175 void print(); | 30434 void print(); |
30176 | 30435 |
30177 String prompt(String message, String defaultValue); | 30436 String prompt(String message, String defaultValue); |
30178 | 30437 |
30179 void releaseEvents(); | 30438 void releaseEvents(); |
30180 | 30439 |
| 30440 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 30441 |
30181 void resizeBy(num x, num y); | 30442 void resizeBy(num x, num y); |
30182 | 30443 |
30183 void resizeTo(num width, num height); | 30444 void resizeTo(num width, num height); |
30184 | 30445 |
30185 void scroll(int x, int y); | 30446 void scroll(int x, int y); |
30186 | 30447 |
30187 void scrollBy(int x, int y); | 30448 void scrollBy(int x, int y); |
30188 | 30449 |
30189 void scrollTo(int x, int y); | 30450 void scrollTo(int x, int y); |
30190 | 30451 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30527 final int status; | 30788 final int status; |
30528 | 30789 |
30529 final String statusText; | 30790 final String statusText; |
30530 | 30791 |
30531 final XMLHttpRequestUpload upload; | 30792 final XMLHttpRequestUpload upload; |
30532 | 30793 |
30533 bool withCredentials; | 30794 bool withCredentials; |
30534 | 30795 |
30535 void abort(); | 30796 void abort(); |
30536 | 30797 |
| 30798 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 30799 |
| 30800 bool $dom_dispatchEvent(Event evt); |
| 30801 |
30537 String getAllResponseHeaders(); | 30802 String getAllResponseHeaders(); |
30538 | 30803 |
30539 String getResponseHeader(String header); | 30804 String getResponseHeader(String header); |
30540 | 30805 |
30541 void open(String method, String url, [bool async, String user, String password
]); | 30806 void open(String method, String url, [bool async, String user, String password
]); |
30542 | 30807 |
30543 void overrideMimeType(String override); | 30808 void overrideMimeType(String override); |
30544 | 30809 |
| 30810 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 30811 |
30545 void send([var data]); | 30812 void send([var data]); |
30546 | 30813 |
30547 void setRequestHeader(String header, String value); | 30814 void setRequestHeader(String header, String value); |
30548 } | 30815 } |
30549 | 30816 |
30550 interface XMLHttpRequestEvents extends Events { | 30817 interface XMLHttpRequestEvents extends Events { |
30551 | 30818 |
30552 EventListenerList get abort(); | 30819 EventListenerList get abort(); |
30553 | 30820 |
30554 EventListenerList get error(); | 30821 EventListenerList get error(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30597 } | 30864 } |
30598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 30865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
30599 // for details. All rights reserved. Use of this source code is governed by a | 30866 // for details. All rights reserved. Use of this source code is governed by a |
30600 // BSD-style license that can be found in the LICENSE file. | 30867 // BSD-style license that can be found in the LICENSE file. |
30601 | 30868 |
30602 // WARNING: Do not edit - generated code. | 30869 // WARNING: Do not edit - generated code. |
30603 | 30870 |
30604 interface XMLHttpRequestUpload extends EventTarget { | 30871 interface XMLHttpRequestUpload extends EventTarget { |
30605 | 30872 |
30606 XMLHttpRequestUploadEvents get on(); | 30873 XMLHttpRequestUploadEvents get on(); |
| 30874 |
| 30875 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 30876 |
| 30877 bool $dom_dispatchEvent(Event evt); |
| 30878 |
| 30879 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
30607 } | 30880 } |
30608 | 30881 |
30609 interface XMLHttpRequestUploadEvents extends Events { | 30882 interface XMLHttpRequestUploadEvents extends Events { |
30610 | 30883 |
30611 EventListenerList get abort(); | 30884 EventListenerList get abort(); |
30612 | 30885 |
30613 EventListenerList get error(); | 30886 EventListenerList get error(); |
30614 | 30887 |
30615 EventListenerList get load(); | 30888 EventListenerList get load(); |
30616 | 30889 |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
31530 for (TimeoutHandler handler in readyMeasurementFrameCallbacks) { | 31803 for (TimeoutHandler handler in readyMeasurementFrameCallbacks) { |
31531 // TODO(jacobr): wrap each call to a handler in a try-catch block. | 31804 // TODO(jacobr): wrap each call to a handler in a try-catch block. |
31532 handler(); | 31805 handler(); |
31533 } | 31806 } |
31534 } | 31807 } |
31535 } | 31808 } |
31536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 31809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
31537 // for details. All rights reserved. Use of this source code is governed by a | 31810 // for details. All rights reserved. Use of this source code is governed by a |
31538 // BSD-style license that can be found in the LICENSE file. | 31811 // BSD-style license that can be found in the LICENSE file. |
31539 | 31812 |
31540 class _TextFactoryProvider { | |
31541 | |
31542 factory Text(String data) => _document._createTextNode(data); | |
31543 } | |
31544 | |
31545 class _EventFactoryProvider { | 31813 class _EventFactoryProvider { |
31546 factory Event(String type, [bool canBubble = true, | 31814 factory Event(String type, [bool canBubble = true, |
31547 bool cancelable = true]) { | 31815 bool cancelable = true]) { |
31548 final _EventImpl e = _document._createEvent("Event"); | 31816 final _EventImpl e = _document.$dom_createEvent("Event"); |
31549 e._initEvent(type, canBubble, cancelable); | 31817 e.$dom_initEvent(type, canBubble, cancelable); |
31550 return e; | 31818 return e; |
31551 } | 31819 } |
31552 } | 31820 } |
31553 | 31821 |
31554 class _MouseEventFactoryProvider { | 31822 class _MouseEventFactoryProvider { |
31555 factory MouseEvent(String type, Window view, int detail, | 31823 factory MouseEvent(String type, Window view, int detail, |
31556 int screenX, int screenY, int clientX, int clientY, int button, | 31824 int screenX, int screenY, int clientX, int clientY, int button, |
31557 [bool canBubble = true, bool cancelable = true, bool ctrlKey = false, | 31825 [bool canBubble = true, bool cancelable = true, bool ctrlKey = false, |
31558 bool altKey = false, bool shiftKey = false, bool metaKey = false, | 31826 bool altKey = false, bool shiftKey = false, bool metaKey = false, |
31559 EventTarget relatedTarget = null]) { | 31827 EventTarget relatedTarget = null]) { |
31560 final e = _document._createEvent("MouseEvent"); | 31828 final e = _document.$dom_createEvent("MouseEvent"); |
31561 e._initMouseEvent(type, canBubble, cancelable, view, detail, | 31829 e.$dom_initMouseEvent(type, canBubble, cancelable, view, detail, |
31562 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, | 31830 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, |
31563 button, relatedTarget); | 31831 button, relatedTarget); |
31564 return e; | 31832 return e; |
31565 } | 31833 } |
31566 } | 31834 } |
31567 | 31835 |
31568 class _CSSStyleDeclarationFactoryProvider { | 31836 class _CSSStyleDeclarationFactoryProvider { |
31569 factory CSSStyleDeclaration.css(String css) { | 31837 factory CSSStyleDeclaration.css(String css) { |
31570 final style = new Element.tag('div').style; | 31838 final style = new Element.tag('div').style; |
31571 style.cssText = css; | 31839 style.cssText = css; |
31572 return style; | 31840 return style; |
31573 } | 31841 } |
31574 | 31842 |
31575 factory CSSStyleDeclaration() { | 31843 factory CSSStyleDeclaration() { |
31576 return new CSSStyleDeclaration.css(''); | 31844 return new CSSStyleDeclaration.css(''); |
31577 } | 31845 } |
31578 } | 31846 } |
31579 | 31847 |
31580 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); | |
31581 class _ElementFactoryProvider { | |
31582 static final _CUSTOM_PARENT_TAG_MAP = const { | |
31583 'body' : 'html', | |
31584 'head' : 'html', | |
31585 'caption' : 'table', | |
31586 'td': 'tr', | |
31587 'colgroup': 'table', | |
31588 'col' : 'colgroup', | |
31589 'tr' : 'tbody', | |
31590 'tbody' : 'table', | |
31591 'tfoot' : 'table', | |
31592 'thead' : 'table', | |
31593 'track' : 'audio', | |
31594 }; | |
31595 | |
31596 /** @domName Document.createElement */ | |
31597 factory Element.html(String html) { | |
31598 // TODO(jacobr): this method can be made more robust and performant. | |
31599 // 1) Cache the dummy parent elements required to use innerHTML rather than | |
31600 // creating them every call. | |
31601 // 2) Verify that the html does not contain leading or trailing text nodes. | |
31602 // 3) Verify that the html does not contain both <head> and <body> tags. | |
31603 // 4) Detatch the created element from its dummy parent. | |
31604 String parentTag = 'div'; | |
31605 String tag; | |
31606 final match = _START_TAG_REGEXP.firstMatch(html); | |
31607 if (match !== null) { | |
31608 tag = match.group(1).toLowerCase(); | |
31609 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { | |
31610 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; | |
31611 } | |
31612 } | |
31613 final _ElementImpl temp = new Element.tag(parentTag); | |
31614 temp.innerHTML = html; | |
31615 | |
31616 Element element; | |
31617 if (temp.elements.length == 1) { | |
31618 element = temp.elements.first; | |
31619 } else if (parentTag == 'html' && temp.elements.length == 2) { | |
31620 // Work around for edge case in WebKit and possibly other browsers where | |
31621 // both body and head elements are created even though the inner html | |
31622 // only contains a head or body element. | |
31623 element = temp.elements[tag == 'head' ? 0 : 1]; | |
31624 } else { | |
31625 throw new IllegalArgumentException('HTML had ${temp.elements.length} ' + | |
31626 'top level elements but 1 expected'); | |
31627 } | |
31628 element.remove(); | |
31629 return element; | |
31630 } | |
31631 | |
31632 /** @domName Document.createElement */ | |
31633 factory Element.tag(String tag) => _document._createElement(tag); | |
31634 } | |
31635 | |
31636 class _DocumentFragmentFactoryProvider { | 31848 class _DocumentFragmentFactoryProvider { |
31637 /** @domName Document.createDocumentFragment */ | 31849 /** @domName Document.createDocumentFragment */ |
31638 factory DocumentFragment() => document.createDocumentFragment(); | 31850 factory DocumentFragment() => document.createDocumentFragment(); |
31639 | 31851 |
31640 factory DocumentFragment.html(String html) { | 31852 factory DocumentFragment.html(String html) { |
31641 final fragment = new DocumentFragment(); | 31853 final fragment = new DocumentFragment(); |
31642 fragment.innerHTML = html; | 31854 fragment.innerHTML = html; |
31643 return fragment; | 31855 return fragment; |
31644 } | 31856 } |
31645 | 31857 |
(...skipping 17 matching lines...) Expand all Loading... |
31663 // Copy list first since we don't want liveness during iteration. | 31875 // Copy list first since we don't want liveness during iteration. |
31664 final List nodes = new List.from(e.nodes); | 31876 final List nodes = new List.from(e.nodes); |
31665 fragment.nodes.addAll(nodes); | 31877 fragment.nodes.addAll(nodes); |
31666 return fragment; | 31878 return fragment; |
31667 } | 31879 } |
31668 } | 31880 } |
31669 | 31881 |
31670 class _SVGElementFactoryProvider { | 31882 class _SVGElementFactoryProvider { |
31671 factory SVGElement.tag(String tag) { | 31883 factory SVGElement.tag(String tag) { |
31672 final Element temp = | 31884 final Element temp = |
31673 _document._createElementNS("http://www.w3.org/2000/svg", tag); | 31885 _document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); |
31674 return temp; | 31886 return temp; |
31675 } | 31887 } |
31676 | 31888 |
31677 factory SVGElement.svg(String svg) { | 31889 factory SVGElement.svg(String svg) { |
31678 Element parentTag; | 31890 Element parentTag; |
31679 final match = _START_TAG_REGEXP.firstMatch(svg); | 31891 final match = _START_TAG_REGEXP.firstMatch(svg); |
31680 if (match != null && match.group(1).toLowerCase() == 'svg') { | 31892 if (match != null && match.group(1).toLowerCase() == 'svg') { |
31681 parentTag = new Element.tag('div'); | 31893 parentTag = new Element.tag('div'); |
31682 } else { | 31894 } else { |
31683 parentTag = new SVGSVGElement(); | 31895 parentTag = new SVGSVGElement(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
31764 | 31976 |
31765 class _PointFactoryProvider { | 31977 class _PointFactoryProvider { |
31766 | 31978 |
31767 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; | 31979 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; |
31768 } | 31980 } |
31769 | 31981 |
31770 class _WebSocketFactoryProvider { | 31982 class _WebSocketFactoryProvider { |
31771 | 31983 |
31772 factory WebSocket(String url) native '''return new WebSocket(url);'''; | 31984 factory WebSocket(String url) native '''return new WebSocket(url);'''; |
31773 } | 31985 } |
31774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 31986 |
| 31987 class _TextFactoryProvider { |
| 31988 factory Text(String data) native "return document.createTextNode(data);"; |
| 31989 }// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
31775 // for details. All rights reserved. Use of this source code is governed by a | 31990 // for details. All rights reserved. Use of this source code is governed by a |
31776 // BSD-style license that can be found in the LICENSE file. | 31991 // BSD-style license that can be found in the LICENSE file. |
31777 | 31992 |
31778 // TODO(rnystrom): add a way to supress public classes from DartDoc output. | 31993 // TODO(rnystrom): add a way to supress public classes from DartDoc output. |
| 31994 // TODO(jacobr): we can remove this class now that we are using the $dom_ |
| 31995 // convention for deprecated methods rather than truly private methods. |
31779 /** | 31996 /** |
31780 * This class is intended for testing purposes only. | 31997 * This class is intended for testing purposes only. |
31781 */ | 31998 */ |
31782 class Testing { | 31999 class Testing { |
31783 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { | 32000 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { |
31784 final _EventTargetImpl targetImpl = target; | 32001 final _EventTargetImpl targetImpl = target; |
31785 targetImpl._addEventListener(type, listener, useCapture); | 32002 targetImpl.$dom_addEventListener(type, listener, useCapture); |
31786 } | 32003 } |
31787 static void removeEventListener(EventTarget target, String type, EventListener
listener, bool useCapture) { | 32004 static void removeEventListener(EventTarget target, String type, EventListener
listener, bool useCapture) { |
31788 final _EventTargetImpl targetImpl = target; | 32005 final _EventTargetImpl targetImpl = target; |
31789 targetImpl._removeEventListener(type, listener, useCapture); | 32006 targetImpl.$dom_removeEventListener(type, listener, useCapture); |
31790 } | 32007 } |
31791 | 32008 |
31792 }// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 32009 }// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
31793 // for details. All rights reserved. Use of this source code is governed by a | 32010 // for details. All rights reserved. Use of this source code is governed by a |
31794 // BSD-style license that can be found in the LICENSE file. | 32011 // BSD-style license that can be found in the LICENSE file. |
31795 | 32012 |
31796 /** | 32013 /** |
31797 * Utils for device detection. | 32014 * Utils for device detection. |
31798 */ | 32015 */ |
31799 class _Device { | 32016 class _Device { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
31903 if (length < 0) throw new IllegalArgumentException('length'); | 32120 if (length < 0) throw new IllegalArgumentException('length'); |
31904 if (start < 0) throw new IndexOutOfRangeException(start); | 32121 if (start < 0) throw new IndexOutOfRangeException(start); |
31905 int end = start + length; | 32122 int end = start + length; |
31906 if (end > a.length) throw new IndexOutOfRangeException(end); | 32123 if (end > a.length) throw new IndexOutOfRangeException(end); |
31907 for (int i = start; i < end; i++) { | 32124 for (int i = start; i < end; i++) { |
31908 accumulator.add(a[i]); | 32125 accumulator.add(a[i]); |
31909 } | 32126 } |
31910 return accumulator; | 32127 return accumulator; |
31911 } | 32128 } |
31912 } | 32129 } |
OLD | NEW |