JS stdlib: fixed visibility in some declarations.
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
package kotlin.js
|
package kotlin.js
|
||||||
|
|
||||||
// https://developer.mozilla.org/en/DOM/console
|
// https://developer.mozilla.org/en/DOM/console
|
||||||
native trait Console {
|
native public trait Console {
|
||||||
native fun dir(o: Any): Unit = noImpl
|
native public fun dir(o: Any): Unit = noImpl
|
||||||
native fun error(vararg o: Any?): Unit = noImpl
|
native public fun error(vararg o: Any?): Unit = noImpl
|
||||||
native fun info(vararg o: Any?): Unit = noImpl
|
native public fun info(vararg o: Any?): Unit = noImpl
|
||||||
native fun log(vararg o: Any?): Unit = noImpl
|
native public fun log(vararg o: Any?): Unit = noImpl
|
||||||
native fun warn(vararg o: Any?): Unit = noImpl
|
native public fun warn(vararg o: Any?): Unit = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
val console:Console = noImpl
|
public val console: Console = noImpl
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package kotlin.js
|
package kotlin.js
|
||||||
|
|
||||||
native public class Json() {
|
native public class Json() {
|
||||||
fun get(propertyName: String): Any? = js.noImpl
|
public fun get(propertyName: String): Any? = js.noImpl
|
||||||
fun set(propertyName: String, value: Any?): Unit = js.noImpl
|
public fun set(propertyName: String, value: Any?): Unit = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library("jsonFromTuples")
|
library("jsonFromTuples")
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
package html5.files
|
package html5.files
|
||||||
|
|
||||||
native
|
native
|
||||||
class FileReader() {
|
public class FileReader() {
|
||||||
var onloadend : ((FileReaderEvent)->Unit)? = js.noImpl //
|
public var onloadend : ((FileReaderEvent)->Unit)? = js.noImpl //
|
||||||
fun readAsDataURL(blob : Blob) = js.noImpl
|
public fun readAsDataURL(blob : Blob) = js.noImpl
|
||||||
val result : File = js.noImpl
|
public val result : File = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
class FileReaderEvent() {
|
public class FileReaderEvent() {
|
||||||
val target : FileReader = js.noImpl
|
public val target : FileReader = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
class FileList() {
|
public class FileList() {
|
||||||
fun item(index : Int) : File? = js.noImpl
|
public fun item(index : Int) : File? = js.noImpl
|
||||||
val length : Int = js.noImpl
|
public val length : Int = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
class File() : Blob() {
|
public class File() : Blob() {
|
||||||
val name : String = js.noImpl
|
public val name : String = js.noImpl
|
||||||
// readonly attribute Date lastModifiedDate;
|
// readonly attribute Date lastModifiedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
open class Blob() {
|
public open class Blob() {
|
||||||
val size : Int = js.noImpl
|
public val size : Int = js.noImpl
|
||||||
val `type` : String = js.noImpl
|
public val `type` : String = js.noImpl
|
||||||
//Blob slice(optional long long start,
|
//Blob slice(optional long long start,
|
||||||
//optional long long end,
|
//optional long long end,
|
||||||
//optional DOMString contentType);
|
//optional DOMString contentType);
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
package html5.localstorage
|
package html5.localstorage
|
||||||
|
|
||||||
native
|
native
|
||||||
val localStorage : LocalStorageClass = js.noImpl
|
public val localStorage : LocalStorageClass = js.noImpl
|
||||||
|
|
||||||
native
|
native
|
||||||
class LocalStorageClass() {
|
public class LocalStorageClass() {
|
||||||
fun getItem(key : String) : Any? = js.noImpl
|
public fun getItem(key : String) : Any? = js.noImpl
|
||||||
fun setItem(key : String, value : Any?) : Unit = js.noImpl
|
public fun setItem(key : String, value : Any?) : Unit = js.noImpl
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package jquery;
|
package jquery
|
||||||
|
|
||||||
import org.w3c.dom.Element
|
import org.w3c.dom.Element
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ open public class MouseEvent() {
|
|||||||
|
|
||||||
native
|
native
|
||||||
public class MouseClickEvent() : MouseEvent() {
|
public class MouseClickEvent() : MouseEvent() {
|
||||||
val which: Int = 0;
|
public val which: Int = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
native("$")
|
native("$")
|
||||||
|
|||||||
@@ -5,22 +5,22 @@ package jquery.ui
|
|||||||
import jquery.JQuery
|
import jquery.JQuery
|
||||||
|
|
||||||
native
|
native
|
||||||
fun JQuery.buttonset() : JQuery = js.noImpl;
|
public fun JQuery.buttonset() : JQuery = js.noImpl;
|
||||||
native
|
native
|
||||||
fun JQuery.dialog() : JQuery = js.noImpl;
|
public fun JQuery.dialog() : JQuery = js.noImpl;
|
||||||
native
|
native
|
||||||
fun JQuery.dialog(params : Json) : JQuery = js.noImpl
|
public fun JQuery.dialog(params : Json) : JQuery = js.noImpl
|
||||||
native
|
native
|
||||||
fun JQuery.dialog(mode : String, param : String) : Any? = js.noImpl
|
public fun JQuery.dialog(mode : String, param : String) : Any? = js.noImpl
|
||||||
native
|
native
|
||||||
fun JQuery.dialog(mode : String) : JQuery = js.noImpl
|
public fun JQuery.dialog(mode : String) : JQuery = js.noImpl
|
||||||
native
|
native
|
||||||
fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = js.noImpl
|
public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = js.noImpl
|
||||||
native
|
native
|
||||||
fun JQuery.button() : JQuery = js.noImpl;
|
public fun JQuery.button() : JQuery = js.noImpl;
|
||||||
native
|
native
|
||||||
fun JQuery.accordion() : JQuery = js.noImpl
|
public fun JQuery.accordion() : JQuery = js.noImpl
|
||||||
native
|
native
|
||||||
fun JQuery.draggable(params : Json) : JQuery = js.noImpl
|
public fun JQuery.draggable(params : Json) : JQuery = js.noImpl
|
||||||
native
|
native
|
||||||
fun JQuery.selectable() : JQuery = js.noImpl
|
public fun JQuery.selectable() : JQuery = js.noImpl
|
||||||
|
|||||||
Reference in New Issue
Block a user