Changeset 115109 in webkit
- Timestamp:
- Apr 24, 2012 2:14:21 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r115104 r115109 1 2012-04-24 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Create a new flag for PeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=84723 5 6 Reviewed by Dimitri Glazkov. 7 8 To allow Chrome to make the GetUserMedia functionality available by default we 9 need another flag for the PeerConnection related parts. This new flag is in 10 addition to the general media stream flag, and both need to be enabled for 11 PeerConnection object creation. 12 13 No code behavior changes. 14 15 * bindings/generic/RuntimeEnabledFeatures.cpp: 16 (WebCore): 17 * bindings/generic/RuntimeEnabledFeatures.h: 18 (RuntimeEnabledFeatures): 19 (WebCore::RuntimeEnabledFeatures::peerConnectionEnabled): 20 (WebCore::RuntimeEnabledFeatures::setPeerConnectionEnabled): 21 (WebCore::RuntimeEnabledFeatures::webkitDeprecatedPeerConnectionEnabled): 22 (WebCore::RuntimeEnabledFeatures::webkitPeerConnection00Enabled): 23 1 24 2012-04-24 Joe Mason <jmason@rim.com> 2 25 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r114101 r115109 63 63 64 64 #if ENABLE(MEDIA_STREAM) 65 bool RuntimeEnabledFeatures::isMediaStreamEnabled = true; 65 bool RuntimeEnabledFeatures::isMediaStreamEnabled = false; 66 bool RuntimeEnabledFeatures::isPeerConnectionEnabled = true; 66 67 #endif 67 68 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r114101 r115109 189 189 static void setMediaStreamEnabled(bool isEnabled) { isMediaStreamEnabled = isEnabled; } 190 190 static bool webkitGetUserMediaEnabled() { return isMediaStreamEnabled; } 191 static bool webkitDeprecatedPeerConnectionEnabled() { return isMediaStreamEnabled; }192 191 static bool webkitMediaStreamEnabled() { return isMediaStreamEnabled; } 193 static bool webkitPeerConnection00Enabled() { return isMediaStreamEnabled; } 192 193 static bool peerConnectionEnabled() { return isMediaStreamEnabled && isPeerConnectionEnabled; } 194 static void setPeerConnectionEnabled(bool isEnabled) { isPeerConnectionEnabled = isEnabled; } 195 static bool webkitDeprecatedPeerConnectionEnabled() { return peerConnectionEnabled(); } 196 static bool webkitPeerConnection00Enabled() { return peerConnectionEnabled(); } 194 197 #endif 195 198 … … 269 272 #if ENABLE(MEDIA_STREAM) 270 273 static bool isMediaStreamEnabled; 274 static bool isPeerConnectionEnabled; 271 275 #endif 272 276 -
trunk/Source/WebKit/chromium/ChangeLog
r115080 r115109 1 2012-04-24 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Create a new flag for PeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=84723 5 6 Reviewed by Dimitri Glazkov. 7 8 To allow Chrome to make the GetUserMedia functionality available by default we 9 need another flag for the PeerConnection related parts. This new flag is in 10 addition to the general media stream flag, and both need to be enabled for 11 PeerConnection object creation. 12 13 * public/WebRuntimeFeatures.h: 14 (WebRuntimeFeatures): 15 * src/WebRuntimeFeatures.cpp: 16 (WebKit::WebRuntimeFeatures::enablePeerConnection): 17 (WebKit): 18 (WebKit::WebRuntimeFeatures::isPeerConnectionEnabled): 19 1 20 2012-04-24 Sami Kyostila <skyostil@chromium.org> 2 21 -
trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h
r114101 r115109 110 110 WEBKIT_EXPORT static bool isMediaStreamEnabled(); 111 111 112 WEBKIT_EXPORT static void enablePeerConnection(bool); 113 WEBKIT_EXPORT static bool isPeerConnectionEnabled(); 114 112 115 WEBKIT_EXPORT static void enableFullScreenAPI(bool); 113 116 WEBKIT_EXPORT static bool isFullScreenAPIEnabled(); -
trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
r114101 r115109 359 359 } 360 360 361 void WebRuntimeFeatures::enablePeerConnection(bool enable) 362 { 363 #if ENABLE(MEDIA_STREAM) 364 RuntimeEnabledFeatures::setPeerConnectionEnabled(enable); 365 #else 366 UNUSED_PARAM(enable); 367 #endif 368 } 369 370 bool WebRuntimeFeatures::isPeerConnectionEnabled() 371 { 372 #if ENABLE(MEDIA_STREAM) 373 return RuntimeEnabledFeatures::peerConnectionEnabled(); 374 #else 375 return false; 376 #endif 377 } 378 361 379 void WebRuntimeFeatures::enableFullScreenAPI(bool enable) 362 380 { -
trunk/Tools/ChangeLog
r115104 r115109 1 2012-04-24 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Create a new flag for PeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=84723 5 6 Reviewed by Dimitri Glazkov. 7 8 To allow Chrome to make the GetUserMedia functionality available by default we 9 need another flag for the PeerConnection related parts. This new flag is in 10 addition to the general media stream flag, and both need to be enabled for 11 PeerConnection object creation. 12 13 * DumpRenderTree/chromium/TestShell.cpp: 14 (TestShell::TestShell): 15 1 16 2012-04-24 Joe Mason <jmason@rim.com> 2 17 -
trunk/Tools/DumpRenderTree/chromium/TestShell.cpp
r114166 r115109 127 127 WebRuntimeFeatures::enableEncryptedMedia(true); 128 128 WebRuntimeFeatures::enableMediaStream(true); 129 WebRuntimeFeatures::enablePeerConnection(true); 129 130 WebRuntimeFeatures::enableWebAudio(true); 130 131 WebRuntimeFeatures::enableVideoTrack(true);
Note: See TracChangeset
for help on using the changeset viewer.