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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void remove(TextTrack*); | 60 void remove(TextTrack*); |
61 | 61 |
62 // EventTarget | 62 // EventTarget |
63 virtual const AtomicString& interfaceName() const OVERRIDE; | 63 virtual const AtomicString& interfaceName() const OVERRIDE; |
64 virtual ExecutionContext* executionContext() const OVERRIDE; | 64 virtual ExecutionContext* executionContext() const OVERRIDE; |
65 | 65 |
66 DEFINE_ATTRIBUTE_EVENT_LISTENER(addtrack); | 66 DEFINE_ATTRIBUTE_EVENT_LISTENER(addtrack); |
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(removetrack); | 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(removetrack); |
69 | 69 |
70 void clearOwnerAndClients(); | 70 void clearOwner(); |
71 HTMLMediaElement* owner() const; | 71 HTMLMediaElement* owner() const; |
72 | 72 |
73 void scheduleChangeEvent(); | 73 void scheduleChangeEvent(); |
74 void removeAllInbandTracks(); | 74 void removeAllInbandTracks(); |
75 | 75 |
76 private: | 76 private: |
77 explicit TextTrackList(HTMLMediaElement*); | 77 explicit TextTrackList(HTMLMediaElement*); |
78 | 78 |
79 void scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TextTrack>
); | 79 void scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TextTrack>
); |
80 | 80 |
81 void scheduleAddTrackEvent(PassRefPtr<TextTrack>); | 81 void scheduleAddTrackEvent(PassRefPtr<TextTrack>); |
82 void scheduleRemoveTrackEvent(PassRefPtr<TextTrack>); | 82 void scheduleRemoveTrackEvent(PassRefPtr<TextTrack>); |
83 | 83 |
84 void invalidateTrackIndexesAfterTrack(TextTrack*); | 84 void invalidateTrackIndexesAfterTrack(TextTrack*); |
85 | 85 |
86 HTMLMediaElement* m_owner; | 86 HTMLMediaElement* m_owner; |
87 | 87 |
88 OwnPtr<GenericEventQueue> m_asyncEventQueue; | 88 OwnPtr<GenericEventQueue> m_asyncEventQueue; |
89 | 89 |
90 Vector<RefPtr<TextTrack> > m_addTrackTracks; | 90 Vector<RefPtr<TextTrack> > m_addTrackTracks; |
91 Vector<RefPtr<TextTrack> > m_elementTracks; | 91 Vector<RefPtr<TextTrack> > m_elementTracks; |
92 Vector<RefPtr<TextTrack> > m_inbandTracks; | 92 Vector<RefPtr<TextTrack> > m_inbandTracks; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace WebCore | 95 } // namespace WebCore |
96 | 96 |
97 #endif | 97 #endif |
OLD | NEW |