Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 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 [ | |
| 15 Constructor, | |
| 16 // 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
| |
| 17 // Constructor(optional Dictionary point), | |
| 18 // Constructor(unrestricted double x, unrestricted double y, | |
| 19 // optional unrestricted double z = 0, optional unrestricted dou ble w = 1), | |
| 20 RuntimeEnabled=GeometryInterface, | |
| 21 ] interface DOMPoint : DOMPointReadOnly { | |
| 22 [ImplementedInPrivateScript] inherit attribute unrestricted double x; | |
|
haraken
2014/07/17 15:01:58
Before discussing Blink-in-JS, 'inherit attribute'
| |
| 23 [ImplementedInPrivateScript] inherit attribute unrestricted double y; | |
| 24 [ImplementedInPrivateScript] inherit attribute unrestricted double z; | |
| 25 [ImplementedInPrivateScript] inherit attribute unrestricted double w; | |
| 26 }; | |
| 27 | |
| 28 | |
| OLD | NEW |