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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 // Cached time value. Only valid when ready state is HAVE_METADATA or | 510 // Cached time value. Only valid when ready state is HAVE_METADATA or |
511 // higher, otherwise the current time is assumed to be zero. | 511 // higher, otherwise the current time is assumed to be zero. |
512 mutable double m_cachedTime; | 512 mutable double m_cachedTime; |
513 | 513 |
514 double m_fragmentEndTime; | 514 double m_fragmentEndTime; |
515 | 515 |
516 typedef unsigned PendingActionFlags; | 516 typedef unsigned PendingActionFlags; |
517 PendingActionFlags m_pendingActionFlags; | 517 PendingActionFlags m_pendingActionFlags; |
518 | 518 |
519 // FIXME: MediaElement has way too many state bits. | 519 // FIXME: HTMLMediaElement has way too many state bits. |
520 bool m_userGestureRequiredForPlay : 1; | 520 bool m_userGestureRequiredForPlay : 1; |
521 bool m_playing : 1; | 521 bool m_playing : 1; |
522 bool m_shouldDelayLoadEvent : 1; | 522 bool m_shouldDelayLoadEvent : 1; |
523 bool m_haveFiredLoadedData : 1; | 523 bool m_haveFiredLoadedData : 1; |
524 bool m_autoplaying : 1; | 524 bool m_autoplaying : 1; |
525 bool m_muted : 1; | 525 bool m_muted : 1; |
526 bool m_paused : 1; | 526 bool m_paused : 1; |
527 bool m_seeking : 1; | 527 bool m_seeking : 1; |
528 | 528 |
529 // data has not been loaded since sending a "stalled" event | 529 // data has not been loaded since sending a "stalled" event |
530 bool m_sentStalledEvent : 1; | 530 bool m_sentStalledEvent : 1; |
531 | 531 |
532 // time has not changed since sending an "ended" event | 532 // time has not changed since sending an "ended" event |
533 bool m_sentEndEvent : 1; | 533 bool m_sentEndEvent : 1; |
534 | 534 |
535 bool m_closedCaptionsVisible : 1; | 535 bool m_closedCaptionsVisible : 1; |
536 | 536 |
537 bool m_completelyLoaded : 1; | |
538 bool m_havePreparedToPlay : 1; | 537 bool m_havePreparedToPlay : 1; |
539 bool m_delayingLoadForPreloadNone : 1; | |
540 | 538 |
541 bool m_tracksAreReady : 1; | 539 bool m_tracksAreReady : 1; |
542 bool m_haveVisibleTextTrack : 1; | 540 bool m_haveVisibleTextTrack : 1; |
543 bool m_processingPreferenceChange : 1; | 541 bool m_processingPreferenceChange : 1; |
544 bool m_remoteRoutesAvailable : 1; | 542 bool m_remoteRoutesAvailable : 1; |
545 bool m_playingRemotely : 1; | 543 bool m_playingRemotely : 1; |
546 bool m_isFinalizing : 1; | 544 bool m_isFinalizing : 1; |
547 bool m_initialPlayWithoutUserGesture : 1; | 545 bool m_initialPlayWithoutUserGesture : 1; |
548 bool m_autoplayMediaCounted : 1; | 546 bool m_autoplayMediaCounted : 1; |
549 // Whether this element is in overlay fullscreen mode. | 547 // Whether this element is in overlay fullscreen mode. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 inline bool isHTMLMediaElement(const HTMLElement& element) | 621 inline bool isHTMLMediaElement(const HTMLElement& element) |
624 { | 622 { |
625 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 623 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
626 } | 624 } |
627 | 625 |
628 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 626 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
629 | 627 |
630 } // namespace blink | 628 } // namespace blink |
631 | 629 |
632 #endif // HTMLMediaElement_h | 630 #endif // HTMLMediaElement_h |
OLD | NEW |