| 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 30 matching lines...) Expand all Loading... |
| 41 class TextTrack; | 41 class TextTrack; |
| 42 | 42 |
| 43 class TextTrackList final : public EventTargetWithInlineData, public RefCountedW
illBeNoBase<TextTrackList> { | 43 class TextTrackList final : public EventTargetWithInlineData, public RefCountedW
illBeNoBase<TextTrackList> { |
| 44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| 45 REFCOUNTED_EVENT_TARGET(TextTrackList); | 45 REFCOUNTED_EVENT_TARGET(TextTrackList); |
| 46 public: | 46 public: |
| 47 static PassRefPtrWillBeRawPtr<TextTrackList> create(HTMLMediaElement* owner) | 47 static PassRefPtrWillBeRawPtr<TextTrackList> create(HTMLMediaElement* owner) |
| 48 { | 48 { |
| 49 return adoptRefWillBeNoop(new TextTrackList(owner)); | 49 return adoptRefWillBeNoop(new TextTrackList(owner)); |
| 50 } | 50 } |
| 51 virtual ~TextTrackList(); | 51 ~TextTrackList() override; |
| 52 | 52 |
| 53 unsigned length() const; | 53 unsigned length() const; |
| 54 int getTrackIndex(TextTrack*); | 54 int getTrackIndex(TextTrack*); |
| 55 int getTrackIndexRelativeToRenderedTracks(TextTrack*); | 55 int getTrackIndexRelativeToRenderedTracks(TextTrack*); |
| 56 bool contains(TextTrack*) const; | 56 bool contains(TextTrack*) const; |
| 57 | 57 |
| 58 TextTrack* item(unsigned index); | 58 TextTrack* item(unsigned index); |
| 59 TextTrack* getTrackById(const AtomicString& id); | 59 TextTrack* getTrackById(const AtomicString& id); |
| 60 void append(PassRefPtrWillBeRawPtr<TextTrack>); | 60 void append(PassRefPtrWillBeRawPtr<TextTrack>); |
| 61 void remove(TextTrack*); | 61 void remove(TextTrack*); |
| 62 | 62 |
| 63 // EventTarget | 63 // EventTarget |
| 64 virtual const AtomicString& interfaceName() const override; | 64 const AtomicString& interfaceName() const override; |
| 65 virtual ExecutionContext* executionContext() const override; | 65 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 #if !ENABLE(OILPAN) | 71 #if !ENABLE(OILPAN) |
| 72 void clearOwner(); | 72 void clearOwner(); |
| 73 #endif | 73 #endif |
| 74 HTMLMediaElement* owner() const; | 74 HTMLMediaElement* owner() const; |
| 75 | 75 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 93 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; | 93 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |
| 94 | 94 |
| 95 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_addTrackTracks; | 95 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_addTrackTracks; |
| 96 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_elementTracks; | 96 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_elementTracks; |
| 97 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_inbandTracks; | 97 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_inbandTracks; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // TextTrackList_h | 102 #endif // TextTrackList_h |
| OLD | NEW |