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

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

Issue 424783002: bindings: Makes all the DOM classes derive ScriptWrappableBase. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/Rect.h ('k') | Source/core/dom/DOMRectReadOnly.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 "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
9 10
10 namespace WebCore { 11 namespace WebCore {
11 12
12 class DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly> { 13 class DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, public Scrip tWrappableBase {
13 public: 14 public:
14 static DOMPointReadOnly* create(double x, double y, double z, double w); 15 static DOMPointReadOnly* create(double x, double y, double z, double w);
15 16
16 double x() const { return m_x; } 17 double x() const { return m_x; }
17 double y() const { return m_y; } 18 double y() const { return m_y; }
18 double z() const { return m_z; } 19 double z() const { return m_z; }
19 double w() const { return m_w; } 20 double w() const { return m_w; }
20 21
21 void trace(Visitor*) { } 22 void trace(Visitor*) { }
22 23
23 protected: 24 protected:
24 DOMPointReadOnly(double x, double y, double z, double w); 25 DOMPointReadOnly(double x, double y, double z, double w);
25 26
26 double m_x; 27 double m_x;
27 double m_y; 28 double m_y;
28 double m_z; 29 double m_z;
29 double m_w; 30 double m_w;
30 }; 31 };
31 32
32 } // namespace WebCore 33 } // namespace WebCore
33 34
34 #endif 35 #endif
OLDNEW
« no previous file with comments | « Source/core/css/Rect.h ('k') | Source/core/dom/DOMRectReadOnly.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698