X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4681a3ea0d0502ec7a787bc4dd24e43718a02b7c..028894b4261c10abdf61e4d9b3d3bc71b493a826:/include/wx/webview.h?ds=sidebyside diff --git a/include/wx/webview.h b/include/wx/webview.h index b3bb60f223..fe010713fa 100644 --- a/include/wx/webview.h +++ b/include/wx/webview.h @@ -18,6 +18,7 @@ #include #include #include "wx/sharedptr.h" +#include "wx/vector.h" class WXDLLIMPEXP_WEB wxWebHistoryItem { @@ -96,11 +97,8 @@ enum wxWebViewBackend * engine for the current platform*/ wxWEB_VIEW_BACKEND_DEFAULT, - /** The OSX-native WebKit web engine */ - wxWEB_VIEW_BACKEND_OSX_WEBKIT, - - /** The GTK port of the WebKit engine */ - wxWEB_VIEW_BACKEND_GTK_WEBKIT, + /** The WebKit web engine */ + wxWEB_VIEW_BACKEND_WEBKIT, /** Use Microsoft Internet Explorer as web engine */ wxWEB_VIEW_BACKEND_IE @@ -304,16 +302,6 @@ public: // virtual bool IsOfflineMode() = 0; // maybe? // virtual void SetOfflineMode(bool offline) = 0; // maybe? - // TODO: offer API to control the opening of new frames - // (through as well as through javascript), OR - // provide a behavior consistent across ports. - // - OSX : I receive an event for new frames opened with HTML target, and - // currently block them all. - // - IE : An event is recieved for new frames and they are currently - // blocked - // - GTK : All frame open requests are blocked. A slot exists that I could - // connect to to be notified if ever needed - /** * Opens a print dialog so that the user may print the currently * displayed page. @@ -332,6 +320,12 @@ public: virtual void Cut() = 0; virtual void Copy() = 0; virtual void Paste() = 0; + + //Undo / redo functionality + virtual bool CanUndo() = 0; + virtual bool CanRedo() = 0; + virtual void Undo() = 0; + virtual void Redo() = 0; }; class WXDLLIMPEXP_WEB wxWebNavigationEvent : public wxCommandEvent