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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual EventTargetData* ensureEventTargetData() { return &m_eventTargetData
; } | 91 virtual EventTargetData* ensureEventTargetData() { return &m_eventTargetData
; } |
92 | 92 |
93 void scheduleAddTrackEvent(PassRefPtr<TextTrack>); | 93 void scheduleAddTrackEvent(PassRefPtr<TextTrack>); |
94 void asyncEventTimerFired(Timer<TextTrackList>*); | 94 void asyncEventTimerFired(Timer<TextTrackList>*); |
95 | 95 |
96 void invalidateTrackIndexesAfterTrack(TextTrack*); | 96 void invalidateTrackIndexesAfterTrack(TextTrack*); |
97 | 97 |
98 // FIXME(oilpan): This is a weak pointer. | 98 // FIXME(oilpan): This is a weak pointer. |
99 ScriptExecutionContext* m_context; | 99 ScriptExecutionContext* m_context; |
100 // FIXME(oilpan): This is a strong pointer. | 100 // FIXME(oilpan): This is a strong pointer. |
| 101 // TextTrackList and HTMLMediaElement should die together. |
| 102 // See comment #18 of https://codereview.chromium.org/23451042/ for more det
ails. |
101 HTMLMediaElement* m_owner; | 103 HTMLMediaElement* m_owner; |
102 | 104 |
103 Vector<RefPtr<Event> > m_pendingEvents; | 105 Vector<RefPtr<Event> > m_pendingEvents; |
104 Timer<TextTrackList> m_pendingEventTimer; | 106 Timer<TextTrackList> m_pendingEventTimer; |
105 | 107 |
106 EventTargetData m_eventTargetData; | 108 EventTargetData m_eventTargetData; |
107 Vector<RefPtr<TextTrack> > m_addTrackTracks; | 109 Vector<RefPtr<TextTrack> > m_addTrackTracks; |
108 Vector<RefPtr<TextTrack> > m_elementTracks; | 110 Vector<RefPtr<TextTrack> > m_elementTracks; |
109 Vector<RefPtr<TextTrack> > m_inbandTracks; | 111 Vector<RefPtr<TextTrack> > m_inbandTracks; |
110 | 112 |
111 int m_dispatchingEvents; | 113 int m_dispatchingEvents; |
112 }; | 114 }; |
113 | 115 |
114 } // namespace WebCore | 116 } // namespace WebCore |
115 | 117 |
116 #endif | 118 #endif |
OLD | NEW |