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

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

Issue 2263823002: Deliver change notifications to SourceBuffer track lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call VideoTrackList::trackSelected also the SourceBuffer track list Created 4 years, 3 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 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 "core/html/track/VideoTrackList.h" 5 #include "core/html/track/VideoTrackList.h"
6 6
7 #include "core/html/HTMLMediaElement.h" 7 #include "core/html/HTMLMediaElement.h"
8 #include "core/html/track/VideoTrack.h" 8 #include "core/html/track/VideoTrack.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 { 44 {
45 // Clear the selected flag on the previously selected track, if any. 45 // Clear the selected flag on the previously selected track, if any.
46 for (unsigned i = 0; i < length(); ++i) { 46 for (unsigned i = 0; i < length(); ++i) {
47 VideoTrack* track = anonymousIndexedGetter(i); 47 VideoTrack* track = anonymousIndexedGetter(i);
48 48
49 if (track->id() != selectedTrackId) 49 if (track->id() != selectedTrackId)
50 track->clearSelected(); 50 track->clearSelected();
51 else 51 else
52 DCHECK(track->selected()); 52 DCHECK(track->selected());
53 } 53 }
54
55 scheduleChangeEvent();
56 } 54 }
57 55
58 } // namespace blink 56 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/track/VideoTrack.cpp ('k') | third_party/WebKit/Source/modules/mediasource/MediaSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698