summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 00:39:17 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 00:39:17 +0000
commit1b44bb9683e902b84616e42d00f486dc0ca4ed9a (patch)
treebc96e2c98aaaddeef9b7366d14d8ba45e71ed61f /chrome/common
parent2fd6c6d0ffca6993559b5aac0b3dde8a75c3d338 (diff)
downloadchromium_src-1b44bb9683e902b84616e42d00f486dc0ca4ed9a.zip
chromium_src-1b44bb9683e902b84616e42d00f486dc0ca4ed9a.tar.gz
chromium_src-1b44bb9683e902b84616e42d00f486dc0ca4ed9a.tar.bz2
Register an onmessage handler with the external host binding instead of explicitly passing
in a target Javascript function to execute. The onmessage handler is a one argument Javascript function for now. Review URL: http://codereview.chromium.org/28291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index b81610d..902ac0b 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -457,8 +457,7 @@ IPC_BEGIN_MESSAGES(View)
std::string /* event arguments */)
#endif
// Posts a message to the renderer.
- IPC_MESSAGE_ROUTED2(ViewMsg_HandleMessageFromExternalHost,
- std::string /* The target for the message */,
+ IPC_MESSAGE_ROUTED1(ViewMsg_HandleMessageFromExternalHost,
std::string /* The message */)
// Sent to the renderer when a popup window should no longer count against