MediaStream API: Adding the onstatechange callback to PeerConnection
authortommyw@google.com <tommyw@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2012 09:52:17 +0000 (09:52 +0000)
committertommyw@google.com <tommyw@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2012 09:52:17 +0000 (09:52 +0000)
commit911831aa989abb9a45494dbc2abf9f9dbf485977
tree2e9900575622bc6076a4a86321c8a0df1161b18c
parentcefaa5c87f684042d9672d848fdde9ab6790ea49
MediaStream API: Adding the onstatechange callback to PeerConnection
https://bugs.webkit.org/show_bug.cgi?id=77954

When readyState changes a callback should be triggered.

Reviewed by Adam Barth.

Tests for the Media Stream API will be provided by the bug 56587, pending enough landed code.

* dom/EventNames.h:
(WebCore):
* mediastream/PeerConnection.cpp:
(WebCore::PeerConnection::changeReadyState):
* mediastream/PeerConnection.h:
(PeerConnection):
(WebCore::PeerConnection::didChangeState):
* mediastream/PeerConnection.idl:
* platform/mediastream/PeerConnectionHandlerClient.h:
(PeerConnectionHandlerClient):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/EventNames.h
Source/WebCore/mediastream/PeerConnection.cpp
Source/WebCore/mediastream/PeerConnection.h
Source/WebCore/mediastream/PeerConnection.idl
Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h