Index: third_party/WebKit/Source/core/dom/DOMQuad.h |
diff --git a/third_party/WebKit/Source/core/dom/DOMQuad.h b/third_party/WebKit/Source/core/dom/DOMQuad.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0b5aac6fdb93c5e0c27042949ac77ace0f9d0d75 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/dom/DOMQuad.h |
@@ -0,0 +1,52 @@ |
+// Copyright 2017 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 DOMQuad_h |
+#define DOMQuad_h |
+ |
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "core/CoreExport.h" |
+ |
+namespace blink { |
+ |
+class DOMPoint; |
+class DOMPointInit; |
+ |
+class CORE_EXPORT DOMQuad : public GarbageCollected<DOMQuad>, |
+ public ScriptWrappable { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ |
+ public: |
+ static DOMQuad* create(const DOMPointInit& p1, |
+ const DOMPointInit& p2, |
+ const DOMPointInit& p3, |
+ const DOMPointInit& p4); |
+ |
+ DOMPoint* p1() const { return m_p1; } |
+ DOMPoint* p2() const { return m_p2; } |
+ DOMPoint* p3() const { return m_p3; } |
+ DOMPoint* p4() const { return m_p4; } |
+ |
+ DEFINE_INLINE_TRACE() { |
+ visitor->trace(m_p1); |
+ visitor->trace(m_p2); |
+ visitor->trace(m_p3); |
+ visitor->trace(m_p4); |
+ } |
+ |
+ private: |
+ DOMQuad(const DOMPointInit& p1, |
+ const DOMPointInit& p2, |
+ const DOMPointInit& p3, |
+ const DOMPointInit& p4); |
+ |
+ Member<DOMPoint> m_p1; |
+ Member<DOMPoint> m_p2; |
+ Member<DOMPoint> m_p3; |
+ Member<DOMPoint> m_p4; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |