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

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

Issue 10821120: Send user gesture to extensions for page and browser action clicks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: chrome/browser/extensions/event_router.h
diff --git a/chrome/browser/extensions/event_router.h b/chrome/browser/extensions/event_router.h
index f0cf6abb288cc526e753c5116158b285c3c35801..dded981d3a2633e2477808af398857e0579e8022 100644
--- a/chrome/browser/extensions/event_router.h
+++ b/chrome/browser/extensions/event_router.h
@@ -126,6 +126,13 @@ class EventRouter : public content::NotificationObserver,
Profile* restrict_to_profile,
const GURL& event_url);
+ // As above, but enables sending an explicit user gesture indicator.
+ void DispatchEventToRenderers(const std::string& event_name,
+ const std::string& event_args,
+ Profile* restrict_to_profile,
+ const GURL& event_url,
+ UserGestureState user_gesture);
+
// Same as above, except only send the event to the given extension.
virtual void DispatchEventToExtension(const std::string& extension_id,
const std::string& event_name,

Powered by Google App Engine
This is Rietveld 408576698