Chromium Code Reviews| 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 static const AtomicString& audioKeyword(); | |
| 30 static const AtomicString& videoKeyword(); | |
| 31 static const AtomicString& textKeyword(); | |
| 32 | |
| 33 virtual ~TrackDefault() { } | |
|
sof
2014/11/13 20:45:42
Possible to "outline" its definition?
wolenetz
2014/11/13 22:56:40
Yes, done. Thanks for spotting this.
| |
| 34 | |
| 35 // Implement the IDL | |
| 36 String type() const { return m_type; } | |
| 37 String byteStreamTrackID() const { return m_byteStreamTrackID; } | |
| 38 String language() const { return m_language; } | |
| 39 String label() const { return m_label; } | |
| 40 Vector<String> kinds() const { return m_kinds; } | |
| 41 | |
| 42 void trace(Visitor*) { } | |
| 43 | |
| 44 private: | |
| 45 TrackDefault(const AtomicString& type, const String& language, const String& label, const Vector<String>& kinds, const String& byteStreamTrackID, ExceptionS tate&); | |
| 46 | |
| 47 AtomicString m_type; | |
| 48 String m_byteStreamTrackID; | |
| 49 String m_language; | |
| 50 String m_label; | |
| 51 Vector<String> m_kinds; | |
| 52 }; | |
| 53 | |
| 54 } // namespace blink | |
| 55 | |
| 56 #endif // TrackDefault_h | |
| OLD | NEW |