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

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

Issue 2874203003: Implement serialization/deserialization of geometry interfaces (Closed)
Patch Set: x Created 3 years, 7 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 "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" 9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h"
10 #include "core/dom/ArrayBufferViewHelpers.h" 10 #include "core/dom/ArrayBufferViewHelpers.h"
(...skipping 11 matching lines...) Expand all
22 ExceptionState&); 22 ExceptionState&);
23 // TODO(fserb): double check those two bellow are needed: 23 // TODO(fserb): double check those two bellow are needed:
24 static DOMMatrix* Create(DOMMatrixReadOnly*, 24 static DOMMatrix* Create(DOMMatrixReadOnly*,
25 ExceptionState& = ASSERT_NO_EXCEPTION); 25 ExceptionState& = ASSERT_NO_EXCEPTION);
26 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); 26 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&);
27 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, 27 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>,
28 ExceptionState&); 28 ExceptionState&);
29 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>, 29 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>,
30 ExceptionState&); 30 ExceptionState&);
31 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); 31 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&);
32 static DOMMatrix* fromMatrixForSerialization(DOMMatrixInit&);
32 33
33 void setA(double value) { matrix_->SetM11(value); } 34 void setA(double value) { matrix_->SetM11(value); }
34 void setB(double value) { matrix_->SetM12(value); } 35 void setB(double value) { matrix_->SetM12(value); }
35 void setC(double value) { matrix_->SetM21(value); } 36 void setC(double value) { matrix_->SetM21(value); }
36 void setD(double value) { matrix_->SetM22(value); } 37 void setD(double value) { matrix_->SetM22(value); }
37 void setE(double value) { matrix_->SetM41(value); } 38 void setE(double value) { matrix_->SetM41(value); }
38 void setF(double value) { matrix_->SetM42(value); } 39 void setF(double value) { matrix_->SetM42(value); }
39 40
40 void setM11(double value) { matrix_->SetM11(value); } 41 void setM11(double value) { matrix_->SetM11(value); }
41 void setM12(double value) { matrix_->SetM12(value); } 42 void setM12(double value) { matrix_->SetM12(value); }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698