| 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 [ | 5 [ |
| 6 GarbageCollected, | 6 GarbageCollected, |
| 7 NotScriptWrappable, |
| 7 RuntimeEnabled=GeometryInterfaces, | 8 RuntimeEnabled=GeometryInterfaces, |
| 8 ] interface DOMMatrixReadOnly { | 9 ] interface DOMMatrixReadOnly { |
| 9 // These attributes are simple aliases for certain elements of the 4x4 matri
x | 10 // These attributes are simple aliases for certain elements of the 4x4 matri
x |
| 10 readonly attribute unrestricted double a; | 11 readonly attribute unrestricted double a; |
| 11 readonly attribute unrestricted double b; | 12 readonly attribute unrestricted double b; |
| 12 readonly attribute unrestricted double c; | 13 readonly attribute unrestricted double c; |
| 13 readonly attribute unrestricted double d; | 14 readonly attribute unrestricted double d; |
| 14 readonly attribute unrestricted double e; | 15 readonly attribute unrestricted double e; |
| 15 readonly attribute unrestricted double f; | 16 readonly attribute unrestricted double f; |
| 16 | 17 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 readonly attribute unrestricted double m34; | 29 readonly attribute unrestricted double m34; |
| 29 readonly attribute unrestricted double m41; | 30 readonly attribute unrestricted double m41; |
| 30 readonly attribute unrestricted double m42; | 31 readonly attribute unrestricted double m42; |
| 31 readonly attribute unrestricted double m43; | 32 readonly attribute unrestricted double m43; |
| 32 readonly attribute unrestricted double m44; | 33 readonly attribute unrestricted double m44; |
| 33 | 34 |
| 34 readonly attribute boolean is2D; | 35 readonly attribute boolean is2D; |
| 35 readonly attribute boolean isIdentity; | 36 readonly attribute boolean isIdentity; |
| 36 | 37 |
| 37 // FIXME: Should implement some methods (See: crbug.com/388780) | 38 // FIXME: Should implement some methods (See: crbug.com/388780) |
| 39 // Immutable transform methods |
| 40 DOMMatrix multiply(DOMMatrix other); |
| 41 DOMMatrix translate(unrestricted double tx, |
| 42 unrestricted double ty, |
| 43 optional unrestricted double tz = 0); |
| 44 DOMMatrix scale(unrestricted double scale, |
| 45 optional unrestricted double ox = 0, |
| 46 optional unrestricted double oy = 0); |
| 47 DOMMatrix scale3d(unrestricted double scale, |
| 48 optional unrestricted double ox = 0, |
| 49 optional unrestricted double oy = 0, |
| 50 optional unrestricted double oz = 0); |
| 51 DOMMatrix scaleNonUniform(unrestricted double sx, |
| 52 optional unrestricted double sy = 1, |
| 53 optional unrestricted double sz = 1, |
| 54 optional unrestricted double ox = 0, |
| 55 optional unrestricted double oy = 0, |
| 56 optional unrestricted double oz = 0); |
| 57 Float32Array toFloat32Array(); |
| 58 Float64Array toFloat64Array(); |
| 38 }; | 59 }; |
| OLD | NEW |