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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 return; | 609 return; |
610 | 610 |
611 RefPtr<RTCDataChannel> channel = RTCDataChannel::create(executionContext(),
handler); | 611 RefPtr<RTCDataChannel> channel = RTCDataChannel::create(executionContext(),
handler); |
612 m_dataChannels.append(channel); | 612 m_dataChannels.append(channel); |
613 | 613 |
614 scheduleDispatchEvent(RTCDataChannelEvent::create(EventTypeNames::datachanne
l, false, false, channel.release())); | 614 scheduleDispatchEvent(RTCDataChannelEvent::create(EventTypeNames::datachanne
l, false, false, channel.release())); |
615 } | 615 } |
616 | 616 |
617 const AtomicString& RTCPeerConnection::interfaceName() const | 617 const AtomicString& RTCPeerConnection::interfaceName() const |
618 { | 618 { |
619 return eventNames().interfaceForRTCPeerConnection; | 619 return EventTargetNames::RTCPeerConnection; |
620 } | 620 } |
621 | 621 |
622 ExecutionContext* RTCPeerConnection::executionContext() const | 622 ExecutionContext* RTCPeerConnection::executionContext() const |
623 { | 623 { |
624 return ActiveDOMObject::executionContext(); | 624 return ActiveDOMObject::executionContext(); |
625 } | 625 } |
626 | 626 |
627 void RTCPeerConnection::stop() | 627 void RTCPeerConnection::stop() |
628 { | 628 { |
629 if (m_stopped) | 629 if (m_stopped) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 events.swap(m_scheduledEvents); | 676 events.swap(m_scheduledEvents); |
677 | 677 |
678 Vector<RefPtr<Event> >::iterator it = events.begin(); | 678 Vector<RefPtr<Event> >::iterator it = events.begin(); |
679 for (; it != events.end(); ++it) | 679 for (; it != events.end(); ++it) |
680 dispatchEvent((*it).release()); | 680 dispatchEvent((*it).release()); |
681 | 681 |
682 events.clear(); | 682 events.clear(); |
683 } | 683 } |
684 | 684 |
685 } // namespace WebCore | 685 } // namespace WebCore |
OLD | NEW |