Commit 6f045fff authored by kevino@webkit.org's avatar kevino@webkit.org

Reviewed by Kevin Ollivier.

Add a way to get the parse mode to wxWebKit API.
        
https://bugs.webkit.org/show_bug.cgi?id=34341


git-svn-id: svn://svn.chromium.org/blink/trunk@54105 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a117719b
2010-01-27 Kevin Watters <kevinwatters@gmail.com>
Reviewed by Kevin Ollivier.
Add a way to get the parse mode to wxWebKit API.
https://bugs.webkit.org/show_bug.cgi?id=34341
* WebFrame.cpp:
(wxWebFrame::GetParseMode):
* WebFrame.h:
* WebView.cpp:
(wxWebView::GetParseMode):
* WebView.h:
2010-01-22 Kevin Watters <kevinwatters@gmail.com>
Reviewed by Kevin Ollivier.
......
......@@ -418,3 +418,11 @@ bool wxWebFrame::ShouldClose() const
return true;
}
wxWebKitParseMode wxWebFrame::GetParseMode() const
{
if (m_impl->frame && m_impl->frame->document())
return (wxWebKitParseMode)m_impl->frame->document()->parseMode();
return NoDocument;
}
......@@ -77,6 +77,9 @@ private:
wxString m_link;
};
// based on enums in WebCore/dom/Document.h
enum wxWebKitParseMode { Compat, AlmostStrict, Strict, NoDocument };
class WXDLLIMPEXP_WEBKIT wxWebFrame
{
// ChromeClientWx needs to get the Page* stored by the wxWebView
......@@ -141,6 +144,8 @@ public:
bool ShouldClose() const;
wxWebKitParseMode GetParseMode() const;
private:
float m_textMagnifier;
bool m_isEditable;
......
......@@ -972,3 +972,11 @@ wxWebSettings wxWebView::GetWebSettings()
return wxWebSettings();
}
wxWebKitParseMode wxWebView::GetParseMode() const
{
if (m_mainFrame)
return m_mainFrame->GetParseMode();
return NoDocument;
}
\ No newline at end of file
......@@ -204,6 +204,8 @@ public:
wxWebSettings GetWebSettings();
wxWebKitParseMode GetParseMode() const;
protected:
// event handlers (these functions should _not_ be virtual)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment