-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source/WebCore: WebCore part of: Add WebKit preferences for text trac…
…k settings https://bugs.webkit.org/show_bug.cgi?id=73721 Reviewed by John Sullivan. No new tests yet, still nothing to test. * page/Settings.cpp: (WebCore::Settings::setShouldDisplaySubtitles): Move the setters to the .cpp file so they aren't inlined. (WebCore::Settings::setShouldDisplayCaptions): Ditto. (WebCore::Settings::setShouldDisplayTextDescriptions): Ditto. * page/Settings.h: Source/WebKit/chromium: WebKit/chromium part of: Add WebKit preferences for text track settings https://bugs.webkit.org/show_bug.cgi?id=73721 Reviewed by John Sullivan. * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::shouldDisplaySubtitles): Added. (WebKit::WebSettingsImpl::shouldDisplayCaptions): Ditto. (WebKit::WebSettingsImpl::shouldDisplayTextDescriptions): Ditto. * src/WebSettingsImpl.h: Source/WebKit/mac: Add WebKit preferences for text track settings https://bugs.webkit.org/show_bug.cgi?id=73721 Reviewed by John Sullivan. * WebView/WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, and shouldDisplayTextDescriptions properties. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Initialize new preferences to NO. (-[WebPreferences setShouldDisplaySubtitles:]): Added. (-[WebPreferences shouldDisplaySubtitles]): Ditto. (-[WebPreferences setShouldDisplayCaptions:]): Ditto. (-[WebPreferences shouldDisplayCaptions]): Ditto. (-[WebPreferences setShouldDisplayTextDescriptions:]): Ditto. (-[WebPreferences shouldDisplayTextDescriptions]): Ditto. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Updates WebCore settings from WebKit prefs. Source/WebKit/win: WebKit/mac part of: Add WebKit preferences for text track settings https://bugs.webkit.org/show_bug.cgi?id=73721 Reviewed by John Sullivan. * Interfaces/IWebPreferences.idl: Declare getters and setters for new properties. * WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, and shouldDisplayTextDescriptions properties. * WebPreferences.cpp: (WebPreferences::setShouldDisplaySubtitles): Added. (WebPreferences::shouldDisplaySubtitles): Ditto. (WebPreferences::setShouldDisplayCaptions): Ditto. (WebPreferences::shouldDisplayCaptions): Ditto. (WebPreferences::setShouldDisplayTextDescriptions): Ditto. (WebPreferences::shouldDisplayTextDescriptions): Ditto. * WebPreferences.h: Declare new methods. * WebView.cpp: (WebView::notifyPreferencesChanged): Updates WebCore settings from WebKit prefs. Source/WebKit2: WebKit2 part of: Add WebKit preferences for text track settings https://bugs.webkit.org/show_bug.cgi?id=73721 Reviewed by John Sullivan. * Shared/WebPreferencesStore.h: Declared shouldDisplaySubtitles, shouldDisplayCaptions, and shouldDisplayTextDescriptions properties with macros. All default to false. * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetShouldDisplaySubtitles): Added. (WKPreferencesGetShouldDisplaySubtitles): Ditto. (WKPreferencesSetShouldDisplayCaptions): Ditto. (WKPreferencesGetShouldDisplayCaptions): Ditto. (WKPreferencesSetShouldDisplayTextDescriptions): Ditto. (WKPreferencesGetShouldDisplayTextDescriptions): Ditto. * UIProcess/API/C/WKPreferences.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Updates WebCore settings from WebKit2 prefs. Canonical link: https://commits.webkit.org/90440@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
766e446
commit c546180
Showing
22 changed files
with
370 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.