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

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

Issue 2556573003: Media: lock orientation when <video> goes fullscreen. (Closed)
Patch Set: with unit tests 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 727
728 AudioSourceProviderImpl m_audioSourceProvider; 728 AudioSourceProviderImpl m_audioSourceProvider;
729 729
730 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings 730 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
731 friend class AutoplayUmaHelperTest; 731 friend class AutoplayUmaHelperTest;
732 friend class Internals; 732 friend class Internals;
733 friend class TrackDisplayUpdateScope; 733 friend class TrackDisplayUpdateScope;
734 friend class MediaControlsTest; 734 friend class MediaControlsTest;
735 friend class HTMLMediaElementTest; 735 friend class HTMLMediaElementTest;
736 friend class HTMLVideoElementTest; 736 friend class HTMLVideoElementTest;
737 friend class MediaControlsOrientationLockDelegateTest;
737 738
738 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 739 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
739 740
740 WebRemotePlaybackClient* m_remotePlaybackClient; 741 WebRemotePlaybackClient* m_remotePlaybackClient;
741 742
742 // class AutoplayVisibilityObserver; 743 // class AutoplayVisibilityObserver;
743 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 744 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
744 745
745 IntRect m_currentIntersectRect; 746 IntRect m_currentIntersectRect;
746 747
747 static URLRegistry* s_mediaStreamRegistry; 748 static URLRegistry* s_mediaStreamRegistry;
748 }; 749 };
749 750
750 inline bool isHTMLMediaElement(const HTMLElement& element) { 751 inline bool isHTMLMediaElement(const HTMLElement& element) {
751 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 752 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
752 } 753 }
753 754
754 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 755 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
755 756
756 } // namespace blink 757 } // namespace blink
757 758
758 #endif // HTMLMediaElement_h 759 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698