summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/NodeWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/Bindings/NodeWrapper.h')
-rw-r--r--Libraries/LibWeb/Bindings/NodeWrapper.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Bindings/NodeWrapper.h b/Libraries/LibWeb/Bindings/NodeWrapper.h
new file mode 100644
index 0000000000..b7a24b94b7
--- /dev/null
+++ b/Libraries/LibWeb/Bindings/NodeWrapper.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <LibWeb/Bindings/Wrapper.h>
+
+namespace Web {
+namespace Bindings {
+
+class NodeWrapper : public Wrapper {
+public:
+ explicit NodeWrapper(Node&);
+ virtual ~NodeWrapper() override;
+
+ Node& node() { return *m_node; }
+ const Node& node() const { return *m_node; }
+
+private:
+ virtual const char* class_name() const override { return "Node"; }
+
+ NonnullRefPtr<Node> m_node;
+};
+
+}
+}