diff options
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h b/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h index 0693db694..112d529a5 100644 --- a/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h +++ b/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h @@ -23,42 +23,38 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RTCDTMFToneChangeEvent_h -#define RTCDTMFToneChangeEvent_h +#pragma once -#if ENABLE(MEDIA_STREAM) +#if ENABLE(WEB_RTC) #include "Event.h" #include <wtf/text/AtomicString.h> namespace WebCore { -struct RTCDTMFToneChangeEventInit : public EventInit { - String tone; -}; - class RTCDTMFToneChangeEvent : public Event { public: virtual ~RTCDTMFToneChangeEvent(); - static PassRefPtr<RTCDTMFToneChangeEvent> create(); - static PassRefPtr<RTCDTMFToneChangeEvent> create(const String& tone); - static PassRefPtr<RTCDTMFToneChangeEvent> create(const AtomicString& type, const RTCDTMFToneChangeEventInit& initializer); + static Ref<RTCDTMFToneChangeEvent> create(const String& tone); + + struct Init : EventInit { + String tone; + }; + + static Ref<RTCDTMFToneChangeEvent> create(const AtomicString& type, const Init&, IsTrusted = IsTrusted::No); const String& tone() const; virtual EventInterface eventInterface() const; private: - RTCDTMFToneChangeEvent(); explicit RTCDTMFToneChangeEvent(const String& tone); - explicit RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit&); + RTCDTMFToneChangeEvent(const AtomicString& type, const Init&, IsTrusted); String m_tone; }; } // namespace WebCore -#endif // ENABLE(MEDIA_STREAM) - -#endif // RTCDTMFToneChangeEvent_h +#endif // ENABLE(WEB_RTC) |