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

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

Issue 2111673004: When autoplay of muted videos is disabled, record the reason why. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 private: 655 private:
656 WebAudioSourceProvider* m_webAudioSourceProvider; 656 WebAudioSourceProvider* m_webAudioSourceProvider;
657 Member<AudioClientImpl> m_client; 657 Member<AudioClientImpl> m_client;
658 Mutex provideInputLock; 658 Mutex provideInputLock;
659 }; 659 };
660 660
661 AudioSourceProviderImpl m_audioSourceProvider; 661 AudioSourceProviderImpl m_audioSourceProvider;
662 662
663 class AutoplayHelperClientImpl; 663 class AutoplayHelperClientImpl;
664 664
665 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
665 friend class Internals; 666 friend class Internals;
666 friend class TrackDisplayUpdateScope; 667 friend class TrackDisplayUpdateScope;
667 friend class AutoplayExperimentHelper; 668 friend class AutoplayExperimentHelper;
668 friend class MediaControlsTest; 669 friend class MediaControlsTest;
669 670
670 Member<AutoplayExperimentHelper::Client> m_autoplayHelperClient; 671 Member<AutoplayExperimentHelper::Client> m_autoplayHelperClient;
671 Member<AutoplayExperimentHelper> m_autoplayHelper; 672 Member<AutoplayExperimentHelper> m_autoplayHelper;
672 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 673 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
673 674
674 WebRemotePlaybackClient* m_remotePlaybackClient; 675 WebRemotePlaybackClient* m_remotePlaybackClient;
675 676
676 // class AutoplayVisibilityObserver; 677 // class AutoplayVisibilityObserver;
677 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 678 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
678 679
679 static URLRegistry* s_mediaStreamRegistry; 680 static URLRegistry* s_mediaStreamRegistry;
680 }; 681 };
681 682
682 inline bool isHTMLMediaElement(const HTMLElement& element) 683 inline bool isHTMLMediaElement(const HTMLElement& element)
683 { 684 {
684 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 685 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
685 } 686 }
686 687
687 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 688 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
688 689
689 } // namespace blink 690 } // namespace blink
690 691
691 #endif // HTMLMediaElement_h 692 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698