X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e3d4a32106c8c0f85695f68856da137c14d2b5c..211da8a57d923da0fda6402dc6d5417124497171:/include/wx/osx/webview_webkit.h diff --git a/include/wx/osx/webview_webkit.h b/include/wx/osx/webview_webkit.h index e83b1ccdb5..cf873771a7 100644 --- a/include/wx/osx/webview_webkit.h +++ b/include/wx/osx/webview_webkit.h @@ -15,7 +15,8 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_WEBKIT && defined(__WXOSX_MAC__) +#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ + || defined(__WXOSX_CARBON__)) #include "wx/control.h" #include "wx/webview.h" @@ -63,6 +64,8 @@ public: virtual void SetPageTitle(const wxString& title) { m_pageTitle = title; } virtual wxString GetPageTitle(){ return m_pageTitle; } + //We do not want to hide the other overloads + using wxWebView::SetPage; virtual void SetPage(const wxString& html, const wxString& baseUrl); virtual void Print(); @@ -81,12 +84,12 @@ public: //History functions virtual void ClearHistory() {} - virtual void EnableHistory(bool enable = true) {} + virtual void EnableHistory(bool enable = true); virtual wxVector > GetBackwardHistory() { return wxVector >(); } virtual wxVector > GetForwardHistory() { return wxVector >(); } - virtual void LoadHistoryItem(wxSharedPtr item) {} + virtual void LoadHistoryItem(wxSharedPtr WXUNUSED(item)) {} //Undo / redo functionality virtual bool CanUndo() { return false; } @@ -108,7 +111,7 @@ public: //Selection virtual void DeleteSelection(); - virtual bool HasSelection() { return false; }; + virtual bool HasSelection(); virtual void SelectAll() {}; virtual wxString GetSelectedText(); virtual wxString GetSelectedSource() { return ""; } @@ -117,7 +120,7 @@ public: void RunScript(const wxString& javascript); //Virtual Filesystem Support - virtual void RegisterHandler(wxWebHandler* handler) {}; + virtual void RegisterHandler(wxWebHandler* WXUNUSED(handler)) {}; // ---- methods not from the parent (common) interface bool CanGetPageSource();