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

Side by Side Diff: Source/modules/mediastream/RTCDTMFSender.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 21 matching lines...) Expand all
32 #include "core/platform/Timer.h" 32 #include "core/platform/Timer.h"
33 #include "core/platform/mediastream/RTCDTMFSenderHandlerClient.h" 33 #include "core/platform/mediastream/RTCDTMFSenderHandlerClient.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class MediaStreamTrack; 38 class MediaStreamTrack;
39 class RTCPeerConnectionHandler; 39 class RTCPeerConnectionHandler;
40 class RTCDTMFSenderHandler; 40 class RTCDTMFSenderHandler;
41 41
42 class RTCDTMFSender : public RefCounted<RTCDTMFSender>, public ScriptWrappable, public EventTarget, public RTCDTMFSenderHandlerClient, public ActiveDOMObject { 42 class RTCDTMFSender : public EventTarget, public RefCounted<RTCDTMFSender>, publ ic ScriptWrappable, public RTCDTMFSenderHandlerClient, public ActiveDOMObject {
43 public: 43 public:
44 static PassRefPtr<RTCDTMFSender> create(ScriptExecutionContext*, RTCPeerConn ectionHandler*, PassRefPtr<MediaStreamTrack>, ExceptionCode&); 44 static PassRefPtr<RTCDTMFSender> create(ScriptExecutionContext*, RTCPeerConn ectionHandler*, PassRefPtr<MediaStreamTrack>, ExceptionCode&);
45 ~RTCDTMFSender(); 45 ~RTCDTMFSender();
46 46
47 bool canInsertDTMF() const; 47 bool canInsertDTMF() const;
48 MediaStreamTrack* track() const; 48 MediaStreamTrack* track() const;
49 String toneBuffer() const; 49 String toneBuffer() const;
50 long duration() const { return m_duration; } 50 long duration() const { return m_duration; }
51 long interToneGap() const { return m_interToneGap; } 51 long interToneGap() const { return m_interToneGap; }
52 52
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 bool m_stopped; 91 bool m_stopped;
92 92
93 Timer<RTCDTMFSender> m_scheduledEventTimer; 93 Timer<RTCDTMFSender> m_scheduledEventTimer;
94 Vector<RefPtr<Event> > m_scheduledEvents; 94 Vector<RefPtr<Event> > m_scheduledEvents;
95 }; 95 };
96 96
97 } // namespace WebCore 97 } // namespace WebCore
98 98
99 #endif // RTCDTMFSender_h 99 #endif // RTCDTMFSender_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698