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

Unified Diff: Source/modules/webmidi/MIDIAccess.h

Issue 26878003: Reduce repetitive EventTarget subclassing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 2 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 | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccess.h
diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
index 1414f708168c2d2a3c95c3f534e9e26ca9a22063..812086191e3025bd0328f9e8fc741cbdddcfc6ec 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -47,7 +47,7 @@ namespace WebCore {
class ScriptExecutionContext;
class MIDIAccessPromise;
-class MIDIAccess : public RefCounted<MIDIAccess>, public ScriptWrappable, public ActiveDOMObject, public EventTarget, public MIDIAccessorClient {
+class MIDIAccess : public RefCounted<MIDIAccess>, public ScriptWrappable, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient {
public:
virtual ~MIDIAccess();
static PassRefPtr<MIDIAccess> create(ScriptExecutionContext*, MIDIAccessPromise*);
@@ -90,12 +90,9 @@ private:
// EventTarget
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
- virtual EventTargetData* eventTargetData() OVERRIDE { return &m_eventTargetData; }
- virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventTargetData; }
MIDIInputVector m_inputs;
MIDIOutputVector m_outputs;
- EventTargetData m_eventTargetData;
MIDIAccessPromise* m_promise;
OwnPtr<MIDIAccessor> m_accessor;
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698