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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 m_matrix->setM43(value); | 73 m_matrix->setM43(value); |
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 = 0, double ty = 0, double tz = 0); |
84 DOMMatrix* scaleSelf(double sx = 1); | 84 DOMMatrix* scaleSelf(double sx = 1); |
85 DOMMatrix* scaleSelf(double sx, | 85 DOMMatrix* scaleSelf(double sx, |
86 double sy, | 86 double sy, |
87 double sz = 1, | 87 double sz = 1, |
88 double ox = 0, | 88 double ox = 0, |
89 double oy = 0, | 89 double oy = 0, |
90 double oz = 0); | 90 double oz = 0); |
91 DOMMatrix* scale3dSelf(double scale, | 91 DOMMatrix* scale3dSelf(double scale, |
92 double ox = 0, | 92 double ox = 0, |
93 double oy = 0, | 93 double oy = 0, |
(...skipping 17 matching lines...) Expand all Loading... |
111 template <typename T> | 111 template <typename T> |
112 DOMMatrix(T sequence, int size); | 112 DOMMatrix(T sequence, int size); |
113 | 113 |
114 void setIs2D(bool value); | 114 void setIs2D(bool value); |
115 void setNAN(); | 115 void setNAN(); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace blink | 118 } // namespace blink |
119 | 119 |
120 #endif | 120 #endif |
OLD | NEW |