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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 void removeVideoTrack(WebMediaPlayer::TrackId) final; | 384 void removeVideoTrack(WebMediaPlayer::TrackId) final; |
385 void addTextTrack(WebInbandTextTrack*) final; | 385 void addTextTrack(WebInbandTextTrack*) final; |
386 void removeTextTrack(WebInbandTextTrack*) final; | 386 void removeTextTrack(WebInbandTextTrack*) final; |
387 void mediaSourceOpened(WebMediaSource*) final; | 387 void mediaSourceOpened(WebMediaSource*) final; |
388 void requestSeek(double) final; | 388 void requestSeek(double) final; |
389 void remoteRouteAvailabilityChanged(bool) final; | 389 void remoteRouteAvailabilityChanged(bool) final; |
390 void connectedToRemoteDevice() final; | 390 void connectedToRemoteDevice() final; |
391 void disconnectedFromRemoteDevice() final; | 391 void disconnectedFromRemoteDevice() final; |
392 void cancelledRemotePlaybackRequest() final; | 392 void cancelledRemotePlaybackRequest() final; |
393 void remotePlaybackStarted() final; | 393 void remotePlaybackStarted() final; |
| 394 void hidden() final; |
| 395 void shown() final; |
394 bool isAutoplayingMuted() final; | 396 bool isAutoplayingMuted() final; |
395 void requestReload(const WebURL&) final; | 397 void requestReload(const WebURL&) final; |
396 | 398 |
397 void loadTimerFired(TimerBase*); | 399 void loadTimerFired(TimerBase*); |
398 void progressEventTimerFired(TimerBase*); | 400 void progressEventTimerFired(TimerBase*); |
399 void playbackProgressTimerFired(TimerBase*); | 401 void playbackProgressTimerFired(TimerBase*); |
400 void startPlaybackProgressTimer(); | 402 void startPlaybackProgressTimer(); |
401 void startProgressEventTimer(); | 403 void startProgressEventTimer(); |
402 void stopPeriodicTimers(); | 404 void stopPeriodicTimers(); |
403 | 405 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 715 |
714 AudioSourceProviderImpl m_audioSourceProvider; | 716 AudioSourceProviderImpl m_audioSourceProvider; |
715 | 717 |
716 class AutoplayHelperClientImpl; | 718 class AutoplayHelperClientImpl; |
717 | 719 |
718 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings | 720 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings |
719 friend class Internals; | 721 friend class Internals; |
720 friend class TrackDisplayUpdateScope; | 722 friend class TrackDisplayUpdateScope; |
721 friend class AutoplayExperimentHelper; | 723 friend class AutoplayExperimentHelper; |
722 friend class MediaControlsTest; | 724 friend class MediaControlsTest; |
| 725 friend class HTMLVideoElementTest; |
723 | 726 |
724 Member<AutoplayExperimentHelper::Client> m_autoplayHelperClient; | 727 Member<AutoplayExperimentHelper::Client> m_autoplayHelperClient; |
725 Member<AutoplayExperimentHelper> m_autoplayHelper; | 728 Member<AutoplayExperimentHelper> m_autoplayHelper; |
726 Member<AutoplayUmaHelper> m_autoplayUmaHelper; | 729 Member<AutoplayUmaHelper> m_autoplayUmaHelper; |
727 | 730 |
728 WebRemotePlaybackClient* m_remotePlaybackClient; | 731 WebRemotePlaybackClient* m_remotePlaybackClient; |
729 | 732 |
730 // class AutoplayVisibilityObserver; | 733 // class AutoplayVisibilityObserver; |
731 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; | 734 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; |
732 | 735 |
733 static URLRegistry* s_mediaStreamRegistry; | 736 static URLRegistry* s_mediaStreamRegistry; |
734 }; | 737 }; |
735 | 738 |
736 inline bool isHTMLMediaElement(const HTMLElement& element) { | 739 inline bool isHTMLMediaElement(const HTMLElement& element) { |
737 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 740 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
738 } | 741 } |
739 | 742 |
740 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 743 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
741 | 744 |
742 } // namespace blink | 745 } // namespace blink |
743 | 746 |
744 #endif // HTMLMediaElement_h | 747 #endif // HTMLMediaElement_h |
OLD | NEW |