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

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: review comments Created 4 years, 1 month 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 bool) final; 383 bool) final;
384 void removeVideoTrack(WebMediaPlayer::TrackId) final; 384 void removeVideoTrack(WebMediaPlayer::TrackId) final;
385 void addTextTrack(WebInbandTextTrack*) final; 385 void addTextTrack(WebInbandTextTrack*) final;
386 void removeTextTrack(WebInbandTextTrack*) final; 386 void removeTextTrack(WebInbandTextTrack*) final;
387 void mediaSourceOpened(WebMediaSource*) final; 387 void mediaSourceOpened(WebMediaSource*) final;
388 void requestSeek(double) final; 388 void requestSeek(double) final;
389 void remoteRouteAvailabilityChanged(bool) final; 389 void remoteRouteAvailabilityChanged(bool) final;
390 void connectedToRemoteDevice() final; 390 void connectedToRemoteDevice() final;
391 void disconnectedFromRemoteDevice() final; 391 void disconnectedFromRemoteDevice() final;
392 void cancelledRemotePlaybackRequest() final; 392 void cancelledRemotePlaybackRequest() final;
393 bool isAutoplayingMuted() final;
393 void requestReload(const WebURL&) final; 394 void requestReload(const WebURL&) final;
394 395
395 void loadTimerFired(TimerBase*); 396 void loadTimerFired(TimerBase*);
396 void progressEventTimerFired(TimerBase*); 397 void progressEventTimerFired(TimerBase*);
397 void playbackProgressTimerFired(TimerBase*); 398 void playbackProgressTimerFired(TimerBase*);
398 void startPlaybackProgressTimer(); 399 void startPlaybackProgressTimer();
399 void startProgressEventTimer(); 400 void startProgressEventTimer();
400 void stopPeriodicTimers(); 401 void stopPeriodicTimers();
401 402
402 void seek(double time); 403 void seek(double time);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 728
728 inline bool isHTMLMediaElement(const HTMLElement& element) { 729 inline bool isHTMLMediaElement(const HTMLElement& element) {
729 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 730 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
730 } 731 }
731 732
732 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 733 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
733 734
734 } // namespace blink 735 } // namespace blink
735 736
736 #endif // HTMLMediaElement_h 737 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/media/autoplay-muted.html ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698