Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: Source/core/html/track/TrackListBase.h

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TrackEvent.cpp ('k') | Source/core/html/track/VideoTrack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TrackListBase_h 5 #ifndef TrackListBase_h
6 #define TrackListBase_h 6 #define TrackListBase_h
7 7
8 #include "core/events/EventTarget.h" 8 #include "core/events/EventTarget.h"
9 9
10 #include "core/html/HTMLMediaElement.h" 10 #include "core/html/HTMLMediaElement.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 void scheduleChangeEvent() 102 void scheduleChangeEvent()
103 { 103 {
104 RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::change); 104 RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::change);
105 event->setTarget(this); 105 event->setTarget(this);
106 m_mediaElement->scheduleEvent(event); 106 m_mediaElement->scheduleEvent(event);
107 } 107 }
108 108
109 Node* owner() const { return m_mediaElement; } 109 Node* owner() const { return m_mediaElement; }
110 110
111 void trace(Visitor* visitor) 111 DEFINE_INLINE_TRACE()
112 { 112 {
113 visitor->trace(m_tracks); 113 visitor->trace(m_tracks);
114 visitor->trace(m_mediaElement); 114 visitor->trace(m_mediaElement);
115 EventTargetWithInlineData::trace(visitor); 115 EventTargetWithInlineData::trace(visitor);
116 } 116 }
117 117
118 private: 118 private:
119 void scheduleTrackEvent(const AtomicString& eventName, PassRefPtrWillBeRawPt r<T> track) 119 void scheduleTrackEvent(const AtomicString& eventName, PassRefPtrWillBeRawPt r<T> track)
120 { 120 {
121 RefPtrWillBeRawPtr<Event> event = TrackEvent::create(eventName, track); 121 RefPtrWillBeRawPtr<Event> event = TrackEvent::create(eventName, track);
122 event->setTarget(this); 122 event->setTarget(this);
123 m_mediaElement->scheduleEvent(event); 123 m_mediaElement->scheduleEvent(event);
124 } 124 }
125 125
126 WillBeHeapVector<RefPtrWillBeMember<T>> m_tracks; 126 WillBeHeapVector<RefPtrWillBeMember<T>> m_tracks;
127 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; 127 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement;
128 }; 128 };
129 129
130 } 130 }
131 131
132 #endif 132 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/TrackEvent.cpp ('k') | Source/core/html/track/VideoTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698