| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef TrackBase_h | 26 #ifndef TrackBase_h |
| 27 #define TrackBase_h | 27 #define TrackBase_h |
| 28 | 28 |
| 29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "platform/Supplementable.h" | 30 #include "platform/Supplementable.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "platform/wtf/text/AtomicString.h" |
| 32 #include "public/platform/WebMediaPlayer.h" | 33 #include "public/platform/WebMediaPlayer.h" |
| 33 #include "wtf/text/AtomicString.h" | |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class HTMLMediaElement; | 37 class HTMLMediaElement; |
| 38 | 38 |
| 39 class CORE_EXPORT TrackBase : public Supplementable<TrackBase> { | 39 class CORE_EXPORT TrackBase : public Supplementable<TrackBase> { |
| 40 public: | 40 public: |
| 41 virtual ~TrackBase(); | 41 virtual ~TrackBase(); |
| 42 | 42 |
| 43 WebMediaPlayer::TrackId id() const { return id_; } | 43 WebMediaPlayer::TrackId id() const { return id_; } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 70 Member<HTMLMediaElement> media_element_; | 70 Member<HTMLMediaElement> media_element_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 #define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \ | 73 #define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \ |
| 74 DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->GetType() == predicate, \ | 74 DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->GetType() == predicate, \ |
| 75 track.GetType() == predicate) | 75 track.GetType() == predicate) |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // TrackBase_h | 79 #endif // TrackBase_h |
| OLD | NEW |