OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 bool textTracksAreReady() const; | 200 bool textTracksAreReady() const; |
201 enum VisibilityChangeAssumption { | 201 enum VisibilityChangeAssumption { |
202 AssumeNoVisibleChange, | 202 AssumeNoVisibleChange, |
203 AssumeVisibleChange | 203 AssumeVisibleChange |
204 }; | 204 }; |
205 void configureTextTrackDisplay(VisibilityChangeAssumption); | 205 void configureTextTrackDisplay(VisibilityChangeAssumption); |
206 void updateTextTrackDisplay(); | 206 void updateTextTrackDisplay(); |
207 double lastSeekTime() const { return m_lastSeekTime; } | 207 double lastSeekTime() const { return m_lastSeekTime; } |
208 void textTrackReadyStateChanged(TextTrack*); | 208 void textTrackReadyStateChanged(TextTrack*); |
209 | 209 |
210 void textTrackKindChanged(TextTrack*); | |
211 void textTrackModeChanged(TextTrack*); | 210 void textTrackModeChanged(TextTrack*); |
212 | 211 |
213 // EventTarget function. | 212 // EventTarget function. |
214 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which | 213 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which |
215 // causes an ambiguity error at compile time. This class's constructor | 214 // causes an ambiguity error at compile time. This class's constructor |
216 // ensures that both implementations return document, so return the result | 215 // ensures that both implementations return document, so return the result |
217 // of one of them here. | 216 // of one of them here. |
218 using HTMLElement::executionContext; | 217 using HTMLElement::executionContext; |
219 | 218 |
220 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer()
&& webMediaPlayer()->hasSingleSecurityOrigin()); } | 219 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer()
&& webMediaPlayer()->hasSingleSecurityOrigin()); } |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 inline bool isHTMLMediaElement(const HTMLElement& element) | 578 inline bool isHTMLMediaElement(const HTMLElement& element) |
580 { | 579 { |
581 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 580 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
582 } | 581 } |
583 | 582 |
584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 583 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
585 | 584 |
586 } // namespace blink | 585 } // namespace blink |
587 | 586 |
588 #endif // HTMLMediaElement_h | 587 #endif // HTMLMediaElement_h |
OLD | NEW |