| 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 "core/dom/DOMMatrixReadOnly.h" | 8 #include "core/dom/DOMMatrixReadOnly.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class DOMMatrix : public DOMMatrixReadOnly { | 12 class DOMMatrix : public DOMMatrixReadOnly { |
| 13 DEFINE_WRAPPERTYPEINFO(); | 13 DEFINE_WRAPPERTYPEINFO(); |
| 14 public: | 14 public: |
| 15 static DOMMatrix* create(); | 15 static DOMMatrix* create(); |
| 16 static DOMMatrix* create(DOMMatrixReadOnly*); | 16 static DOMMatrix* create(DOMMatrixReadOnly*); |
| 17 static DOMMatrix* create(const SkMatrix44&); |
| 17 | 18 |
| 18 void setA(double value) { m_matrix->setM11(value); } | 19 void setA(double value) { m_matrix->setM11(value); } |
| 19 void setB(double value) { m_matrix->setM12(value); } | 20 void setB(double value) { m_matrix->setM12(value); } |
| 20 void setC(double value) { m_matrix->setM21(value); } | 21 void setC(double value) { m_matrix->setM21(value); } |
| 21 void setD(double value) { m_matrix->setM22(value); } | 22 void setD(double value) { m_matrix->setM22(value); } |
| 22 void setE(double value) { m_matrix->setM41(value); } | 23 void setE(double value) { m_matrix->setM41(value); } |
| 23 void setF(double value) { m_matrix->setM42(value); } | 24 void setF(double value) { m_matrix->setM42(value); } |
| 24 | 25 |
| 25 void setM11(double value) { m_matrix->setM11(value); } | 26 void setM11(double value) { m_matrix->setM11(value); } |
| 26 void setM12(double value) { m_matrix->setM12(value); } | 27 void setM12(double value) { m_matrix->setM12(value); } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 DOMMatrix(const TransformationMatrix&, bool is2D = true); | 52 DOMMatrix(const TransformationMatrix&, bool is2D = true); |
| 52 | 53 |
| 53 void setIs2D(bool value); | 54 void setIs2D(bool value); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace blink | 57 } // namespace blink |
| 57 | 58 |
| 58 #endif | 59 #endif |
| OLD | NEW |