Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrix.h

Issue 2516973002: [GeometryInferface] add Constructor(DOMString transformList). (Closed)
Patch Set: update test message. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ExceptionStatePlaceholder.h" 8 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
9 #include "core/dom/DOMMatrixInit.h" 9 #include "core/dom/DOMMatrixInit.h"
10 #include "core/dom/DOMMatrixReadOnly.h" 10 #include "core/dom/DOMMatrixReadOnly.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { 14 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly {
15 DEFINE_WRAPPERTYPEINFO(); 15 DEFINE_WRAPPERTYPEINFO();
16 16
17 public: 17 public:
18 static DOMMatrix* create(ExceptionState&); 18 static DOMMatrix* create(ExceptionState&);
19 static DOMMatrix* create(DOMMatrixReadOnly*, 19 static DOMMatrix* create(DOMMatrixReadOnly*,
20 ExceptionState& = ASSERT_NO_EXCEPTION); 20 ExceptionState& = ASSERT_NO_EXCEPTION);
21 static DOMMatrix* create(const SkMatrix44&, ExceptionState&); 21 static DOMMatrix* create(const SkMatrix44&, ExceptionState&);
22 static DOMMatrix* create(const String&, ExceptionState&);
22 static DOMMatrix* create(Vector<double>, ExceptionState&); 23 static DOMMatrix* create(Vector<double>, ExceptionState&);
23 static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&); 24 static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&);
24 static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&); 25 static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&);
25 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); 26 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&);
26 27
27 void setA(double value) { m_matrix->setM11(value); } 28 void setA(double value) { m_matrix->setM11(value); }
28 void setB(double value) { m_matrix->setM12(value); } 29 void setB(double value) { m_matrix->setM12(value); }
29 void setC(double value) { m_matrix->setM21(value); } 30 void setC(double value) { m_matrix->setM21(value); }
30 void setD(double value) { m_matrix->setM22(value); } 31 void setD(double value) { m_matrix->setM22(value); }
31 void setE(double value) { m_matrix->setM41(value); } 32 void setE(double value) { m_matrix->setM41(value); }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 double z = 0, 102 double z = 0,
102 double angle = 0); 103 double angle = 0);
103 DOMMatrix* skewXSelf(double sx = 0); 104 DOMMatrix* skewXSelf(double sx = 0);
104 DOMMatrix* skewYSelf(double sy = 0); 105 DOMMatrix* skewYSelf(double sy = 0);
105 DOMMatrix* invertSelf(); 106 DOMMatrix* invertSelf();
106 107
107 DOMMatrix* setMatrixValue(const String&, ExceptionState&); 108 DOMMatrix* setMatrixValue(const String&, ExceptionState&);
108 109
109 private: 110 private:
110 DOMMatrix(const TransformationMatrix&, bool is2D = true); 111 DOMMatrix(const TransformationMatrix&, bool is2D = true);
112 DOMMatrix(const String&, ExceptionState&);
111 template <typename T> 113 template <typename T>
112 DOMMatrix(T sequence, int size); 114 DOMMatrix(T sequence, int size);
113 115
114 void setIs2D(bool value); 116 void setIs2D(bool value);
115 void setNAN(); 117 void setNAN();
116 }; 118 };
117 119
118 } // namespace blink 120 } // namespace blink
119 121
120 #endif 122 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698