| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 return 0; | 48 return 0; |
| 49 } | 49 } |
| 50 | 50 |
| 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
| 52 DEFINE_ATTRIBUTE_EVENT_LISTENER(addtrack); | 52 DEFINE_ATTRIBUTE_EVENT_LISTENER(addtrack); |
| 53 DEFINE_ATTRIBUTE_EVENT_LISTENER(removetrack); | 53 DEFINE_ATTRIBUTE_EVENT_LISTENER(removetrack); |
| 54 | 54 |
| 55 // EventTarget interface | 55 // EventTarget interface |
| 56 virtual ExecutionContext* executionContext() const OVERRIDE | 56 virtual ExecutionContext* executionContext() const override |
| 57 { | 57 { |
| 58 if (m_mediaElement) | 58 if (m_mediaElement) |
| 59 return m_mediaElement->executionContext(); | 59 return m_mediaElement->executionContext(); |
| 60 return 0; | 60 return 0; |
| 61 } | 61 } |
| 62 | 62 |
| 63 #if !ENABLE(OILPAN) | 63 #if !ENABLE(OILPAN) |
| 64 void shutdown() | 64 void shutdown() |
| 65 { | 65 { |
| 66 removeAll(); | 66 removeAll(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 m_mediaElement->scheduleEvent(event); | 127 m_mediaElement->scheduleEvent(event); |
| 128 } | 128 } |
| 129 | 129 |
| 130 WillBeHeapVector<RefPtrWillBeMember<T> > m_tracks; | 130 WillBeHeapVector<RefPtrWillBeMember<T> > m_tracks; |
| 131 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 131 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } | 134 } |
| 135 | 135 |
| 136 #endif | 136 #endif |
| OLD | NEW |