| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 if (!m_scheduledEventTimer.isActive()) | 150 if (!m_scheduledEventTimer.isActive()) |
| 151 m_scheduledEventTimer.startOneShot(0, FROM_HERE); | 151 m_scheduledEventTimer.startOneShot(0, FROM_HERE); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void RTCDTMFSender::scheduledEventTimerFired(Timer<RTCDTMFSender>*) | 154 void RTCDTMFSender::scheduledEventTimerFired(Timer<RTCDTMFSender>*) |
| 155 { | 155 { |
| 156 if (m_stopped) | 156 if (m_stopped) |
| 157 return; | 157 return; |
| 158 | 158 |
| 159 WillBeHeapVector<RefPtrWillBeMember<Event> > events; | 159 WillBeHeapVector<RefPtrWillBeMember<Event>> events; |
| 160 events.swap(m_scheduledEvents); | 160 events.swap(m_scheduledEvents); |
| 161 | 161 |
| 162 WillBeHeapVector<RefPtrWillBeMember<Event> >::iterator it = events.begin(); | 162 WillBeHeapVector<RefPtrWillBeMember<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 void RTCDTMFSender::trace(Visitor* visitor) | 167 void RTCDTMFSender::trace(Visitor* visitor) |
| 168 { | 168 { |
| 169 visitor->trace(m_track); | 169 visitor->trace(m_track); |
| 170 visitor->trace(m_scheduledEvents); | 170 visitor->trace(m_scheduledEvents); |
| 171 RefCountedGarbageCollectedEventTargetWithInlineData<RTCDTMFSender>::trace(vi
sitor); | 171 RefCountedGarbageCollectedEventTargetWithInlineData<RTCDTMFSender>::trace(vi
sitor); |
| 172 ActiveDOMObject::trace(visitor); | 172 ActiveDOMObject::trace(visitor); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace blink | 175 } // namespace blink |
| OLD | NEW |