diff --git a/js/js.libraries/src/core/annotations.kt b/js/js.libraries/src/core/annotations.kt index b5523edaee9..a4610dc3077 100644 --- a/js/js.libraries/src/core/annotations.kt +++ b/js/js.libraries/src/core/annotations.kt @@ -18,32 +18,32 @@ package kotlin.js import kotlin.annotation.AnnotationTarget.* -native +@native @Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, VALUE_PARAMETER) public annotation class native(public val name: String = "") -native +@native @Target(FUNCTION) public annotation class nativeGetter -native +@native @Target(FUNCTION) public annotation class nativeSetter -native +@native @Target(FUNCTION) public annotation class nativeInvoke -native +@native @Target(CLASS, FUNCTION, PROPERTY) public annotation class library(public val name: String = "") -native +@native @Target(PROPERTY) public annotation class enumerable() // TODO make it "internal" or "fake" -native +@native @Target(CLASS) -deprecated("Do not use this annotation: it is for internal use only") +@Deprecated("Do not use this annotation: it is for internal use only") public annotation class marker \ No newline at end of file diff --git a/js/js.libraries/src/core/char.kt b/js/js.libraries/src/core/char.kt index 2f25f6344d8..c87f28050b4 100644 --- a/js/js.libraries/src/core/char.kt +++ b/js/js.libraries/src/core/char.kt @@ -19,6 +19,6 @@ package kotlin // actually \s is enough to match all whitespace, but \xA0 added because of different regexp behavior of Rhino used in Selenium tests public fun Char.isWhitespace(): Boolean = toString().matches("[\\s\\xA0]") -native public fun Char.toLowerCase(): Char = noImpl +@native public fun Char.toLowerCase(): Char = noImpl -native public fun Char.toUpperCase(): Char = noImpl +@native public fun Char.toUpperCase(): Char = noImpl diff --git a/js/js.libraries/src/core/concurrent.kt b/js/js.libraries/src/core/concurrent.kt index 41525b457f6..1994973d412 100644 --- a/js/js.libraries/src/core/concurrent.kt +++ b/js/js.libraries/src/core/concurrent.kt @@ -23,14 +23,14 @@ import kotlin.InlineOption.ONLY_LOCAL_RETURN // so they annotated as 'native' to avoid warnings/errors from some minifiers. // They was reserved word in ECMAScript 2, but is not since ECMAScript 5. -native +@native @Target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD) @Retention(AnnotationRetention.SOURCE) public annotation class volatile -native +@native @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER) @Retention(AnnotationRetention.SOURCE) public annotation class synchronized -public inline fun synchronized(lock: Any, @inlineOptions(ONLY_LOCAL_RETURN) block: () -> R): R = block() +public inline fun synchronized(lock: Any, crossinline block: () -> R): R = block() diff --git a/js/js.libraries/src/core/core.kt b/js/js.libraries/src/core/core.kt index 3a60d4fce4c..f5afbea4c83 100644 --- a/js/js.libraries/src/core/core.kt +++ b/js/js.libraries/src/core/core.kt @@ -2,37 +2,37 @@ package kotlin.js import java.util.*; -native +@native public val noImpl: T = throw Exception() -native +@native public fun eval(expr: String): dynamic = noImpl -native +@native public fun typeof(a: Any?): String = noImpl -native +@native public val undefined: Nothing? = noImpl // Drop this after KT-2093 will be fixed and restore MutableMap.set in Maps.kt from MapsJVM.kt /** Provides [] access to maps */ -@suppress("BASE_WITH_NULLABLE_UPPER_BOUND") -native public fun MutableMap.set(key: K, value: V): V? = noImpl +@Suppress("BASE_WITH_NULLABLE_UPPER_BOUND") +@native public fun MutableMap.set(key: K, value: V): V? = noImpl -library +@library public fun println() {} -library +@library public fun println(s : Any?) {} -library +@library public fun print(s : Any?) {} //TODO: consistent parseInt -native +@native public fun parseInt(s: String, radix: Int = 10): Int = noImpl -library +@library public fun safeParseInt(s : String) : Int? = noImpl -library +@library public fun safeParseDouble(s : String) : Double? = noImpl -native +@native public fun js(code: String): dynamic = noImpl diff --git a/js/js.libraries/src/core/date.kt b/js/js.libraries/src/core/date.kt index f1722271a86..d315642bdd4 100644 --- a/js/js.libraries/src/core/date.kt +++ b/js/js.libraries/src/core/date.kt @@ -1,6 +1,6 @@ package kotlin.js -native +@native public class Date() { public fun getTime() : Int = noImpl } diff --git a/js/js.libraries/src/core/debug.kt b/js/js.libraries/src/core/debug.kt index b34b3041436..f6eb638e850 100644 --- a/js/js.libraries/src/core/debug.kt +++ b/js/js.libraries/src/core/debug.kt @@ -1,13 +1,13 @@ package kotlin.js // https://developer.mozilla.org/en/DOM/console -native public trait Console { - native public fun dir(o: Any): Unit = noImpl - native public fun error(vararg o: Any?): Unit = noImpl - native public fun info(vararg o: Any?): Unit = noImpl - native public fun log(vararg o: Any?): Unit = noImpl - native public fun warn(vararg o: Any?): Unit = noImpl +@native public trait Console { + @native public fun dir(o: Any): Unit = noImpl + @native public fun error(vararg o: Any?): Unit = noImpl + @native public fun info(vararg o: Any?): Unit = noImpl + @native public fun log(vararg o: Any?): Unit = noImpl + @native public fun warn(vararg o: Any?): Unit = noImpl } -native +@native public val console: Console = noImpl diff --git a/js/js.libraries/src/core/domViews.kt b/js/js.libraries/src/core/domViews.kt index 00ac9cbcdbe..eda0edb1616 100644 --- a/js/js.libraries/src/core/domViews.kt +++ b/js/js.libraries/src/core/domViews.kt @@ -1,6 +1,6 @@ package org.w3c.dom.views -deprecated("Use declarations from org.w3c.dom instead") -native public trait AbstractView { +@Deprecated("Use declarations from org.w3c.dom instead") +@native public trait AbstractView { } diff --git a/js/js.libraries/src/core/htmlDom.kt b/js/js.libraries/src/core/htmlDom.kt index 67235f6d904..d0a211c1863 100644 --- a/js/js.libraries/src/core/htmlDom.kt +++ b/js/js.libraries/src/core/htmlDom.kt @@ -2,749 +2,749 @@ package kotlin.js.dom.html import org.w3c.dom.* -native -deprecated("Use declarations from kotlin.browser instead") +@native +@Deprecated("Use declarations from kotlin.browser instead") public val window: Window = noImpl -native -deprecated("Use declarations from kotlin.browser instead") +@native +@Deprecated("Use declarations from kotlin.browser instead") public var document: HTMLDocument = noImpl -deprecated("Do not use it") -public native trait Object { -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Image : HTMLImageElement { -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Navigator { - public native var userAgent: String - public native var product: String - public native var appVersion: String - public native var appName: String - public native var appCodeName: String - public native var language: String - public native var mimeTypes: Array - public native var platform: Array - public native var plugins: String - public native fun taintEnabled(): Boolean - public native fun javaEnabled(): Boolean - public native fun preference(prefName: String, prefValue: String): String - public native fun preference(prefName: String): String -} - -public native trait Screen { - public native var width: Double - public native var height: Double - public native var availHeight: Double - public native var availWidth: Double - public native var pixelDepth: Double - public native var colorDepth: Double -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Option { - public native var defaultSelected: Boolean - public native var selected: Boolean - public native var text: String - public native var value: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Location { - public native var href: String - public native var hash: String - public native var port: String - public native var host: String - public native var hostname: String - public native var pathname: String - public native var protocol: String - public native var search: String - public native var target: String - public native fun reload(): Unit - public native fun replace(url: String): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Event { - public native var data: Array - public native var height: Double - public native var screenX: Double - public native var clientX: Double - public native var pageX: Double - public native var screenY: Double - public native var clientY: Double - public native var pageY: Double - public native var width: Double - public native var modifiers: Double - public native var keyCode: Double - public native var type: String - public native var which: Any - public native var altKey: Boolean - public native var ctrlKey: Boolean - public native var shiftKey: Boolean - public native var button: Boolean -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Selection { - -} -deprecated("Use declarations from org.w3c.dom instead") -public native trait CSSRule { - public native var selectorText: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Stylesheet { -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait History { - public native fun back(): Unit - public native fun forward(): Unit - public native fun go(count: Number): Unit -} - -public native trait Console { - public native fun log(message: Any): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait Window { - public native val document: HTMLDocument - public native val event: Event - public native val navigator: Navigator - public native val screen: Screen - public native val location: Location - public native var frameElement: Any - public native var opener: Window - public native var window: Window - public native var parent: Window - public native var top: Window - public native var self: Any - public native var frames: Array - public native var innerHeight: Double - public native var innerWidth: Double - public native var outerHeight: Double - public native var outerWidth: Double - public native var scrollX: Double - public native var scrollY: Double - public native var pageXOffset: Double - public native var pageYOffset: Double - public native var scrollMaxX: Double - public native var scrollMaxY: Double - public native var status: String - public native var defaultStatus: String - public native var toolbar: Any - public native var menubar: Any - public native var scrollbars: Any - public native var directories: Any - public native var history: History - public native fun open(strUrl: String, strWindowName: String, strWindowFeatures: String): Window? - public native fun open(): Window? - public native fun open(strUrl: String): Window? - public native fun open(strUrl: String, strWindowName: String): Window? - public native fun print(): Unit - public native fun clearInterval(intervalId: Number): Unit - public native fun clearTimeout(intervalId: Number): Unit - public native fun setInterval(vCode: () -> Unit, iMillis: Number): Long - public native fun setInterval(vCode: String, iMillis: Number): Long - public native fun setTimeout(vCode: () -> Unit, iMillis: Number): Long - public native fun setTimeout(vCode: String, iMillis: Number): Long - public native fun scrollTo(x: Number, y: Number): Unit - public native fun scrollBy(xDelta: Number, yDelta: Number): Unit - public native fun moveTo(x: Number, y: Number): Unit - public native fun moveBy(xDelta: Number, yDelta: Number): Unit - public native fun resizeTo(width: Number, height: Number): Unit - public native fun resizeBy(widthDelta: Number, heightDelta: Number): Unit - public native var onload: () -> Unit - public native var onunload: () -> Unit -} - -public native trait Global { - public native val window: Window - public native fun escape(str: String): Unit - public native fun escape(): Unit - public native fun unescape(str: String): Unit - public native fun unescape(): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLCollection { - public native val length: Double - public native fun item(index: Number): Node? - public native fun namedItem(name: String): Node? -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLOptionsCollection { - public native val length: Double - public native fun item(index: Number): Node? - public native fun namedItem(name: String): Node? -} - -deprecated("Use declarations from org.w3c.dom instead") -public native class HTMLDocument : Document() { - public native fun open(): Unit - public native fun write(text: String): Unit - public native fun writeln(text: String): Unit - public native var onunload: () -> Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLElement : Element { - public native var title: String - public native var lang: String - public native var dir: String - public native var style: CSSStyleDeclaration - public native var offsetWidth: Double - public native var offsetHeight: Double - public native var offsetTop: Double - public native var offsetLeft: Double - public native var offsetParent: HTMLElement? - public native var stylesheet: Stylesheet - public native var onblur: () -> Unit - public native var onclick: () -> Unit - public native var ondblclick: () -> Unit - public native var onfocus: () -> Unit - public native var onkeydown: () -> Unit - public native var onkeyup: () -> Unit - public native var onmouseup: () -> Unit - public native var onmousedown: () -> Unit - public native var onmouseout: () -> Unit - public native var onmouseover: () -> Unit - public native var onmousemove: () -> Unit - public native var onresize: () -> Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait CSSStyleDeclaration { - public native var cssText: String - public native var length: Double - public native var parentRule: CSSRule - public native fun getPropertyPriority(propertyName: String): String - public native fun getPropertyValue(propertyName: String): String - public native fun item(index: Number): String - public native fun removeProperty(propertyName: String): String - public native fun setProperty(propertyName: String, value: String, priority: String): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLHtmlElement : HTMLElement { - public native var version: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLHeadElement : HTMLElement { - public native var profile: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLLinkElement : HTMLElement { - public native var disabled: Boolean - public native var charset: String - public native var href: String - public native var hreflang: String - public native var media: String - public native var rel: String - public native var rev: String - public native var target: String - public native var type: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTitleElement : HTMLElement { - public native var text: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLMetaElement : HTMLElement { - public native var content: String - public native var httpEquiv: String - public native var name: String - public native var scheme: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLBaseElement : HTMLElement { - public native var href: String - public native var target: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLIsIndexElement : HTMLElement { - public native val form: HTMLFormElement - public native var prompt: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLStyleElement : HTMLElement { - public native var disabled: Boolean - public native var media: String - public native var type: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLBodyElement : HTMLElement { - public native var aLink: String - public native var background: String - public native var bgColor: String - public native var link: String - public native var text: String - public native var vLink: String - public native var onload: () -> Unit - public native var onunload: () -> Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLFormElement { - public native val elements: HTMLCollection - public native val length: Double - public native var name: String - public native var acceptCharset: String - public native var action: String - public native var enctype: String - public native var method: String - public native var target: String - public native fun submit(): Unit - public native fun reset(): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLSelectElement : HTMLElement { - public native val type: String - public native var selectedIndex: Double - public native var value: String - public native var length: Double - public native val form: HTMLFormElement - public native val options: HTMLOptionsCollection - public native var disabled: Boolean - public native var multiple: Boolean - public native var name: String - public native var size: Double - public native var tabIndex: Double - public native fun add(element: HTMLElement, before: HTMLElement): Unit - public native fun remove(index: Number): Unit - public native fun blur(): Unit - public native fun focus(): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLOptGroupElement : HTMLElement { - public native var disabled: Boolean - public native var label: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLOptionElement : HTMLElement { - public native val form: HTMLFormElement - public native var defaultSelected: Boolean - public native var text: String - public native var index: Double - public native var disabled: Boolean - public native var label: String - public native var selected: Boolean - public native var value: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLInputElement : HTMLElement { - public native var defaultValue: String - public native var defaultChecked: Boolean - public native val form: HTMLFormElement - public native var accept: String - public native var accessKey: String - public native var align: String - public native var alt: String - public native var checked: Boolean - public native var disabled: Boolean - public native var maxLength: Double - public native var name: String - public native var readOnly: Boolean - public native var size: Double - public native var src: String - public native var tabIndex: Double - public native var type: String - public native var useMap: String - public native var value: String - public native fun blur(): Unit - public native fun focus(): Unit - public native fun select(): Unit - public native fun click(): Unit - public native var selectionStart: Double - public native var selectionEnd: Double -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTextAreaElement : HTMLElement { - public native var defaultValue: String - public native val form: HTMLFormElement - public native var accessKey: String - public native var cols: Double - public native var disabled: Boolean - public native var name: String - public native var readOnly: Boolean - public native var rows: Double - public native var tabIndex: Double - public native var type: String - public native var value: String - public native fun blur(): Unit - public native fun focus(): Unit - public native fun select(): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLButtonElement : HTMLElement { - public native val form: HTMLFormElement - public native var accessKey: String - public native var disabled: Boolean - public native var name: String - public native var tabIndex: Double - public native var type: String - public native var value: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLLabelElement : HTMLElement { - public native val form: HTMLFormElement - public native var accessKey: String - public native var htmlFor: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLFieldSetElement : HTMLElement { - public native val form: HTMLFormElement +@Deprecated("Do not use it") +public @native trait Object { +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Image : HTMLImageElement { +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Navigator { + public @native var userAgent: String + public @native var product: String + public @native var appVersion: String + public @native var appName: String + public @native var appCodeName: String + public @native var language: String + public @native var mimeTypes: Array + public @native var platform: Array + public @native var plugins: String + public @native fun taintEnabled(): Boolean + public @native fun javaEnabled(): Boolean + public @native fun preference(prefName: String, prefValue: String): String + public @native fun preference(prefName: String): String +} + +public @native trait Screen { + public @native var width: Double + public @native var height: Double + public @native var availHeight: Double + public @native var availWidth: Double + public @native var pixelDepth: Double + public @native var colorDepth: Double +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Option { + public @native var defaultSelected: Boolean + public @native var selected: Boolean + public @native var text: String + public @native var value: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Location { + public @native var href: String + public @native var hash: String + public @native var port: String + public @native var host: String + public @native var hostname: String + public @native var pathname: String + public @native var protocol: String + public @native var search: String + public @native var target: String + public @native fun reload(): Unit + public @native fun replace(url: String): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Event { + public @native var data: Array + public @native var height: Double + public @native var screenX: Double + public @native var clientX: Double + public @native var pageX: Double + public @native var screenY: Double + public @native var clientY: Double + public @native var pageY: Double + public @native var width: Double + public @native var modifiers: Double + public @native var keyCode: Double + public @native var type: String + public @native var which: Any + public @native var altKey: Boolean + public @native var ctrlKey: Boolean + public @native var shiftKey: Boolean + public @native var button: Boolean +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Selection { + +} +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait CSSRule { + public @native var selectorText: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Stylesheet { +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait History { + public @native fun back(): Unit + public @native fun forward(): Unit + public @native fun go(count: Number): Unit +} + +public @native trait Console { + public @native fun log(message: Any): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait Window { + public @native val document: HTMLDocument + public @native val event: Event + public @native val navigator: Navigator + public @native val screen: Screen + public @native val location: Location + public @native var frameElement: Any + public @native var opener: Window + public @native var window: Window + public @native var parent: Window + public @native var top: Window + public @native var self: Any + public @native var frames: Array + public @native var innerHeight: Double + public @native var innerWidth: Double + public @native var outerHeight: Double + public @native var outerWidth: Double + public @native var scrollX: Double + public @native var scrollY: Double + public @native var pageXOffset: Double + public @native var pageYOffset: Double + public @native var scrollMaxX: Double + public @native var scrollMaxY: Double + public @native var status: String + public @native var defaultStatus: String + public @native var toolbar: Any + public @native var menubar: Any + public @native var scrollbars: Any + public @native var directories: Any + public @native var history: History + public @native fun open(strUrl: String, strWindowName: String, strWindowFeatures: String): Window? + public @native fun open(): Window? + public @native fun open(strUrl: String): Window? + public @native fun open(strUrl: String, strWindowName: String): Window? + public @native fun print(): Unit + public @native fun clearInterval(intervalId: Number): Unit + public @native fun clearTimeout(intervalId: Number): Unit + public @native fun setInterval(vCode: () -> Unit, iMillis: Number): Long + public @native fun setInterval(vCode: String, iMillis: Number): Long + public @native fun setTimeout(vCode: () -> Unit, iMillis: Number): Long + public @native fun setTimeout(vCode: String, iMillis: Number): Long + public @native fun scrollTo(x: Number, y: Number): Unit + public @native fun scrollBy(xDelta: Number, yDelta: Number): Unit + public @native fun moveTo(x: Number, y: Number): Unit + public @native fun moveBy(xDelta: Number, yDelta: Number): Unit + public @native fun resizeTo(width: Number, height: Number): Unit + public @native fun resizeBy(widthDelta: Number, heightDelta: Number): Unit + public @native var onload: () -> Unit + public @native var onunload: () -> Unit +} + +public @native trait Global { + public @native val window: Window + public @native fun escape(str: String): Unit + public @native fun escape(): Unit + public @native fun unescape(str: String): Unit + public @native fun unescape(): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLCollection { + public @native val length: Double + public @native fun item(index: Number): Node? + public @native fun namedItem(name: String): Node? +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLOptionsCollection { + public @native val length: Double + public @native fun item(index: Number): Node? + public @native fun namedItem(name: String): Node? +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native class HTMLDocument : Document() { + public @native fun open(): Unit + public @native fun write(text: String): Unit + public @native fun writeln(text: String): Unit + public @native var onunload: () -> Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLElement : Element { + public @native var title: String + public @native var lang: String + public @native var dir: String + public @native var style: CSSStyleDeclaration + public @native var offsetWidth: Double + public @native var offsetHeight: Double + public @native var offsetTop: Double + public @native var offsetLeft: Double + public @native var offsetParent: HTMLElement? + public @native var stylesheet: Stylesheet + public @native var onblur: () -> Unit + public @native var onclick: () -> Unit + public @native var ondblclick: () -> Unit + public @native var onfocus: () -> Unit + public @native var onkeydown: () -> Unit + public @native var onkeyup: () -> Unit + public @native var onmouseup: () -> Unit + public @native var onmousedown: () -> Unit + public @native var onmouseout: () -> Unit + public @native var onmouseover: () -> Unit + public @native var onmousemove: () -> Unit + public @native var onresize: () -> Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait CSSStyleDeclaration { + public @native var cssText: String + public @native var length: Double + public @native var parentRule: CSSRule + public @native fun getPropertyPriority(propertyName: String): String + public @native fun getPropertyValue(propertyName: String): String + public @native fun item(index: Number): String + public @native fun removeProperty(propertyName: String): String + public @native fun setProperty(propertyName: String, value: String, priority: String): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLHtmlElement : HTMLElement { + public @native var version: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLHeadElement : HTMLElement { + public @native var profile: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLLinkElement : HTMLElement { + public @native var disabled: Boolean + public @native var charset: String + public @native var href: String + public @native var hreflang: String + public @native var media: String + public @native var rel: String + public @native var rev: String + public @native var target: String + public @native var type: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTitleElement : HTMLElement { + public @native var text: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLMetaElement : HTMLElement { + public @native var content: String + public @native var httpEquiv: String + public @native var name: String + public @native var scheme: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLBaseElement : HTMLElement { + public @native var href: String + public @native var target: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLIsIndexElement : HTMLElement { + public @native val form: HTMLFormElement + public @native var prompt: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLStyleElement : HTMLElement { + public @native var disabled: Boolean + public @native var media: String + public @native var type: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLBodyElement : HTMLElement { + public @native var aLink: String + public @native var background: String + public @native var bgColor: String + public @native var link: String + public @native var text: String + public @native var vLink: String + public @native var onload: () -> Unit + public @native var onunload: () -> Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLFormElement { + public @native val elements: HTMLCollection + public @native val length: Double + public @native var name: String + public @native var acceptCharset: String + public @native var action: String + public @native var enctype: String + public @native var method: String + public @native var target: String + public @native fun submit(): Unit + public @native fun reset(): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLSelectElement : HTMLElement { + public @native val type: String + public @native var selectedIndex: Double + public @native var value: String + public @native var length: Double + public @native val form: HTMLFormElement + public @native val options: HTMLOptionsCollection + public @native var disabled: Boolean + public @native var multiple: Boolean + public @native var name: String + public @native var size: Double + public @native var tabIndex: Double + public @native fun add(element: HTMLElement, before: HTMLElement): Unit + public @native fun remove(index: Number): Unit + public @native fun blur(): Unit + public @native fun focus(): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLOptGroupElement : HTMLElement { + public @native var disabled: Boolean + public @native var label: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLOptionElement : HTMLElement { + public @native val form: HTMLFormElement + public @native var defaultSelected: Boolean + public @native var text: String + public @native var index: Double + public @native var disabled: Boolean + public @native var label: String + public @native var selected: Boolean + public @native var value: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLInputElement : HTMLElement { + public @native var defaultValue: String + public @native var defaultChecked: Boolean + public @native val form: HTMLFormElement + public @native var accept: String + public @native var accessKey: String + public @native var align: String + public @native var alt: String + public @native var checked: Boolean + public @native var disabled: Boolean + public @native var maxLength: Double + public @native var name: String + public @native var readOnly: Boolean + public @native var size: Double + public @native var src: String + public @native var tabIndex: Double + public @native var type: String + public @native var useMap: String + public @native var value: String + public @native fun blur(): Unit + public @native fun focus(): Unit + public @native fun select(): Unit + public @native fun click(): Unit + public @native var selectionStart: Double + public @native var selectionEnd: Double +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTextAreaElement : HTMLElement { + public @native var defaultValue: String + public @native val form: HTMLFormElement + public @native var accessKey: String + public @native var cols: Double + public @native var disabled: Boolean + public @native var name: String + public @native var readOnly: Boolean + public @native var rows: Double + public @native var tabIndex: Double + public @native var type: String + public @native var value: String + public @native fun blur(): Unit + public @native fun focus(): Unit + public @native fun select(): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLButtonElement : HTMLElement { + public @native val form: HTMLFormElement + public @native var accessKey: String + public @native var disabled: Boolean + public @native var name: String + public @native var tabIndex: Double + public @native var type: String + public @native var value: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLLabelElement : HTMLElement { + public @native val form: HTMLFormElement + public @native var accessKey: String + public @native var htmlFor: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLFieldSetElement : HTMLElement { + public @native val form: HTMLFormElement } -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLLegendElement : HTMLElement { - public native val form: HTMLFormElement - public native var accessKey: String - public native var align: String +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLLegendElement : HTMLElement { + public @native val form: HTMLFormElement + public @native var accessKey: String + public @native var align: String } -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLUListElement : HTMLElement { - public native var compact: Boolean - public native var type: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLOListElement : HTMLElement { - public native var compact: Boolean - public native var start: Double - public native var type: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLDListElement : HTMLElement { - public native var compact: Boolean -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLDirectoryElement : HTMLElement { - public native var compact: Boolean -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLMenuElement : HTMLElement { - public native var compact: Boolean -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLLIElement : HTMLElement { - public native var type: String - public native var value: Double -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLDivElement : HTMLElement { - public native var align: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLParagraphElement : HTMLElement { - public native var align: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLHeadingElement : HTMLElement { - public native var align: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLQuoteElement : HTMLElement { - public native var cite: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLPreElement : HTMLElement { - public native var width: Double +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLUListElement : HTMLElement { + public @native var compact: Boolean + public @native var type: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLOListElement : HTMLElement { + public @native var compact: Boolean + public @native var start: Double + public @native var type: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLDListElement : HTMLElement { + public @native var compact: Boolean +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLDirectoryElement : HTMLElement { + public @native var compact: Boolean +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLMenuElement : HTMLElement { + public @native var compact: Boolean +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLLIElement : HTMLElement { + public @native var type: String + public @native var value: Double +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLDivElement : HTMLElement { + public @native var align: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLParagraphElement : HTMLElement { + public @native var align: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLHeadingElement : HTMLElement { + public @native var align: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLQuoteElement : HTMLElement { + public @native var cite: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLPreElement : HTMLElement { + public @native var width: Double } -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLBRElement : HTMLElement { - public native var clear: String +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLBRElement : HTMLElement { + public @native var clear: String } -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLBaseFontElement : HTMLElement { - public native var color: String - public native var face: String - public native var size: Double -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLFontElement : HTMLElement { - public native var color: String - public native var face: String - public native var size: String +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLBaseFontElement : HTMLElement { + public @native var color: String + public @native var face: String + public @native var size: Double +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLFontElement : HTMLElement { + public @native var color: String + public @native var face: String + public @native var size: String } -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLHRElement : HTMLElement { - public native var align: String - public native var noShade: Boolean - public native var size: String - public native var width: String +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLHRElement : HTMLElement { + public @native var align: String + public @native var noShade: Boolean + public @native var size: String + public @native var width: String } -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLModElement : HTMLElement { - public native var cite: String - public native var dateTime: String -} +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLModElement : HTMLElement { + public @native var cite: String + public @native var dateTime: String +} -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLAnchorElement : HTMLElement { - public native var accessKey: String - public native var charset: String - public native var coords: String - public native var href: String - public native var hreflang: String - public native var name: String - public native var rel: String - public native var rev: String - public native var shape: String - public native var tabIndex: Double - public native var target: String - public native var type: String - public native fun blur(): Unit - public native fun focus(): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLImageElement : HTMLElement { - public native var name: String - public native var align: String - public native var alt: String - public native var border: String - public native var height: Double - public native var hspace: Double - public native var isMap: Boolean - public native var longDesc: String - public native var naturalHeight: Int - public native var naturalWidth: Int - public native var src: String - public native var useMap: String - public native var vspace: Double - public native var width: Double -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLObjectElement : HTMLElement { - public native val form: HTMLFormElement - public native var code: String - public native var align: String - public native var archive: String - public native var border: String - public native var codeBase: String - public native var codeType: String - public native var data: String - public native var declare: Boolean - public native var height: String - public native var hspace: Double - public native var name: String - public native var standby: String - public native var tabIndex: Double - public native var type: String - public native var useMap: String - public native var vspace: Double - public native var width: String - public native val contentDocument: Document -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLParamElement : HTMLElement { - public native var name: String - public native var type: String - public native var value: String - public native var valueType: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLAppletElement : HTMLElement { - public native var align: String - public native var alt: String - public native var archive: String - public native var code: String - public native var codeBase: String - public native var height: String - public native var hspace: Double - public native var name: String - public native var `object`: String - public native var vspace: Double - public native var width: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLMapElement : HTMLElement { - public native val areas: HTMLCollection - public native var name: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLAreaElement : HTMLElement { - public native var accessKey: String - public native var alt: String - public native var coords: String - public native var href: String - public native var noHref: Boolean - public native var shape: String - public native var tabIndex: Double - public native var target: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLScriptElement : HTMLElement { - public native var text: String - public native var htmlFor: String - public native var event: String - public native var charset: String - public native var defer: Boolean - public native var src: String - public native var type: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTableElement : HTMLElement { - public native var caption: HTMLTableCaptionElement - public native var tHead: HTMLTableSectionElement - public native var tFoot: HTMLTableSectionElement - public native val rows: HTMLCollection - public native val tBodies: HTMLCollection - public native var align: String - public native var bgColor: String - public native var border: String - public native var cellPadding: String - public native var cellSpacing: String - public native var frame: String - public native var rules: String - public native var summary: String - public native var width: String - public native fun createTHead(): HTMLElement? - public native fun deleteTHead(): Unit - public native fun createTFoot(): HTMLElement? - public native fun deleteTFoot(): Unit - public native fun createCaption(): HTMLElement? - public native fun deleteCaption(): Unit - public native fun insertRow(index: Number): HTMLElement? - public native fun deleteRow(index: Number): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTableCaptionElement : HTMLElement { - public native var align: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTableColElement : HTMLElement { - public native var align: String - public native var ch: String - public native var chOff: String - public native var span: Double - public native var vAlign: String - public native var width: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTableSectionElement : HTMLElement { - public native var align: String - public native var ch: String - public native var chOff: String - public native var vAlign: String - public native val rows: HTMLCollection - public native fun insertRow(index: Number): HTMLElement? - public native fun deleteRow(index: Number): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTableRowElement : HTMLElement { - public native val rowIndex: Double - public native val sectionRowIndex: Double - public native val cells: HTMLCollection - public native var align: String - public native var bgColor: String - public native var ch: String - public native var chOff: String - public native var vAlign: String - public native fun insertCell(index: Number): HTMLElement? - public native fun deleteCell(index: Number): Unit -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLTableCellElement : HTMLElement { - public native val cellIndex: Double - public native var abbr: String - public native var align: String - public native var axis: String - public native var bgColor: String - public native var ch: String - public native var chOff: String - public native var colSpan: Double - public native var headers: String - public native var height: String - public native var noWrap: Boolean - public native var rowSpan: Double - public native var scope: String - public native var vAlign: String - public native var width: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLFrameSetElement : HTMLElement { - public native var cols: String - public native var rows: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLFrameElement : HTMLElement { - public native var frameBorder: String - public native var longDesc: String - public native var marginHeight: String - public native var marginWidth: String - public native var name: String - public native var noResize: Boolean - public native var scrolling: String - public native var src: String -} - -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLIFrameElement : HTMLElement { - public native var align: String - public native var frameBorder: String - public native var height: String - public native var longDesc: String - public native var marginHeight: String - public native var marginWidth: String - public native var name: String - public native var scrolling: String - public native var src: String - public native var width: String - public native val contentDocument: Document - public native val contentWindow: Window +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLAnchorElement : HTMLElement { + public @native var accessKey: String + public @native var charset: String + public @native var coords: String + public @native var href: String + public @native var hreflang: String + public @native var name: String + public @native var rel: String + public @native var rev: String + public @native var shape: String + public @native var tabIndex: Double + public @native var target: String + public @native var type: String + public @native fun blur(): Unit + public @native fun focus(): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLImageElement : HTMLElement { + public @native var name: String + public @native var align: String + public @native var alt: String + public @native var border: String + public @native var height: Double + public @native var hspace: Double + public @native var isMap: Boolean + public @native var longDesc: String + public @native var naturalHeight: Int + public @native var naturalWidth: Int + public @native var src: String + public @native var useMap: String + public @native var vspace: Double + public @native var width: Double +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLObjectElement : HTMLElement { + public @native val form: HTMLFormElement + public @native var code: String + public @native var align: String + public @native var archive: String + public @native var border: String + public @native var codeBase: String + public @native var codeType: String + public @native var data: String + public @native var declare: Boolean + public @native var height: String + public @native var hspace: Double + public @native var name: String + public @native var standby: String + public @native var tabIndex: Double + public @native var type: String + public @native var useMap: String + public @native var vspace: Double + public @native var width: String + public @native val contentDocument: Document +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLParamElement : HTMLElement { + public @native var name: String + public @native var type: String + public @native var value: String + public @native var valueType: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLAppletElement : HTMLElement { + public @native var align: String + public @native var alt: String + public @native var archive: String + public @native var code: String + public @native var codeBase: String + public @native var height: String + public @native var hspace: Double + public @native var name: String + public @native var `object`: String + public @native var vspace: Double + public @native var width: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLMapElement : HTMLElement { + public @native val areas: HTMLCollection + public @native var name: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLAreaElement : HTMLElement { + public @native var accessKey: String + public @native var alt: String + public @native var coords: String + public @native var href: String + public @native var noHref: Boolean + public @native var shape: String + public @native var tabIndex: Double + public @native var target: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLScriptElement : HTMLElement { + public @native var text: String + public @native var htmlFor: String + public @native var event: String + public @native var charset: String + public @native var defer: Boolean + public @native var src: String + public @native var type: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTableElement : HTMLElement { + public @native var caption: HTMLTableCaptionElement + public @native var tHead: HTMLTableSectionElement + public @native var tFoot: HTMLTableSectionElement + public @native val rows: HTMLCollection + public @native val tBodies: HTMLCollection + public @native var align: String + public @native var bgColor: String + public @native var border: String + public @native var cellPadding: String + public @native var cellSpacing: String + public @native var frame: String + public @native var rules: String + public @native var summary: String + public @native var width: String + public @native fun createTHead(): HTMLElement? + public @native fun deleteTHead(): Unit + public @native fun createTFoot(): HTMLElement? + public @native fun deleteTFoot(): Unit + public @native fun createCaption(): HTMLElement? + public @native fun deleteCaption(): Unit + public @native fun insertRow(index: Number): HTMLElement? + public @native fun deleteRow(index: Number): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTableCaptionElement : HTMLElement { + public @native var align: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTableColElement : HTMLElement { + public @native var align: String + public @native var ch: String + public @native var chOff: String + public @native var span: Double + public @native var vAlign: String + public @native var width: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTableSectionElement : HTMLElement { + public @native var align: String + public @native var ch: String + public @native var chOff: String + public @native var vAlign: String + public @native val rows: HTMLCollection + public @native fun insertRow(index: Number): HTMLElement? + public @native fun deleteRow(index: Number): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTableRowElement : HTMLElement { + public @native val rowIndex: Double + public @native val sectionRowIndex: Double + public @native val cells: HTMLCollection + public @native var align: String + public @native var bgColor: String + public @native var ch: String + public @native var chOff: String + public @native var vAlign: String + public @native fun insertCell(index: Number): HTMLElement? + public @native fun deleteCell(index: Number): Unit +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLTableCellElement : HTMLElement { + public @native val cellIndex: Double + public @native var abbr: String + public @native var align: String + public @native var axis: String + public @native var bgColor: String + public @native var ch: String + public @native var chOff: String + public @native var colSpan: Double + public @native var headers: String + public @native var height: String + public @native var noWrap: Boolean + public @native var rowSpan: Double + public @native var scope: String + public @native var vAlign: String + public @native var width: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLFrameSetElement : HTMLElement { + public @native var cols: String + public @native var rows: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLFrameElement : HTMLElement { + public @native var frameBorder: String + public @native var longDesc: String + public @native var marginHeight: String + public @native var marginWidth: String + public @native var name: String + public @native var noResize: Boolean + public @native var scrolling: String + public @native var src: String +} + +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLIFrameElement : HTMLElement { + public @native var align: String + public @native var frameBorder: String + public @native var height: String + public @native var longDesc: String + public @native var marginHeight: String + public @native var marginWidth: String + public @native var name: String + public @native var scrolling: String + public @native var src: String + public @native var width: String + public @native val contentDocument: Document + public @native val contentWindow: Window } diff --git a/js/js.libraries/src/core/javaio.kt b/js/js.libraries/src/core/javaio.kt index 93d889afa82..37b3a12ce5a 100644 --- a/js/js.libraries/src/core/javaio.kt +++ b/js/js.libraries/src/core/javaio.kt @@ -1,9 +1,9 @@ package java.io -library +@library public class IOException(message: String = "") : Exception() {} -library +@library public trait Closeable { public open fun close() : Unit; } diff --git a/js/js.libraries/src/core/javalang.kt b/js/js.libraries/src/core/javalang.kt index b7e03bf2ef2..03b28418c64 100644 --- a/js/js.libraries/src/core/javalang.kt +++ b/js/js.libraries/src/core/javalang.kt @@ -1,33 +1,33 @@ package java.lang -library +@library open public class Error(message: String? = null): Throwable(message) {} -library +@library open public class Exception(message: String? = null): Throwable(message) {} -library +@library open public class RuntimeException(message: String? = null) : Exception(message) {} -library +@library public class IllegalArgumentException(message: String? = null) : RuntimeException(message) {} -library +@library public class IllegalStateException(message: String? = null) : RuntimeException(message) {} -library +@library public class IndexOutOfBoundsException(message: String? = null) : RuntimeException(message) {} -library +@library public class UnsupportedOperationException(message: String? = null) : RuntimeException(message) {} -library +@library public class NumberFormatException(message: String? = null) : RuntimeException(message) {} -library +@library public class NullPointerException(message: String? = null) : RuntimeException(message) {} -library +@library public trait Runnable { public open fun run() : Unit; } @@ -36,14 +36,14 @@ public fun Runnable(action: () -> Unit): Runnable = object : Runnable { override fun run() = action() } -library +@library public trait Appendable { public open fun append(csq: CharSequence?): Appendable public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable public open fun append(c: Char): Appendable } -library +@library public class StringBuilder(capacity: Int? = null) : Appendable { override fun append(c: Char): StringBuilder = noImpl override fun append(csq: CharSequence?): StringBuilder = noImpl diff --git a/js/js.libraries/src/core/javautil.kt b/js/js.libraries/src/core/javautil.kt index 70250de8ed9..f1cc0531619 100644 --- a/js/js.libraries/src/core/javautil.kt +++ b/js/js.libraries/src/core/javautil.kt @@ -1,17 +1,17 @@ package java.util -native +@native private val DEFAULT_INITIAL_CAPACITY = 16 -native +@native private val DEFAULT_LOAD_FACTOR = 0.75f -library +@library public trait Comparator { public fun compare(obj1: T, obj2: T): Int; } -library +@library public abstract class AbstractCollection() : MutableCollection { override fun isEmpty(): Boolean = noImpl override fun contains(o: Any?): Boolean = noImpl @@ -32,7 +32,7 @@ public abstract class AbstractCollection() : MutableCollection { override fun equals(other: Any?): Boolean = noImpl } -library +@library public abstract class AbstractList() : AbstractCollection(), MutableList { abstract override fun get(index: Int): E override fun set(index: Int, element: E): E = noImpl @@ -58,59 +58,59 @@ public abstract class AbstractList() : AbstractCollection(), MutableList(capacity: Int = 0) : AbstractList() { override fun get(index: Int): E = noImpl override fun size(): Int = noImpl } -library +@library public open class LinkedList() : AbstractList() { override fun get(index: Int): E = noImpl override fun set(index: Int, element: E): E = noImpl override fun add(index: Int, element: E): Unit = noImpl - @suppress("BASE_WITH_NULLABLE_UPPER_BOUND") + @Suppress("BASE_WITH_NULLABLE_UPPER_BOUND") public fun poll(): E? = noImpl - @suppress("BASE_WITH_NULLABLE_UPPER_BOUND") + @Suppress("BASE_WITH_NULLABLE_UPPER_BOUND") public fun peek(): E? = noImpl public fun offer(e: E): Boolean = noImpl } -library +@library public open class HashSet( initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR ) : AbstractCollection(), MutableSet { override fun size(): Int = noImpl } -library +@library public trait SortedSet : Set { } -library +@library public open class TreeSet() : AbstractCollection(), MutableSet, SortedSet { override fun size(): Int = noImpl } -library +@library public open class LinkedHashSet( initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR ) : HashSet(initialCapacity, loadFactor), MutableSet { override fun size(): Int = noImpl } -library +@library public open class HashMap(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap { override fun size(): Int = noImpl override fun isEmpty(): Boolean = noImpl - @suppress("BASE_WITH_NULLABLE_UPPER_BOUND") + @Suppress("BASE_WITH_NULLABLE_UPPER_BOUND") override fun get(key: Any?): V? = noImpl override fun containsKey(key: Any?): Boolean = noImpl - @suppress("BASE_WITH_NULLABLE_UPPER_BOUND") + @Suppress("BASE_WITH_NULLABLE_UPPER_BOUND") override fun put(key: K, value: V): V? = noImpl override fun putAll(m: Map): Unit = noImpl - @suppress("BASE_WITH_NULLABLE_UPPER_BOUND") + @Suppress("BASE_WITH_NULLABLE_UPPER_BOUND") override fun remove(key: Any?): V? = noImpl override fun clear(): Unit = noImpl override fun containsValue(value: Any?): Boolean = noImpl @@ -119,21 +119,21 @@ public open class HashMap(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, override fun entrySet(): MutableSet> = noImpl } -library +@library public open class LinkedHashMap( initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR, accessOrder: Boolean = false ) : HashMap(initialCapacity, loadFactor) -library +@library public open class NoSuchElementException(message: String? = null) : Exception() {} -library +@library public trait Enumeration { public fun hasMoreElements(): Boolean public fun nextElement(): E } -native +@native public class Date() { public fun getTime(): Int = noImpl } diff --git a/js/js.libraries/src/core/javautilCollections.kt b/js/js.libraries/src/core/javautilCollections.kt index cec6a639cae..e62545f522c 100644 --- a/js/js.libraries/src/core/javautilCollections.kt +++ b/js/js.libraries/src/core/javautilCollections.kt @@ -3,11 +3,11 @@ package java.util.Collections import java.lang.* import java.util.* -library("collectionsMax") +@library("collectionsMax") public fun max(col : Collection, comp : Comparator) : T = noImpl -library("collectionsSort") +@library("collectionsSort") public fun sort(list: MutableList): Unit = noImpl -library("collectionsSort") +@library("collectionsSort") public fun sort(list: MutableList, comparator: java.util.Comparator): Unit = noImpl diff --git a/js/js.libraries/src/core/json.kt b/js/js.libraries/src/core/json.kt index dbc10d38b00..4b8ed523c7d 100644 --- a/js/js.libraries/src/core/json.kt +++ b/js/js.libraries/src/core/json.kt @@ -1,6 +1,6 @@ package kotlin.js -native public class Json() { +@native public class Json() { public fun get(propertyName: String): Any? = noImpl public fun set(propertyName: String, value: Any?): Unit = noImpl } @@ -13,10 +13,10 @@ public fun json(vararg pairs: Pair): Json { return res } -library("jsonAddProperties") +@library("jsonAddProperties") public fun Json.add(other: Json): Json = noImpl -native +@native public trait JsonClass { public fun stringify(o: Any): String public fun stringify(o: Any, replacer: (key: String, value: Any?)->Any?): String @@ -30,5 +30,5 @@ public trait JsonClass { public fun parse(text: String, reviver: ((key: String, value: Any?)->Any?)): T } -native +@native public val JSON: JsonClass = noImpl diff --git a/js/js.libraries/src/core/kotlin.kt b/js/js.libraries/src/core/kotlin.kt index f3a0a64fcca..3ef1049270a 100644 --- a/js/js.libraries/src/core/kotlin.kt +++ b/js/js.libraries/src/core/kotlin.kt @@ -2,36 +2,36 @@ package kotlin import java.util.* -library +@library public fun arrayOf(vararg value : T): Array = noImpl // "constructors" for primitive types array -library +@library public fun doubleArrayOf(vararg content : Double): DoubleArray = noImpl -library +@library public fun floatArrayOf(vararg content : Float): FloatArray = noImpl -library +@library public fun longArrayOf(vararg content : Long): LongArray = noImpl -library +@library public fun intArrayOf(vararg content : Int): IntArray = noImpl -library +@library public fun charArrayOf(vararg content : Char): CharArray = noImpl -library +@library public fun shortArrayOf(vararg content : Short): ShortArray = noImpl -library +@library public fun byteArrayOf(vararg content : Byte): ByteArray = noImpl -library +@library public fun booleanArrayOf(vararg content : Boolean): BooleanArray = noImpl -library("copyToArray") +@library("copyToArray") public fun Collection.toTypedArray(): Array = noImpl diff --git a/js/js.libraries/src/core/math.kt b/js/js.libraries/src/core/math.kt index 815642af75e..8eaf00c24aa 100644 --- a/js/js.libraries/src/core/math.kt +++ b/js/js.libraries/src/core/math.kt @@ -1,7 +1,7 @@ package kotlin.js //TODO: declare using number -native +@native public class MathClass() { public val PI : Double = noImpl; public fun random() : Double = noImpl; @@ -26,5 +26,5 @@ public class MathClass() { public fun ceil(value : Number) : Int = noImpl } -native +@native public val Math: MathClass = MathClass(); diff --git a/js/js.libraries/src/core/regexp.kt b/js/js.libraries/src/core/regexp.kt index 409a16b6ab8..c35736a7223 100644 --- a/js/js.libraries/src/core/regexp.kt +++ b/js/js.libraries/src/core/regexp.kt @@ -17,7 +17,7 @@ package kotlin.text.js -native public class RegExp(pattern: String, flags: String? = null) { +@native public class RegExp(pattern: String, flags: String? = null) { public fun test(str: String): Boolean = noImpl @@ -40,7 +40,7 @@ public fun RegExp.reset() { } -native public trait RegExpMatch { +@native public trait RegExpMatch { public val index: Int public val input: String } diff --git a/js/js.libraries/src/core/sequence.kt b/js/js.libraries/src/core/sequence.kt index 27d083d7f01..38e5c6fbbd7 100644 --- a/js/js.libraries/src/core/sequence.kt +++ b/js/js.libraries/src/core/sequence.kt @@ -17,7 +17,7 @@ package kotlin private class ConstrainedOnceSequence(sequence: Sequence) : Sequence { - private volatile var sequenceRef: Sequence? = sequence + @volatile private var sequenceRef: Sequence? = sequence //private val lock = Any() //TODO: Synchronize with the synchonized() method diff --git a/js/js.libraries/src/core/string.kt b/js/js.libraries/src/core/string.kt index e9fc480dc1a..46a4bc486d7 100644 --- a/js/js.libraries/src/core/string.kt +++ b/js/js.libraries/src/core/string.kt @@ -3,46 +3,46 @@ package kotlin import kotlin.text.js.RegExp -native public fun String.toUpperCase() : String = noImpl +@native public fun String.toUpperCase() : String = noImpl -native public fun String.toLowerCase() : String = noImpl +@native public fun String.toLowerCase() : String = noImpl -native("indexOf") +@native("indexOf") internal fun String.nativeIndexOf(str : String, fromIndex : Int) : Int = noImpl -native("lastIndexOf") +@native("lastIndexOf") internal fun String.nativeLastIndexOf(str : String, fromIndex : Int) : Int = noImpl -native("startsWith") +@native("startsWith") internal fun String.nativeStartsWith(s: String, position: Int): Boolean = noImpl -native("endsWith") +@native("endsWith") internal fun String.nativeEndsWith(s: String): Boolean = noImpl -deprecated("Use split(Regex) instead.", ReplaceWith("split(regex.toRegex()).toTypedArray()")) -library("splitString") +@Deprecated("Use split(Regex) instead.", ReplaceWith("split(regex.toRegex()).toTypedArray()")) +@library("splitString") public fun String.splitWithRegex(regex: String): Array = noImpl -deprecated("Use split(Regex) instead.", ReplaceWith("split(regex.toRegex(), limit = limit).toTypedArray()")) -library("splitString") +@Deprecated("Use split(Regex) instead.", ReplaceWith("split(regex.toRegex(), limit = limit).toTypedArray()")) +@library("splitString") public fun String.splitWithRegex(regex: String, limit: Int): Array = noImpl -native public fun String.substring(beginIndex : Int) : String = noImpl -native public fun String.substring(beginIndex : Int, endIndex : Int) : String = noImpl +@native public fun String.substring(beginIndex : Int) : String = noImpl +@native public fun String.substring(beginIndex : Int, endIndex : Int) : String = noImpl -native public fun String.concat(str : String) : String = noImpl +@native public fun String.concat(str : String) : String = noImpl -native public fun String.match(regex : String) : Array = noImpl +@native public fun String.match(regex : String) : Array = noImpl //native public fun String.trim() : String = noImpl //TODO: String.replace to implement effective trimLeading and trimTrailing -native("length") +@native("length") public val CharSequence.size: Int get() = noImpl -native("replace") +@native("replace") internal fun String.nativeReplace(pattern: RegExp, replacement: String): String = noImpl diff --git a/js/js.libraries/src/core/stringsCode.kt b/js/js.libraries/src/core/stringsCode.kt index 45dcda7195b..bf5ef406ea8 100644 --- a/js/js.libraries/src/core/stringsCode.kt +++ b/js/js.libraries/src/core/stringsCode.kt @@ -89,7 +89,7 @@ public fun String.replace(oldValue: String, newValue: String, ignoreCase: Boolea public fun String.replace(oldChar: Char, newChar: Char, ignoreCase: Boolean = false): String = nativeReplace(RegExp(Regex.escape(oldChar.toString()), if (ignoreCase) "gi" else "g"), newChar.toString()) -deprecated("Use replaceFirst(String, String) instead.", ReplaceWith("replaceFirst(oldValue, newValue, ignoreCase = ignoreCase)")) +@Deprecated("Use replaceFirst(String, String) instead.", ReplaceWith("replaceFirst(oldValue, newValue, ignoreCase = ignoreCase)")) public fun String.replaceFirstLiteral(oldValue: String, newValue: String, ignoreCase: Boolean = false): String = nativeReplace(RegExp(Regex.escape(oldValue), if (ignoreCase) "i" else ""), Regex.escapeReplacement(newValue)) diff --git a/js/js.libraries/src/generated/org.khronos.webgl.kt b/js/js.libraries/src/generated/org.khronos.webgl.kt index d033662c307..0f548b9cd82 100644 --- a/js/js.libraries/src/generated/org.khronos.webgl.kt +++ b/js/js.libraries/src/generated/org.khronos.webgl.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public interface WebGLContextAttributes { +@native public interface WebGLContextAttributes { var alpha: Boolean var depth: Boolean var stencil: Boolean @@ -31,7 +31,7 @@ native public interface WebGLContextAttributes { var failIfMajorPerformanceCaveat: Boolean } -suppress("NOTHING_TO_INLINE") +@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 { val o = js("({})") @@ -47,31 +47,31 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = return o } -native public interface WebGLObject { +@native public interface WebGLObject { } -native public interface WebGLBuffer : WebGLObject { +@native public interface WebGLBuffer : WebGLObject { } -native public interface WebGLFramebuffer : WebGLObject { +@native public interface WebGLFramebuffer : WebGLObject { } -native public interface WebGLProgram : WebGLObject { +@native public interface WebGLProgram : WebGLObject { } -native public interface WebGLRenderbuffer : WebGLObject { +@native public interface WebGLRenderbuffer : WebGLObject { } -native public interface WebGLShader : WebGLObject { +@native public interface WebGLShader : WebGLObject { } -native public interface WebGLTexture : WebGLObject { +@native public interface WebGLTexture : WebGLObject { } -native public interface WebGLUniformLocation { +@native public interface WebGLUniformLocation { } -native public interface WebGLActiveInfo { +@native public interface WebGLActiveInfo { val size: Int get() = noImpl val type: Int @@ -80,7 +80,7 @@ native public interface WebGLActiveInfo { get() = noImpl } -native public interface WebGLShaderPrecisionFormat { +@native public interface WebGLShaderPrecisionFormat { val rangeMin: Int get() = noImpl val rangeMax: Int @@ -89,7 +89,7 @@ native public interface WebGLShaderPrecisionFormat { get() = noImpl } -native public interface WebGLRenderingContext : RenderingContext { +@native public interface WebGLRenderingContext : RenderingContext { val canvas: HTMLCanvasElement get() = noImpl val drawingBufferWidth: Int @@ -552,16 +552,16 @@ native public interface WebGLRenderingContext : RenderingContext { } } -native public open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = noImpl) : Event(type, noImpl) { +@native public open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = noImpl) : Event(type, noImpl) { open val statusMessage: String get() = noImpl } -native public interface WebGLContextEventInit : EventInit { +@native public interface WebGLContextEventInit : EventInit { var statusMessage: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean = false, cancelable: Boolean = false): WebGLContextEventInit { val o = js("({})") @@ -572,7 +572,7 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean return o } -native public open class ArrayBuffer(length: Int) : Transferable { +@native public open class ArrayBuffer(length: Int) : Transferable { open val byteLength: Int get() = noImpl fun slice(begin: Int, end: Int = noImpl): ArrayBuffer = noImpl @@ -582,7 +582,7 @@ native public open class ArrayBuffer(length: Int) : Transferable { } } -native public open class Int8Array : ArrayBufferView { +@native public open class Int8Array : ArrayBufferView { constructor(length: Int) constructor(array: Int8Array) constructor(array: Array) @@ -606,7 +606,7 @@ native public open class Int8Array : ArrayBufferView { } } -native public open class Uint8Array : ArrayBufferView { +@native public open class Uint8Array : ArrayBufferView { constructor(length: Int) constructor(array: Uint8Array) constructor(array: Array) @@ -630,7 +630,7 @@ native public open class Uint8Array : ArrayBufferView { } } -native public open class Uint8ClampedArray : ArrayBufferView { +@native public open class Uint8ClampedArray : ArrayBufferView { constructor(length: Int) constructor(array: Uint8ClampedArray) constructor(array: Array) @@ -654,7 +654,7 @@ native public open class Uint8ClampedArray : ArrayBufferView { } } -native public open class Int16Array : ArrayBufferView { +@native public open class Int16Array : ArrayBufferView { constructor(length: Int) constructor(array: Int16Array) constructor(array: Array) @@ -678,7 +678,7 @@ native public open class Int16Array : ArrayBufferView { } } -native public open class Uint16Array : ArrayBufferView { +@native public open class Uint16Array : ArrayBufferView { constructor(length: Int) constructor(array: Uint16Array) constructor(array: Array) @@ -702,7 +702,7 @@ native public open class Uint16Array : ArrayBufferView { } } -native public open class Int32Array : ArrayBufferView { +@native public open class Int32Array : ArrayBufferView { constructor(length: Int) constructor(array: Int32Array) constructor(array: Array) @@ -726,7 +726,7 @@ native public open class Int32Array : ArrayBufferView { } } -native public open class Uint32Array : ArrayBufferView { +@native public open class Uint32Array : ArrayBufferView { constructor(length: Int) constructor(array: Uint32Array) constructor(array: Array) @@ -750,7 +750,7 @@ native public open class Uint32Array : ArrayBufferView { } } -native public open class Float32Array : ArrayBufferView { +@native public open class Float32Array : ArrayBufferView { constructor(length: Int) constructor(array: Float32Array) constructor(array: Array) @@ -774,7 +774,7 @@ native public open class Float32Array : ArrayBufferView { } } -native public open class Float64Array : ArrayBufferView { +@native public open class Float64Array : ArrayBufferView { constructor(length: Int) constructor(array: Float64Array) constructor(array: Array) @@ -798,7 +798,7 @@ native public open class Float64Array : ArrayBufferView { } } -native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView { +@native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView { open val buffer: ArrayBuffer get() = noImpl open val byteOffset: Int diff --git a/js/js.libraries/src/generated/org.w3c.dom.css.kt b/js/js.libraries/src/generated/org.w3c.dom.css.kt index e84a223d094..2fbe158c85d 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.css.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.css.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public interface CSSStyleDeclaration { +@native public interface CSSStyleDeclaration { var cssText: String get() = noImpl set(value) = noImpl @@ -707,7 +707,7 @@ native public interface CSSStyleDeclaration { get() = noImpl set(value) = noImpl fun item(index: Int): String = noImpl - nativeGetter fun get(index: Int): String? = noImpl + @nativeGetter fun get(index: Int): String? = noImpl fun getPropertyValue(property: String): String = noImpl fun getPropertyPriority(property: String): String = noImpl fun setProperty(property: String, value: String, priority: String = ""): Unit = noImpl @@ -716,19 +716,19 @@ native public interface CSSStyleDeclaration { fun removeProperty(property: String): String = noImpl } -native public interface MediaList { +@native public interface MediaList { var mediaText: String get() = noImpl set(value) = noImpl val length: Int get() = noImpl fun item(index: Int): String? = noImpl - nativeGetter fun get(index: Int): String? = noImpl + @nativeGetter fun get(index: Int): String? = noImpl fun appendMedium(medium: String): Unit = noImpl fun deleteMedium(medium: String): Unit = noImpl } -native public interface StyleSheet { +@native public interface StyleSheet { val type: String get() = noImpl val href: String? @@ -746,7 +746,7 @@ native public interface StyleSheet { set(value) = noImpl } -native public interface CSSStyleSheet : StyleSheet { +@native public interface CSSStyleSheet : StyleSheet { val ownerRule: CSSRule? get() = noImpl val cssRules: CSSRuleList @@ -755,21 +755,21 @@ native public interface CSSStyleSheet : StyleSheet { fun deleteRule(index: Int): Unit = noImpl } -native public interface StyleSheetList { +@native public interface StyleSheetList { val length: Int get() = noImpl fun item(index: Int): StyleSheet? = noImpl - nativeGetter fun get(index: Int): StyleSheet? = noImpl + @nativeGetter fun get(index: Int): StyleSheet? = noImpl } -native public interface CSSRuleList { +@native public interface CSSRuleList { val length: Int get() = noImpl fun item(index: Int): CSSRule? = noImpl - nativeGetter fun get(index: Int): CSSRule? = noImpl + @nativeGetter fun get(index: Int): CSSRule? = noImpl } -native public interface CSSRule { +@native public interface CSSRule { val type: Short get() = noImpl var cssText: String @@ -792,7 +792,7 @@ native public interface CSSRule { } } -native public interface CSSStyleRule : CSSRule { +@native public interface CSSStyleRule : CSSRule { var selectorText: String get() = noImpl set(value) = noImpl @@ -800,7 +800,7 @@ native public interface CSSStyleRule : CSSRule { get() = noImpl } -native public interface CSSImportRule : CSSRule { +@native public interface CSSImportRule : CSSRule { val href: String get() = noImpl val media: MediaList @@ -809,19 +809,19 @@ native public interface CSSImportRule : CSSRule { get() = noImpl } -native public interface CSSGroupingRule : CSSRule { +@native public interface CSSGroupingRule : CSSRule { val cssRules: CSSRuleList get() = noImpl fun insertRule(rule: String, index: Int): Int = noImpl fun deleteRule(index: Int): Unit = noImpl } -native public interface CSSMediaRule : CSSGroupingRule { +@native public interface CSSMediaRule : CSSGroupingRule { val media: MediaList get() = noImpl } -native public interface CSSPageRule : CSSGroupingRule { +@native public interface CSSPageRule : CSSGroupingRule { var selectorText: String get() = noImpl set(value) = noImpl @@ -829,14 +829,14 @@ native public interface CSSPageRule : CSSGroupingRule { get() = noImpl } -native public interface CSSMarginRule : CSSRule { +@native public interface CSSMarginRule : CSSRule { val name: String get() = noImpl val style: CSSStyleDeclaration get() = noImpl } -native public interface CSSNamespaceRule : CSSRule { +@native public interface CSSNamespaceRule : CSSRule { var namespaceURI: String get() = noImpl set(value) = noImpl @@ -845,7 +845,7 @@ native public interface CSSNamespaceRule : CSSRule { set(value) = noImpl } -native public interface PseudoElement : GeometryNode { +@native public interface PseudoElement : GeometryNode { val cascadedStyle: CSSStyleDeclaration get() = noImpl val defaultStyle: CSSStyleDeclaration @@ -860,7 +860,7 @@ native public interface PseudoElement : GeometryNode { fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl } -native public interface CSS { +@native public interface CSS { companion object { fun escape(ident: String): String = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.dom.events.kt b/js/js.libraries/src/generated/org.w3c.dom.events.kt index 408f7ba83cd..4f712e3b91e 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.events.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.events.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class UIEvent(type: String, eventInitDict: UIEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class UIEvent(type: String, eventInitDict: UIEventInit = noImpl) : Event(type, eventInitDict) { open val view: Window? get() = noImpl open val detail: Int @@ -28,12 +28,12 @@ native public open class UIEvent(type: String, eventInitDict: UIEventInit = noIm fun initUIEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int): Unit = noImpl } -native public interface UIEventInit : EventInit { +@native public interface UIEventInit : EventInit { var view: Window? var detail: Int } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): UIEventInit { val o = js("({})") @@ -45,17 +45,17 @@ public inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Bo return o } -native public open class FocusEvent(typeArg: String, focusEventInitDict: FocusEventInit = noImpl) : UIEvent(noImpl, noImpl) { +@native public open class FocusEvent(typeArg: String, focusEventInitDict: FocusEventInit = noImpl) : UIEvent(noImpl, noImpl) { 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 { +@native public interface FocusEventInit : UIEventInit { var relatedTarget: EventTarget? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): FocusEventInit { val o = js("({})") @@ -68,7 +68,7 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo return o } -native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEventInit = noImpl) : UIEvent(noImpl, noImpl), UnionElementOrMouseEvent { +@native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEventInit = noImpl) : UIEvent(noImpl, noImpl), UnionElementOrMouseEvent { open val region: String? get() = noImpl // open val screenX: Double @@ -117,7 +117,7 @@ native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEv 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 { +@native public interface MouseEventInit : EventModifierInit { var screenX: Int var screenY: Int var clientX: Int @@ -127,7 +127,7 @@ native public interface MouseEventInit : EventModifierInit { var relatedTarget: EventTarget? } -suppress("NOTHING_TO_INLINE") +@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 { val o = js("({})") @@ -161,7 +161,7 @@ public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: In return o } -native public interface EventModifierInit : UIEventInit { +@native public interface EventModifierInit : UIEventInit { var ctrlKey: Boolean var shiftKey: Boolean var altKey: Boolean @@ -179,7 +179,7 @@ native public interface EventModifierInit : UIEventInit { var modifierSymbolLock: Boolean } -suppress("NOTHING_TO_INLINE") +@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 { val o = js("({})") @@ -206,7 +206,7 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean return o } -native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEventInit = noImpl) : MouseEvent(typeArg, noImpl) { +@native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEventInit = noImpl) : MouseEvent(typeArg, noImpl) { open val deltaX: Double get() = noImpl open val deltaY: Double @@ -224,14 +224,14 @@ native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEv } } -native public interface WheelEventInit : MouseEventInit { +@native public interface WheelEventInit : MouseEventInit { var deltaX: Double var deltaY: Double var deltaZ: Double var deltaMode: Int } -suppress("NOTHING_TO_INLINE") +@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 { val o = js("({})") @@ -269,7 +269,7 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del return o } -native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: KeyboardEventInit = noImpl) : UIEvent(noImpl, noImpl) { +@native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: KeyboardEventInit = noImpl) : UIEvent(noImpl, noImpl) { open val key: String get() = noImpl open val code: String @@ -305,7 +305,7 @@ native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: K } } -native public interface KeyboardEventInit : EventModifierInit { +@native public interface KeyboardEventInit : EventModifierInit { var key: String var code: String var location: Int @@ -313,7 +313,7 @@ native public interface KeyboardEventInit : EventModifierInit { var isComposing: Boolean } -suppress("NOTHING_TO_INLINE") +@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 { val o = js("({})") @@ -345,17 +345,17 @@ public inline fun KeyboardEventInit(key: String = "", code: String = "", locatio return o } -native public open class CompositionEvent(typeArg: String, compositionEventInitDict: CompositionEventInit = noImpl) : UIEvent(noImpl, noImpl) { +@native public open class CompositionEvent(typeArg: String, compositionEventInitDict: CompositionEventInit = noImpl) : UIEvent(noImpl, noImpl) { 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 { +@native public interface CompositionEventInit : UIEventInit { var data: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun CompositionEventInit(data: String = "", view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): CompositionEventInit { val o = js("({})") @@ -368,7 +368,7 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null, return o } -native public open class MutationEvent : Event(noImpl, noImpl) { +@native public open class MutationEvent : Event(noImpl, noImpl) { open val relatedNode: Node? get() = noImpl open val prevValue: String @@ -388,7 +388,7 @@ native public open class MutationEvent : Event(noImpl, noImpl) { } } -native public open class Event(type: String, eventInitDict: EventInit = noImpl) { +@native public open class Event(type: String, eventInitDict: EventInit = noImpl) { open val type: String get() = noImpl open val target: EventTarget? @@ -420,7 +420,7 @@ native public open class Event(type: String, eventInitDict: EventInit = noImpl) } } -native public interface EventTarget { +@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 @@ -428,7 +428,7 @@ native public interface EventTarget { fun dispatchEvent(event: Event): Boolean = noImpl } -native public interface EventListener { +@native public interface EventListener { fun handleEvent(event: Event): Unit = noImpl } diff --git a/js/js.libraries/src/generated/org.w3c.dom.kt b/js/js.libraries/src/generated/org.w3c.dom.kt index 725b5349806..4f213ccee05 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class Document : Node, GeometryNode { +@native public open class Document : Node, GeometryNode { open val fullscreenEnabled: Boolean get() = noImpl open val fullscreenElement: Element? @@ -334,7 +334,7 @@ native public open class Document : Node, GeometryNode { open val childElementCount: Int get() = noImpl fun exitFullscreen(): Unit = noImpl - nativeGetter fun get(name: String): dynamic = noImpl + @nativeGetter fun get(name: String): dynamic = noImpl fun getElementsByName(elementName: String): NodeList = noImpl fun getItems(typeNames: String = ""): NodeList = noImpl fun open(type: String = "text/html", replace: String = ""): Document = noImpl @@ -389,7 +389,7 @@ native public open class Document : Node, GeometryNode { fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl } -native public interface Window : EventTarget, UnionMessagePortOrWindow { +@native public interface Window : EventTarget, UnionMessagePortOrWindow { val caches: CacheStorage get() = noImpl val performance: Performance @@ -704,8 +704,8 @@ native public interface Window : EventTarget, UnionMessagePortOrWindow { fun focus(): Unit = noImpl fun blur(): Unit = noImpl fun open(url: String = "about:blank", target: String = "_blank", features: String = "", replace: Boolean = false): Window = noImpl - nativeGetter fun get(index: Int): Window? = noImpl - nativeGetter fun get(name: String): dynamic = noImpl + @nativeGetter fun get(index: Int): Window? = noImpl + @nativeGetter fun get(name: String): dynamic = noImpl fun alert(): Unit = noImpl fun alert(message: String): Unit = noImpl fun confirm(message: String = ""): Boolean = noImpl @@ -740,7 +740,7 @@ native public interface Window : EventTarget, UnionMessagePortOrWindow { fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl } -native public interface Element : Node, UnionElementOrProcessingInstruction, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent, GeometryNode { +@native public interface Element : Node, UnionElementOrProcessingInstruction, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent, GeometryNode { var innerHTML: String get() = noImpl set(value) = noImpl @@ -845,67 +845,67 @@ native public interface Element : Node, UnionElementOrProcessingInstruction, Uni fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl } -native public open class CustomEvent(type: String, eventInitDict: CustomEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class CustomEvent(type: String, eventInitDict: CustomEventInit = noImpl) : Event(type, eventInitDict) { open val detail: Any? get() = noImpl fun initCustomEvent(type: String, bubbles: Boolean, cancelable: Boolean, detail: Any?): Unit = noImpl } -native public interface HTMLAllCollection : HTMLCollection { +@native public interface HTMLAllCollection : HTMLCollection { fun item(name: String): UnionElementOrHTMLCollection? = noImpl // override fun namedItem(name: String): UnionElementOrHTMLCollection? = noImpl -// nativeGetter override fun get(name: String): UnionElementOrHTMLCollection? = noImpl +// @nativeGetter override fun get(name: String): UnionElementOrHTMLCollection? = noImpl } -native public interface HTMLFormControlsCollection : HTMLCollection { +@native public interface HTMLFormControlsCollection : HTMLCollection { // override fun namedItem(name: String): UnionElementOrRadioNodeList? = noImpl -// nativeGetter override fun get(name: String): UnionElementOrRadioNodeList? = noImpl +// @nativeGetter override fun get(name: String): UnionElementOrRadioNodeList? = noImpl } -native public interface RadioNodeList : NodeList, UnionElementOrRadioNodeList { +@native public interface RadioNodeList : NodeList, UnionElementOrRadioNodeList { var value: String get() = noImpl set(value) = noImpl } -native public interface HTMLOptionsCollection : HTMLCollection { +@native public interface HTMLOptionsCollection : HTMLCollection { override var length: Int get() = noImpl set(value) = noImpl var selectedIndex: Int get() = noImpl set(value) = noImpl - nativeSetter fun set(index: Int, option: HTMLOptionElement?): Unit = noImpl + @nativeSetter fun set(index: Int, option: HTMLOptionElement?): Unit = noImpl fun add(element: UnionHTMLOptGroupElementOrHTMLOptionElement, before: dynamic = null): Unit = noImpl fun remove(index: Int): Unit = noImpl } -native public interface HTMLPropertiesCollection : HTMLCollection { +@native public interface HTMLPropertiesCollection : HTMLCollection { val names: Array get() = noImpl // override fun namedItem(name: String): PropertyNodeList? = noImpl -// nativeGetter override fun get(name: String): PropertyNodeList? = noImpl +// @nativeGetter override fun get(name: String): PropertyNodeList? = noImpl } -native public interface PropertyNodeList : NodeList { +@native public interface PropertyNodeList : NodeList { fun getValues(): Array = noImpl } -native public interface DOMStringMap { - nativeGetter fun get(name: String): String? = noImpl - nativeSetter fun set(name: String, value: String): Unit = noImpl +@native public interface DOMStringMap { + @nativeGetter fun get(name: String): String? = noImpl + @nativeSetter fun set(name: String, value: String): Unit = noImpl } -native public interface DOMElementMap { - nativeGetter fun get(name: String): Element? = noImpl - nativeSetter fun set(name: String, value: Element): Unit = noImpl +@native public interface DOMElementMap { + @nativeGetter fun get(name: String): Element? = noImpl + @nativeSetter fun set(name: String, value: Element): Unit = noImpl } -native public open class XMLDocument : Document() { +@native public open class XMLDocument : Document() { fun load(url: String): Boolean = noImpl } -native public interface HTMLElement : Element { +@native public interface HTMLElement : Element { var title: String get() = noImpl set(value) = noImpl @@ -1183,25 +1183,25 @@ native public interface HTMLElement : Element { fun forceSpellCheck(): Unit = noImpl } -native public interface HTMLUnknownElement : HTMLElement { +@native public interface HTMLUnknownElement : HTMLElement { } -native public interface HTMLHtmlElement : HTMLElement { +@native public interface HTMLHtmlElement : HTMLElement { var version: String get() = noImpl set(value) = noImpl } -native public interface HTMLHeadElement : HTMLElement { +@native public interface HTMLHeadElement : HTMLElement { } -native public interface HTMLTitleElement : HTMLElement { +@native public interface HTMLTitleElement : HTMLElement { var text: String get() = noImpl set(value) = noImpl } -native public interface HTMLBaseElement : HTMLElement { +@native public interface HTMLBaseElement : HTMLElement { var href: String get() = noImpl set(value) = noImpl @@ -1210,7 +1210,7 @@ native public interface HTMLBaseElement : HTMLElement { set(value) = noImpl } -native public interface HTMLLinkElement : HTMLElement { +@native public interface HTMLLinkElement : HTMLElement { var href: String get() = noImpl set(value) = noImpl @@ -1246,7 +1246,7 @@ native public interface HTMLLinkElement : HTMLElement { get() = noImpl } -native public interface HTMLMetaElement : HTMLElement { +@native public interface HTMLMetaElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -1261,7 +1261,7 @@ native public interface HTMLMetaElement : HTMLElement { set(value) = noImpl } -native public interface HTMLStyleElement : HTMLElement { +@native public interface HTMLStyleElement : HTMLElement { var media: String get() = noImpl set(value) = noImpl @@ -1275,7 +1275,7 @@ native public interface HTMLStyleElement : HTMLElement { get() = noImpl } -native public interface HTMLBodyElement : HTMLElement { +@native public interface HTMLBodyElement : HTMLElement { var text: String get() = noImpl set(value) = noImpl @@ -1335,19 +1335,19 @@ native public interface HTMLBodyElement : HTMLElement { set(value) = noImpl } -native public interface HTMLHeadingElement : HTMLElement { +@native public interface HTMLHeadingElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public interface HTMLParagraphElement : HTMLElement { +@native public interface HTMLParagraphElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public interface HTMLHRElement : HTMLElement { +@native public interface HTMLHRElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl @@ -1365,19 +1365,19 @@ native public interface HTMLHRElement : HTMLElement { set(value) = noImpl } -native public interface HTMLPreElement : HTMLElement { +@native public interface HTMLPreElement : HTMLElement { var width: Int get() = noImpl set(value) = noImpl } -native public interface HTMLQuoteElement : HTMLElement { +@native public interface HTMLQuoteElement : HTMLElement { var cite: String get() = noImpl set(value) = noImpl } -native public interface HTMLOListElement : HTMLElement { +@native public interface HTMLOListElement : HTMLElement { var reversed: Boolean get() = noImpl set(value) = noImpl @@ -1392,7 +1392,7 @@ native public interface HTMLOListElement : HTMLElement { set(value) = noImpl } -native public interface HTMLUListElement : HTMLElement { +@native public interface HTMLUListElement : HTMLElement { var compact: Boolean get() = noImpl set(value) = noImpl @@ -1401,7 +1401,7 @@ native public interface HTMLUListElement : HTMLElement { set(value) = noImpl } -native public interface HTMLLIElement : HTMLElement { +@native public interface HTMLLIElement : HTMLElement { var value: Int get() = noImpl set(value) = noImpl @@ -1410,19 +1410,19 @@ native public interface HTMLLIElement : HTMLElement { set(value) = noImpl } -native public interface HTMLDListElement : HTMLElement { +@native public interface HTMLDListElement : HTMLElement { var compact: Boolean get() = noImpl set(value) = noImpl } -native public interface HTMLDivElement : HTMLElement { +@native public interface HTMLDivElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public interface HTMLAnchorElement : HTMLElement { +@native public interface HTMLAnchorElement : HTMLElement { var target: String get() = noImpl set(value) = noImpl @@ -1498,28 +1498,28 @@ native public interface HTMLAnchorElement : HTMLElement { set(value) = noImpl } -native public interface HTMLDataElement : HTMLElement { +@native public interface HTMLDataElement : HTMLElement { var value: String get() = noImpl set(value) = noImpl } -native public interface HTMLTimeElement : HTMLElement { +@native public interface HTMLTimeElement : HTMLElement { var dateTime: String get() = noImpl set(value) = noImpl } -native public interface HTMLSpanElement : HTMLElement { +@native public interface HTMLSpanElement : HTMLElement { } -native public interface HTMLBRElement : HTMLElement { +@native public interface HTMLBRElement : HTMLElement { var clear: String get() = noImpl set(value) = noImpl } -native public interface HTMLModElement : HTMLElement { +@native public interface HTMLModElement : HTMLElement { var cite: String get() = noImpl set(value) = noImpl @@ -1528,7 +1528,7 @@ native public interface HTMLModElement : HTMLElement { set(value) = noImpl } -native public interface HTMLIFrameElement : HTMLElement { +@native public interface HTMLIFrameElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -1577,7 +1577,7 @@ native public interface HTMLIFrameElement : HTMLElement { fun getSVGDocument(): Document? = noImpl } -native public interface HTMLEmbedElement : HTMLElement { +@native public interface HTMLEmbedElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -1599,7 +1599,7 @@ native public interface HTMLEmbedElement : HTMLElement { fun getSVGDocument(): Document? = noImpl } -native public interface HTMLObjectElement : HTMLElement { +@native public interface HTMLObjectElement : HTMLElement { var data: String get() = noImpl set(value) = noImpl @@ -1669,7 +1669,7 @@ native public interface HTMLObjectElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public interface HTMLParamElement : HTMLElement { +@native public interface HTMLParamElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -1684,7 +1684,7 @@ native public interface HTMLParamElement : HTMLElement { set(value) = noImpl } -native public interface HTMLVideoElement : HTMLMediaElement, CanvasImageSource, ImageBitmapSource { +@native public interface HTMLVideoElement : HTMLMediaElement, CanvasImageSource, ImageBitmapSource { var width: Int get() = noImpl set(value) = noImpl @@ -1700,10 +1700,10 @@ native public interface HTMLVideoElement : HTMLMediaElement, CanvasImageSource, set(value) = noImpl } -native public interface HTMLAudioElement : HTMLMediaElement { +@native public interface HTMLAudioElement : HTMLMediaElement { } -native public interface HTMLSourceElement : HTMLElement { +@native public interface HTMLSourceElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -1721,7 +1721,7 @@ native public interface HTMLSourceElement : HTMLElement { set(value) = noImpl } -native public interface HTMLTrackElement : HTMLElement { +@native public interface HTMLTrackElement : HTMLElement { var kind: String get() = noImpl set(value) = noImpl @@ -1750,7 +1750,7 @@ native public interface HTMLTrackElement : HTMLElement { } } -native public interface HTMLMediaElement : HTMLElement { +@native public interface HTMLMediaElement : HTMLElement { val error: MediaError? get() = noImpl var src: String @@ -1845,7 +1845,7 @@ native public interface HTMLMediaElement : HTMLElement { } } -native public interface MediaError { +@native public interface MediaError { val code: Short get() = noImpl @@ -1857,7 +1857,7 @@ native public interface MediaError { } } -native public interface AudioTrackList : EventTarget { +@native public interface AudioTrackList : EventTarget { val length: Int get() = noImpl var onchange: ((Event) -> dynamic)? @@ -1869,11 +1869,11 @@ native public interface AudioTrackList : EventTarget { var onremovetrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - nativeGetter fun get(index: Int): AudioTrack? = noImpl + @nativeGetter fun get(index: Int): AudioTrack? = noImpl fun getTrackById(id: String): AudioTrack? = noImpl } -native public interface AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { +@native public interface AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { val id: String get() = noImpl val kind: String @@ -1887,7 +1887,7 @@ native public interface AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { set(value) = noImpl } -native public interface VideoTrackList : EventTarget { +@native public interface VideoTrackList : EventTarget { val length: Int get() = noImpl val selectedIndex: Int @@ -1901,11 +1901,11 @@ native public interface VideoTrackList : EventTarget { var onremovetrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - nativeGetter fun get(index: Int): VideoTrack? = noImpl + @nativeGetter fun get(index: Int): VideoTrack? = noImpl fun getTrackById(id: String): VideoTrack? = noImpl } -native public interface VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { +@native public interface VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { val id: String get() = noImpl val kind: String @@ -1919,7 +1919,7 @@ native public interface VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { set(value) = noImpl } -native public open class MediaController : EventTarget { +@native public open class MediaController : EventTarget { open val readyState: Short get() = noImpl open val buffered: TimeRanges @@ -1996,7 +1996,7 @@ native public open class MediaController : EventTarget { fun play(): Unit = noImpl } -native public interface TextTrackList : EventTarget { +@native public interface TextTrackList : EventTarget { val length: Int get() = noImpl var onchange: ((Event) -> dynamic)? @@ -2008,11 +2008,11 @@ native public interface TextTrackList : EventTarget { var onremovetrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - nativeGetter fun get(index: Int): TextTrack? = noImpl + @nativeGetter fun get(index: Int): TextTrack? = noImpl fun getTrackById(id: String): TextTrack? = noImpl } -native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { +@native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { val kind: String get() = noImpl val label: String @@ -2037,14 +2037,14 @@ native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVid fun removeCue(cue: TextTrackCue): Unit = noImpl } -native public interface TextTrackCueList { +@native public interface TextTrackCueList { val length: Int get() = noImpl - nativeGetter fun get(index: Int): TextTrackCue? = noImpl + @nativeGetter fun get(index: Int): TextTrackCue? = noImpl fun getCueById(id: String): TextTrackCue? = noImpl } -native public interface TextTrackCue : EventTarget { +@native public interface TextTrackCue : EventTarget { val track: TextTrack? get() = noImpl var id: String @@ -2067,23 +2067,23 @@ native public interface TextTrackCue : EventTarget { set(value) = noImpl } -native public interface TimeRanges { +@native public interface TimeRanges { val length: Int get() = noImpl fun start(index: Int): Double = noImpl fun end(index: Int): Double = noImpl } -native public open class TrackEvent(type: String, eventInitDict: TrackEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class TrackEvent(type: String, eventInitDict: TrackEventInit = noImpl) : Event(type, eventInitDict) { open val track: UnionAudioTrackOrTextTrackOrVideoTrack? get() = noImpl } -native public interface TrackEventInit : EventInit { +@native public interface TrackEventInit : EventInit { var track: UnionAudioTrackOrTextTrackOrVideoTrack? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, bubbles: Boolean = false, cancelable: Boolean = false): TrackEventInit { val o = js("({})") @@ -2094,7 +2094,7 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, return o } -native public interface HTMLMapElement : HTMLElement { +@native public interface HTMLMapElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -2104,7 +2104,7 @@ native public interface HTMLMapElement : HTMLElement { get() = noImpl } -native public interface HTMLAreaElement : HTMLElement { +@native public interface HTMLAreaElement : HTMLElement { var alt: String get() = noImpl set(value) = noImpl @@ -2174,7 +2174,7 @@ native public interface HTMLAreaElement : HTMLElement { set(value) = noImpl } -native public interface HTMLTableElement : HTMLElement { +@native public interface HTMLTableElement : HTMLElement { var caption: HTMLTableCaptionElement? get() = noImpl set(value) = noImpl @@ -2230,13 +2230,13 @@ native public interface HTMLTableElement : HTMLElement { fun stopSorting(): Unit = noImpl } -native public interface HTMLTableCaptionElement : HTMLElement { +@native public interface HTMLTableCaptionElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public interface HTMLTableColElement : HTMLElement { +@native public interface HTMLTableColElement : HTMLElement { var span: Int get() = noImpl set(value) = noImpl @@ -2257,7 +2257,7 @@ native public interface HTMLTableColElement : HTMLElement { set(value) = noImpl } -native public interface HTMLTableSectionElement : HTMLElement { +@native public interface HTMLTableSectionElement : HTMLElement { val rows: HTMLCollection get() = noImpl var align: String @@ -2276,7 +2276,7 @@ native public interface HTMLTableSectionElement : HTMLElement { fun deleteRow(index: Int): Unit = noImpl } -native public interface HTMLTableRowElement : HTMLElement { +@native public interface HTMLTableRowElement : HTMLElement { val rowIndex: Int get() = noImpl val sectionRowIndex: Int @@ -2302,13 +2302,13 @@ native public interface HTMLTableRowElement : HTMLElement { fun deleteCell(index: Int): Unit = noImpl } -native public interface HTMLTableDataCellElement : HTMLTableCellElement { +@native public interface HTMLTableDataCellElement : HTMLTableCellElement { var abbr: String get() = noImpl set(value) = noImpl } -native public interface HTMLTableHeaderCellElement : HTMLTableCellElement { +@native public interface HTMLTableHeaderCellElement : HTMLTableCellElement { var scope: String get() = noImpl set(value) = noImpl @@ -2321,7 +2321,7 @@ native public interface HTMLTableHeaderCellElement : HTMLTableCellElement { fun sort(): Unit = noImpl } -native public interface HTMLTableCellElement : HTMLElement { +@native public interface HTMLTableCellElement : HTMLElement { var colSpan: Int get() = noImpl set(value) = noImpl @@ -2361,7 +2361,7 @@ native public interface HTMLTableCellElement : HTMLElement { set(value) = noImpl } -native public interface HTMLFormElement : HTMLElement { +@native public interface HTMLFormElement : HTMLElement { var acceptCharset: String get() = noImpl set(value) = noImpl @@ -2393,8 +2393,8 @@ native public interface HTMLFormElement : HTMLElement { get() = noImpl val length: Int get() = noImpl - nativeGetter fun get(index: Int): Element? = noImpl - nativeGetter fun get(name: String): UnionElementOrRadioNodeList? = noImpl + @nativeGetter fun get(index: Int): Element? = noImpl + @nativeGetter fun get(name: String): UnionElementOrRadioNodeList? = noImpl fun submit(): Unit = noImpl fun reset(): Unit = noImpl fun checkValidity(): Boolean = noImpl @@ -2402,7 +2402,7 @@ native public interface HTMLFormElement : HTMLElement { fun requestAutocomplete(): Unit = noImpl } -native public interface HTMLLabelElement : HTMLElement { +@native public interface HTMLLabelElement : HTMLElement { val form: HTMLFormElement? get() = noImpl var htmlFor: String @@ -2412,7 +2412,7 @@ native public interface HTMLLabelElement : HTMLElement { get() = noImpl } -native public interface HTMLInputElement : HTMLElement { +@native public interface HTMLInputElement : HTMLElement { var accept: String get() = noImpl set(value) = noImpl @@ -2564,7 +2564,7 @@ native public interface HTMLInputElement : HTMLElement { fun setSelectionRange(start: Int, end: Int, direction: String = noImpl): Unit = noImpl } -native public interface HTMLButtonElement : HTMLElement { +@native public interface HTMLButtonElement : HTMLElement { var autofocus: Boolean get() = noImpl set(value) = noImpl @@ -2613,7 +2613,7 @@ native public interface HTMLButtonElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public interface HTMLSelectElement : HTMLElement { +@native public interface HTMLSelectElement : HTMLElement { var autocomplete: String get() = noImpl set(value) = noImpl @@ -2661,22 +2661,22 @@ native public interface HTMLSelectElement : HTMLElement { val labels: NodeList get() = noImpl fun item(index: Int): Element? = noImpl - nativeGetter fun get(index: Int): Element? = noImpl + @nativeGetter fun get(index: Int): Element? = noImpl fun namedItem(name: String): HTMLOptionElement? = noImpl fun add(element: UnionHTMLOptGroupElementOrHTMLOptionElement, before: dynamic = null): Unit = noImpl fun remove(index: Int): Unit = noImpl - nativeSetter fun set(index: Int, option: HTMLOptionElement?): Unit = noImpl + @nativeSetter fun set(index: Int, option: HTMLOptionElement?): Unit = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } -native public interface HTMLDataListElement : HTMLElement { +@native public interface HTMLDataListElement : HTMLElement { val options: HTMLCollection get() = noImpl } -native public interface HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { +@native public interface HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { var disabled: Boolean get() = noImpl set(value) = noImpl @@ -2685,7 +2685,7 @@ native public interface HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElem set(value) = noImpl } -native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { +@native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { var disabled: Boolean get() = noImpl set(value) = noImpl @@ -2710,7 +2710,7 @@ native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElemen get() = noImpl } -native public interface HTMLTextAreaElement : HTMLElement { +@native public interface HTMLTextAreaElement : HTMLElement { var autocomplete: String get() = noImpl set(value) = noImpl @@ -2791,7 +2791,7 @@ native public interface HTMLTextAreaElement : HTMLElement { fun setSelectionRange(start: Int, end: Int, direction: String = noImpl): Unit = noImpl } -native public interface HTMLKeygenElement : HTMLElement { +@native public interface HTMLKeygenElement : HTMLElement { var autofocus: Boolean get() = noImpl set(value) = noImpl @@ -2824,7 +2824,7 @@ native public interface HTMLKeygenElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public interface HTMLOutputElement : HTMLElement { +@native public interface HTMLOutputElement : HTMLElement { val htmlFor: DOMSettableTokenList get() = noImpl val form: HTMLFormElement? @@ -2853,7 +2853,7 @@ native public interface HTMLOutputElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public interface HTMLProgressElement : HTMLElement { +@native public interface HTMLProgressElement : HTMLElement { var value: Double get() = noImpl set(value) = noImpl @@ -2866,7 +2866,7 @@ native public interface HTMLProgressElement : HTMLElement { get() = noImpl } -native public interface HTMLMeterElement : HTMLElement { +@native public interface HTMLMeterElement : HTMLElement { var value: Double get() = noImpl set(value) = noImpl @@ -2889,7 +2889,7 @@ native public interface HTMLMeterElement : HTMLElement { get() = noImpl } -native public interface HTMLFieldSetElement : HTMLElement { +@native public interface HTMLFieldSetElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl @@ -2913,7 +2913,7 @@ native public interface HTMLFieldSetElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public interface HTMLLegendElement : HTMLElement { +@native public interface HTMLLegendElement : HTMLElement { val form: HTMLFormElement? get() = noImpl var align: String @@ -2921,16 +2921,16 @@ native public interface HTMLLegendElement : HTMLElement { set(value) = noImpl } -native public open class AutocompleteErrorEvent(type: String, eventInitDict: AutocompleteErrorEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class AutocompleteErrorEvent(type: String, eventInitDict: AutocompleteErrorEventInit = noImpl) : Event(type, eventInitDict) { open val reason: String get() = noImpl } -native public interface AutocompleteErrorEventInit : EventInit { +@native public interface AutocompleteErrorEventInit : EventInit { var reason: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun AutocompleteErrorEventInit(reason: String, bubbles: Boolean = false, cancelable: Boolean = false): AutocompleteErrorEventInit { val o = js("({})") @@ -2941,7 +2941,7 @@ public inline fun AutocompleteErrorEventInit(reason: String, bubbles: Boolean = return o } -native public interface ValidityState { +@native public interface ValidityState { val valueMissing: Boolean get() = noImpl val typeMismatch: Boolean @@ -2966,13 +2966,13 @@ native public interface ValidityState { get() = noImpl } -native public interface HTMLDetailsElement : HTMLElement { +@native public interface HTMLDetailsElement : HTMLElement { var open: Boolean get() = noImpl set(value) = noImpl } -native public interface HTMLMenuElement : HTMLElement { +@native public interface HTMLMenuElement : HTMLElement { var type: String get() = noImpl set(value) = noImpl @@ -2984,7 +2984,7 @@ native public interface HTMLMenuElement : HTMLElement { set(value) = noImpl } -native public interface HTMLMenuItemElement : HTMLElement { +@native public interface HTMLMenuItemElement : HTMLElement { var type: String get() = noImpl set(value) = noImpl @@ -3010,16 +3010,16 @@ native public interface HTMLMenuItemElement : HTMLElement { get() = noImpl } -native public open class RelatedEvent(type: String, eventInitDict: RelatedEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class RelatedEvent(type: String, eventInitDict: RelatedEventInit = noImpl) : Event(type, eventInitDict) { open val relatedTarget: EventTarget? get() = noImpl } -native public interface RelatedEventInit : EventInit { +@native public interface RelatedEventInit : EventInit { var relatedTarget: EventTarget? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun RelatedEventInit(relatedTarget: EventTarget?, bubbles: Boolean = false, cancelable: Boolean = false): RelatedEventInit { val o = js("({})") @@ -3030,7 +3030,7 @@ public inline fun RelatedEventInit(relatedTarget: EventTarget?, bubbles: Boolean return o } -native public interface HTMLDialogElement : HTMLElement { +@native public interface HTMLDialogElement : HTMLElement { var open: Boolean get() = noImpl set(value) = noImpl @@ -3042,7 +3042,7 @@ native public interface HTMLDialogElement : HTMLElement { fun close(returnValue: String = noImpl): Unit = noImpl } -native public interface HTMLScriptElement : HTMLElement { +@native public interface HTMLScriptElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -3072,12 +3072,12 @@ native public interface HTMLScriptElement : HTMLElement { set(value) = noImpl } -native public interface HTMLTemplateElement : HTMLElement { +@native public interface HTMLTemplateElement : HTMLElement { val content: DocumentFragment get() = noImpl } -native public interface HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBitmapSource { +@native public interface HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBitmapSource { var width: Int get() = noImpl set(value) = noImpl @@ -3092,15 +3092,15 @@ native public interface HTMLCanvasElement : HTMLElement, CanvasImageSource, Imag fun toBlob(_callback: ((File) -> Unit)?, type: String = noImpl, vararg arguments: Any?): Unit = noImpl } -native public interface CanvasProxy : Transferable { +@native public interface CanvasProxy : Transferable { fun setContext(context: RenderingContext): Unit = noImpl } -native public interface CanvasRenderingContext2DSettings { +@native public interface CanvasRenderingContext2DSettings { var alpha: Boolean } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): CanvasRenderingContext2DSettings { val o = js("({})") @@ -3109,7 +3109,7 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): Canva return o } -native public open class CanvasRenderingContext2D() : RenderingContext, CanvasImageSource, ImageBitmapSource { +@native public open class CanvasRenderingContext2D() : RenderingContext, CanvasImageSource, ImageBitmapSource { constructor(width: Int, height: Int) : this() open val canvas: HTMLCanvasElement get() = noImpl @@ -3235,15 +3235,15 @@ native public open class CanvasRenderingContext2D() : RenderingContext, CanvasIm fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl } -native public interface CanvasGradient { +@native public interface CanvasGradient { fun addColorStop(offset: Double, color: String): Unit = noImpl } -native public interface CanvasPattern { +@native public interface CanvasPattern { fun setTransform(transform: SVGMatrix): Unit = noImpl } -native public interface TextMetrics { +@native public interface TextMetrics { val width: Double get() = noImpl val actualBoundingBoxLeft: Double @@ -3270,7 +3270,7 @@ native public interface TextMetrics { get() = noImpl } -native public interface HitRegionOptions { +@native public interface HitRegionOptions { var path: Path2D? var fillRule: String var id: String @@ -3281,7 +3281,7 @@ native public interface HitRegionOptions { var role: String? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "nonzero", id: String = "", parentID: String? = null, cursor: String = "inherit", control: Element? = null, label: String? = null, role: String? = null): HitRegionOptions { val o = js("({})") @@ -3297,7 +3297,7 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "non return o } -native public open class ImageData : ImageBitmapSource { +@native public open class ImageData : ImageBitmapSource { constructor(sw: Int, sh: Int) constructor(data: Uint8ClampedArray, sw: Int, sh: Int = noImpl) open val width: Int @@ -3308,7 +3308,7 @@ native public open class ImageData : ImageBitmapSource { get() = noImpl } -native public open class DrawingStyle(scope: Element = noImpl) { +@native public open class DrawingStyle(scope: Element = noImpl) { var lineWidth: Double get() = noImpl set(value) = noImpl @@ -3340,7 +3340,7 @@ native public open class DrawingStyle(scope: Element = noImpl) { fun getLineDash(): Array = noImpl } -native public open class Path2D() { +@native public open class Path2D() { constructor(path: Path2D) : this() constructor(paths: Array, fillRule: String = "nonzero") : this() constructor(d: String) : this() @@ -3362,12 +3362,12 @@ native public open class Path2D() { fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl } -native public interface Touch { +@native public interface Touch { val region: String? get() = noImpl } -native public interface DataTransfer { +@native public interface DataTransfer { var dropEffect: String get() = noImpl set(value) = noImpl @@ -3386,17 +3386,17 @@ native public interface DataTransfer { fun clearData(format: String = noImpl): Unit = noImpl } -native public interface DataTransferItemList { +@native public interface DataTransferItemList { val length: Int get() = noImpl - nativeGetter fun get(index: Int): DataTransferItem? = noImpl + @nativeGetter fun get(index: Int): DataTransferItem? = noImpl fun add(data: String, type: String): DataTransferItem? = noImpl fun add(data: File): DataTransferItem? = noImpl fun remove(index: Int): Unit = noImpl fun clear(): Unit = noImpl } -native public interface DataTransferItem { +@native public interface DataTransferItem { val kind: String get() = noImpl val type: String @@ -3405,16 +3405,16 @@ native public interface DataTransferItem { fun getAsFile(): File? = noImpl } -native public open class DragEvent(type: String, eventInitDict: DragEventInit = noImpl) : MouseEvent(noImpl, noImpl) { +@native public open class DragEvent(type: String, eventInitDict: DragEventInit = noImpl) : MouseEvent(noImpl, noImpl) { open val dataTransfer: DataTransfer? get() = noImpl } -native public interface DragEventInit : MouseEventInit { +@native public interface DragEventInit : MouseEventInit { var dataTransfer: DataTransfer? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun DragEventInit(dataTransfer: DataTransfer?, 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): DragEventInit { val o = js("({})") @@ -3449,13 +3449,13 @@ public inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, s return o } -native public interface BarProp { +@native public interface BarProp { var visible: Boolean get() = noImpl set(value) = noImpl } -native public interface History { +@native public interface History { val length: Int get() = noImpl val state: Any? @@ -3467,7 +3467,7 @@ native public interface History { fun replaceState(data: Any?, title: String, url: String? = null): Unit = noImpl } -native public interface Location { +@native public interface Location { val ancestorOrigins: Array get() = noImpl var href: String @@ -3510,16 +3510,16 @@ native public interface Location { fun reload(): Unit = noImpl } -native public open class PopStateEvent(type: String, eventInitDict: PopStateEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class PopStateEvent(type: String, eventInitDict: PopStateEventInit = noImpl) : Event(type, eventInitDict) { open val state: Any? get() = noImpl } -native public interface PopStateEventInit : EventInit { +@native public interface PopStateEventInit : EventInit { var state: Any? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun PopStateEventInit(state: Any?, bubbles: Boolean = false, cancelable: Boolean = false): PopStateEventInit { val o = js("({})") @@ -3530,19 +3530,19 @@ public inline fun PopStateEventInit(state: Any?, bubbles: Boolean = false, cance return o } -native public open class HashChangeEvent(type: String, eventInitDict: HashChangeEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class HashChangeEvent(type: String, eventInitDict: HashChangeEventInit = noImpl) : Event(type, eventInitDict) { open val oldURL: String get() = noImpl open val newURL: String get() = noImpl } -native public interface HashChangeEventInit : EventInit { +@native public interface HashChangeEventInit : EventInit { var oldURL: String var newURL: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun HashChangeEventInit(oldURL: String, newURL: String, bubbles: Boolean = false, cancelable: Boolean = false): HashChangeEventInit { val o = js("({})") @@ -3554,16 +3554,16 @@ public inline fun HashChangeEventInit(oldURL: String, newURL: String, bubbles: B return o } -native public open class PageTransitionEvent(type: String, eventInitDict: PageTransitionEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class PageTransitionEvent(type: String, eventInitDict: PageTransitionEventInit = noImpl) : Event(type, eventInitDict) { open val persisted: Boolean get() = noImpl } -native public interface PageTransitionEventInit : EventInit { +@native public interface PageTransitionEventInit : EventInit { var persisted: Boolean } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = false, cancelable: Boolean = false): PageTransitionEventInit { val o = js("({})") @@ -3574,13 +3574,13 @@ public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = return o } -native public open class BeforeUnloadEvent : Event(noImpl, noImpl) { +@native public open class BeforeUnloadEvent : Event(noImpl, noImpl) { var returnValue: String get() = noImpl set(value) = noImpl } -native public interface ApplicationCache : EventTarget { +@native public interface ApplicationCache : EventTarget { val status: Short get() = noImpl var onchecking: ((Event) -> dynamic)? @@ -3621,7 +3621,7 @@ native public interface ApplicationCache : EventTarget { } } -native public open class ErrorEvent(type: String, eventInitDict: ErrorEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class ErrorEvent(type: String, eventInitDict: ErrorEventInit = noImpl) : Event(type, eventInitDict) { open val message: String get() = noImpl open val filename: String @@ -3634,7 +3634,7 @@ native public open class ErrorEvent(type: String, eventInitDict: ErrorEventInit get() = noImpl } -native public interface ErrorEventInit : EventInit { +@native public interface ErrorEventInit : EventInit { var message: String var filename: String var lineno: Int @@ -3642,7 +3642,7 @@ native public interface ErrorEventInit : EventInit { var error: Any? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, colno: Int, error: Any?, bubbles: Boolean = false, cancelable: Boolean = false): ErrorEventInit { val o = js("({})") @@ -3657,7 +3657,7 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, return o } -native public interface Navigator { +@native public interface Navigator { val serviceWorker: ServiceWorkerContainer get() = noImpl val appCodeName: String @@ -3699,26 +3699,26 @@ native public interface Navigator { fun yieldForStorageUpdates(): Unit = noImpl } -native public interface PluginArray { +@native public interface PluginArray { val length: Int get() = noImpl fun refresh(reload: Boolean = false): Unit = noImpl fun item(index: Int): Plugin? = noImpl - nativeGetter fun get(index: Int): Plugin? = noImpl + @nativeGetter fun get(index: Int): Plugin? = noImpl fun namedItem(name: String): Plugin? = noImpl - nativeGetter fun get(name: String): Plugin? = noImpl + @nativeGetter fun get(name: String): Plugin? = noImpl } -native public interface MimeTypeArray { +@native public interface MimeTypeArray { val length: Int get() = noImpl fun item(index: Int): MimeType? = noImpl - nativeGetter fun get(index: Int): MimeType? = noImpl + @nativeGetter fun get(index: Int): MimeType? = noImpl fun namedItem(name: String): MimeType? = noImpl - nativeGetter fun get(name: String): MimeType? = noImpl + @nativeGetter fun get(name: String): MimeType? = noImpl } -native public interface Plugin { +@native public interface Plugin { val name: String get() = noImpl val description: String @@ -3728,12 +3728,12 @@ native public interface Plugin { val length: Int get() = noImpl fun item(index: Int): MimeType? = noImpl - nativeGetter fun get(index: Int): MimeType? = noImpl + @nativeGetter fun get(index: Int): MimeType? = noImpl fun namedItem(name: String): MimeType? = noImpl - nativeGetter fun get(name: String): MimeType? = noImpl + @nativeGetter fun get(name: String): MimeType? = noImpl } -native public interface MimeType { +@native public interface MimeType { val type: String get() = noImpl val description: String @@ -3744,19 +3744,19 @@ native public interface MimeType { get() = noImpl } -native public interface External { +@native public interface External { fun AddSearchProvider(engineURL: String): Unit = noImpl fun IsSearchProviderInstalled(engineURL: String): Int = noImpl } -native public interface ImageBitmap : CanvasImageSource, ImageBitmapSource { +@native public interface ImageBitmap : CanvasImageSource, ImageBitmapSource { val width: Int get() = noImpl val height: Int get() = noImpl } -native public open class MessageEvent(type: String, eventInitDict: MessageEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class MessageEvent(type: String, eventInitDict: MessageEventInit = noImpl) : Event(type, eventInitDict) { open val data: Any? get() = noImpl open val origin: String @@ -3770,7 +3770,7 @@ native public open class MessageEvent(type: String, eventInitDict: MessageEventI fun initMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrWindow, portsArg: Array?): Unit = noImpl } -native public interface MessageEventInit : EventInit { +@native public interface MessageEventInit : EventInit { var data: Any? var origin: String var lastEventId: String @@ -3778,7 +3778,7 @@ native public interface MessageEventInit : EventInit { var ports: Array } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun MessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrWindow?, ports: Array, bubbles: Boolean = false, cancelable: Boolean = false): MessageEventInit { val o = js("({})") @@ -3793,7 +3793,7 @@ public inline fun MessageEventInit(data: Any?, origin: String, lastEventId: Stri return o } -native public open class EventSource(url: String, eventSourceInitDict: EventSourceInit = noImpl) : EventTarget { +@native public open class EventSource(url: String, eventSourceInitDict: EventSourceInit = noImpl) : EventTarget { open val url: String get() = noImpl open val withCredentials: Boolean @@ -3818,11 +3818,11 @@ native public open class EventSource(url: String, eventSourceInitDict: EventSour } } -native public interface EventSourceInit { +@native public interface EventSourceInit { var withCredentials: Boolean } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun EventSourceInit(withCredentials: Boolean = false): EventSourceInit { val o = js("({})") @@ -3831,7 +3831,7 @@ public inline fun EventSourceInit(withCredentials: Boolean = false): EventSource return o } -native public open class WebSocket(url: String, protocols: dynamic = noImpl) : EventTarget { +@native public open class WebSocket(url: String, protocols: dynamic = noImpl) : EventTarget { open val url: String get() = noImpl open val readyState: Short @@ -3871,7 +3871,7 @@ native public open class WebSocket(url: String, protocols: dynamic = noImpl) : E } } -native public open class CloseEvent(type: String, eventInitDict: CloseEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class CloseEvent(type: String, eventInitDict: CloseEventInit = noImpl) : Event(type, eventInitDict) { open val wasClean: Boolean get() = noImpl open val code: Short @@ -3880,13 +3880,13 @@ native public open class CloseEvent(type: String, eventInitDict: CloseEventInit get() = noImpl } -native public interface CloseEventInit : EventInit { +@native public interface CloseEventInit : EventInit { var wasClean: Boolean var code: Short var reason: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, bubbles: Boolean = false, cancelable: Boolean = false): CloseEventInit { val o = js("({})") @@ -3899,14 +3899,14 @@ public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, return o } -native public open class MessageChannel { +@native public open class MessageChannel { open val port1: MessagePort get() = noImpl open val port2: MessagePort get() = noImpl } -native public interface MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker, Transferable { +@native public interface MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker, Transferable { var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3915,14 +3915,14 @@ native public interface MessagePort : EventTarget, UnionMessagePortOrWindow, Uni fun close(): Unit = noImpl } -native public open class PortCollection { +@native public open class PortCollection { fun add(port: MessagePort): Unit = noImpl fun remove(port: MessagePort): Unit = noImpl fun clear(): Unit = noImpl fun iterate(callback: (MessagePort) -> Unit): Unit = noImpl } -native public open class BroadcastChannel(channel: String) : EventTarget { +@native public open class BroadcastChannel(channel: String) : EventTarget { open val name: String get() = noImpl var onmessage: ((Event) -> dynamic)? @@ -3932,7 +3932,7 @@ native public open class BroadcastChannel(channel: String) : EventTarget { fun close(): Unit = noImpl } -native public interface WorkerGlobalScope : EventTarget { +@native public interface WorkerGlobalScope : EventTarget { val caches: CacheStorage get() = noImpl val self: WorkerGlobalScope @@ -3968,14 +3968,14 @@ native public interface WorkerGlobalScope : EventTarget { fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl } -native public interface DedicatedWorkerGlobalScope : WorkerGlobalScope { +@native public interface DedicatedWorkerGlobalScope : WorkerGlobalScope { var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public interface SharedWorkerGlobalScope : WorkerGlobalScope { +@native public interface SharedWorkerGlobalScope : WorkerGlobalScope { val name: String get() = noImpl val applicationCache: ApplicationCache @@ -3985,7 +3985,7 @@ native public interface SharedWorkerGlobalScope : WorkerGlobalScope { set(value) = noImpl } -native public open class Worker(scriptURL: String) : EventTarget { +@native public open class Worker(scriptURL: String) : EventTarget { var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3996,7 +3996,7 @@ native public open class Worker(scriptURL: String) : EventTarget { fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public open class SharedWorker(scriptURL: String, name: String = noImpl) : EventTarget { +@native public open class SharedWorker(scriptURL: String, name: String = noImpl) : EventTarget { open val port: MessagePort get() = noImpl var onerror: ((Event) -> dynamic)? @@ -4004,7 +4004,7 @@ native public open class SharedWorker(scriptURL: String, name: String = noImpl) set(value) = noImpl } -native public interface WorkerNavigator { +@native public interface WorkerNavigator { val serviceWorker: ServiceWorkerContainer get() = noImpl val appCodeName: String @@ -4030,7 +4030,7 @@ native public interface WorkerNavigator { fun taintEnabled(): Boolean = noImpl } -native public interface WorkerLocation { +@native public interface WorkerLocation { var href: String get() = noImpl set(value) = noImpl @@ -4052,19 +4052,19 @@ native public interface WorkerLocation { get() = noImpl } -native public interface Storage { +@native public interface Storage { val length: Int get() = noImpl fun key(index: Int): String? = noImpl fun getItem(key: String): String? = noImpl - nativeGetter fun get(key: String): String? = noImpl + @nativeGetter fun get(key: String): String? = noImpl fun setItem(key: String, value: String): Unit = noImpl - nativeSetter fun set(key: String, value: String): Unit = noImpl + @nativeSetter fun set(key: String, value: String): Unit = noImpl fun removeItem(key: String): Unit = noImpl fun clear(): Unit = noImpl } -native public open class StorageEvent(type: String, eventInitDict: StorageEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class StorageEvent(type: String, eventInitDict: StorageEventInit = noImpl) : Event(type, eventInitDict) { open val key: String? get() = noImpl open val oldValue: String? @@ -4077,7 +4077,7 @@ native public open class StorageEvent(type: String, eventInitDict: StorageEventI get() = noImpl } -native public interface StorageEventInit : EventInit { +@native public interface StorageEventInit : EventInit { var key: String? var oldValue: String? var newValue: String? @@ -4085,7 +4085,7 @@ native public interface StorageEventInit : EventInit { var storageArea: Storage? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun StorageEventInit(key: String?, oldValue: String?, newValue: String?, url: String, storageArea: Storage?, bubbles: Boolean = false, cancelable: Boolean = false): StorageEventInit { val o = js("({})") @@ -4100,7 +4100,7 @@ public inline fun StorageEventInit(key: String?, oldValue: String?, newValue: St return o } -native public interface HTMLAppletElement : HTMLElement { +@native public interface HTMLAppletElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl @@ -4136,7 +4136,7 @@ native public interface HTMLAppletElement : HTMLElement { set(value) = noImpl } -native public interface HTMLMarqueeElement : HTMLElement { +@native public interface HTMLMarqueeElement : HTMLElement { var behavior: String get() = noImpl set(value) = noImpl @@ -4183,7 +4183,7 @@ native public interface HTMLMarqueeElement : HTMLElement { fun stop(): Unit = noImpl } -native public interface HTMLFrameSetElement : HTMLElement { +@native public interface HTMLFrameSetElement : HTMLElement { var cols: String get() = noImpl set(value) = noImpl @@ -4231,7 +4231,7 @@ native public interface HTMLFrameSetElement : HTMLElement { set(value) = noImpl } -native public interface HTMLFrameElement : HTMLElement { +@native public interface HTMLFrameElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -4262,13 +4262,13 @@ native public interface HTMLFrameElement : HTMLElement { set(value) = noImpl } -native public interface HTMLDirectoryElement : HTMLElement { +@native public interface HTMLDirectoryElement : HTMLElement { var compact: Boolean get() = noImpl set(value) = noImpl } -native public interface HTMLFontElement : HTMLElement { +@native public interface HTMLFontElement : HTMLElement { var color: String get() = noImpl set(value) = noImpl @@ -4280,7 +4280,7 @@ native public interface HTMLFontElement : HTMLElement { set(value) = noImpl } -native public interface HTMLImageElement : HTMLElement, CanvasImageSource, ImageBitmapSource { +@native public interface HTMLImageElement : HTMLElement, CanvasImageSource, ImageBitmapSource { var name: String get() = noImpl set(value) = noImpl @@ -4343,15 +4343,15 @@ native public interface HTMLImageElement : HTMLElement, CanvasImageSource, Image get() = noImpl } -native public interface HTMLPictureElement : HTMLElement { +@native public interface HTMLPictureElement : HTMLElement { } -native public interface EventInit { +@native public interface EventInit { var bubbles: Boolean var cancelable: Boolean } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun EventInit(bubbles: Boolean = false, cancelable: Boolean = false): EventInit { val o = js("({})") @@ -4361,11 +4361,11 @@ public inline fun EventInit(bubbles: Boolean = false, cancelable: Boolean = fals return o } -native public interface CustomEventInit : EventInit { +@native public interface CustomEventInit : EventInit { var detail: Any? } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean = false, cancelable: Boolean = false): CustomEventInit { val o = js("({})") @@ -4376,29 +4376,29 @@ public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean = false, return o } -native public interface NodeList { +@native public interface NodeList { val length: Int get() = noImpl fun item(index: Int): Node? = noImpl - nativeGetter fun get(index: Int): Node? = noImpl + @nativeGetter fun get(index: Int): Node? = noImpl } -native public interface HTMLCollection : UnionElementOrHTMLCollection { +@native public interface HTMLCollection : UnionElementOrHTMLCollection { val length: Int get() = noImpl fun item(index: Int): Element? = noImpl - nativeGetter fun get(index: Int): Element? = noImpl + @nativeGetter fun get(index: Int): Element? = noImpl fun namedItem(name: String): Element? = noImpl - nativeGetter fun get(name: String): Element? = noImpl + @nativeGetter fun get(name: String): Element? = noImpl } -native public open class MutationObserver(callback: (Array, MutationObserver) -> Unit) { +@native public open class MutationObserver(callback: (Array, MutationObserver) -> Unit) { fun observe(target: Node, options: MutationObserverInit): Unit = noImpl fun disconnect(): Unit = noImpl fun takeRecords(): Array = noImpl } -native public interface MutationObserverInit { +@native public interface MutationObserverInit { var childList: Boolean var attributes: Boolean var characterData: Boolean @@ -4408,7 +4408,7 @@ native public interface MutationObserverInit { var attributeFilter: Array } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun MutationObserverInit(childList: Boolean = false, attributes: Boolean, characterData: Boolean, subtree: Boolean = false, attributeOldValue: Boolean, characterDataOldValue: Boolean, attributeFilter: Array): MutationObserverInit { val o = js("({})") @@ -4423,7 +4423,7 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B return o } -native public interface MutationRecord { +@native public interface MutationRecord { val type: String get() = noImpl val target: Node @@ -4444,7 +4444,7 @@ native public interface MutationRecord { get() = noImpl } -native public interface Node : EventTarget { +@native public interface Node : EventTarget { val nodeType: Short get() = noImpl val nodeName: String @@ -4509,14 +4509,14 @@ native public interface Node : EventTarget { } } -native public interface DOMImplementation { +@native public interface DOMImplementation { fun createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType = noImpl fun createDocument(namespace: String?, qualifiedName: String, doctype: DocumentType? = null): XMLDocument = noImpl fun createHTMLDocument(title: String = noImpl): Document = noImpl fun hasFeature(): Boolean = noImpl } -native public open class DocumentFragment : Node { +@native public open class DocumentFragment : Node { open val children: HTMLCollection get() = noImpl open val firstElementChild: Element? @@ -4534,7 +4534,7 @@ native public open class DocumentFragment : Node { fun querySelectorAll(selectors: String): NodeList = noImpl } -native public interface DocumentType : Node { +@native public interface DocumentType : Node { val name: String get() = noImpl val publicId: String @@ -4547,13 +4547,13 @@ native public interface DocumentType : Node { fun remove(): Unit = noImpl } -native public interface NamedNodeMap { +@native public interface NamedNodeMap { val length: Int get() = noImpl fun item(index: Int): Attr? = noImpl - nativeGetter fun get(index: Int): Attr? = noImpl + @nativeGetter fun get(index: Int): Attr? = noImpl fun getNamedItem(name: String): Attr? = noImpl - nativeGetter fun get(name: String): Attr? = noImpl + @nativeGetter fun get(name: String): Attr? = noImpl fun getNamedItemNS(namespace: String?, localName: String): Attr? = noImpl fun setNamedItem(attr: Attr): Attr? = noImpl fun setNamedItemNS(attr: Attr): Attr? = noImpl @@ -4561,7 +4561,7 @@ native public interface NamedNodeMap { fun removeNamedItemNS(namespace: String?, localName: String): Attr = noImpl } -native public interface Attr { +@native public interface Attr { val namespaceURI: String? get() = noImpl val prefix: String? @@ -4585,7 +4585,7 @@ native public interface Attr { get() = noImpl } -native public interface CharacterData : Node { +@native public interface CharacterData : Node { var data: String get() = noImpl set(value) = noImpl @@ -4606,7 +4606,7 @@ native public interface CharacterData : Node { fun remove(): Unit = noImpl } -native public open class Text(data: String = "") : CharacterData, GeometryNode { +@native public open class Text(data: String = "") : CharacterData, GeometryNode { open val wholeText: String get() = noImpl fun splitText(offset: Int): Text = noImpl @@ -4616,17 +4616,17 @@ native public open class Text(data: String = "") : CharacterData, GeometryNode { fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl } -native public interface ProcessingInstruction : CharacterData, UnionElementOrProcessingInstruction { +@native public interface ProcessingInstruction : CharacterData, UnionElementOrProcessingInstruction { val target: String get() = noImpl val sheet: StyleSheet? get() = noImpl } -native public open class Comment(data: String = "") : CharacterData { +@native public open class Comment(data: String = "") : CharacterData { } -native public open class Range { +@native public open class Range { open val startContainer: Node get() = noImpl open val startOffset: Int @@ -4671,7 +4671,7 @@ native public open class Range { } } -native public interface NodeIterator { +@native public interface NodeIterator { val root: Node get() = noImpl val referenceNode: Node @@ -4687,7 +4687,7 @@ native public interface NodeIterator { fun detach(): Unit = noImpl } -native public interface TreeWalker { +@native public interface TreeWalker { val root: Node get() = noImpl val whatToShow: Int @@ -4706,7 +4706,7 @@ native public interface TreeWalker { fun nextNode(): Node? = noImpl } -native public interface NodeFilter { +@native public interface NodeFilter { fun acceptNode(node: Node): Short = noImpl companion object { @@ -4729,24 +4729,24 @@ native public interface NodeFilter { } } -native public interface DOMTokenList { +@native public interface DOMTokenList { val length: Int get() = noImpl fun item(index: Int): String? = noImpl - nativeGetter fun get(index: Int): String? = noImpl + @nativeGetter fun get(index: Int): String? = noImpl fun contains(token: String): Boolean = noImpl fun add(vararg tokens: String): Unit = noImpl fun remove(vararg tokens: String): Unit = noImpl fun toggle(token: String, force: Boolean = noImpl): Boolean = noImpl } -native public interface DOMSettableTokenList : DOMTokenList { +@native public interface DOMSettableTokenList : DOMTokenList { var value: String get() = noImpl set(value) = noImpl } -native public interface Selection { +@native public interface Selection { val anchorNode: Node? get() = noImpl val anchorOffset: Int @@ -4771,19 +4771,19 @@ native public interface Selection { fun removeAllRanges(): Unit = noImpl } -native public open class EditingBeforeInputEvent(type: String, eventInitDict: EditingBeforeInputEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class EditingBeforeInputEvent(type: String, eventInitDict: EditingBeforeInputEventInit = noImpl) : Event(type, eventInitDict) { open val command: String get() = noImpl open val value: String get() = noImpl } -native public interface EditingBeforeInputEventInit : EventInit { +@native public interface EditingBeforeInputEventInit : EventInit { var command: String var value: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun EditingBeforeInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingBeforeInputEventInit { val o = js("({})") @@ -4795,19 +4795,19 @@ public inline fun EditingBeforeInputEventInit(command: String, value: String, bu return o } -native public open class EditingInputEvent(type: String, eventInitDict: EditingInputEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class EditingInputEvent(type: String, eventInitDict: EditingInputEventInit = noImpl) : Event(type, eventInitDict) { open val command: String get() = noImpl open val value: String get() = noImpl } -native public interface EditingInputEventInit : EventInit { +@native public interface EditingInputEventInit : EventInit { var command: String var value: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun EditingInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingInputEventInit { val o = js("({})") @@ -4819,7 +4819,7 @@ public inline fun EditingInputEventInit(command: String, value: String, bubbles: return o } -native public open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: Double) { +@native public open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: Double) { open val x: Double get() = noImpl open val y: Double @@ -4831,7 +4831,7 @@ native public open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: Do fun matrixTransform(matrix: DOMMatrixReadOnly): DOMPoint = noImpl } -native public open class DOMPoint : DOMPointReadOnly { +@native public open class DOMPoint : DOMPointReadOnly { constructor(point: DOMPointInit) : super(noImpl, noImpl, noImpl, noImpl) constructor(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, w: Double = 1.0) : super(x, y, z, w) override var x: Double @@ -4848,14 +4848,14 @@ native public open class DOMPoint : DOMPointReadOnly { set(value) = noImpl } -native public interface DOMPointInit { +@native public interface DOMPointInit { var x: Double var y: Double var z: Double var w: Double } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun DOMPointInit(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, w: Double = 1.0): DOMPointInit { val o = js("({})") @@ -4867,7 +4867,7 @@ public inline fun DOMPointInit(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0 return o } -native public open class DOMRect(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0) : DOMRectReadOnly(x, y, width, height) { +@native public open class DOMRect(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0) : DOMRectReadOnly(x, y, width, height) { override var x: Double get() = noImpl set(value) = noImpl @@ -4882,7 +4882,7 @@ native public open class DOMRect(x: Double = 0.0, y: Double = 0.0, width: Double set(value) = noImpl } -native public open class DOMRectReadOnly(x: Double, y: Double, width: Double, height: Double) { +@native public open class DOMRectReadOnly(x: Double, y: Double, width: Double, height: Double) { open val x: Double get() = noImpl open val y: Double @@ -4901,14 +4901,14 @@ native public open class DOMRectReadOnly(x: Double, y: Double, width: Double, he get() = noImpl } -native public interface DOMRectInit { +@native public interface DOMRectInit { var x: Double var y: Double var width: Double var height: Double } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0): DOMRectInit { val o = js("({})") @@ -4920,7 +4920,7 @@ public inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = return o } -native public open class DOMQuad { +@native public open class DOMQuad { constructor(p1: DOMPointInit = noImpl, p2: DOMPointInit = noImpl, p3: DOMPointInit = noImpl, p4: DOMPointInit = noImpl) constructor(rect: DOMRectInit) open val p1: DOMPoint @@ -4935,7 +4935,7 @@ native public open class DOMQuad { get() = noImpl } -native public open class DOMMatrixReadOnly(numberSequence: Array) { +@native public open class DOMMatrixReadOnly(numberSequence: Array) { open val a: Double get() = noImpl open val b: Double @@ -5002,7 +5002,7 @@ native public open class DOMMatrixReadOnly(numberSequence: Array) { fun toFloat64Array(): Float64Array = noImpl } -native public open class DOMMatrix() : DOMMatrixReadOnly(noImpl) { +@native public open class DOMMatrix() : DOMMatrixReadOnly(noImpl) { constructor(transformList: String) : this() constructor(other: DOMMatrixReadOnly) : this() constructor(array32: Float32Array) : this() @@ -5089,11 +5089,11 @@ native public open class DOMMatrix() : DOMMatrixReadOnly(noImpl) { fun setMatrixValue(transformList: String): DOMMatrix = noImpl } -native public interface ScrollOptions { +@native public interface ScrollOptions { var behavior: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ScrollOptions(behavior: String = "auto"): ScrollOptions { val o = js("({})") @@ -5102,7 +5102,7 @@ public inline fun ScrollOptions(behavior: String = "auto"): ScrollOptions { return o } -native public interface MediaQueryList { +@native public interface MediaQueryList { val media: String get() = noImpl val matches: Boolean @@ -5111,7 +5111,7 @@ native public interface MediaQueryList { fun removeListener(listener: (MediaQueryList) -> Unit): Unit = noImpl } -native public interface Screen { +@native public interface Screen { val availWidth: Double get() = noImpl val availHeight: Double @@ -5126,7 +5126,7 @@ native public interface Screen { get() = noImpl } -native public interface CaretPosition { +@native public interface CaretPosition { val offsetNode: Node get() = noImpl val offset: Int @@ -5134,11 +5134,11 @@ native public interface CaretPosition { fun getClientRect(): DOMRect? = noImpl } -native public interface ScrollOptionsHorizontal : ScrollOptions { +@native public interface ScrollOptionsHorizontal : ScrollOptions { var x: Double } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ScrollOptionsHorizontal(x: Double, behavior: String = "auto"): ScrollOptionsHorizontal { val o = js("({})") @@ -5148,11 +5148,11 @@ public inline fun ScrollOptionsHorizontal(x: Double, behavior: String = "auto"): return o } -native public interface ScrollOptionsVertical : ScrollOptions { +@native public interface ScrollOptionsVertical : ScrollOptions { var y: Double } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ScrollOptionsVertical(y: Double, behavior: String = "auto"): ScrollOptionsVertical { val o = js("({})") @@ -5162,12 +5162,12 @@ public inline fun ScrollOptionsVertical(y: Double, behavior: String = "auto"): S return o } -native public interface BoxQuadOptions { +@native public interface BoxQuadOptions { var box: String var relativeTo: GeometryNode } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun BoxQuadOptions(box: String = "border", relativeTo: GeometryNode): BoxQuadOptions { val o = js("({})") @@ -5177,12 +5177,12 @@ public inline fun BoxQuadOptions(box: String = "border", relativeTo: GeometryNod return o } -native public interface ConvertCoordinateOptions { +@native public interface ConvertCoordinateOptions { var fromBox: String var toBox: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: String = "border"): ConvertCoordinateOptions { val o = js("({})") @@ -5192,45 +5192,45 @@ public inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: St return o } -native public marker interface UnionElementOrProcessingInstruction { +@native public @marker interface UnionElementOrProcessingInstruction { } -native public marker interface UnionElementOrHTMLCollection { +@native public @marker interface UnionElementOrHTMLCollection { } -native public marker interface UnionElementOrRadioNodeList { +@native public @marker interface UnionElementOrRadioNodeList { } -native public marker interface UnionHTMLOptGroupElementOrHTMLOptionElement { +@native public @marker interface UnionHTMLOptGroupElementOrHTMLOptionElement { } -native public marker interface UnionAudioTrackOrTextTrackOrVideoTrack { +@native public @marker interface UnionAudioTrackOrTextTrackOrVideoTrack { } -native public marker interface UnionElementOrMouseEvent { +@native public @marker interface UnionElementOrMouseEvent { } -native public marker interface UnionMessagePortOrWindow { +@native public @marker interface UnionMessagePortOrWindow { } -native public marker interface UnionMessagePortOrServiceWorker { +@native public @marker interface UnionMessagePortOrServiceWorker { } -native public marker interface ArrayBufferView { +@native public @marker interface ArrayBufferView { } -native public marker interface Transferable { +@native public @marker interface Transferable { } -native public marker interface RenderingContext { +@native public @marker interface RenderingContext { } -native public marker interface CanvasImageSource { +@native public @marker interface CanvasImageSource { } -native public marker interface ImageBitmapSource { +@native public @marker interface ImageBitmapSource { } -native public marker interface GeometryNode { +@native public @marker interface GeometryNode { } diff --git a/js/js.libraries/src/generated/org.w3c.dom.parsing.kt b/js/js.libraries/src/generated/org.w3c.dom.parsing.kt index 6fb2fdb900c..2b7eec063a6 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.parsing.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.parsing.kt @@ -20,11 +20,11 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class DOMParser { +@native public open class DOMParser { fun parseFromString(str: String, type: dynamic): Document = noImpl } -native public open class XMLSerializer { +@native public open class XMLSerializer { fun serializeToString(root: Node): String = noImpl } diff --git a/js/js.libraries/src/generated/org.w3c.dom.svg.kt b/js/js.libraries/src/generated/org.w3c.dom.svg.kt index a0f3362919a..283c10c1107 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.svg.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.svg.kt @@ -20,12 +20,12 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class SVGDocument : Document() { +@native public open class SVGDocument : Document() { open val rootElement: SVGSVGElement get() = noImpl } -native public interface SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { +@native public interface SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength @@ -84,22 +84,22 @@ native public interface SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGE fun getElementById(elementId: String): Element = noImpl } -native public interface SVGGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { } -native public interface SVGDefsElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGDefsElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { } -native public interface SVGDescElement : SVGElement, SVGLangSpace, SVGStylable { +@native public interface SVGDescElement : SVGElement, SVGLangSpace, SVGStylable { } -native public interface SVGTitleElement : SVGElement, SVGLangSpace, SVGStylable { +@native public interface SVGTitleElement : SVGElement, SVGLangSpace, SVGStylable { } -native public interface SVGSymbolElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { +@native public interface SVGSymbolElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { } -native public interface SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength @@ -114,7 +114,7 @@ native public interface SVGUseElement : SVGElement, SVGURIReference, SVGTests, S get() = noImpl } -native public interface SVGElementInstance : EventTarget { +@native public interface SVGElementInstance : EventTarget { val correspondingElement: SVGElement get() = noImpl val correspondingUseElement: SVGUseElement @@ -133,13 +133,13 @@ native public interface SVGElementInstance : EventTarget { get() = noImpl } -native public interface SVGElementInstanceList { +@native public interface SVGElementInstanceList { val length: Int get() = noImpl fun item(index: Int): SVGElementInstance = noImpl } -native public interface SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength @@ -152,14 +152,14 @@ native public interface SVGImageElement : SVGElement, SVGURIReference, SVGTests, get() = noImpl } -native public interface SVGSwitchElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGSwitchElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { } -native public interface GetSVGDocument { +@native public interface GetSVGDocument { fun getSVGDocument(): SVGDocument = noImpl } -native public interface SVGElement : Element { +@native public interface SVGElement : Element { // var id: dynamic // get() = noImpl // set(value) = noImpl @@ -174,7 +174,7 @@ native public interface SVGElement : Element { get() = noImpl } -native public interface SVGAnimatedBoolean { +@native public interface SVGAnimatedBoolean { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -182,7 +182,7 @@ native public interface SVGAnimatedBoolean { get() = noImpl } -native public interface SVGAnimatedString { +@native public interface SVGAnimatedString { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -190,7 +190,7 @@ native public interface SVGAnimatedString { get() = noImpl } -native public interface SVGStringList { +@native public interface SVGStringList { val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl @@ -202,7 +202,7 @@ native public interface SVGStringList { fun appendItem(newItem: String): String = noImpl } -native public interface SVGAnimatedEnumeration { +@native public interface SVGAnimatedEnumeration { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -210,7 +210,7 @@ native public interface SVGAnimatedEnumeration { get() = noImpl } -native public interface SVGAnimatedInteger { +@native public interface SVGAnimatedInteger { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -218,13 +218,13 @@ native public interface SVGAnimatedInteger { get() = noImpl } -native public interface SVGNumber { +@native public interface SVGNumber { var value: dynamic get() = noImpl set(value) = noImpl } -native public interface SVGAnimatedNumber { +@native public interface SVGAnimatedNumber { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -232,7 +232,7 @@ native public interface SVGAnimatedNumber { get() = noImpl } -native public interface SVGNumberList { +@native public interface SVGNumberList { val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl @@ -244,14 +244,14 @@ native public interface SVGNumberList { fun appendItem(newItem: SVGNumber): SVGNumber = noImpl } -native public interface SVGAnimatedNumberList { +@native public interface SVGAnimatedNumberList { val baseVal: SVGNumberList get() = noImpl val animVal: SVGNumberList get() = noImpl } -native public interface SVGLength { +@native public interface SVGLength { val unitType: Short get() = noImpl var value: dynamic @@ -281,14 +281,14 @@ native public interface SVGLength { } } -native public interface SVGAnimatedLength { +@native public interface SVGAnimatedLength { val baseVal: SVGLength get() = noImpl val animVal: SVGLength get() = noImpl } -native public interface SVGLengthList { +@native public interface SVGLengthList { val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl @@ -300,14 +300,14 @@ native public interface SVGLengthList { fun appendItem(newItem: SVGLength): SVGLength = noImpl } -native public interface SVGAnimatedLengthList { +@native public interface SVGAnimatedLengthList { val baseVal: SVGLengthList get() = noImpl val animVal: SVGLengthList get() = noImpl } -native public interface SVGAngle { +@native public interface SVGAngle { val unitType: Short get() = noImpl var value: dynamic @@ -331,14 +331,14 @@ native public interface SVGAngle { } } -native public interface SVGAnimatedAngle { +@native public interface SVGAnimatedAngle { val baseVal: SVGAngle get() = noImpl val animVal: SVGAngle get() = noImpl } -native public interface SVGColor { +@native public interface SVGColor { val colorType: Short get() = noImpl val rgbColor: dynamic @@ -357,7 +357,7 @@ native public interface SVGColor { } } -native public interface SVGICCColor { +@native public interface SVGICCColor { var colorProfile: dynamic get() = noImpl set(value) = noImpl @@ -365,7 +365,7 @@ native public interface SVGICCColor { get() = noImpl } -native public interface SVGRect { +@native public interface SVGRect { var x: dynamic get() = noImpl set(value) = noImpl @@ -380,14 +380,14 @@ native public interface SVGRect { set(value) = noImpl } -native public interface SVGAnimatedRect { +@native public interface SVGAnimatedRect { val baseVal: SVGRect get() = noImpl val animVal: SVGRect get() = noImpl } -native public interface SVGUnitTypes { +@native public interface SVGUnitTypes { companion object { val SVG_UNIT_TYPE_UNKNOWN: Short = 0 @@ -396,11 +396,11 @@ native public interface SVGUnitTypes { } } -native public interface SVGStylable { +@native public interface SVGStylable { fun getPresentationAttribute(name: String): dynamic = noImpl } -native public interface SVGLocatable { +@native public interface SVGLocatable { val nearestViewportElement: SVGElement get() = noImpl val farthestViewportElement: SVGElement @@ -411,12 +411,12 @@ native public interface SVGLocatable { fun getTransformToElement(element: SVGElement): SVGMatrix = noImpl } -native public interface SVGTransformable : SVGLocatable { +@native public interface SVGTransformable : SVGLocatable { val transform: SVGAnimatedTransformList get() = noImpl } -native public interface SVGTests { +@native public interface SVGTests { val requiredFeatures: SVGStringList get() = noImpl val requiredExtensions: SVGStringList @@ -426,7 +426,7 @@ native public interface SVGTests { fun hasExtension(extension: String): Boolean = noImpl } -native public interface SVGLangSpace { +@native public interface SVGLangSpace { var xmllang: dynamic get() = noImpl set(value) = noImpl @@ -435,19 +435,19 @@ native public interface SVGLangSpace { set(value) = noImpl } -native public interface SVGExternalResourcesRequired { +@native public interface SVGExternalResourcesRequired { val externalResourcesRequired: SVGAnimatedBoolean get() = noImpl } -native public interface SVGFitToViewBox { +@native public interface SVGFitToViewBox { val viewBox: SVGAnimatedRect get() = noImpl val preserveAspectRatio: SVGAnimatedPreserveAspectRatio get() = noImpl } -native public interface SVGZoomAndPan { +@native public interface SVGZoomAndPan { var zoomAndPan: dynamic get() = noImpl set(value) = noImpl @@ -459,7 +459,7 @@ native public interface SVGZoomAndPan { } } -native public interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { +@native public interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { val transform: SVGTransformList get() = noImpl val viewTarget: SVGElement @@ -474,19 +474,19 @@ native public interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { get() = noImpl } -native public interface SVGURIReference { +@native public interface SVGURIReference { val href: SVGAnimatedString get() = noImpl } -native public interface SVGCSSRule : CSSRule { +@native public interface SVGCSSRule : CSSRule { companion object { val COLOR_PROFILE_RULE: Short = 7 } } -native public interface SVGRenderingIntent { +@native public interface SVGRenderingIntent { companion object { val RENDERING_INTENT_UNKNOWN: Short = 0 @@ -498,7 +498,7 @@ native public interface SVGRenderingIntent { } } -native public interface SVGStyleElement : SVGElement, SVGLangSpace { +@native public interface SVGStyleElement : SVGElement, SVGLangSpace { var type: dynamic get() = noImpl set(value) = noImpl @@ -510,7 +510,7 @@ native public interface SVGStyleElement : SVGElement, SVGLangSpace { set(value) = noImpl } -native public interface SVGPoint { +@native public interface SVGPoint { var x: dynamic get() = noImpl set(value) = noImpl @@ -520,7 +520,7 @@ native public interface SVGPoint { fun matrixTransform(matrix: SVGMatrix): SVGPoint = noImpl } -native public interface SVGPointList { +@native public interface SVGPointList { val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl @@ -532,7 +532,7 @@ native public interface SVGPointList { fun appendItem(newItem: SVGPoint): SVGPoint = noImpl } -native public interface SVGMatrix { +@native public interface SVGMatrix { var a: dynamic get() = noImpl set(value) = noImpl @@ -564,7 +564,7 @@ native public interface SVGMatrix { fun skewY(angle: Float): SVGMatrix = noImpl } -native public interface SVGTransform { +@native public interface SVGTransform { val type: Short get() = noImpl val matrix: SVGMatrix @@ -589,7 +589,7 @@ native public interface SVGTransform { } } -native public interface SVGTransformList { +@native public interface SVGTransformList { val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl @@ -603,14 +603,14 @@ native public interface SVGTransformList { fun consolidate(): SVGTransform = noImpl } -native public interface SVGAnimatedTransformList { +@native public interface SVGAnimatedTransformList { val baseVal: SVGTransformList get() = noImpl val animVal: SVGTransformList get() = noImpl } -native public interface SVGPreserveAspectRatio { +@native public interface SVGPreserveAspectRatio { var align: dynamic get() = noImpl set(value) = noImpl @@ -636,14 +636,14 @@ native public interface SVGPreserveAspectRatio { } } -native public interface SVGAnimatedPreserveAspectRatio { +@native public interface SVGAnimatedPreserveAspectRatio { val baseVal: SVGPreserveAspectRatio get() = noImpl val animVal: SVGPreserveAspectRatio get() = noImpl } -native public interface SVGPathSeg { +@native public interface SVGPathSeg { val pathSegType: Short get() = noImpl val pathSegTypeAsLetter: String @@ -673,10 +673,10 @@ native public interface SVGPathSeg { } } -native public interface SVGPathSegClosePath : SVGPathSeg { +@native public interface SVGPathSegClosePath : SVGPathSeg { } -native public interface SVGPathSegMovetoAbs : SVGPathSeg { +@native public interface SVGPathSegMovetoAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -685,7 +685,7 @@ native public interface SVGPathSegMovetoAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegMovetoRel : SVGPathSeg { +@native public interface SVGPathSegMovetoRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -694,7 +694,7 @@ native public interface SVGPathSegMovetoRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegLinetoAbs : SVGPathSeg { +@native public interface SVGPathSegLinetoAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -703,7 +703,7 @@ native public interface SVGPathSegLinetoAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegLinetoRel : SVGPathSeg { +@native public interface SVGPathSegLinetoRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -712,7 +712,7 @@ native public interface SVGPathSegLinetoRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoCubicAbs : SVGPathSeg { +@native public interface SVGPathSegCurvetoCubicAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -733,7 +733,7 @@ native public interface SVGPathSegCurvetoCubicAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoCubicRel : SVGPathSeg { +@native public interface SVGPathSegCurvetoCubicRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -754,7 +754,7 @@ native public interface SVGPathSegCurvetoCubicRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { +@native public interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -769,7 +769,7 @@ native public interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg { +@native public interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -784,7 +784,7 @@ native public interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegArcAbs : SVGPathSeg { +@native public interface SVGPathSegArcAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -808,7 +808,7 @@ native public interface SVGPathSegArcAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegArcRel : SVGPathSeg { +@native public interface SVGPathSegArcRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -832,31 +832,31 @@ native public interface SVGPathSegArcRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg { +@native public interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl } -native public interface SVGPathSegLinetoHorizontalRel : SVGPathSeg { +@native public interface SVGPathSegLinetoHorizontalRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl } -native public interface SVGPathSegLinetoVerticalAbs : SVGPathSeg { +@native public interface SVGPathSegLinetoVerticalAbs : SVGPathSeg { var y: dynamic get() = noImpl set(value) = noImpl } -native public interface SVGPathSegLinetoVerticalRel : SVGPathSeg { +@native public interface SVGPathSegLinetoVerticalRel : SVGPathSeg { var y: dynamic get() = noImpl set(value) = noImpl } -native public interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { +@native public interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -871,7 +871,7 @@ native public interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { +@native public interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -886,7 +886,7 @@ native public interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { +@native public interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -895,7 +895,7 @@ native public interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { +@native public interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -904,7 +904,7 @@ native public interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { set(value) = noImpl } -native public interface SVGPathSegList { +@native public interface SVGPathSegList { val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl @@ -916,7 +916,7 @@ native public interface SVGPathSegList { fun appendItem(newItem: SVGPathSeg): SVGPathSeg = noImpl } -native public interface SVGAnimatedPathData { +@native public interface SVGAnimatedPathData { val pathSegList: SVGPathSegList get() = noImpl val normalizedPathSegList: SVGPathSegList @@ -927,7 +927,7 @@ native public interface SVGAnimatedPathData { get() = noImpl } -native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPathData { +@native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPathData { val pathLength: SVGAnimatedNumber get() = noImpl fun getTotalLength(): Float = noImpl @@ -954,7 +954,7 @@ native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVG fun createSVGPathSegCurvetoQuadraticSmoothRel(x: Float, y: Float): SVGPathSegCurvetoQuadraticSmoothRel = noImpl } -native public interface SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength @@ -969,7 +969,7 @@ native public interface SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVG get() = noImpl } -native public interface SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val cx: SVGAnimatedLength get() = noImpl val cy: SVGAnimatedLength @@ -978,7 +978,7 @@ native public interface SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, S get() = noImpl } -native public interface SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val cx: SVGAnimatedLength get() = noImpl val cy: SVGAnimatedLength @@ -989,7 +989,7 @@ native public interface SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, get() = noImpl } -native public interface SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val x1: SVGAnimatedLength get() = noImpl val y1: SVGAnimatedLength @@ -1000,20 +1000,20 @@ native public interface SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVG get() = noImpl } -native public interface SVGAnimatedPoints { +@native public interface SVGAnimatedPoints { val points: SVGPointList get() = noImpl val animatedPoints: SVGPointList get() = noImpl } -native public interface SVGPolylineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { +@native public interface SVGPolylineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { } -native public interface SVGPolygonElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { +@native public interface SVGPolygonElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { } -native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable { +@native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable { val textLength: SVGAnimatedLength get() = noImpl val lengthAdjust: SVGAnimatedEnumeration @@ -1035,7 +1035,7 @@ native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpa } } -native public interface SVGTextPositioningElement : SVGTextContentElement { +@native public interface SVGTextPositioningElement : SVGTextContentElement { val x: SVGAnimatedLengthList get() = noImpl val y: SVGAnimatedLengthList @@ -1048,16 +1048,16 @@ native public interface SVGTextPositioningElement : SVGTextContentElement { get() = noImpl } -native public interface SVGTextElement : SVGTextPositioningElement, SVGTransformable { +@native public interface SVGTextElement : SVGTextPositioningElement, SVGTransformable { } -native public interface SVGTSpanElement : SVGTextPositioningElement { +@native public interface SVGTSpanElement : SVGTextPositioningElement { } -native public interface SVGTRefElement : SVGTextPositioningElement, SVGURIReference { +@native public interface SVGTRefElement : SVGTextPositioningElement, SVGURIReference { } -native public interface SVGTextPathElement : SVGTextContentElement, SVGURIReference { +@native public interface SVGTextPathElement : SVGTextContentElement, SVGURIReference { val startOffset: SVGAnimatedLength get() = noImpl val method: SVGAnimatedEnumeration @@ -1075,7 +1075,7 @@ native public interface SVGTextPathElement : SVGTextContentElement, SVGURIRefere } } -native public interface SVGAltGlyphElement : SVGTextPositioningElement, SVGURIReference { +@native public interface SVGAltGlyphElement : SVGTextPositioningElement, SVGURIReference { var glyphRef: dynamic get() = noImpl set(value) = noImpl @@ -1084,13 +1084,13 @@ native public interface SVGAltGlyphElement : SVGTextPositioningElement, SVGURIRe set(value) = noImpl } -native public interface SVGAltGlyphDefElement : SVGElement { +@native public interface SVGAltGlyphDefElement : SVGElement { } -native public interface SVGAltGlyphItemElement : SVGElement { +@native public interface SVGAltGlyphItemElement : SVGElement { } -native public interface SVGGlyphRefElement : SVGElement, SVGURIReference, SVGStylable { +@native public interface SVGGlyphRefElement : SVGElement, SVGURIReference, SVGStylable { var glyphRef: dynamic get() = noImpl set(value) = noImpl @@ -1111,7 +1111,7 @@ native public interface SVGGlyphRefElement : SVGElement, SVGURIReference, SVGSty set(value) = noImpl } -native public interface SVGPaint : SVGColor { +@native public interface SVGPaint : SVGColor { val paintType: Short get() = noImpl val uri: String @@ -1133,7 +1133,7 @@ native public interface SVGPaint : SVGColor { } } -native public interface SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { +@native public interface SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { val refX: SVGAnimatedLength get() = noImpl val refY: SVGAnimatedLength @@ -1161,7 +1161,7 @@ native public interface SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternal } } -native public interface SVGColorProfileElement : SVGElement, SVGURIReference, SVGRenderingIntent { +@native public interface SVGColorProfileElement : SVGElement, SVGURIReference, SVGRenderingIntent { var local: String get() = noImpl set(value) = noImpl @@ -1173,7 +1173,7 @@ native public interface SVGColorProfileElement : SVGElement, SVGURIReference, SV set(value) = noImpl } -native public interface SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { +@native public interface SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { var src: dynamic get() = noImpl set(value) = noImpl @@ -1185,7 +1185,7 @@ native public interface SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { set(value) = noImpl } -native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { +@native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { val gradientUnits: SVGAnimatedEnumeration get() = noImpl val gradientTransform: SVGAnimatedTransformList @@ -1201,7 +1201,7 @@ native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExt } } -native public interface SVGLinearGradientElement : SVGGradientElement { +@native public interface SVGLinearGradientElement : SVGGradientElement { val x1: SVGAnimatedLength get() = noImpl val y1: SVGAnimatedLength @@ -1212,7 +1212,7 @@ native public interface SVGLinearGradientElement : SVGGradientElement { get() = noImpl } -native public interface SVGRadialGradientElement : SVGGradientElement { +@native public interface SVGRadialGradientElement : SVGGradientElement { val cx: SVGAnimatedLength get() = noImpl val cy: SVGAnimatedLength @@ -1225,12 +1225,12 @@ native public interface SVGRadialGradientElement : SVGGradientElement { get() = noImpl } -native public interface SVGStopElement : SVGElement, SVGStylable { +@native public interface SVGStopElement : SVGElement, SVGStylable { val offset: SVGAnimatedNumber get() = noImpl } -native public interface SVGPatternElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGUnitTypes { +@native public interface SVGPatternElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGUnitTypes { val patternUnits: SVGAnimatedEnumeration get() = noImpl val patternContentUnits: SVGAnimatedEnumeration @@ -1247,12 +1247,12 @@ native public interface SVGPatternElement : SVGElement, SVGURIReference, SVGTest get() = noImpl } -native public interface SVGClipPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGUnitTypes { +@native public interface SVGClipPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGUnitTypes { val clipPathUnits: SVGAnimatedEnumeration get() = noImpl } -native public interface SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { +@native public interface SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { val maskUnits: SVGAnimatedEnumeration get() = noImpl val maskContentUnits: SVGAnimatedEnumeration @@ -1267,7 +1267,7 @@ native public interface SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVG get() = noImpl } -native public interface SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { +@native public interface SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { val filterUnits: SVGAnimatedEnumeration get() = noImpl val primitiveUnits: SVGAnimatedEnumeration @@ -1287,7 +1287,7 @@ native public interface SVGFilterElement : SVGElement, SVGURIReference, SVGLangS fun setFilterRes(filterResX: Int, filterResY: Int): Unit = noImpl } -native public interface SVGFilterPrimitiveStandardAttributes : SVGStylable { +@native public interface SVGFilterPrimitiveStandardAttributes : SVGStylable { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength @@ -1300,7 +1300,7 @@ native public interface SVGFilterPrimitiveStandardAttributes : SVGStylable { get() = noImpl } -native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val in2: SVGAnimatedString @@ -1318,7 +1318,7 @@ native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStanda } } -native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val type: SVGAnimatedEnumeration @@ -1335,12 +1335,12 @@ native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitive } } -native public interface SVGFEComponentTransferElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEComponentTransferElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl } -native public interface SVGComponentTransferFunctionElement : SVGElement { +@native public interface SVGComponentTransferFunctionElement : SVGElement { val type: SVGAnimatedEnumeration get() = noImpl val tableValues: SVGAnimatedNumberList @@ -1366,19 +1366,19 @@ native public interface SVGComponentTransferFunctionElement : SVGElement { } } -native public interface SVGFEFuncRElement : SVGComponentTransferFunctionElement { +@native public interface SVGFEFuncRElement : SVGComponentTransferFunctionElement { } -native public interface SVGFEFuncGElement : SVGComponentTransferFunctionElement { +@native public interface SVGFEFuncGElement : SVGComponentTransferFunctionElement { } -native public interface SVGFEFuncBElement : SVGComponentTransferFunctionElement { +@native public interface SVGFEFuncBElement : SVGComponentTransferFunctionElement { } -native public interface SVGFEFuncAElement : SVGComponentTransferFunctionElement { +@native public interface SVGFEFuncAElement : SVGComponentTransferFunctionElement { } -native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val in2: SVGAnimatedString @@ -1405,7 +1405,7 @@ native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveSt } } -native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val orderX: SVGAnimatedInteger @@ -1439,7 +1439,7 @@ native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimit } } -native public interface SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val surfaceScale: SVGAnimatedNumber @@ -1452,14 +1452,14 @@ native public interface SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimi get() = noImpl } -native public interface SVGFEDistantLightElement : SVGElement { +@native public interface SVGFEDistantLightElement : SVGElement { val azimuth: SVGAnimatedNumber get() = noImpl val elevation: SVGAnimatedNumber get() = noImpl } -native public interface SVGFEPointLightElement : SVGElement { +@native public interface SVGFEPointLightElement : SVGElement { val x: SVGAnimatedNumber get() = noImpl val y: SVGAnimatedNumber @@ -1468,7 +1468,7 @@ native public interface SVGFEPointLightElement : SVGElement { get() = noImpl } -native public interface SVGFESpotLightElement : SVGElement { +@native public interface SVGFESpotLightElement : SVGElement { val x: SVGAnimatedNumber get() = noImpl val y: SVGAnimatedNumber @@ -1487,7 +1487,7 @@ native public interface SVGFESpotLightElement : SVGElement { get() = noImpl } -native public interface SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val in2: SVGAnimatedString @@ -1508,10 +1508,10 @@ native public interface SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimi } } -native public interface SVGFEFloodElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEFloodElement : SVGElement, SVGFilterPrimitiveStandardAttributes { } -native public interface SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val stdDeviationX: SVGAnimatedNumber @@ -1521,20 +1521,20 @@ native public interface SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiv fun setStdDeviation(stdDeviationX: Float, stdDeviationY: Float): Unit = noImpl } -native public interface SVGFEImageElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEImageElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { val preserveAspectRatio: SVGAnimatedPreserveAspectRatio get() = noImpl } -native public interface SVGFEMergeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEMergeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { } -native public interface SVGFEMergeNodeElement : SVGElement { +@native public interface SVGFEMergeNodeElement : SVGElement { val in1: SVGAnimatedString get() = noImpl } -native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val operator: SVGAnimatedEnumeration @@ -1551,7 +1551,7 @@ native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveS } } -native public interface SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val dx: SVGAnimatedNumber @@ -1560,7 +1560,7 @@ native public interface SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStand get() = noImpl } -native public interface SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl val surfaceScale: SVGAnimatedNumber @@ -1575,12 +1575,12 @@ native public interface SVGFESpecularLightingElement : SVGElement, SVGFilterPrim get() = noImpl } -native public interface SVGFETileElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFETileElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val in1: SVGAnimatedString get() = noImpl } -native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +@native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStandardAttributes { val baseFrequencyX: SVGAnimatedNumber get() = noImpl val baseFrequencyY: SVGAnimatedNumber @@ -1604,30 +1604,30 @@ native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveS } } -native public interface SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired { +@native public interface SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength get() = noImpl } -native public interface SVGAElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGAElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val target: SVGAnimatedString get() = noImpl } -native public interface SVGViewElement : SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { +@native public interface SVGViewElement : SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { val viewTarget: SVGStringList get() = noImpl } -native public interface SVGScriptElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { +@native public interface SVGScriptElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { var type: dynamic get() = noImpl set(value) = noImpl } -native public open class SVGZoomEvent : UIEvent(noImpl, noImpl) { +@native public open class SVGZoomEvent : UIEvent(noImpl, noImpl) { open val zoomRectScreen: SVGRect get() = noImpl open val previousScale: Float @@ -1640,14 +1640,14 @@ native public open class SVGZoomEvent : UIEvent(noImpl, noImpl) { get() = noImpl } -native public interface ElementTimeControl { +@native public interface ElementTimeControl { fun beginElement(): Unit = noImpl fun beginElementAt(offset: Float): Unit = noImpl fun endElement(): Unit = noImpl fun endElementAt(offset: Float): Unit = noImpl } -native public open class TimeEvent : Event(noImpl, noImpl) { +@native public open class TimeEvent : Event(noImpl, noImpl) { open val view: dynamic get() = noImpl open val detail: Int @@ -1655,7 +1655,7 @@ native public open class TimeEvent : Event(noImpl, noImpl) { fun initTimeEvent(typeArg: String, viewArg: dynamic, detailArg: Int): Unit = noImpl } -native public interface SVGAnimationElement : SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl { +@native public interface SVGAnimationElement : SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl { val targetElement: SVGElement get() = noImpl fun getStartTime(): Float = noImpl @@ -1663,58 +1663,58 @@ native public interface SVGAnimationElement : SVGElement, SVGTests, SVGExternalR fun getSimpleDuration(): Float = noImpl } -native public interface SVGAnimateElement : SVGAnimationElement, SVGStylable { +@native public interface SVGAnimateElement : SVGAnimationElement, SVGStylable { } -native public interface SVGSetElement : SVGAnimationElement { +@native public interface SVGSetElement : SVGAnimationElement { } -native public interface SVGAnimateMotionElement : SVGAnimationElement { +@native public interface SVGAnimateMotionElement : SVGAnimationElement { } -native public interface SVGMPathElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { +@native public interface SVGMPathElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { } -native public interface SVGAnimateColorElement : SVGAnimationElement, SVGStylable { +@native public interface SVGAnimateColorElement : SVGAnimationElement, SVGStylable { } -native public interface SVGAnimateTransformElement : SVGAnimationElement { +@native public interface SVGAnimateTransformElement : SVGAnimationElement { } -native public interface SVGFontElement : SVGElement, SVGExternalResourcesRequired, SVGStylable { +@native public interface SVGFontElement : SVGElement, SVGExternalResourcesRequired, SVGStylable { } -native public interface SVGGlyphElement : SVGElement, SVGStylable { +@native public interface SVGGlyphElement : SVGElement, SVGStylable { } -native public interface SVGMissingGlyphElement : SVGElement, SVGStylable { +@native public interface SVGMissingGlyphElement : SVGElement, SVGStylable { } -native public interface SVGHKernElement : SVGElement { +@native public interface SVGHKernElement : SVGElement { } -native public interface SVGVKernElement : SVGElement { +@native public interface SVGVKernElement : SVGElement { } -native public interface SVGFontFaceElement : SVGElement { +@native public interface SVGFontFaceElement : SVGElement { } -native public interface SVGFontFaceSrcElement : SVGElement { +@native public interface SVGFontFaceSrcElement : SVGElement { } -native public interface SVGFontFaceUriElement : SVGElement { +@native public interface SVGFontFaceUriElement : SVGElement { } -native public interface SVGFontFaceFormatElement : SVGElement { +@native public interface SVGFontFaceFormatElement : SVGElement { } -native public interface SVGFontFaceNameElement : SVGElement { +@native public interface SVGFontFaceNameElement : SVGElement { } -native public interface SVGMetadataElement : SVGElement { +@native public interface SVGMetadataElement : SVGElement { } -native public interface SVGForeignObjectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGForeignObjectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { val x: SVGAnimatedLength get() = noImpl val y: SVGAnimatedLength diff --git a/js/js.libraries/src/generated/org.w3c.dom.url.kt b/js/js.libraries/src/generated/org.w3c.dom.url.kt index 65aa0c6925f..20c28de9f0d 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.url.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.url.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class URL(url: String, base: String = noImpl) { +@native public open class URL(url: String, base: String = noImpl) { var href: String get() = noImpl set(value) = noImpl @@ -66,7 +66,7 @@ native public open class URL(url: String, base: String = noImpl) { } } -native public open class URLSearchParams(init: dynamic = "") { +@native public open class URLSearchParams(init: dynamic = "") { fun append(name: String, value: String): Unit = noImpl fun delete(name: String): Unit = noImpl fun get(name: String): String? = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.fetch.kt b/js/js.libraries/src/generated/org.w3c.fetch.kt index 4b94ce0e2f6..e766cb63538 100644 --- a/js/js.libraries/src/generated/org.w3c.fetch.kt +++ b/js/js.libraries/src/generated/org.w3c.fetch.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class Headers(init: dynamic = noImpl) { +@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 @@ -29,7 +29,7 @@ native public open class Headers(init: dynamic = noImpl) { fun set(name: String, value: String): Unit = noImpl } -native public open class Request(input: dynamic, init: RequestInit = noImpl) { +@native public open class Request(input: dynamic, init: RequestInit = noImpl) { open val method: String get() = noImpl open val url: String @@ -58,7 +58,7 @@ native public open class Request(input: dynamic, init: RequestInit = noImpl) { fun text(): dynamic = noImpl } -native public interface RequestInit { +@native public interface RequestInit { var method: String var headers: dynamic var body: dynamic @@ -68,7 +68,7 @@ native public interface RequestInit { var redirect: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, mode: String, credentials: String, cache: String, redirect: String): RequestInit { val o = js("({})") @@ -83,7 +83,7 @@ public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, m return o } -native public open class Response(body: dynamic = noImpl, init: ResponseInit = noImpl) { +@native public open class Response(body: dynamic = noImpl, init: ResponseInit = noImpl) { open val type: String get() = noImpl open val url: String @@ -111,13 +111,13 @@ native public open class Response(body: dynamic = noImpl, init: ResponseInit = n } } -native public interface ResponseInit { +@native public interface ResponseInit { var status: Short var statusText: String var headers: dynamic } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ResponseInit(status: Short = 200, statusText: String = "OK", headers: dynamic): ResponseInit { val o = js("({})") diff --git a/js/js.libraries/src/generated/org.w3c.files.kt b/js/js.libraries/src/generated/org.w3c.files.kt index 628afbf09c8..e201f3a779e 100644 --- a/js/js.libraries/src/generated/org.w3c.files.kt +++ b/js/js.libraries/src/generated/org.w3c.files.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public open class Blob() : ImageBitmapSource { +@native public open class Blob() : ImageBitmapSource { constructor(blobParts: Array, options: BlobPropertyBag = noImpl) : this() open val size: Int get() = noImpl @@ -32,11 +32,11 @@ native public open class Blob() : ImageBitmapSource { fun close(): Unit = noImpl } -native public interface BlobPropertyBag { +@native public interface BlobPropertyBag { var type: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag { val o = js("({})") @@ -45,19 +45,19 @@ public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag { return o } -native public open class File(fileBits: Array, fileName: String, options: FilePropertyBag = noImpl) : Blob() { +@native public open class File(fileBits: Array, fileName: String, options: FilePropertyBag = noImpl) : Blob() { open val name: String get() = noImpl open val lastModified: Int get() = noImpl } -native public interface FilePropertyBag { +@native public interface FilePropertyBag { var type: String var lastModified: Int } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePropertyBag { val o = js("({})") @@ -67,14 +67,14 @@ public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePro return o } -native public interface FileList { +@native public interface FileList { val length: Int get() = noImpl fun item(index: Int): File? = noImpl - nativeGetter fun get(index: Int): File? = noImpl + @nativeGetter 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 @@ -111,7 +111,7 @@ native public open class FileReader : EventTarget { } } -native public open class FileReaderSync { +@native public open class FileReaderSync { fun readAsArrayBuffer(blob: Blob): ArrayBuffer = noImpl fun readAsText(blob: Blob, label: String = noImpl): String = noImpl fun readAsDataURL(blob: Blob): String = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.notifications.kt b/js/js.libraries/src/generated/org.w3c.notifications.kt index b7af87fb1da..1a3f7b11574 100644 --- a/js/js.libraries/src/generated/org.w3c.notifications.kt +++ b/js/js.libraries/src/generated/org.w3c.notifications.kt @@ -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 @@ -61,7 +61,7 @@ native public open class Notification(title: String, options: NotificationOption } } -native public interface NotificationOptions { +@native public interface NotificationOptions { var dir: String var lang: String var body: String @@ -76,7 +76,7 @@ native public interface NotificationOptions { var data: Any? } -suppress("NOTHING_TO_INLINE") +@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 { val o = js("({})") @@ -96,11 +96,11 @@ public inline fun NotificationOptions(dir: String = "auto", lang: String = "", b return o } -native public interface GetNotificationOptions { +@native public interface GetNotificationOptions { var tag: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptions { val o = js("({})") @@ -109,16 +109,16 @@ 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 = noImpl) : ExtendableEvent(type, eventInitDict) { open val notification: Notification get() = noImpl } -native public interface NotificationEventInit : ExtendableEventInit { +@native public interface NotificationEventInit : ExtendableEventInit { var notification: Notification } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun NotificationEventInit(notification: Notification, bubbles: Boolean = false, cancelable: Boolean = false): NotificationEventInit { val o = js("({})") diff --git a/js/js.libraries/src/generated/org.w3c.performance.kt b/js/js.libraries/src/generated/org.w3c.performance.kt index c9f82d67bb7..f9028f0b699 100644 --- a/js/js.libraries/src/generated/org.w3c.performance.kt +++ b/js/js.libraries/src/generated/org.w3c.performance.kt @@ -20,7 +20,7 @@ import org.w3c.notifications.* import org.w3c.workers.* import org.w3c.xhr.* -native public interface Performance { +@native public interface Performance { val timing: PerformanceTiming get() = noImpl val navigation: PerformanceNavigation @@ -28,7 +28,7 @@ native public interface Performance { fun now(): Double = noImpl } -native public interface PerformanceTiming { +@native public interface PerformanceTiming { val navigationStart: Int get() = noImpl val unloadEventStart: Int @@ -73,7 +73,7 @@ native public interface PerformanceTiming { get() = noImpl } -native public interface PerformanceNavigation { +@native public interface PerformanceNavigation { val type: Short get() = noImpl val redirectCount: Short diff --git a/js/js.libraries/src/generated/org.w3c.workers.kt b/js/js.libraries/src/generated/org.w3c.workers.kt index 5afde95cd96..1c972d65362 100644 --- a/js/js.libraries/src/generated/org.w3c.workers.kt +++ b/js/js.libraries/src/generated/org.w3c.workers.kt @@ -20,7 +20,7 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.xhr.* -native public interface ServiceWorkerRegistration : EventTarget { +@native public interface ServiceWorkerRegistration : EventTarget { val installing: ServiceWorker? get() = noImpl val waiting: ServiceWorker? @@ -41,7 +41,7 @@ native public interface ServiceWorkerRegistration : EventTarget { fun getNotifications(filter: GetNotificationOptions = noImpl): dynamic = noImpl } -native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { +@native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { val clients: Clients get() = noImpl val registration: ServiceWorkerRegistration @@ -67,7 +67,7 @@ native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { fun skipWaiting(): dynamic = noImpl } -native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { +@native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { val scriptURL: String get() = noImpl val state: String @@ -83,7 +83,7 @@ native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWo fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public interface ServiceWorkerContainer : EventTarget { +@native public interface ServiceWorkerContainer : EventTarget { val controller: ServiceWorker? get() = noImpl val ready: dynamic @@ -102,11 +102,11 @@ native public interface ServiceWorkerContainer : EventTarget { fun getRegistrations(): dynamic = noImpl } -native public interface RegistrationOptions { +@native public interface RegistrationOptions { var scope: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun RegistrationOptions(scope: String): RegistrationOptions { val o = js("({})") @@ -115,7 +115,7 @@ public inline fun RegistrationOptions(scope: String): RegistrationOptions { return o } -native public open class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = noImpl) : Event(type, eventInitDict) { open val data: Any? get() = noImpl open val origin: String @@ -129,7 +129,7 @@ native public open class ServiceWorkerMessageEvent(type: String, eventInitDict: fun initServiceWorkerMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrServiceWorker, portsArg: Array?): Unit = noImpl } -native public interface ServiceWorkerMessageEventInit : EventInit { +@native public interface ServiceWorkerMessageEventInit : EventInit { var data: Any? var origin: String var lastEventId: String @@ -137,7 +137,7 @@ native public interface ServiceWorkerMessageEventInit : EventInit { var ports: Array } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrServiceWorker?, ports: Array, bubbles: Boolean = false, cancelable: Boolean = false): ServiceWorkerMessageEventInit { val o = js("({})") @@ -152,7 +152,7 @@ public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, last return o } -native public interface Client : UnionClientOrMessagePortOrServiceWorker { +@native public interface Client : UnionClientOrMessagePortOrServiceWorker { val url: String get() = noImpl val frameType: String @@ -162,7 +162,7 @@ native public interface Client : UnionClientOrMessagePortOrServiceWorker { fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public interface WindowClient : Client { +@native public interface WindowClient : Client { val visibilityState: dynamic get() = noImpl val focused: Boolean @@ -170,18 +170,18 @@ native public interface WindowClient : Client { fun focus(): dynamic = noImpl } -native public interface Clients { +@native public interface Clients { fun matchAll(options: ClientQueryOptions = noImpl): dynamic = noImpl fun openWindow(url: String): dynamic = noImpl fun claim(): dynamic = noImpl } -native public interface ClientQueryOptions { +@native public interface ClientQueryOptions { var includeUncontrolled: Boolean var type: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: String = "window"): ClientQueryOptions { val o = js("({})") @@ -191,14 +191,14 @@ public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: return o } -native public open class ExtendableEvent(type: String, eventInitDict: ExtendableEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class ExtendableEvent(type: String, eventInitDict: ExtendableEventInit = noImpl) : Event(type, eventInitDict) { fun waitUntil(f: dynamic): Unit = noImpl } -native public interface ExtendableEventInit : EventInit { +@native public interface ExtendableEventInit : EventInit { } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Boolean = false): ExtendableEventInit { val o = js("({})") @@ -208,7 +208,7 @@ public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Bool return o } -native public open class FetchEvent(type: String, eventInitDict: FetchEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { +@native public open class FetchEvent(type: String, eventInitDict: FetchEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { open val request: Request get() = noImpl open val client: Client @@ -218,13 +218,13 @@ native public open class FetchEvent(type: String, eventInitDict: FetchEventInit fun respondWith(r: dynamic): Unit = noImpl } -native public interface FetchEventInit : ExtendableEventInit { +@native public interface FetchEventInit : ExtendableEventInit { var request: Request var client: Client var isReload: Boolean } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun FetchEventInit(request: Request, client: Client, isReload: Boolean = false, bubbles: Boolean = false, cancelable: Boolean = false): FetchEventInit { val o = js("({})") @@ -237,7 +237,7 @@ public inline fun FetchEventInit(request: Request, client: Client, isReload: Boo return o } -native public open class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { +@native public open class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { open val data: Any? get() = noImpl open val origin: String @@ -251,7 +251,7 @@ native public open class ExtendableMessageEvent(type: String, eventInitDict: Ext fun initExtendableMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionClientOrMessagePortOrServiceWorker, portsArg: Array?): Unit = noImpl } -native public interface ExtendableMessageEventInit : ExtendableEventInit { +@native public interface ExtendableMessageEventInit : ExtendableEventInit { var data: Any? var origin: String var lastEventId: String @@ -259,7 +259,7 @@ native public interface ExtendableMessageEventInit : ExtendableEventInit { var ports: Array } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array, bubbles: Boolean = false, cancelable: Boolean = false): ExtendableMessageEventInit { val o = js("({})") @@ -274,7 +274,7 @@ public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEve return o } -native public interface Cache { +@native public interface 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 @@ -284,14 +284,14 @@ native public interface Cache { fun keys(request: dynamic = noImpl, options: CacheQueryOptions = noImpl): dynamic = noImpl } -native public interface CacheQueryOptions { +@native public interface CacheQueryOptions { var ignoreSearch: Boolean var ignoreMethod: Boolean var ignoreVary: Boolean var cacheName: String } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: Boolean = false, ignoreVary: Boolean = false, cacheName: String): CacheQueryOptions { val o = js("({})") @@ -303,14 +303,14 @@ public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: return o } -native public interface CacheBatchOperation { +@native public interface CacheBatchOperation { var type: String var request: Request var response: Response var options: CacheQueryOptions } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun CacheBatchOperation(type: String, request: Request, response: Response, options: CacheQueryOptions): CacheBatchOperation { val o = js("({})") @@ -322,7 +322,7 @@ public inline fun CacheBatchOperation(type: String, request: Request, response: return o } -native public interface CacheStorage { +@native public interface CacheStorage { fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl fun has(cacheName: String): dynamic = noImpl fun open(cacheName: String): dynamic = noImpl @@ -330,9 +330,9 @@ native public interface CacheStorage { fun keys(): dynamic = noImpl } -native public open class FunctionalEvent : ExtendableEvent(noImpl, noImpl) { +@native public open class FunctionalEvent : ExtendableEvent(noImpl, noImpl) { } -native public marker interface UnionClientOrMessagePortOrServiceWorker { +@native public @marker interface UnionClientOrMessagePortOrServiceWorker { } diff --git a/js/js.libraries/src/generated/org.w3c.xhr.kt b/js/js.libraries/src/generated/org.w3c.xhr.kt index c67d0fb0f44..83cd6a04bb5 100644 --- a/js/js.libraries/src/generated/org.w3c.xhr.kt +++ b/js/js.libraries/src/generated/org.w3c.xhr.kt @@ -20,7 +20,7 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.workers.* -native public interface XMLHttpRequestEventTarget : EventTarget { +@native public interface XMLHttpRequestEventTarget : EventTarget { var onloadstart: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -44,10 +44,10 @@ native public interface XMLHttpRequestEventTarget : EventTarget { set(value) = noImpl } -native public interface XMLHttpRequestUpload : XMLHttpRequestEventTarget { +@native public interface XMLHttpRequestUpload : XMLHttpRequestEventTarget { } -native public open class XMLHttpRequest : XMLHttpRequestEventTarget { +@native public open class XMLHttpRequest : XMLHttpRequestEventTarget { var onreadystatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -94,7 +94,7 @@ native public open class XMLHttpRequest : XMLHttpRequestEventTarget { } } -native public open class FormData(form: HTMLFormElement = noImpl) { +@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 @@ -103,7 +103,7 @@ native public open class FormData(form: HTMLFormElement = noImpl) { fun set(name: String, value: dynamic): Unit = noImpl } -native public open class ProgressEvent(type: String, eventInitDict: ProgressEventInit = noImpl) : Event(type, eventInitDict) { +@native public open class ProgressEvent(type: String, eventInitDict: ProgressEventInit = noImpl) : Event(type, eventInitDict) { open val lengthComputable: Boolean get() = noImpl open val loaded: Int @@ -112,13 +112,13 @@ native public open class ProgressEvent(type: String, eventInitDict: ProgressEven get() = noImpl } -native public interface ProgressEventInit : EventInit { +@native public interface ProgressEventInit : EventInit { var lengthComputable: Boolean var loaded: Int var total: Int } -suppress("NOTHING_TO_INLINE") +@Suppress("NOTHING_TO_INLINE") public inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: Int = 0, total: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): ProgressEventInit { val o = js("({})") diff --git a/js/js.libraries/src/html5/canvas.kt b/js/js.libraries/src/html5/canvas.kt index f07019ae19c..472affd8cab 100644 --- a/js/js.libraries/src/html5/canvas.kt +++ b/js/js.libraries/src/html5/canvas.kt @@ -3,8 +3,8 @@ package kotlin.js.dom.html5 import kotlin.js.dom.html.HTMLElement import org.w3c.dom.Element -deprecated("Use declarations from org.w3c.dom instead") -public native trait HTMLCanvasElement : HTMLElement { +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait HTMLCanvasElement : HTMLElement { public var width: Double public var height: Double public fun getContext(contextId: String, vararg attributes: Any): CanvasContext? @@ -13,8 +13,8 @@ public native trait HTMLCanvasElement : HTMLElement { public fun toDataURL(string: String): String } -deprecated("Use declarations from org.w3c.dom instead. See CanvasRenderingContext2D") -public native trait CanvasContext { +@Deprecated("Use declarations from org.w3c.dom instead. See CanvasRenderingContext2D") +public @native trait CanvasContext { public var canvas: HTMLCanvasElement public fun save(): Unit public fun restore(): Unit @@ -78,24 +78,24 @@ public native trait CanvasContext { public fun putImageData(image_data: ImageData, dx: Number, dy: Number, dirtyX: Number, dirtyY: Number, dirtyWidth: Number): Unit } -deprecated("Use declarations from org.w3c.dom instead") -public native trait CanvasGradient { +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait CanvasGradient { public fun addColorStop(offset: Number, color: String): Unit } -deprecated("Use declarations from org.w3c.dom instead") -public native trait ImageData { +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait ImageData { public var data: CanvasPixelArray public var width: Double public var height: Double } -public native trait CanvasPixelArray { +public @native trait CanvasPixelArray { public var length: Double } -deprecated("Use declarations from org.w3c.dom instead") -public native trait TextMetrics { +@Deprecated("Use declarations from org.w3c.dom instead") +public @native trait TextMetrics { public var width: Double } diff --git a/js/js.libraries/src/html5/files.kt b/js/js.libraries/src/html5/files.kt index 6de548323f0..473642cf0c1 100644 --- a/js/js.libraries/src/html5/files.kt +++ b/js/js.libraries/src/html5/files.kt @@ -1,35 +1,35 @@ package html5.files -native -deprecated("Use org.w3c.dom") +@native +@Deprecated("Use org.w3c.dom") public class FileReader() { public var onloadend : ((FileReaderEvent)->Unit)? = noImpl // public fun readAsDataURL(blob : Blob): Unit = noImpl public val result : File = noImpl } -native -deprecated("Use org.w3c.dom") +@native +@Deprecated("Use org.w3c.dom") public class FileReaderEvent() { public val target : FileReader = noImpl } -native -deprecated("Use org.w3c.dom") +@native +@Deprecated("Use org.w3c.dom") public class FileList() { public fun item(index : Int) : File? = noImpl public val length : Int = noImpl } -native -deprecated("Use org.w3c.dom") +@native +@Deprecated("Use org.w3c.dom") public class File() : Blob() { public val name : String = noImpl // readonly attribute Date lastModifiedDate; } -native -deprecated("Use org.w3c.dom") +@native +@Deprecated("Use org.w3c.dom") public open class Blob(blobParts: Array? = undefined, options: BlobPropertyBag? = undefined) { public val size: Int = noImpl public val type: String = noImpl @@ -39,8 +39,8 @@ public open class Blob(blobParts: Array? = undefined, options: BlobProperty // } -native -deprecated("Use org.w3c.dom") +@native +@Deprecated("Use org.w3c.dom") public trait BlobPropertyBag { public val type: String } \ No newline at end of file diff --git a/js/js.libraries/src/jquery/common.kt b/js/js.libraries/src/jquery/common.kt index 8bce5e1f14e..ff27b58c9d4 100644 --- a/js/js.libraries/src/jquery/common.kt +++ b/js/js.libraries/src/jquery/common.kt @@ -2,7 +2,7 @@ package jquery import org.w3c.dom.Element -native +@native public class JQuery() { public fun addClass(className: String): JQuery = noImpl; public fun addClass(f: Element.(Int, String) -> String): JQuery = noImpl; @@ -43,7 +43,7 @@ public class JQuery() { public fun `val`(): String? = noImpl } -native +@native open public class MouseEvent() { public val pageX: Double = 0.0; public val pageY: Double = 0.0; @@ -52,20 +52,20 @@ open public class MouseEvent() { public fun isDefaultPrevented(): Boolean = true; } -native +@native public class MouseClickEvent() : MouseEvent() { public val which: Int = 0; } -native("$") +@native("$") public fun jq(selector: String): JQuery = JQuery(); -native("$") +@native("$") public fun jq(selector: String, context: Element): JQuery = JQuery(); -native("$") +@native("$") public fun jq(callback: () -> Unit): JQuery = JQuery(); -native("$") +@native("$") public fun jq(obj: JQuery): JQuery = JQuery(); -native("$") +@native("$") public fun jq(el: Element): JQuery = JQuery(); -native("$") +@native("$") public fun jq(): JQuery = JQuery(); diff --git a/js/js.libraries/src/jquery/ui.kt b/js/js.libraries/src/jquery/ui.kt index 48ffacdebb1..d2f97629180 100644 --- a/js/js.libraries/src/jquery/ui.kt +++ b/js/js.libraries/src/jquery/ui.kt @@ -4,23 +4,23 @@ package jquery.ui //jquery UI import jquery.JQuery -native +@native public fun JQuery.buttonset() : JQuery = noImpl; -native +@native public fun JQuery.dialog() : JQuery = noImpl; -native +@native public fun JQuery.dialog(params : Json) : JQuery = noImpl -native +@native public fun JQuery.dialog(mode : String, param : String) : Any? = noImpl -native +@native public fun JQuery.dialog(mode : String) : JQuery = noImpl -native +@native public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = noImpl -native +@native public fun JQuery.button() : JQuery = noImpl; -native +@native public fun JQuery.accordion() : JQuery = noImpl -native +@native public fun JQuery.draggable(params : Json) : JQuery = noImpl -native +@native public fun JQuery.selectable() : JQuery = noImpl diff --git a/js/js.libraries/src/junit/core.kt b/js/js.libraries/src/junit/core.kt index de6e00ed2ef..d9789aed602 100644 --- a/js/js.libraries/src/junit/core.kt +++ b/js/js.libraries/src/junit/core.kt @@ -1,4 +1,4 @@ package org.junit -native +@native public annotation class Test(val name: String = "") diff --git a/js/js.libraries/src/qunit/core.kt b/js/js.libraries/src/qunit/core.kt index 94c1b88eead..366bed99231 100644 --- a/js/js.libraries/src/qunit/core.kt +++ b/js/js.libraries/src/qunit/core.kt @@ -4,6 +4,6 @@ package QUnit * The [QUnit](http://qunitjs.com/) API */ -native +@native public fun ok(actual: Boolean, message: String?): Unit = noImpl; diff --git a/js/js.libraries/src/stdlib/browser.kt b/js/js.libraries/src/stdlib/browser.kt index 7e5e86c7d04..63dfecbd233 100644 --- a/js/js.libraries/src/stdlib/browser.kt +++ b/js/js.libraries/src/stdlib/browser.kt @@ -2,15 +2,15 @@ package kotlin.browser import org.w3c.dom.* -native +@native public val window: Window = noImpl -native +@native public val document: Document = noImpl -native +@native public val localStorage: Storage = noImpl -native +@native public val sessionStorage: Storage = noImpl diff --git a/js/js.libraries/src/stdlib/domCode.kt b/js/js.libraries/src/stdlib/domCode.kt index 3ea51026052..e096b6bab62 100644 --- a/js/js.libraries/src/stdlib/domCode.kt +++ b/js/js.libraries/src/stdlib/domCode.kt @@ -3,16 +3,16 @@ package kotlin.dom import org.w3c.dom.Document import org.w3c.dom.Node -deprecated("use declarations from org.w3c.dom instead: create document directly via constructor Document() or use document.implementation.createDocument") +@Deprecated("use declarations from org.w3c.dom instead: create document directly via constructor Document() or use document.implementation.createDocument") public fun createDocument(): Document = Document() -deprecated("use member property outerHTML of Element class instead") -native public val Node.outerHTML: String get() = noImpl +@Deprecated("use member property outerHTML of Element class instead") +@native public val Node.outerHTML: String get() = noImpl /** Converts the node to an XML String */ -deprecated("use outerHTML directly") +@Deprecated("use outerHTML directly") public fun Node.toXmlString(): String = this.outerHTML /** Converts the node to an XML String */ -deprecated("use outerHTML directly") +@Deprecated("use outerHTML directly") public fun Node.toXmlString(xmlDeclaration: Boolean): String = this.outerHTML diff --git a/js/js.libraries/test/core/JsonTest.kt b/js/js.libraries/test/core/JsonTest.kt index 2af4ddf8baf..f15c66508b2 100644 --- a/js/js.libraries/test/core/JsonTest.kt +++ b/js/js.libraries/test/core/JsonTest.kt @@ -5,7 +5,7 @@ import org.junit.Test as test class JsonTest { - test fun createJsonFromPairs() { + @test fun createJsonFromPairs() { var obj = json(Pair("firstName", "John"), Pair("lastName", "Doe"), Pair("age", 30)) assertEquals("John", obj["firstName"], "firstName") assertEquals("Doe", obj["lastName"], "lastName") diff --git a/js/js.libraries/test/core/RegExpTest.kt b/js/js.libraries/test/core/RegExpTest.kt index 851b63e0e38..3b1031ceb0c 100644 --- a/js/js.libraries/test/core/RegExpTest.kt +++ b/js/js.libraries/test/core/RegExpTest.kt @@ -23,13 +23,13 @@ import org.junit.Test as test class RegExpTest { - test fun regExpToString() { + @test fun regExpToString() { val pattern = "q(\\d+)d" val re = RegExp(pattern, "i") assertEquals("/$pattern/i", re.toString()) } - test fun regExpProperties() { + @test fun regExpProperties() { val re1 = RegExp("[a-z]", "img") assertTrue(re1.global) assertTrue(re1.ignoreCase) @@ -41,7 +41,7 @@ class RegExpTest { } - test fun regExpTest() { + @test fun regExpTest() { val pattern = "q(\\d+)d" val re = RegExp(pattern, "i") @@ -52,7 +52,7 @@ class RegExpTest { } - test fun regExpExec() { + @test fun regExpExec() { val string = "R2D2 beats A5D5 " var re = RegExp("""(\w\d)(\w\d)""", "g") val m1 = re.exec(string)!! diff --git a/libraries/tools/idl2k/src/main/kotlin/render.kt b/libraries/tools/idl2k/src/main/kotlin/render.kt index 72f5fd462bb..d8b00ea515b 100644 --- a/libraries/tools/idl2k/src/main/kotlin/render.kt +++ b/libraries/tools/idl2k/src/main/kotlin/render.kt @@ -71,8 +71,8 @@ private fun Appendable.renderFunctionDeclaration(f: GenerateFunction, override: indent(commented, level) when (f.nativeGetterOrSetter) { - NativeGetterOrSetter.GETTER -> append("nativeGetter ") - NativeGetterOrSetter.SETTER -> append("nativeSetter ") + NativeGetterOrSetter.GETTER -> append("@nativeGetter ") + NativeGetterOrSetter.SETTER -> append("@nativeSetter ") NativeGetterOrSetter.NONE -> {} } @@ -81,7 +81,7 @@ private fun Appendable.renderFunctionDeclaration(f: GenerateFunction, override: } if (f.name in keywords) { - append("native(\"${f.name}\") ") + append("@native(\"${f.name}\") ") } append("fun ${f.name.replaceKeywords()}") renderArgumentsDeclaration(f.arguments, override) @@ -97,9 +97,9 @@ private fun GenerateAttribute.isRequiredFunctionArgument(owner: String, function private fun GenerateFunction.fixRequiredArguments(parent: String) = copy(arguments = arguments.map { arg -> arg.copy(initializer = if (arg.isRequiredFunctionArgument(parent, name)) null else arg.initializer) }) fun Appendable.render(allTypes: Map, typeNamesToUnions: Map>, iface: GenerateTraitOrClass, markerAnnotation: Boolean = false) { - append("native public ") + append("@native public ") if (markerAnnotation) { - append("marker ") + append("@marker ") } when (iface.kind) { GenerateDefinitionKind.CLASS -> append("open class ") @@ -192,7 +192,7 @@ fun Appendable.render(allTypes: Map, typeNamesToUn fun Appendable.renderBuilderFunction(dictionary: GenerateTraitOrClass, allSuperTypes: List, allTypes: Set) { val fields = (dictionary.memberAttributes + allSuperTypes.flatMap { it.memberAttributes }).distinctBy { it.signature }.map { it.copy(kind = AttributeKind.ARGUMENT) }.dynamicIfUnknownType(allTypes) - appendln("suppress(\"NOTHING_TO_INLINE\")") + appendln("@Suppress(\"NOTHING_TO_INLINE\")") append("public inline fun ${dictionary.name}") renderArgumentsDeclaration(fields) appendln(": ${dictionary.name} {") diff --git a/libraries/tools/idl2k/src/main/kotlin/types.kt b/libraries/tools/idl2k/src/main/kotlin/types.kt index 9043db5dd69..70a722aafbf 100644 --- a/libraries/tools/idl2k/src/main/kotlin/types.kt +++ b/libraries/tools/idl2k/src/main/kotlin/types.kt @@ -52,7 +52,7 @@ data class ArrayType(val memberType: Type, override val nullable: Boolean) : Typ override fun render(): String = "Array<${memberType.render()}>".withSuffix() } -suppress("UNCHECKED_CAST") +@Suppress("UNCHECKED_CAST") private fun T.copyWithNullability(nullable: Boolean): T = when (this) { is UnitType -> UnitType is DynamicType -> this