Implement undo and redo for the ie and gtk webkit backends. Extend the sample to show their use.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-02 15:07:46 +00:00
parent ae26e17b93
commit 97e49559fb
6 changed files with 81 additions and 0 deletions

View File

@@ -519,6 +519,26 @@ void wxWebViewWebKit::Paste()
webkit_web_view_paste_clipboard(WEBKIT_WEB_VIEW(web_view));
}
bool wxWebViewWebKit::CanUndo()
{
return webkit_web_view_can_undo(WEBKIT_WEB_VIEW(web_view));
}
bool wxWebViewWebKit::CanRedo()
{
return webkit_web_view_can_redo(WEBKIT_WEB_VIEW(web_view));
}
void wxWebViewWebKit::Undo()
{
webkit_web_view_undo(WEBKIT_WEB_VIEW(web_view));
}
void wxWebViewWebKit::Redo()
{
webkit_web_view_redo(WEBKIT_WEB_VIEW(web_view));
}
wxString wxWebViewWebKit::GetCurrentURL()
{
// FIXME: check which encoding the web kit control uses instead of