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

Side by Side Diff: Source/core/html/track/VideoTrackList.cpp

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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
« no previous file with comments | « Source/core/html/track/VideoTrackList.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "core/html/track/VideoTrackList.h" 6 #include "core/html/track/VideoTrackList.h"
7 7
8 #include "core/html/HTMLMediaElement.h" 8 #include "core/html/HTMLMediaElement.h"
9 #include "core/html/track/VideoTrack.h" 9 #include "core/html/track/VideoTrack.h"
10 10
(...skipping 23 matching lines...) Expand all
34 for (unsigned i = 0; i < length(); ++i) { 34 for (unsigned i = 0; i < length(); ++i) {
35 VideoTrack* track = anonymousIndexedGetter(i); 35 VideoTrack* track = anonymousIndexedGetter(i);
36 36
37 if (track->selected()) 37 if (track->selected())
38 return i; 38 return i;
39 } 39 }
40 40
41 return -1; 41 return -1;
42 } 42 }
43 43
44 void VideoTrackList::trackSelected(blink::WebMediaPlayer::TrackId selectedTrackI d) 44 void VideoTrackList::trackSelected(WebMediaPlayer::TrackId selectedTrackId)
45 { 45 {
46 // Clear the selected flag on the previously selected track, if any. 46 // Clear the selected flag on the previously selected track, if any.
47 for (unsigned i = 0; i < length(); ++i) { 47 for (unsigned i = 0; i < length(); ++i) {
48 VideoTrack* track = anonymousIndexedGetter(i); 48 VideoTrack* track = anonymousIndexedGetter(i);
49 49
50 if (track->trackId() != selectedTrackId) 50 if (track->trackId() != selectedTrackId)
51 track->clearSelected(); 51 track->clearSelected();
52 else 52 else
53 ASSERT(track->selected()); 53 ASSERT(track->selected());
54 } 54 }
55 55
56 scheduleChangeEvent(); 56 scheduleChangeEvent();
57 } 57 }
58 58
59 } 59 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/track/VideoTrackList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698