| 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 | 150 |
| 151 const AtomicString& RTCDTMFSender::interfaceName() const { | 151 const AtomicString& RTCDTMFSender::interfaceName() const { |
| 152 return EventTargetNames::RTCDTMFSender; | 152 return EventTargetNames::RTCDTMFSender; |
| 153 } | 153 } |
| 154 | 154 |
| 155 ExecutionContext* RTCDTMFSender::getExecutionContext() const { | 155 ExecutionContext* RTCDTMFSender::getExecutionContext() const { |
| 156 return ContextLifecycleObserver::getExecutionContext(); | 156 return ContextLifecycleObserver::getExecutionContext(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void RTCDTMFSender::contextDestroyed() { | 159 void RTCDTMFSender::contextDestroyed(ExecutionContext*) { |
| 160 m_stopped = true; | 160 m_stopped = true; |
| 161 m_handler->setClient(nullptr); | 161 m_handler->setClient(nullptr); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void RTCDTMFSender::scheduleDispatchEvent(Event* event) { | 164 void RTCDTMFSender::scheduleDispatchEvent(Event* event) { |
| 165 m_scheduledEvents.push_back(event); | 165 m_scheduledEvents.push_back(event); |
| 166 | 166 |
| 167 if (!m_scheduledEventTimer.isActive()) | 167 if (!m_scheduledEventTimer.isActive()) |
| 168 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE); | 168 m_scheduledEventTimer.startOneShot(0, BLINK_FROM_HERE); |
| 169 } | 169 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 DEFINE_TRACE(RTCDTMFSender) { | 183 DEFINE_TRACE(RTCDTMFSender) { |
| 184 visitor->trace(m_track); | 184 visitor->trace(m_track); |
| 185 visitor->trace(m_scheduledEvents); | 185 visitor->trace(m_scheduledEvents); |
| 186 EventTargetWithInlineData::trace(visitor); | 186 EventTargetWithInlineData::trace(visitor); |
| 187 ContextLifecycleObserver::trace(visitor); | 187 ContextLifecycleObserver::trace(visitor); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace blink | 190 } // namespace blink |
| OLD | NEW |