| OLD | NEW |
| 1 #library('html'); | 1 #library('html'); |
| 2 | 2 |
| 3 #import('dart:dom', prefix:'dom'); | 3 #import('dart:dom', prefix:'dom'); |
| 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 5 // for details. All rights reserved. Use of this source code is governed by a | 5 // for details. All rights reserved. Use of this source code is governed by a |
| 6 // BSD-style license that can be found in the LICENSE file. | 6 // BSD-style license that can be found in the LICENSE file. |
| 7 | 7 |
| 8 // DO NOT EDIT | 8 // DO NOT EDIT |
| 9 // Auto-generated Dart HTML library. | 9 // Auto-generated Dart HTML library. |
| 10 | 10 |
| (...skipping 16914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16925 | 16925 |
| 16926 interface AbstractWorker extends EventTarget { | 16926 interface AbstractWorker extends EventTarget { |
| 16927 AbstractWorkerEvents get on(); | 16927 AbstractWorkerEvents get on(); |
| 16928 } | 16928 } |
| 16929 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 16929 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 16930 // for details. All rights reserved. Use of this source code is governed by a | 16930 // for details. All rights reserved. Use of this source code is governed by a |
| 16931 // BSD-style license that can be found in the LICENSE file. | 16931 // BSD-style license that can be found in the LICENSE file. |
| 16932 | 16932 |
| 16933 class AbstractWorkerEventsImplementation extends EventsImplementation implements
AbstractWorkerEvents { | 16933 class AbstractWorkerEventsImplementation extends EventsImplementation implements
AbstractWorkerEvents { |
| 16934 AbstractWorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | 16934 AbstractWorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr); |
| 16935 | 16935 |
| 16936 EventListenerList get error() => _get('error'); | 16936 EventListenerList get error() => _get('error'); |
| 16937 } | 16937 } |
| 16938 | 16938 |
| 16939 class AbstractWorkerWrappingImplementation extends EventTargetWrappingImplementa
tion implements AbstractWorker { | 16939 class AbstractWorkerWrappingImplementation extends EventTargetWrappingImplementa
tion implements AbstractWorker { |
| 16940 AbstractWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr); | 16940 AbstractWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr); |
| 16941 | 16941 |
| 16942 AbstractWorkerEvents get on() { | 16942 AbstractWorkerEvents get on() { |
| 16943 if (_on === null) { | 16943 if (_on === null) {» |
| 16944 _on = new AbstractWorkerEventsImplementation._wrap(_ptr); | 16944 _on = new AbstractWorkerEventsImplementation._wrap(_ptr); |
| 16945 } | 16945 } |
| 16946 return _on; | 16946 return _on; |
| 16947 } | 16947 } |
| 16948 } | 16948 } |
| 16949 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 16949 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 16950 // for details. All rights reserved. Use of this source code is governed by a | 16950 // for details. All rights reserved. Use of this source code is governed by a |
| 16951 // BSD-style license that can be found in the LICENSE file. | 16951 // BSD-style license that can be found in the LICENSE file. |
| 16952 | 16952 |
| 16953 interface AnimationEvent extends Event factory AnimationEventWrappingImplementat
ion { | 16953 interface AnimationEvent extends Event factory AnimationEventWrappingImplementat
ion { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17028 EventListenerList get message(); | 17028 EventListenerList get message(); |
| 17029 EventListenerList get offline(); | 17029 EventListenerList get offline(); |
| 17030 EventListenerList get online(); | 17030 EventListenerList get online(); |
| 17031 EventListenerList get orientationChange(); | 17031 EventListenerList get orientationChange(); |
| 17032 EventListenerList get popState(); | 17032 EventListenerList get popState(); |
| 17033 EventListenerList get resize(); | 17033 EventListenerList get resize(); |
| 17034 EventListenerList get storage(); | 17034 EventListenerList get storage(); |
| 17035 EventListenerList get unLoad(); | 17035 EventListenerList get unLoad(); |
| 17036 } | 17036 } |
| 17037 | 17037 |
| 17038 interface BodyElement extends Element { | 17038 interface BodyElement extends Element { |
| 17039 BodyElementEvents get on(); | 17039 BodyElementEvents get on(); |
| 17040 } | 17040 } |
| 17041 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 17041 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17042 // for details. All rights reserved. Use of this source code is governed by a | 17042 // for details. All rights reserved. Use of this source code is governed by a |
| 17043 // BSD-style license that can be found in the LICENSE file. | 17043 // BSD-style license that can be found in the LICENSE file. |
| 17044 | 17044 |
| 17045 class BodyElementEventsImplementation | 17045 class BodyElementEventsImplementation |
| 17046 extends ElementEventsImplementation implements BodyElementEvents { | 17046 extends ElementEventsImplementation implements BodyElementEvents { |
| 17047 | 17047 |
| 17048 BodyElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | 17048 BodyElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); |
| (...skipping 5238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22287 | 22287 |
| 22288 DocumentEvents get on(); | 22288 DocumentEvents get on(); |
| 22289 | 22289 |
| 22290 Future<ElementRect> get rect(); | 22290 Future<ElementRect> get rect(); |
| 22291 } | 22291 } |
| 22292 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 22292 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22293 // for details. All rights reserved. Use of this source code is governed by a | 22293 // for details. All rights reserved. Use of this source code is governed by a |
| 22294 // BSD-style license that can be found in the LICENSE file. | 22294 // BSD-style license that can be found in the LICENSE file. |
| 22295 | 22295 |
| 22296 interface DocumentFragment extends Element factory DocumentFragmentWrappingImple
mentation { | 22296 interface DocumentFragment extends Element factory DocumentFragmentWrappingImple
mentation { |
| 22297 | 22297 |
| 22298 DocumentFragment(); | 22298 DocumentFragment(); |
| 22299 | 22299 |
| 22300 DocumentFragment.html(String html); | 22300 DocumentFragment.html(String html); |
| 22301 } | 22301 } |
| 22302 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 22302 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22303 // for details. All rights reserved. Use of this source code is governed by a | 22303 // for details. All rights reserved. Use of this source code is governed by a |
| 22304 // BSD-style license that can be found in the LICENSE file. | 22304 // BSD-style license that can be found in the LICENSE file. |
| 22305 | 22305 |
| 22306 class FilteredElementList implements ElementList { | 22306 class FilteredElementList implements ElementList { |
| 22307 final Node _node; | 22307 final Node _node; |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22800 // BSD-style license that can be found in the LICENSE file. | 22800 // BSD-style license that can be found in the LICENSE file. |
| 22801 | 22801 |
| 22802 interface DOMApplicationCacheEvents extends Events { | 22802 interface DOMApplicationCacheEvents extends Events { |
| 22803 EventListenerList get cached(); | 22803 EventListenerList get cached(); |
| 22804 EventListenerList get checking(); | 22804 EventListenerList get checking(); |
| 22805 EventListenerList get downloading(); | 22805 EventListenerList get downloading(); |
| 22806 EventListenerList get error(); | 22806 EventListenerList get error(); |
| 22807 EventListenerList get noUpdate(); | 22807 EventListenerList get noUpdate(); |
| 22808 EventListenerList get obsolete(); | 22808 EventListenerList get obsolete(); |
| 22809 EventListenerList get progress(); | 22809 EventListenerList get progress(); |
| 22810 EventListenerList get updateReady(); | 22810 EventListenerList get updateReady(); |
| 22811 } | 22811 } |
| 22812 | 22812 |
| 22813 interface DOMApplicationCache extends EventTarget { | 22813 interface DOMApplicationCache extends EventTarget { |
| 22814 | 22814 |
| 22815 static final int CHECKING = 2; | 22815 static final int CHECKING = 2; |
| 22816 | 22816 |
| 22817 static final int DOWNLOADING = 3; | 22817 static final int DOWNLOADING = 3; |
| 22818 | 22818 |
| 22819 static final int IDLE = 1; | 22819 static final int IDLE = 1; |
| 22820 | 22820 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22860 } | 22860 } |
| 22861 | 22861 |
| 22862 void update() { | 22862 void update() { |
| 22863 _ptr.update(); | 22863 _ptr.update(); |
| 22864 } | 22864 } |
| 22865 | 22865 |
| 22866 DOMApplicationCacheEvents get on() { | 22866 DOMApplicationCacheEvents get on() { |
| 22867 if (_on === null) { | 22867 if (_on === null) { |
| 22868 _on = new DOMApplicationCacheEventsImplementation._wrap(_ptr); | 22868 _on = new DOMApplicationCacheEventsImplementation._wrap(_ptr); |
| 22869 } | 22869 } |
| 22870 return _on; | 22870 return _on; |
| 22871 } | 22871 } |
| 22872 } | 22872 } |
| 22873 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 22873 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22874 // for details. All rights reserved. Use of this source code is governed by a | 22874 // for details. All rights reserved. Use of this source code is governed by a |
| 22875 // BSD-style license that can be found in the LICENSE file. | 22875 // BSD-style license that can be found in the LICENSE file. |
| 22876 | 22876 |
| 22877 class DOMWrapperBase { | 22877 class DOMWrapperBase { |
| 22878 final _ptr; | 22878 final _ptr; |
| 22879 | 22879 |
| 22880 DOMWrapperBase._wrap(this._ptr) { | 22880 DOMWrapperBase._wrap(this._ptr) { |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23532 * All your element measurement needs in one place | 23532 * All your element measurement needs in one place |
| 23533 */ | 23533 */ |
| 23534 class ElementRectWrappingImplementation implements ElementRect { | 23534 class ElementRectWrappingImplementation implements ElementRect { |
| 23535 final ClientRect client; | 23535 final ClientRect client; |
| 23536 final ClientRect offset; | 23536 final ClientRect offset; |
| 23537 final ClientRect scroll; | 23537 final ClientRect scroll; |
| 23538 | 23538 |
| 23539 // TODO(jacobr): should we move these outside of ElementRect to avoid the | 23539 // TODO(jacobr): should we move these outside of ElementRect to avoid the |
| 23540 // overhead of computing them every time even though they are rarely used. | 23540 // overhead of computing them every time even though they are rarely used. |
| 23541 // This should be type dom.ClientRect but that fails on dartium. b/5522629 | 23541 // This should be type dom.ClientRect but that fails on dartium. b/5522629 |
| 23542 final _boundingClientRect; | 23542 final _boundingClientRect; |
| 23543 // an exception due to a dartium bug. | 23543 // an exception due to a dartium bug. |
| 23544 final dom.ClientRectList _clientRects; | 23544 final dom.ClientRectList _clientRects; |
| 23545 | 23545 |
| 23546 ElementRectWrappingImplementation(dom.HTMLElement element) : | 23546 ElementRectWrappingImplementation(dom.HTMLElement element) : |
| 23547 client = new SimpleClientRect(element.clientLeft, | 23547 client = new SimpleClientRect(element.clientLeft, |
| 23548 element.clientTop, | 23548 element.clientTop, |
| 23549 element.clientWidth, | 23549 element.clientWidth, |
| 23550 element.clientHeight), | 23550 element.clientHeight), |
| 23551 offset = new SimpleClientRect(element.offsetLeft, | 23551 offset = new SimpleClientRect(element.offsetLeft, |
| 23552 element.offsetTop, | 23552 element.offsetTop, |
| 23553 element.offsetWidth, | 23553 element.offsetWidth, |
| 23554 element.offsetHeight), | 23554 element.offsetHeight), |
| 23555 scroll = new SimpleClientRect(element.scrollLeft, | 23555 scroll = new SimpleClientRect(element.scrollLeft, |
| 23556 element.scrollTop, | 23556 element.scrollTop, |
| 23557 element.scrollWidth, | 23557 element.scrollWidth, |
| 23558 element.scrollHeight), | 23558 element.scrollHeight), |
| 23559 _boundingClientRect = element.getBoundingClientRect(), | 23559 _boundingClientRect = element.getBoundingClientRect(), |
| 23560 _clientRects = element.getClientRects(); | 23560 _clientRects = element.getClientRects(); |
| 23561 | 23561 |
| 23562 ClientRect get bounding() => | 23562 ClientRect get bounding() => |
| 23563 LevelDom.wrapClientRect(_boundingClientRect); | 23563 LevelDom.wrapClientRect(_boundingClientRect); |
| 23564 | 23564 |
| 23565 List<ClientRect> get clientRects() { | 23565 List<ClientRect> get clientRects() { |
| 23566 final out = new List(_clientRects.length); | 23566 final out = new List(_clientRects.length); |
| 23567 for (num i = 0; i < _clientRects.length; i++) { | 23567 for (num i = 0; i < _clientRects.length; i++) { |
| 23568 out[i] = LevelDom.wrapClientRect(_clientRects.item(i)); | 23568 out[i] = LevelDom.wrapClientRect(_clientRects.item(i)); |
| 23569 } | 23569 } |
| 23570 return out; | 23570 return out; |
| 23571 } | 23571 } |
| 23572 } | 23572 } |
| 23573 | 23573 |
| 23574 class ElementWrappingImplementation extends NodeWrappingImplementation implement
s Element { | 23574 class ElementWrappingImplementation extends NodeWrappingImplementation implement
s Element { |
| 23575 | 23575 |
| 23576 static final _START_TAG_REGEXP = const RegExp('<(\\w+)'); | 23576 static final _START_TAG_REGEXP = const RegExp('<(\\w+)'); |
| 23577 static final _CUSTOM_PARENT_TAG_MAP = const { | 23577 static final _CUSTOM_PARENT_TAG_MAP = const { |
| 23578 'body' : 'html', | 23578 'body' : 'html', |
| 23579 'head' : 'html', | 23579 'head' : 'html', |
| 23580 'caption' : 'table', | 23580 'caption' : 'table', |
| 23581 'td': 'tr', | 23581 'td': 'tr', |
| 23582 'tbody': 'table', | 23582 'tbody': 'table', |
| 23583 'colgroup': 'table', | 23583 'colgroup': 'table', |
| 23584 'col' : 'colgroup', | 23584 'col' : 'colgroup', |
| 23585 'tr' : 'tbody', | 23585 'tr' : 'tbody', |
| 23586 'tbody' : 'table', | 23586 'tbody' : 'table', |
| 23587 'tfoot' : 'table', | 23587 'tfoot' : 'table', |
| 23588 'thead' : 'table', | 23588 'thead' : 'table', |
| 23589 'track' : 'audio', | 23589 'track' : 'audio', |
| 23590 }; | 23590 }; |
| 23591 | 23591 |
| 23592 factory Element.html(String html) { | 23592 factory ElementWrappingImplementation.html(String html) { |
| 23593 // TODO(jacobr): this method can be made more robust and performant. | 23593 // TODO(jacobr): this method can be made more robust and performant. |
| 23594 // 1) Cache the dummy parent elements required to use innerHTML rather than | 23594 // 1) Cache the dummy parent elements required to use innerHTML rather than |
| 23595 // creating them every call. | 23595 // creating them every call. |
| 23596 // 2) Verify that the html does not contain leading or trailing text nodes. | 23596 // 2) Verify that the html does not contain leading or trailing text nodes. |
| 23597 // 3) Verify that the html does not contain both <head> and <body> tags. | 23597 // 3) Verify that the html does not contain both <head> and <body> tags. |
| 23598 // 4) Detatch the created element from its dummy parent. | 23598 // 4) Detatch the created element from its dummy parent. |
| 23599 String parentTag = 'div'; | 23599 String parentTag = 'div'; |
| 23600 String tag; | 23600 String tag; |
| 23601 final match = _START_TAG_REGEXP.firstMatch(html); | 23601 final match = _START_TAG_REGEXP.firstMatch(html); |
| 23602 if (match !== null) { | 23602 if (match !== null) { |
| 23603 tag = match.group(1).toLowerCase(); | 23603 tag = match.group(1).toLowerCase(); |
| 23604 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { | 23604 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { |
| 23605 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; | 23605 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; |
| 23606 } | 23606 } |
| 23607 } | 23607 } |
| 23608 dom.HTMLElement temp = dom.document.createElement(parentTag); | 23608 final temp = dom.document.createElement(parentTag); |
| 23609 temp.innerHTML = html; | 23609 temp.innerHTML = html; |
| 23610 | 23610 |
| 23611 if (temp.childElementCount == 1) { | 23611 if (temp.childElementCount == 1) { |
| 23612 return LevelDom.wrapElement(temp.firstElementChild); | 23612 return LevelDom.wrapElement(temp.firstElementChild); |
| 23613 } else if (parentTag == 'html' && temp.childElementCount == 2) { | 23613 } else if (parentTag == 'html' && temp.childElementCount == 2) { |
| 23614 // Work around for edge case in WebKit and possibly other browsers where | 23614 // Work around for edge case in WebKit and possibly other browsers where |
| 23615 // both body and head elements are created even though the inner html | 23615 // both body and head elements are created even though the inner html |
| 23616 // only contains a head or body element. | 23616 // only contains a head or body element. |
| 23617 return LevelDom.wrapElement(temp.children.item(tag == 'head' ? 0 : 1)); | 23617 return LevelDom.wrapElement(temp.children.item(tag == 'head' ? 0 : 1)); |
| 23618 } else { | 23618 } else { |
| 23619 throw 'HTML had ${temp.childElementCount} top level elements but 1 expecte
d'; | 23619 throw 'HTML had ${temp.childElementCount} top level elements but 1 expecte
d'; |
| 23620 } | 23620 } |
| 23621 } | 23621 } |
| 23622 | 23622 |
| 23623 factory Element.tag(String tag) { | 23623 factory ElementWrappingImplementation.tag(String tag) { |
| 23624 return LevelDom.wrapElement(dom.document.createElement(tag)); | 23624 return LevelDom.wrapElement(dom.document.createElement(tag)); |
| 23625 } | 23625 } |
| 23626 | 23626 |
| 23627 ElementWrappingImplementation._wrap(ptr) : super._wrap(ptr); | 23627 ElementWrappingImplementation._wrap(ptr) : super._wrap(ptr); |
| 23628 | 23628 |
| 23629 ElementAttributeMap _elementAttributeMap; | 23629 ElementAttributeMap _elementAttributeMap; |
| 23630 ElementList _elements; | 23630 ElementList _elements; |
| 23631 _CssClassSet _cssClassSet; | 23631 _CssClassSet _cssClassSet; |
| 23632 _DataAttributeMap _dataAttributes; | 23632 _DataAttributeMap _dataAttributes; |
| 23633 | 23633 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23795 | 23795 |
| 23796 void scrollIntoView([bool centerIfNeeded = null]) { | 23796 void scrollIntoView([bool centerIfNeeded = null]) { |
| 23797 _ptr.scrollIntoViewIfNeeded(centerIfNeeded); | 23797 _ptr.scrollIntoViewIfNeeded(centerIfNeeded); |
| 23798 } | 23798 } |
| 23799 | 23799 |
| 23800 bool matchesSelector([String selectors = null]) { | 23800 bool matchesSelector([String selectors = null]) { |
| 23801 return _ptr.webkitMatchesSelector(selectors); | 23801 return _ptr.webkitMatchesSelector(selectors); |
| 23802 } | 23802 } |
| 23803 | 23803 |
| 23804 void set scrollLeft(int value) { _ptr.scrollLeft = value; } | 23804 void set scrollLeft(int value) { _ptr.scrollLeft = value; } |
| 23805 | 23805 |
| 23806 void set scrollTop(int value) { _ptr.scrollTop = value; } | 23806 void set scrollTop(int value) { _ptr.scrollTop = value; } |
| 23807 | 23807 |
| 23808 Future<ElementRect> get rect() { | 23808 Future<ElementRect> get rect() { |
| 23809 return _createMeasurementFuture( | 23809 return _createMeasurementFuture( |
| 23810 () => new ElementRectWrappingImplementation(_ptr), | 23810 () => new ElementRectWrappingImplementation(_ptr), |
| 23811 new Completer<ElementRect>()); | 23811 new Completer<ElementRect>()); |
| 23812 } | 23812 } |
| 23813 | 23813 |
| 23814 Future<CSSStyleDeclaration> get computedStyle() { | 23814 Future<CSSStyleDeclaration> get computedStyle() { |
| 23815 // TODO(jacobr): last param should be null, see b/5045788 | 23815 // TODO(jacobr): last param should be null, see b/5045788 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24041 | 24041 |
| 24042 Map<String, EventListenerList> _listenerMap; | 24042 Map<String, EventListenerList> _listenerMap; |
| 24043 | 24043 |
| 24044 EventsImplementation._wrap(this._ptr) { | 24044 EventsImplementation._wrap(this._ptr) { |
| 24045 _listenerMap = <String, EventListenerList>{}; | 24045 _listenerMap = <String, EventListenerList>{}; |
| 24046 } | 24046 } |
| 24047 | 24047 |
| 24048 EventListenerList operator [](String type) { | 24048 EventListenerList operator [](String type) { |
| 24049 return _get(type.toLowerCase()); | 24049 return _get(type.toLowerCase()); |
| 24050 } | 24050 } |
| 24051 | 24051 |
| 24052 EventListenerList _get(String type) { | 24052 EventListenerList _get(String type) { |
| 24053 return _listenerMap.putIfAbsent(type, | 24053 return _listenerMap.putIfAbsent(type, |
| 24054 () => new EventListenerListImplementation(_ptr, type)); | 24054 () => new EventListenerListImplementation(_ptr, type)); |
| 24055 } | 24055 } |
| 24056 } | 24056 } |
| 24057 | 24057 |
| 24058 class _EventListenerWrapper { | 24058 class _EventListenerWrapper { |
| 24059 final EventListener raw; | 24059 final EventListener raw; |
| 24060 final Function wrapped; | 24060 final Function wrapped; |
| 24061 final bool useCapture; | 24061 final bool useCapture; |
| (...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25724 | 25724 |
| 25725 Storage get storageArea() => LevelDom.wrapStorage(_ptr.storageArea); | 25725 Storage get storageArea() => LevelDom.wrapStorage(_ptr.storageArea); |
| 25726 | 25726 |
| 25727 String get url() => _ptr.url; | 25727 String get url() => _ptr.url; |
| 25728 } | 25728 } |
| 25729 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 25729 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25730 // for details. All rights reserved. Use of this source code is governed by a | 25730 // for details. All rights reserved. Use of this source code is governed by a |
| 25731 // BSD-style license that can be found in the LICENSE file. | 25731 // BSD-style license that can be found in the LICENSE file. |
| 25732 | 25732 |
| 25733 interface Text extends CharacterData factory TextWrappingImplementation { | 25733 interface Text extends CharacterData factory TextWrappingImplementation { |
| 25734 | 25734 |
| 25735 Text(String content); | 25735 Text(String content); |
| 25736 | 25736 |
| 25737 String get wholeText(); | 25737 String get wholeText(); |
| 25738 | 25738 |
| 25739 Text replaceWholeText([String content]); | 25739 Text replaceWholeText([String content]); |
| 25740 | 25740 |
| 25741 Text splitText([int offset]); | 25741 Text splitText([int offset]); |
| 25742 } | 25742 } |
| 25743 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 25743 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 25744 // for details. All rights reserved. Use of this source code is governed by a | 25744 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27315 if (_on === null) { | 27315 if (_on === null) { |
| 27316 _on = new WindowEventsImplementation._wrap(_ptr); | 27316 _on = new WindowEventsImplementation._wrap(_ptr); |
| 27317 } | 27317 } |
| 27318 return _on; | 27318 return _on; |
| 27319 } | 27319 } |
| 27320 } | 27320 } |
| 27321 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 27321 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 27322 // for details. All rights reserved. Use of this source code is governed by a | 27322 // for details. All rights reserved. Use of this source code is governed by a |
| 27323 // BSD-style license that can be found in the LICENSE file. | 27323 // BSD-style license that can be found in the LICENSE file. |
| 27324 | 27324 |
| 27325 interface WorkerEvents extends AbstractWorkerEvents { | 27325 interface WorkerEvents extends AbstractWorkerEvents { |
| 27326 EventListenerList get message(); | 27326 EventListenerList get message(); |
| 27327 } | 27327 } |
| 27328 | 27328 |
| 27329 interface Worker extends AbstractWorker { | 27329 interface Worker extends AbstractWorker { |
| 27330 | 27330 |
| 27331 void postMessage(String message, [MessagePort messagePort]); | 27331 void postMessage(String message, [MessagePort messagePort]); |
| 27332 | 27332 |
| 27333 void terminate(); | 27333 void terminate(); |
| 27334 | 27334 |
| 27335 WorkerEvents get on(); | 27335 WorkerEvents get on(); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27633 _ptr.setRequestHeader(header, value); | 27633 _ptr.setRequestHeader(header, value); |
| 27634 } | 27634 } |
| 27635 | 27635 |
| 27636 XMLHttpRequestEvents get on() { | 27636 XMLHttpRequestEvents get on() { |
| 27637 if (_on === null) { | 27637 if (_on === null) { |
| 27638 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); | 27638 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); |
| 27639 } | 27639 } |
| 27640 return _on; | 27640 return _on; |
| 27641 } | 27641 } |
| 27642 } | 27642 } |
| OLD | NEW |