JS IDL2K refactoring according to review discussion
This commit is contained in:
committed by
Sergey Mashkov
parent
4ee780ef07
commit
6e09100877
@@ -30,5 +30,7 @@ public annotation class library(public val name: String = "")
|
||||
native
|
||||
public annotation class enumerable()
|
||||
|
||||
// TODO make it "internal" or "fake"
|
||||
native
|
||||
deprecated("Do not use this annotation: it is for internal use only")
|
||||
public annotation class marker
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
package org.w3c.dom.views
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
native public trait AbstractView {
|
||||
}
|
||||
|
||||
|
||||
@@ -3,22 +3,22 @@ package kotlin.js.dom.html
|
||||
import org.w3c.dom.*
|
||||
|
||||
native
|
||||
deprecated("Use kotlin.browser instead")
|
||||
deprecated("Use declarations from kotlin.browser instead")
|
||||
public val window: Window = noImpl
|
||||
|
||||
native
|
||||
deprecated("Use kotlin.browser instead")
|
||||
deprecated("Use declarations from kotlin.browser instead")
|
||||
public var document: HTMLDocument = noImpl
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Do not use it")
|
||||
public native trait Object {
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Image : HTMLImageElement {
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Navigator {
|
||||
public native var userAgent: String
|
||||
public native var product: String
|
||||
@@ -44,7 +44,7 @@ public native trait Screen {
|
||||
public native var colorDepth: Double
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Option {
|
||||
public native var defaultSelected: Boolean
|
||||
public native var selected: Boolean
|
||||
@@ -52,7 +52,7 @@ public native trait Option {
|
||||
public native var value: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Location {
|
||||
public native var href: String
|
||||
public native var hash: String
|
||||
@@ -67,7 +67,7 @@ public native trait Location {
|
||||
public native fun replace(url: String): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Event {
|
||||
public native var data: Array<Any>
|
||||
public native var height: Double
|
||||
@@ -88,20 +88,20 @@ public native trait Event {
|
||||
public native var button: Boolean
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Selection {
|
||||
|
||||
}
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait CSSRule {
|
||||
public native var selectorText: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Stylesheet {
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait History {
|
||||
public native fun back(): Unit
|
||||
public native fun forward(): Unit
|
||||
@@ -112,7 +112,7 @@ public native trait Console {
|
||||
public native fun log(message: Any): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait Window {
|
||||
public native val document: HTMLDocument
|
||||
public native val event: Event
|
||||
@@ -172,21 +172,21 @@ public native trait Global {
|
||||
public native fun unescape(): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLDocument : Document {
|
||||
public native fun open(): Unit
|
||||
public native fun write(text: String): Unit
|
||||
@@ -194,7 +194,7 @@ public native trait HTMLDocument : Document {
|
||||
public native var onunload: () -> Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLElement : Element {
|
||||
public native var title: String
|
||||
public native var lang: String
|
||||
@@ -228,7 +228,7 @@ public native trait HTMLElement : Element {
|
||||
public native var onresize: () -> Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait CSSStyleDeclaration {
|
||||
public native var cssText: String
|
||||
public native var length: Double
|
||||
@@ -240,17 +240,17 @@ public native trait CSSStyleDeclaration {
|
||||
public native fun setProperty(propertyName: String, value: String, priority: String): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLHtmlElement : HTMLElement {
|
||||
public native var version: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLHeadElement : HTMLElement {
|
||||
public native var profile: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLLinkElement : HTMLElement {
|
||||
public native var disabled: Boolean
|
||||
public native var charset: String
|
||||
@@ -263,12 +263,12 @@ public native trait HTMLLinkElement : HTMLElement {
|
||||
public native var type: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTitleElement : HTMLElement {
|
||||
public native var text: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLMetaElement : HTMLElement {
|
||||
public native var content: String
|
||||
public native var httpEquiv: String
|
||||
@@ -276,26 +276,26 @@ public native trait HTMLMetaElement : HTMLElement {
|
||||
public native var scheme: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLBodyElement : HTMLElement {
|
||||
public native var aLink: String
|
||||
public native var background: String
|
||||
@@ -307,7 +307,7 @@ public native trait HTMLBodyElement : HTMLElement {
|
||||
public native var onunload: () -> Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLFormElement {
|
||||
public native val elements: HTMLCollection
|
||||
public native val length: Double
|
||||
@@ -321,7 +321,7 @@ public native trait HTMLFormElement {
|
||||
public native fun reset(): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLSelectElement : HTMLElement {
|
||||
public native val type: String
|
||||
public native var selectedIndex: Double
|
||||
@@ -340,13 +340,13 @@ public native trait HTMLSelectElement : HTMLElement {
|
||||
public native fun focus(): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLOptionElement : HTMLElement {
|
||||
public native val form: HTMLFormElement
|
||||
public native var defaultSelected: Boolean
|
||||
@@ -358,7 +358,7 @@ public native trait HTMLOptionElement : HTMLElement {
|
||||
public native var value: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLInputElement : HTMLElement {
|
||||
public native var defaultValue: String
|
||||
public native var defaultChecked: Boolean
|
||||
@@ -386,7 +386,7 @@ public native trait HTMLInputElement : HTMLElement {
|
||||
public native var selectionEnd: Double
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTextAreaElement : HTMLElement {
|
||||
public native var defaultValue: String
|
||||
public native val form: HTMLFormElement
|
||||
@@ -404,7 +404,7 @@ public native trait HTMLTextAreaElement : HTMLElement {
|
||||
public native fun select(): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLButtonElement : HTMLElement {
|
||||
public native val form: HTMLFormElement
|
||||
public native var accessKey: String
|
||||
@@ -415,104 +415,104 @@ public native trait HTMLButtonElement : HTMLElement {
|
||||
public native var value: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLFieldSetElement : HTMLElement {
|
||||
public native val form: HTMLFormElement
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLDListElement : HTMLElement {
|
||||
public native var compact: Boolean
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLDirectoryElement : HTMLElement {
|
||||
public native var compact: Boolean
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLMenuElement : HTMLElement {
|
||||
public native var compact: Boolean
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLDivElement : HTMLElement {
|
||||
public native var align: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLParagraphElement : HTMLElement {
|
||||
public native var align: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLHeadingElement : HTMLElement {
|
||||
public native var align: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLQuoteElement : HTMLElement {
|
||||
public native var cite: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLPreElement : HTMLElement {
|
||||
public native var width: Double
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLBRElement : HTMLElement {
|
||||
public native var clear: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLHRElement : HTMLElement {
|
||||
public native var align: String
|
||||
public native var noShade: Boolean
|
||||
@@ -520,13 +520,13 @@ public native trait HTMLHRElement : HTMLElement {
|
||||
public native var width: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLAnchorElement : HTMLElement {
|
||||
public native var accessKey: String
|
||||
public native var charset: String
|
||||
@@ -544,7 +544,7 @@ public native trait HTMLAnchorElement : HTMLElement {
|
||||
public native fun focus(): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLImageElement : HTMLElement {
|
||||
public native var name: String
|
||||
public native var align: String
|
||||
@@ -562,7 +562,7 @@ public native trait HTMLImageElement : HTMLElement {
|
||||
public native var width: Double
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLObjectElement : HTMLElement {
|
||||
public native val form: HTMLFormElement
|
||||
public native var code: String
|
||||
@@ -585,7 +585,7 @@ public native trait HTMLObjectElement : HTMLElement {
|
||||
public native val contentDocument: Document
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLParamElement : HTMLElement {
|
||||
public native var name: String
|
||||
public native var type: String
|
||||
@@ -593,7 +593,7 @@ public native trait HTMLParamElement : HTMLElement {
|
||||
public native var valueType: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLAppletElement : HTMLElement {
|
||||
public native var align: String
|
||||
public native var alt: String
|
||||
@@ -608,13 +608,13 @@ public native trait HTMLAppletElement : HTMLElement {
|
||||
public native var width: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLAreaElement : HTMLElement {
|
||||
public native var accessKey: String
|
||||
public native var alt: String
|
||||
@@ -626,7 +626,7 @@ public native trait HTMLAreaElement : HTMLElement {
|
||||
public native var target: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLScriptElement : HTMLElement {
|
||||
public native var text: String
|
||||
public native var htmlFor: String
|
||||
@@ -637,7 +637,7 @@ public native trait HTMLScriptElement : HTMLElement {
|
||||
public native var type: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTableElement : HTMLElement {
|
||||
public native var caption: HTMLTableCaptionElement
|
||||
public native var tHead: HTMLTableSectionElement
|
||||
@@ -663,12 +663,12 @@ public native trait HTMLTableElement : HTMLElement {
|
||||
public native fun deleteRow(index: Number): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTableCaptionElement : HTMLElement {
|
||||
public native var align: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTableColElement : HTMLElement {
|
||||
public native var align: String
|
||||
public native var ch: String
|
||||
@@ -678,7 +678,7 @@ public native trait HTMLTableColElement : HTMLElement {
|
||||
public native var width: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTableSectionElement : HTMLElement {
|
||||
public native var align: String
|
||||
public native var ch: String
|
||||
@@ -689,7 +689,7 @@ public native trait HTMLTableSectionElement : HTMLElement {
|
||||
public native fun deleteRow(index: Number): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTableRowElement : HTMLElement {
|
||||
public native val rowIndex: Double
|
||||
public native val sectionRowIndex: Double
|
||||
@@ -703,7 +703,7 @@ public native trait HTMLTableRowElement : HTMLElement {
|
||||
public native fun deleteCell(index: Number): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLTableCellElement : HTMLElement {
|
||||
public native val cellIndex: Double
|
||||
public native var abbr: String
|
||||
@@ -722,13 +722,13 @@ public native trait HTMLTableCellElement : HTMLElement {
|
||||
public native var width: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
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 org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLFrameElement : HTMLElement {
|
||||
public native var frameBorder: String
|
||||
public native var longDesc: String
|
||||
@@ -740,7 +740,7 @@ public native trait HTMLFrameElement : HTMLElement {
|
||||
public native var src: String
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLIFrameElement : HTMLElement {
|
||||
public native var align: String
|
||||
public native var frameBorder: String
|
||||
|
||||
@@ -3,7 +3,7 @@ package kotlin.js.dom.html5
|
||||
import kotlin.js.dom.html.HTMLElement
|
||||
import org.w3c.dom.Element
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait HTMLCanvasElement : HTMLElement {
|
||||
public var width: Double
|
||||
public var height: Double
|
||||
@@ -13,7 +13,7 @@ public native trait HTMLCanvasElement : HTMLElement {
|
||||
public fun toDataURL(string: String): String
|
||||
}
|
||||
|
||||
deprecated("USe org.w3c.dom instead. See CanvasRenderingContext2D")
|
||||
deprecated("Use declarations from org.w3c.dom instead. See CanvasRenderingContext2D")
|
||||
public native trait CanvasContext {
|
||||
public var canvas: HTMLCanvasElement
|
||||
public fun save(): Unit
|
||||
@@ -78,12 +78,12 @@ public native trait CanvasContext {
|
||||
public fun putImageData(image_data: ImageData, dx: Number, dy: Number, dirtyX: Number, dirtyY: Number, dirtyWidth: Number): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait CanvasGradient {
|
||||
public fun addColorStop(offset: Number, color: String): Unit
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait ImageData {
|
||||
public var data: CanvasPixelArray
|
||||
public var width: Double
|
||||
@@ -94,7 +94,7 @@ public native trait CanvasPixelArray {
|
||||
public var length: Double
|
||||
}
|
||||
|
||||
deprecated("Use org.w3c.dom instead")
|
||||
deprecated("Use declarations from org.w3c.dom instead")
|
||||
public native trait TextMetrics {
|
||||
public var width: Double
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package html5.files
|
||||
|
||||
native
|
||||
native
|
||||
deprecated("Use org.w3c.dom")
|
||||
public class FileReader() {
|
||||
@@ -9,14 +8,12 @@ public class FileReader() {
|
||||
public val result : File = noImpl
|
||||
}
|
||||
|
||||
native
|
||||
native
|
||||
deprecated("Use org.w3c.dom")
|
||||
public class FileReaderEvent() {
|
||||
public val target : FileReader = noImpl
|
||||
}
|
||||
|
||||
native
|
||||
native
|
||||
deprecated("Use org.w3c.dom")
|
||||
public class FileList() {
|
||||
@@ -24,7 +21,6 @@ public class FileList() {
|
||||
public val length : Int = noImpl
|
||||
}
|
||||
|
||||
native
|
||||
native
|
||||
deprecated("Use org.w3c.dom")
|
||||
public class File() : Blob() {
|
||||
@@ -32,7 +28,6 @@ public class File() : Blob() {
|
||||
// readonly attribute Date lastModifiedDate;
|
||||
}
|
||||
|
||||
native
|
||||
native
|
||||
deprecated("Use org.w3c.dom")
|
||||
public open class Blob(blobParts: Array<Any>? = undefined, options: BlobPropertyBag? = undefined) {
|
||||
@@ -44,7 +39,6 @@ public open class Blob(blobParts: Array<Any>? = undefined, options: BlobProperty
|
||||
//
|
||||
}
|
||||
|
||||
native
|
||||
native
|
||||
deprecated("Use org.w3c.dom")
|
||||
public trait BlobPropertyBag {
|
||||
|
||||
@@ -3,10 +3,10 @@ package kotlin.dom
|
||||
import org.w3c.dom.Document
|
||||
import org.w3c.dom.Node
|
||||
|
||||
deprecated("use 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 org.w3c.dom instead")
|
||||
deprecated("use member property outerHTML of Element class instead")
|
||||
native public val Node.outerHTML: String get() = noImpl
|
||||
|
||||
/** Converts the node to an XML String */
|
||||
|
||||
Reference in New Issue
Block a user