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

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

Issue 2046973003: IntersectionObserver: throw exceptions as spec mandates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@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 469a0fa4ce2639ab255601b36dbb53cebaa1c4b7..ecf68c3c88f1a9575bc22476d4c0671976b3b6c8 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
@@ -29,10 +29,12 @@ public:
static void resumeSuspendedObservers();
// API methods
- void observe(Element*);
- void unobserve(Element*);
- void disconnect();
- HeapVector<Member<IntersectionObserverEntry>> takeRecords();
+ void observe(Element*, ExceptionState&);
+ void unobserve(Element*, ExceptionState&);
+ void disconnect(ExceptionState&);
+ HeapVector<Member<IntersectionObserverEntry>> takeRecords(ExceptionState&);
+
+ // API attributes
Element* root() const;
String rootMargin() const;
const Vector<float>& thresholds() const { return m_thresholds; }

Powered by Google App Engine
This is Rietveld 408576698