#include "wx/setup.h"
-#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
+#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
-#include "webkit/webkit.h"
#include "wx/sharedptr.h"
#include "wx/webview.h"
// wxWebViewWebKit
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_WEB wxWebViewWebKit : public wxWebView
+class WXDLLIMPEXP_WEBVIEW wxWebViewWebKit : public wxWebView
{
public:
wxWebViewWebKit() { Init(); }
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
- // helper to allow access to protected member from GTK callback
- void MoveWindow(int x, int y, int width, int height)
- {
- DoMoveWindow(x, y, width, height);
- }
-
- void ZoomIn();
- void ZoomOut();
- void SetWebkitZoom(float level);
- float GetWebkitZoom() const;
-
virtual void Stop();
- virtual void LoadUrl(const wxString& url);
+ virtual void LoadURL(const wxString& url);
virtual void GoBack();
virtual void GoForward();
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
private:
+ void ZoomIn();
+ void ZoomOut();
+ void SetWebkitZoom(float level);
+ float GetWebkitZoom() const;
+
// focus event handler: calls GTKUpdateBitmap()
void GTKOnFocus(wxFocusEvent& event);
GtkWidget *web_view;
- gint m_historyLimit;
+ int m_historyLimit;
wxVector<wxSharedPtr<wxWebViewHandler> > m_handlerList;
wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
};
-#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
+#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
#endif