Changeset 141840 in webkit


Ignore:
Timestamp:
Feb 4, 2013 6:01:20 PM (11 years ago)
Author:
dino@apple.com
Message:

Allow TextTracks to be marked as closed captions
https://bugs.webkit.org/show_bug.cgi?id=108856

Reviewed by Darin Adler.

While this isn't exposed directly in markup, some platform media frameworks can
provide indication that a caption track is a closed caption. Expose such a flag
on TextTrack and platforms can show a different UI if they want to.

No tests - this isn't used elsewhere yet, nor exposed to the DOM.

  • html/track/TextTrack.cpp:

(WebCore::TextTrack::TextTrack): Initialise new member.

  • html/track/TextTrack.h:

(WebCore::TextTrack::isClosedCaptions): New member variable.
(WebCore::TextTrack::setIsClosedCaptions):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141837 r141840  
     12013-02-04  Dean Jackson  <dino@apple.com>
     2
     3        Allow TextTracks to be marked as closed captions
     4        https://bugs.webkit.org/show_bug.cgi?id=108856
     5
     6        Reviewed by Darin Adler.
     7
     8        While this isn't exposed directly in markup, some platform media frameworks can
     9        provide indication that a caption track is a closed caption. Expose such a flag
     10        on TextTrack and platforms can show a different UI if they want to.
     11
     12        No tests - this isn't used elsewhere yet, nor exposed to the DOM.
     13
     14        * html/track/TextTrack.cpp:
     15        (WebCore::TextTrack::TextTrack): Initialise new member.
     16        * html/track/TextTrack.h:
     17        (WebCore::TextTrack::isClosedCaptions): New member variable.
     18        (WebCore::TextTrack::setIsClosedCaptions):
     19
    1202013-02-04  Chris Hopman  <cjhopman@chromium.org>
    221
  • trunk/Source/WebCore/html/track/TextTrack.cpp

    r140359 r141840  
    108108    , m_renderedTrackIndex(invalidTrackIndex)
    109109    , m_hasBeenConfigured(false)
     110    , m_isClosedCaptions(false)
    110111{
    111112    setKind(kind);
  • trunk/Source/WebCore/html/track/TextTrack.h

    r140359 r141840  
    110110    TextTrackType trackType() const { return m_trackType; }
    111111
     112    bool isClosedCaptions() const { return m_isClosedCaptions; }
     113    void setIsClosedCaptions(bool isClosedCaptions) { m_isClosedCaptions = isClosedCaptions; }
     114
    112115    int trackIndex();
    113116    void invalidateTrackIndex();
     
    142145    int m_renderedTrackIndex;
    143146    bool m_hasBeenConfigured;
     147    bool m_isClosedCaptions;
    144148};
    145149
Note: See TracChangeset for help on using the changeset viewer.