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 28 matching lines...) Expand all Loading... |
39 class ExceptionState; | 39 class ExceptionState; |
40 class HTMLMediaElement; | 40 class HTMLMediaElement; |
41 class TextTrack; | 41 class TextTrack; |
42 class TextTrackCue; | 42 class TextTrackCue; |
43 class TextTrackCueList; | 43 class TextTrackCueList; |
44 class TextTrackList; | 44 class TextTrackList; |
45 class VTTRegion; | 45 class VTTRegion; |
46 class VTTRegionList; | 46 class VTTRegionList; |
47 | 47 |
48 class TextTrack : public TrackBase, public ScriptWrappable, public EventTargetWi
thInlineData { | 48 class TextTrack : public TrackBase, public ScriptWrappable, public EventTargetWi
thInlineData { |
49 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<T
rackBase>); | 49 REFCOUNTED_EVENT_TARGET(TrackBase); |
| 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TextTrack); |
50 public: | 51 public: |
51 static PassRefPtrWillBeRawPtr<TextTrack> create(Document& document, const At
omicString& kind, const AtomicString& label, const AtomicString& language) | 52 static PassRefPtrWillBeRawPtr<TextTrack> create(Document& document, const At
omicString& kind, const AtomicString& label, const AtomicString& language) |
52 { | 53 { |
53 return adoptRefWillBeRefCountedGarbageCollected(new TextTrack(document,
kind, label, language, emptyAtom, AddTrack)); | 54 return adoptRefWillBeRefCountedGarbageCollected(new TextTrack(document,
kind, label, language, emptyAtom, AddTrack)); |
54 } | 55 } |
55 virtual ~TextTrack(); | 56 virtual ~TextTrack(); |
56 | 57 |
57 virtual void setTrackList(TextTrackList*); | 58 virtual void setTrackList(TextTrackList*); |
58 TextTrackList* trackList() { return m_trackList; } | 59 TextTrackList* trackList() { return m_trackList; } |
59 | 60 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 TextTrackType m_trackType; | 138 TextTrackType m_trackType; |
138 ReadinessState m_readinessState; | 139 ReadinessState m_readinessState; |
139 int m_trackIndex; | 140 int m_trackIndex; |
140 int m_renderedTrackIndex; | 141 int m_renderedTrackIndex; |
141 bool m_hasBeenConfigured; | 142 bool m_hasBeenConfigured; |
142 }; | 143 }; |
143 | 144 |
144 } // namespace WebCore | 145 } // namespace WebCore |
145 | 146 |
146 #endif | 147 #endif |
OLD | NEW |