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

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

Issue 1014873004: Let CueTimeline::currentlyActiveCues() return by reference-to-const (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/TextTrackContainer.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 21 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/track/TextTrackContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698