]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/webview.h
Extend history api using the ie backend to include loading history items, and getting...
[wxWidgets.git] / include / wx / webview.h
index 53317c3421224f2d5b2c4decd3fd8f5379ea30b4..57812cbf81e3d0cb1acda164794220e8a0e6d555 100644 (file)
 #include <wx/control.h>
 #include <wx/event.h>
 #include <wx/sstream.h>
+#include "wx/sharedptr.h"
+
+class WXDLLIMPEXP_WEB wxWebHistoryItem
+{
+public:
+    wxWebHistoryItem(const wxString& url, const wxString& title) : 
+                     m_url(url), m_title(title) {}
+    wxString GetUrl() { return m_url; }
+    wxString GetTitle() { return m_title; }
+
+private:
+    wxString m_url, m_title;
+};
 
 /**
  * Zoom level in web view component
@@ -175,6 +188,9 @@ public:
 
     virtual void ClearHistory() = 0;
     virtual void EnableHistory(bool enable = true) = 0;
+    virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetBackwardHistory() = 0;
+    virtual wxVector<wxSharedPtr<wxWebHistoryItem> > GetForwardHistory() = 0;
+    virtual void LoadHistoryItem(wxSharedPtr<wxWebHistoryItem> item) = 0;
 
     /**
      * Stop the current page loading process, if any.