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

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

Issue 964333002: Implement DOMQuad of geometry interfaces. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: expected Created 5 years, 9 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 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
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