Index: webkit/glue/webframe_impl.cc |
=================================================================== |
--- webkit/glue/webframe_impl.cc (revision 3492) |
+++ webkit/glue/webframe_impl.cc (working copy) |
@@ -1595,6 +1595,13 @@ |
error_page_url)); |
} |
+void WebFrameImpl::ExecuteJavaScript(const std::string& js_code, |
+ const std::string& script_url) { |
+ frame_->loader()->executeScript(webkit_glue::StdStringToString(script_url), |
+ 1, // base line number (for errors) |
+ webkit_glue::StdStringToString(js_code)); |
+} |
+ |
std::wstring WebFrameImpl::GetName() { |
return webkit_glue::StringToStdWString(frame_->tree()->name()); |
} |