Add EnableHistory support to the OSX WebKit backend.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-08-02 09:21:47 +00:00
parent e28cc3ca0a
commit 8ba4faba4d
2 changed files with 9 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ public:
//History functions //History functions
virtual void ClearHistory() {} virtual void ClearHistory() {}
virtual void EnableHistory(bool WXUNUSED(enable) = true) {} virtual void EnableHistory(bool enable = true);
virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetBackwardHistory() virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetBackwardHistory()
{ return wxVector<wxSharedPtr<wxWebHistoryItem> >(); } { return wxVector<wxSharedPtr<wxWebHistoryItem> >(); }
virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetForwardHistory() virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetForwardHistory()

View File

@@ -940,6 +940,14 @@ void wxWebViewWebKit::DeleteSelection()
[(WebView*)m_webView deleteSelection]; [(WebView*)m_webView deleteSelection];
} }
void wxWebViewWebKit::EnableHistory(bool enable)
{
if ( !m_webView )
return;
[m_webView setMaintainsBackForwardList:enable];
}
//------------------------------------------------------------ //------------------------------------------------------------
// Listener interfaces // Listener interfaces
//------------------------------------------------------------ //------------------------------------------------------------