-
- /** Get whether it is possible to navigate back in the history of
- * visited pages
- */
- virtual bool CanGoBack() = 0;
-
- /** Get whether it is possible to navigate forward in the history of
- * visited pages
- */
- virtual bool CanGoForward() = 0;
-
- /** Navigate back in the history of visited pages.
- * Only valid if CanGoBack() returned true.
- */
- virtual void GoBack() = 0;
-
- /** Navigate forwardin the history of visited pages.
- * Only valid if CanGoForward() returned true.
- */
- virtual void GoForward() = 0;
-
- /**
- * Load a HTMl document (web page) from a URL
- * @param url the URL where the HTML document to display can be found
- * @note web engines generally report errors asynchronously, so if you wish
- * to know whether loading the URL was successful, register to receive
- * navigation error events
- */
- virtual void LoadUrl(const wxString& url) = 0;
-
- 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.
- * May trigger an error event of type wxWEB_NAV_ERR_USER_CANCELLED.
- * TODO: make wxWEB_NAV_ERR_USER_CANCELLED errors uniform across ports.
- */
- virtual void Stop() = 0;
-
- /**
- * Reload the currently displayed URL.
- * @param flags A bit array that may optionnally contain reload options
- */
- virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
-
-
- /**
- * Get the URL of the currently displayed document
- */
- virtual wxString GetCurrentURL() = 0;
-
- /**
- * Get the title of the current web page, or its URL/path if title is not
- * available
- */
- virtual wxString GetCurrentTitle() = 0;
-