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

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

Issue 2615653003: [GeometryInterface] Implement DOMQuad and DOMQuadInit. (Closed)
Patch Set: add const keyword Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/DOMQuad.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/core/dom/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/DOMQuad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698