type tA handle to a browser window (or a tab)
type hint = [ ]
val make : hint -> (t * [ hint | `other of json ]) cmdCreate a new window or tab, using hint as a suggestion. Returns a handle to the created window/tab and its actual kind.
val current : t cmdThe current browser window/tab.
val switch_to : t -> unit cmdswitch_to w sets the current window to w.
val close : t list cmdclose ws closes a list of windows.
val all : t list cmdList of all the opened browser windows/tabs.
type rect = {x : int; |
y : int; |
width : int; |
height : int; |
}
val get_rect : rect cmdThe size and position of the current window.
val set_rect : rect -> rect cmdset_rect r attempts to resize the current window to match the rectangle r.
val maximize : rect cmdMaximizes the current window.
val minimize : rect cmdMinimizes the current window.
val fullscreen : rect cmdFullscreen the current window.