Chromium Code Reviews| 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, | 8 Constructor, |
| 9 Constructor(DOMMatrixReadOnly other), | 9 Constructor(DOMMatrixReadOnly other), |
| 10 // FIXME: Should implement more constructors (See: crbug.com/388780) | 10 // FIXME: Should implement more constructors (See: crbug.com/388780) |
| 11 // FIXME: Exposed=(Window,Worker) | 11 // FIXME: Exposed=(Window,Worker) |
| 12 RuntimeEnabled=GeometryInterfaces, | 12 RuntimeEnabled=GeometryInterfaces, |
| 13 ] interface DOMMatrix : DOMMatrixReadOnly { | 13 ] interface DOMMatrix : DOMMatrixReadOnly { |
| 14 [RaisesException, NewObject] static DOMMatrix fromMatrix(optional DOMMatrixI nit other); | |
| 15 | |
| 14 // These attributes are simple aliases for certain elements of the 4x4 matri x | 16 // These attributes are simple aliases for certain elements of the 4x4 matri x |
| 15 inherit attribute unrestricted double a; | 17 inherit attribute unrestricted double a; |
| 16 inherit attribute unrestricted double b; | 18 inherit attribute unrestricted double b; |
| 17 inherit attribute unrestricted double c; | 19 inherit attribute unrestricted double c; |
| 18 inherit attribute unrestricted double d; | 20 inherit attribute unrestricted double d; |
| 19 inherit attribute unrestricted double e; | 21 inherit attribute unrestricted double e; |
| 20 inherit attribute unrestricted double f; | 22 inherit attribute unrestricted double f; |
| 21 | 23 |
| 22 inherit attribute unrestricted double m11; | 24 inherit attribute unrestricted double m11; |
| 23 inherit attribute unrestricted double m12; | 25 inherit attribute unrestricted double m12; |
| 24 inherit attribute unrestricted double m13; | 26 inherit attribute unrestricted double m13; |
| 25 inherit attribute unrestricted double m14; | 27 inherit attribute unrestricted double m14; |
| 26 inherit attribute unrestricted double m21; | 28 inherit attribute unrestricted double m21; |
| 27 inherit attribute unrestricted double m22; | 29 inherit attribute unrestricted double m22; |
| 28 inherit attribute unrestricted double m23; | 30 inherit attribute unrestricted double m23; |
| 29 inherit attribute unrestricted double m24; | 31 inherit attribute unrestricted double m24; |
| 30 inherit attribute unrestricted double m31; | 32 inherit attribute unrestricted double m31; |
| 31 inherit attribute unrestricted double m32; | 33 inherit attribute unrestricted double m32; |
| 32 inherit attribute unrestricted double m33; | 34 inherit attribute unrestricted double m33; |
| 33 inherit attribute unrestricted double m34; | 35 inherit attribute unrestricted double m34; |
| 34 inherit attribute unrestricted double m41; | 36 inherit attribute unrestricted double m41; |
| 35 inherit attribute unrestricted double m42; | 37 inherit attribute unrestricted double m42; |
| 36 inherit attribute unrestricted double m43; | 38 inherit attribute unrestricted double m43; |
| 37 inherit attribute unrestricted double m44; | 39 inherit attribute unrestricted double m44; |
| 38 | 40 |
| 39 // FIXME: Should implement some methods (See: crbug.com/388780) | 41 // FIXME: Should implement some methods (See: crbug.com/388780) |
|
dominicc (has gone to gerrit)
2016/09/12 05:19:43
Might be nice to update add a comment to this bug
zino
2016/09/12 09:12:42
Done.
| |
| 40 // Mutable transform methods | 42 // Mutable transform methods |
| 41 DOMMatrix multiplySelf(DOMMatrix other); | 43 [RaisesException] DOMMatrix multiplySelf(optional DOMMatrixInit other); |
| 42 DOMMatrix preMultiplySelf(DOMMatrix other); | 44 [RaisesException] DOMMatrix preMultiplySelf(optional DOMMatrixInit other); |
| 43 DOMMatrix translateSelf(unrestricted double tx, | 45 DOMMatrix translateSelf(unrestricted double tx, |
| 44 unrestricted double ty, | 46 unrestricted double ty, |
| 45 optional unrestricted double tz = 0); | 47 optional unrestricted double tz = 0); |
| 46 DOMMatrix scaleSelf(unrestricted double scale, | 48 DOMMatrix scaleSelf(unrestricted double scale, |
| 47 optional unrestricted double originX = 0, | 49 optional unrestricted double originX = 0, |
| 48 optional unrestricted double originY = 0); | 50 optional unrestricted double originY = 0); |
| 49 DOMMatrix scale3dSelf(unrestricted double scale, | 51 DOMMatrix scale3dSelf(unrestricted double scale, |
| 50 optional unrestricted double originX = 0, | 52 optional unrestricted double originX = 0, |
| 51 optional unrestricted double originY = 0, | 53 optional unrestricted double originY = 0, |
| 52 optional unrestricted double originZ = 0); | 54 optional unrestricted double originZ = 0); |
| 53 DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, | 55 DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, |
| 54 optional unrestricted double scaleY = 1, | 56 optional unrestricted double scaleY = 1, |
| 55 optional unrestricted double scaleZ = 1, | 57 optional unrestricted double scaleZ = 1, |
| 56 optional unrestricted double originX = 0, | 58 optional unrestricted double originX = 0, |
| 57 optional unrestricted double originY = 0, | 59 optional unrestricted double originY = 0, |
| 58 optional unrestricted double originZ = 0); | 60 optional unrestricted double originZ = 0); |
| 59 DOMMatrix skewXSelf(optional unrestricted double sx = 0); | 61 DOMMatrix skewXSelf(optional unrestricted double sx = 0); |
| 60 DOMMatrix skewYSelf(optional unrestricted double sy = 0); | 62 DOMMatrix skewYSelf(optional unrestricted double sy = 0); |
| 61 DOMMatrix invertSelf(); | 63 DOMMatrix invertSelf(); |
| 62 }; | 64 }; |
| OLD | NEW |