Index: content/renderer/browser_plugin/browser_plugin.h |
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h |
index b8267ffb7594a73ed40e69902b3c8e677d7a135d..0db4cff8b0665003ee761f1e9638dc2afb1384e3 100644 |
--- a/content/renderer/browser_plugin/browser_plugin.h |
+++ b/content/renderer/browser_plugin/browser_plugin.h |
@@ -107,15 +107,6 @@ class CONTENT_EXPORT BrowserPlugin : |
// touch events. |
void SetAcceptTouchEvents(bool accept); |
- // Indicates whether there are any Javascript listeners attached to a |
- // provided event_name. |
- bool HasListeners(const std::string& event_name); |
- // Add a custom event listener to this BrowserPlugin instance. |
- bool AddEventListener(const std::string& event_name, |
- v8::Local<v8::Function> function); |
- // Remove a custom event listener from this BrowserPlugin instance. |
- bool RemoveEventListener(const std::string& event_name, |
- v8::Local<v8::Function> function); |
// Tells the BrowserPlugin to tell the guest to navigate to the previous |
// navigation entry in the navigation history. |
void Back(); |
@@ -218,9 +209,10 @@ class CONTENT_EXPORT BrowserPlugin : |
// Returns whether |event_name| is a valid event. |
bool IsValidEvent(const std::string& event_name); |
- // Triggers the event-listeners for |event_name|. |
+ // Triggers the event-listeners for |event_name|. Note that the function |
+ // frees all the values in |props|. |
void TriggerEvent(const std::string& event_name, |
- v8::Local<v8::Object>* event); |
+ std::map<std::string, base::Value*>* props); |
// Creates and maps transport dib. Overridden in tests. |
virtual TransportDIB* CreateTransportDIB(const size_t size); |
@@ -265,10 +257,6 @@ class CONTENT_EXPORT BrowserPlugin : |
// Tracks the visibility of the browser plugin regardless of the whole |
// embedder RenderView's visibility. |
bool visible_; |
- typedef std::vector<v8::Local<v8::Function> > EventListenersLocal; |
- typedef std::vector<v8::Persistent<v8::Function> > EventListeners; |
- typedef std::map<std::string, EventListeners> EventListenerMap; |
- EventListenerMap event_listener_map_; |
// Important: Do not add more history state here. |
// We strongly discourage storing additional history state (such as page IDs) |
// in the embedder process, at the risk of having incorrect information that |