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

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

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Fix nits. 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 unified diff | Download patch
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 void requestSeek(double) final; 391 void requestSeek(double) final;
392 void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final; 392 void remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final;
393 void connectedToRemoteDevice() final; 393 void connectedToRemoteDevice() final;
394 void disconnectedFromRemoteDevice() final; 394 void disconnectedFromRemoteDevice() final;
395 void cancelledRemotePlaybackRequest() final; 395 void cancelledRemotePlaybackRequest() final;
396 void remotePlaybackStarted() final; 396 void remotePlaybackStarted() final;
397 bool hasSelectedVideoTrack() final; 397 bool hasSelectedVideoTrack() final;
398 WebMediaPlayer::TrackId getSelectedVideoTrackId() final; 398 WebMediaPlayer::TrackId getSelectedVideoTrackId() final;
399 bool isAutoplayingMuted() final; 399 bool isAutoplayingMuted() final;
400 void requestReload(const WebURL&) final; 400 void requestReload(const WebURL&) final;
401 void activateViewportIntersectionMonitoring(bool) final;
401 402
402 void loadTimerFired(TimerBase*); 403 void loadTimerFired(TimerBase*);
403 void progressEventTimerFired(TimerBase*); 404 void progressEventTimerFired(TimerBase*);
404 void playbackProgressTimerFired(TimerBase*); 405 void playbackProgressTimerFired(TimerBase*);
406 void checkViewportIntersectionTimerFired(TimerBase*);
405 void startPlaybackProgressTimer(); 407 void startPlaybackProgressTimer();
406 void startProgressEventTimer(); 408 void startProgressEventTimer();
407 void stopPeriodicTimers(); 409 void stopPeriodicTimers();
408 410
409 void seek(double time); 411 void seek(double time);
410 void finishSeek(); 412 void finishSeek();
411 void checkIfSeekNeeded(); 413 void checkIfSeekNeeded();
412 void addPlayedRange(double start, double end); 414 void addPlayedRange(double start, double end);
413 415
414 // FIXME: Rename to scheduleNamedEvent for clarity. 416 // FIXME: Rename to scheduleNamedEvent for clarity.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 void scheduleNotifyPlaying(); 543 void scheduleNotifyPlaying();
542 void resolveScheduledPlayPromises(); 544 void resolveScheduledPlayPromises();
543 void rejectScheduledPlayPromises(); 545 void rejectScheduledPlayPromises();
544 void rejectPlayPromises(ExceptionCode, const String&); 546 void rejectPlayPromises(ExceptionCode, const String&);
545 void rejectPlayPromisesInternal(ExceptionCode, const String&); 547 void rejectPlayPromisesInternal(ExceptionCode, const String&);
546 548
547 EnumerationHistogram& showControlsHistogram() const; 549 EnumerationHistogram& showControlsHistogram() const;
548 550
549 void onVisibilityChangedForAutoplay(bool isVisible); 551 void onVisibilityChangedForAutoplay(bool isVisible);
550 552
551 void checkViewportIntersectionChanged();
552 void viewportFillDebouncerTimerFired(TimerBase*); 553 void viewportFillDebouncerTimerFired(TimerBase*);
553 554
554 UnthrottledThreadTimer<HTMLMediaElement> m_loadTimer; 555 UnthrottledThreadTimer<HTMLMediaElement> m_loadTimer;
555 UnthrottledThreadTimer<HTMLMediaElement> m_progressEventTimer; 556 UnthrottledThreadTimer<HTMLMediaElement> m_progressEventTimer;
556 UnthrottledThreadTimer<HTMLMediaElement> m_playbackProgressTimer; 557 UnthrottledThreadTimer<HTMLMediaElement> m_playbackProgressTimer;
557 UnthrottledThreadTimer<HTMLMediaElement> m_audioTracksTimer; 558 UnthrottledThreadTimer<HTMLMediaElement> m_audioTracksTimer;
558 UnthrottledThreadTimer<HTMLMediaElement> m_viewportFillDebouncerTimer; 559 UnthrottledThreadTimer<HTMLMediaElement> m_viewportFillDebouncerTimer;
560 UnthrottledThreadTimer<HTMLMediaElement> m_checkViewportIntersectionTimer;
559 Member<TimeRanges> m_playedTimeRanges; 561 Member<TimeRanges> m_playedTimeRanges;
560 Member<GenericEventQueue> m_asyncEventQueue; 562 Member<GenericEventQueue> m_asyncEventQueue;
561 563
562 double m_playbackRate; 564 double m_playbackRate;
563 double m_defaultPlaybackRate; 565 double m_defaultPlaybackRate;
564 NetworkState m_networkState; 566 NetworkState m_networkState;
565 ReadyState m_readyState; 567 ReadyState m_readyState;
566 ReadyState m_readyStateMaximum; 568 ReadyState m_readyStateMaximum;
567 KURL m_currentSrc; 569 KURL m_currentSrc;
568 Member<MediaStreamDescriptor> m_srcObject; 570 Member<MediaStreamDescriptor> m_srcObject;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 750
749 inline bool isHTMLMediaElement(const HTMLElement& element) { 751 inline bool isHTMLMediaElement(const HTMLElement& element) {
750 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 752 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
751 } 753 }
752 754
753 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 755 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
754 756
755 } // namespace blink 757 } // namespace blink
756 758
757 #endif // HTMLMediaElement_h 759 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « media/remoting/remoting_renderer_controller.cc ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698