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)
commit1dd210ccdda28480a3a30873f50831af08763496
tree2e9900575622bc6076a4a86321c8a0df1161b18c
parent4f1a6603a6ff5a846bba2f18716292a9fe694fab
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: http://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