Add RunScript and implement on all backends. Document and add a very simple unit test.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-15 12:38:47 +00:00
parent 41933aa5a0
commit c9ccc09c64
9 changed files with 45 additions and 34 deletions

View File

@@ -792,6 +792,12 @@ wxString wxWebViewWebKit::GetPageText()
wxConvUTF8);
}
void wxWebViewWebKit::RunScript(const wxString& javascript)
{
webkit_web_view_execute_script(WEBKIT_WEB_VIEW(web_view),
javascript.mb_str(wxConvUTF8));
}
// static
wxVisualAttributes
wxWebViewWebKit::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))