| 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" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DOMPointInit; |
| 15 |
| 14 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, | 16 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, |
| 15 public ScriptWrappable { | 17 public ScriptWrappable { |
| 16 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 17 | 19 |
| 18 public: | 20 public: |
| 19 static DOMPointReadOnly* create(double x, double y, double z, double w); | 21 static DOMPointReadOnly* create(double x, double y, double z, double w); |
| 22 static DOMPointReadOnly* fromPoint(const DOMPointInit&); |
| 20 | 23 |
| 21 double x() const { return m_x; } | 24 double x() const { return m_x; } |
| 22 double y() const { return m_y; } | 25 double y() const { return m_y; } |
| 23 double z() const { return m_z; } | 26 double z() const { return m_z; } |
| 24 double w() const { return m_w; } | 27 double w() const { return m_w; } |
| 25 | 28 |
| 26 DEFINE_INLINE_TRACE() {} | 29 DEFINE_INLINE_TRACE() {} |
| 27 | 30 |
| 28 protected: | 31 protected: |
| 29 DOMPointReadOnly(double x, double y, double z, double w); | 32 DOMPointReadOnly(double x, double y, double z, double w); |
| 30 | 33 |
| 31 double m_x; | 34 double m_x; |
| 32 double m_y; | 35 double m_y; |
| 33 double m_z; | 36 double m_z; |
| 34 double m_w; | 37 double m_w; |
| 35 }; | 38 }; |
| 36 | 39 |
| 37 } // namespace blink | 40 } // namespace blink |
| 38 | 41 |
| 39 #endif | 42 #endif |
| OLD | NEW |