X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca7ba7403b46d7aabe75b03d539cfc41a4bd49a..27d2dbbccadf25bb1d892fe1c4afbf74cf76bb36:/include/wx/html/webkit.h diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h index 672b6c8840..87dd797f0f 100755 --- a/include/wx/html/webkit.h +++ b/include/wx/html/webkit.h @@ -16,6 +16,8 @@ #pragma interface "webkit.h" #endif +#if wxUSE_WEBKIT + #if !defined(__WXMAC__) && !defined(__WXCOCOA__) #error "wxWebKitCtrl not implemented for this platform" #endif @@ -67,9 +69,10 @@ public: void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString); //we need to resize the webview when the control size changes - //void OnSize(wxSizeEvent &event); + void OnSize(wxSizeEvent &event); protected: DECLARE_EVENT_TABLE() + void MacVisibilityChanged(); private: wxWindow *m_parent; @@ -126,4 +129,6 @@ END_DECLARE_EVENT_TYPES() (wxWebKitStateChangedEventFunction) & func, \ (wxObject *) NULL ), +#endif // wxUSE_WEBKIT + #endif // _WX_WEBKIT_H_