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

Side by Side Diff: Source/modules/mediasource/TrackDefault.h

Issue 691313002: MSE: Implement TrackDefault object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased and addressed PS9 comments Created 6 years, 1 month 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
« no previous file with comments | « Source/core/html/track/VideoTrack.cpp ('k') | Source/modules/mediasource/TrackDefault.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef TrackDefault_h
6 #define TrackDefault_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "wtf/text/WTFString.h"
10
11 namespace blink {
12
13 class ExceptionState;
14
15 class TrackDefault final : public GarbageCollectedFinalized<TrackDefault>, publi c ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO();
17 public:
18 enum TrackDefaultTypeCode {
19 TrackDefaultTypeAudio,
20 TrackDefaultTypeVideo,
21 TrackDefaultTypeText
22 };
23
24 static TrackDefault* create(const AtomicString& type, const String& language , const String& label, const Vector<String>& kinds, const String& byteStreamTrac kID, ExceptionState& exceptionState)
25 {
26 return new TrackDefault(type, language, label, kinds, byteStreamTrackID, exceptionState);
27 }
28
29 virtual ~TrackDefault();
30
31 // Implement the IDL
32 AtomicString type() const { return m_type; }
33 String byteStreamTrackID() const { return m_byteStreamTrackID; }
34 String language() const { return m_language; }
35 String label() const { return m_label; }
36 const Vector<String>& kinds() const { return m_kinds; }
37
38 void trace(Visitor*) { }
39
40 private:
41 TrackDefault(const AtomicString& type, const String& language, const String& label, const Vector<String>& kinds, const String& byteStreamTrackID, ExceptionS tate&);
42
43 AtomicString m_type;
44 String m_byteStreamTrackID;
45 String m_language;
46 String m_label;
47 Vector<String> m_kinds;
48 };
49
50 } // namespace blink
51
52 #endif // TrackDefault_h
OLDNEW
« no previous file with comments | « Source/core/html/track/VideoTrack.cpp ('k') | Source/modules/mediasource/TrackDefault.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698