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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 DECLARE_GC_INFO | 47 DECLARE_GC_INFO |
48 public: | 48 public: |
49 static PassRefPtr<TextTrackList> create(HTMLMediaElement* owner, ScriptExecu
tionContext* context) | 49 static PassRefPtr<TextTrackList> create(HTMLMediaElement* owner, ScriptExecu
tionContext* context) |
50 { | 50 { |
51 return adoptRef(new TextTrackList(owner, context)); | 51 return adoptRef(new TextTrackList(owner, context)); |
52 } | 52 } |
53 ~TextTrackList(); | 53 ~TextTrackList(); |
54 | 54 |
55 virtual void trace(Visitor*) { } | 55 virtual void trace(Visitor*) { } |
56 | 56 |
57 virtual void visitWith(Visitor* visitor) const OVERRIDE | 57 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
58 { | 58 { |
59 visitor->visit(this); | 59 visitor->mark(this); |
60 } | 60 } |
61 | 61 |
62 unsigned length() const; | 62 unsigned length() const; |
63 int getTrackIndex(TextTrack*); | 63 int getTrackIndex(TextTrack*); |
64 int getTrackIndexRelativeToRenderedTracks(TextTrack*); | 64 int getTrackIndexRelativeToRenderedTracks(TextTrack*); |
65 bool contains(TextTrack*) const; | 65 bool contains(TextTrack*) const; |
66 | 66 |
67 TextTrack* item(unsigned index); | 67 TextTrack* item(unsigned index); |
68 void append(PassRefPtr<TextTrack>); | 68 void append(PassRefPtr<TextTrack>); |
69 void remove(TextTrack*); | 69 void remove(TextTrack*); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 Vector<RefPtr<TextTrack> > m_addTrackTracks; | 107 Vector<RefPtr<TextTrack> > m_addTrackTracks; |
108 Vector<RefPtr<TextTrack> > m_elementTracks; | 108 Vector<RefPtr<TextTrack> > m_elementTracks; |
109 Vector<RefPtr<TextTrack> > m_inbandTracks; | 109 Vector<RefPtr<TextTrack> > m_inbandTracks; |
110 | 110 |
111 int m_dispatchingEvents; | 111 int m_dispatchingEvents; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace WebCore | 114 } // namespace WebCore |
115 | 115 |
116 #endif | 116 #endif |
OLD | NEW |