OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> tracks; | 216 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> tracks; |
217 RefPtrWillBeMember<TextTrack> visibleTrack; | 217 RefPtrWillBeMember<TextTrack> visibleTrack; |
218 RefPtrWillBeMember<TextTrack> defaultTrack; | 218 RefPtrWillBeMember<TextTrack> defaultTrack; |
219 GroupKind kind; | 219 GroupKind kind; |
220 bool hasSrcLang; | 220 bool hasSrcLang; |
221 }; | 221 }; |
222 | 222 |
223 void configureTextTrackGroupForLanguage(const TrackGroup&) const; | 223 void configureTextTrackGroupForLanguage(const TrackGroup&) const; |
224 void configureTextTracks(); | 224 void configureTextTracks(); |
225 void configureTextTrackGroup(const TrackGroup&); | 225 void configureTextTrackGroup(const TrackGroup&); |
| 226 void configureMetadataTextTrackGroup(const TrackGroup&); |
226 | 227 |
227 bool textTracksAreReady() const; | 228 bool textTracksAreReady() const; |
228 enum VisibilityChangeAssumption { | 229 enum VisibilityChangeAssumption { |
229 AssumeNoVisibleChange, | 230 AssumeNoVisibleChange, |
230 AssumeVisibleChange | 231 AssumeVisibleChange |
231 }; | 232 }; |
232 void configureTextTrackDisplay(VisibilityChangeAssumption); | 233 void configureTextTrackDisplay(VisibilityChangeAssumption); |
233 void updateTextTrackDisplay(); | 234 void updateTextTrackDisplay(); |
234 void textTrackReadyStateChanged(TextTrack*); | 235 void textTrackReadyStateChanged(TextTrack*); |
235 | 236 |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 inline bool isHTMLMediaElement(const HTMLElement& element) | 629 inline bool isHTMLMediaElement(const HTMLElement& element) |
629 { | 630 { |
630 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 631 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
631 } | 632 } |
632 | 633 |
633 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 634 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
634 | 635 |
635 } // namespace blink | 636 } // namespace blink |
636 | 637 |
637 #endif // HTMLMediaElement_h | 638 #endif // HTMLMediaElement_h |
OLD | NEW |