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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Add API to WebMediaPlayerClient. Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 540c9271134c84ac0359ee3f709e8c55e934a562..3ca3829c8d930cbc64fae6340db6058b2f6b5661 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -397,12 +397,15 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
WebMediaPlayer::TrackId getSelectedVideoTrackId() final;
bool isAutoplayingMuted() final;
void requestReload(const WebURL&) final;
+ void enableMonitorViewportIntersection(bool) final;
void loadTimerFired(TimerBase*);
void progressEventTimerFired(TimerBase*);
void playbackProgressTimerFired(TimerBase*);
+ void checkIntersectionWhenPausedTimerFired(TimerBase*);
void startPlaybackProgressTimer();
void startProgressEventTimer();
+ void startCheckIntersectionWhenPausedTimer();
void stopPeriodicTimers();
void seek(double time);
@@ -549,6 +552,7 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
UnthrottledThreadTimer<HTMLMediaElement> m_playbackProgressTimer;
UnthrottledThreadTimer<HTMLMediaElement> m_audioTracksTimer;
UnthrottledThreadTimer<HTMLMediaElement> m_viewportFillDebouncerTimer;
+ UnthrottledThreadTimer<HTMLMediaElement> m_checkIntersectionWhenPausedTimer;
Member<TimeRanges> m_playedTimeRanges;
Member<GenericEventQueue> m_asyncEventQueue;
@@ -734,6 +738,8 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
IntRect m_currentIntersectRect;
+ bool m_enableMonitorViewportIntersection = false;
+
static URLRegistry* s_mediaStreamRegistry;
};

Powered by Google App Engine
This is Rietveld 408576698