| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 void honorUserPreferencesForAutomaticTextTrackSelection(); | 183 void honorUserPreferencesForAutomaticTextTrackSelection(); |
| 184 | 184 |
| 185 bool textTracksAreReady() const; | 185 bool textTracksAreReady() const; |
| 186 void configureTextTrackDisplay(); | 186 void configureTextTrackDisplay(); |
| 187 void updateTextTrackDisplay(); | 187 void updateTextTrackDisplay(); |
| 188 double lastSeekTime() const { return m_lastSeekTime; } | 188 double lastSeekTime() const { return m_lastSeekTime; } |
| 189 void textTrackReadyStateChanged(TextTrack*); | 189 void textTrackReadyStateChanged(TextTrack*); |
| 190 | 190 |
| 191 void textTrackModeChanged(TextTrack*); | 191 void textTrackModeChanged(TextTrack*); |
| 192 void disableAutomaticTextTrackSelection(); |
| 192 | 193 |
| 193 // EventTarget function. | 194 // EventTarget function. |
| 194 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which | 195 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which |
| 195 // causes an ambiguity error at compile time. This class's constructor | 196 // causes an ambiguity error at compile time. This class's constructor |
| 196 // ensures that both implementations return document, so return the result | 197 // ensures that both implementations return document, so return the result |
| 197 // of one of them here. | 198 // of one of them here. |
| 198 using HTMLElement::executionContext; | 199 using HTMLElement::executionContext; |
| 199 | 200 |
| 200 bool hasSingleSecurityOrigin() const { return webMediaPlayer() && webMediaPl
ayer()->hasSingleSecurityOrigin(); } | 201 bool hasSingleSecurityOrigin() const { return webMediaPlayer() && webMediaPl
ayer()->hasSingleSecurityOrigin(); } |
| 201 | 202 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 532 |
| 532 // time has not changed since sending an "ended" event | 533 // time has not changed since sending an "ended" event |
| 533 bool m_sentEndEvent : 1; | 534 bool m_sentEndEvent : 1; |
| 534 | 535 |
| 535 bool m_closedCaptionsVisible : 1; | 536 bool m_closedCaptionsVisible : 1; |
| 536 | 537 |
| 537 bool m_completelyLoaded : 1; | 538 bool m_completelyLoaded : 1; |
| 538 bool m_havePreparedToPlay : 1; | 539 bool m_havePreparedToPlay : 1; |
| 539 bool m_delayingLoadForPreloadNone : 1; | 540 bool m_delayingLoadForPreloadNone : 1; |
| 540 | 541 |
| 542 bool m_didPerformAutomaticTrackSelection : 1; |
| 543 |
| 541 bool m_tracksAreReady : 1; | 544 bool m_tracksAreReady : 1; |
| 542 bool m_haveVisibleTextTrack : 1; | 545 bool m_haveVisibleTextTrack : 1; |
| 543 bool m_processingPreferenceChange : 1; | 546 bool m_processingPreferenceChange : 1; |
| 544 bool m_remoteRoutesAvailable : 1; | 547 bool m_remoteRoutesAvailable : 1; |
| 545 bool m_playingRemotely : 1; | 548 bool m_playingRemotely : 1; |
| 546 bool m_isFinalizing : 1; | 549 bool m_isFinalizing : 1; |
| 547 bool m_initialPlayWithoutUserGesture : 1; | 550 bool m_initialPlayWithoutUserGesture : 1; |
| 548 bool m_autoplayMediaCounted : 1; | 551 bool m_autoplayMediaCounted : 1; |
| 549 // Whether this element is in overlay fullscreen mode. | 552 // Whether this element is in overlay fullscreen mode. |
| 550 bool m_inOverlayFullscreenVideo : 1; | 553 bool m_inOverlayFullscreenVideo : 1; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 inline bool isHTMLMediaElement(const HTMLElement& element) | 626 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 624 { | 627 { |
| 625 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 628 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 626 } | 629 } |
| 627 | 630 |
| 628 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 631 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 629 | 632 |
| 630 } // namespace blink | 633 } // namespace blink |
| 631 | 634 |
| 632 #endif // HTMLMediaElement_h | 635 #endif // HTMLMediaElement_h |
| OLD | NEW |