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

Side by Side Diff: Source/core/dom/DOMMatrixReadOnly.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 | « Source/core/dom/DOMMatrix.h ('k') | Source/core/dom/DOMMatrixReadOnly.idl » ('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 DOMMatrixReadOnly_h 5 #ifndef DOMMatrixReadOnly_h
6 #define DOMMatrixReadOnly_h 6 #define DOMMatrixReadOnly_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/DOMTypedArray.h" 9 #include "core/dom/DOMTypedArray.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/transforms/TransformationMatrix.h" 11 #include "platform/transforms/TransformationMatrix.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class DOMMatrix; 15 class DOMMatrix;
16 16
17 class DOMMatrixReadOnly : public GarbageCollected<DOMMatrixReadOnly>, public Scr iptWrappableBase { 17 class DOMMatrixReadOnly : public GarbageCollected<DOMMatrixReadOnly>, public Scr iptWrappable {
18 DEFINE_WRAPPERTYPEINFO();
18 public: 19 public:
19 double a() const { return m_matrix.m11(); } 20 double a() const { return m_matrix.m11(); }
20 double b() const { return m_matrix.m12(); } 21 double b() const { return m_matrix.m12(); }
21 double c() const { return m_matrix.m21(); } 22 double c() const { return m_matrix.m21(); }
22 double d() const { return m_matrix.m22(); } 23 double d() const { return m_matrix.m22(); }
23 double e() const { return m_matrix.m41(); } 24 double e() const { return m_matrix.m41(); }
24 double f() const { return m_matrix.m42(); } 25 double f() const { return m_matrix.m42(); }
25 26
26 double m11() const { return m_matrix.m11(); } 27 double m11() const { return m_matrix.m11(); }
27 double m12() const { return m_matrix.m12(); } 28 double m12() const { return m_matrix.m12(); }
(...skipping 30 matching lines...) Expand all
58 void trace(Visitor*) { } 59 void trace(Visitor*) { }
59 60
60 protected: 61 protected:
61 TransformationMatrix m_matrix; 62 TransformationMatrix m_matrix;
62 bool m_is2D; 63 bool m_is2D;
63 }; 64 };
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif 68 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DOMMatrix.h ('k') | Source/core/dom/DOMMatrixReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698