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

Unified Diff: Source/core/html/track/VideoTrackList.h

Issue 284513003: Implement AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/VideoTrack.idl ('k') | Source/core/html/track/VideoTrackList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5e60b3171cbad1dab1c76c34a8e1f0f2aa23185f
--- /dev/null
+++ b/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
« no previous file with comments | « Source/core/html/track/VideoTrack.idl ('k') | Source/core/html/track/VideoTrackList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698