Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)
Patch Set: addressed nits Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 void removeVideoTrack(WebMediaPlayer::TrackId) final; 394 void removeVideoTrack(WebMediaPlayer::TrackId) final;
395 void addTextTrack(WebInbandTextTrack*) final; 395 void addTextTrack(WebInbandTextTrack*) final;
396 void removeTextTrack(WebInbandTextTrack*) final; 396 void removeTextTrack(WebInbandTextTrack*) final;
397 void mediaSourceOpened(WebMediaSource*) final; 397 void mediaSourceOpened(WebMediaSource*) final;
398 void requestSeek(double) final; 398 void requestSeek(double) final;
399 void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final; 399 void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final;
400 void connectedToRemoteDevice() final; 400 void connectedToRemoteDevice() final;
401 void disconnectedFromRemoteDevice() final; 401 void disconnectedFromRemoteDevice() final;
402 void cancelledRemotePlaybackRequest() final; 402 void cancelledRemotePlaybackRequest() final;
403 void remotePlaybackStarted() final; 403 void remotePlaybackStarted() final;
404 void onBecamePersistentVideo(bool) final;
404 bool hasSelectedVideoTrack() final; 405 bool hasSelectedVideoTrack() final;
405 WebMediaPlayer::TrackId getSelectedVideoTrackId() final; 406 WebMediaPlayer::TrackId getSelectedVideoTrackId() final;
406 bool isAutoplayingMuted() final; 407 bool isAutoplayingMuted() final;
407 void requestReload(const WebURL&) final; 408 void requestReload(const WebURL&) final;
408 void activateViewportIntersectionMonitoring(bool) final; 409 void activateViewportIntersectionMonitoring(bool) final;
409 410
410 void loadTimerFired(TimerBase*); 411 void loadTimerFired(TimerBase*);
411 void progressEventTimerFired(TimerBase*); 412 void progressEventTimerFired(TimerBase*);
412 void playbackProgressTimerFired(TimerBase*); 413 void playbackProgressTimerFired(TimerBase*);
413 void checkViewportIntersectionTimerFired(TimerBase*); 414 void checkViewportIntersectionTimerFired(TimerBase*);
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 734
734 AudioSourceProviderImpl m_audioSourceProvider; 735 AudioSourceProviderImpl m_audioSourceProvider;
735 736
736 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings 737 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
737 friend class AutoplayUmaHelperTest; 738 friend class AutoplayUmaHelperTest;
738 friend class Internals; 739 friend class Internals;
739 friend class TrackDisplayUpdateScope; 740 friend class TrackDisplayUpdateScope;
740 friend class MediaControlsTest; 741 friend class MediaControlsTest;
741 friend class HTMLMediaElementTest; 742 friend class HTMLMediaElementTest;
742 friend class HTMLMediaElementEventListenersTest; 743 friend class HTMLMediaElementEventListenersTest;
744 friend class HTMLMediaElementPersistentVideoTest;
743 friend class HTMLVideoElement; 745 friend class HTMLVideoElement;
744 friend class HTMLVideoElementTest; 746 friend class HTMLVideoElementTest;
745 friend class MediaControlsOrientationLockDelegateTest; 747 friend class MediaControlsOrientationLockDelegateTest;
746 748
747 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 749 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
748 750
749 WebRemotePlaybackClient* m_remotePlaybackClient; 751 WebRemotePlaybackClient* m_remotePlaybackClient;
750 752
751 // class AutoplayVisibilityObserver; 753 // class AutoplayVisibilityObserver;
752 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 754 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
753 755
754 IntRect m_currentIntersectRect; 756 IntRect m_currentIntersectRect;
755 757
756 Member<MediaControls> m_mediaControls; 758 Member<MediaControls> m_mediaControls;
757 Member<HTMLMediaElementControlsList> m_controlsList; 759 Member<HTMLMediaElementControlsList> m_controlsList;
758 760
761 bool m_isPersistentVideo;
762
759 static URLRegistry* s_mediaStreamRegistry; 763 static URLRegistry* s_mediaStreamRegistry;
760 }; 764 };
761 765
762 inline bool isHTMLMediaElement(const HTMLElement& element) { 766 inline bool isHTMLMediaElement(const HTMLElement& element) {
763 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 767 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
764 } 768 }
765 769
766 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 770 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
767 771
768 } // namespace blink 772 } // namespace blink
769 773
770 #endif // HTMLMediaElement_h 774 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698