From 20ad269e71dc2a920bb2dc6a71591066aa4192cf Mon Sep 17 00:00:00 2001 From: "tangjie@chromium.org" Date: Fri, 20 Nov 2009 18:27:20 +0000 Subject: 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 --- chrome/common/render_messages_internal.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/common/render_messages_internal.h') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index ec9e869..618b46d 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -736,12 +736,15 @@ IPC_BEGIN_MESSAGES(View) ViewType::Type /* view_type */) // Notification that renderer should run some JavaScript code. - IPC_MESSAGE_ROUTED4(ViewMsg_ExecuteCode, + IPC_MESSAGE_ROUTED5(ViewMsg_ExecuteCode, int, /* request id */ std::string, /* id of extension which runs the scripts */ bool, /* It's true if the code is JavaScript; Otherwise the code is CSS text. */ - std::string /* code would be executed */) + std::string, /* code would be executed */ + bool /* It's true if the code would be injected into all + frames; Otherwise the code is only injected into + top main frame */) // Returns a file handle IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, -- cgit v1.1