Changeset 84648 in webkit
- Timestamp:
- Apr 22, 2011 11:03:04 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r84643 r84648 1 2011-04-22 Jer Noble <jer.noble@apple.com> 2 3 Reviewed by Maciej Stachowiak. 4 5 Allow MediaPlayerPrivateAVFoundation to be disabled via a preference. 6 https://bugs.webkit.org/show_bug.cgi?id=59179 7 8 Add API to allow the WebCore Settings preference to be called from the UIProcess. 9 10 * Shared/WebPreferencesStore.h: Added new preference definition macro. 11 * UIProcess/API/C/WKPreferences.cpp: 12 (WKPreferencesSetAVFoundationEnabled): Added. 13 (WKPreferencesGetAVFoundationEnabled): Added. 14 * UIProcess/API/C/WKPreferences.h: 15 * WebProcess/WebPage/WebPage.cpp: 16 (WebKit::WebPage::updatePreferences): Pass new preference along to WebCore 17 Settings. 18 1 19 2011-04-22 Brian Weinstein <bweinstein@apple.com> 2 20 -
trunk/Source/WebKit2/Shared/WebPreferencesStore.h
r84561 r84648 75 75 macro(AllowUniversalAccessFromFileURLs, allowUniversalAccessFromFileURLs, Bool, bool, false) \ 76 76 macro(AllowFileAccessFromFileURLs, allowFileAccessFromFileURLs, Bool, bool, false) \ 77 macro(AVFoundationEnabled, isAVFoundationEnabled, Bool, bool, true) \ 77 78 \ 78 79 -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
r83778 r84648 523 523 } 524 524 525 void WKPreferencesSetAVFoundationEnabled(WKPreferencesRef preferencesRef, bool enabled) 526 { 527 toImpl(preferencesRef)->setAVFoundationEnabled(enabled); 528 } 529 530 bool WKPreferencesGetAVFoundationEnabled(WKPreferencesRef preferencesRef) 531 { 532 return toImpl(preferencesRef)->isAVFoundationEnabled(); 533 } 534 525 535 void WKPreferencesSetWebSecurityEnabled(WKPreferencesRef preferencesRef, bool enabled) 526 536 { -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.h
r83628 r84648 159 159 WK_EXPORT bool WKPreferencesGetFullScreenEnabled(WKPreferencesRef preferencesRef); 160 160 161 // Defaults to true. 162 WK_EXPORT void WKPreferencesSetAVFoundationEnabled(WKPreferencesRef preferencesRef, bool enabled); 163 WK_EXPORT bool WKPreferencesGetAVFoundationEnabled(WKPreferencesRef preferencesRef); 161 164 162 165 #ifdef __cplusplus -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r84613 r84648 1468 1468 #endif 1469 1469 1470 #if USE(AVFOUNDATION) 1471 settings->setAVFoundationEnabled(store.getBoolValueForKey(WebPreferencesKey::isAVFoundationEnabledKey())); 1472 #endif 1473 1470 1474 platformPreferencesDidChange(store); 1471 1475 }
Note: See TracChangeset
for help on using the changeset viewer.