| 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 12 matching lines...) Expand all Loading... |
| 23 ExceptionState&); | 23 ExceptionState&); |
| 24 // TODO(fserb): double check those two bellow are needed: | 24 // TODO(fserb): double check those two bellow are needed: |
| 25 static DOMMatrix* Create(DOMMatrixReadOnly*, | 25 static DOMMatrix* Create(DOMMatrixReadOnly*, |
| 26 ExceptionState& = ASSERT_NO_EXCEPTION); | 26 ExceptionState& = ASSERT_NO_EXCEPTION); |
| 27 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); | 27 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); |
| 28 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, | 28 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, |
| 29 ExceptionState&); | 29 ExceptionState&); |
| 30 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>, | 30 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>, |
| 31 ExceptionState&); | 31 ExceptionState&); |
| 32 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); | 32 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); |
| 33 static DOMMatrix* CreateForSerialization(double[], int size); |
| 33 | 34 |
| 34 void setA(double value) { matrix_->SetM11(value); } | 35 void setA(double value) { matrix_->SetM11(value); } |
| 35 void setB(double value) { matrix_->SetM12(value); } | 36 void setB(double value) { matrix_->SetM12(value); } |
| 36 void setC(double value) { matrix_->SetM21(value); } | 37 void setC(double value) { matrix_->SetM21(value); } |
| 37 void setD(double value) { matrix_->SetM22(value); } | 38 void setD(double value) { matrix_->SetM22(value); } |
| 38 void setE(double value) { matrix_->SetM41(value); } | 39 void setE(double value) { matrix_->SetM41(value); } |
| 39 void setF(double value) { matrix_->SetM42(value); } | 40 void setF(double value) { matrix_->SetM42(value); } |
| 40 | 41 |
| 41 void setM11(double value) { matrix_->SetM11(value); } | 42 void setM11(double value) { matrix_->SetM11(value); } |
| 42 void setM12(double value) { matrix_->SetM12(value); } | 43 void setM12(double value) { matrix_->SetM12(value); } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |