Skip to content
  • steveblock@google.com's avatar
    2011-04-08 Leandro Gracia Gil <leandrogracia@chromium.org> · fab8862c
    steveblock@google.com authored
            Reviewed by Steve Block.
    
            Media Stream API: add the getUserMedia method and the Javascript bindings.
            https://bugs.webkit.org/show_bug.cgi?id=56586
    
            Test the Javascript behaviour of the getUserMedia method with different types of arguments.
            Current specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#video-conferencing-and-peer-to-peer-communication
    
            * fast/dom/MediaStream/argument-types-expected.txt: Added.
            * fast/dom/MediaStream/argument-types.html: Added.
            * fast/dom/MediaStream/enabled-expected.txt: Added.
            * fast/dom/MediaStream/enabled.html: Added.
            * fast/dom/MediaStream/no-interface-object-expected.txt: Added.
            * fast/dom/MediaStream/no-interface-object.html: Added.
            * fast/dom/MediaStream/script-tests/argument-types.js: Added.
            (shouldNotThrow):
            (test):
            (emptyFunction):
            ():
            (ObjectThrowingException.prototype.valueOf):
            (ObjectThrowingException.prototype.toString):
            * fast/dom/MediaStream/script-tests/enabled.js: Added.
            (hasGetUserMediaProperty):
            * fast/dom/MediaStream/script-tests/no-interface-object.js: Added.
            (test):
    2011-04-08  Leandro Gracia Gil  <leandrogracia@chromium.org>
    
            Reviewed by Steve Block.
    
            Media Stream API: add the getUserMedia method and the Javascript bindings.
            https://bugs.webkit.org/show_bug.cgi?id=56586
    
            Add the getUserMedia method to the navigator and its new Javascript types.
            Current specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#video-conferencing-and-peer-to-peer-communication
    
            Tests: fast/dom/MediaStream/argument-types.html
                   fast/dom/MediaStream/enabled.html
                   fast/dom/MediaStream/no-interface-object.html
    
            * Android.derived.jscbindings.mk:
            * Android.derived.v8bindings.mk:
            * Android.v8bindings.mk:
            * CMakeLists.txt:
            * CodeGenerators.pri:
            * DerivedSources.cpp:
            * DerivedSources.make:
            * GNUmakefile.list.am:
            * WebCore.gypi:
            * WebCore.pro:
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * bindings/js/JSNavigatorCustom.cpp:
            (WebCore::JSNavigator::webkitGetUserMedia):
            * bindings/v8/custom/V8NavigatorCustom.cpp: Added.
            (WebCore::V8Navigator::webkitGetUserMediaCallback):
            * page/Navigator.cpp:
            (WebCore::Navigator::webkitGetUserMedia):
            * page/Navigator.h:
            * page/Navigator.idl:
            * page/NavigatorUserMediaError.h: Added.
            (WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
            (WebCore::NavigatorUserMediaError::~NavigatorUserMediaError):
            (WebCore::NavigatorUserMediaError::code):
            * page/NavigatorUserMediaError.idl: Added.
            * page/NavigatorUserMediaErrorCallback.h: Added.
            (WebCore::NavigatorUserMediaErrorCallback::~NavigatorUserMediaErrorCallback):
            * page/NavigatorUserMediaErrorCallback.idl: Added.
            * page/NavigatorUserMediaSuccessCallback.h: Added.
            (WebCore::NavigatorUserMediaSuccessCallback::~NavigatorUserMediaSuccessCallback):
            * page/NavigatorUserMediaSuccessCallback.idl: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fab8862c