Add wxWebViewChromium::SetRoot()
This allows to define a prefix for all the files used by the application in the browser.
This commit is contained in:
parent
322677ad38
commit
6f130c121f
3 changed files with 121 additions and 2 deletions
|
|
@ -14,6 +14,8 @@
|
|||
#include "wx/webview.h"
|
||||
#include "wx/timer.h"
|
||||
|
||||
class WXDLLIMPEXP_FWD_BASE wxFileName;
|
||||
|
||||
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewBackendChromium[];
|
||||
|
||||
// Private namespace containing classes used only in the implementation.
|
||||
|
|
@ -123,6 +125,9 @@ public:
|
|||
//Virtual Filesystem Support
|
||||
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) override;
|
||||
|
||||
// Chromium-specific functions.
|
||||
void SetRoot(const wxFileName& rootDir);
|
||||
|
||||
#ifdef __WXGTK__
|
||||
virtual void GTKHandleRealized() override;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue