bool CanGetPageSource();
wxString GetPageSource();
void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString);
+ wxString GetPageURL(){ return m_currentURL; }
+ wxString GetPageTitle(){ return m_pageTitle; }
//we need to resize the webview when the control size changes
void OnSize(wxSizeEvent &event);
wxWindowID m_windowID;
wxString m_currentURL;
wxString m_pageTitle;
- objc_object* m_webView;
- //It should be WebView, but WebView is Cocoa only, so any class which included
- //this header would have to link to Cocoa, so for now use void* instead.
+ struct objc_object *m_webView;
+ //It should be WebView*, but WebView is an Objective-C class
+ //TODO: look into using DECLARE_WXCOCOA_OBJC_CLASS rather than this.
};
// ----------------------------------------------------------------------------