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

Unified Diff: Source/core/dom/DOMPoint.idl

Issue 404803002: Implement DOMPoint of geometry interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « Source/core/dom/DOMPoint.cpp ('k') | Source/core/dom/DOMPointReadOnly.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMPoint.idl
diff --git a/Source/core/dom/DOMPoint.idl b/Source/core/dom/DOMPoint.idl
new file mode 100644
index 0000000000000000000000000000000000000000..d75c518c9e8093a1d198230a24c0335ad5823a3c
--- /dev/null
+++ b/Source/core/dom/DOMPoint.idl
@@ -0,0 +1,24 @@
+// Copyright 2014 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.
+
+// FIXME: Blink doesn't currently support dictionary definitions.
+// For now, we can use Dictionary interface. See http://crbug.com/321462.
+// dictionary DOMPointInit {
+// unrestricted double x = 0;
+// unrestricted double y = 0;
+// unrestricted double z = 0;
+// unrestricted double w = 1;
+// };
+
+[
+ Constructor(optional Dictionary point),
+ Constructor(unrestricted double x, unrestricted double y,
+ optional unrestricted double z = 0, optional unrestricted double w = 1),
+ RuntimeEnabled=GeometryInterfaces,
+] interface DOMPoint : DOMPointReadOnly {
+ attribute unrestricted double x;
+ attribute unrestricted double y;
+ attribute unrestricted double z;
+ attribute unrestricted double w;
+};
« no previous file with comments | « Source/core/dom/DOMPoint.cpp ('k') | Source/core/dom/DOMPointReadOnly.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698