Module Browser.Runtime_browser
include Runtime_browser_common
class type onInstalledEvent = object ... end
class type runtime = object ... end
val runtime : runtime Js_min.t
val last_error : unit -> Js_min.error Js_min.t
val id : unit -> Js_min.js_string Js_min.t
val getManifest : unit -> 'a Js_min.t
val getURL : string -> string
val reload : unit -> unit
val connect : ?id:Js_min.js_string Js_min.t -> ?info:'a Js_min.t -> unit -> Runtime_utils.port Js_min.t
val onStartup : (unit -> unit) -> unit
val onInstalled : (onInstalledEvent Js_min.t -> unit) -> unit
val onSuspend : (unit -> unit) -> unit
val onSuspendCanceled : (unit -> unit) -> unit
val onUpdateAvailabale : ('a Js_min.t -> unit) -> unit
val onConnect : (Runtime_utils.port Js_min.t -> unit) -> unit
val onConnectExternal : (Runtime_utils.port Js_min.t -> unit) -> unit
val onMessage : ('a Js_min.t -> Js_min.js_string Js_min.t -> ('a Js_min.t -> bool Js_min.t) Js_min.callback -> unit) -> unit
val onMessageExternal : ('a Js_min.t -> Js_min.js_string Js_min.t -> ('a Js_min.t -> bool Js_min.t) Js_min.callback -> unit) -> unit
val onRestartRequired : (Js_min.js_string Js_min.t -> unit) -> unit
val getBackgroundPage : (Js_min.window Js_min.t -> unit) -> unit
val openOptionsPage : ?callback:(unit -> unit) -> unit -> unit
val setUninstallURL : ?callback:(unit -> unit) -> Js_min.js_string Js_min.t -> unit
val requestUpdateCheck : (Runtime_utils.requestCheckResponse Js_min.t Js_min.prop -> unit) -> unit
val sendMessage : ?id:Js_min.js_string Js_min.t -> ?options:Runtime_utils.connectInfo Js_min.t -> ?callback:('a Js_min.t -> unit) -> 'b Js_min.t -> unit
val sendNativeMessage : ?callback:('a Js_min.t -> unit) -> string -> 'b Js_min.t -> unit
val getPlatformInfo : (Runtime_utils.platform_info -> unit) -> unit
val getPackageDirectoryEntry : ('a -> unit) -> unit