| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 InsertionNotificationRequest insertedInto(ContainerNode*) final; | 355 InsertionNotificationRequest insertedInto(ContainerNode*) final; |
| 356 void didNotifySubtreeInsertionsToDocument() override; | 356 void didNotifySubtreeInsertionsToDocument() override; |
| 357 void removedFrom(ContainerNode*) final; | 357 void removedFrom(ContainerNode*) final; |
| 358 void didRecalcStyle() final; | 358 void didRecalcStyle() final; |
| 359 | 359 |
| 360 bool canStartSelection() const override { return false; } | 360 bool canStartSelection() const override { return false; } |
| 361 | 361 |
| 362 bool isInteractiveContent() const final; | 362 bool isInteractiveContent() const final; |
| 363 | 363 |
| 364 // SuspendableObject functions. | 364 // SuspendableObject functions. |
| 365 void contextDestroyed(ExecutionContext*) final; | 365 void contextDestroyed(ExecutionContext*) override; |
| 366 | 366 |
| 367 virtual void updateDisplayState() {} | 367 virtual void updateDisplayState() {} |
| 368 | 368 |
| 369 void setReadyState(ReadyState); | 369 void setReadyState(ReadyState); |
| 370 void setNetworkState(WebMediaPlayer::NetworkState); | 370 void setNetworkState(WebMediaPlayer::NetworkState); |
| 371 | 371 |
| 372 // WebMediaPlayerClient implementation. | 372 // WebMediaPlayerClient implementation. |
| 373 void networkStateChanged() final; | 373 void networkStateChanged() final; |
| 374 void readyStateChanged() final; | 374 void readyStateChanged() final; |
| 375 void timeChanged() final; | 375 void timeChanged() final; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 732 |
| 733 AudioSourceProviderImpl m_audioSourceProvider; | 733 AudioSourceProviderImpl m_audioSourceProvider; |
| 734 | 734 |
| 735 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings | 735 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings |
| 736 friend class AutoplayUmaHelperTest; | 736 friend class AutoplayUmaHelperTest; |
| 737 friend class Internals; | 737 friend class Internals; |
| 738 friend class TrackDisplayUpdateScope; | 738 friend class TrackDisplayUpdateScope; |
| 739 friend class MediaControlsTest; | 739 friend class MediaControlsTest; |
| 740 friend class HTMLMediaElementTest; | 740 friend class HTMLMediaElementTest; |
| 741 friend class HTMLMediaElementEventListenersTest; | 741 friend class HTMLMediaElementEventListenersTest; |
| 742 friend class HTMLVideoElement; |
| 742 friend class HTMLVideoElementTest; | 743 friend class HTMLVideoElementTest; |
| 743 friend class MediaControlsOrientationLockDelegateTest; | 744 friend class MediaControlsOrientationLockDelegateTest; |
| 744 | 745 |
| 745 Member<AutoplayUmaHelper> m_autoplayUmaHelper; | 746 Member<AutoplayUmaHelper> m_autoplayUmaHelper; |
| 746 | 747 |
| 747 WebRemotePlaybackClient* m_remotePlaybackClient; | 748 WebRemotePlaybackClient* m_remotePlaybackClient; |
| 748 | 749 |
| 749 // class AutoplayVisibilityObserver; | 750 // class AutoplayVisibilityObserver; |
| 750 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; | 751 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; |
| 751 | 752 |
| 752 IntRect m_currentIntersectRect; | 753 IntRect m_currentIntersectRect; |
| 753 | 754 |
| 754 Member<MediaControls> m_mediaControls; | 755 Member<MediaControls> m_mediaControls; |
| 755 Member<HTMLMediaElementControlsList> m_controlsList; | 756 Member<HTMLMediaElementControlsList> m_controlsList; |
| 756 | 757 |
| 757 static URLRegistry* s_mediaStreamRegistry; | 758 static URLRegistry* s_mediaStreamRegistry; |
| 758 }; | 759 }; |
| 759 | 760 |
| 760 inline bool isHTMLMediaElement(const HTMLElement& element) { | 761 inline bool isHTMLMediaElement(const HTMLElement& element) { |
| 761 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 762 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 762 } | 763 } |
| 763 | 764 |
| 764 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 765 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 765 | 766 |
| 766 } // namespace blink | 767 } // namespace blink |
| 767 | 768 |
| 768 #endif // HTMLMediaElement_h | 769 #endif // HTMLMediaElement_h |
| OLD | NEW |