summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authortangjie@chromium.org <tangjie@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 18:27:20 +0000
committertangjie@chromium.org <tangjie@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 18:27:20 +0000
commit20ad269e71dc2a920bb2dc6a71591066aa4192cf (patch)
tree162984e2e7d9fc8d95065f510e9d3aa4d8b03104 /chrome/browser/tab_contents
parentee607b3e208cca332328f219f58e133a08f998d9 (diff)
downloadchromium_src-20ad269e71dc2a920bb2dc6a71591066aa4192cf.zip
chromium_src-20ad269e71dc2a920bb2dc6a71591066aa4192cf.tar.gz
chromium_src-20ad269e71dc2a920bb2dc6a71591066aa4192cf.tar.bz2
Make executeScript and insertCSS inject code into all frames.
Patched from 401007(see http://codereview.chromium.org/401007/) to commit. Reviewed by aa and darin. R=aa,darin Review URL: http://codereview.chromium.org/421005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc6
-rw-r--r--chrome/browser/tab_contents/tab_contents.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 7706c5b..0251f03 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -815,10 +815,12 @@ void TabContents::CloseAllSuppressedPopups() {
}
void TabContents::ExecuteCode(int request_id, const std::string& extension_id,
- bool is_js_code, const std::string& code_string) {
+ bool is_js_code, const std::string& code_string,
+ bool all_frames) {
render_view_host()->Send(
new ViewMsg_ExecuteCode(render_view_host()->routing_id(), request_id,
- extension_id, is_js_code, code_string));
+ extension_id, is_js_code, code_string,
+ all_frames));
}
void TabContents::PopupNotificationVisibilityChanged(bool visible) {
diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
index 1b1bd13..e440a53 100644
--- a/chrome/browser/tab_contents/tab_contents.h
+++ b/chrome/browser/tab_contents/tab_contents.h
@@ -363,7 +363,8 @@ class TabContents : public PageNavigator,
// Execute code in this tab.
void ExecuteCode(int request_id, const std::string& extension_id,
- bool is_js_code, const std::string& code_string);
+ bool is_js_code, const std::string& code_string,
+ bool all_frames);
// Called when the blocked popup notification is shown or hidden.
virtual void PopupNotificationVisibilityChanged(bool visible);