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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); |
83 | 83 |
84 void addCue(PassRefPtr<TextTrackCue>); | 84 void addCue(PassRefPtr<TextTrackCue>, ExceptionState&); |
85 void removeCue(TextTrackCue*, ExceptionState&); | 85 void removeCue(TextTrackCue*, ExceptionState&); |
86 | 86 |
87 VTTRegionList* regions(); | 87 VTTRegionList* regions(); |
88 void addRegion(PassRefPtr<VTTRegion>); | 88 void addRegion(PassRefPtr<VTTRegion>); |
89 void removeRegion(VTTRegion*, ExceptionState&); | 89 void removeRegion(VTTRegion*, ExceptionState&); |
90 | 90 |
91 void cueWillChange(TextTrackCue*); | 91 void cueWillChange(TextTrackCue*); |
92 void cueDidChange(TextTrackCue*); | 92 void cueDidChange(TextTrackCue*); |
93 | 93 |
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange); | 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 TextTrackType m_trackType; | 138 TextTrackType m_trackType; |
139 ReadinessState m_readinessState; | 139 ReadinessState m_readinessState; |
140 int m_trackIndex; | 140 int m_trackIndex; |
141 int m_renderedTrackIndex; | 141 int m_renderedTrackIndex; |
142 bool m_hasBeenConfigured; | 142 bool m_hasBeenConfigured; |
143 }; | 143 }; |
144 | 144 |
145 } // namespace WebCore | 145 } // namespace WebCore |
146 | 146 |
147 #endif | 147 #endif |
OLD | NEW |