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