| 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 // http://dev.w3.org/fxtf/geometry/#DOMMatrix | 5 // http://dev.w3.org/fxtf/geometry/#DOMMatrix |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 Constructor(sequence<unrestricted double> numberSequence), | 8 Constructor(sequence<unrestricted double> numberSequence), |
| 9 RaisesException=Constructor, | 9 RaisesException=Constructor, |
| 10 // FIXME: Exposed=(Window,Worker) | 10 // FIXME: Exposed=(Window,Worker) |
| 11 RuntimeEnabled=GeometryInterfaces, | 11 RuntimeEnabled=GeometryInterfaces, |
| 12 ] interface DOMMatrixReadOnly { | 12 ] interface DOMMatrixReadOnly { |
| 13 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat32Array(Float
32Array array32); | 13 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat32Array(Float
32Array array32); |
| 14 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat64Array(Float
64Array array64); | 14 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat64Array(Float
64Array array64); |
| 15 [RaisesException, NewObject] static DOMMatrixReadOnly fromMatrix(optional DO
MMatrixInit other); |
| 15 | 16 |
| 16 // These attributes are simple aliases for certain elements of the 4x4 matri
x | 17 // These attributes are simple aliases for certain elements of the 4x4 matri
x |
| 17 readonly attribute unrestricted double a; | 18 readonly attribute unrestricted double a; |
| 18 readonly attribute unrestricted double b; | 19 readonly attribute unrestricted double b; |
| 19 readonly attribute unrestricted double c; | 20 readonly attribute unrestricted double c; |
| 20 readonly attribute unrestricted double d; | 21 readonly attribute unrestricted double d; |
| 21 readonly attribute unrestricted double e; | 22 readonly attribute unrestricted double e; |
| 22 readonly attribute unrestricted double f; | 23 readonly attribute unrestricted double f; |
| 23 | 24 |
| 24 readonly attribute unrestricted double m11; | 25 readonly attribute unrestricted double m11; |
| 25 readonly attribute unrestricted double m12; | 26 readonly attribute unrestricted double m12; |
| 26 readonly attribute unrestricted double m13; | 27 readonly attribute unrestricted double m13; |
| 27 readonly attribute unrestricted double m14; | 28 readonly attribute unrestricted double m14; |
| 28 readonly attribute unrestricted double m21; | 29 readonly attribute unrestricted double m21; |
| 29 readonly attribute unrestricted double m22; | 30 readonly attribute unrestricted double m22; |
| 30 readonly attribute unrestricted double m23; | 31 readonly attribute unrestricted double m23; |
| 31 readonly attribute unrestricted double m24; | 32 readonly attribute unrestricted double m24; |
| 32 readonly attribute unrestricted double m31; | 33 readonly attribute unrestricted double m31; |
| 33 readonly attribute unrestricted double m32; | 34 readonly attribute unrestricted double m32; |
| 34 readonly attribute unrestricted double m33; | 35 readonly attribute unrestricted double m33; |
| 35 readonly attribute unrestricted double m34; | 36 readonly attribute unrestricted double m34; |
| 36 readonly attribute unrestricted double m41; | 37 readonly attribute unrestricted double m41; |
| 37 readonly attribute unrestricted double m42; | 38 readonly attribute unrestricted double m42; |
| 38 readonly attribute unrestricted double m43; | 39 readonly attribute unrestricted double m43; |
| 39 readonly attribute unrestricted double m44; | 40 readonly attribute unrestricted double m44; |
| 40 | 41 |
| 41 readonly attribute boolean is2D; | 42 readonly attribute boolean is2D; |
| 42 readonly attribute boolean isIdentity; | 43 readonly attribute boolean isIdentity; |
| 43 | 44 |
| 44 // FIXME: Should implement some methods (See: crbug.com/388780) | 45 // TODO(zino): Should implement rotate() method (See: crbug.com/645878) |
| 46 // TODO(zino): Should implement rotateFromVector() method (See: crbug.com/64
5882) |
| 47 // TODO(zino): Should implement rotateAxisAngle() method (See: crbug.com/645
883) |
| 48 // TODO(zino): Should implement transformPoint() method (See: crbug.com/6458
85) |
| 49 // TODO(zino): Should remove scaleNonUniform() method (See: crbug.com/645887
) |
| 45 // Immutable transform methods | 50 // Immutable transform methods |
| 46 DOMMatrix translate(unrestricted double tx, | 51 DOMMatrix translate(unrestricted double tx, |
| 47 unrestricted double ty, | 52 unrestricted double ty, |
| 48 optional unrestricted double tz = 0); | 53 optional unrestricted double tz = 0); |
| 49 DOMMatrix scale(unrestricted double scale, | 54 DOMMatrix scale(unrestricted double scale, |
| 50 optional unrestricted double originX = 0, | 55 optional unrestricted double originX = 0, |
| 51 optional unrestricted double originY = 0); | 56 optional unrestricted double originY = 0); |
| 52 DOMMatrix scale3d(unrestricted double scale, | 57 DOMMatrix scale3d(unrestricted double scale, |
| 53 optional unrestricted double originX = 0, | 58 optional unrestricted double originX = 0, |
| 54 optional unrestricted double originY = 0, | 59 optional unrestricted double originY = 0, |
| 55 optional unrestricted double originZ = 0); | 60 optional unrestricted double originZ = 0); |
| 56 DOMMatrix scaleNonUniform(unrestricted double scaleX, | 61 DOMMatrix scaleNonUniform(unrestricted double scaleX, |
| 57 optional unrestricted double scaleY = 1, | 62 optional unrestricted double scaleY = 1, |
| 58 optional unrestricted double scaleZn = 1, | 63 optional unrestricted double scaleZn = 1, |
| 59 optional unrestricted double originX = 0, | 64 optional unrestricted double originX = 0, |
| 60 optional unrestricted double originY = 0, | 65 optional unrestricted double originY = 0, |
| 61 optional unrestricted double originZ = 0); | 66 optional unrestricted double originZ = 0); |
| 62 DOMMatrix multiply(DOMMatrix other); | |
| 63 DOMMatrix skewX(optional unrestricted double sx = 0); | 67 DOMMatrix skewX(optional unrestricted double sx = 0); |
| 64 DOMMatrix skewY(optional unrestricted double sy = 0); | 68 DOMMatrix skewY(optional unrestricted double sy = 0); |
| 69 [RaisesException] DOMMatrix multiply(optional DOMMatrixInit other); |
| 65 DOMMatrix flipX(); | 70 DOMMatrix flipX(); |
| 66 DOMMatrix flipY(); | 71 DOMMatrix flipY(); |
| 67 DOMMatrix inverse(); | 72 DOMMatrix inverse(); |
| 68 | 73 |
| 69 Float32Array toFloat32Array(); | 74 Float32Array toFloat32Array(); |
| 70 Float64Array toFloat64Array(); | 75 Float64Array toFloat64Array(); |
| 71 stringifier; | 76 stringifier; |
| 72 }; | 77 }; |
| OLD | NEW |