Changeset 95151 in webkit


Ignore:
Timestamp:
Sep 14, 2011 7:26:42 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

MediaStream API: Change PeerConnection constructor name to webkitPeerConnection
https://bugs.webkit.org/show_bug.cgi?id=67843

Patch by Henrik Grunell <grunell@google.com> on 2011-09-14
Reviewed by Tony Gentilcore.

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

Source/WebCore:

  • bindings/generic/RuntimeEnabledFeatures.h:

(WebCore::RuntimeEnabledFeatures::webkitPeerConnectionEnabled):

  • page/DOMWindow.idl:

LayoutTests:

  • fast/dom/call-a-constructor-as-a-function.html:
  • platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95149 r95151  
     12011-09-14  Henrik Grunell  <grunell@google.com>
     2
     3        MediaStream API: Change PeerConnection constructor name to webkitPeerConnection
     4        https://bugs.webkit.org/show_bug.cgi?id=67843
     5
     6        Reviewed by Tony Gentilcore.
     7
     8        Tests for the MediaStream API will be provided by the bug 56587, pending enough landed code.
     9
     10        * fast/dom/call-a-constructor-as-a-function.html:
     11        * platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt:
     12
    1132011-09-14  David Levin  <levin@chromium.org>
    214
  • trunk/LayoutTests/fast/dom/call-a-constructor-as-a-function.html

    r94357 r95151  
    1111</div>
    1212<script>
    13 var test_constructors = ["ArrayBuffer", "AudioContext", "FormData", "DataView", "EventSource", "FileReader", "Float32Array", "Float64Array", "Audio", "Image", "Option", "Int16Array", "Int32Array", "Int8Array", "MessageChannel", "PeerConnection", "SharedWorker", "Uint16Array", "Uint32Array", "Uint8Array", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];
     13var test_constructors = ["ArrayBuffer", "AudioContext", "FormData", "DataView", "EventSource", "FileReader", "Float32Array", "Float64Array", "Audio", "Image", "Option", "Int16Array", "Int32Array", "Int8Array", "MessageChannel", "webkitPeerConnection", "SharedWorker", "Uint16Array", "Uint32Array", "Uint8Array", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];
    1414
    1515test_constructors.forEach(function (constructor) {
  • trunk/LayoutTests/platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt

    r94357 r95151  
    1616PASS Int8Array() threw exception TypeError: DOM object constructor cannot be called as a function..
    1717PASS MessageChannel() threw exception TypeError: DOM object constructor cannot be called as a function..
    18 PASS PeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function..
     18PASS webkitPeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function..
    1919SKIP SharedWorker is not implemented.
    2020PASS Uint16Array() threw exception TypeError: DOM object constructor cannot be called as a function..
  • trunk/Source/WebCore/ChangeLog

    r95150 r95151  
     12011-09-14  Henrik Grunell  <grunell@google.com>
     2
     3        MediaStream API: Change PeerConnection constructor name to webkitPeerConnection
     4        https://bugs.webkit.org/show_bug.cgi?id=67843
     5
     6        Reviewed by Tony Gentilcore.
     7
     8        Tests for the MediaStream API will be provided by the bug 56587, pending enough landed code.
     9
     10        * bindings/generic/RuntimeEnabledFeatures.h:
     11        (WebCore::RuntimeEnabledFeatures::webkitPeerConnectionEnabled):
     12        * page/DOMWindow.idl:
     13
    1142011-09-14  John Bauman  <jbauman@chromium.org>
    215
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h

    r94590 r95151  
    160160    static void setMediaStreamEnabled(bool isEnabled) { isMediaStreamEnabled = isEnabled; }
    161161    static bool webkitGetUserMediaEnabled() { return isMediaStreamEnabled; }
    162     static bool peerConnectionEnabled() { return isMediaStreamEnabled; }
     162    static bool webkitPeerConnectionEnabled() { return isMediaStreamEnabled; }
    163163#endif
    164164
  • trunk/Source/WebCore/page/DOMWindow.idl

    r95040 r95151  
    338338        attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondeviceorientation;
    339339
    340         attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor PeerConnection;
     340        attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor webkitPeerConnection;
    341341
    342342        // EventTarget interface
Note: See TracChangeset for help on using the changeset viewer.