OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 26 matching lines...) Expand all Loading... |
37 class ExceptionState; | 37 class ExceptionState; |
38 class HTMLMediaElement; | 38 class HTMLMediaElement; |
39 class TextTrack; | 39 class TextTrack; |
40 class TextTrackCue; | 40 class TextTrackCue; |
41 class TextTrackCueList; | 41 class TextTrackCueList; |
42 class TextTrackList; | 42 class TextTrackList; |
43 class VTTRegion; | 43 class VTTRegion; |
44 class VTTRegionList; | 44 class VTTRegionList; |
45 | 45 |
46 class TextTrack : public TrackBase, public EventTargetWithInlineData { | 46 class TextTrack : public TrackBase, public EventTargetWithInlineData { |
| 47 DEFINE_WRAPPERTYPEINFO(); |
47 REFCOUNTED_EVENT_TARGET(TrackBase); | 48 REFCOUNTED_EVENT_TARGET(TrackBase); |
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TextTrack); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TextTrack); |
49 public: | 50 public: |
50 static PassRefPtrWillBeRawPtr<TextTrack> create(const AtomicString& kind, co
nst AtomicString& label, const AtomicString& language) | 51 static PassRefPtrWillBeRawPtr<TextTrack> create(const AtomicString& kind, co
nst AtomicString& label, const AtomicString& language) |
51 { | 52 { |
52 return adoptRefWillBeNoop(new TextTrack(kind, label, language, emptyAtom
, AddTrack)); | 53 return adoptRefWillBeNoop(new TextTrack(kind, label, language, emptyAtom
, AddTrack)); |
53 } | 54 } |
54 virtual ~TextTrack(); | 55 virtual ~TextTrack(); |
55 | 56 |
56 virtual void setTrackList(TextTrackList*); | 57 virtual void setTrackList(TextTrackList*); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ReadinessState m_readinessState; | 138 ReadinessState m_readinessState; |
138 int m_trackIndex; | 139 int m_trackIndex; |
139 int m_renderedTrackIndex; | 140 int m_renderedTrackIndex; |
140 bool m_hasBeenConfigured; | 141 bool m_hasBeenConfigured; |
141 }; | 142 }; |
142 | 143 |
143 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); | 144 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); |
144 | 145 |
145 } // namespace blink | 146 } // namespace blink |
146 | 147 |
147 #endif | 148 #endif // TextTrack_h |
OLD | NEW |