Browser_extra.CoercionSourceCoercion provides utility functions for common coercions known to be equivalent. Please note that some of these coercions are possibly unsafe if a subclass overrides an ancestor class method with a completely different return type
Coercion functions between js_of_ocaml Dom_html types and Browser types.
Note that some of these conversions could be dangerous if the subclass has a method or attribute that overrides the ancestor class and returns a completely different type
val to_jsoo_console :
Browser_types.console Js_of_ocaml.Js.t ->
Js_of_ocaml.Console.console Js_of_ocaml.Js.tConsole conversions
val of_jsoo_console :
Js_of_ocaml.Console.console Js_of_ocaml.Js.t ->
Browser_types.console Js_of_ocaml.Js.tval to_jsoo_html_element :
Browser_types.html_element Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.tHTML Element conversions
val of_jsoo_html_element :
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
Browser_types.html_element Js_of_ocaml.Js.tval to_jsoo_event :
Browser_types.event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.tEvent conversions
val of_jsoo_event :
Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t ->
Browser_types.event Js_of_ocaml.Js.tval to_jsoo_file_list :
Browser_types.file_list Js_of_ocaml.Js.t ->
Js_of_ocaml.File.fileList Js_of_ocaml.Js.tFile List conversions
val of_jsoo_file_list :
Js_of_ocaml.File.fileList Js_of_ocaml.Js.t ->
Browser_types.file_list Js_of_ocaml.Js.tval to_jsoo_focus_event :
Browser_types.focus_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.focusEvent Js_of_ocaml.Js.tFocus Event conversions
val of_jsoo_focus_event :
Js_of_ocaml.Dom_html.focusEvent Js_of_ocaml.Js.t ->
Browser_types.focus_event Js_of_ocaml.Js.tval to_jsoo_mouse_event :
Browser_types.mouse_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.tMouse Event conversions
val of_jsoo_mouse_event :
Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.t ->
Browser_types.mouse_event Js_of_ocaml.Js.tval to_jsoo_keyboard_event :
Browser_types.keyboard_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.keyboardEvent Js_of_ocaml.Js.tKeyboard Event conversions
val of_jsoo_keyboard_event :
Js_of_ocaml.Dom_html.keyboardEvent Js_of_ocaml.Js.t ->
Browser_types.keyboard_event Js_of_ocaml.Js.tval to_jsoo_wheel_event :
Browser_types.wheel_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.wheelEvent Js_of_ocaml.Js.tWheel Event conversions
val of_jsoo_wheel_event :
Js_of_ocaml.Dom_html.wheelEvent Js_of_ocaml.Js.t ->
Browser_types.wheel_event Js_of_ocaml.Js.tval to_jsoo_mousewheel_event :
Browser_types.wheel_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.mousewheelEvent Js_of_ocaml.Js.tMousewheel Event conversions (maps to wheel_event)
val of_jsoo_mousewheel_event :
Js_of_ocaml.Dom_html.mousewheelEvent Js_of_ocaml.Js.t ->
Browser_types.wheel_event Js_of_ocaml.Js.tval to_jsoo_touch_event :
Browser_types.touch_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.touchEvent Js_of_ocaml.Js.tTouch Event conversions
val of_jsoo_touch_event :
Js_of_ocaml.Dom_html.touchEvent Js_of_ocaml.Js.t ->
Browser_types.touch_event Js_of_ocaml.Js.tval to_jsoo_submit_event :
Browser_types.submit_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.submitEvent Js_of_ocaml.Js.tSubmit Event conversions
val of_jsoo_submit_event :
Js_of_ocaml.Dom_html.submitEvent Js_of_ocaml.Js.t ->
Browser_types.submit_event Js_of_ocaml.Js.tval to_jsoo_drag_event :
Browser_types.drag_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.dragEvent Js_of_ocaml.Js.tDrag Event conversions
val of_jsoo_drag_event :
Js_of_ocaml.Dom_html.dragEvent Js_of_ocaml.Js.t ->
Browser_types.drag_event Js_of_ocaml.Js.tval to_jsoo_clipboard_event :
Browser_types.clipboard_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.clipboardEvent Js_of_ocaml.Js.tClipboard Event conversions
val of_jsoo_clipboard_event :
Js_of_ocaml.Dom_html.clipboardEvent Js_of_ocaml.Js.t ->
Browser_types.clipboard_event Js_of_ocaml.Js.tval to_jsoo_toggle_event :
Browser_types.toggle_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.toggleEvent Js_of_ocaml.Js.tToggle Event conversions
val of_jsoo_toggle_event :
Js_of_ocaml.Dom_html.toggleEvent Js_of_ocaml.Js.t ->
Browser_types.toggle_event Js_of_ocaml.Js.tval to_jsoo_pop_state_event :
Browser_types.pop_state_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.popStateEvent Js_of_ocaml.Js.tPop State Event conversions
val of_jsoo_pop_state_event :
Js_of_ocaml.Dom_html.popStateEvent Js_of_ocaml.Js.t ->
Browser_types.pop_state_event Js_of_ocaml.Js.tval to_jsoo_pointer_event :
Browser_types.pointer_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.pointerEvent Js_of_ocaml.Js.tPointer Event conversions
val of_jsoo_pointer_event :
Js_of_ocaml.Dom_html.pointerEvent Js_of_ocaml.Js.t ->
Browser_types.pointer_event Js_of_ocaml.Js.tval to_jsoo_storage_event :
Browser_types.storage_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.storageEvent Js_of_ocaml.Js.tStorage Event conversions
val of_jsoo_storage_event :
Js_of_ocaml.Dom_html.storageEvent Js_of_ocaml.Js.t ->
Browser_types.storage_event Js_of_ocaml.Js.tval to_jsoo_hash_change_event :
Browser_types.hash_change_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.hashChangeEvent Js_of_ocaml.Js.tHash Change Event conversions
val of_jsoo_hash_change_event :
Js_of_ocaml.Dom_html.hashChangeEvent Js_of_ocaml.Js.t ->
Browser_types.hash_change_event Js_of_ocaml.Js.tval to_jsoo_animation_event :
Browser_types.animation_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.animationEvent Js_of_ocaml.Js.tAnimation Event conversions
val of_jsoo_animation_event :
Js_of_ocaml.Dom_html.animationEvent Js_of_ocaml.Js.t ->
Browser_types.animation_event Js_of_ocaml.Js.tval to_jsoo_transition_event :
Browser_types.transition_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.transitionEvent Js_of_ocaml.Js.tTransition Event conversions
val of_jsoo_transition_event :
Js_of_ocaml.Dom_html.transitionEvent Js_of_ocaml.Js.t ->
Browser_types.transition_event Js_of_ocaml.Js.tval to_jsoo_media_event :
Browser_types.event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.mediaEvent Js_of_ocaml.Js.tMedia Event conversions
val of_jsoo_media_event :
Js_of_ocaml.Dom_html.mediaEvent Js_of_ocaml.Js.t ->
Browser_types.event Js_of_ocaml.Js.tval to_jsoo_message_event :
Browser_types.message_event Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.messageEvent Js_of_ocaml.Js.tMessage Event conversions
val of_jsoo_message_event :
Js_of_ocaml.Dom_html.messageEvent Js_of_ocaml.Js.t ->
Browser_types.message_event Js_of_ocaml.Js.t