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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 TextTrack::TextTrack(Document& document, TextTrackClient* client, const AtomicSt
ring& kind, const AtomicString& label, const AtomicString& language, TextTrackTy
pe type) | 97 TextTrack::TextTrack(Document& document, TextTrackClient* client, const AtomicSt
ring& kind, const AtomicString& label, const AtomicString& language, TextTrackTy
pe type) |
98 : TrackBase(TrackBase::TextTrack) | 98 : TrackBase(TrackBase::TextTrack) |
99 , m_cues(0) | 99 , m_cues(0) |
100 , m_regions(0) | 100 , m_regions(0) |
101 , m_document(&document) | 101 , m_document(&document) |
102 , m_mediaElement(0) | 102 , m_mediaElement(0) |
103 , m_label(label) | 103 , m_label(label) |
104 , m_language(language) | 104 , m_language(language) |
105 , m_mode(disabledKeyword().string()) | 105 , m_mode(disabledKeyword()) |
106 , m_client(client) | 106 , m_client(client) |
107 , m_trackType(type) | 107 , m_trackType(type) |
108 , m_readinessState(NotLoaded) | 108 , m_readinessState(NotLoaded) |
109 , m_trackIndex(invalidTrackIndex) | 109 , m_trackIndex(invalidTrackIndex) |
110 , m_renderedTrackIndex(invalidTrackIndex) | 110 , m_renderedTrackIndex(invalidTrackIndex) |
111 , m_hasBeenConfigured(false) | 111 , m_hasBeenConfigured(false) |
112 { | 112 { |
113 ScriptWrappable::init(this); | 113 ScriptWrappable::init(this); |
114 setKind(kind); | 114 setKind(kind); |
115 } | 115 } |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 return EventTargetNames::TextTrack; | 480 return EventTargetNames::TextTrack; |
481 } | 481 } |
482 | 482 |
483 ExecutionContext* TextTrack::executionContext() const | 483 ExecutionContext* TextTrack::executionContext() const |
484 { | 484 { |
485 return m_document; | 485 return m_document; |
486 } | 486 } |
487 | 487 |
488 } // namespace WebCore | 488 } // namespace WebCore |
489 | 489 |
OLD | NEW |