browser
module ‘browser’
Source file: prog/gameLibs/quirrel/sqWebBrowser/sqWebBrowser.cpp
Usage:
let { can_use_embeded_browser, browser_go_back, browser_reload_page, browser_go, browser_get_current_url, browser_get_current_title, browser_add_window_method, BROWSER_EVENT_INITIALIZED, BROWSER_EVENT_DOCUMENT_READY, BROWSER_EVENT_FAIL_LOADING_FRAME, BROWSER_EVENT_CANT_DOWNLOAD, BROWSER_EVENT_FINISH_LOADING_FRAME, BROWSER_EVENT_BEGIN_LOADING_FRAME, BROWSER_EVENT_NEED_RESEND_FRAME, BROWSER_EVENT_BROWSER_CRASHED } = require("browser")
or:
from "browser" import *
//'browser' exports:
{
function can_use_embeded_browser(): -> bool
function browser_go_back(): -> null
function browser_reload_page(): -> null
function browser_go(url): string -> null
function browser_get_current_url()
function browser_get_current_title()
function browser_add_window_method(name, params_cnt): string, unsigned -> null
const BROWSER_EVENT_INITIALIZED
const BROWSER_EVENT_DOCUMENT_READY
const BROWSER_EVENT_FAIL_LOADING_FRAME
const BROWSER_EVENT_CANT_DOWNLOAD
const BROWSER_EVENT_FINISH_LOADING_FRAME
const BROWSER_EVENT_BEGIN_LOADING_FRAME
const BROWSER_EVENT_NEED_RESEND_FRAME
const BROWSER_EVENT_BROWSER_CRASHED
}
Opens and control embeded web browser. Requires native cef binary and its integration
- function can_use_embeded_browser()
- Returns
bool
- function browser_go_back()
- Returns
null
- function browser_reload_page()
- Returns
null
- function browser_go(url)
- Arguments
url (
string()
) –
- Returns
null
- function browser_get_current_url()
- function browser_get_current_title()
- function browser_add_window_method(name, params_cnt)
- Arguments
name (
string()
) –params_cnt (
unsigned()
) –
- Returns
null
- const BROWSER_EVENT_INITIALIZED
- const BROWSER_EVENT_DOCUMENT_READY
- const BROWSER_EVENT_FAIL_LOADING_FRAME
- const BROWSER_EVENT_CANT_DOWNLOAD
- const BROWSER_EVENT_FINISH_LOADING_FRAME
- const BROWSER_EVENT_BEGIN_LOADING_FRAME
- const BROWSER_EVENT_NEED_RESEND_FRAME
- const BROWSER_EVENT_BROWSER_CRASHED