Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteamhtmlsurface.h
Go to the documentation of this file.
1//====== Copyright 1996-2013, Valve Corporation, All rights reserved. =======
2//
3// Purpose: interface to display html pages in a texture
4//
5//=============================================================================
6
7#ifndef ISTEAMHTMLSURFACE_H
8#define ISTEAMHTMLSURFACE_H
9#ifdef _WIN32
10#pragma once
11#endif
12
13#include "steam_api_common.h"
14
17
18//-----------------------------------------------------------------------------
19// Purpose: Functions for displaying HTML pages and interacting with them
20//-----------------------------------------------------------------------------
22{
23public:
24 virtual ~ISteamHTMLSurface() {}
25
26 // Must call init and shutdown when starting/ending use of the interface
27 virtual bool Init() = 0;
28 virtual bool Shutdown() = 0;
29
30 // Create a browser object for display of a html page, when creation is complete the call handle
31 // will return a HTML_BrowserReady_t callback for the HHTMLBrowser of your new browser.
32 // The user agent string is a substring to be added to the general user agent string so you can
33 // identify your client on web servers.
34 // The userCSS string lets you apply a CSS style sheet to every displayed page, leave null if
35 // you do not require this functionality.
36 //
37 // YOU MUST HAVE IMPLEMENTED HANDLERS FOR HTML_BrowserReady_t, HTML_StartRequest_t,
38 // HTML_JSAlert_t, HTML_JSConfirm_t, and HTML_FileOpenDialog_t! See the CALLBACKS
39 // section of this interface (AllowStartRequest, etc) for more details. If you do
40 // not implement these callback handlers, the browser may appear to hang instead of
41 // navigating to new pages or triggering javascript popups.
42 //
43 STEAM_CALL_RESULT( HTML_BrowserReady_t )
44 virtual SteamAPICall_t CreateBrowser( const char *pchUserAgent, const char *pchUserCSS ) = 0;
45
46 // Call this when you are done with a html surface, this lets us free the resources being used by it
47 virtual void RemoveBrowser( HHTMLBrowser unBrowserHandle ) = 0;
48
49 // Navigate to this URL, results in a HTML_StartRequest_t as the request commences
50 virtual void LoadURL( HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData ) = 0;
51
52 // Tells the surface the size in pixels to display the surface
53 virtual void SetSize( HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight ) = 0;
54
55 // Stop the load of the current html page
56 virtual void StopLoad( HHTMLBrowser unBrowserHandle ) = 0;
57 // Reload (most likely from local cache) the current page
58 virtual void Reload( HHTMLBrowser unBrowserHandle ) = 0;
59 // navigate back in the page history
60 virtual void GoBack( HHTMLBrowser unBrowserHandle ) = 0;
61 // navigate forward in the page history
62 virtual void GoForward( HHTMLBrowser unBrowserHandle ) = 0;
63
64 // add this header to any url requests from this browser
65 virtual void AddHeader( HHTMLBrowser unBrowserHandle, const char *pchKey, const char *pchValue ) = 0;
66 // run this javascript script in the currently loaded page
67 virtual void ExecuteJavascript( HHTMLBrowser unBrowserHandle, const char *pchScript ) = 0;
68
75
76 // Mouse click and mouse movement commands
77 virtual void MouseUp( HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ) = 0;
78 virtual void MouseDown( HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ) = 0;
79 virtual void MouseDoubleClick( HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ) = 0;
80 // x and y are relative to the HTML bounds
81 virtual void MouseMove( HHTMLBrowser unBrowserHandle, int x, int y ) = 0;
82 // nDelta is pixels of scroll
83 virtual void MouseWheel( HHTMLBrowser unBrowserHandle, int32 nDelta ) = 0;
84
86 {
108 k_EHTMLMouseCursor_Blank, // don't show any custom cursor, just use your default
130
131 k_EHTMLMouseCursor_last, // custom cursors start from this value and up
132 };
133
141
142 // keyboard interactions, native keycode is the virtual key code value from your OS, system key flags the key to not
143 // be sent as a typed character as well as a key down
144 virtual void KeyDown( HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, bool bIsSystemKey = false ) = 0;
145 virtual void KeyUp( HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers ) = 0;
146 // cUnicodeChar is the unicode character point for this keypress (and potentially multiple chars per press)
147 virtual void KeyChar( HHTMLBrowser unBrowserHandle, uint32 cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers ) = 0;
148
149 // programmatically scroll this many pixels on the page
150 virtual void SetHorizontalScroll( HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll ) = 0;
151 virtual void SetVerticalScroll( HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll ) = 0;
152
153 // tell the html control if it has key focus currently, controls showing the I-beam cursor in text controls amongst other things
154 virtual void SetKeyFocus( HHTMLBrowser unBrowserHandle, bool bHasKeyFocus ) = 0;
155
156 // open the current pages html code in the local editor of choice, used for debugging
157 virtual void ViewSource( HHTMLBrowser unBrowserHandle ) = 0;
158 // copy the currently selected text on the html page to the local clipboard
159 virtual void CopyToClipboard( HHTMLBrowser unBrowserHandle ) = 0;
160 // paste from the local clipboard to the current html page
161 virtual void PasteFromClipboard( HHTMLBrowser unBrowserHandle ) = 0;
162
163 // find this string in the browser, if bCurrentlyInFind is true then instead cycle to the next matching element
164 virtual void Find( HHTMLBrowser unBrowserHandle, const char *pchSearchStr, bool bCurrentlyInFind, bool bReverse ) = 0;
165 // cancel a currently running find
166 virtual void StopFind( HHTMLBrowser unBrowserHandle ) = 0;
167
168 // return details about the link at position x,y on the current page
169 virtual void GetLinkAtPosition( HHTMLBrowser unBrowserHandle, int x, int y ) = 0;
170
171 // set a webcookie for the hostname in question
172 virtual void SetCookie( const char *pchHostname, const char *pchKey, const char *pchValue, const char *pchPath = "/", RTime32 nExpires = 0, bool bSecure = false, bool bHTTPOnly = false ) = 0;
173
174 // Zoom the current page by flZoom ( from 0.0 to 2.0, so to zoom to 120% use 1.2 ), zooming around point X,Y in the page (use 0,0 if you don't care)
175 virtual void SetPageScaleFactor( HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY ) = 0;
176
177 // Enable/disable low-resource background mode, where javascript and repaint timers are throttled, resources are
178 // more aggressively purged from memory, and audio/video elements are paused. When background mode is enabled,
179 // all HTML5 video and audio objects will execute ".pause()" and gain the property "._steam_background_paused = 1".
180 // When background mode is disabled, any video or audio objects with that property will resume with ".play()".
181 virtual void SetBackgroundMode( HHTMLBrowser unBrowserHandle, bool bBackgroundMode ) = 0;
182
183 // Scale the output display space by this factor, this is useful when displaying content on high dpi devices.
184 // Specifies the ratio between physical and logical pixels.
185 virtual void SetDPIScalingFactor( HHTMLBrowser unBrowserHandle, float flDPIScaling ) = 0;
186
187 // Open HTML/JS developer tools
188 virtual void OpenDeveloperTools( HHTMLBrowser unBrowserHandle ) = 0;
189
190 // CALLBACKS
191 //
192 // These set of functions are used as responses to callback requests
193 //
194
195 // You MUST call this in response to a HTML_StartRequest_t callback
196 // Set bAllowed to true to allow this navigation, false to cancel it and stay
197 // on the current page. You can use this feature to limit the valid pages
198 // allowed in your HTML surface.
199 virtual void AllowStartRequest( HHTMLBrowser unBrowserHandle, bool bAllowed ) = 0;
200
201 // You MUST call this in response to a HTML_JSAlert_t or HTML_JSConfirm_t callback
202 // Set bResult to true for the OK option of a confirm, use false otherwise
203 virtual void JSDialogResponse( HHTMLBrowser unBrowserHandle, bool bResult ) = 0;
204
205 // You MUST call this in response to a HTML_FileOpenDialog_t callback
206 virtual void FileLoadDialogResponse( HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles ) = 0;
207};
208
209#define STEAMHTMLSURFACE_INTERFACE_VERSION "STEAMHTMLSURFACE_INTERFACE_VERSION_005"
210
211// Global interface accessor
214
215// callbacks
216#if defined( VALVE_CALLBACK_PACK_SMALL )
217#pragma pack( push, 4 )
218#elif defined( VALVE_CALLBACK_PACK_LARGE )
219#pragma pack( push, 8 )
220#else
221#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
222#endif
223
224
225//-----------------------------------------------------------------------------
226// Purpose: The browser is ready for use
227//-----------------------------------------------------------------------------
228STEAM_CALLBACK_BEGIN( HTML_BrowserReady_t, k_iSteamHTMLSurfaceCallbacks + 1 )
229STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // this browser is now fully created and ready to navigate to pages
231
232
233//-----------------------------------------------------------------------------
234// Purpose: the browser has a pending paint
235//-----------------------------------------------------------------------------
237STEAM_CALLBACK_MEMBER(0, HHTMLBrowser, unBrowserHandle) // the browser that needs the paint
238STEAM_CALLBACK_MEMBER(1, const char *, pBGRA ) // a pointer to the B8G8R8A8 data for this surface, valid until SteamAPI_RunCallbacks is next called
239STEAM_CALLBACK_MEMBER(2, uint32, unWide) // the total width of the pBGRA texture
240STEAM_CALLBACK_MEMBER(3, uint32, unTall) // the total height of the pBGRA texture
241STEAM_CALLBACK_MEMBER(4, uint32, unUpdateX) // the offset in X for the damage rect for this update
242STEAM_CALLBACK_MEMBER(5, uint32, unUpdateY) // the offset in Y for the damage rect for this update
243STEAM_CALLBACK_MEMBER(6, uint32, unUpdateWide) // the width of the damage rect for this update
244STEAM_CALLBACK_MEMBER(7, uint32, unUpdateTall) // the height of the damage rect for this update
245STEAM_CALLBACK_MEMBER(8, uint32, unScrollX) // the page scroll the browser was at when this texture was rendered
246STEAM_CALLBACK_MEMBER(9, uint32, unScrollY) // the page scroll the browser was at when this texture was rendered
247STEAM_CALLBACK_MEMBER(10, float, flPageScale) // the page scale factor on this page when rendered
248STEAM_CALLBACK_MEMBER(11, uint32, unPageSerial) // incremented on each new page load, you can use this to reject draws while navigating to new pages
250
251
252//-----------------------------------------------------------------------------
253// Purpose: The browser wanted to navigate to a new page
254// NOTE - you MUST call AllowStartRequest in response to this callback
255//-----------------------------------------------------------------------------
257STEAM_CALLBACK_MEMBER(0, HHTMLBrowser, unBrowserHandle) // the handle of the surface navigating
258STEAM_CALLBACK_MEMBER(1, const char *, pchURL) // the url they wish to navigate to
259STEAM_CALLBACK_MEMBER(2, const char *, pchTarget) // the html link target type (i.e _blank, _self, _parent, _top )
260STEAM_CALLBACK_MEMBER(3, const char *, pchPostData ) // any posted data for the request
261STEAM_CALLBACK_MEMBER(4, bool, bIsRedirect) // true if this was a http/html redirect from the last load request
263
264
265//-----------------------------------------------------------------------------
266// Purpose: The browser has been requested to close due to user interaction (usually from a javascript window.close() call)
267//-----------------------------------------------------------------------------
269STEAM_CALLBACK_MEMBER(0, HHTMLBrowser, unBrowserHandle) // the handle of the surface
271
272
273//-----------------------------------------------------------------------------
274// Purpose: the browser is navigating to a new url
275//-----------------------------------------------------------------------------
277STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface navigating
278STEAM_CALLBACK_MEMBER( 1, const char *, pchURL ) // the url they wish to navigate to
279STEAM_CALLBACK_MEMBER( 2, const char *, pchPostData ) // any posted data for the request
280STEAM_CALLBACK_MEMBER( 3, bool, bIsRedirect ) // true if this was a http/html redirect from the last load request
281STEAM_CALLBACK_MEMBER( 4, const char *, pchPageTitle ) // the title of the page
282STEAM_CALLBACK_MEMBER( 5, bool, bNewNavigation ) // true if this was from a fresh tab and not a click on an existing page
284
285
286//-----------------------------------------------------------------------------
287// Purpose: A page is finished loading
288//-----------------------------------------------------------------------------
289STEAM_CALLBACK_BEGIN( HTML_FinishedRequest_t, k_iSteamHTMLSurfaceCallbacks + 6 )
290STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
291STEAM_CALLBACK_MEMBER( 1, const char *, pchURL ) //
292STEAM_CALLBACK_MEMBER( 2, const char *, pchPageTitle ) //
294
295
296//-----------------------------------------------------------------------------
297// Purpose: a request to load this url in a new tab
298//-----------------------------------------------------------------------------
299STEAM_CALLBACK_BEGIN( HTML_OpenLinkInNewTab_t, k_iSteamHTMLSurfaceCallbacks + 7 )
300STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
301STEAM_CALLBACK_MEMBER( 1, const char *, pchURL ) //
303
304
305//-----------------------------------------------------------------------------
306// Purpose: the page has a new title now
307//-----------------------------------------------------------------------------
308STEAM_CALLBACK_BEGIN( HTML_ChangedTitle_t, k_iSteamHTMLSurfaceCallbacks + 8 )
309STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
310STEAM_CALLBACK_MEMBER( 1, const char *, pchTitle ) //
312
313
314//-----------------------------------------------------------------------------
315// Purpose: results from a search
316//-----------------------------------------------------------------------------
317STEAM_CALLBACK_BEGIN( HTML_SearchResults_t, k_iSteamHTMLSurfaceCallbacks + 9 )
318STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
319STEAM_CALLBACK_MEMBER( 1, uint32, unResults ) //
320STEAM_CALLBACK_MEMBER( 2, uint32, unCurrentMatch ) //
322
323
324//-----------------------------------------------------------------------------
325// Purpose: page history status changed on the ability to go backwards and forward
326//-----------------------------------------------------------------------------
327STEAM_CALLBACK_BEGIN( HTML_CanGoBackAndForward_t, k_iSteamHTMLSurfaceCallbacks + 10 )
328STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
329STEAM_CALLBACK_MEMBER( 1, bool, bCanGoBack ) //
330STEAM_CALLBACK_MEMBER( 2, bool, bCanGoForward ) //
332
333
334//-----------------------------------------------------------------------------
335// Purpose: details on the visibility and size of the horizontal scrollbar
336//-----------------------------------------------------------------------------
337STEAM_CALLBACK_BEGIN( HTML_HorizontalScroll_t, k_iSteamHTMLSurfaceCallbacks + 11 )
338STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
339STEAM_CALLBACK_MEMBER( 1, uint32, unScrollMax ) //
340STEAM_CALLBACK_MEMBER( 2, uint32, unScrollCurrent ) //
341STEAM_CALLBACK_MEMBER( 3, float, flPageScale ) //
342STEAM_CALLBACK_MEMBER( 4, bool , bVisible ) //
343STEAM_CALLBACK_MEMBER( 5, uint32, unPageSize ) //
345
346
347//-----------------------------------------------------------------------------
348// Purpose: details on the visibility and size of the vertical scrollbar
349//-----------------------------------------------------------------------------
350STEAM_CALLBACK_BEGIN( HTML_VerticalScroll_t, k_iSteamHTMLSurfaceCallbacks + 12 )
351STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
352STEAM_CALLBACK_MEMBER( 1, uint32, unScrollMax ) //
353STEAM_CALLBACK_MEMBER( 2, uint32, unScrollCurrent ) //
354STEAM_CALLBACK_MEMBER( 3, float, flPageScale ) //
355STEAM_CALLBACK_MEMBER( 4, bool, bVisible ) //
356STEAM_CALLBACK_MEMBER( 5, uint32, unPageSize ) //
358
359
360//-----------------------------------------------------------------------------
361// Purpose: response to GetLinkAtPosition call
362//-----------------------------------------------------------------------------
363STEAM_CALLBACK_BEGIN( HTML_LinkAtPosition_t, k_iSteamHTMLSurfaceCallbacks + 13 )
364STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
365STEAM_CALLBACK_MEMBER( 1, uint32, x ) // NOTE - Not currently set
366STEAM_CALLBACK_MEMBER( 2, uint32, y ) // NOTE - Not currently set
367STEAM_CALLBACK_MEMBER( 3, const char *, pchURL ) //
368STEAM_CALLBACK_MEMBER( 4, bool, bInput ) //
369STEAM_CALLBACK_MEMBER( 5, bool, bLiveLink ) //
371
372
373
374//-----------------------------------------------------------------------------
375// Purpose: show a Javascript alert dialog, call JSDialogResponse
376// when the user dismisses this dialog (or right away to ignore it)
377//-----------------------------------------------------------------------------
379STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
380STEAM_CALLBACK_MEMBER( 1, const char *, pchMessage ) //
382
383
384//-----------------------------------------------------------------------------
385// Purpose: show a Javascript confirmation dialog, call JSDialogResponse
386// when the user dismisses this dialog (or right away to ignore it)
387//-----------------------------------------------------------------------------
389STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
390STEAM_CALLBACK_MEMBER( 1, const char *, pchMessage ) //
392
393
394//-----------------------------------------------------------------------------
395// Purpose: when received show a file open dialog
396// then call FileLoadDialogResponse with the file(s) the user selected.
397//-----------------------------------------------------------------------------
398STEAM_CALLBACK_BEGIN( HTML_FileOpenDialog_t, k_iSteamHTMLSurfaceCallbacks + 16 )
399STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
400STEAM_CALLBACK_MEMBER( 1, const char *, pchTitle ) //
401STEAM_CALLBACK_MEMBER( 2, const char *, pchInitialFile ) //
403
404
405//-----------------------------------------------------------------------------
406// Purpose: a new html window is being created.
407//
408// IMPORTANT NOTE: at this time, the API does not allow you to acknowledge or
409// render the contents of this new window, so the new window is always destroyed
410// immediately. The URL and other parameters of the new window are passed here
411// to give your application the opportunity to call CreateBrowser and set up
412// a new browser in response to the attempted popup, if you wish to do so.
413//-----------------------------------------------------------------------------
415STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the current surface
416STEAM_CALLBACK_MEMBER( 1, const char *, pchURL ) // the page to load
417STEAM_CALLBACK_MEMBER( 2, uint32, unX ) // the x pos into the page to display the popup
418STEAM_CALLBACK_MEMBER( 3, uint32, unY ) // the y pos into the page to display the popup
419STEAM_CALLBACK_MEMBER( 4, uint32, unWide ) // the total width of the pBGRA texture
420STEAM_CALLBACK_MEMBER( 5, uint32, unTall ) // the total height of the pBGRA texture
421STEAM_CALLBACK_MEMBER( 6, HHTMLBrowser, unNewWindow_BrowserHandle_IGNORE )
423
424
425//-----------------------------------------------------------------------------
426// Purpose: change the cursor to display
427//-----------------------------------------------------------------------------
429STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
430STEAM_CALLBACK_MEMBER( 1, uint32, eMouseCursor ) // the EHTMLMouseCursor to display
432
433
434//-----------------------------------------------------------------------------
435// Purpose: informational message from the browser
436//-----------------------------------------------------------------------------
437STEAM_CALLBACK_BEGIN( HTML_StatusText_t, k_iSteamHTMLSurfaceCallbacks + 23 )
438STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
439STEAM_CALLBACK_MEMBER( 1, const char *, pchMsg ) // the message text
441
442
443//-----------------------------------------------------------------------------
444// Purpose: show a tooltip
445//-----------------------------------------------------------------------------
446STEAM_CALLBACK_BEGIN( HTML_ShowToolTip_t, k_iSteamHTMLSurfaceCallbacks + 24 )
447STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
448STEAM_CALLBACK_MEMBER( 1, const char *, pchMsg ) // the tooltip text
450
451
452//-----------------------------------------------------------------------------
453// Purpose: update the text of an existing tooltip
454//-----------------------------------------------------------------------------
455STEAM_CALLBACK_BEGIN( HTML_UpdateToolTip_t, k_iSteamHTMLSurfaceCallbacks + 25 )
456STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
457STEAM_CALLBACK_MEMBER( 1, const char *, pchMsg ) // the new tooltip text
459
460
461//-----------------------------------------------------------------------------
462// Purpose: hide the tooltip you are showing
463//-----------------------------------------------------------------------------
464STEAM_CALLBACK_BEGIN( HTML_HideToolTip_t, k_iSteamHTMLSurfaceCallbacks + 26 )
465STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface
467
468
469//-----------------------------------------------------------------------------
470// Purpose: The browser has restarted due to an internal failure, use this new handle value
471//-----------------------------------------------------------------------------
472STEAM_CALLBACK_BEGIN( HTML_BrowserRestarted_t, k_iSteamHTMLSurfaceCallbacks + 27 )
473STEAM_CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // this is the new browser handle after the restart
474STEAM_CALLBACK_MEMBER( 1, HHTMLBrowser, unOldBrowserHandle ) // the handle for the browser before the restart, if your handle was this then switch to using unBrowserHandle for API calls
476
477
478#pragma pack( pop )
479
480
481#endif // ISTEAMHTMLSURFACE_H
virtual void SetCookie(const char *pchHostname, const char *pchKey, const char *pchValue, const char *pchPath="/", RTime32 nExpires=0, bool bSecure=false, bool bHTTPOnly=false)=0
virtual bool Shutdown()=0
virtual void StopLoad(HHTMLBrowser unBrowserHandle)=0
virtual bool Init()=0
virtual void LoadURL(HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData)=0
virtual void Find(HHTMLBrowser unBrowserHandle, const char *pchSearchStr, bool bCurrentlyInFind, bool bReverse)=0
virtual void ViewSource(HHTMLBrowser unBrowserHandle)=0
virtual void Reload(HHTMLBrowser unBrowserHandle)=0
virtual void SetKeyFocus(HHTMLBrowser unBrowserHandle, bool bHasKeyFocus)=0
virtual void SetHorizontalScroll(HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll)=0
virtual void RemoveBrowser(HHTMLBrowser unBrowserHandle)=0
virtual void OpenDeveloperTools(HHTMLBrowser unBrowserHandle)=0
virtual void ExecuteJavascript(HHTMLBrowser unBrowserHandle, const char *pchScript)=0
virtual void KeyUp(HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers)=0
virtual void GoBack(HHTMLBrowser unBrowserHandle)=0
virtual void MouseUp(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)=0
virtual void SetSize(HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight)=0
virtual void MouseWheel(HHTMLBrowser unBrowserHandle, int32 nDelta)=0
virtual void SetVerticalScroll(HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll)=0
virtual void CopyToClipboard(HHTMLBrowser unBrowserHandle)=0
virtual void PasteFromClipboard(HHTMLBrowser unBrowserHandle)=0
virtual void JSDialogResponse(HHTMLBrowser unBrowserHandle, bool bResult)=0
virtual void KeyDown(HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, bool bIsSystemKey=false)=0
virtual void KeyChar(HHTMLBrowser unBrowserHandle, uint32 cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers)=0
virtual void GetLinkAtPosition(HHTMLBrowser unBrowserHandle, int x, int y)=0
virtual void SetBackgroundMode(HHTMLBrowser unBrowserHandle, bool bBackgroundMode)=0
virtual void GoForward(HHTMLBrowser unBrowserHandle)=0
virtual void AllowStartRequest(HHTMLBrowser unBrowserHandle, bool bAllowed)=0
virtual void MouseDoubleClick(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)=0
virtual void SetDPIScalingFactor(HHTMLBrowser unBrowserHandle, float flDPIScaling)=0
virtual void SetPageScaleFactor(HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY)=0
virtual void MouseMove(HHTMLBrowser unBrowserHandle, int x, int y)=0
virtual void MouseDown(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)=0
virtual SteamAPICall_t CreateBrowser(const char *pchUserAgent, const char *pchUserCSS)=0
virtual void AddHeader(HHTMLBrowser unBrowserHandle, const char *pchKey, const char *pchValue)=0
virtual void FileLoadDialogResponse(HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles)=0
virtual void StopFind(HHTMLBrowser unBrowserHandle)=0
ISteamHTMLSurface * SteamHTMLSurface()
#define STEAMHTMLSURFACE_INTERFACE_VERSION
const uint32 INVALID_HTMLBROWSER
uint32 HHTMLBrowser
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
#define STEAM_CALLBACK_END(nArgs)
@ k_iSteamHTMLSurfaceCallbacks
#define STEAM_CALL_RESULT(RESULT_TYPE)
#define STEAM_CALLBACK_MEMBER(varidx, vartype, varname)
#define STEAM_CALLBACK_BEGIN(callbackname, callbackid)
uint32 RTime32
Definition steamtypes.h:90
int int32
Definition steamtypes.h:57
uint64 SteamAPICall_t
Definition steamtypes.h:93