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

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

Issue 2743573003: Fix an issue in fullscreen detector when context is destroyed (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 InsertionNotificationRequest insertedInto(ContainerNode*) final; 352 InsertionNotificationRequest insertedInto(ContainerNode*) final;
353 void didNotifySubtreeInsertionsToDocument() override; 353 void didNotifySubtreeInsertionsToDocument() override;
354 void removedFrom(ContainerNode*) final; 354 void removedFrom(ContainerNode*) final;
355 void didRecalcStyle() final; 355 void didRecalcStyle() final;
356 356
357 bool canStartSelection() const override { return false; } 357 bool canStartSelection() const override { return false; }
358 358
359 bool isInteractiveContent() const final; 359 bool isInteractiveContent() const final;
360 360
361 // SuspendableObject functions. 361 // SuspendableObject functions.
362 void contextDestroyed(ExecutionContext*) final; 362 void contextDestroyed(ExecutionContext*);
mlamouri (slow - plz ping) 2017/03/10 11:37:55 override?
Zhiqiang Zhang (Slow) 2017/03/10 14:57:14 Done.
363 363
364 virtual void updateDisplayState() {} 364 virtual void updateDisplayState() {}
365 365
366 void setReadyState(ReadyState); 366 void setReadyState(ReadyState);
367 void setNetworkState(WebMediaPlayer::NetworkState); 367 void setNetworkState(WebMediaPlayer::NetworkState);
368 368
369 // WebMediaPlayerClient implementation. 369 // WebMediaPlayerClient implementation.
370 void networkStateChanged() final; 370 void networkStateChanged() final;
371 void readyStateChanged() final; 371 void readyStateChanged() final;
372 void timeChanged() final; 372 void timeChanged() final;
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 AudioSourceProviderImpl m_audioSourceProvider; 730 AudioSourceProviderImpl m_audioSourceProvider;
731 731
732 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings 732 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
733 friend class AutoplayUmaHelperTest; 733 friend class AutoplayUmaHelperTest;
734 friend class Internals; 734 friend class Internals;
735 friend class TrackDisplayUpdateScope; 735 friend class TrackDisplayUpdateScope;
736 friend class MediaControlsTest; 736 friend class MediaControlsTest;
737 friend class HTMLMediaElementTest; 737 friend class HTMLMediaElementTest;
738 friend class HTMLMediaElementEventListenersTest; 738 friend class HTMLMediaElementEventListenersTest;
739 friend class HTMLVideoElement;
739 friend class HTMLVideoElementTest; 740 friend class HTMLVideoElementTest;
740 friend class MediaControlsOrientationLockDelegateTest; 741 friend class MediaControlsOrientationLockDelegateTest;
741 742
742 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 743 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
743 744
744 WebRemotePlaybackClient* m_remotePlaybackClient; 745 WebRemotePlaybackClient* m_remotePlaybackClient;
745 746
746 // class AutoplayVisibilityObserver; 747 // class AutoplayVisibilityObserver;
747 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 748 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
748 749
749 IntRect m_currentIntersectRect; 750 IntRect m_currentIntersectRect;
750 751
751 Member<MediaControls> m_mediaControls; 752 Member<MediaControls> m_mediaControls;
752 753
753 static URLRegistry* s_mediaStreamRegistry; 754 static URLRegistry* s_mediaStreamRegistry;
754 }; 755 };
755 756
756 inline bool isHTMLMediaElement(const HTMLElement& element) { 757 inline bool isHTMLMediaElement(const HTMLElement& element) {
757 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 758 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
758 } 759 }
759 760
760 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 761 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
761 762
762 } // namespace blink 763 } // namespace blink
763 764
764 #endif // HTMLMediaElement_h 765 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698