MediaStream API: Finalize the RTCPeerConnection states
https://bugs.webkit.org/show_bug.cgi?id=112792

Reviewed by Adam Barth.

Source/Platform:

* chromium/public/WebRTCPeerConnectionHandlerClient.h:

Source/WebCore:

This patch finalized the RTCPeerConnection state and events. These changes
have not yet pushed out to the editors draft; but they are uncontroversial
and agreed upon.

readyState will be deleted; please use the replacement signalingState which is already available.
onstatechange -> onsignalingstatechange
onicechange -> oniceconnectionstatechange
ongatheringchange will be deleted since oniceconnectionstatechange can be used for the same purpose.
RTCIceConnectionState::"starting" -> RTCIceConnectionState::"new"

Patch covered by modified tests.

* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::RTCPeerConnection):
(WebCore::RTCPeerConnection::iceConnectionState):
(WebCore::RTCPeerConnection::changeSignalingState):
(WebCore::RTCPeerConnection::changeIceGatheringState):
(WebCore::RTCPeerConnection::changeIceConnectionState):
* Modules/mediastream/RTCPeerConnection.h:
(RTCPeerConnection):
* Modules/mediastream/RTCPeerConnection.idl:
* dom/EventNames.h:
(WebCore):
* platform/mediastream/RTCPeerConnectionHandlerClient.h:

Source/WebKit/chromium:

* src/AssertMatchingEnums.cpp:

LayoutTests:

* fast/mediastream/RTCPeerConnection-datachannel.html:
* fast/mediastream/RTCPeerConnection-dtmf.html:
* fast/mediastream/RTCPeerConnection-events-expected.txt:
* fast/mediastream/RTCPeerConnection-events.html:
* fast/mediastream/RTCPeerConnection-ice.html:
* fast/mediastream/RTCPeerConnection-state-expected.txt:
* fast/mediastream/RTCPeerConnection-state.html:


git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@146582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: 0b024e9a9cf2067c6d31982084c1b6bc85a51784
  1. android/
  2. default/
  3. linux/
  4. mac/
  5. win/
  6. Platform.h
  7. WebAnimation.h
  8. WebAnimationCurve.h
  9. WebAnimationDelegate.h
  10. WebAudioBus.h
  11. WebAudioDestinationConsumer.h
  12. WebAudioDevice.h
  13. WebBlobData.h
  14. WebBlobRegistry.h
  15. WebCanvas.h
  16. WebClipboard.h
  17. WebColor.h
  18. WebCommon.h
  19. WebCompositorOutputSurface.h
  20. WebCompositorSupport.h
  21. WebContentLayer.h
  22. WebContentLayerClient.h
  23. WebCookie.h
  24. WebCookieJar.h
  25. WebCString.h
  26. WebData.h
  27. WebDiscardableMemory.h
  28. WebDragData.h
  29. WebExternalTextureLayer.h
  30. WebExternalTextureLayerClient.h
  31. WebFileError.h
  32. WebFileInfo.h
  33. WebFileSystem.h
  34. WebFileSystemCallbacks.h
  35. WebFileSystemEntry.h
  36. WebFileSystemType.h
  37. WebFileUtilities.h
  38. WebFilterOperation.h
  39. WebFilterOperations.h
  40. WebFlingAnimator.h
  41. WebFloatAnimationCurve.h
  42. WebFloatKeyframe.h
  43. WebFloatPoint.h
  44. WebFloatQuad.h
  45. WebFloatRect.h
  46. WebFloatSize.h
  47. WebGamepad.h
  48. WebGamepads.h
  49. WebGestureCurve.h
  50. WebGestureCurveTarget.h
  51. WebGraphicsContext3D.h
  52. WebGraphicsMemoryAllocation.h
  53. WebGraphicsMemoryStats.h
  54. WebHTTPBody.h
  55. WebHTTPHeaderVisitor.h
  56. WebHTTPLoadInfo.h
  57. WebHyphenator.h
  58. WebImage.h
  59. WebImageLayer.h
  60. WebInputHandler.h
  61. WebInputHandlerClient.h
  62. WebLayer.h
  63. WebLayerScrollClient.h
  64. WebLayerTreeView.h
  65. WebLocalizedString.h
  66. WebMediaConstraints.h
  67. WebMediaStream.h
  68. WebMediaStreamCenter.h
  69. WebMediaStreamCenterClient.h
  70. WebMediaStreamSource.h
  71. WebMediaStreamSourcesRequest.h
  72. WebMediaStreamTrack.h
  73. WebMessagePortChannel.h
  74. WebMessagePortChannelClient.h
  75. WebMimeRegistry.h
  76. WebNonCopyable.h
  77. WebPluginListBuilder.h
  78. WebPoint.h
  79. WebPrerender.h
  80. WebPrerenderingSupport.h
  81. WebPrivateOwnPtr.h
  82. WebPrivatePtr.h
  83. WebRect.h
  84. WebReferrerPolicy.h
  85. WebRenderingStats.h
  86. WebRTCConfiguration.h
  87. WebRTCDataChannelHandler.h
  88. WebRTCDataChannelHandlerClient.h
  89. WebRTCDTMFSenderHandler.h
  90. WebRTCDTMFSenderHandlerClient.h
  91. WebRTCICECandidate.h
  92. WebRTCPeerConnectionHandler.h
  93. WebRTCPeerConnectionHandlerClient.h
  94. WebRTCSessionDescription.h
  95. WebRTCSessionDescriptionRequest.h
  96. WebRTCStatsRequest.h
  97. WebRTCStatsResponse.h
  98. WebRTCVoidRequest.h
  99. WebScreenInfo.h
  100. WebScrollbar.h
  101. WebScrollbarLayer.h
  102. WebScrollbarThemeGeometry.h
  103. WebScrollbarThemePainter.h
  104. WebSize.h
  105. WebSocketStreamError.h
  106. WebSocketStreamHandle.h
  107. WebSocketStreamHandleClient.h
  108. WebSolidColorLayer.h
  109. WebStorageArea.h
  110. WebStorageNamespace.h
  111. WebString.h
  112. WebThread.h
  113. WebThreadSafeData.h
  114. WebTransformAnimationCurve.h
  115. WebTransformKeyframe.h
  116. WebTransformOperations.h
  117. WebUnitTestSupport.h
  118. WebURL.h
  119. WebURLError.h
  120. WebURLLoader.h
  121. WebURLLoaderClient.h
  122. WebURLLoadTiming.h
  123. WebURLRequest.h
  124. WebURLResponse.h
  125. WebVector.h
  126. WebVideoFrame.h
  127. WebVideoFrameProvider.h
  128. WebVideoLayer.h
  129. WebWorkerRunLoop.h