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

Unified Diff: Source/WebCore/bindings/dart/DartDOMData.h

Issue 10745003: Properly retain non-node event listeners. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
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
« no previous file with comments | « no previous file | Source/WebCore/bindings/dart/DartDOMWrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/dart/DartDOMData.h
diff --git a/Source/WebCore/bindings/dart/DartDOMData.h b/Source/WebCore/bindings/dart/DartDOMData.h
index 868cc737012825ded15232eb68f0d68330165f12..ae90fc1f7f1bed645df93c102791f499ee6b35cc 100644
--- a/Source/WebCore/bindings/dart/DartDOMData.h
+++ b/Source/WebCore/bindings/dart/DartDOMData.h
@@ -45,6 +45,7 @@ class DOMWindow;
class DartApplicationLoader;
class DartEventListener;
class DartWeakCallback;
+class EventTarget;
class MessagePort;
class Node;
class ScriptExecutionContext;
@@ -53,6 +54,7 @@ typedef HashMap<Node*, Dart_Handle> DartDOMNodeMap;
typedef HashMap<void*, Dart_Handle> DartDOMObjectMap;
typedef HashMap<MessagePort*, Dart_Handle> DartMessagePortMap;
typedef HashMap<ActiveDOMObject*, Dart_Handle> DartActiveDOMObjectMap;
+typedef HashMap<EventTarget*, Dart_Handle> DartEventTargetMap;
typedef HashSet<DartWeakCallback*> DartWeakCallbacks;
class DartDOMData {
@@ -70,6 +72,7 @@ public:
DartDOMObjectMap* objectMap() { return &m_objectMap; }
DartMessagePortMap* messagePortMap() { return &m_messagePortMap; }
DartActiveDOMObjectMap* activeObjectMap() { return &m_activeObjectMap; }
+ DartEventTargetMap* eventTargetMap() { return &m_eventTargetMap; }
DartWeakCallbacks* weakCallbacks() { return &m_weakCallbacks; }
private:
@@ -82,6 +85,7 @@ private:
DartDOMObjectMap m_objectMap;
DartMessagePortMap m_messagePortMap;
DartActiveDOMObjectMap m_activeObjectMap;
+ DartEventTargetMap m_eventTargetMap;
DartWeakCallbacks m_weakCallbacks;
};
« no previous file with comments | « no previous file | Source/WebCore/bindings/dart/DartDOMWrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698