| 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 "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, public Scrip
tWrappable { | 13 class DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, public Scrip
tWrappable { |
| 14 DEFINE_WRAPPERTYPEINFO(); | 14 DEFINE_WRAPPERTYPEINFO(); |
| 15 public: | 15 public: |
| 16 static DOMPointReadOnly* create(double x, double y, double z, double w); | 16 static DOMPointReadOnly* create(double x, double y, double z, double w); |
| 17 | 17 |
| 18 double x() const { return m_x; } | 18 double x() const { return m_x; } |
| 19 double y() const { return m_y; } | 19 double y() const { return m_y; } |
| 20 double z() const { return m_z; } | 20 double z() const { return m_z; } |
| 21 double w() const { return m_w; } | 21 double w() const { return m_w; } |
| 22 | 22 |
| 23 DEFINE_INLINE_TRACE() { } | 23 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 DOMPointReadOnly(double x, double y, double z, double w); | 26 DOMPointReadOnly(double x, double y, double z, double w); |
| 27 | 27 |
| 28 double m_x; | 28 double m_x; |
| 29 double m_y; | 29 double m_y; |
| 30 double m_z; | 30 double m_z; |
| 31 double m_w; | 31 double m_w; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif | 36 #endif |
| OLD | NEW |