| 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 21 matching lines...) Expand all Loading... |
| 32 void removeCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue>); | 32 void removeCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue>); |
| 33 | 33 |
| 34 void hideCues(TextTrack*, const TextTrackCueList*); | 34 void hideCues(TextTrack*, const TextTrackCueList*); |
| 35 | 35 |
| 36 void updateActiveCues(double); | 36 void updateActiveCues(double); |
| 37 | 37 |
| 38 bool ignoreUpdateRequests() const { return m_ignoreUpdate > 0; } | 38 bool ignoreUpdateRequests() const { return m_ignoreUpdate > 0; } |
| 39 void beginIgnoringUpdateRequests(); | 39 void beginIgnoringUpdateRequests(); |
| 40 void endIgnoringUpdateRequests(); | 40 void endIgnoringUpdateRequests(); |
| 41 | 41 |
| 42 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 42 const CueList& currentlyActiveCues() const { return m_currentlyActiveCues; } |
| 43 | 43 |
| 44 DECLARE_TRACE(); | 44 DECLARE_TRACE(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } | 47 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } |
| 48 | 48 |
| 49 void addCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue>); | 49 void addCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue>); |
| 50 void removeCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue>); | 50 void removeCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue>); |
| 51 | 51 |
| 52 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 52 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 static String string(TextTrackCue* const& cue) | 92 static String string(TextTrackCue* const& cue) |
| 93 { | 93 { |
| 94 return cue->toString(); | 94 return cue->toString(); |
| 95 } | 95 } |
| 96 }; | 96 }; |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 } // namespace blink | 99 } // namespace blink |
| 100 | 100 |
| 101 #endif // CueTimeline_h | 101 #endif // CueTimeline_h |
| OLD | NEW |