]>
git.saurik.com Git - wxWidgets.git/blob - src/common/webviewfshandler.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewfshandler.cpp
3 // Purpose: Custom webview handler for virtual file system
4 // Author: Nick Matthews
5 // Copyright: (c) 2012 Steven Lamerton
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 // For compilers that support precompilation, includes "wx.h".
10 #include "wx/wxprec.h"
14 #if defined(__BORLANDC__)
18 #include "wx/webviewfshandler.h"
19 #include "wx/filesys.h"
21 wxWebViewFSHandler::wxWebViewFSHandler(const wxString
& scheme
) :
22 wxWebViewHandler(scheme
)
24 m_fileSystem
= new wxFileSystem();
27 wxWebViewFSHandler::~wxWebViewFSHandler()
29 wxDELETE(m_fileSystem
);
32 wxFSFile
* wxWebViewFSHandler::GetFile(const wxString
&uri
)
34 return m_fileSystem
->OpenFile(uri
);
37 #endif // wxUSE_WEBVIEW