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