Changeset 141840 in webkit
- Timestamp:
- Feb 4, 2013 6:01:20 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141837 r141840 1 2013-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 1 20 2013-02-04 Chris Hopman <cjhopman@chromium.org> 2 21 -
trunk/Source/WebCore/html/track/TextTrack.cpp
r140359 r141840 108 108 , m_renderedTrackIndex(invalidTrackIndex) 109 109 , m_hasBeenConfigured(false) 110 , m_isClosedCaptions(false) 110 111 { 111 112 setKind(kind); -
trunk/Source/WebCore/html/track/TextTrack.h
r140359 r141840 110 110 TextTrackType trackType() const { return m_trackType; } 111 111 112 bool isClosedCaptions() const { return m_isClosedCaptions; } 113 void setIsClosedCaptions(bool isClosedCaptions) { m_isClosedCaptions = isClosedCaptions; } 114 112 115 int trackIndex(); 113 116 void invalidateTrackIndex(); … … 142 145 int m_renderedTrackIndex; 143 146 bool m_hasBeenConfigured; 147 bool m_isClosedCaptions; 144 148 }; 145 149
Note: See TracChangeset
for help on using the changeset viewer.