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

Unified Diff: chrome/browser/extensions/browser_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/browser_event_router.h
diff --git a/chrome/browser/extensions/browser_event_router.h b/chrome/browser/extensions/browser_event_router.h
index d9a48a394f51ba9747b32abf8632b27aa103f7a2..3a461507a0d97f2fe58c2b2916e288b1743e3760 100644
--- a/chrome/browser/extensions/browser_event_router.h
+++ b/chrome/browser/extensions/browser_event_router.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/extensions/api/tabs/tabs.h"
+#include "chrome/browser/extensions/event_router.h"
#include "chrome/browser/extensions/extension_toolbar_model.h"
#include "chrome/browser/ui/browser_list_observer.h"
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
@@ -106,12 +107,14 @@ class BrowserEventRouter : public TabStripModelObserver,
// so we avoid duplication by dropping events destined for other profiles.
void DispatchEvent(Profile* profile,
const char* event_name,
- const std::string& json_args);
+ const std::string& json_args,
+ EventRouter::UserGestureState user_gesture);
void DispatchEventToExtension(Profile* profile,
const std::string& extension_id,
const char* event_name,
- const std::string& json_args);
+ const std::string& json_args,
+ EventRouter::UserGestureState user_gesture);
void DispatchEventsAcrossIncognito(Profile* profile,
const char* event_name,
@@ -122,7 +125,8 @@ class BrowserEventRouter : public TabStripModelObserver,
const std::string& extension_id,
const char* event_name,
const content::WebContents* web_contents,
- bool active);
+ bool active,
+ EventRouter::UserGestureState user_gesture);
void DispatchSimpleBrowserEvent(Profile* profile,
const int window_id,
« no previous file with comments | « no previous file | chrome/browser/extensions/browser_event_router.cc » ('j') | chrome/browser/extensions/browser_event_router.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698