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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 es.throwUninformativeAndGenericDOMException(SyntaxError); | 122 es.throwUninformativeAndGenericDOMException(SyntaxError); |
123 } | 123 } |
124 | 124 |
125 void RTCDTMFSender::didPlayTone(const String& tone) | 125 void RTCDTMFSender::didPlayTone(const String& tone) |
126 { | 126 { |
127 scheduleDispatchEvent(RTCDTMFToneChangeEvent::create(tone)); | 127 scheduleDispatchEvent(RTCDTMFToneChangeEvent::create(tone)); |
128 } | 128 } |
129 | 129 |
130 const AtomicString& RTCDTMFSender::interfaceName() const | 130 const AtomicString& RTCDTMFSender::interfaceName() const |
131 { | 131 { |
132 return eventNames().interfaceForRTCDTMFSender; | 132 return EventTargetNames::RTCDTMFSender; |
133 } | 133 } |
134 | 134 |
135 ExecutionContext* RTCDTMFSender::executionContext() const | 135 ExecutionContext* RTCDTMFSender::executionContext() const |
136 { | 136 { |
137 return ActiveDOMObject::executionContext(); | 137 return ActiveDOMObject::executionContext(); |
138 } | 138 } |
139 | 139 |
140 void RTCDTMFSender::stop() | 140 void RTCDTMFSender::stop() |
141 { | 141 { |
142 m_stopped = true; | 142 m_stopped = true; |
(...skipping 15 matching lines...) Expand all Loading... |
158 | 158 |
159 Vector<RefPtr<Event> > events; | 159 Vector<RefPtr<Event> > events; |
160 events.swap(m_scheduledEvents); | 160 events.swap(m_scheduledEvents); |
161 | 161 |
162 Vector<RefPtr<Event> >::iterator it = events.begin(); | 162 Vector<RefPtr<Event> >::iterator it = events.begin(); |
163 for (; it != events.end(); ++it) | 163 for (; it != events.end(); ++it) |
164 dispatchEvent((*it).release()); | 164 dispatchEvent((*it).release()); |
165 } | 165 } |
166 | 166 |
167 } // namespace WebCore | 167 } // namespace WebCore |
OLD | NEW |