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

Unified Diff: chrome/renderer/render_view.h

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
Index: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 71faf63b92885e538fc5bc6b20ea6a8f131d0d68..7ed124725083e0d9016f3040e7b93646e7fb64ec 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -270,9 +270,10 @@ class RenderView : public RenderWidget, public WebViewDelegate,
// periodic timer so we don't send too many messages.
void SyncNavigationState();
- // Evaluates a javascript: URL
- void EvaluateScriptUrl(const std::wstring& frame_xpath,
- const std::wstring& jscript);
+ // Evaluates javascript in the specified frame
+ void EvaluateScript(const std::wstring& frame_xpath,
+ const std::wstring& script,
+ const std::wstring& url);
// Called when the Javascript debugger is no longer attached.
// This is called from within the renderer, not via an IPC message.
@@ -403,7 +404,8 @@ class RenderView : public RenderWidget, public WebViewDelegate,
void OnGetApplicationInfo(int page_id);
void OnScriptEvalRequest(const std::wstring& frame_xpath,
- const std::wstring& jscript);
+ const std::wstring& jscript,
+ const std::wstring& filename);
void OnAddMessageToConsole(const std::wstring& frame_xpath,
const std::wstring& msg,
ConsoleMessageLevel level);

Powered by Google App Engine
This is Rietveld 408576698