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..f2fe741715c1ea8d940c0a55087e4e094e4cf304 |
--- /dev/null |
+++ b/Source/core/dom/DOMPoint.idl |
@@ -0,0 +1,28 @@ |
+// 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, |
+ // FIXME: How can we pass arguments to constructor? |
zino
2014/07/17 13:54:30
Question #1: How can we use multiple constructor (
haraken
2014/07/17 15:01:58
A short answer is that constructors are not yet im
|
+ // Constructor(optional Dictionary point), |
+ // Constructor(unrestricted double x, unrestricted double y, |
+ // optional unrestricted double z = 0, optional unrestricted double w = 1), |
+ RuntimeEnabled=GeometryInterface, |
+] interface DOMPoint : DOMPointReadOnly { |
+ [ImplementedInPrivateScript] inherit attribute unrestricted double x; |
haraken
2014/07/17 15:01:58
Before discussing Blink-in-JS, 'inherit attribute'
|
+ [ImplementedInPrivateScript] inherit attribute unrestricted double y; |
+ [ImplementedInPrivateScript] inherit attribute unrestricted double z; |
+ [ImplementedInPrivateScript] inherit attribute unrestricted double w; |
+}; |
+ |
+ |