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 "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" | 9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" |
10 #include "core/dom/ArrayBufferViewHelpers.h" | 10 #include "core/dom/ArrayBufferViewHelpers.h" |
11 #include "core/geometry/DOMMatrixInit.h" | 11 #include "core/geometry/DOMMatrixInit.h" |
12 #include "core/geometry/DOMMatrixReadOnly.h" | 12 #include "core/geometry/DOMMatrixReadOnly.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { | 16 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { |
17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
18 | 18 |
19 public: | 19 public: |
20 static DOMMatrix* Create(ExceptionState&); | 20 static DOMMatrix* Create(ExecutionContext*, ExceptionState&); |
21 static DOMMatrix* Create(StringOrUnrestrictedDoubleSequence&, | 21 static DOMMatrix* Create(ExecutionContext*, |
| 22 StringOrUnrestrictedDoubleSequence&, |
22 ExceptionState&); | 23 ExceptionState&); |
23 // TODO(fserb): double check those two bellow are needed: | 24 // TODO(fserb): double check those two bellow are needed: |
24 static DOMMatrix* Create(DOMMatrixReadOnly*, | 25 static DOMMatrix* Create(DOMMatrixReadOnly*, |
25 ExceptionState& = ASSERT_NO_EXCEPTION); | 26 ExceptionState& = ASSERT_NO_EXCEPTION); |
26 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); | 27 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); |
27 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, | 28 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, |
28 ExceptionState&); | 29 ExceptionState&); |
29 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>, | 30 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>, |
30 ExceptionState&); | 31 ExceptionState&); |
31 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); | 32 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 template <typename T> | 118 template <typename T> |
118 DOMMatrix(T sequence, int size); | 119 DOMMatrix(T sequence, int size); |
119 | 120 |
120 void SetIs2D(bool value); | 121 void SetIs2D(bool value); |
121 void SetNAN(); | 122 void SetNAN(); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace blink | 125 } // namespace blink |
125 | 126 |
126 #endif | 127 #endif |
OLD | NEW |