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

Side by Side Diff: third_party/WebKit/Source/core/html/track/CueTimeline.cpp

Issue 1740483004: Rename enums/functions that collide in chromium style in core/html/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-5
Patch Set: get-names-6: . Created 4 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
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 #include "core/html/track/CueTimeline.h" 5 #include "core/html/track/CueTimeline.h"
6 6
7 #include "core/events/Event.h" 7 #include "core/events/Event.h"
8 #include "core/html/HTMLMediaElement.h" 8 #include "core/html/HTMLMediaElement.h"
9 #include "core/html/HTMLTrackElement.h" 9 #include "core/html/HTMLTrackElement.h"
10 #include "core/html/track/LoadableTextTrack.h" 10 #include "core/html/track/LoadableTextTrack.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // 1 - Let current cues be a list of cues, initialized to contain all the 144 // 1 - Let current cues be a list of cues, initialized to contain all the
145 // cues of all the hidden, showing, or showing by default text tracks of the 145 // cues of all the hidden, showing, or showing by default text tracks of the
146 // media element (not the disabled ones) whose start times are less than or 146 // media element (not the disabled ones) whose start times are less than or
147 // equal to the current playback position and whose end times are greater 147 // equal to the current playback position and whose end times are greater
148 // than the current playback position. 148 // than the current playback position.
149 CueList currentCues; 149 CueList currentCues;
150 150
151 // The user agent must synchronously unset [the text track cue active] flag 151 // The user agent must synchronously unset [the text track cue active] flag
152 // whenever ... the media element's readyState is changed back to HAVE_NOTHI NG. 152 // whenever ... the media element's readyState is changed back to HAVE_NOTHI NG.
153 if (mediaElement.readyState() != HTMLMediaElement::HAVE_NOTHING && mediaElem ent.webMediaPlayer()) 153 if (mediaElement.getReadyState() != HTMLMediaElement::HAVE_NOTHING && mediaE lement.webMediaPlayer())
154 currentCues = m_cueTree.allOverlaps(m_cueTree.createInterval(movieTime, movieTime)); 154 currentCues = m_cueTree.allOverlaps(m_cueTree.createInterval(movieTime, movieTime));
155 155
156 CueList previousCues; 156 CueList previousCues;
157 CueList missedCues; 157 CueList missedCues;
158 158
159 // 2 - Let other cues be a list of cues, initialized to contain all the cues 159 // 2 - Let other cues be a list of cues, initialized to contain all the cues
160 // of hidden, showing, and showing by default text tracks of the media 160 // of hidden, showing, and showing by default text tracks of the media
161 // element that are not present in current cues. 161 // element that are not present in current cues.
162 previousCues = m_currentlyActiveCues; 162 previousCues = m_currentlyActiveCues;
163 163
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 if (!m_ignoreUpdate) 358 if (!m_ignoreUpdate)
359 updateActiveCues(mediaElement().currentTime()); 359 updateActiveCues(mediaElement().currentTime());
360 } 360 }
361 361
362 DEFINE_TRACE(CueTimeline) 362 DEFINE_TRACE(CueTimeline)
363 { 363 {
364 visitor->trace(m_mediaElement); 364 visitor->trace(m_mediaElement);
365 } 365 }
366 366
367 } // namespace blink 367 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698