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 #ifndef DOMMatrix_h | 5 #ifndef DOMMatrix_h |
6 #define DOMMatrix_h | 6 #define DOMMatrix_h |
7 | 7 |
8 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 8 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
9 #include "core/dom/DOMMatrixInit.h" | 9 #include "core/dom/DOMMatrixInit.h" |
10 #include "core/dom/DOMMatrixReadOnly.h" | 10 #include "core/dom/DOMMatrixReadOnly.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 setIs2D(!value); | 74 setIs2D(!value); |
75 } | 75 } |
76 void setM44(double value) { | 76 void setM44(double value) { |
77 m_matrix->setM44(value); | 77 m_matrix->setM44(value); |
78 setIs2D(value != 1); | 78 setIs2D(value != 1); |
79 } | 79 } |
80 | 80 |
81 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); | 81 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); |
82 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); | 82 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); |
83 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); | 83 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); |
84 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0); | 84 DOMMatrix* scaleSelf(double sx = 1); |
| 85 DOMMatrix* scaleSelf(double sx, |
| 86 double sy, |
| 87 double sz = 1, |
| 88 double ox = 0, |
| 89 double oy = 0, |
| 90 double oz = 0); |
85 DOMMatrix* scale3dSelf(double scale, | 91 DOMMatrix* scale3dSelf(double scale, |
86 double ox = 0, | 92 double ox = 0, |
87 double oy = 0, | 93 double oy = 0, |
88 double oz = 0); | 94 double oz = 0); |
89 DOMMatrix* scaleNonUniformSelf(double sx, | |
90 double sy = 1, | |
91 double sz = 1, | |
92 double ox = 0, | |
93 double oy = 0, | |
94 double oz = 0); | |
95 DOMMatrix* skewXSelf(double sx = 0); | 95 DOMMatrix* skewXSelf(double sx = 0); |
96 DOMMatrix* skewYSelf(double sy = 0); | 96 DOMMatrix* skewYSelf(double sy = 0); |
97 DOMMatrix* invertSelf(); | 97 DOMMatrix* invertSelf(); |
98 | 98 |
99 private: | 99 private: |
100 DOMMatrix(const TransformationMatrix&, bool is2D = true); | 100 DOMMatrix(const TransformationMatrix&, bool is2D = true); |
101 template <typename T> | 101 template <typename T> |
102 DOMMatrix(T sequence, int size); | 102 DOMMatrix(T sequence, int size); |
103 | 103 |
104 void setIs2D(bool value); | 104 void setIs2D(bool value); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace blink | 107 } // namespace blink |
108 | 108 |
109 #endif | 109 #endif |
OLD | NEW |