| OLD | NEW |
| 1 // This file introduces / supplements and forces Dart declarations. | 1 // This file introduces / supplements and forces Dart declarations. |
| 2 | 2 |
| 3 [Supplemental, | 3 [DartSupplemental, |
| 4 Constructor] | 4 Constructor] |
| 5 interface AudioContext { | 5 interface AudioContext { |
| 6 // TODO(ager): Auto-generate this custom method when the info about retaining | 6 // TODO(ager): Auto-generate this custom method when the info about retaining |
| 7 // typed arrays is in the IDL. | 7 // typed arrays is in the IDL. |
| 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe
ssCallback, AudioBufferCallback errorCallback); | 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe
ssCallback, AudioBufferCallback errorCallback); |
| 9 }; | 9 }; |
| 10 | 10 |
| 11 [Supplemental] | 11 [DartSupplemental] |
| 12 interface WaveShaperNode { | 12 interface WaveShaperNode { |
| 13 // TODO(ager): Auto-generate this custom method when the info about retaining | 13 // TODO(ager): Auto-generate this custom method when the info about retaining |
| 14 // typed arrays is in the IDL. | 14 // typed arrays is in the IDL. |
| 15 [Custom=Setter] attribute Float32Array curve; | 15 [Custom=Setter] attribute Float32Array curve; |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 [Supplemental] | 18 [DartSupplemental] |
| 19 interface AudioParam { | 19 interface AudioParam { |
| 20 // TODO(ager): Auto-generate this custom method when the info about retaining | 20 // TODO(ager): Auto-generate this custom method when the info about retaining |
| 21 // typed arrays is in the IDL. | 21 // typed arrays is in the IDL. |
| 22 [Custom] void setValueCurveAtTime(Float32Array values, double time, double dur
ation); | 22 [Custom] void setValueCurveAtTime(Float32Array values, double time, double dur
ation); |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 [Supplemental] | 25 [DartSupplemental] |
| 26 interface Document { | 26 interface Document { |
| 27 [Suppressed] DOMObject getCSSCanvasContext(DOMString contextId, DOMString name
, long width, long height); | |
| 28 CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString name
, long width, long height); | |
| 29 [Custom] Element createElement(DOMString tagName); | 27 [Custom] Element createElement(DOMString tagName); |
| 30 [Custom] Element createElement(DOMString localName, DOMString typeExtension); | 28 [Custom] Element createElement(DOMString localName, DOMString typeExtension); |
| 31 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa
me); | 29 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa
me); |
| 32 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa
me, DOMString typeExtension); | 30 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa
me, DOMString typeExtension); |
| 33 }; | 31 }; |
| 34 | 32 |
| 35 [Supplemental] | 33 [DartSupplemental] |
| 36 interface Node { | 34 interface Node { |
| 37 [Custom] Node cloneNode([Default=Undefined] optional boolean deep); | 35 [Custom] Node cloneNode([Default=Undefined] optional boolean deep); |
| 38 [Suppressed] readonly attribute Element nextElementSibling; | 36 [DartSuppress] readonly attribute Element nextElementSibling; |
| 39 [Suppressed] readonly attribute Element previousElementSibling; | 37 [DartSuppress] readonly attribute Element previousElementSibling; |
| 40 }; | 38 }; |
| 41 | 39 |
| 42 [Supplemental] | 40 [DartSupplemental] |
| 43 interface ScriptProcessorNode { | 41 interface ScriptProcessorNode { |
| 44 [Suppressed] attribute EventListener onaudioprocess; | 42 [DartSuppress] attribute EventListener onaudioprocess; |
| 45 [Custom] void _setEventListener(EventListener eventListener); | 43 [Custom] void _setEventListener(EventListener eventListener); |
| 46 }; | 44 }; |
| 47 | 45 |
| 48 /* | 46 /* |
| 49 // TODO(vsm): How should this interact with the new ChildNode and | 47 // TODO(vsm): How should this interact with the new ChildNode and |
| 50 // ParentNode interfaces? | 48 // ParentNode interfaces? |
| 51 // Force ElementTraversal. WebKit defines these directly. | 49 // Force ElementTraversal. WebKit defines these directly. |
| 52 interface ElementTraversal : ChildNode, ParentNode { | 50 interface ElementTraversal : ChildNode, ParentNode { |
| 53 readonly attribute unsigned long childElementCount; | 51 readonly attribute unsigned long childElementCount; |
| 54 readonly attribute Element firstElementChild; | 52 readonly attribute Element firstElementChild; |
| 55 readonly attribute Element lastElementChild; | 53 readonly attribute Element lastElementChild; |
| 56 readonly attribute Element nextElementSibling; | 54 readonly attribute Element nextElementSibling; |
| 57 readonly attribute Element previousElementSibling; | 55 readonly attribute Element previousElementSibling; |
| 58 }; | 56 }; |
| 59 Element implements ElementTraversal; | 57 Element implements ElementTraversal; |
| 60 */ | 58 */ |
| 61 | 59 |
| 62 [Supplemental] | 60 [DartSupplemental] |
| 63 interface Element { | 61 interface Element { |
| 64 readonly attribute Element nextElementSibling; | 62 readonly attribute Element nextElementSibling; |
| 65 readonly attribute Element previousElementSibling; | 63 readonly attribute Element previousElementSibling; |
| 66 }; | 64 }; |
| 67 | 65 |
| 68 [Supplemental] | 66 [DartSupplemental] |
| 69 interface CharacterData { | 67 interface CharacterData { |
| 70 readonly attribute Element nextElementSibling; | 68 readonly attribute Element nextElementSibling; |
| 71 readonly attribute Element previousElementSibling; | 69 readonly attribute Element previousElementSibling; |
| 72 }; | 70 }; |
| 73 | 71 |
| 74 [Callback] | 72 [DartCallback] |
| 75 interface TimeoutHandler { | 73 interface TimeoutHandler { |
| 76 void handleEvent(); | 74 void handleEvent(); |
| 77 }; | 75 }; |
| 78 | 76 |
| 79 // FIXME(leafp): This is a temporary hack to get things running while | 77 // FIXME(leafp): This is a temporary hack to get things running while |
| 80 // we are still generating _blink from the dart side idl files. | 78 // we are still generating _blink from the dart side idl files. |
| 81 // Once we are up and running generating dart:_blink in dartium | 79 // Once we are up and running generating dart:_blink in dartium |
| 82 // this should go away. | 80 // this should go away. |
| 83 [Supplemental] | 81 [DartSupplemental] |
| 84 interface URL { | 82 interface URL { |
| 85 [Suppressed] static DOMString createObjectURL(WebKitMediaSource source); | 83 [DartSuppress] static DOMString createObjectURL(WebKitMediaSource source); |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 [Supplemental] | 86 [DartSupplemental] |
| 89 interface CanvasRenderingContext2D { | 87 interface CanvasRenderingContext2D { |
| 90 [DartName=createImageDataFromImageData] ImageData createImageData(ImageData im
agedata); | 88 [DartName=createImageDataFromImageData] ImageData createImageData(ImageData im
agedata); |
| 91 | 89 |
| 92 // Removed in 1916. | 90 // Removed in 1916. |
| 93 [Suppressed] void drawSystemFocusRing(Element element); | 91 [DartSuppress] void drawSystemFocusRing(Element element); |
| 94 | 92 |
| 95 [Suppressed] void assert(boolean condition); | 93 [DartSuppress] void assert(boolean condition); |
| 96 | 94 |
| 97 [Suppressed] attribute boolean webkitImageSmoothingEnabled; | 95 [DartSuppress] attribute boolean webkitImageSmoothingEnabled; |
| 98 | 96 |
| 99 // Removed in 1985. | 97 // Removed in 1985. |
| 100 [Suppressed] readonly attribute float webkitBackingStorePixelRatio; | 98 [DartSuppress] readonly attribute float webkitBackingStorePixelRatio; |
| 101 }; | |
| 102 | |
| 103 [Supplemental] | |
| 104 interface ConsoleBase { | |
| 105 [Suppressed] void assert(boolean condition); | |
| 106 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition)
; | |
| 107 }; | 99 }; |
| 108 | 100 |
| 109 interface HTMLCanvasElement { | 101 interface HTMLCanvasElement { |
| 110 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] DOMString type); | 102 [DartSuppress] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=N
ullString,Default=Undefined] DOMString type); |
| 111 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr
ing,Default=Undefined] DOMString type, optional float quality); | 103 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr
ing,Default=Undefined] DOMString type, optional float quality); |
| 112 | |
| 113 [Suppressed] any getContext(DOMString contextId); | |
| 114 [Custom] CanvasRenderingContext getContext(DOMString contextId, optional Dicti
onary attrs); | |
| 115 }; | 104 }; |
| 116 | 105 |
| 117 [Supplemental] | 106 [DartSupplemental] |
| 118 interface HTMLOptionsCollection { | 107 interface HTMLOptionsCollection { |
| 119 [Suppressed] void add(optional HTMLOptionElement element, optional long before
); | 108 [DartSuppress] void add(optional HTMLOptionElement element, optional long befo
re); |
| 120 [Suppressed] void remove(HTMLOptionElement option); // Non standard. | 109 [DartSuppress] void remove(HTMLOptionElement option); // Non standard. |
| 121 }; | 110 }; |
| 122 | 111 |
| 123 [Supplemental] | 112 [DartSupplemental] |
| 124 interface HTMLSelectElement { | 113 interface HTMLSelectElement { |
| 125 [Suppressed] void add([Default=Undefined] HTMLElement element, [Default=Undefi
ned] HTMLElement before); | 114 [DartSuppress] void add([Default=Undefined] HTMLElement element, [Default=Unde
fined] HTMLElement before); |
| 126 [Suppressed, Custom] void remove(); | 115 [DartSuppress, Custom] void remove(); |
| 127 [Suppressed] void remove(long index); | 116 [DartSuppress] void remove(long index); |
| 128 [Suppressed] void remove(HTMLOptionElement option); // Non standard. | 117 [DartSuppress] void remove(HTMLOptionElement option); // Non standard. |
| 129 }; | 118 }; |
| 130 | 119 |
| 131 [Supplemental] | 120 [DartSupplemental] |
| 132 interface ImageData { | |
| 133 [Custom] readonly attribute int[] data; | |
| 134 }; | |
| 135 | |
| 136 [Supplemental] | |
| 137 interface HTMLMediaElement { | 121 interface HTMLMediaElement { |
| 138 // Adding media events. | 122 // Adding media events. |
| 139 attribute EventListener oncanplay; | 123 attribute EventListener oncanplay; |
| 140 attribute EventListener oncanplaythrough; | 124 attribute EventListener oncanplaythrough; |
| 141 attribute EventListener ondurationchange; | 125 attribute EventListener ondurationchange; |
| 142 attribute EventListener onemptied; | 126 attribute EventListener onemptied; |
| 143 attribute EventListener onended; | 127 attribute EventListener onended; |
| 144 attribute EventListener onloadeddata; | 128 attribute EventListener onloadeddata; |
| 145 attribute EventListener onloadedmetadata; | 129 attribute EventListener onloadedmetadata; |
| 146 attribute EventListener onloadstart; | 130 attribute EventListener onloadstart; |
| 147 attribute EventListener onpause; | 131 attribute EventListener onpause; |
| 148 attribute EventListener onplay; | 132 attribute EventListener onplay; |
| 149 attribute EventListener onplaying; | 133 attribute EventListener onplaying; |
| 150 attribute EventListener onprogress; | 134 attribute EventListener onprogress; |
| 151 attribute EventListener onratechange; | 135 attribute EventListener onratechange; |
| 152 attribute EventListener onseeked; | 136 attribute EventListener onseeked; |
| 153 attribute EventListener onseeking; | 137 attribute EventListener onseeking; |
| 154 attribute EventListener onshow; | 138 attribute EventListener onshow; |
| 155 attribute EventListener onstalled; | 139 attribute EventListener onstalled; |
| 156 attribute EventListener onsuspend; | 140 attribute EventListener onsuspend; |
| 157 attribute EventListener ontimeupdate; | 141 attribute EventListener ontimeupdate; |
| 158 attribute EventListener onvolumechange; | 142 attribute EventListener onvolumechange; |
| 159 attribute EventListener onwaiting; | 143 attribute EventListener onwaiting; |
| 160 }; | 144 }; |
| 161 | 145 |
| 162 [Supplemental] | 146 [DartSupplemental] |
| 163 interface RTCPeerConnection { | 147 interface RTCPeerConnection { |
| 164 [Suppressed, RaisesException] void addIceCandidate(RTCIceCandidate candidate); | 148 [DartSuppress, RaisesException] void addIceCandidate(RTCIceCandidate candidate
); |
| 165 }; | 149 }; |
| 166 | 150 |
| 167 [Supplemental] | 151 [DartSupplemental] |
| 168 interface WebGLContextEvent { | 152 interface WebGLContextEvent { |
| 169 [Suppressed] void initEvent(optional DOMString eventTypeArg, | 153 [DartSuppress] void initEvent(optional DOMString eventTypeArg, |
| 170 optional boolean canBubbleArg, | 154 optional boolean canBubbleArg, |
| 171 optional boolean cancelableArg, | 155 optional boolean cancelableArg, |
| 172 optional DOMString statusMessageArg); | 156 optional DOMString statusMessageArg); |
| 173 }; | 157 }; |
| 174 | 158 |
| 175 [Supplemental] | 159 [DartSupplemental] |
| 176 interface WebGLRenderingContext { | 160 interface WebGLRenderingContext { |
| 177 | 161 |
| 178 //void compressedTexImage2D(unsigned long target, long level, unsigned
long internalformat, unsigned long width, unsigned long height, long border, un
signed long imageSize, const void* data); | 162 //void compressedTexImage2D(unsigned long target, long level, unsigned
long internalformat, unsigned long width, unsigned long height, long border, un
signed long imageSize, const void* data); |
| 179 //void compressedTexSubImage2D(unsigned long target, long level, long
xoffset, long yoffset, unsigned long width, unsigned long height, unsigned long
format, unsigned long imageSize, const void* data); | 163 //void compressedTexSubImage2D(unsigned long target, long level, long
xoffset, long yoffset, unsigned long width, unsigned long height, unsigned long
format, unsigned long imageSize, const void* data); |
| 180 | 164 |
| 181 [Custom] any getBufferParameter(unsigned long target, unsigned long pname); | 165 [Custom] any getBufferParameter(unsigned long target, unsigned long pname); |
| 182 [Suppressed, StrictTypeChecking, Custom] void getBufferParameter(); | 166 [DartSuppress, DartStrictTypeChecking, Custom] void getBufferParameter(); |
| 183 | 167 |
| 184 [Custom] any getFramebufferAttachmentParameter(unsigned long target, unsigned
long attachment, unsigned long pname); | 168 [Custom] any getFramebufferAttachmentParameter(unsigned long target, unsigned
long attachment, unsigned long pname); |
| 185 [Suppressed, StrictTypeChecking, Custom] void getFramebufferAttachmentParamete
r(); | 169 [DartSuppress, DartStrictTypeChecking, Custom] void getFramebufferAttachmentPa
rameter(); |
| 186 | 170 |
| 187 [Custom] any getParameter(unsigned long pname); | 171 [Custom] any getParameter(unsigned long pname); |
| 188 [Suppressed, StrictTypeChecking, Custom] void getParameter(); | 172 [DartSuppress, DartStrictTypeChecking, Custom] void getParameter(); |
| 189 | 173 |
| 190 [Custom] any getProgramParameter(WebGLProgram program, unsigned long pname); | 174 [Custom] any getProgramParameter(WebGLProgram program, unsigned long pname); |
| 191 [Suppressed, StrictTypeChecking, Custom] void getProgramParameter(); | 175 [DartSuppress, DartStrictTypeChecking, Custom] void getProgramParameter(); |
| 192 | 176 |
| 193 [Custom] any getRenderbufferParameter(unsigned long target, unsigned long pnam
e); | 177 [Custom] any getRenderbufferParameter(unsigned long target, unsigned long pnam
e); |
| 194 [Suppressed, StrictTypeChecking, Custom] void getRenderbufferParameter(); | 178 [DartSuppress, DartStrictTypeChecking, Custom] void getRenderbufferParameter()
; |
| 195 | 179 |
| 196 [Custom] any getShaderParameter(WebGLShader shader, unsigned long pname); | 180 [Custom] any getShaderParameter(WebGLShader shader, unsigned long pname); |
| 197 [Suppressed, StrictTypeChecking, Custom] void getShaderParameter(); | 181 [DartSuppress, DartStrictTypeChecking, Custom] void getShaderParameter(); |
| 198 | 182 |
| 199 // TBD | 183 // TBD |
| 200 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, G
Lint* range, GLint* precision); | 184 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, G
Lint* range, GLint* precision); |
| 201 | 185 |
| 202 [Custom] any getExtension(DOMString name); | 186 [Custom] any getExtension(DOMString name); |
| 203 [Suppressed, StrictTypeChecking, Custom] void getExtension(DOMString name); | 187 [DartSuppress, DartStrictTypeChecking, Custom] void getExtension(DOMString nam
e); |
| 204 [Suppressed, StrictTypeChecking, Custom] void getSupportedExtensions(); | 188 [DartSuppress, DartStrictTypeChecking, Custom] void getSupportedExtensions(); |
| 205 | 189 |
| 206 [Custom] any getTexParameter(unsigned long target, unsigned long pname); | 190 [Custom] any getTexParameter(unsigned long target, unsigned long pname); |
| 207 [Suppressed, StrictTypeChecking, Custom] void getTexParameter(); | 191 [DartSuppress, DartStrictTypeChecking, Custom] void getTexParameter(); |
| 208 | 192 |
| 209 [Custom] any getUniform(WebGLProgram program, WebGLUniformLocation location); | 193 [Custom] any getUniform(WebGLProgram program, WebGLUniformLocation location); |
| 210 [Suppressed, StrictTypeChecking, Custom] void getUniform(); | 194 [DartSuppress, DartStrictTypeChecking, Custom] void getUniform(); |
| 211 | 195 |
| 212 [Custom] any getVertexAttrib(unsigned long index, unsigned long pname); | 196 [Custom] any getVertexAttrib(unsigned long index, unsigned long pname); |
| 213 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); | 197 [DartSuppress, DartStrictTypeChecking, Custom] void getVertexAttrib(); |
| 214 }; | 198 }; |
| 215 | 199 |
| 216 // TODO(vsm): Define new names for these (see b/4436830). | 200 // TODO(vsm): Define new names for these (see b/4436830). |
| 217 [Supplemental] | 201 [DartSupplemental] |
| 218 interface IDBCursor { | 202 interface IDBCursor { |
| 219 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai
sesException] void continue([ForceOptional] optional any key); | 203 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai
sesException] void continue([DartForceOptional] optional any key); |
| 220 }; | 204 }; |
| 221 [Supplemental] | 205 [DartSupplemental] |
| 222 interface IDBIndex { | 206 interface IDBIndex { |
| 223 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default=
Undefined] optional any key, [ForceOptional] optional DOMString direction); | 207 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default=
Undefined] optional any key, [DartForceOptional] optional DOMString direction); |
| 224 | 208 |
| 225 [CallWith=ExecutionContext, RaisesException] IDBRequest openKeyCursor([Defau
lt=Undefined] optional any key, [ForceOptional] optional DOMString direction); | 209 [CallWith=ExecutionContext, RaisesException] IDBRequest openKeyCursor([Defau
lt=Undefined] optional any key, [DartForceOptional] optional DOMString direction
); |
| 226 | 210 |
| 227 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef
ined] optional any key); | 211 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef
ined] optional any key); |
| 228 }; | 212 }; |
| 229 | 213 |
| 230 [Supplemental] | 214 [DartSupplemental] |
| 231 interface HTMLMediaElement { | 215 interface HTMLMediaElement { |
| 232 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un
defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, ForceOptional] opt
ional DOMString keySystem); | 216 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un
defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, DartForceOptional]
optional DOMString keySystem); |
| 233 }; | 217 }; |
| 234 | 218 |
| 235 [Supplemental] | 219 [DartSupplemental] |
| 236 interface IDBKeyRange { | 220 interface IDBKeyRange { |
| 237 [DartName=only_] static IDBKeyRange only(any value); | 221 [DartName=only_] static IDBKeyRange only(any value); |
| 238 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [ForceOptional
] optional boolean open); | 222 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [DartForceOpti
onal] optional boolean open); |
| 239 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [ForceOptional
] optional boolean open); | 223 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [DartForceOpti
onal] optional boolean open); |
| 240 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [ForceOptiona
l] optional boolean lowerOpen, [ForceOptional] optional boolean upperOpen); | 224 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [DartForceOpt
ional] optional boolean lowerOpen, [DartForceOptional] optional boolean upperOpe
n); |
| 241 }; | 225 }; |
| 242 | 226 |
| 243 [Supplemental] | 227 [DartSupplemental] |
| 244 interface IDBObjectStore { | 228 interface IDBObjectStore { |
| 245 [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [ForceOpti
onal] optional any key); | 229 [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [DartForce
Optional] optional any key); |
| 246 [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [ForceOpti
onal] optional any key); | 230 [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [DartForce
Optional] optional any key); |
| 247 # [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException]
IDBRequest delete(any key); | 231 // [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException
] IDBRequest delete(any key); |
| 248 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor(any key,
[ForceOptional] optional DOMString direction); | 232 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor(any key,
[DartForceOptional] optional DOMString direction); |
| 249 [CallWith=ExecutionContext, RaisesException] IDBRequest count(any key); | 233 [CallWith=ExecutionContext, RaisesException] IDBRequest count(any key); |
| 250 }; | 234 }; |
| 251 | 235 |
| 252 interface EntrySync { | 236 interface EntrySync { |
| 253 // Native implementation is declared to return EntrySync. | 237 // Native implementation is declared to return EntrySync. |
| 254 [Suppressed] DirectoryEntrySync getParent(); | 238 [DartSuppress] DirectoryEntrySync getParent(); |
| 255 EntrySync getParent(); | 239 EntrySync getParent(); |
| 256 }; | 240 }; |
| 257 | 241 |
| 258 | 242 |
| 259 [Supplemental, | 243 [DartSupplemental, |
| 260 CustomConstructor, | 244 CustomConstructor, |
| 261 Constructor(Array blobParts, optional DOMString type, optional DOMString endin
gs) | 245 Constructor(Array blobParts, optional DOMString type, optional DOMString endin
gs) |
| 262 ] | 246 ] |
| 263 interface Blob { | 247 interface Blob { |
| 264 }; | 248 }; |
| 265 | 249 |
| 266 [Supplemental, | 250 [DartSupplemental, |
| 267 Constructor(float x, float y) | 251 Constructor(float x, float y) |
| 268 ] | 252 ] |
| 269 interface WebKitPoint { | 253 interface WebKitPoint { |
| 270 }; | 254 }; |
| 271 | 255 |
| 272 [Supplemental, Callback] // Add missing Callback attribute. | 256 [DartSupplemental, DartCallback] // Add missing Callback attribute. |
| 273 interface VoidCallback { | 257 interface VoidCallback { |
| 274 }; | 258 }; |
| 275 | 259 |
| 276 interface SVGNumber { | 260 interface SVGNumber { |
| 277 [StrictTypeChecking, Custom] attribute float value; | 261 [DartStrictTypeChecking, Custom] attribute float value; |
| 278 }; | 262 }; |
| 279 | 263 |
| 280 // Keep it in to generate Dart code, C++ implementation is filterd out in genera
tor. | 264 // Keep it in to generate Dart code, C++ implementation is filterd out in genera
tor. |
| 281 [ | 265 [ |
| 282 Callback | 266 DartCallback |
| 283 ] interface MutationCallback { | 267 ] interface MutationCallback { |
| 284 [Custom] boolean handleEvent(MutationRecordArray mutations, MutationObserver o
bserver); | 268 [Custom] boolean handleEvent(MutationRecordArray mutations, MutationObserver o
bserver); |
| 285 }; | 269 }; |
| 286 | 270 |
| 287 [Supplemental, | 271 [DartSupplemental, |
| 288 CustomConstructor, | 272 CustomConstructor, |
| 289 // Provide missing constructor signature. | 273 // Provide missing constructor signature. |
| 290 Constructor(MutationCallback callback)] | 274 Constructor(MutationCallback callback)] |
| 291 interface MutationObserver { | 275 interface MutationObserver { |
| 292 }; | 276 }; |
| 293 | 277 |
| 294 [Supplemental, | 278 [DartSupplemental, |
| 295 CustomConstructor, | 279 CustomConstructor, |
| 296 // Provide missing constructor signature. | 280 // Provide missing constructor signature. |
| 297 Constructor(optional HTMLFormElement form)] | 281 Constructor(optional HTMLFormElement form)] |
| 298 interface FormData { | 282 interface FormData { |
| 299 [Suppressed] void append(DOMString name, DOMString value, DOMString filename); | 283 [DartSuppress] void append(DOMString name, DOMString value, DOMString filename
); |
| 300 [Custom] void append(DOMString name, DOMString value); | 284 [Custom] void append(DOMString name, DOMString value); |
| 301 [Custom] void append(DOMString name, Blob value, optional DOMString filename); | 285 [Custom] void append(DOMString name, Blob value, optional DOMString filename); |
| 302 }; | 286 }; |
| 303 | 287 |
| 304 [Supplemental] | 288 [DartSupplemental, Constructor] |
| 305 interface SQLResultSetRowList { | |
| 306 // Change the return type to Dictionary so that rows are exposed in the Dart | |
| 307 // API as a Maps, with the appropriate conversion in JavaScript. | |
| 308 [Suppressed] object item(unsigned long index); | |
| 309 [Custom] Dictionary item(unsigned long index); | |
| 310 }; | |
| 311 | |
| 312 [Supplemental, Constructor] | |
| 313 interface XMLHttpRequest { | 289 interface XMLHttpRequest { |
| 314 [Custom] void send(); | 290 [Custom] void send(); |
| 315 [Custom] void send(ArrayBuffer data); // FIXME: this should be eventually dep
recated. | 291 [Custom] void send(ArrayBuffer data); // FIXME: this should be eventually dep
recated. |
| 316 [Custom] void send(ArrayBufferView data); | 292 [Custom] void send(ArrayBufferView data); |
| 317 [Custom] void send(Blob data); | 293 [Custom] void send(Blob data); |
| 318 [Custom] void send(Document data); | 294 [Custom] void send(Document data); |
| 319 [Custom] void send([StrictTypeChecking] DOMString data); | 295 [Custom] void send([DartStrictTypeChecking] DOMString data); |
| 320 [Custom] void send(FormData data); | 296 [Custom] void send(FormData data); |
| 321 }; | 297 }; |
| 322 | 298 |
| 323 [Suppressed] | 299 [DartSuppress] |
| 324 interface AbstractView {}; | 300 interface AbstractView {}; |
| 325 | 301 |
| 326 | |
| 327 interface InjectedScriptHost { | 302 interface InjectedScriptHost { |
| 328 [Custom] void inspect(any objectId, any hints); | 303 [Custom] void inspect(any objectId, any hints); |
| 329 [Suppressed, Custom] any inspectedObject(long num); | 304 [DartSuppress, Custom] any inspectedObject(long num); |
| 330 [Suppressed, Custom] any internalConstructorName(any obj); | 305 [DartSuppress, Custom] any internalConstructorName(any obj); |
| 331 [Suppressed, Custom] boolean isHTMLAllCollection(any obj); | 306 [DartSuppress, Custom] boolean isHTMLAllCollection(any obj); |
| 332 [Suppressed, Custom] DOMString type(any obj); | 307 [DartSuppress, Custom] DOMString type(any obj); |
| 333 [Suppressed, Custom] any functionDetails(any obj); | 308 [DartSuppress, Custom] any functionDetails(any obj); |
| 334 [Suppressed, Custom] any[] getInternalProperties(any obj); | 309 [DartSuppress, Custom] any[] getInternalProperties(any obj); |
| 335 [Suppressed, Custom] EventListener[] getEventListeners(EventTarget target); | 310 [DartSuppress, Custom] EventListener[] getEventListeners(EventTarget target)
; |
| 336 [Suppressed, Custom] any evaluate(DOMString text); | 311 [DartSuppress, Custom] any evaluate(DOMString text); |
| 337 [Suppressed, Custom] void debugFunction(any fn); | 312 [DartSuppress, Custom] void debugFunction(any fn); |
| 338 [Suppressed, Custom] void undebugFunction(any fn); | 313 [DartSuppress, Custom] void undebugFunction(any fn); |
| 339 [Suppressed, Custom] void monitorFunction(any fn); | 314 [DartSuppress, Custom] void monitorFunction(any fn); |
| 340 [Suppressed, Custom] void unmonitorFunction(any fn); | 315 [DartSuppress, Custom] void unmonitorFunction(any fn); |
| 341 | 316 |
| 342 // Only declarative scope (local, with and catch) is accepted. Returns undef
ined. | 317 // Only declarative scope (local, with and catch) is accepted. Returns undef
ined. |
| 343 [Suppressed, Custom] any setFunctionVariableValue(any functionObject, long s
copeIndex, DOMString variableName, any newValue); | 318 [DartSuppress, Custom] any setFunctionVariableValue(any functionObject, long
scopeIndex, DOMString variableName, any newValue); |
| 344 }; | 319 }; |
| 345 | 320 |
| 346 | 321 |
| 347 [Suppressed] | |
| 348 interface InspectorFrontendHost {}; | |
| 349 | 322 |
| 350 | 323 [DartSuppress] |
| 351 [Suppressed] | |
| 352 interface JavaScriptCallFrame {}; | 324 interface JavaScriptCallFrame {}; |
| 353 | 325 |
| 354 | 326 |
| 355 [Supplemental] | 327 [DartSupplemental] |
| 356 interface Location { | 328 interface Location { |
| 357 [Custom=Setter] attribute DOMString href; | 329 [Custom=Setter] attribute DOMString href; |
| 358 | 330 |
| 359 [Custom] void assign(optional DOMString url); | 331 [Custom] void assign(optional DOMString url); |
| 360 [Custom] void replace([Default=Undefined] optional DOMString url); | 332 [Custom] void replace([Default=Undefined] optional DOMString url); |
| 361 [Custom] void reload(); | 333 [Custom] void reload(); |
| 362 | 334 |
| 363 // URI decomposition attributes | 335 // URI decomposition attributes |
| 364 [Custom=Setter] attribute DOMString protocol; | 336 [Custom=Setter] attribute DOMString protocol; |
| 365 [Custom=Setter] attribute DOMString host; | 337 [Custom=Setter] attribute DOMString host; |
| 366 [Custom=Setter] attribute DOMString hostname; | 338 [Custom=Setter] attribute DOMString hostname; |
| 367 [Custom=Setter] attribute DOMString port; | 339 [Custom=Setter] attribute DOMString port; |
| 368 [Custom=Setter] attribute DOMString pathname; | 340 [Custom=Setter] attribute DOMString pathname; |
| 369 [Custom=Setter] attribute DOMString search; | 341 [Custom=Setter] attribute DOMString search; |
| 370 [Custom=Setter] attribute DOMString hash; | 342 [Custom=Setter] attribute DOMString hash; |
| 371 }; | 343 }; |
| 372 | 344 |
| 373 // TODO(jacobr): reenable these new Blink features. | 345 // TODO(jacobr): reenable these new Blink features. |
| 374 [Suppressed] | 346 [DartSuppress] |
| 375 interface ImageBitmapFactories {}; | 347 interface ImageBitmapFactories {}; |
| 376 | 348 |
| 377 // See https://chromiumcodereview.appspot.com/15901002 for the V8 implementation
of | 349 // See https://chromiumcodereview.appspot.com/15901002 for the V8 implementation
of |
| 378 // TextEncoder/TextDecoder | 350 // TextEncoder/TextDecoder |
| 379 [Suppressed] | 351 [DartSuppress] |
| 380 interface TextEncoder {}; | 352 interface TextEncoder {}; |
| 381 | 353 |
| 382 [Suppressed] | 354 [DartSuppress] |
| 383 interface TextDecoder {}; | 355 interface TextDecoder {}; |
| 384 | 356 |
| 385 [Supplemental] | 357 [DartSupplemental] |
| 386 interface Window : EventTarget {}; | 358 interface Window : EventTarget { |
| 359 [DartSuppress] void alert(); |
| 360 [DartSuppress] void alert(DOMString message); |
| 361 void alert(optional DOMString message); |
| 387 | 362 |
| 388 [Suppressed] | 363 [DartSuppress] void scrollBy(long x, long y); |
| 364 [DartSuppress] void scrollBy(long x, long y, Dictionary scrollOptions); |
| 365 [RaisesException] void scrollBy(long x, long y, optional Dictionary scrollOpti
ons); |
| 366 |
| 367 [DartSuppress] void scrollTo(long x, long y); |
| 368 [DartSuppress] void scrollTo(long x, long y, Dictionary scrollOptions); |
| 369 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOpti
ons); |
| 370 |
| 371 [DartSuppress] void scroll(long x, long y); |
| 372 [DartSuppress] void scroll(long x, long y, Dictionary scrollOptions); |
| 373 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOption
s); |
| 374 }; |
| 375 |
| 376 [DartSuppress] |
| 389 interface Promise {}; | 377 interface Promise {}; |
| 390 | 378 |
| 391 [Supplemental] | 379 [DartSupplemental] interface CanvasRenderingContext2D { |
| 392 interface Screen { | 380 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy); |
| 393 [Suppressed] | 381 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); |
| 394 boolean lockOrientation(sequence<DOMString> orientations); | 382 [DartSuppress] ImageData webkitGetImageDataHD(float sx, float sy, float sw,
float sh); |
| 395 }; | 383 }; |
| 396 | 384 |
| 397 [Supplemental] interface CanvasRenderingContext2D { | 385 [DartSupplemental] interface AudioParam { |
| 398 [Suppressed] void webkitPutImageDataHD(ImageData? imagedata, float dx, float
dy); | 386 [DartSuppress] void setTargetValueAtTime(float target, double time, double t
imeConstant); |
| 399 [Suppressed] void webkitPutImageDataHD(ImageData? imagedata, float dx, float
dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); | |
| 400 [Suppressed] ImageData webkitGetImageDataHD(float sx, float sy, float sw, fl
oat sh); | |
| 401 [Suppressed] attribute Path currentPath; | |
| 402 }; | |
| 403 | |
| 404 [Supplemental] interface AudioParam { | |
| 405 [Suppressed] void setTargetValueAtTime(float target, double time, double tim
eConstant); | |
| 406 void setTargetAtTime(float target, double time, double timeConstant); | 387 void setTargetAtTime(float target, double time, double timeConstant); |
| 407 }; | 388 }; |
| 408 | 389 |
| 409 [Supplemental] interface AudioContext { | 390 [DartSupplemental] interface AudioContext { |
| 410 // Number of AudioBufferSourceNodes that are currently playing. | 391 // Number of AudioBufferSourceNodes that are currently playing. |
| 411 [Suppressed] readonly attribute unsigned long activeSourceCount; | 392 [DartSuppress] readonly attribute unsigned long activeSourceCount; |
| 412 [Suppressed] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSi
ze, optional unsigned long numberOfInputChannels, optional unsigned long numberO
fOutputChannels); | 393 [DartSuppress] ScriptProcessorNode createJavaScriptNode(unsigned long buffer
Size, optional unsigned long numberOfInputChannels, optional unsigned long numbe
rOfOutputChannels); |
| 413 [Suppressed] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMono
); | 394 [DartSuppress] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMo
no); |
| 414 [Suppressed] GainNode createGainNode(); | 395 [DartSuppress] GainNode createGainNode(); |
| 415 [Suppressed] DelayNode createDelayNode(optional double maxDelayTime); | 396 [DartSuppress] DelayNode createDelayNode(optional double maxDelayTime); |
| 416 }; | 397 }; |
| 417 | 398 |
| 418 [Supplemental] interface HTMLInputElement { | 399 [DartSupplemental] interface HTMLInputElement { |
| 419 [Suppressed] attribute boolean webkitSpeech; | 400 [DartSuppress] attribute boolean webkitSpeech; |
| 420 [Suppressed] attribute boolean webkitGrammar; | 401 [DartSuppress] attribute boolean webkitGrammar; |
| 421 }; | 402 }; |
| 422 | 403 |
| 423 [Supplemental] interface ShadowRoot { | 404 [DartSupplemental] interface ShadowRoot { |
| 424 [Suppressed] attribute boolean applyAuthorStyles; | 405 [DartSuppress] attribute boolean applyAuthorStyles; |
| 425 }; | 406 }; |
| 426 | 407 |
| 427 [Supplemental] interface BeforeLoadEvent { | 408 [DartSupplemental] interface BeforeLoadEvent { |
| 428 [Suppressed] readonly attribute DOMString url; | 409 [DartSuppress] readonly attribute DOMString url; |
| 429 }; | 410 }; |
| 430 | 411 |
| 431 [Supplemental] interface OscillatorNode { | 412 [DartSupplemental] interface OscillatorNode { |
| 432 [Suppressed] readonly attribute unsigned short playbackState; | 413 [DartSuppress] readonly attribute unsigned short playbackState; |
| 433 }; | 414 }; |
| 434 | 415 |
| 435 [Supplemental] interface SVGElementInstance { | 416 [DartSupplemental] interface SVGElementInstance { |
| 436 [Suppressed] readonly attribute SVGElementInstanceList childNodes; | 417 [DartSuppress] readonly attribute SVGElementInstanceList childNodes; |
| 437 }; | 418 }; |
| 438 | 419 |
| 439 [Supplemental] interface TimedItem { | 420 [DartSupplemental] interface DOMImplementation { |
| 440 [Suppressed] readonly attribute Timing specified; | 421 [DartSuppress] |
| 441 }; | |
| 442 | |
| 443 [Supplemental] interface DOMImplementation { | |
| 444 [Suppressed] | |
| 445 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit
le, | 422 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit
le, |
| 446 [Default=Undefined] optional DOMString med
ia); | 423 [Default=Undefined] optional DOMString med
ia); |
| 447 }; | 424 }; |
| 448 | 425 |
| 449 [Supplemental] interface SVGSVGElement { | 426 [DartSupplemental] interface SVGSVGElement { |
| 450 [Suppressed] attribute DOMString contentStyleType; | 427 [DartSuppress] attribute DOMString contentStyleType; |
| 451 [Suppressed] attribute DOMString contentScriptType; | 428 [DartSuppress] attribute DOMString contentScriptType; |
| 452 }; | 429 }; |
| 453 | 430 |
| 454 [Supplemental] interface WorkerGlobalScope { | 431 [DartSupplemental] interface WorkerGlobalScope { |
| 455 [Suppressed] readonly attribute NotificationCenter webkitNotifications; | 432 [DartSuppress] readonly attribute NotificationCenter webkitNotifications; |
| 456 }; | 433 }; |
| 457 | 434 |
| 458 [Supplemental] interface AudioBuffer { | 435 [DartSupplemental] interface AudioBuffer { |
| 459 [Suppressed] attribute float gain; | 436 [DartSuppress] attribute float gain; |
| 460 }; | 437 }; |
| 461 | 438 |
| 462 [Supplemental] interface WorkerCrypto { | 439 [DartSupplemental] interface WorkerCrypto { |
| 463 [Suppressed] ArrayBufferView getRandomValues(ArrayBufferView array); | 440 [DartSuppress] ArrayBufferView getRandomValues(ArrayBufferView array); |
| 464 }; | 441 }; |
| 465 | 442 |
| 466 [Supplemental] interface HTMLFormElement { | 443 [DartSupplemental] interface HTMLFormElement { |
| 467 void requestAutocomplete([Default=Undefined] optional Dictionary details); | 444 void requestAutocomplete([Default=Undefined] optional Dictionary details); |
| 468 [Suppressed] void requestAutocomplete(); | 445 [DartSuppress] void requestAutocomplete(); |
| 469 }; | 446 }; |
| 470 | 447 |
| 471 [Supplemental] interface AudioBufferSourceNode { | 448 [DartSupplemental] interface AudioBufferSourceNode { |
| 472 [Suppressed] readonly attribute unsigned short playbackState; | 449 [DartSuppress] readonly attribute unsigned short playbackState; |
| 473 }; | 450 }; |
| 474 | 451 |
| 475 [Supplemental] interface SpeechInputResult { | 452 [DartSupplemental] interface AudioBufferSourceNode : AudioSourceNode { |
| 476 [Suppressed] readonly attribute DOMString utterance; | 453 [DartSuppress] readonly attribute AudioParam gain; |
| 477 [Suppressed] readonly attribute float confidence; | |
| 478 }; | 454 }; |
| 479 | 455 |
| 480 [Supplemental] interface SpeechInputEvent : Event { | 456 // Remove backward compatible operation requestPointerLock exist now too. |
| 481 [Suppressed] readonly attribute SpeechInputResultList results; | 457 [DartSupplemental] interface Element : Node { |
| 458 [DartSuppress] void webkitRequestPointerLock(); |
| 482 }; | 459 }; |
| 483 | 460 |
| 484 [Supplemental] interface AudioBufferSourceNode : AudioSourceNode { | 461 [DartSupplemental] interface CSSStyleDeclaration { |
| 485 [Suppressed] readonly attribute AudioParam gain; | 462 // Expose __propertyQuery__ a getter with a special operation in the IDL |
| 486 }; | 463 // when used with Custom=PropertyQuery will emit __propertyQuery__. |
| 487 | 464 [Custom=PropertyQuery] getter boolean (DOMString name); |
| 488 [Supplemental] | |
| 489 interface CSSStyleDeclaration { | |
| 490 [Supplemental] boolean __propertyQuery__(DOMString name); | |
| 491 }; | 465 }; |
| 492 | 466 |
| 493 Element implements GlobalEventHandlers; | 467 Element implements GlobalEventHandlers; |
| OLD | NEW |