Chromium Code Reviews| 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 "core/dom/DOMMatrixInit.h" | 9 #include "core/dom/DOMMatrixInit.h" |
| 9 #include "core/dom/DOMMatrixReadOnly.h" | 10 #include "core/dom/DOMMatrixReadOnly.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { | 14 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { |
| 14 DEFINE_WRAPPERTYPEINFO(); | 15 DEFINE_WRAPPERTYPEINFO(); |
| 15 public: | 16 public: |
| 16 static DOMMatrix* create(); | 17 static DOMMatrix* create(ExceptionState&); |
| 17 static DOMMatrix* create(DOMMatrixReadOnly*); | 18 static DOMMatrix* create(DOMMatrixReadOnly*, ExceptionState& = ASSERT_NO_EXC EPTION); |
|
zino
2016/09/27 17:53:33
nit: Do we need this default parameter?
Hwanseung Lee
2016/09/27 18:06:28
this function invoked many other function(ex. flip
zino
2016/09/28 16:20:49
Oh, I didn't know. good to me.
| |
| 18 static DOMMatrix* create(const SkMatrix44&); | 19 static DOMMatrix* create(const SkMatrix44&, ExceptionState&); |
| 20 static DOMMatrix* create(Vector<double>, ExceptionState&); | |
| 19 static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&); | 21 static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&); |
| 20 static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&); | 22 static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&); |
| 21 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); | 23 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); |
| 22 | 24 |
| 23 void setA(double value) { m_matrix->setM11(value); } | 25 void setA(double value) { m_matrix->setM11(value); } |
| 24 void setB(double value) { m_matrix->setM12(value); } | 26 void setB(double value) { m_matrix->setM12(value); } |
| 25 void setC(double value) { m_matrix->setM21(value); } | 27 void setC(double value) { m_matrix->setM21(value); } |
| 26 void setD(double value) { m_matrix->setM22(value); } | 28 void setD(double value) { m_matrix->setM22(value); } |
| 27 void setE(double value) { m_matrix->setM41(value); } | 29 void setE(double value) { m_matrix->setM41(value); } |
| 28 void setF(double value) { m_matrix->setM42(value); } | 30 void setF(double value) { m_matrix->setM42(value); } |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 59 DOMMatrix(const TransformationMatrix&, bool is2D = true); | 61 DOMMatrix(const TransformationMatrix&, bool is2D = true); |
| 60 template <typename T> | 62 template <typename T> |
| 61 DOMMatrix(T sequence, int size); | 63 DOMMatrix(T sequence, int size); |
| 62 | 64 |
| 63 void setIs2D(bool value); | 65 void setIs2D(bool value); |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 } // namespace blink | 68 } // namespace blink |
| 67 | 69 |
| 68 #endif | 70 #endif |
| OLD | NEW |