git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68557
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool IsBusy() { return m_busy; }
//History functions
- virtual void ClearHistory() {}
+ virtual void ClearHistory();
virtual void EnableHistory(bool enable = true);
virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetBackwardHistory()
{ return wxVector<wxSharedPtr<wxWebHistoryItem> >(); }
[[MyPolicyDelegate alloc] initWithWxWindow: this];
[m_webView setPolicyDelegate:myPolicyDelegate];
+
+ // add history
+ WebHistory* history = [[WebHistory alloc] init];
+ [WebHistory setOptionalSharedHistory:history];
InternalLoadURL(strURL);
return true;
[m_webView setMaintainsBackForwardList:enable];
}
+void wxWebViewWebKit::ClearHistory()
+{
+ [[WebHistory optionalSharedHistory] removeAllItems];
+}
+
bool wxWebViewWebKit::CanUndo()
{
return [[m_webView undoManager] canUndo];