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

Unified Diff: Source/core/dom/IntersectionObserver.idl

Issue 1330633003: Intersection Observer first draft Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix segfault on null input. Created 5 years, 3 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: Source/core/dom/IntersectionObserver.idl
diff --git a/Source/core/dom/IntersectionObserver.idl b/Source/core/dom/IntersectionObserver.idl
new file mode 100644
index 0000000000000000000000000000000000000000..c2e2ce86defc4586320eabc8dc3cfeab2fb7a2cc
--- /dev/null
+++ b/Source/core/dom/IntersectionObserver.idl
@@ -0,0 +1,17 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// http://w3c.github.io/performance-timeline/#idl-def-PerformanceObserverCallback
+callback IntersectionObserverCallback = void (sequence <IntersectionObserverEntry> entries, IntersectionObserver observer);
+
+// https://
ojan 2015/09/21 03:49:09 ?
MikeB 2015/09/24 19:04:04 Done.
+[
+ CustomConstructor(IntersectionObserverCallback callback),
+ RuntimeEnabled=IntersectionObserver,
+ WillBeGarbageCollected,
+] interface IntersectionObserver {
+ [RaisesException] void observe(Element target, IntersectionObserverInit options);
+ void disconnect();
+ sequence <IntersectionObserverEntry> takeRecords();
ojan 2015/09/21 03:49:09 Nit: no space after "sequence".
MikeB 2015/09/24 19:04:03 Done.
+};

Powered by Google App Engine
This is Rietveld 408576698