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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 AtomicString mode() const { return m_mode; } | 72 AtomicString mode() const { return m_mode; } |
73 virtual void setMode(const AtomicString&); | 73 virtual void setMode(const AtomicString&); |
74 | 74 |
75 enum ReadinessState { NotLoaded = 0, Loading = 1, Loaded = 2, FailedToLoad =
3 }; | 75 enum ReadinessState { NotLoaded = 0, Loading = 1, Loaded = 2, FailedToLoad =
3 }; |
76 ReadinessState readinessState() const { return m_readinessState; } | 76 ReadinessState readinessState() const { return m_readinessState; } |
77 void setReadinessState(ReadinessState state) { m_readinessState = state; } | 77 void setReadinessState(ReadinessState state) { m_readinessState = state; } |
78 | 78 |
79 TextTrackCueList* cues(); | 79 TextTrackCueList* cues(); |
80 TextTrackCueList* activeCues() const; | 80 TextTrackCueList* activeCues() const; |
81 | 81 |
82 HTMLMediaElement* mediaElement(); | 82 HTMLMediaElement* mediaElement() const; |
| 83 Node* owner() const; |
83 | 84 |
84 void addCue(PassRefPtr<TextTrackCue>); | 85 void addCue(PassRefPtr<TextTrackCue>); |
85 void removeCue(TextTrackCue*, ExceptionState&); | 86 void removeCue(TextTrackCue*, ExceptionState&); |
86 | 87 |
87 VTTRegionList* regions(); | 88 VTTRegionList* regions(); |
88 void addRegion(PassRefPtr<VTTRegion>); | 89 void addRegion(PassRefPtr<VTTRegion>); |
89 void removeRegion(VTTRegion*, ExceptionState&); | 90 void removeRegion(VTTRegion*, ExceptionState&); |
90 | 91 |
91 void cueWillChange(TextTrackCue*); | 92 void cueWillChange(TextTrackCue*); |
92 void cueDidChange(TextTrackCue*); | 93 void cueDidChange(TextTrackCue*); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 TextTrackType m_trackType; | 139 TextTrackType m_trackType; |
139 ReadinessState m_readinessState; | 140 ReadinessState m_readinessState; |
140 int m_trackIndex; | 141 int m_trackIndex; |
141 int m_renderedTrackIndex; | 142 int m_renderedTrackIndex; |
142 bool m_hasBeenConfigured; | 143 bool m_hasBeenConfigured; |
143 }; | 144 }; |
144 | 145 |
145 } // namespace WebCore | 146 } // namespace WebCore |
146 | 147 |
147 #endif | 148 #endif |
OLD | NEW |