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

Unified Diff: third_party/WebKit/Source/core/observer/ResizeObserver.h

Issue 2159883003: ResizeObserver pt1: IDLs with stubs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR fixes Created 4 years, 5 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/observer/ResizeObserver.h
diff --git a/third_party/WebKit/Source/core/observer/ResizeObserver.h b/third_party/WebKit/Source/core/observer/ResizeObserver.h
new file mode 100644
index 0000000000000000000000000000000000000000..29ab47f12d3ca3155ac1700211e4fd9b9934f6a0
--- /dev/null
+++ b/third_party/WebKit/Source/core/observer/ResizeObserver.h
@@ -0,0 +1,45 @@
+// Copyright 2016 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.
+
+#ifndef ResizeObserver_h
+#define ResizeObserver_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Document;
+class Element;
+class ResizeObserverCallback;
+class ResizeObserverEntry;
+
+// ResizeObserver represents ResizeObserver javascript api:
+// https://github.com/WICG/ResizeObserver/
+class ResizeObserver final : public GarbageCollectedFinalized<ResizeObserver>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+
+ static ResizeObserver* create(Document&, ResizeObserverCallback*);
+
+ virtual ~ResizeObserver() {};
+
+
+ // API methods
+ void observe(Element*);
+ void unobserve(Element*);
+ void disconnect();
+
+ DECLARE_TRACE();
+
+private:
+
+ explicit ResizeObserver(ResizeObserverCallback*, Document&);
+
+};
+
+
+} // namespace blink
+
+#endif // ResizeObserver_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/observer/ResizeObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698