| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 PassRefPtr<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const AtomicSt
ring& type, const RTCDTMFToneChangeEventInit& initializer) | 45 PassRefPtr<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const AtomicSt
ring& type, const RTCDTMFToneChangeEventInit& initializer) |
| 46 { | 46 { |
| 47 ASSERT(type == eventNames().tonechangeEvent); | 47 ASSERT(type == eventNames().tonechangeEvent); |
| 48 return adoptRef(new RTCDTMFToneChangeEvent(initializer)); | 48 return adoptRef(new RTCDTMFToneChangeEvent(initializer)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent() | 51 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent() |
| 52 { | 52 { |
| 53 ScriptWrappable::init(this); |
| 53 } | 54 } |
| 54 | 55 |
| 55 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone) | 56 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone) |
| 56 : Event(eventNames().tonechangeEvent, false, false) | 57 : Event(eventNames().tonechangeEvent, false, false) |
| 57 , m_tone(tone) | 58 , m_tone(tone) |
| 58 { | 59 { |
| 60 ScriptWrappable::init(this); |
| 59 } | 61 } |
| 60 | 62 |
| 61 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit&
initializer) | 63 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit&
initializer) |
| 62 : Event(eventNames().tonechangeEvent, initializer) | 64 : Event(eventNames().tonechangeEvent, initializer) |
| 63 , m_tone(initializer.tone) | 65 , m_tone(initializer.tone) |
| 64 { | 66 { |
| 67 ScriptWrappable::init(this); |
| 65 } | 68 } |
| 66 | 69 |
| 67 RTCDTMFToneChangeEvent::~RTCDTMFToneChangeEvent() | 70 RTCDTMFToneChangeEvent::~RTCDTMFToneChangeEvent() |
| 68 { | 71 { |
| 69 } | 72 } |
| 70 | 73 |
| 71 const String& RTCDTMFToneChangeEvent::tone() const | 74 const String& RTCDTMFToneChangeEvent::tone() const |
| 72 { | 75 { |
| 73 return m_tone; | 76 return m_tone; |
| 74 } | 77 } |
| 75 | 78 |
| 76 const AtomicString& RTCDTMFToneChangeEvent::interfaceName() const | 79 const AtomicString& RTCDTMFToneChangeEvent::interfaceName() const |
| 77 { | 80 { |
| 78 return eventNames().interfaceForRTCDTMFToneChangeEvent; | 81 return eventNames().interfaceForRTCDTMFToneChangeEvent; |
| 79 } | 82 } |
| 80 | 83 |
| 81 } // namespace WebCore | 84 } // namespace WebCore |
| 82 | 85 |
| 83 #endif // ENABLE(MEDIA_STREAM) | 86 #endif // ENABLE(MEDIA_STREAM) |
| 84 | 87 |
| OLD | NEW |