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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserverInit.idl

Issue 1449623002: IntersectionObserver: second cut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: sigbjornf nits Created 5 years 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/IntersectionObserverInit.idl
diff --git a/chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js b/third_party/WebKit/Source/core/dom/IntersectionObserverInit.idl
similarity index 51%
copy from chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
copy to third_party/WebKit/Source/core/dom/IntersectionObserverInit.idl
index a33255c974a272d2cd7100bdd3513b7594957db4..f2ee14e8ee41a5cad9f0be5a87a89fa6519770d8 100644
--- a/chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverInit.idl
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-this.onmessage = function(e) {
- e.ports[0].postMessage('Pong from version 2');
-};
+// TODO(szager): link to final spec
-this.oninstall = function(e) {
- e.waitUntil(self.skipWaiting());
+dictionary IntersectionObserverInit {
+ Element? root;
+ DOMString rootMargin;
+ (double or double[]) threshold = 0;
};

Powered by Google App Engine
This is Rietveld 408576698