Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 FINAL : public TrackBaseList, public ScriptWrappable { | |
| 17 public: | |
| 18 static PassRefPtrWillBeRawPtr<VideoTrackList> create(HTMLMediaElement*); | |
|
sof
2014/03/13 12:19:20
Just leave this as PassRefPtr, as you're not addin
acolwell GONE FROM CHROMIUM
2014/03/18 22:02:15
Done.
| |
| 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 explicit VideoTrackList(HTMLMediaElement*); | |
| 33 int m_selectedIndex; | |
| 34 }; | |
| 35 | |
| 36 } | |
| 37 | |
| 38 #endif | |
| OLD | NEW |