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

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

Issue 704193004: bindings: Makes DOM{Matrix,Point,Rect} ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/DOMMatrixReadOnly.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/DOMMatrixReadOnly.h" 8 #include "core/dom/DOMMatrixReadOnly.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class DOMMatrix : public DOMMatrixReadOnly { 12 class DOMMatrix : public DOMMatrixReadOnly {
13 DEFINE_WRAPPERTYPEINFO();
13 public: 14 public:
14 static DOMMatrix* create(); 15 static DOMMatrix* create();
15 static DOMMatrix* create(DOMMatrixReadOnly*); 16 static DOMMatrix* create(DOMMatrixReadOnly*);
16 17
17 void setA(double value) { m_matrix.setM11(value); } 18 void setA(double value) { m_matrix.setM11(value); }
18 void setB(double value) { m_matrix.setM12(value); } 19 void setB(double value) { m_matrix.setM12(value); }
19 void setC(double value) { m_matrix.setM21(value); } 20 void setC(double value) { m_matrix.setM21(value); }
20 void setD(double value) { m_matrix.setM22(value); } 21 void setD(double value) { m_matrix.setM22(value); }
21 void setE(double value) { m_matrix.setM41(value); } 22 void setE(double value) { m_matrix.setM41(value); }
22 void setF(double value) { m_matrix.setM42(value); } 23 void setF(double value) { m_matrix.setM42(value); }
(...skipping 25 matching lines...) Expand all
48 49
49 private: 50 private:
50 DOMMatrix(const TransformationMatrix&, bool is2D = true); 51 DOMMatrix(const TransformationMatrix&, bool is2D = true);
51 52
52 void setIs2D(bool value); 53 void setIs2D(bool value);
53 }; 54 };
54 55
55 } // namespace blink 56 } // namespace blink
56 57
57 #endif 58 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/DOMMatrixReadOnly.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698