diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 03:34:53 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 03:34:53 +0000 |
commit | 882b7b2ac4db4348b28f0de68e48febbfd814a70 (patch) | |
tree | aa53683904901bebe5f012851bede0edb20f757c /chrome/renderer/render_view.h | |
parent | 428f54bcc8e53882375b7fb9f30b2bc577c59b8a (diff) | |
download | chromium_src-882b7b2ac4db4348b28f0de68e48febbfd814a70.zip chromium_src-882b7b2ac4db4348b28f0de68e48febbfd814a70.tar.gz chromium_src-882b7b2ac4db4348b28f0de68e48febbfd814a70.tar.bz2 |
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
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r-- | chrome/renderer/render_view.h | 12 |
1 files changed, 8 insertions, 4 deletions
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); |