From 882b7b2ac4db4348b28f0de68e48febbfd814a70 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Tue, 5 Oct 2010 03:34:53 +0000 Subject: Adds RenderViewHost::ExecuteJavascriptInWebFrameNotifyResult which executes script and uses a notification to post the results back. BUG=54833 TEST=none Review URL: http://codereview.chromium.org/3591008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61475 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_view.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'chrome/renderer/render_view.h') diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index 2292a3c..2fb488c 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -232,8 +232,10 @@ class RenderView : public RenderWidget, void SetSuggestResult(const std::string& suggest); // Evaluates a string of JavaScript in a particular frame. - void EvaluateScript(const std::wstring& frame_xpath, - const std::wstring& jscript); + void EvaluateScript(const string16& frame_xpath, + const string16& jscript, + int id, + bool notify_result); // Adds the given file chooser request to the file_chooser_completion_ queue // (see that var for more) and requests the chooser be displayed if there are @@ -828,8 +830,10 @@ class RenderView : public RenderWidget, void OnReservePageIDRange(int size_of_range); void OnResetPageEncodingToDefault(); void OnRevertTranslation(int page_id); - void OnScriptEvalRequest(const std::wstring& frame_xpath, - const std::wstring& jscript); + void OnScriptEvalRequest(const string16& frame_xpath, + const string16& jscript, + int id, + bool notify_result); void OnSelectAll(); void OnSetAccessibilityFocus(int acc_obj_id); void OnSetActive(bool active); -- cgit v1.1