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

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

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Rebase, addressed 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool autoplay() const; 174 bool autoplay() const;
175 bool shouldAutoplay( 175 bool shouldAutoplay(
176 const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord); 176 const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord);
177 bool loop() const; 177 bool loop() const;
178 void setLoop(bool); 178 void setLoop(bool);
179 ScriptPromise playForBindings(ScriptState*); 179 ScriptPromise playForBindings(ScriptState*);
180 Nullable<ExceptionCode> play(); 180 Nullable<ExceptionCode> play();
181 void pause(); 181 void pause();
182 void requestRemotePlayback(); 182 void requestRemotePlayback();
183 void requestRemotePlaybackControl(); 183 void requestRemotePlaybackControl();
184 void requestRemotePlaybackStop();
184 185
185 // statistics 186 // statistics
186 unsigned webkitAudioDecodedByteCount() const; 187 unsigned webkitAudioDecodedByteCount() const;
187 unsigned webkitVideoDecodedByteCount() const; 188 unsigned webkitVideoDecodedByteCount() const;
188 189
189 // media source extensions 190 // media source extensions
190 void closeMediaSource(); 191 void closeMediaSource();
191 void durationChanged(double duration, bool requestSeek); 192 void durationChanged(double duration, bool requestSeek);
192 193
193 // controls 194 // controls
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 735
735 inline bool isHTMLMediaElement(const HTMLElement& element) { 736 inline bool isHTMLMediaElement(const HTMLElement& element) {
736 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 737 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
737 } 738 }
738 739
739 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 740 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
740 741
741 } // namespace blink 742 } // namespace blink
742 743
743 #endif // HTMLMediaElement_h 744 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.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