Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.idl

Issue 2530273003: [GeometoryInterface] clean up DOMMatrix*.idl files. (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // https://dev.w3.org/fxtf/geometry/#DOMMatrix 5 // https://dev.w3.org/fxtf/geometry/#DOMMatrix
6 6
7 [ 7 [
8 Constructor, 8 Constructor,
9 Constructor(DOMString transformList), 9 Constructor(DOMString transformList),
10 Constructor(sequence<unrestricted double> numberSequence), 10 Constructor(sequence<unrestricted double> numberSequence),
11 RaisesException=Constructor, 11 RaisesException=Constructor,
12 // FIXME: Exposed=(Window,Worker) 12 // FIXME: Exposed=(Window,Worker)
13 RuntimeEnabled=GeometryInterfaces, 13 RuntimeEnabled=GeometryInterfaces,
14 ] interface DOMMatrixReadOnly { 14 ] interface DOMMatrixReadOnly {
15 [RaisesException, NewObject] static DOMMatrixReadOnly fromMatrix(optional DO MMatrixInit other);
15 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat32Array(Float 32Array array32); 16 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat32Array(Float 32Array array32);
16 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat64Array(Float 64Array array64); 17 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat64Array(Float 64Array array64);
17 [RaisesException, NewObject] static DOMMatrixReadOnly fromMatrix(optional DO MMatrixInit other);
18 18
19 // These attributes are simple aliases for certain elements of the 4x4 matri x 19 // These attributes are simple aliases for certain elements of the 4x4 matri x
20 readonly attribute unrestricted double a; 20 readonly attribute unrestricted double a;
21 readonly attribute unrestricted double b; 21 readonly attribute unrestricted double b;
22 readonly attribute unrestricted double c; 22 readonly attribute unrestricted double c;
23 readonly attribute unrestricted double d; 23 readonly attribute unrestricted double d;
24 readonly attribute unrestricted double e; 24 readonly attribute unrestricted double e;
25 readonly attribute unrestricted double f; 25 readonly attribute unrestricted double f;
26 26
27 readonly attribute unrestricted double m11; 27 readonly attribute unrestricted double m11;
28 readonly attribute unrestricted double m12; 28 readonly attribute unrestricted double m12;
29 readonly attribute unrestricted double m13; 29 readonly attribute unrestricted double m13;
30 readonly attribute unrestricted double m14; 30 readonly attribute unrestricted double m14;
31 readonly attribute unrestricted double m21; 31 readonly attribute unrestricted double m21;
32 readonly attribute unrestricted double m22; 32 readonly attribute unrestricted double m22;
33 readonly attribute unrestricted double m23; 33 readonly attribute unrestricted double m23;
34 readonly attribute unrestricted double m24; 34 readonly attribute unrestricted double m24;
35 readonly attribute unrestricted double m31; 35 readonly attribute unrestricted double m31;
36 readonly attribute unrestricted double m32; 36 readonly attribute unrestricted double m32;
37 readonly attribute unrestricted double m33; 37 readonly attribute unrestricted double m33;
38 readonly attribute unrestricted double m34; 38 readonly attribute unrestricted double m34;
39 readonly attribute unrestricted double m41; 39 readonly attribute unrestricted double m41;
40 readonly attribute unrestricted double m42; 40 readonly attribute unrestricted double m42;
41 readonly attribute unrestricted double m43; 41 readonly attribute unrestricted double m43;
42 readonly attribute unrestricted double m44; 42 readonly attribute unrestricted double m44;
43 43
44 readonly attribute boolean is2D; 44 readonly attribute boolean is2D;
45 readonly attribute boolean isIdentity; 45 readonly attribute boolean isIdentity;
46 46
47 // TODO(zino): Should implement transformPoint() method (See: crbug.com/6458 85)
48 // Immutable transform methods 47 // Immutable transform methods
49 DOMMatrix translate(optional unrestricted double tx = 0, 48 DOMMatrix translate(optional unrestricted double tx = 0,
50 optional unrestricted double ty = 0, 49 optional unrestricted double ty = 0,
51 optional unrestricted double tz = 0); 50 optional unrestricted double tz = 0);
52 DOMMatrix scale(optional unrestricted double scaleX = 1, 51 DOMMatrix scale(optional unrestricted double scaleX = 1,
53 optional unrestricted double scaleY, 52 optional unrestricted double scaleY,
54 optional unrestricted double scaleZ = 1, 53 optional unrestricted double scaleZ = 1,
55 optional unrestricted double originX = 0, 54 optional unrestricted double originX = 0,
56 optional unrestricted double originY = 0, 55 optional unrestricted double originY = 0,
57 optional unrestricted double originZ = 0); 56 optional unrestricted double originZ = 0);
(...skipping 11 matching lines...) Expand all
69 optional unrestricted double z = 0, 68 optional unrestricted double z = 0,
70 optional unrestricted double angle = 0); 69 optional unrestricted double angle = 0);
71 DOMMatrix skewX(optional unrestricted double sx = 0); 70 DOMMatrix skewX(optional unrestricted double sx = 0);
72 DOMMatrix skewY(optional unrestricted double sy = 0); 71 DOMMatrix skewY(optional unrestricted double sy = 0);
73 [RaisesException] DOMMatrix multiply(optional DOMMatrixInit other); 72 [RaisesException] DOMMatrix multiply(optional DOMMatrixInit other);
74 DOMMatrix flipX(); 73 DOMMatrix flipX();
75 DOMMatrix flipY(); 74 DOMMatrix flipY();
76 DOMMatrix inverse(); 75 DOMMatrix inverse();
77 76
78 DOMPoint transformPoint(optional DOMPointInit point); 77 DOMPoint transformPoint(optional DOMPointInit point);
79
80 Float32Array toFloat32Array(); 78 Float32Array toFloat32Array();
81 Float64Array toFloat64Array(); 79 Float64Array toFloat64Array();
82 stringifier; 80 stringifier;
83 serializer = {attribute}; 81 serializer = { attribute };
84 }; 82 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698