OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // FIXME: Blink doesn't currently support dictionary definitions. | |
6 // For now, we can use Dictionary interface. See http://crbug.com/321462. | |
7 // dictionary DOMPointInit { | |
8 // unrestricted double x = 0; | |
9 // unrestricted double y = 0; | |
10 // unrestricted double z = 0; | |
11 // unrestricted double w = 1; | |
12 // }; | |
13 | |
14 [ | 5 [ |
15 Constructor(optional Dictionary point), | 6 Constructor(optional DOMPointInit point), |
16 Constructor(unrestricted double x, unrestricted double y, | 7 Constructor(unrestricted double x, unrestricted double y, |
17 optional unrestricted double z = 0, optional unrestricted double
w = 1), | 8 optional unrestricted double z = 0, optional unrestricted double
w = 1), |
18 RuntimeEnabled=GeometryInterfaces, | 9 RuntimeEnabled=GeometryInterfaces, |
19 ] interface DOMPoint : DOMPointReadOnly { | 10 ] interface DOMPoint : DOMPointReadOnly { |
20 attribute unrestricted double x; | 11 attribute unrestricted double x; |
21 attribute unrestricted double y; | 12 attribute unrestricted double y; |
22 attribute unrestricted double z; | 13 attribute unrestricted double z; |
23 attribute unrestricted double w; | 14 attribute unrestricted double w; |
24 }; | 15 }; |
OLD | NEW |