| 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..7907e4cf24370cc0c2150005c58f784a6d2002c7
|
| --- /dev/null
|
| +++ b/Source/core/html/track/VideoTrackList.h
|
| @@ -0,0 +1,41 @@
|
| +// 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 {
|
| +public:
|
| + static PassRefPtr<VideoTrackList> create(HTMLMediaElement* owner)
|
| + {
|
| + return adoptRef(new VideoTrackList(owner));
|
| + }
|
| + 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;
|
| + virtual ExecutionContext* executionContext() const OVERRIDE;
|
| +
|
| + void trackSelected(VideoTrack*);
|
| +
|
| +private:
|
| + VideoTrackList(HTMLMediaElement* owner);
|
| + int m_selectedIndex;
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif
|
|
|