Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Side by Side Diff: Source/core/dom/DOMPointReadOnly.h

Issue 412373003: Implement DOMQuad of geometry interfaces. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: expected.txt Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/DOMPoint.h ('k') | Source/core/dom/DOMQuad.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « Source/core/dom/DOMPoint.h ('k') | Source/core/dom/DOMQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698