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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final; | 393 void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final; |
394 void connectedToRemoteDevice() final; | 394 void connectedToRemoteDevice() final; |
395 void disconnectedFromRemoteDevice() final; | 395 void disconnectedFromRemoteDevice() final; |
396 void cancelledRemotePlaybackRequest() final; | 396 void cancelledRemotePlaybackRequest() final; |
397 void remotePlaybackStarted() final; | 397 void remotePlaybackStarted() final; |
398 bool hasSelectedVideoTrack() final; | 398 bool hasSelectedVideoTrack() final; |
399 WebMediaPlayer::TrackId getSelectedVideoTrackId() final; | 399 WebMediaPlayer::TrackId getSelectedVideoTrackId() final; |
400 bool isAutoplayingMuted() final; | 400 bool isAutoplayingMuted() final; |
401 void requestReload(const WebURL&) final; | 401 void requestReload(const WebURL&) final; |
402 void activateViewportIntersectionMonitoring(bool) final; | 402 void activateViewportIntersectionMonitoring(bool) final; |
403 | |
404 void loadTimerFired(TimerBase*); | 403 void loadTimerFired(TimerBase*); |
405 void progressEventTimerFired(TimerBase*); | 404 void progressEventTimerFired(TimerBase*); |
406 void playbackProgressTimerFired(TimerBase*); | 405 void playbackProgressTimerFired(TimerBase*); |
407 void checkViewportIntersectionTimerFired(TimerBase*); | 406 void checkViewportIntersectionTimerFired(TimerBase*); |
408 void startPlaybackProgressTimer(); | 407 void startPlaybackProgressTimer(); |
409 void startProgressEventTimer(); | 408 void startProgressEventTimer(); |
410 void stopPeriodicTimers(); | 409 void stopPeriodicTimers(); |
411 | 410 |
412 void seek(double time); | 411 void seek(double time); |
413 void finishSeek(); | 412 void finishSeek(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 475 |
477 void setShouldDelayLoadEvent(bool); | 476 void setShouldDelayLoadEvent(bool); |
478 | 477 |
479 double earliestPossiblePosition() const; | 478 double earliestPossiblePosition() const; |
480 double currentPlaybackPosition() const; | 479 double currentPlaybackPosition() const; |
481 double officialPlaybackPosition() const; | 480 double officialPlaybackPosition() const; |
482 void setOfficialPlaybackPosition(double) const; | 481 void setOfficialPlaybackPosition(double) const; |
483 void requireOfficialPlaybackPositionUpdate() const; | 482 void requireOfficialPlaybackPositionUpdate() const; |
484 | 483 |
485 void ensureMediaControls(); | 484 void ensureMediaControls(); |
486 void configureMediaControls(); | 485 void updateControlsVisibility(); |
487 | 486 |
488 TextTrackContainer& ensureTextTrackContainer(); | 487 TextTrackContainer& ensureTextTrackContainer(); |
489 | 488 |
490 void changeNetworkStateFromLoadingToIdle(); | 489 void changeNetworkStateFromLoadingToIdle(); |
491 | 490 |
492 bool isAutoplaying() const { return m_autoplaying; } | 491 bool isAutoplaying() const { return m_autoplaying; } |
493 | 492 |
494 WebMediaPlayer::CORSMode corsMode() const; | 493 WebMediaPlayer::CORSMode corsMode() const; |
495 | 494 |
496 // Returns the "direction of playback" value as specified in the HTML5 spec. | 495 // Returns the "direction of playback" value as specified in the HTML5 spec. |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 738 |
740 Member<AutoplayUmaHelper> m_autoplayUmaHelper; | 739 Member<AutoplayUmaHelper> m_autoplayUmaHelper; |
741 | 740 |
742 WebRemotePlaybackClient* m_remotePlaybackClient; | 741 WebRemotePlaybackClient* m_remotePlaybackClient; |
743 | 742 |
744 // class AutoplayVisibilityObserver; | 743 // class AutoplayVisibilityObserver; |
745 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; | 744 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; |
746 | 745 |
747 IntRect m_currentIntersectRect; | 746 IntRect m_currentIntersectRect; |
748 | 747 |
| 748 Member<MediaControls> m_mediaControls; |
| 749 |
749 static URLRegistry* s_mediaStreamRegistry; | 750 static URLRegistry* s_mediaStreamRegistry; |
750 }; | 751 }; |
751 | 752 |
752 inline bool isHTMLMediaElement(const HTMLElement& element) { | 753 inline bool isHTMLMediaElement(const HTMLElement& element) { |
753 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 754 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
754 } | 755 } |
755 | 756 |
756 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 757 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
757 | 758 |
758 } // namespace blink | 759 } // namespace blink |
759 | 760 |
760 #endif // HTMLMediaElement_h | 761 #endif // HTMLMediaElement_h |
OLD | NEW |