| 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/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "core/dom/DOMTypedArray.h" | 10 #include "core/dom/DOMTypedArray.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&); | 59 DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&); |
| 60 DOMMatrix* translate(double tx, double ty, double tz = 0); | 60 DOMMatrix* translate(double tx, double ty, double tz = 0); |
| 61 DOMMatrix* scale(double sx = 1); | 61 DOMMatrix* scale(double sx = 1); |
| 62 DOMMatrix* scale(double sx, | 62 DOMMatrix* scale(double sx, |
| 63 double sy, | 63 double sy, |
| 64 double sz = 1, | 64 double sz = 1, |
| 65 double ox = 0, | 65 double ox = 0, |
| 66 double oy = 0, | 66 double oy = 0, |
| 67 double oz = 0); | 67 double oz = 0); |
| 68 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0); | 68 DOMMatrix* scale3d(double scale = 1, |
| 69 double ox = 0, |
| 70 double oy = 0, |
| 71 double oz = 0); |
| 69 DOMMatrix* rotate(double rotX); | 72 DOMMatrix* rotate(double rotX); |
| 70 DOMMatrix* rotate(double rotX, double rotY); | 73 DOMMatrix* rotate(double rotX, double rotY); |
| 71 DOMMatrix* rotate(double rotX, double rotY, double rotZ); | 74 DOMMatrix* rotate(double rotX, double rotY, double rotZ); |
| 72 DOMMatrix* rotateFromVector(double x, double y); | 75 DOMMatrix* rotateFromVector(double x, double y); |
| 73 DOMMatrix* rotateAxisAngle(double x = 0, | 76 DOMMatrix* rotateAxisAngle(double x = 0, |
| 74 double y = 0, | 77 double y = 0, |
| 75 double z = 0, | 78 double z = 0, |
| 76 double angle = 0); | 79 double angle = 0); |
| 77 DOMMatrix* skewX(double sx); | 80 DOMMatrix* skewX(double sx); |
| 78 DOMMatrix* skewY(double sy); | 81 DOMMatrix* skewY(double sy); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr | 119 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr |
| 117 // to allocate TransformationMatrix on PartitionAlloc. | 120 // to allocate TransformationMatrix on PartitionAlloc. |
| 118 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. | 121 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. |
| 119 std::unique_ptr<TransformationMatrix> m_matrix; | 122 std::unique_ptr<TransformationMatrix> m_matrix; |
| 120 bool m_is2D; | 123 bool m_is2D; |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace blink | 126 } // namespace blink |
| 124 | 127 |
| 125 #endif | 128 #endif |
| OLD | NEW |