Expose findString in wxWebView as FindString.
https://bugs.webkit.org/show_bug.cgi?id=22458
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39273
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-12-13 Kevin Watters <kevinwatters@gmail.com>
+
+ Reviewed by Kevin Ollivier.
+
+ Expose findString in wxWebView as FindString.
+
+ https://bugs.webkit.org/show_bug.cgi?id=22458
+
+ * WebView.cpp:
+ (wxWebView::FindString):
+ * WebView.h:
+
2008-12-09 Brett Wilson <brettw@chromium.org>
Reviewed by Dave Hyatt.
return returnValue;
}
+bool wxWebFrame::FindString(const wxString& string, bool forward, bool caseSensitive, bool wrapSelection, bool startInSelection)
+{
+ if (m_impl->frame)
+ return m_impl->frame->findString(string, forward, caseSensitive, wrapSelection, startInSelection);
+
+ return false;
+}
+
void wxWebFrame::LoadURL(const wxString& url)
{
if (m_impl->frame && m_impl->frame->loader()) {
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();
bool CanDecreaseTextSize() const;
}
}
+bool wxWebView::FindString(const wxString& string, bool forward, bool caseSensitive, bool wrapSelection, bool startInSelection)
+{
+ if (m_mainFrame)
+ return m_mainFrame->FindString(string, forward, caseSensitive, wrapSelection, startInSelection);
+
+ return false;
+}
+
void wxWebView::OnSize(wxSizeEvent& event)
{
if (m_isInitialized && m_mainFrame) {
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();