JS IDL2K better callbacks support + bugfixes according to review

This commit is contained in:
Sergey Mashkov
2015-05-13 15:03:11 +03:00
committed by Sergey Mashkov
parent a11e0a84b5
commit 0ce1edd417
26 changed files with 708 additions and 588 deletions
@@ -15,6 +15,7 @@ import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
@@ -77,7 +78,7 @@ native public trait WebGLShaderPrecisionFormat {
set(value) = noImpl
}
native public trait WebGLRenderingContext {
native public trait WebGLRenderingContext : RenderingContext {
var canvas: HTMLCanvasElement
get() = noImpl
set(value) = noImpl
@@ -89,7 +90,7 @@ native public trait WebGLRenderingContext {
set(value) = noImpl
fun getContextAttributes(): WebGLContextAttributes? = noImpl
fun isContextLost(): Boolean = noImpl
fun getSupportedExtensions(): Any? = noImpl
fun getSupportedExtensions(): Array<dynamic> = noImpl
fun getExtension(name: String): dynamic = noImpl
fun activeTexture(texture: Int): Unit = noImpl
fun attachShader(program: WebGLProgram?, shader: WebGLShader?): Unit = noImpl
@@ -113,8 +114,8 @@ native public trait WebGLRenderingContext {
fun clearStencil(s: Int): Unit = noImpl
fun colorMask(red: Boolean, green: Boolean, blue: Boolean, alpha: Boolean): Unit = noImpl
fun compileShader(shader: WebGLShader?): Unit = noImpl
fun compressedTexImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, data: dynamic): Unit = noImpl
fun compressedTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, data: dynamic): Unit = noImpl
fun compressedTexImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, data: ArrayBufferView): Unit = noImpl
fun compressedTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, data: ArrayBufferView): Unit = noImpl
fun copyTexImage2D(target: Int, level: Int, internalformat: Int, x: Int, y: Int, width: Int, height: Int, border: Int): Unit = noImpl
fun copyTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, x: Int, y: Int, width: Int, height: Int): Unit = noImpl
fun createBuffer(): WebGLBuffer? = noImpl
@@ -148,23 +149,23 @@ native public trait WebGLRenderingContext {
fun generateMipmap(target: Int): Unit = noImpl
fun getActiveAttrib(program: WebGLProgram?, index: Int): WebGLActiveInfo? = noImpl
fun getActiveUniform(program: WebGLProgram?, index: Int): WebGLActiveInfo? = noImpl
fun getAttachedShaders(program: WebGLProgram?): Any? = noImpl
fun getAttachedShaders(program: WebGLProgram?): Array<dynamic> = noImpl
fun getAttribLocation(program: WebGLProgram?, name: String): Int = noImpl
fun getBufferParameter(target: Int, pname: Int): Any? = noImpl
fun getParameter(pname: Int): Any? = noImpl
fun getBufferParameter(target: Int, pname: Int): dynamic = noImpl
fun getParameter(pname: Int): dynamic = noImpl
fun getError(): Int = noImpl
fun getFramebufferAttachmentParameter(target: Int, attachment: Int, pname: Int): Any? = noImpl
fun getProgramParameter(program: WebGLProgram?, pname: Int): Any? = noImpl
fun getFramebufferAttachmentParameter(target: Int, attachment: Int, pname: Int): dynamic = noImpl
fun getProgramParameter(program: WebGLProgram?, pname: Int): dynamic = noImpl
fun getProgramInfoLog(program: WebGLProgram?): String? = noImpl
fun getRenderbufferParameter(target: Int, pname: Int): Any? = noImpl
fun getShaderParameter(shader: WebGLShader?, pname: Int): Any? = noImpl
fun getRenderbufferParameter(target: Int, pname: Int): dynamic = noImpl
fun getShaderParameter(shader: WebGLShader?, pname: Int): dynamic = noImpl
fun getShaderPrecisionFormat(shadertype: Int, precisiontype: Int): WebGLShaderPrecisionFormat? = noImpl
fun getShaderInfoLog(shader: WebGLShader?): String? = noImpl
fun getShaderSource(shader: WebGLShader?): String? = noImpl
fun getTexParameter(target: Int, pname: Int): Any? = noImpl
fun getUniform(program: WebGLProgram?, location: WebGLUniformLocation?): Any? = noImpl
fun getTexParameter(target: Int, pname: Int): dynamic = noImpl
fun getUniform(program: WebGLProgram?, location: WebGLUniformLocation?): dynamic = noImpl
fun getUniformLocation(program: WebGLProgram?, name: String): WebGLUniformLocation? = noImpl
fun getVertexAttrib(index: Int, pname: Int): Any? = noImpl
fun getVertexAttrib(index: Int, pname: Int): dynamic = noImpl
fun getVertexAttribOffset(index: Int, pname: Int): Long = noImpl
fun hint(target: Int, mode: Int): Unit = noImpl
fun isBuffer(buffer: WebGLBuffer?): Boolean = noImpl
@@ -178,7 +179,7 @@ native public trait WebGLRenderingContext {
fun linkProgram(program: WebGLProgram?): Unit = noImpl
fun pixelStorei(pname: Int, param: Int): Unit = noImpl
fun polygonOffset(factor: Float, units: Float): Unit = noImpl
fun readPixels(x: Int, y: Int, width: Int, height: Int, format: Int, type: Int, pixels: dynamic): Unit = noImpl
fun readPixels(x: Int, y: Int, width: Int, height: Int, format: Int, type: Int, pixels: ArrayBufferView?): Unit = noImpl
fun renderbufferStorage(target: Int, internalformat: Int, width: Int, height: Int): Unit = noImpl
fun sampleCoverage(value: Float, invert: Boolean): Unit = noImpl
fun scissor(x: Int, y: Int, width: Int, height: Int): Unit = noImpl
@@ -189,56 +190,56 @@ native public trait WebGLRenderingContext {
fun stencilMaskSeparate(face: Int, mask: Int): Unit = noImpl
fun stencilOp(fail: Int, zfail: Int, zpass: Int): Unit = noImpl
fun stencilOpSeparate(face: Int, fail: Int, zfail: Int, zpass: Int): Unit = noImpl
fun texImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, format: Int, type: Int, pixels: dynamic): Unit = noImpl
fun texImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, format: Int, type: Int, pixels: ArrayBufferView?): Unit = noImpl
fun texImage2D(target: Int, level: Int, internalformat: Int, format: Int, type: Int, source: dynamic): Unit = noImpl
fun texParameterf(target: Int, pname: Int, param: Float): Unit = noImpl
fun texParameteri(target: Int, pname: Int, param: Int): Unit = noImpl
fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, type: Int, pixels: dynamic): Unit = noImpl
fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, type: Int, pixels: ArrayBufferView?): Unit = noImpl
fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, format: Int, type: Int, source: dynamic): Unit = noImpl
fun uniform1f(location: WebGLUniformLocation?, x: Float): Unit = noImpl
fun uniform1fv(location: WebGLUniformLocation?, v: Float32Array): Unit = noImpl
fun uniform1fv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform1fv(location: WebGLUniformLocation?, v: Array<Float>): Unit = noImpl
fun uniform1i(location: WebGLUniformLocation?, x: Int): Unit = noImpl
fun uniform1iv(location: WebGLUniformLocation?, v: Int32Array): Unit = noImpl
fun uniform1iv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform1iv(location: WebGLUniformLocation?, v: Array<Int>): Unit = noImpl
fun uniform2f(location: WebGLUniformLocation?, x: Float, y: Float): Unit = noImpl
fun uniform2fv(location: WebGLUniformLocation?, v: Float32Array): Unit = noImpl
fun uniform2fv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform2fv(location: WebGLUniformLocation?, v: Array<Float>): Unit = noImpl
fun uniform2i(location: WebGLUniformLocation?, x: Int, y: Int): Unit = noImpl
fun uniform2iv(location: WebGLUniformLocation?, v: Int32Array): Unit = noImpl
fun uniform2iv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform2iv(location: WebGLUniformLocation?, v: Array<Int>): Unit = noImpl
fun uniform3f(location: WebGLUniformLocation?, x: Float, y: Float, z: Float): Unit = noImpl
fun uniform3fv(location: WebGLUniformLocation?, v: Float32Array): Unit = noImpl
fun uniform3fv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform3fv(location: WebGLUniformLocation?, v: Array<Float>): Unit = noImpl
fun uniform3i(location: WebGLUniformLocation?, x: Int, y: Int, z: Int): Unit = noImpl
fun uniform3iv(location: WebGLUniformLocation?, v: Int32Array): Unit = noImpl
fun uniform3iv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform3iv(location: WebGLUniformLocation?, v: Array<Int>): Unit = noImpl
fun uniform4f(location: WebGLUniformLocation?, x: Float, y: Float, z: Float, w: Float): Unit = noImpl
fun uniform4fv(location: WebGLUniformLocation?, v: Float32Array): Unit = noImpl
fun uniform4fv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform4fv(location: WebGLUniformLocation?, v: Array<Float>): Unit = noImpl
fun uniform4i(location: WebGLUniformLocation?, x: Int, y: Int, z: Int, w: Int): Unit = noImpl
fun uniform4iv(location: WebGLUniformLocation?, v: Int32Array): Unit = noImpl
fun uniform4iv(location: WebGLUniformLocation?, v: Any): Unit = noImpl
fun uniform4iv(location: WebGLUniformLocation?, v: Array<Int>): Unit = noImpl
fun uniformMatrix2fv(location: WebGLUniformLocation?, transpose: Boolean, value: Float32Array): Unit = noImpl
fun uniformMatrix2fv(location: WebGLUniformLocation?, transpose: Boolean, value: Any): Unit = noImpl
fun uniformMatrix2fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array<Float>): Unit = noImpl
fun uniformMatrix3fv(location: WebGLUniformLocation?, transpose: Boolean, value: Float32Array): Unit = noImpl
fun uniformMatrix3fv(location: WebGLUniformLocation?, transpose: Boolean, value: Any): Unit = noImpl
fun uniformMatrix3fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array<Float>): Unit = noImpl
fun uniformMatrix4fv(location: WebGLUniformLocation?, transpose: Boolean, value: Float32Array): Unit = noImpl
fun uniformMatrix4fv(location: WebGLUniformLocation?, transpose: Boolean, value: Any): Unit = noImpl
fun uniformMatrix4fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array<Float>): Unit = noImpl
fun useProgram(program: WebGLProgram?): Unit = noImpl
fun validateProgram(program: WebGLProgram?): Unit = noImpl
fun vertexAttrib1f(indx: Int, x: Float): Unit = noImpl
fun vertexAttrib1fv(indx: Int, values: Float32Array): Unit = noImpl
fun vertexAttrib1fv(indx: Int, values: Any): Unit = noImpl
fun vertexAttrib1fv(indx: Int, values: Array<Float>): Unit = noImpl
fun vertexAttrib2f(indx: Int, x: Float, y: Float): Unit = noImpl
fun vertexAttrib2fv(indx: Int, values: Float32Array): Unit = noImpl
fun vertexAttrib2fv(indx: Int, values: Any): Unit = noImpl
fun vertexAttrib2fv(indx: Int, values: Array<Float>): Unit = noImpl
fun vertexAttrib3f(indx: Int, x: Float, y: Float, z: Float): Unit = noImpl
fun vertexAttrib3fv(indx: Int, values: Float32Array): Unit = noImpl
fun vertexAttrib3fv(indx: Int, values: Any): Unit = noImpl
fun vertexAttrib3fv(indx: Int, values: Array<Float>): Unit = noImpl
fun vertexAttrib4f(indx: Int, x: Float, y: Float, z: Float, w: Float): Unit = noImpl
fun vertexAttrib4fv(indx: Int, values: Float32Array): Unit = noImpl
fun vertexAttrib4fv(indx: Int, values: Any): Unit = noImpl
fun vertexAttrib4fv(indx: Int, values: Array<Float>): Unit = noImpl
fun vertexAttribPointer(indx: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Long): Unit = noImpl
fun viewport(x: Int, y: Int, width: Int, height: Int): Unit = noImpl
@@ -553,14 +554,14 @@ native public open class WebGLContextEventInit : EventInit() {
var statusMessage: String
}
native public open class ArrayBuffer(length: Int) {
native public open class ArrayBuffer(length: Int) : Transferable {
var byteLength: Int
get() = noImpl
set(value) = noImpl
fun slice(begin: Int, end: Int = noImpl): ArrayBuffer = noImpl
}
native public open class Int8Array(length: Int) {
native public open class Int8Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -576,7 +577,7 @@ native public open class Int8Array(length: Int) {
fun get(index: Int): Byte = noImpl
fun set(index: Int, value: Byte): Unit = noImpl
fun set(array: Int8Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Byte>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Int8Array = noImpl
companion object {
@@ -584,7 +585,7 @@ native public open class Int8Array(length: Int) {
}
}
native public open class Uint8Array(length: Int) {
native public open class Uint8Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -600,7 +601,7 @@ native public open class Uint8Array(length: Int) {
fun get(index: Int): Byte = noImpl
fun set(index: Int, value: Byte): Unit = noImpl
fun set(array: Uint8Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Byte>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Uint8Array = noImpl
companion object {
@@ -608,7 +609,7 @@ native public open class Uint8Array(length: Int) {
}
}
native public open class Uint8ClampedArray(length: Int) {
native public open class Uint8ClampedArray(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -624,7 +625,7 @@ native public open class Uint8ClampedArray(length: Int) {
fun get(index: Int): Byte = noImpl
fun set(index: Int, value: Byte): Unit = noImpl
fun set(array: Uint8ClampedArray, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Byte>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Uint8ClampedArray = noImpl
companion object {
@@ -632,7 +633,7 @@ native public open class Uint8ClampedArray(length: Int) {
}
}
native public open class Int16Array(length: Int) {
native public open class Int16Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -648,7 +649,7 @@ native public open class Int16Array(length: Int) {
fun get(index: Int): Short = noImpl
fun set(index: Int, value: Short): Unit = noImpl
fun set(array: Int16Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Short>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Int16Array = noImpl
companion object {
@@ -656,7 +657,7 @@ native public open class Int16Array(length: Int) {
}
}
native public open class Uint16Array(length: Int) {
native public open class Uint16Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -672,7 +673,7 @@ native public open class Uint16Array(length: Int) {
fun get(index: Int): Short = noImpl
fun set(index: Int, value: Short): Unit = noImpl
fun set(array: Uint16Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Short>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Uint16Array = noImpl
companion object {
@@ -680,7 +681,7 @@ native public open class Uint16Array(length: Int) {
}
}
native public open class Int32Array(length: Int) {
native public open class Int32Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -696,7 +697,7 @@ native public open class Int32Array(length: Int) {
fun get(index: Int): Int = noImpl
fun set(index: Int, value: Int): Unit = noImpl
fun set(array: Int32Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Int>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Int32Array = noImpl
companion object {
@@ -704,7 +705,7 @@ native public open class Int32Array(length: Int) {
}
}
native public open class Uint32Array(length: Int) {
native public open class Uint32Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -720,7 +721,7 @@ native public open class Uint32Array(length: Int) {
fun get(index: Int): Int = noImpl
fun set(index: Int, value: Int): Unit = noImpl
fun set(array: Uint32Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Int>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Uint32Array = noImpl
companion object {
@@ -728,7 +729,7 @@ native public open class Uint32Array(length: Int) {
}
}
native public open class Float32Array(length: Int) {
native public open class Float32Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -744,7 +745,7 @@ native public open class Float32Array(length: Int) {
fun get(index: Int): Float = noImpl
fun set(index: Int, value: Float): Unit = noImpl
fun set(array: Float32Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Float>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Float32Array = noImpl
companion object {
@@ -752,7 +753,7 @@ native public open class Float32Array(length: Int) {
}
}
native public open class Float64Array(length: Int) {
native public open class Float64Array(length: Int) : ArrayBufferView {
var length: Int
get() = noImpl
set(value) = noImpl
@@ -768,7 +769,7 @@ native public open class Float64Array(length: Int) {
fun get(index: Int): Double = noImpl
fun set(index: Int, value: Double): Unit = noImpl
fun set(array: Float64Array, offset: Int = noImpl): Unit = noImpl
fun set(array: dynamic, offset: Int = noImpl): Unit = noImpl
fun set(array: Array<Double>, offset: Int = noImpl): Unit = noImpl
fun subarray(start: Int, end: Int): Float64Array = noImpl
companion object {
@@ -776,7 +777,7 @@ native public open class Float64Array(length: Int) {
}
}
native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) {
native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView {
var buffer: ArrayBuffer
get() = noImpl
set(value) = noImpl
@@ -15,6 +15,7 @@ import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
@@ -444,7 +445,7 @@ native public trait CSSStyleDeclaration {
var flexWrap: String
get() = noImpl
set(value) = noImpl
var attribute: String
var cssFloat: String
get() = noImpl
set(value) = noImpl
var font: String
@@ -852,9 +853,6 @@ native public trait CSSStyleDeclaration {
var parentRule: CSSRule?
get() = noImpl
set(value) = noImpl
var cssFloat: String
get() = noImpl
set(value) = noImpl
var _dashed_attribute: String
get() = noImpl
set(value) = noImpl
@@ -15,6 +15,7 @@ import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
File diff suppressed because it is too large Load Diff
@@ -15,6 +15,7 @@ import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
@@ -15,6 +15,7 @@ import org.w3c.dom.parsing.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
@@ -15,6 +15,7 @@ import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
@@ -22,7 +23,7 @@ native public open class Headers(init: dynamic = noImpl) {
fun append(name: String, value: String): Unit = noImpl
fun delete(name: String): Unit = noImpl
fun get(name: String): String? = noImpl
fun getAll(name: String): Any = noImpl
fun getAll(name: String): Array<String> = noImpl
fun has(name: String): Boolean = noImpl
fun set(name: String, value: String): Unit = noImpl
}
@@ -15,10 +15,11 @@ import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
native public open class Blob {
native public open class Blob : ImageBitmapSource {
var size: Long
get() = noImpl
set(value) = noImpl
@@ -36,7 +37,7 @@ native public open class BlobPropertyBag {
var type: String = ""
}
native public open class File(fileBits: Any, fileName: String, options: FilePropertyBag = noImpl) : Blob() {
native public open class File(fileBits: Array<dynamic>, fileName: String, options: FilePropertyBag = noImpl) : Blob() {
var name: String
get() = noImpl
set(value) = noImpl
@@ -68,22 +69,22 @@ native public open class FileReader : EventTarget {
var error: dynamic
get() = noImpl
set(value) = noImpl
var onloadstart: (Event) -> Unit
var onloadstart: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onprogress: (Event) -> Unit
var onprogress: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onload: (Event) -> Unit
var onload: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onabort: (Event) -> Unit
var onabort: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: (Event) -> Unit
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onloadend: (Event) -> Unit
var onloadend: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun readAsArrayBuffer(blob: Blob): Unit = noImpl
@@ -15,6 +15,7 @@ import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.time.*
import org.w3c.workers.*
import org.w3c.xhr.*
@@ -22,10 +23,10 @@ native public open class Notification(title: String, options: NotificationOption
var permission: String
get() = noImpl
set(value) = noImpl
var onclick: (Event) -> Unit
var onclick: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: (Event) -> Unit
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var title: String
@@ -61,7 +62,7 @@ native public open class Notification(title: String, options: NotificationOption
var sticky: Boolean
get() = noImpl
set(value) = noImpl
var data: Any?
var data: dynamic
get() = noImpl
set(value) = noImpl
fun close(): Unit = noImpl
@@ -79,10 +80,7 @@ native public open class NotificationOptions {
var silent: Boolean = false
var noscreen: Boolean = false
var sticky: Boolean = false
var data: Any? = null
}
native public trait NotificationPermissionCallback {
var data: dynamic = null
}
native public open class GetNotificationOptions {
@@ -0,0 +1,25 @@
/*
* Generated file
* DO NOT EDIT
*
* See libraries/tools/idl2k for details
*/
package org.w3c.time
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.workers.*
import org.w3c.xhr.*
native public trait Performance {
fun now(): Double = noImpl
}
@@ -16,6 +16,7 @@ import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.xhr.*
native public trait ServiceWorkerRegistration : EventTarget {
@@ -31,7 +32,7 @@ native public trait ServiceWorkerRegistration : EventTarget {
var scope: String
get() = noImpl
set(value) = noImpl
var onupdatefound: (Event) -> Unit
var onupdatefound: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var APISpace: dynamic
@@ -51,22 +52,22 @@ native public trait ServiceWorkerGlobalScope : WorkerGlobalScope {
var registration: ServiceWorkerRegistration
get() = noImpl
set(value) = noImpl
var oninstall: (Event) -> Unit
var oninstall: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onactivate: (Event) -> Unit
var onactivate: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onfetch: (Event) -> Unit
var onfetch: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onmessage: (Event) -> Unit
var onmessage: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onfunctionalevent: (Event) -> Unit
var onfunctionalevent: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onnotificationclick: (Event) -> Unit
var onnotificationclick: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun skipWaiting(): dynamic = noImpl
@@ -82,13 +83,13 @@ native public trait ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker
var id: String
get() = noImpl
set(value) = noImpl
var onstatechange: (Event) -> Unit
var onstatechange: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: (Event) -> Unit
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun postMessage(message: Any?, transfer: Any = noImpl): Unit = noImpl
fun postMessage(message: dynamic, transfer: Array<Transferable> = noImpl): Unit = noImpl
}
native public trait ServiceWorkerContainer : EventTarget {
@@ -98,13 +99,13 @@ native public trait ServiceWorkerContainer : EventTarget {
var ready: dynamic
get() = noImpl
set(value) = noImpl
var oncontrollerchange: (Event) -> Unit
var oncontrollerchange: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: (Event) -> Unit
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onmessage: (Event) -> Unit
var onmessage: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun register(scriptURL: String, options: RegistrationOptions = noImpl): dynamic = noImpl
@@ -117,7 +118,7 @@ native public open class RegistrationOptions {
}
native public open class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = noImpl) : Event(type, eventInitDict) {
var data: Any?
var data: dynamic
get() = noImpl
set(value) = noImpl
var origin: String
@@ -129,18 +130,18 @@ native public open class ServiceWorkerMessageEvent(type: String, eventInitDict:
var source: UnionMessagePortOrServiceWorker?
get() = noImpl
set(value) = noImpl
var ports: dynamic
var ports: Array<dynamic>
get() = noImpl
set(value) = noImpl
fun initServiceWorkerMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrServiceWorker, portsArg: Any?): Unit = noImpl
fun initServiceWorkerMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: dynamic, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrServiceWorker, portsArg: Array<dynamic>): Unit = noImpl
}
native public open class ServiceWorkerMessageEventInit : EventInit() {
var data: Any?
var data: dynamic
var origin: String
var lastEventId: String
var source: UnionMessagePortOrServiceWorker?
var ports: Any
var ports: Array<MessagePort>
}
native public trait Client : UnionClientOrMessagePortOrServiceWorker {
@@ -153,7 +154,7 @@ native public trait Client : UnionClientOrMessagePortOrServiceWorker {
var id: String
get() = noImpl
set(value) = noImpl
fun postMessage(message: Any?, transfer: Any = noImpl): Unit = noImpl
fun postMessage(message: dynamic, transfer: Array<Transferable> = noImpl): Unit = noImpl
}
native public trait WindowClient : Client {
@@ -204,7 +205,7 @@ native public open class FetchEventInit : ExtendableEventInit() {
}
native public open class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = noImpl) : ExtendableEvent(type, eventInitDict) {
var data: Any?
var data: dynamic
get() = noImpl
set(value) = noImpl
var origin: String
@@ -216,25 +217,25 @@ native public open class ExtendableMessageEvent(type: String, eventInitDict: Ext
var source: UnionClientOrMessagePortOrServiceWorker?
get() = noImpl
set(value) = noImpl
var ports: dynamic
var ports: Array<dynamic>
get() = noImpl
set(value) = noImpl
fun initExtendableMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionClientOrMessagePortOrServiceWorker, portsArg: Any?): Unit = noImpl
fun initExtendableMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: dynamic, originArg: String, lastEventIdArg: String, sourceArg: UnionClientOrMessagePortOrServiceWorker, portsArg: Array<dynamic>): Unit = noImpl
}
native public open class ExtendableMessageEventInit : ExtendableEventInit() {
var data: Any?
var data: dynamic
var origin: String
var lastEventId: String
var source: UnionClientOrMessagePortOrServiceWorker?
var ports: Any
var ports: Array<MessagePort>
}
native public trait Cache {
fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl
fun matchAll(request: dynamic = noImpl, options: CacheQueryOptions = noImpl): dynamic = noImpl
fun add(request: dynamic): dynamic = noImpl
fun addAll(requests: Any): dynamic = noImpl
fun addAll(requests: Array<dynamic>): dynamic = noImpl
fun put(request: dynamic, response: Response): dynamic = noImpl
fun delete(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl
fun keys(request: dynamic = noImpl, options: CacheQueryOptions = noImpl): dynamic = noImpl
+11 -10
View File
@@ -16,28 +16,29 @@ import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.time.*
import org.w3c.workers.*
native public trait XMLHttpRequestEventTarget : EventTarget {
var onloadstart: (Event) -> Unit
var onloadstart: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onprogress: (Event) -> Unit
var onprogress: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onabort: (Event) -> Unit
var onabort: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: (Event) -> Unit
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onload: (Event) -> Unit
var onload: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var ontimeout: (Event) -> Unit
var ontimeout: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onloadend: (Event) -> Unit
var onloadend: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
}
@@ -46,7 +47,7 @@ native public trait XMLHttpRequestUpload : XMLHttpRequestEventTarget {
}
native public open class XMLHttpRequest : XMLHttpRequestEventTarget {
var onreadystatechange: (Event) -> Unit
var onreadystatechange: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var readyState: Short
@@ -73,7 +74,7 @@ native public open class XMLHttpRequest : XMLHttpRequestEventTarget {
var responseType: String
get() = noImpl
set(value) = noImpl
var response: Any?
var response: dynamic
get() = noImpl
set(value) = noImpl
var responseText: String
@@ -104,7 +105,7 @@ native public open class FormData(form: HTMLFormElement = noImpl) {
fun append(name: String, value: dynamic): Unit = noImpl
fun delete(name: String): Unit = noImpl
fun get(name: String): dynamic = noImpl
fun getAll(name: String): Any = noImpl
fun getAll(name: String): Array<dynamic> = noImpl
fun has(name: String): Boolean = noImpl
fun set(name: String, value: dynamic): Unit = noImpl
}