Changeset 146582 in webkit
- Timestamp:
- Mar 22, 2013 2:29:37 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r146579 r146582 1 2013-03-22 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Finalize the RTCPeerConnection states 4 https://bugs.webkit.org/show_bug.cgi?id=112792 5 6 Reviewed by Adam Barth. 7 8 * fast/mediastream/RTCPeerConnection-datachannel.html: 9 * fast/mediastream/RTCPeerConnection-dtmf.html: 10 * fast/mediastream/RTCPeerConnection-events-expected.txt: 11 * fast/mediastream/RTCPeerConnection-events.html: 12 * fast/mediastream/RTCPeerConnection-ice.html: 13 * fast/mediastream/RTCPeerConnection-state-expected.txt: 14 * fast/mediastream/RTCPeerConnection-state.html: 15 1 16 2013-03-22 Ádám Kallai <kadam@inf.u-szeged.hu> 2 17 -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-datachannel.html
r140310 r146582 93 93 94 94 pc = new webkitRTCPeerConnection(null, null); 95 pc.onicec hange = pc_onicechange;95 pc.oniceconnectionstatechange = pc_onicechange; 96 96 pc.ondatachannel = pc_ondatachannel; 97 97 -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
r141984 r146582 54 54 55 55 pc = new webkitRTCPeerConnection(null, null); 56 pc.onicec hange = pc_onicechange;56 pc.oniceconnectionstatechange = pc_onicechange; 57 57 } 58 58 -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-events-expected.txt
r132420 r146582 9 9 PASS onNegotiationNeeded done. 10 10 PASS onStateChange was called. 11 PASS pc. readyState is 'closed'11 PASS pc.signalingState is 'closed' 12 12 PASS successfullyParsed is true 13 13 -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-events.html
r132420 r146582 27 27 function onStateChange(event) { 28 28 testPassed('onStateChange was called.'); 29 shouldBe("pc. readyState", "'closed'");29 shouldBe("pc.signalingState", "'closed'"); 30 30 finishJSTest(); 31 31 } … … 33 33 function onNegotiationNeeded(event) { 34 34 testPassed('onNegotiationNeeded was called.'); 35 pc.ons tatechange = onStateChange;35 pc.onsignalingstatechange = onStateChange; 36 36 pc.close(); 37 37 testPassed('onNegotiationNeeded done.') -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html
r140310 r146582 23 23 shouldBe('event.candidate.candidate', '"nano nano"'); 24 24 25 pc.onicec hange = onIceChange2;25 pc.oniceconnectionstatechange = onIceChange2; 26 26 pc.close(); 27 27 } … … 37 37 38 38 shouldNotThrow('pc = new webkitRTCPeerConnection(null, null);'); 39 pc.onicec hange = onIceChange1;39 pc.oniceconnectionstatechange = onIceChange1; 40 40 41 41 window.jsTestIsAsync = true; -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-state-expected.txt
r140310 r146582 5 5 6 6 PASS pc = new webkitRTCPeerConnection({iceServers:[]}, null); did not throw exception. 7 PASS pc. readyState is "stable"7 PASS pc.signalingState is "stable" 8 8 PASS stateChanged was called 9 PASS pc. readyState is "closed"9 PASS pc.signalingState is "closed" 10 10 PASS successfullyParsed is true 11 11 -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-state.html
r140310 r146582 13 13 { 14 14 testPassed("stateChanged was called"); 15 shouldBe ('pc.readyState','"closed"');15 shouldBeEqualToString('pc.signalingState', 'closed'); 16 16 finishJSTest(); 17 17 } 18 18 19 19 shouldNotThrow('pc = new webkitRTCPeerConnection({iceServers:[]}, null);'); 20 shouldBe ('pc.readyState', '"stable"');21 pc.ons tatechange = stateChanged;20 shouldBeEqualToString('pc.signalingState', 'stable'); 21 pc.onsignalingstatechange = stateChanged; 22 22 pc.close(); 23 23 -
trunk/Source/Platform/ChangeLog
r146561 r146582 1 2013-03-22 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Finalize the RTCPeerConnection states 4 https://bugs.webkit.org/show_bug.cgi?id=112792 5 6 Reviewed by Adam Barth. 7 8 * chromium/public/WebRTCPeerConnectionHandlerClient.h: 9 1 10 2013-03-21 David Grogan <dgrogan@chromium.org> 2 11 -
trunk/Source/Platform/chromium/public/WebRTCPeerConnectionHandlerClient.h
r145740 r146582 49 49 50 50 enum ICEConnectionState { 51 ICEConnectionState Starting= 1,51 ICEConnectionStateNew = 1, 52 52 ICEConnectionStateChecking = 2, 53 53 ICEConnectionStateConnected = 3, … … 56 56 ICEConnectionStateDisconnected = 6, 57 57 ICEConnectionStateClosed = 7, 58 59 // DEPRECATED 60 ICEConnectionStateStarting = 1, 58 61 }; 59 62 -
trunk/Source/WebCore/ChangeLog
r146580 r146582 1 2013-03-22 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Finalize the RTCPeerConnection states 4 https://bugs.webkit.org/show_bug.cgi?id=112792 5 6 Reviewed by Adam Barth. 7 8 This patch finalized the RTCPeerConnection state and events. These changes 9 have not yet pushed out to the editors draft; but they are uncontroversial 10 and agreed upon. 11 12 readyState will be deleted; please use the replacement signalingState which is already available. 13 onstatechange -> onsignalingstatechange 14 onicechange -> oniceconnectionstatechange 15 ongatheringchange will be deleted since oniceconnectionstatechange can be used for the same purpose. 16 RTCIceConnectionState::"starting" -> RTCIceConnectionState::"new" 17 18 Patch covered by modified tests. 19 20 * Modules/mediastream/RTCPeerConnection.cpp: 21 (WebCore::RTCPeerConnection::RTCPeerConnection): 22 (WebCore::RTCPeerConnection::iceConnectionState): 23 (WebCore::RTCPeerConnection::changeSignalingState): 24 (WebCore::RTCPeerConnection::changeIceGatheringState): 25 (WebCore::RTCPeerConnection::changeIceConnectionState): 26 * Modules/mediastream/RTCPeerConnection.h: 27 (RTCPeerConnection): 28 * Modules/mediastream/RTCPeerConnection.idl: 29 * dom/EventNames.h: 30 (WebCore): 31 * platform/mediastream/RTCPeerConnectionHandlerClient.h: 32 1 33 2013-03-22 Mike West <mkwst@chromium.org> 2 34 -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
r146537 r146582 136 136 , m_signalingState(SignalingStateStable) 137 137 , m_iceGatheringState(IceGatheringStateNew) 138 , m_iceConnectionState(IceConnectionState Starting)138 , m_iceConnectionState(IceConnectionStateNew) 139 139 , m_scheduledEventTimer(this, &RTCPeerConnection::scheduledEventTimerFired) 140 140 , m_stopped(false) … … 295 295 if (!valid) 296 296 ec = SYNTAX_ERR; 297 }298 299 String RTCPeerConnection::readyState() const300 {301 return signalingState();302 297 } 303 298 … … 341 336 { 342 337 switch (m_iceConnectionState) { 343 case IceConnectionState Starting:344 return ASCIILiteral(" starting");338 case IceConnectionStateNew: 339 return ASCIILiteral("new"); 345 340 case IceConnectionStateChecking: 346 341 return ASCIILiteral("checking"); … … 623 618 if (m_signalingState != SignalingStateClosed && m_signalingState != signalingState) { 624 619 m_signalingState = signalingState; 625 scheduleDispatchEvent(Event::create(eventNames().s tatechangeEvent, false, false));620 scheduleDispatchEvent(Event::create(eventNames().signalingstatechangeEvent, false, false)); 626 621 } 627 622 } … … 629 624 void RTCPeerConnection::changeIceGatheringState(IceGatheringState iceGatheringState) 630 625 { 631 if (m_iceGatheringState != iceGatheringState) { 632 m_iceGatheringState = iceGatheringState; 633 scheduleDispatchEvent(Event::create(eventNames().gatheringchangeEvent, false, false)); 634 } 626 m_iceGatheringState = iceGatheringState; 635 627 } 636 628 … … 639 631 if (m_iceConnectionState != IceConnectionStateClosed && m_iceConnectionState != iceConnectionState) { 640 632 m_iceConnectionState = iceConnectionState; 641 scheduleDispatchEvent(Event::create(eventNames().icec hangeEvent, false, false));633 scheduleDispatchEvent(Event::create(eventNames().iceconnectionstatechangeEvent, false, false)); 642 634 } 643 635 } -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.h
r144748 r146582 73 73 PassRefPtr<RTCSessionDescription> remoteDescription(ExceptionCode&); 74 74 75 // DEPRECATED76 String readyState() const;77 78 75 String signalingState() const; 79 76 … … 106 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(negotiationneeded); 107 104 DEFINE_ATTRIBUTE_EVENT_LISTENER(icecandidate); 108 DEFINE_ATTRIBUTE_EVENT_LISTENER(s tatechange);105 DEFINE_ATTRIBUTE_EVENT_LISTENER(signalingstatechange); 109 106 DEFINE_ATTRIBUTE_EVENT_LISTENER(addstream); 110 107 DEFINE_ATTRIBUTE_EVENT_LISTENER(removestream); 111 DEFINE_ATTRIBUTE_EVENT_LISTENER(gatheringchange); 112 DEFINE_ATTRIBUTE_EVENT_LISTENER(icechange); 108 DEFINE_ATTRIBUTE_EVENT_LISTENER(iceconnectionstatechange); 113 109 DEFINE_ATTRIBUTE_EVENT_LISTENER(datachannel); 114 110 -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.idl
r144748 r146582 53 53 getter raises(DOMException); 54 54 55 // DEPRECATED56 readonly attribute DOMString readyState;57 58 55 readonly attribute DOMString signalingState; 59 56 … … 89 86 attribute EventListener onnegotiationneeded; 90 87 attribute EventListener onicecandidate; 91 attribute EventListener ons tatechange;88 attribute EventListener onsignalingstatechange; 92 89 attribute EventListener onaddstream; 93 90 attribute EventListener onremovestream; 94 attribute EventListener ongatheringchange; 95 attribute EventListener onicechange; 91 attribute EventListener oniceconnectionstatechange; 96 92 attribute EventListener ondatachannel; 97 93 -
trunk/Source/WebCore/dom/EventNames.h
r146305 r146582 228 228 macro(addstream) \ 229 229 macro(removestream) \ 230 macro(s tatechange) \230 macro(signalingstatechange) \ 231 231 macro(removetrack) \ 232 232 macro(mute) \ 233 233 macro(unmute) \ 234 macro(icec hange) \234 macro(iceconnectionstatechange) \ 235 235 macro(icecandidate) \ 236 236 macro(negotiationneeded) \ 237 237 macro(datachannel) \ 238 macro(gatheringchange) \239 238 macro(tonechange) \ 240 239 \ -
trunk/Source/WebCore/platform/mediastream/RTCPeerConnectionHandlerClient.h
r140310 r146582 54 54 55 55 enum IceConnectionState { 56 IceConnectionState Starting= 1,56 IceConnectionStateNew = 1, 57 57 IceConnectionStateChecking = 2, 58 58 IceConnectionStateConnected = 3, -
trunk/Source/WebKit/chromium/ChangeLog
r146572 r146582 1 2013-03-22 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Finalize the RTCPeerConnection states 4 https://bugs.webkit.org/show_bug.cgi?id=112792 5 6 Reviewed by Adam Barth. 7 8 * src/AssertMatchingEnums.cpp: 9 1 10 2013-03-22 Sheriff Bot <webkit.review.bot@gmail.com> 2 11 -
trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp
r145782 r146582 578 578 COMPILE_ASSERT_MATCHING_ENUM(WebRTCPeerConnectionHandlerClient::SignalingStateClosed, RTCPeerConnectionHandlerClient::SignalingStateClosed); 579 579 580 COMPILE_ASSERT_MATCHING_ENUM(WebRTCPeerConnectionHandlerClient::ICEConnectionStateStarting, RTCPeerConnectionHandlerClient::IceConnectionStateStarting); 580 COMPILE_ASSERT_MATCHING_ENUM(WebRTCPeerConnectionHandlerClient::ICEConnectionStateStarting, RTCPeerConnectionHandlerClient::IceConnectionStateNew); 581 COMPILE_ASSERT_MATCHING_ENUM(WebRTCPeerConnectionHandlerClient::ICEConnectionStateNew, RTCPeerConnectionHandlerClient::IceConnectionStateNew); 581 582 COMPILE_ASSERT_MATCHING_ENUM(WebRTCPeerConnectionHandlerClient::ICEConnectionStateChecking, RTCPeerConnectionHandlerClient::IceConnectionStateChecking); 582 583 COMPILE_ASSERT_MATCHING_ENUM(WebRTCPeerConnectionHandlerClient::ICEConnectionStateConnected, RTCPeerConnectionHandlerClient::IceConnectionStateConnected);
Note: See TracChangeset
for help on using the changeset viewer.