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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 enum VisibilityChangeAssumption { | 203 enum VisibilityChangeAssumption { |
204 AssumeNoVisibleChange, | 204 AssumeNoVisibleChange, |
205 AssumeVisibleChange | 205 AssumeVisibleChange |
206 }; | 206 }; |
207 void configureTextTrackDisplay(VisibilityChangeAssumption); | 207 void configureTextTrackDisplay(VisibilityChangeAssumption); |
208 void updateTextTrackDisplay(); | 208 void updateTextTrackDisplay(); |
209 double lastSeekTime() const { return m_lastSeekTime; } | 209 double lastSeekTime() const { return m_lastSeekTime; } |
210 void textTrackReadyStateChanged(TextTrack*); | 210 void textTrackReadyStateChanged(TextTrack*); |
211 | 211 |
212 void textTrackModeChanged(TextTrack*); | 212 void textTrackModeChanged(TextTrack*); |
213 void disableAutomaticTextTrackSelection(); | |
213 | 214 |
214 // EventTarget function. | 215 // EventTarget function. |
215 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which | 216 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which |
216 // causes an ambiguity error at compile time. This class's constructor | 217 // causes an ambiguity error at compile time. This class's constructor |
217 // ensures that both implementations return document, so return the result | 218 // ensures that both implementations return document, so return the result |
218 // of one of them here. | 219 // of one of them here. |
219 using HTMLElement::executionContext; | 220 using HTMLElement::executionContext; |
220 | 221 |
221 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin()); } | 222 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin()); } |
222 | 223 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
538 | 539 |
539 // time has not changed since sending an "ended" event | 540 // time has not changed since sending an "ended" event |
540 bool m_sentEndEvent : 1; | 541 bool m_sentEndEvent : 1; |
541 | 542 |
542 bool m_closedCaptionsVisible : 1; | 543 bool m_closedCaptionsVisible : 1; |
543 | 544 |
544 bool m_completelyLoaded : 1; | 545 bool m_completelyLoaded : 1; |
545 bool m_havePreparedToPlay : 1; | 546 bool m_havePreparedToPlay : 1; |
546 bool m_delayingLoadForPreloadNone : 1; | 547 bool m_delayingLoadForPreloadNone : 1; |
547 | 548 |
549 bool m_didPerformAutomaticTrackSelection : 1; | |
philipj_slow
2015/05/05 14:36:56
This name is a bit inaccurate since it can be set
fs
2015/05/05 15:32:44
I believe I suggested this name, with an outset of
philipj_slow
2015/05/06 09:28:43
Oh, I didn't know about https://html.spec.whatwg.o
| |
548 bool m_tracksAreReady : 1; | 550 bool m_tracksAreReady : 1; |
549 bool m_haveVisibleTextTrack : 1; | 551 bool m_haveVisibleTextTrack : 1; |
550 bool m_processingPreferenceChange : 1; | 552 bool m_processingPreferenceChange : 1; |
551 bool m_remoteRoutesAvailable : 1; | 553 bool m_remoteRoutesAvailable : 1; |
552 bool m_playingRemotely : 1; | 554 bool m_playingRemotely : 1; |
553 #if ENABLE(OILPAN) | 555 #if ENABLE(OILPAN) |
554 bool m_isFinalizing : 1; | 556 bool m_isFinalizing : 1; |
555 bool m_closeMediaSourceWhenFinalizing : 1; | 557 bool m_closeMediaSourceWhenFinalizing : 1; |
556 #endif | 558 #endif |
557 bool m_initialPlayWithoutUserGestures : 1; | 559 bool m_initialPlayWithoutUserGestures : 1; |
(...skipping 25 matching lines...) Expand all Loading... | |
583 inline bool isHTMLMediaElement(const HTMLElement& element) | 585 inline bool isHTMLMediaElement(const HTMLElement& element) |
584 { | 586 { |
585 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 587 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
586 } | 588 } |
587 | 589 |
588 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 590 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
589 | 591 |
590 } // namespace blink | 592 } // namespace blink |
591 | 593 |
592 #endif // HTMLMediaElement_h | 594 #endif // HTMLMediaElement_h |
OLD | NEW |