Changeset 212163 in webkit
- Timestamp:
- Feb 10, 2017 3:55:14 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r212160 r212163 1 2017-02-10 Andrew Gold <agold@apple.com> 2 3 Add mediaStreamEnabled property to WKPreferences for Cocoa. 4 https://bugs.webkit.org/show_bug.cgi?id=168080 5 6 Reviewed by Tim Horton. 7 8 * UIProcess/API/Cocoa/WKWebView.mm: 9 (-[WKWebView _initializeWithConfiguration:]): Sets the pageConfiguration's mediaStreamEnabled preference value. 10 11 * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: 12 (-[WKWebViewConfiguration copyWithZone:]): Copies the mediaStreamEnabled property. 13 (-[WKWebViewConfiguration _mediaStreamEnabled]): Gets the mediaStreamEnabled property. 14 (-[WKWebViewConfiguration _setMediaStreamEnabled:]): Sets the mediaStreamEnabled property. 15 * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: 16 1 17 2017-02-10 Olivier Blin <olivier.blin@softathome.com> 2 18 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r211929 r212163 434 434 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::httpEquivEnabledKey(), WebKit::WebPreferencesStore::Value(!![_configuration _allowsMetaRefresh])); 435 435 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::allowUniversalAccessFromFileURLsKey(), WebKit::WebPreferencesStore::Value(!![_configuration _allowUniversalAccessFromFileURLs])); 436 #if ENABLE(MEDIA_STREAM) 437 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::mediaStreamEnabledKey(), WebKit::WebPreferencesStore::Value(!![_configuration _mediaStreamEnabled])); 438 #endif 436 439 pageConfiguration->setInitialCapitalizationEnabled([_configuration _initialCapitalizationEnabled]); 437 440 pageConfiguration->setWaitsForPaintAfterViewDidMoveToWindow([_configuration _waitsForPaintAfterViewDidMoveToWindow]); -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
r212134 r212163 126 126 BOOL _waitsForPaintAfterViewDidMoveToWindow; 127 127 BOOL _controlledByAutomation; 128 #if ENABLE(MEDIA_STREAM) 129 BOOL _mediaStreamEnabled; 130 #endif 128 131 129 132 #if ENABLE(APPLE_PAY) … … 294 297 configuration->_waitsForPaintAfterViewDidMoveToWindow = self->_waitsForPaintAfterViewDidMoveToWindow; 295 298 configuration->_controlledByAutomation = self->_controlledByAutomation; 299 #if ENABLE(MEDIA_STREAM) 300 configuration->_mediaStreamEnabled = self->_mediaStreamEnabled; 301 #endif 296 302 297 303 #if PLATFORM(IOS) … … 687 693 } 688 694 695 - (BOOL)_mediaStreamEnabled 696 { 697 #if ENABLE(MEDIA_STREAM) 698 return _mediaStreamEnabled; 699 #else 700 return NO; 701 #endif 702 } 703 704 - (void)_setMediaStreamEnabled:(BOOL)enabled 705 { 706 #if ENABLE(MEDIA_STREAM) 707 _mediaStreamEnabled = enabled; 708 #endif 709 } 710 689 711 #if PLATFORM(MAC) 690 712 - (BOOL)_showsURLsInToolTips -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h
r211656 r212163 59 59 @property (nonatomic, setter=_setWaitsForPaintAfterViewDidMoveToWindow:) BOOL _waitsForPaintAfterViewDidMoveToWindow WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 60 60 @property (nonatomic, setter=_setControlledByAutomation:, getter=_isControlledByAutomation) BOOL _controlledByAutomation WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 61 @property (nonatomic, setter=_setMediaStreamEnabled:) BOOL _mediaStreamEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 61 62 62 63 #if TARGET_OS_IPHONE
Note: See TracChangeset
for help on using the changeset viewer.