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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserver.h

Issue 2051253002: Start autoplay muted videos with autoplay attribute when they are visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/IntersectionObserver.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.h b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
index ecf68c3c88f1a9575bc22476d4c0671976b3b6c8..0a168b9c6378ae18ef429de35e03c0d1ab66468c 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
@@ -56,9 +56,12 @@ public:
DECLARE_TRACE();
-private:
+// private:
explicit IntersectionObserver(IntersectionObserverCallback&, Node&, const Vector<Length>& rootMargin, const Vector<float>& thresholds);
- void clearWeakMembers(Visitor*);
+ void observe(Element*);
+ void unobserve(Element*);
+ private:
+ void clearWeakMembers(Visitor*);
Member<IntersectionObserverCallback> m_callback;
WeakMember<Node> m_root;

Powered by Google App Engine
This is Rietveld 408576698