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:
@@ -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()
|
||||||
|
@@ -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
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user