| OLD | NEW |
| (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 |
| OLD | NEW |