Chromium Code Reviews| Index: chrome/browser/extensions/browser_event_router.h |
| diff --git a/chrome/browser/extensions/browser_event_router.h b/chrome/browser/extensions/browser_event_router.h |
| index c9edaee7a6e39ccebfeda7dc6402b9b58b5ed058..69732c24ef295e8a6fcccf4ef2c50212c3370664 100644 |
| --- a/chrome/browser/extensions/browser_event_router.h |
| +++ b/chrome/browser/extensions/browser_event_router.h |
| @@ -127,7 +127,20 @@ class BrowserEventRouter : public TabStripModelObserver, |
| const char* event_name, |
| const content::WebContents* web_contents, |
| bool active, |
| - EventRouter::UserGestureState user_gesture); |
| + EventRouter::UserGestureState user_gesture, |
| + scoped_ptr<ListValue> event_args); |
| + |
| + // DispatchEvent with a tab value appended as the last argument. |
|
chebert
2012/09/04 15:56:18
Idk if it matters, but I think I should have put t
|
| + void DispatchEventWithTab(Profile* profile, |
| + const std::string& extension_id, |
| + const char* event_name, |
| + const content::WebContents* web_contents, |
| + bool active, |
| + EventRouter::UserGestureState user_gesture) { |
| + DispatchEventWithTab(profile, extension_id, event_name, web_contents, |
| + active, user_gesture, |
| + scoped_ptr<ListValue>(new ListValue).Pass()); |
| + } |
| void DispatchSimpleBrowserEvent(Profile* profile, |
| const int window_id, |