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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: falling back to adding a boolean flag 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 0bd98bca6d30fa8ac49f065ddad4b715583cedbb..b5fbef2d864e11db4478014d933be64688166492 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -504,6 +504,10 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
// transition to kHaveMetadata.
void selectInitialTracksIfNecessary();
+ // Return true if and only if |m_lockedPendingUserGesture| should be
+ // initialized as true.
mlamouri (slow - plz ping) 2016/11/18 14:33:10 The comment isn't entirely true because otherwise
Zhiqiang Zhang (Slow) 2016/11/21 18:06:23 Done.
+ bool computeLockedPendingUserGesture(Document&) const;
+
// Return true if and only if a user gesture is required to unlock this
// media element for unrestricted autoplay / script control. Don't confuse
// this with isGestureNeededForPlayback(). The latter is usually what one

Powered by Google App Engine
This is Rietveld 408576698