Initial implementation of wxWebProtocolHandler and wxWebFileProtocolHandler for the IE backend. This allows browsing of local files and files in zip archives when using a query string which specifies the protocol and path.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-28 16:08:59 +00:00
parent 666f73c4d6
commit 293656292f
3 changed files with 129 additions and 26 deletions

View File

@@ -20,6 +20,8 @@
#include "wx/sharedptr.h"
#include "wx/vector.h"
class wxFSFile;
class WXDLLIMPEXP_WEB wxWebHistoryItem
{
public:
@@ -104,6 +106,14 @@ enum wxWebViewBackend
wxWEB_VIEW_BACKEND_IE
};
class WXDLLIMPEXP_WEB wxWebProtocolHandler
{
public:
virtual wxString GetProtocol() = 0;
virtual wxFSFile* GetFile(const wxString &uri) = 0;
virtual wxString CombineURIs(const wxString &baseuri, const wxString &newuri) = 0;
};
extern WXDLLIMPEXP_DATA_WEB(const char) wxWebViewNameStr[];
extern WXDLLIMPEXP_DATA_WEB(const char) wxWebViewDefaultURLStr[];