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