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 <memory> | 8 #include <memory> |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" | 10 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 DOMMatrix* skewY(double sy); | 90 DOMMatrix* skewY(double sy); |
91 DOMMatrix* flipX(); | 91 DOMMatrix* flipX(); |
92 DOMMatrix* flipY(); | 92 DOMMatrix* flipY(); |
93 DOMMatrix* inverse(); | 93 DOMMatrix* inverse(); |
94 | 94 |
95 DOMPoint* transformPoint(const DOMPointInit&); | 95 DOMPoint* transformPoint(const DOMPointInit&); |
96 | 96 |
97 NotShared<DOMFloat32Array> toFloat32Array() const; | 97 NotShared<DOMFloat32Array> toFloat32Array() const; |
98 NotShared<DOMFloat64Array> toFloat64Array() const; | 98 NotShared<DOMFloat64Array> toFloat64Array() const; |
99 | 99 |
100 const String toString() const; | 100 const String toString(ExceptionState&) const; |
101 | 101 |
102 ScriptValue toJSONForBinding(ScriptState*) const; | 102 ScriptValue toJSONForBinding(ScriptState*) const; |
103 | 103 |
104 const TransformationMatrix& Matrix() const { return *matrix_; } | 104 const TransformationMatrix& Matrix() const { return *matrix_; } |
105 | 105 |
106 DEFINE_INLINE_TRACE() {} | 106 DEFINE_INLINE_TRACE() {} |
107 | 107 |
108 protected: | 108 protected: |
109 DOMMatrixReadOnly() {} | 109 DOMMatrixReadOnly() {} |
110 DOMMatrixReadOnly(const String&, ExceptionState&); | 110 DOMMatrixReadOnly(const String&, ExceptionState&); |
(...skipping 25 matching lines...) Expand all Loading... |
136 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr | 136 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr |
137 // to allocate TransformationMatrix on PartitionAlloc. | 137 // to allocate TransformationMatrix on PartitionAlloc. |
138 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. | 138 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. |
139 std::unique_ptr<TransformationMatrix> matrix_; | 139 std::unique_ptr<TransformationMatrix> matrix_; |
140 bool is2d_; | 140 bool is2d_; |
141 }; | 141 }; |
142 | 142 |
143 } // namespace blink | 143 } // namespace blink |
144 | 144 |
145 #endif | 145 #endif |
OLD | NEW |