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 26 matching lines...) Expand all Loading... |
37 void beginIgnoringUpdateRequests(); | 37 void beginIgnoringUpdateRequests(); |
38 void endIgnoringUpdateRequests(); | 38 void endIgnoringUpdateRequests(); |
39 | 39 |
40 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 40 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } |
41 | 41 |
42 DECLARE_TRACE(); | 42 DECLARE_TRACE(); |
43 | 43 |
44 private: | 44 private: |
45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } | 45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } |
46 | 46 |
| 47 void addCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue>); |
| 48 void removeCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue>); |
| 49 |
47 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 50 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
48 | 51 |
49 CueIntervalTree m_cueTree; | 52 CueIntervalTree m_cueTree; |
50 | 53 |
51 CueList m_currentlyActiveCues; | 54 CueList m_currentlyActiveCues; |
52 double m_lastUpdateTime; | 55 double m_lastUpdateTime; |
53 | 56 |
54 int m_ignoreUpdate; | 57 int m_ignoreUpdate; |
55 }; | 58 }; |
56 | 59 |
(...skipping 30 matching lines...) Expand all Loading... |
87 static String string(TextTrackCue* const& cue) | 90 static String string(TextTrackCue* const& cue) |
88 { | 91 { |
89 return cue->toString(); | 92 return cue->toString(); |
90 } | 93 } |
91 }; | 94 }; |
92 #endif | 95 #endif |
93 | 96 |
94 } // namespace blink | 97 } // namespace blink |
95 | 98 |
96 #endif // CueTimeline_h | 99 #endif // CueTimeline_h |
OLD | NEW |