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

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

Issue 2251073003: Pretend the video has no audio track if it is playing as part of autoplay muted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit tests Created 4 years, 2 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 reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 bool) final; 376 bool) final;
377 void removeVideoTrack(WebMediaPlayer::TrackId) final; 377 void removeVideoTrack(WebMediaPlayer::TrackId) final;
378 void addTextTrack(WebInbandTextTrack*) final; 378 void addTextTrack(WebInbandTextTrack*) final;
379 void removeTextTrack(WebInbandTextTrack*) final; 379 void removeTextTrack(WebInbandTextTrack*) final;
380 void mediaSourceOpened(WebMediaSource*) final; 380 void mediaSourceOpened(WebMediaSource*) final;
381 void requestSeek(double) final; 381 void requestSeek(double) final;
382 void remoteRouteAvailabilityChanged(bool) final; 382 void remoteRouteAvailabilityChanged(bool) final;
383 void connectedToRemoteDevice() final; 383 void connectedToRemoteDevice() final;
384 void disconnectedFromRemoteDevice() final; 384 void disconnectedFromRemoteDevice() final;
385 void cancelledRemotePlaybackRequest() final; 385 void cancelledRemotePlaybackRequest() final;
386 bool isAutoplayingMuted() final;
386 void requestReload(const WebURL&) final; 387 void requestReload(const WebURL&) final;
387 388
388 void loadTimerFired(TimerBase*); 389 void loadTimerFired(TimerBase*);
389 void progressEventTimerFired(TimerBase*); 390 void progressEventTimerFired(TimerBase*);
390 void playbackProgressTimerFired(TimerBase*); 391 void playbackProgressTimerFired(TimerBase*);
391 void startPlaybackProgressTimer(); 392 void startPlaybackProgressTimer();
392 void startProgressEventTimer(); 393 void startProgressEventTimer();
393 void stopPeriodicTimers(); 394 void stopPeriodicTimers();
394 395
395 void seek(double time); 396 void seek(double time);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 721
721 inline bool isHTMLMediaElement(const HTMLElement& element) { 722 inline bool isHTMLMediaElement(const HTMLElement& element) {
722 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 723 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
723 } 724 }
724 725
725 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 726 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
726 727
727 } // namespace blink 728 } // namespace blink
728 729
729 #endif // HTMLMediaElement_h 730 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698