| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 void RTCDataChannel::didDetectError() | 254 void RTCDataChannel::didDetectError() |
| 255 { | 255 { |
| 256 if (m_stopped) | 256 if (m_stopped) |
| 257 return; | 257 return; |
| 258 | 258 |
| 259 scheduleDispatchEvent(Event::create(EventTypeNames::error)); | 259 scheduleDispatchEvent(Event::create(EventTypeNames::error)); |
| 260 } | 260 } |
| 261 | 261 |
| 262 const AtomicString& RTCDataChannel::interfaceName() const | 262 const AtomicString& RTCDataChannel::interfaceName() const |
| 263 { | 263 { |
| 264 return eventNames().interfaceForRTCDataChannel; | 264 return EventTargetNames::RTCDataChannel; |
| 265 } | 265 } |
| 266 | 266 |
| 267 ExecutionContext* RTCDataChannel::executionContext() const | 267 ExecutionContext* RTCDataChannel::executionContext() const |
| 268 { | 268 { |
| 269 return m_executionContext; | 269 return m_executionContext; |
| 270 } | 270 } |
| 271 | 271 |
| 272 void RTCDataChannel::stop() | 272 void RTCDataChannel::stop() |
| 273 { | 273 { |
| 274 m_stopped = true; | 274 m_stopped = true; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 294 events.swap(m_scheduledEvents); | 294 events.swap(m_scheduledEvents); |
| 295 | 295 |
| 296 Vector<RefPtr<Event> >::iterator it = events.begin(); | 296 Vector<RefPtr<Event> >::iterator it = events.begin(); |
| 297 for (; it != events.end(); ++it) | 297 for (; it != events.end(); ++it) |
| 298 dispatchEvent((*it).release()); | 298 dispatchEvent((*it).release()); |
| 299 | 299 |
| 300 events.clear(); | 300 events.clear(); |
| 301 } | 301 } |
| 302 | 302 |
| 303 } // namespace WebCore | 303 } // namespace WebCore |
| OLD | NEW |