+enum {
+ wxWEBKIT_NAV_LINK_CLICKED = 1,
+ wxWEBKIT_NAV_BACK_NEXT = 2,
+ wxWEBKIT_NAV_FORM_SUBMITTED = 4,
+ wxWEBKIT_NAV_RELOAD = 8,
+ wxWEBKIT_NAV_FORM_RESUBMITTED = 16,
+ wxWEBKIT_NAV_OTHER = 32
+
+};
+
+
+
+class WXDLLIMPEXP_CORE wxWebKitBeforeLoadEvent : public wxCommandEvent
+{
+ DECLARE_DYNAMIC_CLASS( wxWebKitBeforeLoadEvent )
+
+public:
+ bool IsCancelled() { return m_cancelled; }
+ void Cancel(bool cancel = true) { m_cancelled = cancel; }
+ wxString GetURL() { return m_url; }
+ void SetURL(const wxString& url) { m_url = url; }
+ void SetNavigationType(int navType) { m_navType = navType; }
+ int GetNavigationType() { return m_navType; }
+
+ wxWebKitBeforeLoadEvent( wxWindow* win = NULL );
+ wxEvent *Clone(void) const { return new wxWebKitBeforeLoadEvent(*this); }
+
+protected:
+ bool m_cancelled;
+ wxString m_url;
+ int m_navType;
+};
+
+class WXDLLIMPEXP_CORE wxWebKitStateChangedEvent : public wxCommandEvent