]> git.saurik.com Git - wxWidgets.git/blame - src/common/webviewfshandler.cpp
Workaround for #15404: wxRichTextCtrl: caret does not disappear when focus is lost...
[wxWidgets.git] / src / common / webviewfshandler.cpp
CommitLineData
81a887a8
DS
1/////////////////////////////////////////////////////////////////////////////
2// Name: webviewfshandler.cpp
3// Purpose: Custom webview handler for virtual file system
4// Author: Nick Matthews
81a887a8
DS
5// Copyright: (c) 2012 Steven Lamerton
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9// For compilers that support precompilation, includes "wx.h".
10#include "wx/wxprec.h"
11
12#if wxUSE_WEBVIEW
13
14#if defined(__BORLANDC__)
15 #pragma hdrstop
16#endif
17
18#include "wx/webviewfshandler.h"
19#include "wx/filesys.h"
20
21wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) :
22 wxWebViewHandler(scheme)
23{
24 m_fileSystem = new wxFileSystem();
25}
26
27wxWebViewFSHandler::~wxWebViewFSHandler()
28{
29 wxDELETE(m_fileSystem);
30}
31
32wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri)
33{
34 return m_fileSystem->OpenFile(uri);
35}
36
37#endif // wxUSE_WEBVIEW