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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 virtual bool isDefault() const { return false; } | 111 virtual bool isDefault() const { return false; } |
112 virtual void setIsDefault(bool) { } | 112 virtual void setIsDefault(bool) { } |
113 | 113 |
114 void removeAllCues(); | 114 void removeAllCues(); |
115 | 115 |
116 // EventTarget methods | 116 // EventTarget methods |
117 virtual const AtomicString& interfaceName() const override; | 117 virtual const AtomicString& interfaceName() const override; |
118 virtual ExecutionContext* executionContext() const override; | 118 virtual ExecutionContext* executionContext() const override; |
119 | 119 |
120 virtual void trace(Visitor*) override; | 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 virtual bool isValidKind(const AtomicString& kind) const override { return i
sValidKindKeyword(kind); } | 125 virtual bool isValidKind(const AtomicString& kind) const override { return i
sValidKindKeyword(kind); } |
126 virtual AtomicString defaultKind() const override { return subtitlesKeyword(
); } | 126 virtual AtomicString defaultKind() const override { return subtitlesKeyword(
); } |
127 | 127 |
128 CueTimeline* cueTimeline() const; | 128 CueTimeline* cueTimeline() const; |
129 | 129 |
130 RefPtrWillBeMember<TextTrackCueList> m_cues; | 130 RefPtrWillBeMember<TextTrackCueList> m_cues; |
(...skipping 11 matching lines...) Expand all Loading... |
142 int m_trackIndex; | 142 int m_trackIndex; |
143 int m_renderedTrackIndex; | 143 int m_renderedTrackIndex; |
144 bool m_hasBeenConfigured; | 144 bool m_hasBeenConfigured; |
145 }; | 145 }; |
146 | 146 |
147 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); | 147 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); |
148 | 148 |
149 } // namespace blink | 149 } // namespace blink |
150 | 150 |
151 #endif // TextTrack_h | 151 #endif // TextTrack_h |
OLD | NEW |