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 |
(...skipping 4018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4029 class _ClipboardImpl implements Clipboard native "*Clipboard" { | 4029 class _ClipboardImpl implements Clipboard native "*Clipboard" { |
4030 | 4030 |
4031 String dropEffect; | 4031 String dropEffect; |
4032 | 4032 |
4033 String effectAllowed; | 4033 String effectAllowed; |
4034 | 4034 |
4035 final _FileListImpl files; | 4035 final _FileListImpl files; |
4036 | 4036 |
4037 final _DataTransferItemListImpl items; | 4037 final _DataTransferItemListImpl items; |
4038 | 4038 |
4039 final List types; | 4039 final List<String> types; |
4040 | 4040 |
4041 void clearData([String type = null]) native; | 4041 void clearData([String type = null]) native; |
4042 | 4042 |
4043 void getData(String type) native; | 4043 void getData(String type) native; |
4044 | 4044 |
4045 bool setData(String type, String data) native; | 4045 bool setData(String type, String data) native; |
4046 | 4046 |
4047 void setDragImage(_ImageElementImpl image, int x, int y) native; | 4047 void setDragImage(_ImageElementImpl image, int x, int y) native; |
4048 } | 4048 } |
4049 | 4049 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4456 } | 4456 } |
4457 | 4457 |
4458 class _DataTransferItemImpl implements DataTransferItem native "*DataTransferIte
m" { | 4458 class _DataTransferItemImpl implements DataTransferItem native "*DataTransferIte
m" { |
4459 | 4459 |
4460 final String kind; | 4460 final String kind; |
4461 | 4461 |
4462 final String type; | 4462 final String type; |
4463 | 4463 |
4464 _BlobImpl getAsFile() native; | 4464 _BlobImpl getAsFile() native; |
4465 | 4465 |
4466 void getAsString(StringCallback callback) native; | 4466 void getAsString([StringCallback callback = null]) native; |
4467 } | 4467 } |
4468 | 4468 |
4469 class _DataTransferItemListImpl implements DataTransferItemList native "*DataTra
nsferItemList" { | 4469 class _DataTransferItemListImpl implements DataTransferItemList native "*DataTra
nsferItemList" { |
4470 | 4470 |
4471 final int length; | 4471 final int length; |
4472 | 4472 |
4473 void add(var data_OR_file, [String type = null]) native; | 4473 void add(var data_OR_file, [String type = null]) native; |
4474 | 4474 |
4475 void clear() native; | 4475 void clear() native; |
4476 | 4476 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4688 _TextImpl _createTextNode(String data) native "return this.parentNode.createTe
xtNode(data);"; | 4688 _TextImpl _createTextNode(String data) native "return this.parentNode.createTe
xtNode(data);"; |
4689 | 4689 |
4690 _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);"; | 4690 _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);"; |
4691 | 4691 |
4692 _TouchListImpl _createTouchList() native "return this.parentNode.createTouchLi
st();"; | 4692 _TouchListImpl _createTouchList() native "return this.parentNode.createTouchLi
st();"; |
4693 | 4693 |
4694 _ElementImpl elementFromPoint(int x, int y) native "return this.parentNode.ele
mentFromPoint(x, y);"; | 4694 _ElementImpl elementFromPoint(int x, int y) native "return this.parentNode.ele
mentFromPoint(x, y);"; |
4695 | 4695 |
4696 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; | 4696 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; |
4697 | 4697 |
4698 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t) native "return this.parentNode.getCSSCanvasContext(contextId, name, width, he
ight);"; | 4698 _CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name,
int width, int height) native "return this.parentNode.getCSSCanvasContext(conte
xtId, name, width, height);"; |
4699 | 4699 |
4700 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; | 4700 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; |
4701 | 4701 |
4702 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; | 4702 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; |
4703 | 4703 |
4704 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; | 4704 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; |
4705 | 4705 |
4706 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; | 4706 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; |
4707 | 4707 |
4708 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; | 4708 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4828 EventListenerList get submit() => _get('submit'); | 4828 EventListenerList get submit() => _get('submit'); |
4829 | 4829 |
4830 EventListenerList get touchCancel() => _get('touchcancel'); | 4830 EventListenerList get touchCancel() => _get('touchcancel'); |
4831 | 4831 |
4832 EventListenerList get touchEnd() => _get('touchend'); | 4832 EventListenerList get touchEnd() => _get('touchend'); |
4833 | 4833 |
4834 EventListenerList get touchMove() => _get('touchmove'); | 4834 EventListenerList get touchMove() => _get('touchmove'); |
4835 | 4835 |
4836 EventListenerList get touchStart() => _get('touchstart'); | 4836 EventListenerList get touchStart() => _get('touchstart'); |
4837 } | 4837 } |
| 4838 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4839 // for details. All rights reserved. Use of this source code is governed by a |
| 4840 // BSD-style license that can be found in the LICENSE file. |
| 4841 |
| 4842 class FilteredElementList implements ElementList { |
| 4843 final Node _node; |
| 4844 final NodeList _childNodes; |
| 4845 |
| 4846 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; |
| 4847 |
| 4848 // We can't memoize this, since it's possible that children will be messed |
| 4849 // with externally to this class. |
| 4850 // |
| 4851 // TODO(nweiz): Do we really need to copy the list to make the types work out? |
| 4852 List<Element> get _filtered() => |
| 4853 new List.from(_childNodes.filter((n) => n is Element)); |
| 4854 |
| 4855 // Don't use _filtered.first so we can short-circuit once we find an element. |
| 4856 Element get first() { |
| 4857 for (var node in _childNodes) { |
| 4858 if (node is Element) { |
| 4859 return node; |
| 4860 } |
| 4861 } |
| 4862 return null; |
| 4863 } |
| 4864 |
| 4865 void forEach(void f(Element element)) { |
| 4866 _filtered.forEach(f); |
| 4867 } |
| 4868 |
| 4869 void operator []=(int index, Element value) { |
| 4870 this[index].replaceWith(value); |
| 4871 } |
| 4872 |
| 4873 void set length(int newLength) { |
| 4874 var len = this.length; |
| 4875 if (newLength >= len) { |
| 4876 return; |
| 4877 } else if (newLength < 0) { |
| 4878 throw const IllegalArgumentException("Invalid list length"); |
| 4879 } |
| 4880 |
| 4881 removeRange(newLength - 1, len - newLength); |
| 4882 } |
| 4883 |
| 4884 void add(Element value) { |
| 4885 _childNodes.add(value); |
| 4886 } |
| 4887 |
| 4888 void addAll(Collection<Element> collection) { |
| 4889 collection.forEach(add); |
| 4890 } |
| 4891 |
| 4892 void addLast(Element value) { |
| 4893 add(value); |
| 4894 } |
| 4895 |
| 4896 void sort(int compare(Element a, Element b)) { |
| 4897 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); |
| 4898 } |
| 4899 |
| 4900 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { |
| 4901 throw const NotImplementedException(); |
| 4902 } |
| 4903 |
| 4904 void setRange(int start, int length, List from, [int startFrom = 0]) { |
| 4905 throw const NotImplementedException(); |
| 4906 } |
| 4907 |
| 4908 void removeRange(int start, int length) { |
| 4909 _filtered.getRange(start, length).forEach((el) => el.remove()); |
| 4910 } |
| 4911 |
| 4912 void insertRange(int start, int length, [initialValue = null]) { |
| 4913 throw const NotImplementedException(); |
| 4914 } |
| 4915 |
| 4916 void clear() { |
| 4917 // Currently, ElementList#clear clears even non-element nodes, so we follow |
| 4918 // that behavior. |
| 4919 _childNodes.clear(); |
| 4920 } |
| 4921 |
| 4922 Element removeLast() { |
| 4923 var last = this.last(); |
| 4924 if (last != null) { |
| 4925 last.remove(); |
| 4926 } |
| 4927 return last; |
| 4928 } |
| 4929 |
| 4930 Collection map(f(Element element)) => _filtered.map(f); |
| 4931 Collection<Element> filter(bool f(Element element)) => _filtered.filter(f); |
| 4932 bool every(bool f(Element element)) => _filtered.every(f); |
| 4933 bool some(bool f(Element element)) => _filtered.some(f); |
| 4934 bool isEmpty() => _filtered.isEmpty(); |
| 4935 int get length() => _filtered.length; |
| 4936 Element operator [](int index) => _filtered[index]; |
| 4937 Iterator<Element> iterator() => _filtered.iterator(); |
| 4938 List<Element> getRange(int start, int length) => |
| 4939 _filtered.getRange(start, length); |
| 4940 int indexOf(Element element, [int start = 0]) => |
| 4941 _filtered.indexOf(element, start); |
| 4942 |
| 4943 int lastIndexOf(Element element, [int start = null]) { |
| 4944 if (start === null) start = length - 1; |
| 4945 return _filtered.lastIndexOf(element, start); |
| 4946 } |
| 4947 |
| 4948 Element last() => _filtered.last(); |
| 4949 } |
| 4950 |
| 4951 Future<CSSStyleDeclaration> _emptyStyleFuture() { |
| 4952 return _createMeasurementFuture(() => new Element.tag('div').style, |
| 4953 new Completer<CSSStyleDeclaration>()); |
| 4954 } |
| 4955 |
| 4956 class EmptyElementRect implements ElementRect { |
| 4957 final ClientRect client = const _SimpleClientRect(0, 0, 0, 0); |
| 4958 final ClientRect offset = const _SimpleClientRect(0, 0, 0, 0); |
| 4959 final ClientRect scroll = const _SimpleClientRect(0, 0, 0, 0); |
| 4960 final ClientRect bounding = const _SimpleClientRect(0, 0, 0, 0); |
| 4961 final List<ClientRect> clientRects = const <ClientRect>[]; |
| 4962 |
| 4963 const EmptyElementRect(); |
| 4964 } |
4838 | 4965 |
4839 class _DocumentFragmentImpl extends _NodeImpl implements DocumentFragment native
"*DocumentFragment" { | 4966 class _DocumentFragmentImpl extends _NodeImpl implements DocumentFragment native
"*DocumentFragment" { |
| 4967 ElementList _elements; |
| 4968 |
| 4969 ElementList get elements() { |
| 4970 if (_elements == null) { |
| 4971 _elements = new FilteredElementList(this); |
| 4972 } |
| 4973 return _elements; |
| 4974 } |
| 4975 |
| 4976 // TODO: The type of value should be Collection<Element>. See http://b/5392897 |
| 4977 void set elements(value) { |
| 4978 // Copy list first since we don't want liveness during iteration. |
| 4979 List copy = new List.from(value); |
| 4980 final elements = this.elements; |
| 4981 elements.clear(); |
| 4982 elements.addAll(copy); |
| 4983 } |
| 4984 |
| 4985 ElementList queryAll(String selectors) => |
| 4986 new _FrozenElementList._wrap(_querySelectorAll(selectors)); |
| 4987 |
| 4988 String get innerHTML() { |
| 4989 var e = new Element.tag("div"); |
| 4990 e.nodes.add(this.clone(true)); |
| 4991 return e.innerHTML; |
| 4992 } |
| 4993 |
| 4994 String get outerHTML() => innerHTML; |
| 4995 |
| 4996 // TODO(nweiz): Do we want to support some variant of innerHTML for XML and/or |
| 4997 // SVG strings? |
| 4998 void set innerHTML(String value) { |
| 4999 this.nodes.clear(); |
| 5000 |
| 5001 var e = new Element.tag("div"); |
| 5002 e.innerHTML = value; |
| 5003 |
| 5004 // Copy list first since we don't want liveness during iteration. |
| 5005 List nodes = new List.from(e.nodes); |
| 5006 this.nodes.addAll(nodes); |
| 5007 } |
| 5008 |
| 5009 Node _insertAdjacentNode(String where, Node node) { |
| 5010 switch (where.toLowerCase()) { |
| 5011 case "beforebegin": return null; |
| 5012 case "afterend": return null; |
| 5013 case "afterbegin": |
| 5014 this.insertBefore(node, nodes.first); |
| 5015 return node; |
| 5016 case "beforeend": |
| 5017 this.nodes.add(node); |
| 5018 return node; |
| 5019 default: |
| 5020 throw new IllegalArgumentException("Invalid position ${where}"); |
| 5021 } |
| 5022 } |
| 5023 |
| 5024 Element insertAdjacentElement([String where = null, Element element = null]) |
| 5025 => this._insertAdjacentNode(where, element); |
| 5026 |
| 5027 void insertAdjacentText([String where = null, String text = null]) { |
| 5028 this._insertAdjacentNode(where, new Text(text)); |
| 5029 } |
| 5030 |
| 5031 void insertAdjacentHTML( |
| 5032 [String position_OR_where = null, String text = null]) { |
| 5033 this._insertAdjacentNode( |
| 5034 position_OR_where, new DocumentFragment.html(text)); |
| 5035 } |
| 5036 |
| 5037 Future<ElementRect> get rect() { |
| 5038 return _createMeasurementFuture(() => const EmptyElementRect(), |
| 5039 new Completer<ElementRect>()); |
| 5040 } |
| 5041 |
| 5042 // If we can come up with a semi-reasonable default value for an Element |
| 5043 // getter, we'll use it. In general, these return the same values as an |
| 5044 // element that has no parent. |
| 5045 String get contentEditable() => "false"; |
| 5046 bool get isContentEditable() => false; |
| 5047 bool get draggable() => false; |
| 5048 bool get hidden() => false; |
| 5049 bool get spellcheck() => false; |
| 5050 int get tabIndex() => -1; |
| 5051 String get id() => ""; |
| 5052 String get title() => ""; |
| 5053 String get tagName() => ""; |
| 5054 String get webkitdropzone() => ""; |
| 5055 Element get firstElementChild() => elements.first(); |
| 5056 Element get lastElementChild() => elements.last(); |
| 5057 Element get nextElementSibling() => null; |
| 5058 Element get previousElementSibling() => null; |
| 5059 Element get offsetParent() => null; |
| 5060 Element get parent() => null; |
| 5061 Map<String, String> get attributes() => const {}; |
| 5062 // Issue 174: this should be a const set. |
| 5063 Set<String> get classes() => new Set<String>(); |
| 5064 Map<String, String> get dataAttributes() => const {}; |
| 5065 CSSStyleDeclaration get style() => new Element.tag('div').style; |
| 5066 Future<CSSStyleDeclaration> get computedStyle() => |
| 5067 _emptyStyleFuture(); |
| 5068 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) => |
| 5069 _emptyStyleFuture(); |
| 5070 bool matchesSelector([String selectors]) => false; |
| 5071 |
| 5072 // Imperative Element methods are made into no-ops, as they are on parentless |
| 5073 // elements. |
| 5074 void blur() {} |
| 5075 void focus() {} |
| 5076 void scrollByLines([int lines]) {} |
| 5077 void scrollByPages([int pages]) {} |
| 5078 void scrollIntoView([bool centerIfNeeded]) {} |
| 5079 |
| 5080 // Setters throw errors rather than being no-ops because we aren't going to |
| 5081 // retain the values that were set, and erroring out seems clearer. |
| 5082 void set attributes(Map<String, String> value) { |
| 5083 throw new UnsupportedOperationException( |
| 5084 "Attributes can't be set for document fragments."); |
| 5085 } |
| 5086 |
| 5087 void set classes(Collection<String> value) { |
| 5088 throw new UnsupportedOperationException( |
| 5089 "Classes can't be set for document fragments."); |
| 5090 } |
| 5091 |
| 5092 void set dataAttributes(Map<String, String> value) { |
| 5093 throw new UnsupportedOperationException( |
| 5094 "Data attributes can't be set for document fragments."); |
| 5095 } |
| 5096 |
| 5097 void set contentEditable(String value) { |
| 5098 throw new UnsupportedOperationException( |
| 5099 "Content editable can't be set for document fragments."); |
| 5100 } |
| 5101 |
| 5102 String get dir() { |
| 5103 throw new UnsupportedOperationException( |
| 5104 "Document fragments don't support text direction."); |
| 5105 } |
| 5106 |
| 5107 void set dir(String value) { |
| 5108 throw new UnsupportedOperationException( |
| 5109 "Document fragments don't support text direction."); |
| 5110 } |
| 5111 |
| 5112 void set draggable(bool value) { |
| 5113 throw new UnsupportedOperationException( |
| 5114 "Draggable can't be set for document fragments."); |
| 5115 } |
| 5116 |
| 5117 void set hidden(bool value) { |
| 5118 throw new UnsupportedOperationException( |
| 5119 "Hidden can't be set for document fragments."); |
| 5120 } |
| 5121 |
| 5122 void set id(String value) { |
| 5123 throw new UnsupportedOperationException( |
| 5124 "ID can't be set for document fragments."); |
| 5125 } |
| 5126 |
| 5127 String get lang() { |
| 5128 throw new UnsupportedOperationException( |
| 5129 "Document fragments don't support language."); |
| 5130 } |
| 5131 |
| 5132 void set lang(String value) { |
| 5133 throw new UnsupportedOperationException( |
| 5134 "Document fragments don't support language."); |
| 5135 } |
| 5136 |
| 5137 void set scrollLeft(int value) { |
| 5138 throw new UnsupportedOperationException( |
| 5139 "Document fragments don't support scrolling."); |
| 5140 } |
| 5141 |
| 5142 void set scrollTop(int value) { |
| 5143 throw new UnsupportedOperationException( |
| 5144 "Document fragments don't support scrolling."); |
| 5145 } |
| 5146 |
| 5147 void set spellcheck(bool value) { |
| 5148 throw new UnsupportedOperationException( |
| 5149 "Spellcheck can't be set for document fragments."); |
| 5150 } |
| 5151 |
| 5152 void set tabIndex(int value) { |
| 5153 throw new UnsupportedOperationException( |
| 5154 "Tab index can't be set for document fragments."); |
| 5155 } |
| 5156 |
| 5157 void set title(String value) { |
| 5158 throw new UnsupportedOperationException( |
| 5159 "Title can't be set for document fragments."); |
| 5160 } |
| 5161 |
| 5162 void set webkitdropzone(String value) { |
| 5163 throw new UnsupportedOperationException( |
| 5164 "WebKit drop zone can't be set for document fragments."); |
| 5165 } |
| 5166 |
| 5167 |
| 5168 _DocumentFragmentEventsImpl get on() => |
| 5169 new _DocumentFragmentEventsImpl(this); |
4840 | 5170 |
4841 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; | 5171 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; |
4842 | 5172 |
4843 _NodeListImpl _querySelectorAll(String selectors) native "return this.querySel
ectorAll(selectors);"; | 5173 _NodeListImpl _querySelectorAll(String selectors) native "return this.querySel
ectorAll(selectors);"; |
| 5174 |
| 5175 } |
| 5176 |
| 5177 class _DocumentFragmentEventsImpl extends _ElementEventsImpl implements Document
FragmentEvents { |
| 5178 _DocumentFragmentEventsImpl(_ptr) : super(_ptr); |
4844 } | 5179 } |
4845 | 5180 |
4846 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum
entType" { | 5181 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum
entType" { |
4847 | 5182 |
4848 final _NamedNodeMapImpl entities; | 5183 final _NamedNodeMapImpl entities; |
4849 | 5184 |
4850 final String internalSubset; | 5185 final String internalSubset; |
4851 | 5186 |
4852 final String name; | 5187 final String name; |
4853 | 5188 |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5471 bool spellcheck; | 5806 bool spellcheck; |
5472 | 5807 |
5473 final _CSSStyleDeclarationImpl style; | 5808 final _CSSStyleDeclarationImpl style; |
5474 | 5809 |
5475 int tabIndex; | 5810 int tabIndex; |
5476 | 5811 |
5477 final String tagName; | 5812 final String tagName; |
5478 | 5813 |
5479 String title; | 5814 String title; |
5480 | 5815 |
| 5816 bool translate; |
| 5817 |
5481 final String webkitRegionOverflow; | 5818 final String webkitRegionOverflow; |
5482 | 5819 |
5483 String webkitdropzone; | 5820 String webkitdropzone; |
5484 | 5821 |
5485 _ElementEventsImpl get on() => | 5822 _ElementEventsImpl get on() => |
5486 new _ElementEventsImpl(this); | 5823 new _ElementEventsImpl(this); |
5487 | 5824 |
5488 void blur() native; | 5825 void blur() native; |
5489 | 5826 |
5490 void click() native; | 5827 void click() native; |
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6691 _IDBObjectStoreImpl createObjectStore(String name) native; | 7028 _IDBObjectStoreImpl createObjectStore(String name) native; |
6692 | 7029 |
6693 void deleteObjectStore(String name) native; | 7030 void deleteObjectStore(String name) native; |
6694 | 7031 |
6695 bool dispatchEvent(_EventImpl evt) native; | 7032 bool dispatchEvent(_EventImpl evt) native; |
6696 | 7033 |
6697 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 7034 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
6698 | 7035 |
6699 _IDBVersionChangeRequestImpl setVersion(String version) native; | 7036 _IDBVersionChangeRequestImpl setVersion(String version) native; |
6700 | 7037 |
6701 _IDBTransactionImpl transaction(var storeName_OR_storeNames, int mode) native; | 7038 _IDBTransactionImpl transaction(var storeName_OR_storeNames, [int mode = null]
) native; |
6702 } | 7039 } |
6703 | 7040 |
6704 class _IDBDatabaseErrorImpl implements IDBDatabaseError native "*IDBDatabaseErro
r" { | 7041 class _IDBDatabaseErrorImpl implements IDBDatabaseError native "*IDBDatabaseErro
r" { |
6705 | 7042 |
6706 int code; | 7043 int code; |
6707 | 7044 |
6708 String message; | 7045 String message; |
6709 } | 7046 } |
6710 | 7047 |
6711 class _IDBDatabaseExceptionImpl implements IDBDatabaseException native "*IDBData
baseException" { | 7048 class _IDBDatabaseExceptionImpl implements IDBDatabaseException native "*IDBData
baseException" { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6812 final _IDBTransactionImpl transaction; | 7149 final _IDBTransactionImpl transaction; |
6813 | 7150 |
6814 _IDBRequestImpl add(Dynamic value, [_IDBKeyImpl key = null]) native; | 7151 _IDBRequestImpl add(Dynamic value, [_IDBKeyImpl key = null]) native; |
6815 | 7152 |
6816 _IDBRequestImpl clear() native; | 7153 _IDBRequestImpl clear() native; |
6817 | 7154 |
6818 _IDBRequestImpl count([_IDBKeyRangeImpl range = null]) native; | 7155 _IDBRequestImpl count([_IDBKeyRangeImpl range = null]) native; |
6819 | 7156 |
6820 _IDBIndexImpl createIndex(String name, String keyPath) native; | 7157 _IDBIndexImpl createIndex(String name, String keyPath) native; |
6821 | 7158 |
6822 _IDBRequestImpl delete(_IDBKeyImpl key) native; | 7159 _IDBRequestImpl delete(var key_OR_keyRange) native; |
6823 | 7160 |
6824 void deleteIndex(String name) native; | 7161 void deleteIndex(String name) native; |
6825 | 7162 |
6826 _IDBRequestImpl getObject(_IDBKeyImpl key) native; | 7163 _IDBRequestImpl getObject(_IDBKeyImpl key) native; |
6827 | 7164 |
6828 _IDBIndexImpl index(String name) native; | 7165 _IDBIndexImpl index(String name) native; |
6829 | 7166 |
6830 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul
l]) native; | 7167 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul
l]) native; |
6831 | 7168 |
6832 _IDBRequestImpl put(Dynamic value, [_IDBKeyImpl key = null]) native; | 7169 _IDBRequestImpl put(Dynamic value, [_IDBKeyImpl key = null]) native; |
(...skipping 6872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13705 | 14042 |
13706 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); | 14043 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); |
13707 | 14044 |
13708 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); | 14045 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); |
13709 | 14046 |
13710 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; | 14047 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; |
13711 | 14048 |
13712 // Use implementation from Uint8Array. | 14049 // Use implementation from Uint8Array. |
13713 // final int length; | 14050 // final int length; |
13714 | 14051 |
| 14052 void setElements(Object array, [int offset = null]) native; |
| 14053 |
13715 _Uint8ClampedArrayImpl subarray(int start, [int end = null]) native; | 14054 _Uint8ClampedArrayImpl subarray(int start, [int end = null]) native; |
13716 } | 14055 } |
13717 | 14056 |
13718 class _UnknownElementImpl extends _ElementImpl implements UnknownElement native
"*HTMLUnknownElement" { | 14057 class _UnknownElementImpl extends _ElementImpl implements UnknownElement native
"*HTMLUnknownElement" { |
13719 } | 14058 } |
13720 | 14059 |
13721 class _ValidityStateImpl implements ValidityState native "*ValidityState" { | 14060 class _ValidityStateImpl implements ValidityState native "*ValidityState" { |
13722 | 14061 |
13723 final bool customError; | 14062 final bool customError; |
13724 | 14063 |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14724 | 15063 |
14725 class _WebGLVertexArrayObjectOESImpl implements WebGLVertexArrayObjectOES native
"*WebGLVertexArrayObjectOES" { | 15064 class _WebGLVertexArrayObjectOESImpl implements WebGLVertexArrayObjectOES native
"*WebGLVertexArrayObjectOES" { |
14726 } | 15065 } |
14727 | 15066 |
14728 class _WebKitCSSRegionRuleImpl extends _CSSRuleImpl implements WebKitCSSRegionRu
le native "*WebKitCSSRegionRule" { | 15067 class _WebKitCSSRegionRuleImpl extends _CSSRuleImpl implements WebKitCSSRegionRu
le native "*WebKitCSSRegionRule" { |
14729 | 15068 |
14730 final _CSSRuleListImpl cssRules; | 15069 final _CSSRuleListImpl cssRules; |
14731 } | 15070 } |
14732 | 15071 |
14733 class _WebKitNamedFlowImpl implements WebKitNamedFlow native "*WebKitNamedFlow"
{ | 15072 class _WebKitNamedFlowImpl implements WebKitNamedFlow native "*WebKitNamedFlow"
{ |
| 15073 |
| 15074 final bool overflow; |
14734 } | 15075 } |
14735 | 15076 |
14736 class _WebSocketImpl extends _EventTargetImpl implements WebSocket native "*WebS
ocket" { | 15077 class _WebSocketImpl extends _EventTargetImpl implements WebSocket native "*WebS
ocket" { |
14737 | 15078 |
14738 static final int CLOSED = 3; | 15079 static final int CLOSED = 3; |
14739 | 15080 |
14740 static final int CLOSING = 2; | 15081 static final int CLOSING = 2; |
14741 | 15082 |
14742 static final int CONNECTING = 0; | 15083 static final int CONNECTING = 0; |
14743 | 15084 |
(...skipping 4052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18796 interface Clipboard { | 19137 interface Clipboard { |
18797 | 19138 |
18798 String dropEffect; | 19139 String dropEffect; |
18799 | 19140 |
18800 String effectAllowed; | 19141 String effectAllowed; |
18801 | 19142 |
18802 final FileList files; | 19143 final FileList files; |
18803 | 19144 |
18804 final DataTransferItemList items; | 19145 final DataTransferItemList items; |
18805 | 19146 |
18806 final List types; | 19147 final List<String> types; |
18807 | 19148 |
18808 void clearData([String type]); | 19149 void clearData([String type]); |
18809 | 19150 |
18810 void getData(String type); | 19151 void getData(String type); |
18811 | 19152 |
18812 bool setData(String type, String data); | 19153 bool setData(String type, String data); |
18813 | 19154 |
18814 void setDragImage(ImageElement image, int x, int y); | 19155 void setDragImage(ImageElement image, int x, int y); |
18815 } | 19156 } |
18816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19343 // WARNING: Do not edit - generated code. | 19684 // WARNING: Do not edit - generated code. |
19344 | 19685 |
19345 interface DataTransferItem { | 19686 interface DataTransferItem { |
19346 | 19687 |
19347 final String kind; | 19688 final String kind; |
19348 | 19689 |
19349 final String type; | 19690 final String type; |
19350 | 19691 |
19351 Blob getAsFile(); | 19692 Blob getAsFile(); |
19352 | 19693 |
19353 void getAsString(StringCallback callback); | 19694 void getAsString([StringCallback callback]); |
19354 } | 19695 } |
19355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19356 // for details. All rights reserved. Use of this source code is governed by a | 19697 // for details. All rights reserved. Use of this source code is governed by a |
19357 // BSD-style license that can be found in the LICENSE file. | 19698 // BSD-style license that can be found in the LICENSE file. |
19358 | 19699 |
19359 // WARNING: Do not edit - generated code. | 19700 // WARNING: Do not edit - generated code. |
19360 | 19701 |
19361 interface DataTransferItemList { | 19702 interface DataTransferItemList { |
19362 | 19703 |
19363 final int length; | 19704 final int length; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19645 Text _createTextNode(String data); | 19986 Text _createTextNode(String data); |
19646 | 19987 |
19647 Touch createTouch(Window window, EventTarget target, int identifier, int pageX
, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num
webkitRotationAngle, num webkitForce); | 19988 Touch createTouch(Window window, EventTarget target, int identifier, int pageX
, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num
webkitRotationAngle, num webkitForce); |
19648 | 19989 |
19649 TouchList _createTouchList(); | 19990 TouchList _createTouchList(); |
19650 | 19991 |
19651 Element elementFromPoint(int x, int y); | 19992 Element elementFromPoint(int x, int y); |
19652 | 19993 |
19653 bool execCommand(String command, bool userInterface, String value); | 19994 bool execCommand(String command, bool userInterface, String value); |
19654 | 19995 |
19655 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t); | 19996 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height); |
19656 | 19997 |
19657 bool queryCommandEnabled(String command); | 19998 bool queryCommandEnabled(String command); |
19658 | 19999 |
19659 bool queryCommandIndeterm(String command); | 20000 bool queryCommandIndeterm(String command); |
19660 | 20001 |
19661 bool queryCommandState(String command); | 20002 bool queryCommandState(String command); |
19662 | 20003 |
19663 bool queryCommandSupported(String command); | 20004 bool queryCommandSupported(String command); |
19664 | 20005 |
19665 String queryCommandValue(String command); | 20006 String queryCommandValue(String command); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19763 EventListenerList get touchEnd(); | 20104 EventListenerList get touchEnd(); |
19764 | 20105 |
19765 EventListenerList get touchMove(); | 20106 EventListenerList get touchMove(); |
19766 | 20107 |
19767 EventListenerList get touchStart(); | 20108 EventListenerList get touchStart(); |
19768 } | 20109 } |
19769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19770 // for details. All rights reserved. Use of this source code is governed by a | 20111 // for details. All rights reserved. Use of this source code is governed by a |
19771 // BSD-style license that can be found in the LICENSE file. | 20112 // BSD-style license that can be found in the LICENSE file. |
19772 | 20113 |
19773 // WARNING: Do not edit - generated code. | 20114 interface DocumentFragment extends Element default _DocumentFragmentFactoryProvi
der { |
| 20115 |
| 20116 DocumentFragment(); |
19774 | 20117 |
19775 interface DocumentFragment extends Node, NodeSelector { | 20118 DocumentFragment.html(String html); |
| 20119 |
| 20120 // TODO(nweiz): enable these when XML and/or SVG are ported |
| 20121 // /** WARNING: Currently this doesn't work on Dartium (issue 649). */ |
| 20122 // DocumentFragment.xml(String xml); |
| 20123 // DocumentFragment.svg(String svg); |
| 20124 |
| 20125 DocumentFragment clone(bool deep); |
| 20126 |
| 20127 |
| 20128 DocumentFragmentEvents get on(); |
19776 | 20129 |
19777 Element query(String selectors); | 20130 Element query(String selectors); |
19778 | 20131 |
19779 NodeList _querySelectorAll(String selectors); | 20132 NodeList _querySelectorAll(String selectors); |
| 20133 |
| 20134 } |
| 20135 |
| 20136 interface DocumentFragmentEvents extends ElementEvents { |
19780 } | 20137 } |
19781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19782 // for details. All rights reserved. Use of this source code is governed by a | 20139 // for details. All rights reserved. Use of this source code is governed by a |
19783 // BSD-style license that can be found in the LICENSE file. | 20140 // BSD-style license that can be found in the LICENSE file. |
19784 | 20141 |
19785 // WARNING: Do not edit - generated code. | 20142 // WARNING: Do not edit - generated code. |
19786 | 20143 |
19787 interface DocumentType extends Node { | 20144 interface DocumentType extends Node { |
19788 | 20145 |
19789 final NamedNodeMap entities; | 20146 final NamedNodeMap entities; |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20172 bool spellcheck; | 20529 bool spellcheck; |
20173 | 20530 |
20174 final CSSStyleDeclaration style; | 20531 final CSSStyleDeclaration style; |
20175 | 20532 |
20176 int tabIndex; | 20533 int tabIndex; |
20177 | 20534 |
20178 final String tagName; | 20535 final String tagName; |
20179 | 20536 |
20180 String title; | 20537 String title; |
20181 | 20538 |
| 20539 bool translate; |
| 20540 |
20182 final String webkitRegionOverflow; | 20541 final String webkitRegionOverflow; |
20183 | 20542 |
20184 String webkitdropzone; | 20543 String webkitdropzone; |
20185 | 20544 |
20186 ElementEvents get on(); | 20545 ElementEvents get on(); |
20187 | 20546 |
20188 void blur(); | 20547 void blur(); |
20189 | 20548 |
20190 void click(); | 20549 void click(); |
20191 | 20550 |
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21391 IDBObjectStore createObjectStore(String name); | 21750 IDBObjectStore createObjectStore(String name); |
21392 | 21751 |
21393 void deleteObjectStore(String name); | 21752 void deleteObjectStore(String name); |
21394 | 21753 |
21395 bool dispatchEvent(Event evt); | 21754 bool dispatchEvent(Event evt); |
21396 | 21755 |
21397 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 21756 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
21398 | 21757 |
21399 IDBVersionChangeRequest setVersion(String version); | 21758 IDBVersionChangeRequest setVersion(String version); |
21400 | 21759 |
21401 IDBTransaction transaction(var storeName_OR_storeNames, int mode); | 21760 IDBTransaction transaction(var storeName_OR_storeNames, [int mode]); |
21402 } | 21761 } |
21403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21404 // for details. All rights reserved. Use of this source code is governed by a | 21763 // for details. All rights reserved. Use of this source code is governed by a |
21405 // BSD-style license that can be found in the LICENSE file. | 21764 // BSD-style license that can be found in the LICENSE file. |
21406 | 21765 |
21407 // WARNING: Do not edit - generated code. | 21766 // WARNING: Do not edit - generated code. |
21408 | 21767 |
21409 interface IDBDatabaseError { | 21768 interface IDBDatabaseError { |
21410 | 21769 |
21411 int code; | 21770 int code; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21547 final IDBTransaction transaction; | 21906 final IDBTransaction transaction; |
21548 | 21907 |
21549 IDBRequest add(Dynamic value, [IDBKey key]); | 21908 IDBRequest add(Dynamic value, [IDBKey key]); |
21550 | 21909 |
21551 IDBRequest clear(); | 21910 IDBRequest clear(); |
21552 | 21911 |
21553 IDBRequest count([IDBKeyRange range]); | 21912 IDBRequest count([IDBKeyRange range]); |
21554 | 21913 |
21555 IDBIndex createIndex(String name, String keyPath); | 21914 IDBIndex createIndex(String name, String keyPath); |
21556 | 21915 |
21557 IDBRequest delete(IDBKey key); | 21916 IDBRequest delete(var key_OR_keyRange); |
21558 | 21917 |
21559 void deleteIndex(String name); | 21918 void deleteIndex(String name); |
21560 | 21919 |
21561 IDBRequest getObject(IDBKey key); | 21920 IDBRequest getObject(IDBKey key); |
21562 | 21921 |
21563 IDBIndex index(String name); | 21922 IDBIndex index(String name); |
21564 | 21923 |
21565 IDBRequest openCursor([IDBKeyRange range, int direction]); | 21924 IDBRequest openCursor([IDBKeyRange range, int direction]); |
21566 | 21925 |
21567 IDBRequest put(Dynamic value, [IDBKey key]); | 21926 IDBRequest put(Dynamic value, [IDBKey key]); |
(...skipping 6042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
27610 interface Uint8ClampedArray extends Uint8Array default _TypedArrayFactoryProvide
r { | 27969 interface Uint8ClampedArray extends Uint8Array default _TypedArrayFactoryProvide
r { |
27611 | 27970 |
27612 Uint8ClampedArray(int length); | 27971 Uint8ClampedArray(int length); |
27613 | 27972 |
27614 Uint8ClampedArray.fromList(List<int> list); | 27973 Uint8ClampedArray.fromList(List<int> list); |
27615 | 27974 |
27616 Uint8ClampedArray.fromBuffer(ArrayBuffer buffer); | 27975 Uint8ClampedArray.fromBuffer(ArrayBuffer buffer); |
27617 | 27976 |
27618 final int length; | 27977 final int length; |
27619 | 27978 |
| 27979 void setElements(Object array, [int offset]); |
| 27980 |
27620 Uint8ClampedArray subarray(int start, [int end]); | 27981 Uint8ClampedArray subarray(int start, [int end]); |
27621 } | 27982 } |
27622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
27623 // for details. All rights reserved. Use of this source code is governed by a | 27984 // for details. All rights reserved. Use of this source code is governed by a |
27624 // BSD-style license that can be found in the LICENSE file. | 27985 // BSD-style license that can be found in the LICENSE file. |
27625 | 27986 |
27626 // WARNING: Do not edit - generated code. | 27987 // WARNING: Do not edit - generated code. |
27627 | 27988 |
27628 interface UnknownElement extends Element { | 27989 interface UnknownElement extends Element { |
27629 } | 27990 } |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
28746 | 29107 |
28747 final CSSRuleList cssRules; | 29108 final CSSRuleList cssRules; |
28748 } | 29109 } |
28749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 29110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
28750 // for details. All rights reserved. Use of this source code is governed by a | 29111 // for details. All rights reserved. Use of this source code is governed by a |
28751 // BSD-style license that can be found in the LICENSE file. | 29112 // BSD-style license that can be found in the LICENSE file. |
28752 | 29113 |
28753 // WARNING: Do not edit - generated code. | 29114 // WARNING: Do not edit - generated code. |
28754 | 29115 |
28755 interface WebKitNamedFlow { | 29116 interface WebKitNamedFlow { |
| 29117 |
| 29118 final bool overflow; |
28756 } | 29119 } |
28757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 29120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
28758 // for details. All rights reserved. Use of this source code is governed by a | 29121 // for details. All rights reserved. Use of this source code is governed by a |
28759 // BSD-style license that can be found in the LICENSE file. | 29122 // BSD-style license that can be found in the LICENSE file. |
28760 | 29123 |
28761 // WARNING: Do not edit - generated code. | 29124 // WARNING: Do not edit - generated code. |
28762 | 29125 |
28763 interface WebSocket extends EventTarget { | 29126 interface WebSocket extends EventTarget { |
28764 | 29127 |
28765 static final int CLOSED = 3; | 29128 static final int CLOSED = 3; |
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30449 } | 30812 } |
30450 element.remove(); | 30813 element.remove(); |
30451 return element; | 30814 return element; |
30452 } | 30815 } |
30453 | 30816 |
30454 /** @domName Document.createElement */ | 30817 /** @domName Document.createElement */ |
30455 factory Element.tag(String tag) { | 30818 factory Element.tag(String tag) { |
30456 return document._createElement(tag); | 30819 return document._createElement(tag); |
30457 } | 30820 } |
30458 } | 30821 } |
| 30822 |
| 30823 class _DocumentFragmentFactoryProvider { |
| 30824 /** @domName Document.createDocumentFragment */ |
| 30825 factory DocumentFragment() => document.createDocumentFragment(); |
| 30826 |
| 30827 factory DocumentFragment.html(String html) { |
| 30828 var fragment = new DocumentFragment(); |
| 30829 fragment.innerHTML = html; |
| 30830 return fragment; |
| 30831 } |
| 30832 |
| 30833 // TODO(nweiz): enable this when XML is ported. |
| 30834 // factory DocumentFragment.xml(String xml) { |
| 30835 // var fragment = new DocumentFragment(); |
| 30836 // var e = new XMLElement.tag("xml"); |
| 30837 // e.innerHTML = xml; |
| 30838 // |
| 30839 // // Copy list first since we don't want liveness during iteration. |
| 30840 // List nodes = new List.from(e.nodes); |
| 30841 // fragment.nodes.addAll(nodes); |
| 30842 // return fragment; |
| 30843 // } |
| 30844 |
| 30845 // TODO(nweiz): enable this when SVG is ported. |
| 30846 // factory DocumentFragment.svg(String svg) { |
| 30847 // var fragment = new DocumentFragment(); |
| 30848 // var e = new SVGSVGElement(); |
| 30849 // e.innerHTML = svg; |
| 30850 // |
| 30851 // // Copy list first since we don't want liveness during iteration. |
| 30852 // List nodes = new List.from(e.nodes); |
| 30853 // fragment.nodes.addAll(nodes); |
| 30854 // return fragment; |
| 30855 // } |
| 30856 } |
30459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 30857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
30460 // for details. All rights reserved. Use of this source code is governed by a | 30858 // for details. All rights reserved. Use of this source code is governed by a |
30461 // BSD-style license that can be found in the LICENSE file. | 30859 // BSD-style license that can be found in the LICENSE file. |
30462 | 30860 |
30463 class _AudioContextFactoryProvider { | 30861 class _AudioContextFactoryProvider { |
30464 | 30862 |
30465 factory AudioContext() native ''' | 30863 factory AudioContext() native ''' |
30466 var constructor = window.AudioContext || window.webkitAudioContext; | 30864 var constructor = window.AudioContext || window.webkitAudioContext; |
30467 return new constructor(); | 30865 return new constructor(); |
30468 '''; | 30866 '''; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30700 if (length < 0) throw new IllegalArgumentException('length'); | 31098 if (length < 0) throw new IllegalArgumentException('length'); |
30701 if (start < 0) throw new IndexOutOfRangeException(start); | 31099 if (start < 0) throw new IndexOutOfRangeException(start); |
30702 int end = start + length; | 31100 int end = start + length; |
30703 if (end > a.length) throw new IndexOutOfRangeException(end); | 31101 if (end > a.length) throw new IndexOutOfRangeException(end); |
30704 for (int i = start; i < end; i++) { | 31102 for (int i = start; i < end; i++) { |
30705 accumulator.add(a[i]); | 31103 accumulator.add(a[i]); |
30706 } | 31104 } |
30707 return accumulator; | 31105 return accumulator; |
30708 } | 31106 } |
30709 } | 31107 } |
OLD | NEW |