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

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

Issue 2283363003: GeometryInterface: Add DOMMatrixInit and fromMatrix(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 3 months 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
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 // 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 fromMatrix(optional DO MMatrixInit other);
14
13 // These attributes are simple aliases for certain elements of the 4x4 matri x 15 // These attributes are simple aliases for certain elements of the 4x4 matri x
14 readonly attribute unrestricted double a; 16 readonly attribute unrestricted double a;
15 readonly attribute unrestricted double b; 17 readonly attribute unrestricted double b;
16 readonly attribute unrestricted double c; 18 readonly attribute unrestricted double c;
17 readonly attribute unrestricted double d; 19 readonly attribute unrestricted double d;
18 readonly attribute unrestricted double e; 20 readonly attribute unrestricted double e;
19 readonly attribute unrestricted double f; 21 readonly attribute unrestricted double f;
20 22
21 readonly attribute unrestricted double m11; 23 readonly attribute unrestricted double m11;
22 readonly attribute unrestricted double m12; 24 readonly attribute unrestricted double m12;
(...skipping 26 matching lines...) Expand all
49 DOMMatrix scale3d(unrestricted double scale, 51 DOMMatrix scale3d(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 scaleNonUniform(unrestricted double scaleX, 55 DOMMatrix scaleNonUniform(unrestricted double scaleX,
54 optional unrestricted double scaleY = 1, 56 optional unrestricted double scaleY = 1,
55 optional unrestricted double scaleZn = 1, 57 optional unrestricted double scaleZn = 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 multiply(DOMMatrix other);
60 DOMMatrix skewX(optional unrestricted double sx = 0); 61 DOMMatrix skewX(optional unrestricted double sx = 0);
61 DOMMatrix skewY(optional unrestricted double sy = 0); 62 DOMMatrix skewY(optional unrestricted double sy = 0);
63 [RaisesException] DOMMatrix multiply(optional DOMMatrixInit other);
62 DOMMatrix flipX(); 64 DOMMatrix flipX();
63 DOMMatrix flipY(); 65 DOMMatrix flipY();
64 DOMMatrix inverse(); 66 DOMMatrix inverse();
65 67
66 Float32Array toFloat32Array(); 68 Float32Array toFloat32Array();
67 Float64Array toFloat64Array(); 69 Float64Array toFloat64Array();
68 stringifier; 70 stringifier;
69 }; 71 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698