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

Side by Side Diff: third_party/WebKit/Source/core/html/track/VideoTrack.h

Issue 1658033002: Add SourceBuffer implementations of Audio/VideoTracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-media-tracks-to-blink
Patch Set: rebase Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VideoTrack_h 5 #ifndef VideoTrack_h
6 #define VideoTrack_h 6 #define VideoTrack_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/html/track/TrackBase.h" 10 #include "core/html/track/TrackBase.h"
11 #include "platform/Supplementable.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class CORE_EXPORT VideoTrack final : public GarbageCollectedFinalized<VideoTrack >, public TrackBase, public ScriptWrappable { 15 class CORE_EXPORT VideoTrack final : public GarbageCollectedFinalized<VideoTrack >, public TrackBase, public ScriptWrappable, public HeapSupplementable<VideoTrac k> {
15 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
16 USING_GARBAGE_COLLECTED_MIXIN(VideoTrack); 17 USING_GARBAGE_COLLECTED_MIXIN(VideoTrack);
17 public: 18 public:
18 static VideoTrack* create(const String& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool selected) 19 static VideoTrack* create(const String& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool selected)
19 { 20 {
20 return new VideoTrack(id, kind, label, language, selected); 21 return new VideoTrack(id, kind, label, language, selected);
21 } 22 }
22 23
23 ~VideoTrack() override; 24 ~VideoTrack() override;
24 DECLARE_VIRTUAL_TRACE(); 25 DECLARE_VIRTUAL_TRACE();
(...skipping 23 matching lines...) Expand all
48 AtomicString defaultKind() const override; 49 AtomicString defaultKind() const override;
49 50
50 bool m_selected; 51 bool m_selected;
51 }; 52 };
52 53
53 DEFINE_TRACK_TYPE_CASTS(VideoTrack, TrackBase::VideoTrack); 54 DEFINE_TRACK_TYPE_CASTS(VideoTrack, TrackBase::VideoTrack);
54 55
55 } // namespace blink 56 } // namespace blink
56 57
57 #endif // VideoTrack_h 58 #endif // VideoTrack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698