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..39affd7a5ff30e2c923901a6ed633da50774f612 |
| --- /dev/null |
| +++ b/Source/core/html/track/VideoTrackList.h |
| @@ -0,0 +1,34 @@ |
| +// 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/TrackListBase.h" |
| +#include "core/html/track/VideoTrack.h" |
| + |
| +namespace WebCore { |
| + |
| +class VideoTrackList FINAL : public TrackListBase<VideoTrack>, public ScriptWrappable { |
| +public: |
| + static PassRefPtrWillBeRawPtr<VideoTrackList> create(HTMLMediaElement&); |
| + |
| + virtual ~VideoTrackList(); |
| + |
| + int selectedIndex() const { return m_selectedIndex; } |
| + |
| + // EventTarget |
| + virtual const AtomicString& interfaceName() const OVERRIDE; |
| + |
| + void trackSelected(blink::WebMediaPlayer::TrackId* selectedTrackId); |
|
acolwell GONE FROM CHROMIUM
2014/06/11 19:01:04
nit: Please document what null TrackId means.
philipj_slow
2014/06/12 12:08:24
Done.
|
| + |
| +private: |
| + explicit VideoTrackList(HTMLMediaElement&); |
| + int m_selectedIndex; |
| +}; |
| + |
| +} |
| + |
| +#endif |