| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2  * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 
| 3  * reserved. | 3  * reserved. | 
| 4  * | 4  * | 
| 5  * Redistribution and use in source and binary forms, with or without | 5  * Redistribution and use in source and binary forms, with or without | 
| 6  * modification, are permitted provided that the following conditions | 6  * modification, are permitted provided that the following conditions | 
| 7  * are met: | 7  * are met: | 
| 8  * 1. Redistributions of source code must retain the above copyright | 8  * 1. Redistributions of source code must retain the above copyright | 
| 9  *    notice, this list of conditions and the following disclaimer. | 9  *    notice, this list of conditions and the following disclaimer. | 
| 10  * 2. Redistributions in binary form must reproduce the above copyright | 10  * 2. Redistributions in binary form must reproduce the above copyright | 
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 457   void cancelDeferredLoad(); | 457   void cancelDeferredLoad(); | 
| 458   void startDeferredLoad(); | 458   void startDeferredLoad(); | 
| 459   void executeDeferredLoad(); | 459   void executeDeferredLoad(); | 
| 460   void deferredLoadTimerFired(TimerBase*); | 460   void deferredLoadTimerFired(TimerBase*); | 
| 461 | 461 | 
| 462   void markCaptionAndSubtitleTracksAsUnconfigured(); | 462   void markCaptionAndSubtitleTracksAsUnconfigured(); | 
| 463 | 463 | 
| 464   // This does not check user gesture restrictions. | 464   // This does not check user gesture restrictions. | 
| 465   void playInternal(); | 465   void playInternal(); | 
| 466 | 466 | 
| 467   // This does not change the buffering strategy. | 467   // This does not stop autoplay visibility observation. | 
| 468   void pauseInternal(); | 468   void pauseInternal(); | 
| 469 | 469 | 
| 470   void allowVideoRendering(); | 470   void allowVideoRendering(); | 
| 471 | 471 | 
| 472   void updateVolume(); | 472   void updateVolume(); | 
| 473   void updatePlayState(); | 473   void updatePlayState(); | 
| 474   bool potentiallyPlaying() const; | 474   bool potentiallyPlaying() const; | 
| 475   bool stoppedDueToErrors() const; | 475   bool stoppedDueToErrors() const; | 
| 476   bool couldPlayIfEnoughData() const; | 476   bool couldPlayIfEnoughData() const; | 
| 477 | 477 | 
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 737 | 737 | 
| 738   friend class AutoplayUmaHelper;  // for isAutoplayAllowedPerSettings | 738   friend class AutoplayUmaHelper;  // for isAutoplayAllowedPerSettings | 
| 739   friend class AutoplayUmaHelperTest; | 739   friend class AutoplayUmaHelperTest; | 
| 740   friend class Internals; | 740   friend class Internals; | 
| 741   friend class TrackDisplayUpdateScope; | 741   friend class TrackDisplayUpdateScope; | 
| 742   friend class MediaControlsTest; | 742   friend class MediaControlsTest; | 
| 743   friend class HTMLMediaElementTest; | 743   friend class HTMLMediaElementTest; | 
| 744   friend class HTMLMediaElementEventListenersTest; | 744   friend class HTMLMediaElementEventListenersTest; | 
| 745   friend class HTMLMediaElementPersistentVideoTest; | 745   friend class HTMLMediaElementPersistentVideoTest; | 
| 746   friend class HTMLVideoElement; | 746   friend class HTMLVideoElement; | 
| 747   friend class HTMLVideoElementTest; |  | 
| 748   friend class MediaControlsOrientationLockDelegateTest; | 747   friend class MediaControlsOrientationLockDelegateTest; | 
| 749 | 748 | 
| 750   Member<AutoplayUmaHelper> m_autoplayUmaHelper; | 749   Member<AutoplayUmaHelper> m_autoplayUmaHelper; | 
| 751 | 750 | 
| 752   WebRemotePlaybackClient* m_remotePlaybackClient; | 751   WebRemotePlaybackClient* m_remotePlaybackClient; | 
| 753 | 752 | 
| 754   // class AutoplayVisibilityObserver; | 753   // class AutoplayVisibilityObserver; | 
| 755   Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; | 754   Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; | 
| 756 | 755 | 
| 757   IntRect m_currentIntersectRect; | 756   IntRect m_currentIntersectRect; | 
| 758 | 757 | 
| 759   Member<MediaControls> m_mediaControls; | 758   Member<MediaControls> m_mediaControls; | 
| 760   Member<HTMLMediaElementControlsList> m_controlsList; | 759   Member<HTMLMediaElementControlsList> m_controlsList; | 
| 761 | 760 | 
| 762   bool m_isPersistentVideo; | 761   bool m_isPersistentVideo; | 
| 763 | 762 | 
| 764   static URLRegistry* s_mediaStreamRegistry; | 763   static URLRegistry* s_mediaStreamRegistry; | 
| 765 }; | 764 }; | 
| 766 | 765 | 
| 767 inline bool isHTMLMediaElement(const HTMLElement& element) { | 766 inline bool isHTMLMediaElement(const HTMLElement& element) { | 
| 768   return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 767   return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 
| 769 } | 768 } | 
| 770 | 769 | 
| 771 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 770 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 
| 772 | 771 | 
| 773 }  // namespace blink | 772 }  // namespace blink | 
| 774 | 773 | 
| 775 #endif  // HTMLMediaElement_h | 774 #endif  // HTMLMediaElement_h | 
| OLD | NEW | 
|---|