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

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

Issue 1701283002: Implement DOMPoint using v8 extras. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DOMPointReadOnly_h
6 #define DOMPointReadOnly_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h"
10 #include "platform/heap/Handle.h"
11
12 namespace blink {
13
14 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, public ScriptWrappable {
15 DEFINE_WRAPPERTYPEINFO();
16 public:
17 static DOMPointReadOnly* create(double x, double y, double z, double w);
18
19 double x() const { return m_x; }
20 double y() const { return m_y; }
21 double z() const { return m_z; }
22 double w() const { return m_w; }
23
24 DEFINE_INLINE_TRACE() { }
25
26 protected:
27 DOMPointReadOnly(double x, double y, double z, double w);
28
29 double m_x;
30 double m_y;
31 double m_z;
32 double m_w;
33 };
34
35 } // namespace blink
36
37 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMPointInit.idl ('k') | third_party/WebKit/Source/core/dom/DOMPointReadOnly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698