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

Unified Diff: Source/modules/mediastream/RTCDTMFSender.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/mediastream/MediaStreamTrack.cpp ('k') | Source/modules/mediastream/RTCDTMFSender.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/RTCDTMFSender.h
diff --git a/Source/modules/mediastream/RTCDTMFSender.h b/Source/modules/mediastream/RTCDTMFSender.h
index e7980dfe8a456326be137db50dd17b954e7fd6d3..5924f7ffee2125df76e5d71d1eea736089cc3052 100644
--- a/Source/modules/mediastream/RTCDTMFSender.h
+++ b/Source/modules/mediastream/RTCDTMFSender.h
@@ -40,7 +40,7 @@ class MediaStreamTrack;
class RTCDTMFSenderHandler;
class RTCPeerConnectionHandler;
-class RTCDTMFSender : public RefCounted<RTCDTMFSender>, public ScriptWrappable, public EventTarget, public RTCDTMFSenderHandlerClient, public ActiveDOMObject {
+class RTCDTMFSender : public RefCounted<RTCDTMFSender>, public ScriptWrappable, public EventTargetWithInlineData, public RTCDTMFSenderHandlerClient, public ActiveDOMObject {
public:
static PassRefPtr<RTCDTMFSender> create(ScriptExecutionContext*, RTCPeerConnectionHandler*, PassRefPtr<MediaStreamTrack>, ExceptionState&);
~RTCDTMFSender();
@@ -74,11 +74,8 @@ private:
void scheduledEventTimerFired(Timer<RTCDTMFSender>*);
// EventTarget
- virtual EventTargetData* eventTargetData() OVERRIDE;
- virtual EventTargetData* ensureEventTargetData() OVERRIDE;
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
- EventTargetData m_eventTargetData;
// RTCDTMFSenderHandlerClient
virtual void didPlayTone(const String&) OVERRIDE;
« no previous file with comments | « Source/modules/mediastream/MediaStreamTrack.cpp ('k') | Source/modules/mediastream/RTCDTMFSender.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698