summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/WebView.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/WebView.h')
-rw-r--r--WebKit/wx/WebView.h44
1 files changed, 13 insertions, 31 deletions
diff --git a/WebKit/wx/WebView.h b/WebKit/wx/WebView.h
index b8fce63..387d193 100644
--- a/WebKit/wx/WebView.h
+++ b/WebKit/wx/WebView.h
@@ -33,6 +33,8 @@
#include "wx/wx.h"
#endif
+#include "WebFrame.h"
+
class WebViewPrivate;
class WebViewFrameData;
class wxWebFrame;
@@ -118,7 +120,14 @@ public:
wxString GetAsMarkup();
wxString GetExternalRepresentation();
+ void SetTransparent(bool transparent);
+ bool IsTransparent() const;
+
wxString RunScript(const wxString& javascript);
+
+ bool FindString(const wxString& string, bool forward = true,
+ bool caseSensitive = false, bool wrapSelection = true,
+ bool startInSelection = true);
bool CanIncreaseTextSize() const;
void IncreaseTextSize();
@@ -132,12 +141,16 @@ public:
wxWebFrame* GetMainFrame() { return m_mainFrame; }
+ wxWebViewDOMElementInfo HitTest(const wxPoint& post) const;
+
protected:
// event handlers (these functions should _not_ be virtual)
void OnPaint(wxPaintEvent& event);
void OnSize(wxSizeEvent& event);
void OnMouseEvents(wxMouseEvent& event);
+ void OnContextMenuEvents(wxContextMenuEvent& event);
+ void OnMenuSelectEvents(wxCommandEvent& event);
void OnKeyEvents(wxKeyEvent& event);
void OnSetFocus(wxFocusEvent& event);
void OnKillFocus(wxFocusEvent& event);
@@ -185,37 +198,6 @@ enum {
wxWEBVIEW_NAV_OTHER = 32
};
-class WXDLLIMPEXP_WEBKIT wxWebViewDOMElementInfo
-{
-public:
- wxWebViewDOMElementInfo();
-
- ~wxWebViewDOMElementInfo() { }
-
- wxString GetTagName() const { return m_tagName; }
- void SetTagName(const wxString& name) { m_tagName = name; }
-
- bool IsSelected() const { return m_isSelected; }
- void SetSelected(bool sel) { m_isSelected = sel; }
-
- wxString GetText() const { return m_text; }
- void SetText(const wxString& text) { m_text = text; }
-
- wxString GetImageSrc() const { return m_imageSrc; }
- void SetImageSrc(const wxString& src) { m_imageSrc = src; }
-
- wxString GetLink() const { return m_link; }
- void SetLink(const wxString& link) { m_link = link; }
-
-private:
- void* m_domElement;
- bool m_isSelected;
- wxString m_tagName;
- wxString m_text;
- wxString m_imageSrc;
- wxString m_link;
-};
-
class WXDLLIMPEXP_WEBKIT wxWebViewBeforeLoadEvent : public wxCommandEvent
{
#ifndef SWIG