Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: webkit/glue/webframe_impl.cc

Issue 6274: Greasemonkey support. (Closed)
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/renderer/render_view.cc ('K') | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index 1e0e778fd8b4656aeb0694b43b0f6706012ec088..b19ab2d451c45cb3049bcaa29426c600ed55ce9a 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -320,6 +320,13 @@ void WebFrameImpl::LoadRequest(WebRequest* request) {
InternalLoadRequest(request, data, false);
}
+void WebFrameImpl::ExecuteJavaScript(const std::wstring& code,
+ const std::wstring& url) {
+ frame_->loader()->executeScript(webkit_glue::StdWStringToString(url),
+ 1 /* base line number (for errors) */,
+ webkit_glue::StdWStringToString(code));
+}
+
void WebFrameImpl::InternalLoadRequest(const WebRequest* request,
const SubstituteData& data,
bool replace) {
« chrome/renderer/render_view.cc ('K') | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698