Changeset 128924 in webkit
- Timestamp:
- Sep 18, 2012 1:07:18 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r128914 r128924 1 2012-09-18 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Create a flag to enable PeerConnection00 4 https://bugs.webkit.org/show_bug.cgi?id=96989 5 6 Reviewed by Adam Barth. 7 8 Adding the functionality to separately enable/disable PeerConnection00. 9 For now it is enabled by default. 10 11 Not testable, nor likely to cause issues. 12 13 * bindings/generic/RuntimeEnabledFeatures.cpp: 14 (WebCore): 15 * bindings/generic/RuntimeEnabledFeatures.h: 16 (WebCore::RuntimeEnabledFeatures::deprecatedPeerConnectionEnabled): 17 (WebCore::RuntimeEnabledFeatures::setDeprecatedPeerConnectionEnabled): 18 (WebCore::RuntimeEnabledFeatures::webkitPeerConnection00Enabled): 19 (RuntimeEnabledFeatures): 20 1 21 2012-09-18 Bo Liu <boliu@chromium.org> 2 22 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r128800 r128924 65 65 bool RuntimeEnabledFeatures::isMediaStreamEnabled = false; 66 66 bool RuntimeEnabledFeatures::isPeerConnectionEnabled = true; 67 bool RuntimeEnabledFeatures::isDeprecatedPeerConnectionEnabled = true; 67 68 #endif 68 69 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r128850 r128924 186 186 static bool peerConnectionEnabled() { return isMediaStreamEnabled && isPeerConnectionEnabled; } 187 187 static void setPeerConnectionEnabled(bool isEnabled) { isPeerConnectionEnabled = isEnabled; } 188 static bool webkitPeerConnection00Enabled() { return peerConnectionEnabled(); } 188 static bool deprecatedPeerConnectionEnabled() { return isMediaStreamEnabled && isDeprecatedPeerConnectionEnabled; } 189 static void setDeprecatedPeerConnectionEnabled(bool isEnabled) { isDeprecatedPeerConnectionEnabled = isEnabled; } 190 static bool webkitPeerConnection00Enabled() { return deprecatedPeerConnectionEnabled(); } 189 191 static bool webkitRTCPeerConnectionEnabled() { return peerConnectionEnabled(); } 190 192 #endif … … 299 301 static bool isMediaStreamEnabled; 300 302 static bool isPeerConnectionEnabled; 303 static bool isDeprecatedPeerConnectionEnabled; 301 304 #endif 302 305 -
trunk/Source/WebKit/chromium/ChangeLog
r128903 r128924 1 2012-09-18 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Create a flag to enable PeerConnection00 4 https://bugs.webkit.org/show_bug.cgi?id=96989 5 6 Reviewed by Adam Barth. 7 8 Adding the functionality to separately enable/disable PeerConnection00. 9 For now it is enabled by default. 10 11 * public/WebRuntimeFeatures.h: 12 (WebRuntimeFeatures): 13 * src/WebRuntimeFeatures.cpp: 14 (WebKit::WebRuntimeFeatures::enableDeprecatedPeerConnection): 15 (WebKit): 16 (WebKit::WebRuntimeFeatures::isDeprecatedPeerConnectionEnabled): 17 1 18 2012-09-18 Iain Merrick <husky@google.com> 2 19 -
trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h
r127674 r128924 113 113 WEBKIT_EXPORT static void enablePeerConnection(bool); 114 114 WEBKIT_EXPORT static bool isPeerConnectionEnabled(); 115 WEBKIT_EXPORT static void enableDeprecatedPeerConnection(bool); 116 WEBKIT_EXPORT static bool isDeprecatedPeerConnectionEnabled(); 115 117 116 118 WEBKIT_EXPORT static void enableFullScreenAPI(bool); -
trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
r127674 r128924 369 369 } 370 370 371 void WebRuntimeFeatures::enableDeprecatedPeerConnection(bool enable) 372 { 373 #if ENABLE(MEDIA_STREAM) 374 RuntimeEnabledFeatures::setDeprecatedPeerConnectionEnabled(enable); 375 #else 376 UNUSED_PARAM(enable); 377 #endif 378 } 379 380 bool WebRuntimeFeatures::isDeprecatedPeerConnectionEnabled() 381 { 382 #if ENABLE(MEDIA_STREAM) 383 return RuntimeEnabledFeatures::deprecatedPeerConnectionEnabled(); 384 #else 385 return false; 386 #endif 387 } 388 371 389 void WebRuntimeFeatures::enableFullScreenAPI(bool enable) 372 390 {
Note: See TracChangeset
for help on using the changeset viewer.