diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-16 02:41:28 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-16 02:41:28 +0000 |
commit | b68d5ed3f9d1b49b24713431bfe212b7601b75b1 (patch) | |
tree | 9d374ca1d7c1f5f8a25fefacde0bcf3396595da6 /chrome/renderer/extensions/renderer_extension_bindings.h | |
parent | f606747ffb21e9d0c6d55c9b57d42445503728f1 (diff) | |
download | chromium_src-b68d5ed3f9d1b49b24713431bfe212b7601b75b1.zip chromium_src-b68d5ed3f9d1b49b24713431bfe212b7601b75b1.tar.gz chromium_src-b68d5ed3f9d1b49b24713431bfe212b7601b75b1.tar.bz2 |
Initial plumbing for sending events from the browser to extension renderers. Implement onTabMoved.
Review URL: http://codereview.chromium.org/73065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/renderer_extension_bindings.h')
-rwxr-xr-x | chrome/renderer/extensions/renderer_extension_bindings.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/renderer_extension_bindings.h b/chrome/renderer/extensions/renderer_extension_bindings.h index 3fc1fb4..374dfb6 100755 --- a/chrome/renderer/extensions/renderer_extension_bindings.h +++ b/chrome/renderer/extensions/renderer_extension_bindings.h @@ -27,6 +27,12 @@ class RendererExtensionBindings { // Dispatch the given message sent on this channel. static void HandleMessage(const std::string& message, int port_id); + + // Send this event to all extensions in this process. |args| is a JSON- + // serialized array that will be deserialized and provided to the callback + // function in event_bindings.js + static void HandleEvent(const std::string& event_name, + const std::string& args); }; #endif // CHROME_RENDERER_EXTENSIONS_RENDERER_EXTENSION_BINDINGS_H_ |