]>
git.saurik.com Git - wxWidgets.git/blob - src/common/webviewfshandler.cpp
c5827dae26b2bf2691f2dff2ec5f297381b4a76e
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewfshandler.cpp
3 // Purpose: Custom webview handler for virtual file system
4 // Author: Nick Matthews
6 // Copyright: (c) 2012 Steven Lamerton
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
15 #if defined(__BORLANDC__)
19 #include "wx/webviewfshandler.h"
20 #include "wx/filesys.h"
22 wxWebViewFSHandler::wxWebViewFSHandler(const wxString
& scheme
) :
23 wxWebViewHandler(scheme
)
25 m_fileSystem
= new wxFileSystem();
28 wxWebViewFSHandler::~wxWebViewFSHandler()
30 wxDELETE(m_fileSystem
);
33 wxFSFile
* wxWebViewFSHandler::GetFile(const wxString
&uri
)
35 return m_fileSystem
->OpenFile(uri
);
38 #endif // wxUSE_WEBVIEW