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/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" | 9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" |
10 #include "core/dom/ArrayBufferViewHelpers.h" | 10 #include "core/dom/ArrayBufferViewHelpers.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void setM43(double value) { | 79 void setM43(double value) { |
80 matrix_->SetM43(value); | 80 matrix_->SetM43(value); |
81 SetIs2D(!value); | 81 SetIs2D(!value); |
82 } | 82 } |
83 void setM44(double value) { | 83 void setM44(double value) { |
84 matrix_->SetM44(value); | 84 matrix_->SetM44(value); |
85 SetIs2D(value != 1); | 85 SetIs2D(value != 1); |
86 } | 86 } |
87 | 87 |
88 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); | 88 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); |
| 89 DOMMatrix* multiplySelf(DOMMatrix* other_matrix); |
89 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); | 90 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); |
90 DOMMatrix* translateSelf(double tx = 0, double ty = 0, double tz = 0); | 91 DOMMatrix* translateSelf(double tx = 0, double ty = 0, double tz = 0); |
91 DOMMatrix* scaleSelf(double sx = 1); | 92 DOMMatrix* scaleSelf(double sx = 1); |
92 DOMMatrix* scaleSelf(double sx, | 93 DOMMatrix* scaleSelf(double sx, |
93 double sy, | 94 double sy, |
94 double sz = 1, | 95 double sz = 1, |
95 double ox = 0, | 96 double ox = 0, |
96 double oy = 0, | 97 double oy = 0, |
97 double oz = 0); | 98 double oz = 0); |
98 DOMMatrix* scale3dSelf(double scale = 1, | 99 DOMMatrix* scale3dSelf(double scale = 1, |
(...skipping 19 matching lines...) Expand all Loading... |
118 template <typename T> | 119 template <typename T> |
119 DOMMatrix(T sequence, int size); | 120 DOMMatrix(T sequence, int size); |
120 | 121 |
121 void SetIs2D(bool value); | 122 void SetIs2D(bool value); |
122 void SetNAN(); | 123 void SetNAN(); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace blink | 126 } // namespace blink |
126 | 127 |
127 #endif | 128 #endif |
OLD | NEW |