OLD | NEW |
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 Loading... |
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 |
OLD | NEW |