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 c57507253ca3a254db2880e1fb31e48ccb13c429..09fe849bb273489822338983c83cd91ed789a31e 100644 |
--- a/content/renderer/browser_plugin/browser_plugin.h |
+++ b/content/renderer/browser_plugin/browser_plugin.h |
@@ -107,15 +107,7 @@ 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(); |
@@ -220,7 +212,7 @@ class CONTENT_EXPORT BrowserPlugin : |
// Triggers the event-listeners for |event_name|. |
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_; |
#if defined(OS_WIN) |
base::SharedMemory shared_memory_; |
#endif |