Chromium Code Reviews| Index: Source/core/html/track/VideoTrackList.h |
| diff --git a/Source/core/html/track/VideoTrackList.h b/Source/core/html/track/VideoTrackList.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3586c65c4b853898abfbcb607cb355e91b2c5c05 |
| --- /dev/null |
| +++ b/Source/core/html/track/VideoTrackList.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef VideoTrackList_h |
| +#define VideoTrackList_h |
| + |
| +#include "bindings/v8/ScriptWrappable.h" |
| +#include "core/html/track/TrackBaseList.h" |
| + |
| +namespace WebCore { |
| + |
| +class VideoTrack; |
| +class HTMLMediaElement; |
| + |
| +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.
|
| +public: |
| + static PassRefPtrWillBeRawPtr<VideoTrackList> create(HTMLMediaElement*); |
| + |
| + virtual ~VideoTrackList(); |
| + |
| + VideoTrack* anonymousIndexedGetter(unsigned index) const; |
| + VideoTrack* getTrackById(const AtomicString& id) const; |
| + int selectedIndex() const { return m_selectedIndex; } |
| + |
| + // EventTarget |
| + virtual const AtomicString& interfaceName() const OVERRIDE; |
| + |
| + void trackSelected(const AtomicString& selectedTrackID); |
| + |
| +private: |
| + VideoTrackList(HTMLMediaElement* owner); |
|
Inactive
2014/03/08 03:05:59
Can be explicit
acolwell GONE FROM CHROMIUM
2014/03/08 19:56:42
Done.
|
| + int m_selectedIndex; |
| +}; |
| + |
| +} |
| + |
| +#endif |