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

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

Issue 2365153002: [GeometryInterface] Add rotateAxisAngle*(x,y,z,angle) function. (Closed)
Patch Set: Created 4 years, 2 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 "core/dom/DOMMatrixInit.h" 8 #include "core/dom/DOMMatrixInit.h"
9 #include "core/dom/DOMMatrixReadOnly.h" 9 #include "core/dom/DOMMatrixReadOnly.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); } 44 void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); }
45 void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); } 45 void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); }
46 46
47 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); 47 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&);
48 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); 48 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&);
49 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); 49 DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
50 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0); 50 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0);
51 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0); 51 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0);
52 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1, 52 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1,
53 double ox = 0, double oy = 0, double oz = 0); 53 double ox = 0, double oy = 0, double oz = 0);
54 DOMMatrix* rotateAxisAngleSelf(double x = 0, double y = 0, double z = 0, dou ble angle = 0);
54 DOMMatrix* skewXSelf(double sx = 0); 55 DOMMatrix* skewXSelf(double sx = 0);
55 DOMMatrix* skewYSelf(double sy = 0); 56 DOMMatrix* skewYSelf(double sy = 0);
56 DOMMatrix* invertSelf(); 57 DOMMatrix* invertSelf();
57 58
58 private: 59 private:
59 DOMMatrix(const TransformationMatrix&, bool is2D = true); 60 DOMMatrix(const TransformationMatrix&, bool is2D = true);
60 template <typename T> 61 template <typename T>
61 DOMMatrix(T sequence, int size); 62 DOMMatrix(T sequence, int size);
62 63
63 void setIs2D(bool value); 64 void setIs2D(bool value);
64 }; 65 };
65 66
66 } // namespace blink 67 } // namespace blink
67 68
68 #endif 69 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698