Title: [95151] trunk
Revision
95151
Author
commit-qu...@webkit.org
Date
2011-09-14 19:26:42 -0700 (Wed, 14 Sep 2011)

Log Message

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

Patch by Henrik Grunell <grun...@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:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (95150 => 95151)


--- trunk/LayoutTests/ChangeLog	2011-09-15 02:12:36 UTC (rev 95150)
+++ trunk/LayoutTests/ChangeLog	2011-09-15 02:26:42 UTC (rev 95151)
@@ -1,3 +1,15 @@
+2011-09-14  Henrik Grunell  <grun...@google.com>
+
+        MediaStream API: Change PeerConnection constructor name to webkitPeerConnection
+        https://bugs.webkit.org/show_bug.cgi?id=67843
+
+        Reviewed by Tony Gentilcore.
+
+        Tests for the MediaStream API will be provided by the bug 56587, pending enough landed code.
+
+        * fast/dom/call-a-constructor-as-a-function.html:
+        * platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt:
+
 2011-09-14  David Levin  <le...@chromium.org>
 
         [chromium] rebaselines due to r95096, r95121, and r95129.

Modified: trunk/LayoutTests/fast/dom/call-a-constructor-as-a-function.html (95150 => 95151)


--- trunk/LayoutTests/fast/dom/call-a-constructor-as-a-function.html	2011-09-15 02:12:36 UTC (rev 95150)
+++ trunk/LayoutTests/fast/dom/call-a-constructor-as-a-function.html	2011-09-15 02:26:42 UTC (rev 95151)
@@ -10,7 +10,7 @@
 </p>
 </div>
 <script>
-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"];
+var 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"];
 
 test_constructors.forEach(function (constructor) {
     if (eval("window." + constructor))

Modified: trunk/LayoutTests/platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt (95150 => 95151)


--- trunk/LayoutTests/platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt	2011-09-15 02:12:36 UTC (rev 95150)
+++ trunk/LayoutTests/platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt	2011-09-15 02:26:42 UTC (rev 95151)
@@ -15,7 +15,7 @@
 PASS Int32Array() threw exception TypeError: DOM object constructor cannot be called as a function..
 PASS Int8Array() threw exception TypeError: DOM object constructor cannot be called as a function..
 PASS MessageChannel() threw exception TypeError: DOM object constructor cannot be called as a function..
-PASS PeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function..
+PASS webkitPeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function..
 SKIP SharedWorker is not implemented.
 PASS Uint16Array() threw exception TypeError: DOM object constructor cannot be called as a function..
 PASS Uint32Array() threw exception TypeError: DOM object constructor cannot be called as a function..

Modified: trunk/Source/WebCore/ChangeLog (95150 => 95151)


--- trunk/Source/WebCore/ChangeLog	2011-09-15 02:12:36 UTC (rev 95150)
+++ trunk/Source/WebCore/ChangeLog	2011-09-15 02:26:42 UTC (rev 95151)
@@ -1,3 +1,16 @@
+2011-09-14  Henrik Grunell  <grun...@google.com>
+
+        MediaStream API: Change PeerConnection constructor name to webkitPeerConnection
+        https://bugs.webkit.org/show_bug.cgi?id=67843
+
+        Reviewed by Tony Gentilcore.
+
+        Tests for the MediaStream API will be provided by the bug 56587, pending enough landed code.
+
+        * bindings/generic/RuntimeEnabledFeatures.h:
+        (WebCore::RuntimeEnabledFeatures::webkitPeerConnectionEnabled):
+        * page/DOMWindow.idl:
+
 2011-09-14  John Bauman  <jbau...@chromium.org>
 
         Make sure to GC decoded images that are only used with WebGL

Modified: trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h (95150 => 95151)


--- trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h	2011-09-15 02:12:36 UTC (rev 95150)
+++ trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h	2011-09-15 02:26:42 UTC (rev 95151)
@@ -159,7 +159,7 @@
     static bool mediaStreamEnabled() { return isMediaStreamEnabled; }
     static void setMediaStreamEnabled(bool isEnabled) { isMediaStreamEnabled = isEnabled; }
     static bool webkitGetUserMediaEnabled() { return isMediaStreamEnabled; }
-    static bool peerConnectionEnabled() { return isMediaStreamEnabled; }
+    static bool webkitPeerConnectionEnabled() { return isMediaStreamEnabled; }
 #endif
 
 #if ENABLE(QUOTA)

Modified: trunk/Source/WebCore/page/DOMWindow.idl (95150 => 95151)


--- trunk/Source/WebCore/page/DOMWindow.idl	2011-09-15 02:12:36 UTC (rev 95150)
+++ trunk/Source/WebCore/page/DOMWindow.idl	2011-09-15 02:26:42 UTC (rev 95151)
@@ -337,7 +337,7 @@
         attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondevicemotion;
         attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondeviceorientation;
 
-        attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor PeerConnection;
+        attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor webkitPeerConnection;
 
         // EventTarget interface
         [Custom] void addEventListener(in DOMString type,
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to