Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: Source/core/html/track/CueTimeline.h

Issue 994353003: Hide call to removeDisplayTree in CueTimeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/track/CueTimeline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/track/CueTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698