OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CueTimeline_h | 5 #ifndef CueTimeline_h |
6 #define CueTimeline_h | 6 #define CueTimeline_h |
7 | 7 |
8 #include "core/html/track/TextTrackCue.h" | 8 #include "core/html/track/TextTrackCue.h" |
9 #include "core/html/track/vtt/VTTCue.h" | 9 #include "core/html/track/vtt/VTTCue.h" |
10 #include "platform/PODIntervalTree.h" | 10 #include "platform/PODIntervalTree.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // with TextTracks. Owned by a HTMLMediaElement. | 24 // with TextTracks. Owned by a HTMLMediaElement. |
25 class CueTimeline : public NoBaseWillBeGarbageCollectedFinalized<CueTimeline> { | 25 class CueTimeline : public NoBaseWillBeGarbageCollectedFinalized<CueTimeline> { |
26 public: | 26 public: |
27 CueTimeline(HTMLMediaElement&); | 27 CueTimeline(HTMLMediaElement&); |
28 | 28 |
29 void addCues(TextTrack*, const TextTrackCueList*); | 29 void addCues(TextTrack*, const TextTrackCueList*); |
30 void addCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue>); | 30 void addCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue>); |
31 void removeCues(TextTrack*, const TextTrackCueList*); | 31 void removeCues(TextTrack*, const TextTrackCueList*); |
32 void removeCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue>); | 32 void removeCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue>); |
33 | 33 |
| 34 void hideCues(TextTrack*, const TextTrackCueList*); |
| 35 |
34 void updateActiveCues(double); | 36 void updateActiveCues(double); |
35 | 37 |
36 bool ignoreUpdateRequests() const { return m_ignoreUpdate > 0; } | 38 bool ignoreUpdateRequests() const { return m_ignoreUpdate > 0; } |
37 void beginIgnoringUpdateRequests(); | 39 void beginIgnoringUpdateRequests(); |
38 void endIgnoringUpdateRequests(); | 40 void endIgnoringUpdateRequests(); |
39 | 41 |
40 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 42 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } |
41 | 43 |
42 DECLARE_TRACE(); | 44 DECLARE_TRACE(); |
43 | 45 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 static String string(TextTrackCue* const& cue) | 92 static String string(TextTrackCue* const& cue) |
91 { | 93 { |
92 return cue->toString(); | 94 return cue->toString(); |
93 } | 95 } |
94 }; | 96 }; |
95 #endif | 97 #endif |
96 | 98 |
97 } // namespace blink | 99 } // namespace blink |
98 | 100 |
99 #endif // CueTimeline_h | 101 #endif // CueTimeline_h |
OLD | NEW |