OLD | NEW |
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 Loading... |
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 |
OLD | NEW |