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

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

Issue 170233009: Initial implementation of AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@blink-master
Patch Set: Rebased, reworked impl, and addressed comments. Created 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef VideoTrackList_h
6 #define VideoTrackList_h
7
8 #include "bindings/v8/ScriptWrappable.h"
9 #include "core/html/track/TrackBaseList.h"
10
11 namespace WebCore {
12
13 class VideoTrack;
14 class HTMLMediaElement;
15
16 class VideoTrackList : public TrackBaseList, public ScriptWrappable {
Inactive 2014/03/08 03:05:59 Can be FINAL
acolwell GONE FROM CHROMIUM 2014/03/08 19:56:42 Done.
17 public:
18 static PassRefPtrWillBeRawPtr<VideoTrackList> create(HTMLMediaElement*);
19
20 virtual ~VideoTrackList();
21
22 VideoTrack* anonymousIndexedGetter(unsigned index) const;
23 VideoTrack* getTrackById(const AtomicString& id) const;
24 int selectedIndex() const { return m_selectedIndex; }
25
26 // EventTarget
27 virtual const AtomicString& interfaceName() const OVERRIDE;
28
29 void trackSelected(const AtomicString& selectedTrackID);
30
31 private:
32 VideoTrackList(HTMLMediaElement* owner);
Inactive 2014/03/08 03:05:59 Can be explicit
acolwell GONE FROM CHROMIUM 2014/03/08 19:56:42 Done.
33 int m_selectedIndex;
34 };
35
36 }
37
38 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698