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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 { | 48 { |
49 return new TextTrackList(owner); | 49 return new TextTrackList(owner); |
50 } | 50 } |
51 ~TextTrackList() override; | 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* anonymousIndexedGetter(unsigned index); |
59 TextTrack* getTrackById(const AtomicString& id); | 59 TextTrack* getTrackById(const AtomicString& id); |
60 void append(TextTrack*); | 60 void append(TextTrack*); |
61 void remove(TextTrack*); | 61 void remove(TextTrack*); |
62 | 62 |
63 // EventTarget | 63 // EventTarget |
64 const AtomicString& interfaceName() const override; | 64 const AtomicString& interfaceName() const override; |
65 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); |
(...skipping 26 matching lines...) Expand all Loading... |
95 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; | 95 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; |
96 | 96 |
97 HeapVector<Member<TextTrack>> m_addTrackTracks; | 97 HeapVector<Member<TextTrack>> m_addTrackTracks; |
98 HeapVector<Member<TextTrack>> m_elementTracks; | 98 HeapVector<Member<TextTrack>> m_elementTracks; |
99 HeapVector<Member<TextTrack>> m_inbandTracks; | 99 HeapVector<Member<TextTrack>> m_inbandTracks; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace blink | 102 } // namespace blink |
103 | 103 |
104 #endif // TextTrackList_h | 104 #endif // TextTrackList_h |
OLD | NEW |