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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 void setPausedInternal(bool); | 436 void setPausedInternal(bool); |
437 | 437 |
438 void setShouldDelayLoadEvent(bool); | 438 void setShouldDelayLoadEvent(bool); |
439 void invalidateCachedTime(); | 439 void invalidateCachedTime(); |
440 void refreshCachedTime() const; | 440 void refreshCachedTime() const; |
441 | 441 |
442 bool hasMediaControls() const; | 442 bool hasMediaControls() const; |
443 bool createMediaControls(); | 443 bool createMediaControls(); |
444 void configureMediaControls(); | 444 void configureMediaControls(); |
445 | 445 |
446 void prepareMediaFragmentURI(); | |
447 void applyMediaFragmentURI(); | |
448 | |
449 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; | 446 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; |
450 | 447 |
451 void changeNetworkStateFromLoadingToIdle(); | 448 void changeNetworkStateFromLoadingToIdle(); |
452 | 449 |
453 const AtomicString& mediaGroup() const; | 450 const AtomicString& mediaGroup() const; |
454 void setMediaGroup(const AtomicString&); | 451 void setMediaGroup(const AtomicString&); |
455 void updateMediaController(); | 452 void updateMediaController(); |
456 bool isBlocked() const; | 453 bool isBlocked() const; |
457 bool isBlockedOnMediaController() const; | 454 bool isBlockedOnMediaController() const; |
458 bool isAutoplaying() const { return m_autoplaying; } | 455 bool isAutoplaying() const { return m_autoplaying; } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 MediaPlayer::Preload m_preload; | 536 MediaPlayer::Preload m_preload; |
540 | 537 |
541 DisplayMode m_displayMode; | 538 DisplayMode m_displayMode; |
542 | 539 |
543 RefPtrWillBeMember<HTMLMediaSource> m_mediaSource; | 540 RefPtrWillBeMember<HTMLMediaSource> m_mediaSource; |
544 | 541 |
545 mutable double m_cachedTime; | 542 mutable double m_cachedTime; |
546 mutable double m_cachedTimeWallClockUpdateTime; | 543 mutable double m_cachedTimeWallClockUpdateTime; |
547 mutable double m_minimumWallClockTimeToCacheMediaTime; | 544 mutable double m_minimumWallClockTimeToCacheMediaTime; |
548 | 545 |
549 double m_fragmentStartTime; | |
550 double m_fragmentEndTime; | 546 double m_fragmentEndTime; |
551 | 547 |
552 typedef unsigned PendingActionFlags; | 548 typedef unsigned PendingActionFlags; |
553 PendingActionFlags m_pendingActionFlags; | 549 PendingActionFlags m_pendingActionFlags; |
554 | 550 |
555 // FIXME: MediaElement has way too many state bits. | 551 // FIXME: MediaElement has way too many state bits. |
556 bool m_userGestureRequiredForPlay : 1; | 552 bool m_userGestureRequiredForPlay : 1; |
557 bool m_playing : 1; | 553 bool m_playing : 1; |
558 bool m_shouldDelayLoadEvent : 1; | 554 bool m_shouldDelayLoadEvent : 1; |
559 bool m_haveFiredLoadedData : 1; | 555 bool m_haveFiredLoadedData : 1; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 inline bool isHTMLMediaElement(const HTMLElement& element) | 630 inline bool isHTMLMediaElement(const HTMLElement& element) |
635 { | 631 { |
636 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 632 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
637 } | 633 } |
638 | 634 |
639 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 635 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
640 | 636 |
641 } //namespace | 637 } //namespace |
642 | 638 |
643 #endif | 639 #endif |
OLD | NEW |