Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: chrome/browser/extensions/browser_event_router.h

Issue 10829186: Tabs API is usable without tabs permission. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ETU now SetString()'s for empty values Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_test.cc ('k') | chrome/browser/extensions/browser_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
+ 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,
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_test.cc ('k') | chrome/browser/extensions/browser_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698