IDL2K: regenerate stubs

This commit is contained in:
Sergey Mashkov
2016-11-23 13:17:12 +03:00
parent 379afa187b
commit 1954cffd01
12 changed files with 3645 additions and 4638 deletions
+361 -106
View File
@@ -21,18 +21,18 @@ import org.w3c.workers.*
import org.w3c.xhr.*
@native public interface WebGLContextAttributes {
var alpha: Boolean
var depth: Boolean
var stencil: Boolean
var antialias: Boolean
var premultipliedAlpha: Boolean
var preserveDrawingBuffer: Boolean
var preferLowPowerToHighPerformance: Boolean
var failIfMajorPerformanceCaveat: Boolean
var alpha: Boolean? /* = true */
var depth: Boolean? /* = true */
var stencil: Boolean? /* = false */
var antialias: Boolean? /* = true */
var premultipliedAlpha: Boolean? /* = true */
var preserveDrawingBuffer: Boolean? /* = false */
var preferLowPowerToHighPerformance: Boolean? /* = false */
var failIfMajorPerformanceCaveat: Boolean? /* = false */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = true, stencil: Boolean = false, antialias: Boolean = true, premultipliedAlpha: Boolean = true, preserveDrawingBuffer: Boolean = false, preferLowPowerToHighPerformance: Boolean = false, failIfMajorPerformanceCaveat: Boolean = false): WebGLContextAttributes {
public inline fun WebGLContextAttributes(alpha: Boolean? = true, depth: Boolean? = true, stencil: Boolean? = false, antialias: Boolean? = true, premultipliedAlpha: Boolean? = true, preserveDrawingBuffer: Boolean? = false, preferLowPowerToHighPerformance: Boolean? = false, failIfMajorPerformanceCaveat: Boolean? = false): WebGLContextAttributes {
val o = js("({})")
o["alpha"] = alpha
@@ -47,49 +47,49 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean =
return o
}
@native public interface WebGLObject {
@native public abstract class WebGLObject {
}
@native public interface WebGLBuffer : WebGLObject {
@native public abstract class WebGLBuffer : WebGLObject() {
}
@native public interface WebGLFramebuffer : WebGLObject {
@native public abstract class WebGLFramebuffer : WebGLObject() {
}
@native public interface WebGLProgram : WebGLObject {
@native public abstract class WebGLProgram : WebGLObject() {
}
@native public interface WebGLRenderbuffer : WebGLObject {
@native public abstract class WebGLRenderbuffer : WebGLObject() {
}
@native public interface WebGLShader : WebGLObject {
@native public abstract class WebGLShader : WebGLObject() {
}
@native public interface WebGLTexture : WebGLObject {
@native public abstract class WebGLTexture : WebGLObject() {
}
@native public interface WebGLUniformLocation {
@native public abstract class WebGLUniformLocation {
}
@native public interface WebGLActiveInfo {
val size: Int
@native public abstract class WebGLActiveInfo {
open val size: Int
get() = noImpl
val type: Int
open val type: Int
get() = noImpl
val name: String
open val name: String
get() = noImpl
}
@native public interface WebGLShaderPrecisionFormat {
val rangeMin: Int
@native public abstract class WebGLShaderPrecisionFormat {
open val rangeMin: Int
get() = noImpl
val rangeMax: Int
open val rangeMax: Int
get() = noImpl
val precision: Int
open val precision: Int
get() = noImpl
}
@native public interface WebGLRenderingContext : RenderingContext {
@native public interface WebGLRenderingContextBase {
val canvas: HTMLCanvasElement
get() = noImpl
val drawingBufferWidth: Int
@@ -113,8 +113,8 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean =
fun blendFunc(sfactor: Int, dfactor: Int): Unit = noImpl
fun blendFuncSeparate(srcRGB: Int, dstRGB: Int, srcAlpha: Int, dstAlpha: Int): Unit = noImpl
fun bufferData(target: Int, size: Int, usage: Int): Unit = noImpl
fun bufferData(target: Int, data: dynamic, usage: Int): Unit = noImpl
fun bufferSubData(target: Int, offset: Int, data: dynamic): Unit = noImpl
fun bufferData(target: Int, data: BufferDataSource?, usage: Int): Unit = noImpl
fun bufferSubData(target: Int, offset: Int, data: BufferDataSource?): Unit = noImpl
fun checkFramebufferStatus(target: Int): Int = noImpl
fun clear(mask: Int): Unit = noImpl
fun clearColor(red: Float, green: Float, blue: Float, alpha: Float): Unit = noImpl
@@ -199,11 +199,11 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean =
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: ArrayBufferView?): Unit = noImpl
fun texImage2D(target: Int, level: Int, internalformat: Int, format: Int, type: Int, source: dynamic): Unit = noImpl
fun texImage2D(target: Int, level: Int, internalformat: Int, format: Int, type: Int, source: TexImageSource?): 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: ArrayBufferView?): Unit = noImpl
fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, format: Int, type: Int, source: dynamic): Unit = noImpl
fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, format: Int, type: Int, source: TexImageSource?): Unit = noImpl
fun uniform1f(location: WebGLUniformLocation?, x: Float): Unit = noImpl
fun uniform1fv(location: WebGLUniformLocation?, v: Float32Array): Unit = noImpl
fun uniform1fv(location: WebGLUniformLocation?, v: Array<Float>): Unit = noImpl
@@ -236,19 +236,15 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean =
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: 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: 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: 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: Array<Float>): Unit = noImpl
fun vertexAttribPointer(indx: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int): Unit = noImpl
fun vertexAttrib1f(index: Int, x: Float): Unit = noImpl
fun vertexAttrib1fv(index: Int, values: dynamic): Unit = noImpl
fun vertexAttrib2f(index: Int, x: Float, y: Float): Unit = noImpl
fun vertexAttrib2fv(index: Int, values: dynamic): Unit = noImpl
fun vertexAttrib3f(index: Int, x: Float, y: Float, z: Float): Unit = noImpl
fun vertexAttrib3fv(index: Int, values: dynamic): Unit = noImpl
fun vertexAttrib4f(index: Int, x: Float, y: Float, z: Float, w: Float): Unit = noImpl
fun vertexAttrib4fv(index: Int, values: dynamic): Unit = noImpl
fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int): Unit = noImpl
fun viewport(x: Int, y: Int, width: Int, height: Int): Unit = noImpl
companion object {
@@ -552,27 +548,331 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean =
}
}
@native public abstract class WebGLRenderingContext : WebGLRenderingContextBase, RenderingContext {
companion object {
val DEPTH_BUFFER_BIT: Int = 0x00000100
val STENCIL_BUFFER_BIT: Int = 0x00000400
val COLOR_BUFFER_BIT: Int = 0x00004000
val POINTS: Int = 0x0000
val LINES: Int = 0x0001
val LINE_LOOP: Int = 0x0002
val LINE_STRIP: Int = 0x0003
val TRIANGLES: Int = 0x0004
val TRIANGLE_STRIP: Int = 0x0005
val TRIANGLE_FAN: Int = 0x0006
val ZERO: Int = 0
val ONE: Int = 1
val SRC_COLOR: Int = 0x0300
val ONE_MINUS_SRC_COLOR: Int = 0x0301
val SRC_ALPHA: Int = 0x0302
val ONE_MINUS_SRC_ALPHA: Int = 0x0303
val DST_ALPHA: Int = 0x0304
val ONE_MINUS_DST_ALPHA: Int = 0x0305
val DST_COLOR: Int = 0x0306
val ONE_MINUS_DST_COLOR: Int = 0x0307
val SRC_ALPHA_SATURATE: Int = 0x0308
val FUNC_ADD: Int = 0x8006
val BLEND_EQUATION: Int = 0x8009
val BLEND_EQUATION_RGB: Int = 0x8009
val BLEND_EQUATION_ALPHA: Int = 0x883D
val FUNC_SUBTRACT: Int = 0x800A
val FUNC_REVERSE_SUBTRACT: Int = 0x800B
val BLEND_DST_RGB: Int = 0x80C8
val BLEND_SRC_RGB: Int = 0x80C9
val BLEND_DST_ALPHA: Int = 0x80CA
val BLEND_SRC_ALPHA: Int = 0x80CB
val CONSTANT_COLOR: Int = 0x8001
val ONE_MINUS_CONSTANT_COLOR: Int = 0x8002
val CONSTANT_ALPHA: Int = 0x8003
val ONE_MINUS_CONSTANT_ALPHA: Int = 0x8004
val BLEND_COLOR: Int = 0x8005
val ARRAY_BUFFER: Int = 0x8892
val ELEMENT_ARRAY_BUFFER: Int = 0x8893
val ARRAY_BUFFER_BINDING: Int = 0x8894
val ELEMENT_ARRAY_BUFFER_BINDING: Int = 0x8895
val STREAM_DRAW: Int = 0x88E0
val STATIC_DRAW: Int = 0x88E4
val DYNAMIC_DRAW: Int = 0x88E8
val BUFFER_SIZE: Int = 0x8764
val BUFFER_USAGE: Int = 0x8765
val CURRENT_VERTEX_ATTRIB: Int = 0x8626
val FRONT: Int = 0x0404
val BACK: Int = 0x0405
val FRONT_AND_BACK: Int = 0x0408
val CULL_FACE: Int = 0x0B44
val BLEND: Int = 0x0BE2
val DITHER: Int = 0x0BD0
val STENCIL_TEST: Int = 0x0B90
val DEPTH_TEST: Int = 0x0B71
val SCISSOR_TEST: Int = 0x0C11
val POLYGON_OFFSET_FILL: Int = 0x8037
val SAMPLE_ALPHA_TO_COVERAGE: Int = 0x809E
val SAMPLE_COVERAGE: Int = 0x80A0
val NO_ERROR: Int = 0
val INVALID_ENUM: Int = 0x0500
val INVALID_VALUE: Int = 0x0501
val INVALID_OPERATION: Int = 0x0502
val OUT_OF_MEMORY: Int = 0x0505
val CW: Int = 0x0900
val CCW: Int = 0x0901
val LINE_WIDTH: Int = 0x0B21
val ALIASED_POINT_SIZE_RANGE: Int = 0x846D
val ALIASED_LINE_WIDTH_RANGE: Int = 0x846E
val CULL_FACE_MODE: Int = 0x0B45
val FRONT_FACE: Int = 0x0B46
val DEPTH_RANGE: Int = 0x0B70
val DEPTH_WRITEMASK: Int = 0x0B72
val DEPTH_CLEAR_VALUE: Int = 0x0B73
val DEPTH_FUNC: Int = 0x0B74
val STENCIL_CLEAR_VALUE: Int = 0x0B91
val STENCIL_FUNC: Int = 0x0B92
val STENCIL_FAIL: Int = 0x0B94
val STENCIL_PASS_DEPTH_FAIL: Int = 0x0B95
val STENCIL_PASS_DEPTH_PASS: Int = 0x0B96
val STENCIL_REF: Int = 0x0B97
val STENCIL_VALUE_MASK: Int = 0x0B93
val STENCIL_WRITEMASK: Int = 0x0B98
val STENCIL_BACK_FUNC: Int = 0x8800
val STENCIL_BACK_FAIL: Int = 0x8801
val STENCIL_BACK_PASS_DEPTH_FAIL: Int = 0x8802
val STENCIL_BACK_PASS_DEPTH_PASS: Int = 0x8803
val STENCIL_BACK_REF: Int = 0x8CA3
val STENCIL_BACK_VALUE_MASK: Int = 0x8CA4
val STENCIL_BACK_WRITEMASK: Int = 0x8CA5
val VIEWPORT: Int = 0x0BA2
val SCISSOR_BOX: Int = 0x0C10
val COLOR_CLEAR_VALUE: Int = 0x0C22
val COLOR_WRITEMASK: Int = 0x0C23
val UNPACK_ALIGNMENT: Int = 0x0CF5
val PACK_ALIGNMENT: Int = 0x0D05
val MAX_TEXTURE_SIZE: Int = 0x0D33
val MAX_VIEWPORT_DIMS: Int = 0x0D3A
val SUBPIXEL_BITS: Int = 0x0D50
val RED_BITS: Int = 0x0D52
val GREEN_BITS: Int = 0x0D53
val BLUE_BITS: Int = 0x0D54
val ALPHA_BITS: Int = 0x0D55
val DEPTH_BITS: Int = 0x0D56
val STENCIL_BITS: Int = 0x0D57
val POLYGON_OFFSET_UNITS: Int = 0x2A00
val POLYGON_OFFSET_FACTOR: Int = 0x8038
val TEXTURE_BINDING_2D: Int = 0x8069
val SAMPLE_BUFFERS: Int = 0x80A8
val SAMPLES: Int = 0x80A9
val SAMPLE_COVERAGE_VALUE: Int = 0x80AA
val SAMPLE_COVERAGE_INVERT: Int = 0x80AB
val COMPRESSED_TEXTURE_FORMATS: Int = 0x86A3
val DONT_CARE: Int = 0x1100
val FASTEST: Int = 0x1101
val NICEST: Int = 0x1102
val GENERATE_MIPMAP_HINT: Int = 0x8192
val BYTE: Int = 0x1400
val UNSIGNED_BYTE: Int = 0x1401
val SHORT: Int = 0x1402
val UNSIGNED_SHORT: Int = 0x1403
val INT: Int = 0x1404
val UNSIGNED_INT: Int = 0x1405
val FLOAT: Int = 0x1406
val DEPTH_COMPONENT: Int = 0x1902
val ALPHA: Int = 0x1906
val RGB: Int = 0x1907
val RGBA: Int = 0x1908
val LUMINANCE: Int = 0x1909
val LUMINANCE_ALPHA: Int = 0x190A
val UNSIGNED_SHORT_4_4_4_4: Int = 0x8033
val UNSIGNED_SHORT_5_5_5_1: Int = 0x8034
val UNSIGNED_SHORT_5_6_5: Int = 0x8363
val FRAGMENT_SHADER: Int = 0x8B30
val VERTEX_SHADER: Int = 0x8B31
val MAX_VERTEX_ATTRIBS: Int = 0x8869
val MAX_VERTEX_UNIFORM_VECTORS: Int = 0x8DFB
val MAX_VARYING_VECTORS: Int = 0x8DFC
val MAX_COMBINED_TEXTURE_IMAGE_UNITS: Int = 0x8B4D
val MAX_VERTEX_TEXTURE_IMAGE_UNITS: Int = 0x8B4C
val MAX_TEXTURE_IMAGE_UNITS: Int = 0x8872
val MAX_FRAGMENT_UNIFORM_VECTORS: Int = 0x8DFD
val SHADER_TYPE: Int = 0x8B4F
val DELETE_STATUS: Int = 0x8B80
val LINK_STATUS: Int = 0x8B82
val VALIDATE_STATUS: Int = 0x8B83
val ATTACHED_SHADERS: Int = 0x8B85
val ACTIVE_UNIFORMS: Int = 0x8B86
val ACTIVE_ATTRIBUTES: Int = 0x8B89
val SHADING_LANGUAGE_VERSION: Int = 0x8B8C
val CURRENT_PROGRAM: Int = 0x8B8D
val NEVER: Int = 0x0200
val LESS: Int = 0x0201
val EQUAL: Int = 0x0202
val LEQUAL: Int = 0x0203
val GREATER: Int = 0x0204
val NOTEQUAL: Int = 0x0205
val GEQUAL: Int = 0x0206
val ALWAYS: Int = 0x0207
val KEEP: Int = 0x1E00
val REPLACE: Int = 0x1E01
val INCR: Int = 0x1E02
val DECR: Int = 0x1E03
val INVERT: Int = 0x150A
val INCR_WRAP: Int = 0x8507
val DECR_WRAP: Int = 0x8508
val VENDOR: Int = 0x1F00
val RENDERER: Int = 0x1F01
val VERSION: Int = 0x1F02
val NEAREST: Int = 0x2600
val LINEAR: Int = 0x2601
val NEAREST_MIPMAP_NEAREST: Int = 0x2700
val LINEAR_MIPMAP_NEAREST: Int = 0x2701
val NEAREST_MIPMAP_LINEAR: Int = 0x2702
val LINEAR_MIPMAP_LINEAR: Int = 0x2703
val TEXTURE_MAG_FILTER: Int = 0x2800
val TEXTURE_MIN_FILTER: Int = 0x2801
val TEXTURE_WRAP_S: Int = 0x2802
val TEXTURE_WRAP_T: Int = 0x2803
val TEXTURE_2D: Int = 0x0DE1
val TEXTURE: Int = 0x1702
val TEXTURE_CUBE_MAP: Int = 0x8513
val TEXTURE_BINDING_CUBE_MAP: Int = 0x8514
val TEXTURE_CUBE_MAP_POSITIVE_X: Int = 0x8515
val TEXTURE_CUBE_MAP_NEGATIVE_X: Int = 0x8516
val TEXTURE_CUBE_MAP_POSITIVE_Y: Int = 0x8517
val TEXTURE_CUBE_MAP_NEGATIVE_Y: Int = 0x8518
val TEXTURE_CUBE_MAP_POSITIVE_Z: Int = 0x8519
val TEXTURE_CUBE_MAP_NEGATIVE_Z: Int = 0x851A
val MAX_CUBE_MAP_TEXTURE_SIZE: Int = 0x851C
val TEXTURE0: Int = 0x84C0
val TEXTURE1: Int = 0x84C1
val TEXTURE2: Int = 0x84C2
val TEXTURE3: Int = 0x84C3
val TEXTURE4: Int = 0x84C4
val TEXTURE5: Int = 0x84C5
val TEXTURE6: Int = 0x84C6
val TEXTURE7: Int = 0x84C7
val TEXTURE8: Int = 0x84C8
val TEXTURE9: Int = 0x84C9
val TEXTURE10: Int = 0x84CA
val TEXTURE11: Int = 0x84CB
val TEXTURE12: Int = 0x84CC
val TEXTURE13: Int = 0x84CD
val TEXTURE14: Int = 0x84CE
val TEXTURE15: Int = 0x84CF
val TEXTURE16: Int = 0x84D0
val TEXTURE17: Int = 0x84D1
val TEXTURE18: Int = 0x84D2
val TEXTURE19: Int = 0x84D3
val TEXTURE20: Int = 0x84D4
val TEXTURE21: Int = 0x84D5
val TEXTURE22: Int = 0x84D6
val TEXTURE23: Int = 0x84D7
val TEXTURE24: Int = 0x84D8
val TEXTURE25: Int = 0x84D9
val TEXTURE26: Int = 0x84DA
val TEXTURE27: Int = 0x84DB
val TEXTURE28: Int = 0x84DC
val TEXTURE29: Int = 0x84DD
val TEXTURE30: Int = 0x84DE
val TEXTURE31: Int = 0x84DF
val ACTIVE_TEXTURE: Int = 0x84E0
val REPEAT: Int = 0x2901
val CLAMP_TO_EDGE: Int = 0x812F
val MIRRORED_REPEAT: Int = 0x8370
val FLOAT_VEC2: Int = 0x8B50
val FLOAT_VEC3: Int = 0x8B51
val FLOAT_VEC4: Int = 0x8B52
val INT_VEC2: Int = 0x8B53
val INT_VEC3: Int = 0x8B54
val INT_VEC4: Int = 0x8B55
val BOOL: Int = 0x8B56
val BOOL_VEC2: Int = 0x8B57
val BOOL_VEC3: Int = 0x8B58
val BOOL_VEC4: Int = 0x8B59
val FLOAT_MAT2: Int = 0x8B5A
val FLOAT_MAT3: Int = 0x8B5B
val FLOAT_MAT4: Int = 0x8B5C
val SAMPLER_2D: Int = 0x8B5E
val SAMPLER_CUBE: Int = 0x8B60
val VERTEX_ATTRIB_ARRAY_ENABLED: Int = 0x8622
val VERTEX_ATTRIB_ARRAY_SIZE: Int = 0x8623
val VERTEX_ATTRIB_ARRAY_STRIDE: Int = 0x8624
val VERTEX_ATTRIB_ARRAY_TYPE: Int = 0x8625
val VERTEX_ATTRIB_ARRAY_NORMALIZED: Int = 0x886A
val VERTEX_ATTRIB_ARRAY_POINTER: Int = 0x8645
val VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: Int = 0x889F
val IMPLEMENTATION_COLOR_READ_TYPE: Int = 0x8B9A
val IMPLEMENTATION_COLOR_READ_FORMAT: Int = 0x8B9B
val COMPILE_STATUS: Int = 0x8B81
val LOW_FLOAT: Int = 0x8DF0
val MEDIUM_FLOAT: Int = 0x8DF1
val HIGH_FLOAT: Int = 0x8DF2
val LOW_INT: Int = 0x8DF3
val MEDIUM_INT: Int = 0x8DF4
val HIGH_INT: Int = 0x8DF5
val FRAMEBUFFER: Int = 0x8D40
val RENDERBUFFER: Int = 0x8D41
val RGBA4: Int = 0x8056
val RGB5_A1: Int = 0x8057
val RGB565: Int = 0x8D62
val DEPTH_COMPONENT16: Int = 0x81A5
val STENCIL_INDEX: Int = 0x1901
val STENCIL_INDEX8: Int = 0x8D48
val DEPTH_STENCIL: Int = 0x84F9
val RENDERBUFFER_WIDTH: Int = 0x8D42
val RENDERBUFFER_HEIGHT: Int = 0x8D43
val RENDERBUFFER_INTERNAL_FORMAT: Int = 0x8D44
val RENDERBUFFER_RED_SIZE: Int = 0x8D50
val RENDERBUFFER_GREEN_SIZE: Int = 0x8D51
val RENDERBUFFER_BLUE_SIZE: Int = 0x8D52
val RENDERBUFFER_ALPHA_SIZE: Int = 0x8D53
val RENDERBUFFER_DEPTH_SIZE: Int = 0x8D54
val RENDERBUFFER_STENCIL_SIZE: Int = 0x8D55
val FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: Int = 0x8CD0
val FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: Int = 0x8CD1
val FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: Int = 0x8CD2
val FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: Int = 0x8CD3
val COLOR_ATTACHMENT0: Int = 0x8CE0
val DEPTH_ATTACHMENT: Int = 0x8D00
val STENCIL_ATTACHMENT: Int = 0x8D20
val DEPTH_STENCIL_ATTACHMENT: Int = 0x821A
val NONE: Int = 0
val FRAMEBUFFER_COMPLETE: Int = 0x8CD5
val FRAMEBUFFER_INCOMPLETE_ATTACHMENT: Int = 0x8CD6
val FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: Int = 0x8CD7
val FRAMEBUFFER_INCOMPLETE_DIMENSIONS: Int = 0x8CD9
val FRAMEBUFFER_UNSUPPORTED: Int = 0x8CDD
val FRAMEBUFFER_BINDING: Int = 0x8CA6
val RENDERBUFFER_BINDING: Int = 0x8CA7
val MAX_RENDERBUFFER_SIZE: Int = 0x84E8
val INVALID_FRAMEBUFFER_OPERATION: Int = 0x0506
val UNPACK_FLIP_Y_WEBGL: Int = 0x9240
val UNPACK_PREMULTIPLY_ALPHA_WEBGL: Int = 0x9241
val CONTEXT_LOST_WEBGL: Int = 0x9242
val UNPACK_COLORSPACE_CONVERSION_WEBGL: Int = 0x9243
val BROWSER_DEFAULT_WEBGL: Int = 0x9244
}
}
@native public open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = noImpl) : Event(type, noImpl) {
open val statusMessage: String
get() = noImpl
}
@native public interface WebGLContextEventInit : EventInit {
var statusMessage: String
var statusMessage: String? /* = "" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean = false, cancelable: Boolean = false): WebGLContextEventInit {
public inline fun WebGLContextEventInit(statusMessage: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WebGLContextEventInit {
val o = js("({})")
o["statusMessage"] = statusMessage
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class ArrayBuffer(length: Int) : Transferable {
@native public open class ArrayBuffer(length: Int) : BufferDataSource {
open val byteLength: Int
get() = noImpl
fun slice(begin: Int, end: Int = noImpl): ArrayBuffer = noImpl
@@ -582,6 +882,15 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
}
}
@native public interface ArrayBufferView : BufferDataSource {
val buffer: ArrayBuffer
get() = noImpl
val byteOffset: Int
get() = noImpl
val byteLength: Int
get() = noImpl
}
@native public open class Int8Array : ArrayBufferView {
constructor(length: Int)
constructor(array: Int8Array)
@@ -589,12 +898,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Byte = noImpl
@@ -616,12 +919,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Byte = noImpl
@@ -643,12 +940,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Byte = noImpl
@@ -670,12 +961,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Short = noImpl
@@ -697,12 +982,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Short = noImpl
@@ -724,12 +1003,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Int = noImpl
@@ -751,12 +1024,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Int = noImpl
@@ -778,12 +1045,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Float = noImpl
@@ -805,12 +1066,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
open val length: Int
get() = noImpl
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
@Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE")
@nativeGetter
operator fun get(index: Int): Double = noImpl
@@ -826,12 +1081,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
}
@native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView {
open val buffer: ArrayBuffer
get() = noImpl
open val byteOffset: Int
get() = noImpl
open val byteLength: Int
get() = noImpl
fun getInt8(byteOffset: Int): Byte = noImpl
fun getUint8(byteOffset: Int): Byte = noImpl
fun getInt16(byteOffset: Int, littleEndian: Boolean = noImpl): Short = noImpl
@@ -850,3 +1099,9 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean
fun setFloat64(byteOffset: Int, value: Double, littleEndian: Boolean = noImpl): Unit = noImpl
}
@native public @marker interface BufferDataSource {
}
@native public @marker interface TexImageSource {
}
File diff suppressed because it is too large Load Diff
@@ -25,38 +25,37 @@ import org.w3c.xhr.*
get() = noImpl
open val detail: Int
get() = noImpl
fun initUIEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int): Unit = noImpl
}
@native public interface UIEventInit : EventInit {
var view: Window?
var detail: Int
var view: Window? /* = null */
var detail: Int? /* = 0 */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): UIEventInit {
public inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): UIEventInit {
val o = js("({})")
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class FocusEvent(typeArg: String, focusEventInitDict: FocusEventInit = noImpl) : UIEvent(noImpl, noImpl) {
@native public open class FocusEvent(type: String, eventInitDict: FocusEventInit = noImpl) : UIEvent(type, eventInitDict) {
open val relatedTarget: EventTarget?
get() = noImpl
fun initFocusEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, relatedTargetArg: EventTarget?): Unit = noImpl
}
@native public interface FocusEventInit : UIEventInit {
var relatedTarget: EventTarget?
var relatedTarget: EventTarget? /* = null */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): FocusEventInit {
public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FocusEventInit {
val o = js("({})")
o["relatedTarget"] = relatedTarget
@@ -64,41 +63,30 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEventInit = noImpl) : UIEvent(noImpl, noImpl), UnionElementOrMouseEvent {
@native public open class MouseEvent(type: String, eventInitDict: MouseEventInit = noImpl) : UIEvent(type, eventInitDict), UnionElementOrMouseEvent {
open val region: String?
get() = noImpl
// open val screenX: Double
// get() = noImpl
// open val screenY: Double
// get() = noImpl
open val pageX: Double
get() = noImpl
open val pageY: Double
get() = noImpl
// open val clientX: Double
// get() = noImpl
// open val clientY: Double
// get() = noImpl
// open val x: Double
// get() = noImpl
// open val y: Double
// get() = noImpl
open val offsetX: Double
get() = noImpl
open val offsetY: Double
get() = noImpl
open val screenX: Int
get() = noImpl
open val screenY: Int
get() = noImpl
open val pageX: Double
get() = noImpl
open val pageY: Double
get() = noImpl
open val clientX: Int
get() = noImpl
open val clientY: Int
get() = noImpl
open val offsetX: Double
get() = noImpl
open val offsetY: Double
get() = noImpl
open val ctrlKey: Boolean
get() = noImpl
open val shiftKey: Boolean
@@ -109,26 +97,25 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo
get() = noImpl
open val button: Short
get() = noImpl
open val relatedTarget: EventTarget?
get() = noImpl
open val buttons: Short
get() = noImpl
open val relatedTarget: EventTarget?
get() = noImpl
fun getModifierState(keyArg: String): Boolean = noImpl
fun initMouseEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, ctrlKeyArg: Boolean, altKeyArg: Boolean, shiftKeyArg: Boolean, metaKeyArg: Boolean, buttonArg: Short, relatedTargetArg: EventTarget?): Unit = noImpl
}
@native public interface MouseEventInit : EventModifierInit {
var screenX: Int
var screenY: Int
var clientX: Int
var clientY: Int
var button: Short
var buttons: Short
var relatedTarget: EventTarget?
var screenX: Int? /* = 0 */
var screenY: Int? /* = 0 */
var clientX: Int? /* = 0 */
var clientY: Int? /* = 0 */
var button: Short? /* = 0 */
var buttons: Short? /* = 0 */
var relatedTarget: EventTarget? /* = null */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): MouseEventInit {
public inline fun MouseEventInit(screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): MouseEventInit {
val o = js("({})")
o["screenX"] = screenX
@@ -148,7 +135,6 @@ public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: In
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
@@ -157,30 +143,30 @@ public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: In
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public interface EventModifierInit : UIEventInit {
var ctrlKey: Boolean
var shiftKey: Boolean
var altKey: Boolean
var metaKey: Boolean
var modifierAltGraph: Boolean
var modifierCapsLock: Boolean
var modifierFn: Boolean
var modifierFnLock: Boolean
var modifierHyper: Boolean
var modifierNumLock: Boolean
var modifierOS: Boolean
var modifierScrollLock: Boolean
var modifierSuper: Boolean
var modifierSymbol: Boolean
var modifierSymbolLock: Boolean
var ctrlKey: Boolean? /* = false */
var shiftKey: Boolean? /* = false */
var altKey: Boolean? /* = false */
var metaKey: Boolean? /* = false */
var modifierAltGraph: Boolean? /* = false */
var modifierCapsLock: Boolean? /* = false */
var modifierFn: Boolean? /* = false */
var modifierFnLock: Boolean? /* = false */
var modifierHyper: Boolean? /* = false */
var modifierNumLock: Boolean? /* = false */
var modifierScrollLock: Boolean? /* = false */
var modifierSuper: Boolean? /* = false */
var modifierSymbol: Boolean? /* = false */
var modifierSymbolLock: Boolean? /* = false */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): EventModifierInit {
public inline fun EventModifierInit(ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): EventModifierInit {
val o = js("({})")
o["ctrlKey"] = ctrlKey
@@ -193,7 +179,6 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
@@ -202,11 +187,12 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEventInit = noImpl) : MouseEvent(typeArg, noImpl) {
@native public open class WheelEvent(type: String, eventInitDict: WheelEventInit = noImpl) : MouseEvent(type, eventInitDict) {
open val deltaX: Double
get() = noImpl
open val deltaY: Double
@@ -215,7 +201,6 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean
get() = noImpl
open val deltaMode: Int
get() = noImpl
fun initWheelEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, buttonArg: Short, relatedTargetArg: EventTarget?, modifiersListArg: String, deltaXArg: Double, deltaYArg: Double, deltaZArg: Double, deltaMode: Int): Unit = noImpl
companion object {
val DOM_DELTA_PIXEL: Int = 0x00
@@ -225,14 +210,14 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean
}
@native public interface WheelEventInit : MouseEventInit {
var deltaX: Double
var deltaY: Double
var deltaZ: Double
var deltaMode: Int
var deltaX: Double? /* = 0.0 */
var deltaY: Double? /* = 0.0 */
var deltaZ: Double? /* = 0.0 */
var deltaMode: Int? /* = 0 */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, deltaZ: Double = 0.0, deltaMode: Int = 0, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): WheelEventInit {
public inline fun WheelEventInit(deltaX: Double? = 0.0, deltaY: Double? = 0.0, deltaZ: Double? = 0.0, deltaMode: Int? = 0, screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WheelEventInit {
val o = js("({})")
o["deltaX"] = deltaX
@@ -256,7 +241,6 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
@@ -265,11 +249,39 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: KeyboardEventInit = noImpl) : UIEvent(noImpl, noImpl) {
@native public open class InputEvent(type: String, eventInitDict: InputEventInit = noImpl) : UIEvent(type, eventInitDict) {
open val data: String
get() = noImpl
open val isComposing: Boolean
get() = noImpl
}
@native public interface InputEventInit : UIEventInit {
var data: String? /* = "" */
var isComposing: Boolean? /* = false */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun InputEventInit(data: String? = "", isComposing: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): InputEventInit {
val o = js("({})")
o["data"] = data
o["isComposing"] = isComposing
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class KeyboardEvent(type: String, eventInitDict: KeyboardEventInit = noImpl) : UIEvent(type, eventInitDict) {
open val key: String
get() = noImpl
open val code: String
@@ -295,7 +307,6 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del
open val which: Int
get() = noImpl
fun getModifierState(keyArg: String): Boolean = noImpl
fun initKeyboardEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, keyArg: String, locationArg: Int, modifiersListArg: String, repeat: Boolean, locale: String): Unit = noImpl
companion object {
val DOM_KEY_LOCATION_STANDARD: Int = 0x00
@@ -306,15 +317,15 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del
}
@native public interface KeyboardEventInit : EventModifierInit {
var key: String
var code: String
var location: Int
var repeat: Boolean
var isComposing: Boolean
var key: String? /* = "" */
var code: String? /* = "" */
var location: Int? /* = 0 */
var repeat: Boolean? /* = false */
var isComposing: Boolean? /* = false */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun KeyboardEventInit(key: String = "", code: String = "", location: Int = 0, repeat: Boolean = false, isComposing: Boolean = false, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): KeyboardEventInit {
public inline fun KeyboardEventInit(key: String? = "", code: String? = "", location: Int? = 0, repeat: Boolean? = false, isComposing: Boolean? = false, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): KeyboardEventInit {
val o = js("({})")
o["key"] = key
@@ -332,7 +343,6 @@ public inline fun KeyboardEventInit(key: String = "", code: String = "", locatio
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
@@ -341,22 +351,22 @@ public inline fun KeyboardEventInit(key: String = "", code: String = "", locatio
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class CompositionEvent(typeArg: String, compositionEventInitDict: CompositionEventInit = noImpl) : UIEvent(noImpl, noImpl) {
@native public open class CompositionEvent(type: String, eventInitDict: CompositionEventInit = noImpl) : UIEvent(type, eventInitDict) {
open val data: String
get() = noImpl
fun initCompositionEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, dataArg: String, locale: String): Unit = noImpl
}
@native public interface CompositionEventInit : UIEventInit {
var data: String
var data: String? /* = "" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun CompositionEventInit(data: String = "", view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): CompositionEventInit {
public inline fun CompositionEventInit(data: String? = "", view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): CompositionEventInit {
val o = js("({})")
o["data"] = data
@@ -364,30 +374,11 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null,
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class MutationEvent : Event(noImpl, noImpl) {
open val relatedNode: Node?
get() = noImpl
open val prevValue: String
get() = noImpl
open val newValue: String
get() = noImpl
open val attrName: String
get() = noImpl
open val attrChange: Short
get() = noImpl
fun initMutationEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, relatedNodeArg: Node?, prevValueArg: String, newValueArg: String, attrNameArg: String, attrChangeArg: Short): Unit = noImpl
companion object {
val MODIFICATION: Short = 1
val ADDITION: Short = 2
val REMOVAL: Short = 3
}
}
@native public open class Event(type: String, eventInitDict: EventInit = noImpl) {
open val type: String
get() = noImpl
@@ -403,10 +394,13 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null,
get() = noImpl
open val defaultPrevented: Boolean
get() = noImpl
open val composed: Boolean
get() = noImpl
open val isTrusted: Boolean
get() = noImpl
open val timeStamp: Number
get() = noImpl
fun composedPath(): Array<EventTarget> = noImpl
fun stopPropagation(): Unit = noImpl
fun stopImmediatePropagation(): Unit = noImpl
fun preventDefault(): Unit = noImpl
@@ -420,11 +414,11 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null,
}
}
@native public interface EventTarget {
fun addEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl
fun addEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl
fun removeEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl
fun removeEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl
@native public abstract class EventTarget {
fun addEventListener(type: String, callback: EventListener?, options: dynamic = noImpl): Unit = noImpl
fun addEventListener(type: String, callback: ((Event) -> Unit)?, options: dynamic = noImpl): Unit = noImpl
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = noImpl): Unit = noImpl
fun removeEventListener(type: String, callback: ((Event) -> Unit)?, options: dynamic = noImpl): Unit = noImpl
fun dispatchEvent(event: Event): Boolean = noImpl
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -50,9 +50,8 @@ import org.w3c.xhr.*
var search: String
get() = noImpl
set(value) = noImpl
var searchParams: URLSearchParams
open val searchParams: URLSearchParams
get() = noImpl
set(value) = noImpl
var hash: String
get() = noImpl
set(value) = noImpl
+44 -25
View File
@@ -24,22 +24,35 @@ import org.w3c.xhr.*
fun append(name: String, value: String): Unit = noImpl
fun delete(name: String): Unit = noImpl
fun get(name: String): String? = noImpl
fun getAll(name: String): Array<String> = noImpl
fun has(name: String): Boolean = noImpl
fun set(name: String, value: String): Unit = noImpl
}
@native public open class Request(input: dynamic, init: RequestInit = noImpl) {
@native public interface Body {
val bodyUsed: Boolean
get() = noImpl
fun arrayBuffer(): dynamic = noImpl
fun blob(): dynamic = noImpl
fun formData(): dynamic = noImpl
fun json(): dynamic = noImpl
fun text(): dynamic = noImpl
}
@native public open class Request(input: dynamic, init: RequestInit = noImpl) : Body {
open val method: String
get() = noImpl
open val url: String
get() = noImpl
open val headers: Headers
get() = noImpl
open val context: String
open val type: String
get() = noImpl
open val destination: String
get() = noImpl
open val referrer: String
get() = noImpl
open val referrerPolicy: dynamic
get() = noImpl
open val mode: String
get() = noImpl
open val credentials: String
@@ -48,46 +61,55 @@ import org.w3c.xhr.*
get() = noImpl
open val redirect: String
get() = noImpl
open val bodyUsed: Boolean
open val integrity: String
get() = noImpl
open val keepalive: Boolean
get() = noImpl
fun clone(): Request = noImpl
fun arrayBuffer(): dynamic = noImpl
fun blob(): dynamic = noImpl
fun formData(): dynamic = noImpl
fun json(): dynamic = noImpl
fun text(): dynamic = noImpl
}
@native public interface RequestInit {
var method: String
var method: String?
var headers: dynamic
var body: dynamic
var mode: String
var credentials: String
var cache: String
var redirect: String
var referrer: String?
var referrerPolicy: dynamic
var mode: String?
var credentials: String?
var cache: String?
var redirect: String?
var integrity: String?
var keepalive: Boolean?
var window: Any?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, mode: String, credentials: String, cache: String, redirect: String): RequestInit {
public inline fun RequestInit(method: String?, headers: dynamic, body: dynamic, referrer: String?, referrerPolicy: dynamic, mode: String?, credentials: String?, cache: String?, redirect: String?, integrity: String?, keepalive: Boolean?, window: Any?): RequestInit {
val o = js("({})")
o["method"] = method
o["headers"] = headers
o["body"] = body
o["referrer"] = referrer
o["referrerPolicy"] = referrerPolicy
o["mode"] = mode
o["credentials"] = credentials
o["cache"] = cache
o["redirect"] = redirect
o["integrity"] = integrity
o["keepalive"] = keepalive
o["window"] = window
return o
}
@native public open class Response(body: dynamic = noImpl, init: ResponseInit = noImpl) {
@native public open class Response(body: dynamic = null, init: ResponseInit = noImpl) : Body {
open val type: String
get() = noImpl
open val url: String
get() = noImpl
open val redirected: Boolean
get() = noImpl
open val status: Short
get() = noImpl
open val ok: Boolean
@@ -96,14 +118,11 @@ public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, m
get() = noImpl
open val headers: Headers
get() = noImpl
open val bodyUsed: Boolean
open val body: dynamic
get() = noImpl
open val trailer: dynamic
get() = noImpl
fun clone(): Response = noImpl
fun arrayBuffer(): dynamic = noImpl
fun blob(): dynamic = noImpl
fun formData(): dynamic = noImpl
fun json(): dynamic = noImpl
fun text(): dynamic = noImpl
companion object {
fun error(): Response = noImpl
@@ -112,13 +131,13 @@ public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, m
}
@native public interface ResponseInit {
var status: Short
var statusText: String
var status: Short? /* = 200 */
var statusText: String? /* = "OK" */
var headers: dynamic
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ResponseInit(status: Short = 200, statusText: String = "OK", headers: dynamic): ResponseInit {
public inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: dynamic): ResponseInit {
val o = js("({})")
o["status"] = status
+13 -13
View File
@@ -20,8 +20,7 @@ import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*
@native public open class Blob() : ImageBitmapSource {
constructor(blobParts: Array<dynamic>, options: BlobPropertyBag = noImpl) : this()
@native public open class Blob(blobParts: Array<dynamic> = noImpl, options: BlobPropertyBag = noImpl) {
open val size: Int
get() = noImpl
open val type: String
@@ -33,11 +32,11 @@ import org.w3c.xhr.*
}
@native public interface BlobPropertyBag {
var type: String
var type: String? /* = "" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag {
public inline fun BlobPropertyBag(type: String? = ""): BlobPropertyBag {
val o = js("({})")
o["type"] = type
@@ -45,37 +44,36 @@ public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag {
return o
}
@native public open class File(fileBits: Array<dynamic>, fileName: String, options: FilePropertyBag = noImpl) : Blob() {
@native public open class File(fileBits: Array<dynamic>, fileName: String, options: FilePropertyBag = noImpl) : Blob(noImpl, options) {
open val name: String
get() = noImpl
open val lastModified: Int
get() = noImpl
}
@native public interface FilePropertyBag {
var type: String
var lastModified: Int
@native public interface FilePropertyBag : BlobPropertyBag {
var lastModified: Int?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePropertyBag {
public inline fun FilePropertyBag(lastModified: Int?, type: String? = ""): FilePropertyBag {
val o = js("({})")
o["type"] = type
o["lastModified"] = lastModified
o["type"] = type
return o
}
@native public interface FileList {
val length: Int
@native public abstract class FileList {
open val length: Int
get() = noImpl
fun item(index: Int): File? = noImpl
@nativeGetter
operator fun get(index: Int): File? = noImpl
}
@native public open class FileReader : EventTarget {
@native public open class FileReader : EventTarget() {
open val readyState: Short
get() = noImpl
open val result: dynamic
@@ -101,6 +99,7 @@ public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePro
get() = noImpl
set(value) = noImpl
fun readAsArrayBuffer(blob: Blob): Unit = noImpl
fun readAsBinaryString(blob: Blob): Unit = noImpl
fun readAsText(blob: Blob, label: String = noImpl): Unit = noImpl
fun readAsDataURL(blob: Blob): Unit = noImpl
fun abort(): Unit = noImpl
@@ -114,6 +113,7 @@ public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePro
@native public open class FileReaderSync {
fun readAsArrayBuffer(blob: Blob): ArrayBuffer = noImpl
fun readAsBinaryString(blob: Blob): String = noImpl
fun readAsText(blob: Blob, label: String = noImpl): String = noImpl
fun readAsDataURL(blob: Blob): String = noImpl
}
@@ -20,7 +20,7 @@ import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*
@native public open class Notification(title: String, options: NotificationOptions = noImpl) : EventTarget {
@native public open class Notification(title: String, options: NotificationOptions = noImpl) : EventTarget() {
var onclick: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
@@ -37,71 +37,113 @@ import org.w3c.xhr.*
get() = noImpl
open val tag: String
get() = noImpl
open val image: String
get() = noImpl
open val icon: String
get() = noImpl
open val badge: String
get() = noImpl
open val sound: String
get() = noImpl
open val vibrate: dynamic
get() = noImpl
open val timestamp: Number
get() = noImpl
open val renotify: Boolean
get() = noImpl
open val silent: Boolean
get() = noImpl
open val noscreen: Boolean
get() = noImpl
open val requireInteraction: Boolean
get() = noImpl
open val sticky: Boolean
get() = noImpl
open val data: Any?
get() = noImpl
open val actions: dynamic
get() = noImpl
fun close(): Unit = noImpl
companion object {
var permission: String
get() = noImpl
set(value) = noImpl
fun requestPermission(callback: (String) -> Unit = noImpl): Unit = noImpl
var maxActions: Int
get() = noImpl
set(value) = noImpl
fun requestPermission(deprecatedCallback: (String) -> Unit = noImpl): dynamic = noImpl
}
}
@native public interface NotificationOptions {
var dir: String
var lang: String
var body: String
var tag: String
var icon: String
var sound: String
var dir: String? /* = "auto" */
var lang: String? /* = "" */
var body: String? /* = "" */
var tag: String? /* = "" */
var image: String?
var icon: String?
var badge: String?
var sound: String?
var vibrate: dynamic
var renotify: Boolean
var silent: Boolean
var noscreen: Boolean
var sticky: Boolean
var data: Any?
var timestamp: Number?
var renotify: Boolean? /* = false */
var silent: Boolean? /* = false */
var noscreen: Boolean? /* = false */
var requireInteraction: Boolean? /* = false */
var sticky: Boolean? /* = false */
var data: Any? /* = null */
var actions: Array<NotificationAction>? /* = arrayOf() */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun NotificationOptions(dir: String = "auto", lang: String = "", body: String = "", tag: String = "", icon: String, sound: String, vibrate: dynamic, renotify: Boolean = false, silent: Boolean = false, noscreen: Boolean = false, sticky: Boolean = false, data: Any? = null): NotificationOptions {
public inline fun NotificationOptions(dir: String? = "auto", lang: String? = "", body: String? = "", tag: String? = "", image: String?, icon: String?, badge: String?, sound: String?, vibrate: dynamic, timestamp: Number?, renotify: Boolean? = false, silent: Boolean? = false, noscreen: Boolean? = false, requireInteraction: Boolean? = false, sticky: Boolean? = false, data: Any? = null, actions: Array<NotificationAction>? = arrayOf()): NotificationOptions {
val o = js("({})")
o["dir"] = dir
o["lang"] = lang
o["body"] = body
o["tag"] = tag
o["image"] = image
o["icon"] = icon
o["badge"] = badge
o["sound"] = sound
o["vibrate"] = vibrate
o["timestamp"] = timestamp
o["renotify"] = renotify
o["silent"] = silent
o["noscreen"] = noscreen
o["requireInteraction"] = requireInteraction
o["sticky"] = sticky
o["data"] = data
o["actions"] = actions
return o
}
@native public interface NotificationAction {
var action: String?
var title: String?
var icon: String?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun NotificationAction(action: String?, title: String?, icon: String?): NotificationAction {
val o = js("({})")
o["action"] = action
o["title"] = title
o["icon"] = icon
return o
}
@native public interface GetNotificationOptions {
var tag: String
var tag: String? /* = "" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptions {
public inline fun GetNotificationOptions(tag: String? = ""): GetNotificationOptions {
val o = js("({})")
o["tag"] = tag
@@ -109,22 +151,27 @@ public inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptio
return o
}
@native public open class NotificationEvent(type: String, eventInitDict: NotificationEventInit = noImpl) : ExtendableEvent(type, eventInitDict) {
@native public open class NotificationEvent(type: String, eventInitDict: NotificationEventInit) : ExtendableEvent(type, eventInitDict) {
open val notification: Notification
get() = noImpl
open val action: String
get() = noImpl
}
@native public interface NotificationEventInit : ExtendableEventInit {
var notification: Notification
var notification: Notification?
var action: String? /* = "" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun NotificationEventInit(notification: Notification, bubbles: Boolean = false, cancelable: Boolean = false): NotificationEventInit {
public inline fun NotificationEventInit(notification: Notification?, action: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): NotificationEventInit {
val o = js("({})")
o["notification"] = notification
o["action"] = action
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@@ -20,63 +20,68 @@ import org.w3c.notifications.*
import org.w3c.workers.*
import org.w3c.xhr.*
@native public interface Performance {
val timing: PerformanceTiming
@native public abstract class Performance : EventTarget() {
open val timing: PerformanceTiming
get() = noImpl
val navigation: PerformanceNavigation
open val navigation: PerformanceNavigation
get() = noImpl
fun now(): Double = noImpl
}
@native public interface PerformanceTiming {
val navigationStart: Int
get() = noImpl
val unloadEventStart: Int
get() = noImpl
val unloadEventEnd: Int
get() = noImpl
val redirectStart: Int
get() = noImpl
val redirectEnd: Int
get() = noImpl
val fetchStart: Int
get() = noImpl
val domainLookupStart: Int
get() = noImpl
val domainLookupEnd: Int
get() = noImpl
val connectStart: Int
get() = noImpl
val connectEnd: Int
get() = noImpl
val secureConnectionStart: Int
get() = noImpl
val requestStart: Int
get() = noImpl
val responseStart: Int
get() = noImpl
val responseEnd: Int
get() = noImpl
val domLoading: Int
get() = noImpl
val domInteractive: Int
get() = noImpl
val domContentLoadedEventStart: Int
get() = noImpl
val domContentLoadedEventEnd: Int
get() = noImpl
val domComplete: Int
get() = noImpl
val loadEventStart: Int
get() = noImpl
val loadEventEnd: Int
@native public interface GlobalPerformance {
val performance: Performance
get() = noImpl
}
@native public interface PerformanceNavigation {
val type: Short
@native public abstract class PerformanceTiming {
open val navigationStart: Int
get() = noImpl
val redirectCount: Short
open val unloadEventStart: Int
get() = noImpl
open val unloadEventEnd: Int
get() = noImpl
open val redirectStart: Int
get() = noImpl
open val redirectEnd: Int
get() = noImpl
open val fetchStart: Int
get() = noImpl
open val domainLookupStart: Int
get() = noImpl
open val domainLookupEnd: Int
get() = noImpl
open val connectStart: Int
get() = noImpl
open val connectEnd: Int
get() = noImpl
open val secureConnectionStart: Int
get() = noImpl
open val requestStart: Int
get() = noImpl
open val responseStart: Int
get() = noImpl
open val responseEnd: Int
get() = noImpl
open val domLoading: Int
get() = noImpl
open val domInteractive: Int
get() = noImpl
open val domContentLoadedEventStart: Int
get() = noImpl
open val domContentLoadedEventEnd: Int
get() = noImpl
open val domComplete: Int
get() = noImpl
open val loadEventStart: Int
get() = noImpl
open val loadEventEnd: Int
get() = noImpl
}
@native public abstract class PerformanceNavigation {
open val type: Short
get() = noImpl
open val redirectCount: Short
get() = noImpl
companion object {
+149 -82
View File
@@ -20,97 +20,98 @@ import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.xhr.*
@native public interface ServiceWorkerRegistration : EventTarget {
val installing: ServiceWorker?
@native public abstract class ServiceWorkerRegistration : EventTarget() {
open val installing: ServiceWorker?
get() = noImpl
val waiting: ServiceWorker?
open val waiting: ServiceWorker?
get() = noImpl
val active: ServiceWorker?
open val active: ServiceWorker?
get() = noImpl
val scope: String
open val scope: String
get() = noImpl
var onupdatefound: ((Event) -> dynamic)?
open var onupdatefound: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
val APISpace: dynamic
open val APISpace: dynamic
get() = noImpl
fun update(): Unit = noImpl
fun update(): dynamic = noImpl
fun unregister(): dynamic = noImpl
fun methodName(of: dynamic): dynamic = noImpl
fun methodName(): dynamic = noImpl
fun showNotification(title: String, options: NotificationOptions = noImpl): dynamic = noImpl
fun getNotifications(filter: GetNotificationOptions = noImpl): dynamic = noImpl
}
@native public interface ServiceWorkerGlobalScope : WorkerGlobalScope {
val clients: Clients
@native public abstract class ServiceWorkerGlobalScope : WorkerGlobalScope() {
open val clients: Clients
get() = noImpl
val registration: ServiceWorkerRegistration
open val registration: ServiceWorkerRegistration
get() = noImpl
var oninstall: ((Event) -> dynamic)?
open var oninstall: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onactivate: ((Event) -> dynamic)?
open var onactivate: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onfetch: ((Event) -> dynamic)?
open var onfetch: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onmessage: ((Event) -> dynamic)?
open var onforeignfetch: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onfunctionalevent: ((Event) -> dynamic)?
open var onmessage: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onnotificationclick: ((Event) -> dynamic)?
open var onfunctionalevent: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
open var onnotificationclick: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
open var onnotificationclose: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun skipWaiting(): dynamic = noImpl
}
@native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker {
val scriptURL: String
@native public abstract class ServiceWorker : EventTarget(), AbstractWorker, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker {
open val scriptURL: String
get() = noImpl
val state: String
open val state: String
get() = noImpl
val id: String
get() = noImpl
var onstatechange: ((Event) -> dynamic)?
open var onstatechange: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun postMessage(message: Any?, transfer: Array<Transferable> = noImpl): Unit = noImpl
fun postMessage(message: Any?, transfer: Array<dynamic> = noImpl): Unit = noImpl
}
@native public interface ServiceWorkerContainer : EventTarget {
val controller: ServiceWorker?
@native public abstract class ServiceWorkerContainer : EventTarget() {
open val controller: ServiceWorker?
get() = noImpl
val ready: dynamic
open val ready: dynamic
get() = noImpl
var oncontrollerchange: ((Event) -> dynamic)?
open var oncontrollerchange: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onmessage: ((Event) -> dynamic)?
open var onmessage: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
fun register(scriptURL: String, options: RegistrationOptions = noImpl): dynamic = noImpl
fun getRegistration(clientURL: String = ""): dynamic = noImpl
fun getRegistrations(): dynamic = noImpl
fun startMessages(): Unit = noImpl
}
@native public interface RegistrationOptions {
var scope: String
var scope: String?
var type: String? /* = "classic" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun RegistrationOptions(scope: String): RegistrationOptions {
public inline fun RegistrationOptions(scope: String?, type: String? = "classic"): RegistrationOptions {
val o = js("({})")
o["scope"] = scope
o["type"] = type
return o
}
@@ -124,21 +125,20 @@ public inline fun RegistrationOptions(scope: String): RegistrationOptions {
get() = noImpl
open val source: UnionMessagePortOrServiceWorker?
get() = noImpl
open val ports: Array<MessagePort>?
open val ports: dynamic
get() = noImpl
fun initServiceWorkerMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrServiceWorker, portsArg: Array<MessagePort>?): Unit = noImpl
}
@native public interface ServiceWorkerMessageEventInit : EventInit {
var data: Any?
var origin: String
var lastEventId: String
var origin: String?
var lastEventId: String?
var source: UnionMessagePortOrServiceWorker?
var ports: Array<MessagePort>
var ports: Array<MessagePort>?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrServiceWorker?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): ServiceWorkerMessageEventInit {
public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String?, lastEventId: String?, source: UnionMessagePortOrServiceWorker?, ports: Array<MessagePort>?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ServiceWorkerMessageEventInit {
val o = js("({})")
o["data"] = data
@@ -148,41 +148,44 @@ public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, last
o["ports"] = ports
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public interface Client : UnionClientOrMessagePortOrServiceWorker {
val url: String
@native public abstract class Client : UnionClientOrMessagePortOrServiceWorker {
open val url: String
get() = noImpl
val frameType: String
open val frameType: String
get() = noImpl
val id: String
open val id: String
get() = noImpl
fun postMessage(message: Any?, transfer: Array<Transferable> = noImpl): Unit = noImpl
fun postMessage(message: Any?, transfer: Array<dynamic> = noImpl): Unit = noImpl
}
@native public interface WindowClient : Client {
val visibilityState: dynamic
@native public abstract class WindowClient : Client() {
open val visibilityState: dynamic
get() = noImpl
val focused: Boolean
open val focused: Boolean
get() = noImpl
fun focus(): dynamic = noImpl
fun navigate(url: String): dynamic = noImpl
}
@native public interface Clients {
@native public abstract class Clients {
fun get(id: String): dynamic = noImpl
fun matchAll(options: ClientQueryOptions = noImpl): dynamic = noImpl
fun openWindow(url: String): dynamic = noImpl
fun claim(): dynamic = noImpl
}
@native public interface ClientQueryOptions {
var includeUncontrolled: Boolean
var type: String
var includeUncontrolled: Boolean? /* = false */
var type: String? /* = "window" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: String = "window"): ClientQueryOptions {
public inline fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type: String? = "window"): ClientQueryOptions {
val o = js("({})")
o["includeUncontrolled"] = includeUncontrolled
@@ -199,19 +202,39 @@ public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type:
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Boolean = false): ExtendableEventInit {
public inline fun ExtendableEventInit(bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableEventInit {
val o = js("({})")
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class FetchEvent(type: String, eventInitDict: FetchEventInit = noImpl) : ExtendableEvent(type, eventInitDict) {
@native public open class InstallEvent(type: String, eventInitDict: ExtendableEventInit = noImpl) : ExtendableEvent(type, eventInitDict) {
fun registerForeignFetch(options: ForeignFetchOptions): Unit = noImpl
}
@native public interface ForeignFetchOptions {
var scopes: Array<String>?
var origins: Array<String>?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ForeignFetchOptions(scopes: Array<String>?, origins: Array<String>?): ForeignFetchOptions {
val o = js("({})")
o["scopes"] = scopes
o["origins"] = origins
return o
}
@native public open class FetchEvent(type: String, eventInitDict: FetchEventInit) : ExtendableEvent(type, eventInitDict) {
open val request: Request
get() = noImpl
open val client: Client
open val clientId: String?
get() = noImpl
open val isReload: Boolean
get() = noImpl
@@ -219,20 +242,64 @@ public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Bool
}
@native public interface FetchEventInit : ExtendableEventInit {
var request: Request
var client: Client
var isReload: Boolean
var request: Request?
var clientId: String? /* = null */
var isReload: Boolean? /* = false */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun FetchEventInit(request: Request, client: Client, isReload: Boolean = false, bubbles: Boolean = false, cancelable: Boolean = false): FetchEventInit {
public inline fun FetchEventInit(request: Request?, clientId: String? = null, isReload: Boolean? = false, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FetchEventInit {
val o = js("({})")
o["request"] = request
o["client"] = client
o["clientId"] = clientId
o["isReload"] = isReload
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public open class ForeignFetchEvent(type: String, eventInitDict: ForeignFetchEventInit) : ExtendableEvent(type, eventInitDict) {
open val request: Request
get() = noImpl
open val origin: String
get() = noImpl
fun respondWith(r: dynamic): Unit = noImpl
}
@native public interface ForeignFetchEventInit : ExtendableEventInit {
var request: Request?
var origin: String? /* = "null" */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ForeignFetchEventInit(request: Request?, origin: String? = "null", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ForeignFetchEventInit {
val o = js("({})")
o["request"] = request
o["origin"] = origin
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public interface ForeignFetchResponse {
var response: Response?
var origin: String?
var headers: Array<String>?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ForeignFetchResponse(response: Response?, origin: String?, headers: Array<String>?): ForeignFetchResponse {
val o = js("({})")
o["response"] = response
o["origin"] = origin
o["headers"] = headers
return o
}
@@ -246,21 +313,20 @@ public inline fun FetchEventInit(request: Request, client: Client, isReload: Boo
get() = noImpl
open val source: UnionClientOrMessagePortOrServiceWorker?
get() = noImpl
open val ports: Array<MessagePort>?
open val ports: dynamic
get() = noImpl
fun initExtendableMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionClientOrMessagePortOrServiceWorker, portsArg: Array<MessagePort>?): Unit = noImpl
}
@native public interface ExtendableMessageEventInit : ExtendableEventInit {
var data: Any?
var origin: String
var lastEventId: String
var origin: String?
var lastEventId: String?
var source: UnionClientOrMessagePortOrServiceWorker?
var ports: Array<MessagePort>
var ports: Array<MessagePort>?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): ExtendableMessageEventInit {
public inline fun ExtendableMessageEventInit(data: Any?, origin: String?, lastEventId: String?, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array<MessagePort>?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableMessageEventInit {
val o = js("({})")
o["data"] = data
@@ -270,11 +336,12 @@ public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEve
o["ports"] = ports
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}
@native public interface Cache {
@native public abstract class 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
@@ -285,14 +352,14 @@ public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEve
}
@native public interface CacheQueryOptions {
var ignoreSearch: Boolean
var ignoreMethod: Boolean
var ignoreVary: Boolean
var cacheName: String
var ignoreSearch: Boolean? /* = false */
var ignoreMethod: Boolean? /* = false */
var ignoreVary: Boolean? /* = false */
var cacheName: String?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: Boolean = false, ignoreVary: Boolean = false, cacheName: String): CacheQueryOptions {
public inline fun CacheQueryOptions(ignoreSearch: Boolean? = false, ignoreMethod: Boolean? = false, ignoreVary: Boolean? = false, cacheName: String?): CacheQueryOptions {
val o = js("({})")
o["ignoreSearch"] = ignoreSearch
@@ -304,14 +371,14 @@ public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod:
}
@native public interface CacheBatchOperation {
var type: String
var request: Request
var response: Response
var options: CacheQueryOptions
var type: String?
var request: Request?
var response: Response?
var options: CacheQueryOptions?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun CacheBatchOperation(type: String, request: Request, response: Response, options: CacheQueryOptions): CacheBatchOperation {
public inline fun CacheBatchOperation(type: String?, request: Request?, response: Response?, options: CacheQueryOptions?): CacheBatchOperation {
val o = js("({})")
o["type"] = type
@@ -322,7 +389,7 @@ public inline fun CacheBatchOperation(type: String, request: Request, response:
return o
}
@native public interface CacheStorage {
@native public abstract class CacheStorage {
fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl
fun has(cacheName: String): dynamic = noImpl
fun open(cacheName: String): dynamic = noImpl
+19 -16
View File
@@ -20,34 +20,34 @@ import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.workers.*
@native public interface XMLHttpRequestEventTarget : EventTarget {
var onloadstart: ((Event) -> dynamic)?
@native public abstract class XMLHttpRequestEventTarget : EventTarget() {
open var onloadstart: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onprogress: ((Event) -> dynamic)?
open var onprogress: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onabort: ((Event) -> dynamic)?
open var onabort: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onerror: ((Event) -> dynamic)?
open var onerror: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onload: ((Event) -> dynamic)?
open var onload: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var ontimeout: ((Event) -> dynamic)?
open var ontimeout: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
var onloadend: ((Event) -> dynamic)?
open var onloadend: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
}
@native public interface XMLHttpRequestUpload : XMLHttpRequestEventTarget {
@native public abstract class XMLHttpRequestUpload : XMLHttpRequestEventTarget() {
}
@native public open class XMLHttpRequest : XMLHttpRequestEventTarget {
@native public open class XMLHttpRequest : XMLHttpRequestEventTarget() {
var onreadystatechange: ((Event) -> dynamic)?
get() = noImpl
set(value) = noImpl
@@ -95,12 +95,14 @@ import org.w3c.workers.*
}
@native public open class FormData(form: HTMLFormElement = noImpl) {
fun append(name: String, value: dynamic): Unit = noImpl
fun append(name: String, value: String): Unit = noImpl
fun append(name: String, value: Blob, filename: String = noImpl): Unit = noImpl
fun delete(name: String): Unit = noImpl
fun get(name: String): dynamic = noImpl
fun getAll(name: String): Array<dynamic> = noImpl
fun has(name: String): Boolean = noImpl
fun set(name: String, value: dynamic): Unit = noImpl
fun set(name: String, value: String): Unit = noImpl
fun set(name: String, value: Blob, filename: String = noImpl): Unit = noImpl
}
@native public open class ProgressEvent(type: String, eventInitDict: ProgressEventInit = noImpl) : Event(type, eventInitDict) {
@@ -113,13 +115,13 @@ import org.w3c.workers.*
}
@native public interface ProgressEventInit : EventInit {
var lengthComputable: Boolean
var loaded: Int
var total: Int
var lengthComputable: Boolean? /* = false */
var loaded: Int? /* = 0 */
var total: Int? /* = 0 */
}
@Suppress("NOTHING_TO_INLINE")
public inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: Int = 0, total: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): ProgressEventInit {
public inline fun ProgressEventInit(lengthComputable: Boolean? = false, loaded: Int? = 0, total: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ProgressEventInit {
val o = js("({})")
o["lengthComputable"] = lengthComputable
@@ -127,6 +129,7 @@ public inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: I
o["total"] = total
o["bubbles"] = bubbles
o["cancelable"] = cancelable
o["composed"] = composed
return o
}