Index: chrome/renderer/resources/extension_process_bindings.js |
=================================================================== |
--- chrome/renderer/resources/extension_process_bindings.js (revision 27027) |
+++ chrome/renderer/resources/extension_process_bindings.js (working copy) |
@@ -193,6 +193,13 @@ |
} |
} |
+ // Browser action events send {windowpId}. |
+ function setupBrowserActionEvent(extensionId) { |
+ var eventName = "browserAction/" + extensionId; |
+ chrome.browserAction = chrome.browserAction || {}; |
+ chrome.browserAction.onClicked = new chrome.Event(eventName); |
+ } |
+ |
function setupToolstripEvents(renderViewId) { |
chrome.toolstrip = chrome.toolstrip || {}; |
chrome.toolstrip.onExpanded = |
@@ -317,6 +324,7 @@ |
} |
setupPageActionEvents(extensionId); |
+ setupBrowserActionEvent(extensionId); |
setupToolstripEvents(GetRenderViewId()); |
}); |
})(); |