OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void remove(TextTrack*); | 61 void remove(TextTrack*); |
62 | 62 |
63 // EventTarget | 63 // EventTarget |
64 virtual const AtomicString& interfaceName() const OVERRIDE; | 64 virtual const AtomicString& interfaceName() const OVERRIDE; |
65 virtual ExecutionContext* executionContext() const OVERRIDE; | 65 virtual ExecutionContext* executionContext() const OVERRIDE; |
66 | 66 |
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(addtrack); | 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(addtrack); |
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
69 DEFINE_ATTRIBUTE_EVENT_LISTENER(removetrack); | 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(removetrack); |
70 | 70 |
71 void clearOwnerAndClients(); | 71 void clearOwner(); |
72 HTMLMediaElement* owner() const; | 72 HTMLMediaElement* owner() const; |
73 | 73 |
74 void scheduleChangeEvent(); | 74 void scheduleChangeEvent(); |
75 void removeAllInbandTracks(); | 75 void removeAllInbandTracks(); |
76 | 76 |
77 private: | 77 private: |
78 explicit TextTrackList(HTMLMediaElement*); | 78 explicit TextTrackList(HTMLMediaElement*); |
79 | 79 |
80 void scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TextTrack>
); | 80 void scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TextTrack>
); |
81 | 81 |
82 void scheduleAddTrackEvent(PassRefPtr<TextTrack>); | 82 void scheduleAddTrackEvent(PassRefPtr<TextTrack>); |
83 void scheduleRemoveTrackEvent(PassRefPtr<TextTrack>); | 83 void scheduleRemoveTrackEvent(PassRefPtr<TextTrack>); |
84 | 84 |
85 void invalidateTrackIndexesAfterTrack(TextTrack*); | 85 void invalidateTrackIndexesAfterTrack(TextTrack*); |
86 | 86 |
87 HTMLMediaElement* m_owner; | 87 HTMLMediaElement* m_owner; |
88 | 88 |
89 OwnPtr<GenericEventQueue> m_asyncEventQueue; | 89 OwnPtr<GenericEventQueue> m_asyncEventQueue; |
90 | 90 |
91 Vector<RefPtr<TextTrack> > m_addTrackTracks; | 91 Vector<RefPtr<TextTrack> > m_addTrackTracks; |
92 Vector<RefPtr<TextTrack> > m_elementTracks; | 92 Vector<RefPtr<TextTrack> > m_elementTracks; |
93 Vector<RefPtr<TextTrack> > m_inbandTracks; | 93 Vector<RefPtr<TextTrack> > m_inbandTracks; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace WebCore | 96 } // namespace WebCore |
97 | 97 |
98 #endif | 98 #endif |
OLD | NEW |