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

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

Issue 2475643004: Monitor the intersection of video and viewport. (Closed)
Patch Set: Use empty thresholds to indicate observing intersection with viewport. 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/dom/IntersectionObserver.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.h b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
index 3281fcea96352ef256fc00bd74383250e40b02ac..11e424d271bd4daffee3e3db4e7c9377a5bebf31 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
@@ -45,6 +45,7 @@ class CORE_EXPORT IntersectionObserver final
static IntersectionObserver* create(const IntersectionObserverInit&,
IntersectionObserverCallback&,
ExceptionState&);
+ // Observes any changes on intersection rect when |thresholds| is empty.
static IntersectionObserver* create(const Vector<Length>& rootMargin,
const Vector<float>& thresholds,
Document*,
@@ -106,6 +107,7 @@ class CORE_EXPORT IntersectionObserver final
Length m_bottomMargin;
Length m_leftMargin;
InitialState m_initialState;
+ bool m_observeViewportIntersection;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698