• eric.carlson@apple.com's avatar
    Update CaptionUserPreferences · f02a61ae
    eric.carlson@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=108783
    
    Reviewed by Dean Jackson.
    
    * html/shadow/MediaControlElements.cpp:
    (WebCore::MediaControlTextTrackContainerElement::updateSizes): Mark font size as important
        when necessary.
    * page/CaptionUserPreferences.h:
    (WebCore::CaptionUserPreferences::setUserPrefersCaptions): New, allow a port to remember that
        the user has chosen to see captions.
    (WebCore::CaptionUserPreferences::setPreferredLanguage): New, allow a port to remember the
        user's preferred caption language.
    (WebCore::CaptionUserPreferences::preferredLanguages): New, return a Vector of the user's 
        preferred caption languages.
    * page/CaptionUserPreferencesMac.h:
    * page/CaptionUserPreferencesMac.mm:
    * page/PageGroup.cpp:
    (WebCore::PageGroup::captionPreferences):
    (WebCore::PageGroup::captionFontSizeScale):
    * page/PageGroup.h:
    * platform/Language.cpp:
    (WebCore::userPreferredLanguagesOverride): New, return the user preferred languages override
        used during testing.
    * platform/Language.h:
    * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
    (WebCore::InbandTextTrackPrivateAVFObjC::kind):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f02a61ae
CaptionUserPreferences.h 2.78 KB