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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 273 |
274 #if !ENABLE(OILPAN) | 274 #if !ENABLE(OILPAN) |
275 void TextTrackList::clearOwner() | 275 void TextTrackList::clearOwner() |
276 { | 276 { |
277 m_owner = nullptr; | 277 m_owner = nullptr; |
278 } | 278 } |
279 #endif | 279 #endif |
280 | 280 |
281 void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr
WillBeRawPtr<TextTrack> track) | 281 void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr
WillBeRawPtr<TextTrack> track) |
282 { | 282 { |
283 TrackEventInit initializer; | 283 m_asyncEventQueue->enqueueEvent(TrackEvent::create(eventName, track)); |
284 initializer.track = track; | |
285 initializer.bubbles = false; | |
286 initializer.cancelable = false; | |
287 | |
288 m_asyncEventQueue->enqueueEvent(TrackEvent::create(eventName, initializer)); | |
289 } | 284 } |
290 | 285 |
291 void TextTrackList::scheduleAddTrackEvent(PassRefPtrWillBeRawPtr<TextTrack> trac
k) | 286 void TextTrackList::scheduleAddTrackEvent(PassRefPtrWillBeRawPtr<TextTrack> trac
k) |
292 { | 287 { |
293 // 4.8.10.12.3 Sourcing out-of-band text tracks | 288 // 4.8.10.12.3 Sourcing out-of-band text tracks |
294 // 4.8.10.12.4 Text track API | 289 // 4.8.10.12.4 Text track API |
295 // ... then queue a task to fire an event with the name addtrack, that does
not | 290 // ... then queue a task to fire an event with the name addtrack, that does
not |
296 // bubble and is not cancelable, and that uses the TrackEvent interface, wit
h | 291 // bubble and is not cancelable, and that uses the TrackEvent interface, wit
h |
297 // the track attribute initialized to the text track's TextTrack object, at | 292 // the track attribute initialized to the text track's TextTrack object, at |
298 // the media element's textTracks attribute's TextTrackList object. | 293 // the media element's textTracks attribute's TextTrackList object. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 328 |
334 void TextTrackList::trace(Visitor* visitor) | 329 void TextTrackList::trace(Visitor* visitor) |
335 { | 330 { |
336 visitor->trace(m_owner); | 331 visitor->trace(m_owner); |
337 visitor->trace(m_asyncEventQueue); | 332 visitor->trace(m_asyncEventQueue); |
338 visitor->trace(m_addTrackTracks); | 333 visitor->trace(m_addTrackTracks); |
339 visitor->trace(m_elementTracks); | 334 visitor->trace(m_elementTracks); |
340 visitor->trace(m_inbandTracks); | 335 visitor->trace(m_inbandTracks); |
341 EventTargetWithInlineData::trace(visitor); | 336 EventTargetWithInlineData::trace(visitor); |
342 } | 337 } |
OLD | NEW |