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 DOMPointReadOnly_h | 5 #ifndef DOMPointReadOnly_h |
6 #define DOMPointReadOnly_h | 6 #define DOMPointReadOnly_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 static DOMPointReadOnly* create(double x, double y, double z, double w); | 26 static DOMPointReadOnly* create(double x, double y, double z, double w); |
27 static DOMPointReadOnly* fromPoint(const DOMPointInit&); | 27 static DOMPointReadOnly* fromPoint(const DOMPointInit&); |
28 | 28 |
29 double x() const { return m_x; } | 29 double x() const { return m_x; } |
30 double y() const { return m_y; } | 30 double y() const { return m_y; } |
31 double z() const { return m_z; } | 31 double z() const { return m_z; } |
32 double w() const { return m_w; } | 32 double w() const { return m_w; } |
33 | 33 |
34 DEFINE_INLINE_TRACE() {} | 34 DEFINE_INLINE_TRACE() {} |
35 | 35 |
36 ScriptValue toJSONForBinding(ScriptState*) const; | 36 ScriptValue toJSONForBinding(ScriptState*) const; |
37 DOMPoint* matrixTransform(DOMMatrixInit&, ExceptionState&); | 37 DOMPoint* matrixTransform(DOMMatrixInit&, ExceptionState&); |
38 | 38 |
39 protected: | 39 protected: |
40 DOMPointReadOnly(double x, double y, double z, double w); | 40 DOMPointReadOnly(double x, double y, double z, double w); |
41 | 41 |
42 double m_x; | 42 double m_x; |
43 double m_y; | 43 double m_y; |
44 double m_z; | 44 double m_z; |
45 double m_w; | 45 double m_w; |
46 }; | 46 }; |
47 | 47 |
48 } // namespace blink | 48 } // namespace blink |
49 | 49 |
50 #endif | 50 #endif |
OLD | NEW |