| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // EventTarget methods | 116 // EventTarget methods |
| 117 const AtomicString& interfaceName() const override; | 117 const AtomicString& interfaceName() const override; |
| 118 ExecutionContext* getExecutionContext() const override; | 118 ExecutionContext* getExecutionContext() const override; |
| 119 | 119 |
| 120 DECLARE_VIRTUAL_TRACE(); | 120 DECLARE_VIRTUAL_TRACE(); |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 TextTrack(const AtomicString& kind, const AtomicString& label, const AtomicS
tring& language, const AtomicString& id, TextTrackType); | 123 TextTrack(const AtomicString& kind, const AtomicString& label, const AtomicS
tring& language, const AtomicString& id, TextTrackType); |
| 124 | 124 |
| 125 bool isValidKind(const AtomicString& kind) const override { return isValidKi
ndKeyword(kind); } | 125 bool isValidKind(const AtomicString& kind) const override { return isValidKi
ndKeyword(kind); } |
| 126 AtomicString defaultKind() const override { return subtitlesKeyword(); } | 126 AtomicString invalidValueDefaultKind() const override { return metadataKeywo
rd(); } |
| 127 | 127 |
| 128 void addListOfCues(HeapVector<Member<TextTrackCue>>&); | 128 void addListOfCues(HeapVector<Member<TextTrackCue>>&); |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 CueTimeline* cueTimeline() const; | 131 CueTimeline* cueTimeline() const; |
| 132 | 132 |
| 133 TextTrackCueList* ensureTextTrackCueList(); | 133 TextTrackCueList* ensureTextTrackCueList(); |
| 134 Member<TextTrackCueList> m_cues; | 134 Member<TextTrackCueList> m_cues; |
| 135 Member<TextTrackCueList> m_activeCues; | 135 Member<TextTrackCueList> m_activeCues; |
| 136 | 136 |
| 137 VTTRegionList* ensureVTTRegionList(); | 137 VTTRegionList* ensureVTTRegionList(); |
| 138 Member<VTTRegionList> m_regions; | 138 Member<VTTRegionList> m_regions; |
| 139 | 139 |
| 140 Member<TextTrackList> m_trackList; | 140 Member<TextTrackList> m_trackList; |
| 141 AtomicString m_mode; | 141 AtomicString m_mode; |
| 142 TextTrackType m_trackType; | 142 TextTrackType m_trackType; |
| 143 ReadinessState m_readinessState; | 143 ReadinessState m_readinessState; |
| 144 int m_trackIndex; | 144 int m_trackIndex; |
| 145 int m_renderedTrackIndex; | 145 int m_renderedTrackIndex; |
| 146 bool m_hasBeenConfigured; | 146 bool m_hasBeenConfigured; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 DEFINE_TRACK_TYPE_CASTS(TextTrack, WebMediaPlayer::TextTrack); | 149 DEFINE_TRACK_TYPE_CASTS(TextTrack, WebMediaPlayer::TextTrack); |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // TextTrack_h | 153 #endif // TextTrack_h |
| OLD | NEW |