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

Unified Diff: extensions/renderer/api_event_handler.h

Issue 2901383008: [Extenisons Bindings] Support `unmanaged` property for events (Closed)
Patch Set: rebase Created 3 years, 7 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 | « extensions/renderer/api_binding_js_util.cc ('k') | extensions/renderer/api_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_event_handler.h
diff --git a/extensions/renderer/api_event_handler.h b/extensions/renderer/api_event_handler.h
index 13451d4b5cbec6f218d32cdd633b19d6f9659ed7..35278bba8a2f2fce6487eb733ae8d5d2ab448c70 100644
--- a/extensions/renderer/api_event_handler.h
+++ b/extensions/renderer/api_event_handler.h
@@ -42,10 +42,12 @@ class APIEventHandler {
const EventListenersChangedMethod& listeners_changed);
~APIEventHandler();
- // Returns a new v8::Object for an event with the given |event_name|.
+ // Returns a new v8::Object for an event with the given |event_name|. If
+ // |notify_on_change| is true, notifies whenever listeners state is changed.
v8::Local<v8::Object> CreateEventInstance(const std::string& event_name,
bool supports_filters,
int max_listeners,
+ bool notify_on_change,
v8::Local<v8::Context> context);
// Creates a new event without any name. This is used by custom bindings when
« no previous file with comments | « extensions/renderer/api_binding_js_util.cc ('k') | extensions/renderer/api_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698