| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 class TextTrack : public TrackBase, public ScriptWrappable, public EventTargetWi
thInlineData { | 58 class TextTrack : public TrackBase, public ScriptWrappable, public EventTargetWi
thInlineData { |
| 59 REFCOUNTED_EVENT_TARGET(TrackBase); | 59 REFCOUNTED_EVENT_TARGET(TrackBase); |
| 60 public: | 60 public: |
| 61 static PassRefPtr<TextTrack> create(Document& document, TextTrackClient* cli
ent, const AtomicString& kind, const AtomicString& label, const AtomicString& la
nguage) | 61 static PassRefPtr<TextTrack> create(Document& document, TextTrackClient* cli
ent, const AtomicString& kind, const AtomicString& label, const AtomicString& la
nguage) |
| 62 { | 62 { |
| 63 return adoptRef(new TextTrack(document, client, kind, label, language, e
mptyAtom, AddTrack)); | 63 return adoptRef(new TextTrack(document, client, kind, label, language, e
mptyAtom, AddTrack)); |
| 64 } | 64 } |
| 65 virtual ~TextTrack(); | 65 virtual ~TextTrack(); |
| 66 | 66 |
| 67 void setTrackList(TextTrackList* trackList) { m_trackList = trackList; } | 67 virtual void setTrackList(TextTrackList*); |
| 68 TextTrackList* trackList() { return m_trackList; } | 68 TextTrackList* trackList() { return m_trackList; } |
| 69 | 69 |
| 70 virtual void setKind(const AtomicString&) OVERRIDE; | 70 virtual void setKind(const AtomicString&) OVERRIDE; |
| 71 | 71 |
| 72 static const AtomicString& subtitlesKeyword(); | 72 static const AtomicString& subtitlesKeyword(); |
| 73 static const AtomicString& captionsKeyword(); | 73 static const AtomicString& captionsKeyword(); |
| 74 static const AtomicString& descriptionsKeyword(); | 74 static const AtomicString& descriptionsKeyword(); |
| 75 static const AtomicString& chaptersKeyword(); | 75 static const AtomicString& chaptersKeyword(); |
| 76 static const AtomicString& metadataKeyword(); | 76 static const AtomicString& metadataKeyword(); |
| 77 static bool isValidKindKeyword(const AtomicString&); | 77 static bool isValidKindKeyword(const AtomicString&); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 TextTrackType m_trackType; | 151 TextTrackType m_trackType; |
| 152 ReadinessState m_readinessState; | 152 ReadinessState m_readinessState; |
| 153 int m_trackIndex; | 153 int m_trackIndex; |
| 154 int m_renderedTrackIndex; | 154 int m_renderedTrackIndex; |
| 155 bool m_hasBeenConfigured; | 155 bool m_hasBeenConfigured; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace WebCore | 158 } // namespace WebCore |
| 159 | 159 |
| 160 #endif | 160 #endif |
| OLD | NEW |