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