| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 void RTCDTMFSender::scheduleDispatchEvent(Event* event) | 156 void RTCDTMFSender::scheduleDispatchEvent(Event* event) |
| 157 { | 157 { |
| 158 m_scheduledEvents.append(event); | 158 m_scheduledEvents.append(event); |
| 159 | 159 |
| 160 if (!m_scheduledEventTimer.isActive()) | 160 if (!m_scheduledEventTimer.isActive()) |
| 161 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE); | 161 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void RTCDTMFSender::scheduledEventTimerFired(Timer<RTCDTMFSender>*) | 164 void RTCDTMFSender::scheduledEventTimerFired(TimerBase*) |
| 165 { | 165 { |
| 166 if (m_stopped) | 166 if (m_stopped) |
| 167 return; | 167 return; |
| 168 | 168 |
| 169 HeapVector<Member<Event>> events; | 169 HeapVector<Member<Event>> events; |
| 170 events.swap(m_scheduledEvents); | 170 events.swap(m_scheduledEvents); |
| 171 | 171 |
| 172 HeapVector<Member<Event>>::iterator it = events.begin(); | 172 HeapVector<Member<Event>>::iterator it = events.begin(); |
| 173 for (; it != events.end(); ++it) | 173 for (; it != events.end(); ++it) |
| 174 dispatchEvent((*it).release()); | 174 dispatchEvent((*it).release()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 DEFINE_TRACE(RTCDTMFSender) | 177 DEFINE_TRACE(RTCDTMFSender) |
| 178 { | 178 { |
| 179 visitor->trace(m_track); | 179 visitor->trace(m_track); |
| 180 visitor->trace(m_scheduledEvents); | 180 visitor->trace(m_scheduledEvents); |
| 181 EventTargetWithInlineData::trace(visitor); | 181 EventTargetWithInlineData::trace(visitor); |
| 182 ActiveDOMObject::trace(visitor); | 182 ActiveDOMObject::trace(visitor); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace blink | 185 } // namespace blink |
| OLD | NEW |