summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/WebFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/WebFrame.h')
-rw-r--r--WebKit/wx/WebFrame.h31
1 files changed, 27 insertions, 4 deletions
diff --git a/WebKit/wx/WebFrame.h b/WebKit/wx/WebFrame.h
index fec6257..f09c884 100644
--- a/WebKit/wx/WebFrame.h
+++ b/WebKit/wx/WebFrame.h
@@ -35,23 +35,31 @@
#include "WebKitDefines.h"
+class WebDOMElement;
+class WebDOMNode;
+
+#include "WebDOMSelection.h"
+
+class Element;
+
class WebFramePrivate;
class WebViewFrameData;
class wxWebView;
namespace WebCore {
class ChromeClientWx;
- class FrameLoaderClientWx;
class EditorClientWx;
- class Frame;
+ class FrameLoaderClientWx;
+ class Frame;
}
class WXDLLIMPEXP_WEBKIT wxWebViewDOMElementInfo
{
public:
wxWebViewDOMElementInfo();
+ wxWebViewDOMElementInfo(const wxWebViewDOMElementInfo& other);
- ~wxWebViewDOMElementInfo() { }
+ ~wxWebViewDOMElementInfo();
wxString GetTagName() const { return m_tagName; }
void SetTagName(const wxString& name) { m_tagName = name; }
@@ -67,9 +75,16 @@ public:
wxString GetLink() const { return m_link; }
void SetLink(const wxString& link) { m_link = link; }
+
+ WebDOMNode* GetInnerNode() { return m_innerNode; }
+ void SetInnerNode(WebDOMNode* node) { m_innerNode = node; }
+
+ WebDOMElement* GetURLElement() { return m_urlElement; }
+ void SetURLElement(WebDOMElement* url) { m_urlElement = url; }
private:
- void* m_domElement;
+ WebDOMNode* m_innerNode;
+ WebDOMElement* m_urlElement;
bool m_isSelected;
wxString m_tagName;
wxString m_text;
@@ -82,6 +97,7 @@ enum wxWebKitParseMode { Compat, AlmostStrict, Strict, NoDocument };
class WXDLLIMPEXP_WEBKIT wxWebFrame
{
+public:
// ChromeClientWx needs to get the Page* stored by the wxWebView
// for the createWindow function.
friend class WebCore::ChromeClientWx;
@@ -124,7 +140,14 @@ public:
wxString GetAsMarkup();
wxString GetExternalRepresentation();
+ wxWebKitSelection GetSelection();
+ wxString GetSelectionAsHTML();
+ wxString GetSelectionAsText();
+
wxString RunScript(const wxString& javascript);
+ bool ExecuteEditCommand(const wxString& command, const wxString& parameter = wxEmptyString);
+ EditState GetEditCommandState(const wxString& command) const;
+ wxString GetEditCommandValue(const wxString& command) const;
bool FindString(const wxString& string, bool forward = true,
bool caseSensitive = false, bool wrapSelection = true,