|
static void | AddHeader (HHTMLBrowser unBrowserHandle, string pchKey, string pchValue) |
|
static void | AllowStartRequest (HHTMLBrowser unBrowserHandle, bool bAllowed) |
|
static void | CopyToClipboard (HHTMLBrowser unBrowserHandle) |
|
static SteamAPICall_t | CreateBrowser (string pchUserAgent, string pchUserCSS) |
|
static void | ExecuteJavascript (HHTMLBrowser unBrowserHandle, string pchScript) |
|
static void | FileLoadDialogResponse (HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles) |
|
static void | Find (HHTMLBrowser unBrowserHandle, string pchSearchStr, bool bCurrentlyInFind, bool bReverse) |
|
static void | GetLinkAtPosition (HHTMLBrowser unBrowserHandle, int x, int y) |
|
static void | GoBack (HHTMLBrowser unBrowserHandle) |
|
static void | GoForward (HHTMLBrowser unBrowserHandle) |
|
static bool | Init () |
|
static void | JSDialogResponse (HHTMLBrowser unBrowserHandle, bool bResult) |
|
static void | KeyChar (HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers) |
|
static void | KeyDown (HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers) |
|
static void | KeyUp (HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers) |
|
static void | LoadURL (HHTMLBrowser unBrowserHandle, string pchURL, string pchPostData) |
|
static void | MouseDoubleClick (HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton) |
|
static void | MouseDown (HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton) |
|
static void | MouseMove (HHTMLBrowser unBrowserHandle, int x, int y) |
|
static void | MouseUp (HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton) |
|
static void | MouseWheel (HHTMLBrowser unBrowserHandle, int nDelta) |
|
static void | PasteFromClipboard (HHTMLBrowser unBrowserHandle) |
|
static void | Reload (HHTMLBrowser unBrowserHandle) |
|
static void | RemoveBrowser (HHTMLBrowser unBrowserHandle) |
|
static void | SetBackgroundMode (HHTMLBrowser unBrowserHandle, bool bBackgroundMode) |
|
static void | SetCookie (string pchHostname, string pchKey, string pchValue, string pchPath="/", uint nExpires=0, bool bSecure=false, bool bHTTPOnly=false) |
|
static void | SetDPIScalingFactor (HHTMLBrowser unBrowserHandle, float flDPIScaling) |
|
static void | SetHorizontalScroll (HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll) |
|
static void | SetKeyFocus (HHTMLBrowser unBrowserHandle, bool bHasKeyFocus) |
|
static void | SetPageScaleFactor (HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY) |
|
static void | SetSize (HHTMLBrowser unBrowserHandle, uint unWidth, uint unHeight) |
|
static void | SetVerticalScroll (HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll) |
|
static bool | Shutdown () |
|
static void | StopFind (HHTMLBrowser unBrowserHandle) |
|
static void | StopLoad (HHTMLBrowser unBrowserHandle) |
|
static void | ViewSource (HHTMLBrowser unBrowserHandle) |
|
static void Steamworks.SteamHTMLSurface.AllowStartRequest |
( |
HHTMLBrowser |
unBrowserHandle, |
|
|
bool |
bAllowed |
|
) |
| |
|
inlinestatic |
CALLBACKS
These set of functions are used as responses to callback requests
You MUST call this in response to a HTML_StartRequest_t callback
Set bAllowed to true to allow this navigation, false to cancel it and stay
on the current page. You can use this feature to limit the valid pages
allowed in your HTML surface.
static SteamAPICall_t Steamworks.SteamHTMLSurface.CreateBrowser |
( |
string |
pchUserAgent, |
|
|
string |
pchUserCSS |
|
) |
| |
|
inlinestatic |
Create a browser object for display of a html page, when creation is complete the call handle
will return a HTML_BrowserReady_t callback for the HHTMLBrowser of your new browser.
The user agent string is a substring to be added to the general user agent string so you can
identify your client on web servers.
The userCSS string lets you apply a CSS style sheet to every displayed page, leave null if
you do not require this functionality.
YOU MUST HAVE IMPLEMENTED HANDLERS FOR HTML_BrowserReady_t, HTML_StartRequest_t,
HTML_JSAlert_t, HTML_JSConfirm_t, and HTML_FileOpenDialog_t! See the CALLBACKS
section of this interface (AllowStartRequest, etc) for more details. If you do
not implement these callback handlers, the browser may appear to hang instead of
navigating to new pages or triggering javascript popups.
static void Steamworks.SteamHTMLSurface.SetBackgroundMode |
( |
HHTMLBrowser |
unBrowserHandle, |
|
|
bool |
bBackgroundMode |
|
) |
| |
|
inlinestatic |
Enable/disable low-resource background mode, where javascript and repaint timers are throttled, resources are
more aggressively purged from memory, and audio/video elements are paused. When background mode is enabled,
all HTML5 video and audio objects will execute ".pause()" and gain the property "._steam_background_paused = 1".
When background mode is disabled, any video or audio objects with that property will resume with ".play()".