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

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

Issue 2556573003: Media: lock orientation when <video> goes fullscreen. (Closed)
Patch Set: review comments Created 4 years 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 725
726 AudioSourceProviderImpl m_audioSourceProvider; 726 AudioSourceProviderImpl m_audioSourceProvider;
727 727
728 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings 728 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
729 friend class AutoplayUmaHelperTest; 729 friend class AutoplayUmaHelperTest;
730 friend class Internals; 730 friend class Internals;
731 friend class TrackDisplayUpdateScope; 731 friend class TrackDisplayUpdateScope;
732 friend class MediaControlsTest; 732 friend class MediaControlsTest;
733 friend class HTMLMediaElementTest; 733 friend class HTMLMediaElementTest;
734 friend class HTMLVideoElementTest; 734 friend class HTMLVideoElementTest;
735 friend class MediaControlsOrientationLockDelegateTest;
735 736
736 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 737 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
737 738
738 WebRemotePlaybackClient* m_remotePlaybackClient; 739 WebRemotePlaybackClient* m_remotePlaybackClient;
739 740
740 // class AutoplayVisibilityObserver; 741 // class AutoplayVisibilityObserver;
741 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 742 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
742 743
743 IntRect m_currentIntersectRect; 744 IntRect m_currentIntersectRect;
744 745
745 static URLRegistry* s_mediaStreamRegistry; 746 static URLRegistry* s_mediaStreamRegistry;
746 }; 747 };
747 748
748 inline bool isHTMLMediaElement(const HTMLElement& element) { 749 inline bool isHTMLMediaElement(const HTMLElement& element) {
749 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 750 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
750 } 751 }
751 752
752 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 753 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
753 754
754 } // namespace blink 755 } // namespace blink
755 756
756 #endif // HTMLMediaElement_h 757 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/BUILD.gn ('k') | third_party/WebKit/Source/core/html/shadow/MediaControls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698