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

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

Issue 2812833003: Revert of [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 8 months 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/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/dom/NotShared.h"
10 #include "core/geometry/DOMMatrixInit.h" 9 #include "core/geometry/DOMMatrixInit.h"
11 #include "core/geometry/DOMMatrixReadOnly.h" 10 #include "core/geometry/DOMMatrixReadOnly.h"
12 11
13 namespace blink { 12 namespace blink {
14 13
15 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { 14 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly {
16 DEFINE_WRAPPERTYPEINFO(); 15 DEFINE_WRAPPERTYPEINFO();
17 16
18 public: 17 public:
19 static DOMMatrix* Create(ExceptionState&); 18 static DOMMatrix* Create(ExceptionState&);
20 static DOMMatrix* Create(DOMMatrixReadOnly*, 19 static DOMMatrix* Create(DOMMatrixReadOnly*,
21 ExceptionState& = ASSERT_NO_EXCEPTION); 20 ExceptionState& = ASSERT_NO_EXCEPTION);
22 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); 21 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&);
23 static DOMMatrix* Create(const String&, ExceptionState&); 22 static DOMMatrix* Create(const String&, ExceptionState&);
24 static DOMMatrix* Create(Vector<double>, ExceptionState&); 23 static DOMMatrix* Create(Vector<double>, ExceptionState&);
25 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, 24 static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&);
26 ExceptionState&); 25 static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&);
27 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>,
28 ExceptionState&);
29 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); 26 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&);
30 27
31 void setA(double value) { matrix_->SetM11(value); } 28 void setA(double value) { matrix_->SetM11(value); }
32 void setB(double value) { matrix_->SetM12(value); } 29 void setB(double value) { matrix_->SetM12(value); }
33 void setC(double value) { matrix_->SetM21(value); } 30 void setC(double value) { matrix_->SetM21(value); }
34 void setD(double value) { matrix_->SetM22(value); } 31 void setD(double value) { matrix_->SetM22(value); }
35 void setE(double value) { matrix_->SetM41(value); } 32 void setE(double value) { matrix_->SetM41(value); }
36 void setF(double value) { matrix_->SetM42(value); } 33 void setF(double value) { matrix_->SetM42(value); }
37 34
38 void setM11(double value) { matrix_->SetM11(value); } 35 void setM11(double value) { matrix_->SetM11(value); }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 template <typename T> 112 template <typename T>
116 DOMMatrix(T sequence, int size); 113 DOMMatrix(T sequence, int size);
117 114
118 void SetIs2D(bool value); 115 void SetIs2D(bool value);
119 void SetNAN(); 116 void SetNAN();
120 }; 117 };
121 118
122 } // namespace blink 119 } // namespace blink
123 120
124 #endif 121 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp ('k') | third_party/WebKit/Source/core/geometry/DOMMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698