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