| 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 DOMMatrixReadOnly_h | 5 #ifndef DOMMatrixReadOnly_h |
| 6 #define DOMMatrixReadOnly_h | 6 #define DOMMatrixReadOnly_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/transforms/TransformationMatrix.h" | 10 #include "platform/transforms/TransformationMatrix.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 double m44() const { return m_matrix.m44(); } | 40 double m44() const { return m_matrix.m44(); } |
| 41 | 41 |
| 42 bool is2D() const; | 42 bool is2D() const; |
| 43 bool isIdentity() const; | 43 bool isIdentity() const; |
| 44 | 44 |
| 45 DOMMatrix* translate(double tx, double ty, double tz = 0); | 45 DOMMatrix* translate(double tx, double ty, double tz = 0); |
| 46 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); | 46 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); |
| 47 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0
); | 47 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0
); |
| 48 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1, | 48 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1, |
| 49 double ox = 0, double oy = 0, double oz = 0); | 49 double ox = 0, double oy = 0, double oz = 0); |
| 50 DOMMatrix* rotate(double angle, double ox = 0, double oy = 0); |
| 51 DOMMatrix* rotateFromVector(double x, double y); |
| 52 DOMMatrix* rotateAxisAngle(double x, double y, double z, double angle); |
| 50 | 53 |
| 51 const TransformationMatrix& matrix() const { return m_matrix; } | 54 const TransformationMatrix& matrix() const { return m_matrix; } |
| 52 | 55 |
| 53 void trace(Visitor*) { } | 56 void trace(Visitor*) { } |
| 54 | 57 |
| 55 protected: | 58 protected: |
| 56 TransformationMatrix m_matrix; | 59 TransformationMatrix m_matrix; |
| 57 bool m_is2D; | 60 bool m_is2D; |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } // namespace blink | 63 } // namespace blink |
| 61 | 64 |
| 62 #endif | 65 #endif |
| OLD | NEW |