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

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: 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
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 namespace blink {
9
10 class TrackDefault FINAL : public GarbageCollectedFinalized<TrackDefault>, publi c ScriptWrappable {
11 DEFINE_WRAPPERTYPEINFO();
12 public:
13 enum TrackDefaultTypeCode {
14 TrackDefaultTypeAudio,
15 TrackDefaultTypeVideo,
16 TrackDefaultTypeText
17 };
18
19 static TrackDefault* create(const AtomicString& type, const String& language , const String& label, const Vector<String>& kinds, String& byteStreamTrackID, E xceptionState& exceptionState)
20 {
21 return new TrackDefault(type, language, label, kinds, byteStreamTrackID, exceptionState);
22 }
23
24 static const AtomicString& audioKeyword();
25 static const AtomicString& videoKeyword();
26 static const AtomicString& textKeyword();
27
28 virtual ~TrackDefault() { }
29
30 // Implement the IDL
31 String type() const;
32 String byteStreamTrackID() const { return m_byteStreamTrackID; }
33 String language() const { return m_language; }
34 String label() const { return m_label; }
35 Vector<String> kinds() const { return m_kinds; }
36
37 void trace(Visitor*) { }
38
39 private:
40 TrackDefault(const AtomicString& type, const String& language, const String& label, const Vector<String>& kinds, const String& byteStreamTrackID, ExceptionS tate&);
41
42 AtomicString m_type;
43 String m_byteStreamTrackID;
44 String m_language;
45 String m_label;
46 Vector<String> m_kinds;
47 };
48
49 } // namespace blink
50
51 #endif // TrackDefault_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698