summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/track/VideoTrackList.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/track/VideoTrackList.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/track/VideoTrackList.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/track/VideoTrackList.h b/chromium/third_party/WebKit/Source/core/html/track/VideoTrackList.h
new file mode 100644
index 00000000000..5e60b3171cb
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/core/html/track/VideoTrackList.h
@@ -0,0 +1,33 @@
+// 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;
+
+ // EventTarget
+ virtual const AtomicString& interfaceName() const OVERRIDE;
+
+ void trackSelected(blink::WebMediaPlayer::TrackId selectedTrackId);
+
+private:
+ explicit VideoTrackList(HTMLMediaElement&);
+};
+
+}
+
+#endif