JS stubs: add URL specification

This commit is contained in:
Sergey Mashkov
2015-05-25 14:50:39 +03:00
parent f4977a1108
commit fe26bd22f0
15 changed files with 323 additions and 3 deletions
@@ -12,6 +12,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -12,6 +12,7 @@ import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -12,6 +12,7 @@ import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -12,6 +12,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -1060,6 +1061,42 @@ native public interface HTMLAnchorElement : HTMLElement {
var shape: String
get() = noImpl
set(value) = noImpl
var href: String
get() = noImpl
set(value) = noImpl
var origin: String
get() = noImpl
set(value) = noImpl
var protocol: String
get() = noImpl
set(value) = noImpl
var username: String
get() = noImpl
set(value) = noImpl
var password: String
get() = noImpl
set(value) = noImpl
var host: String
get() = noImpl
set(value) = noImpl
var hostname: String
get() = noImpl
set(value) = noImpl
var port: String
get() = noImpl
set(value) = noImpl
var pathname: String
get() = noImpl
set(value) = noImpl
var search: String
get() = noImpl
set(value) = noImpl
var searchParams: URLSearchParams
get() = noImpl
set(value) = noImpl
var hash: String
get() = noImpl
set(value) = noImpl
}
native public interface HTMLDataElement : HTMLElement {
@@ -1751,6 +1788,42 @@ native public interface HTMLAreaElement : HTMLElement {
var noHref: Boolean
get() = noImpl
set(value) = noImpl
var href: String
get() = noImpl
set(value) = noImpl
var origin: String
get() = noImpl
set(value) = noImpl
var protocol: String
get() = noImpl
set(value) = noImpl
var username: String
get() = noImpl
set(value) = noImpl
var password: String
get() = noImpl
set(value) = noImpl
var host: String
get() = noImpl
set(value) = noImpl
var hostname: String
get() = noImpl
set(value) = noImpl
var port: String
get() = noImpl
set(value) = noImpl
var pathname: String
get() = noImpl
set(value) = noImpl
var search: String
get() = noImpl
set(value) = noImpl
var searchParams: URLSearchParams
get() = noImpl
set(value) = noImpl
var hash: String
get() = noImpl
set(value) = noImpl
}
native public interface HTMLTableElement : HTMLElement {
@@ -3455,6 +3528,42 @@ native public interface Location {
var ancestorOrigins: Array<String>
get() = noImpl
set(value) = noImpl
var href: String
get() = noImpl
set(value) = noImpl
var origin: String
get() = noImpl
set(value) = noImpl
var protocol: String
get() = noImpl
set(value) = noImpl
var username: String
get() = noImpl
set(value) = noImpl
var password: String
get() = noImpl
set(value) = noImpl
var host: String
get() = noImpl
set(value) = noImpl
var hostname: String
get() = noImpl
set(value) = noImpl
var port: String
get() = noImpl
set(value) = noImpl
var pathname: String
get() = noImpl
set(value) = noImpl
var search: String
get() = noImpl
set(value) = noImpl
var searchParams: URLSearchParams
get() = noImpl
set(value) = noImpl
var hash: String
get() = noImpl
set(value) = noImpl
fun assign(url: String): Unit = noImpl
fun replace(url: String): Unit = noImpl
fun reload(): Unit = noImpl
@@ -3969,6 +4078,33 @@ native public interface WorkerNavigator {
}
native public interface WorkerLocation {
var href: String
get() = noImpl
set(value) = noImpl
var origin: String
get() = noImpl
set(value) = noImpl
var protocol: String
get() = noImpl
set(value) = noImpl
var host: String
get() = noImpl
set(value) = noImpl
var hostname: String
get() = noImpl
set(value) = noImpl
var port: String
get() = noImpl
set(value) = noImpl
var pathname: String
get() = noImpl
set(value) = noImpl
var search: String
get() = noImpl
set(value) = noImpl
var hash: String
get() = noImpl
set(value) = noImpl
}
native public interface Storage {
@@ -12,6 +12,7 @@ import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -12,6 +12,7 @@ import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -0,0 +1,70 @@
/*
* Generated file
* DO NOT EDIT
*
* See libraries/tools/idl2k for details
*/
package org.w3c.dom.url
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*
native public open class URL(url: String, base: String = noImpl) {
var href: String
get() = noImpl
set(value) = noImpl
var origin: String
get() = noImpl
set(value) = noImpl
var protocol: String
get() = noImpl
set(value) = noImpl
var username: String
get() = noImpl
set(value) = noImpl
var password: String
get() = noImpl
set(value) = noImpl
var host: String
get() = noImpl
set(value) = noImpl
var hostname: String
get() = noImpl
set(value) = noImpl
var port: String
get() = noImpl
set(value) = noImpl
var pathname: String
get() = noImpl
set(value) = noImpl
var search: String
get() = noImpl
set(value) = noImpl
var searchParams: URLSearchParams
get() = noImpl
set(value) = noImpl
var hash: String
get() = noImpl
set(value) = noImpl
}
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
fun getAll(name: String): Array<String> = noImpl
fun has(name: String): Boolean = noImpl
fun set(name: String, value: String): Unit = noImpl
}
@@ -13,6 +13,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.performance.*
@@ -13,6 +13,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.notifications.*
import org.w3c.performance.*
@@ -105,6 +106,3 @@ native public open class FileReaderSync {
fun readAsDataURL(blob: Blob): String = noImpl
}
native public interface URL {
}
@@ -13,6 +13,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.performance.*
@@ -13,6 +13,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -13,6 +13,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
@@ -13,6 +13,7 @@ import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*