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

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

Issue 2696893002: [Blink>Media] Add heuristic for dominant video detection for Android (Closed)
Patch Set: Created 3 years, 10 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
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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 bool hasSelectedVideoTrack() final; 396 bool hasSelectedVideoTrack() final;
397 WebMediaPlayer::TrackId getSelectedVideoTrackId() final; 397 WebMediaPlayer::TrackId getSelectedVideoTrackId() final;
398 bool isAutoplayingMuted() final; 398 bool isAutoplayingMuted() final;
399 void requestReload(const WebURL&) final; 399 void requestReload(const WebURL&) final;
400 void activateViewportIntersectionMonitoring(bool) final; 400 void activateViewportIntersectionMonitoring(bool) final;
401 401
402 void loadTimerFired(TimerBase*); 402 void loadTimerFired(TimerBase*);
403 void progressEventTimerFired(TimerBase*); 403 void progressEventTimerFired(TimerBase*);
404 void playbackProgressTimerFired(TimerBase*); 404 void playbackProgressTimerFired(TimerBase*);
405 void checkViewportIntersectionTimerFired(TimerBase*); 405 void checkViewportIntersectionTimerFired(TimerBase*);
406 static bool computeIsMostlyFillingViewport(const IntRect& targetRect,
407 const IntRect& rootRect,
408 const IntRect& intersectionRect);
406 void startPlaybackProgressTimer(); 409 void startPlaybackProgressTimer();
407 void startProgressEventTimer(); 410 void startProgressEventTimer();
408 void stopPeriodicTimers(); 411 void stopPeriodicTimers();
409 412
410 void seek(double time); 413 void seek(double time);
411 void finishSeek(); 414 void finishSeek();
412 void checkIfSeekNeeded(); 415 void checkIfSeekNeeded();
413 void addPlayedRange(double start, double end); 416 void addPlayedRange(double start, double end);
414 417
415 // FIXME: Rename to scheduleNamedEvent for clarity. 418 // FIXME: Rename to scheduleNamedEvent for clarity.
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 755
753 inline bool isHTMLMediaElement(const HTMLElement& element) { 756 inline bool isHTMLMediaElement(const HTMLElement& element) {
754 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 757 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
755 } 758 }
756 759
757 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 760 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
758 761
759 } // namespace blink 762 } // namespace blink
760 763
761 #endif // HTMLMediaElement_h 764 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698