| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 else if (track->trackType() == TextTrack::InBand) | 225 else if (track->trackType() == TextTrack::InBand) |
| 226 tracks = &m_inbandTracks; | 226 tracks = &m_inbandTracks; |
| 227 else | 227 else |
| 228 ASSERT_NOT_REACHED(); | 228 ASSERT_NOT_REACHED(); |
| 229 | 229 |
| 230 return tracks->find(track) != kNotFound; | 230 return tracks->find(track) != kNotFound; |
| 231 } | 231 } |
| 232 | 232 |
| 233 const AtomicString& TextTrackList::interfaceName() const | 233 const AtomicString& TextTrackList::interfaceName() const |
| 234 { | 234 { |
| 235 return eventNames().interfaceForTextTrackList; | 235 return EventTargetNames::TextTrackList; |
| 236 } | 236 } |
| 237 | 237 |
| 238 void TextTrackList::scheduleAddTrackEvent(PassRefPtr<TextTrack> track) | 238 void TextTrackList::scheduleAddTrackEvent(PassRefPtr<TextTrack> track) |
| 239 { | 239 { |
| 240 // 4.8.10.12.3 Sourcing out-of-band text tracks | 240 // 4.8.10.12.3 Sourcing out-of-band text tracks |
| 241 // 4.8.10.12.4 Text track API | 241 // 4.8.10.12.4 Text track API |
| 242 // ... then queue a task to fire an event with the name addtrack, that does
not | 242 // ... then queue a task to fire an event with the name addtrack, that does
not |
| 243 // bubble and is not cancelable, and that uses the TrackEvent interface, wit
h | 243 // bubble and is not cancelable, and that uses the TrackEvent interface, wit
h |
| 244 // the track attribute initialized to the text track's TextTrack object, at | 244 // the track attribute initialized to the text track's TextTrack object, at |
| 245 // the media element's textTracks attribute's TextTrackList object. | 245 // the media element's textTracks attribute's TextTrackList object. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 264 size_t count = pendingEvents.size(); | 264 size_t count = pendingEvents.size(); |
| 265 for (size_t index = 0; index < count; ++index) | 265 for (size_t index = 0; index < count; ++index) |
| 266 dispatchEvent(pendingEvents[index].release(), IGNORE_EXCEPTION); | 266 dispatchEvent(pendingEvents[index].release(), IGNORE_EXCEPTION); |
| 267 --m_dispatchingEvents; | 267 --m_dispatchingEvents; |
| 268 } | 268 } |
| 269 | 269 |
| 270 Node* TextTrackList::owner() const | 270 Node* TextTrackList::owner() const |
| 271 { | 271 { |
| 272 return m_owner; | 272 return m_owner; |
| 273 } | 273 } |
| OLD | NEW |