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
tWrappableBase { | 13 class DOMPointReadOnly : public GarbageCollectedFinalized<DOMPointReadOnly>, pub
lic ScriptWrappableBase { |
14 public: | 14 public: |
15 static DOMPointReadOnly* create(double x, double y, double z, double w); | 15 static DOMPointReadOnly* create(double x, double y, double z, double w); |
16 | 16 |
17 double x() const { return m_x; } | 17 double x() const { return m_x; } |
18 double y() const { return m_y; } | 18 double y() const { return m_y; } |
19 double z() const { return m_z; } | 19 double z() const { return m_z; } |
20 double w() const { return m_w; } | 20 double w() const { return m_w; } |
21 | 21 |
22 void trace(Visitor*) { } | 22 virtual void trace(Visitor*) { } |
| 23 |
| 24 virtual ~DOMPointReadOnly() { } |
23 | 25 |
24 protected: | 26 protected: |
25 DOMPointReadOnly(double x, double y, double z, double w); | 27 DOMPointReadOnly(double x, double y, double z, double w); |
26 | 28 |
27 double m_x; | 29 double m_x; |
28 double m_y; | 30 double m_y; |
29 double m_z; | 31 double m_z; |
30 double m_w; | 32 double m_w; |
31 }; | 33 }; |
32 | 34 |
33 } // namespace blink | 35 } // namespace blink |
34 | 36 |
35 #endif | 37 #endif |
OLD | NEW |