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

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

Issue 2587743002: The DOMPointReadOnly interface requires serializer. (Closed)
Patch Set: The DOMPointReadOnly interface requires serializer. Created 4 years 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
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 "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ScriptValue;
15 class ScriptState;
16
14 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, 17 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>,
15 public ScriptWrappable { 18 public ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
17 20
18 public: 21 public:
19 static DOMPointReadOnly* create(double x, double y, double z, double w); 22 static DOMPointReadOnly* create(double x, double y, double z, double w);
20 23
21 double x() const { return m_x; } 24 double x() const { return m_x; }
22 double y() const { return m_y; } 25 double y() const { return m_y; }
23 double z() const { return m_z; } 26 double z() const { return m_z; }
24 double w() const { return m_w; } 27 double w() const { return m_w; }
25 28
26 DEFINE_INLINE_TRACE() {} 29 DEFINE_INLINE_TRACE() {}
27 30
31 ScriptValue toJSONForBinding(ScriptState*) const;
32
28 protected: 33 protected:
29 DOMPointReadOnly(double x, double y, double z, double w); 34 DOMPointReadOnly(double x, double y, double z, double w);
30 35
31 double m_x; 36 double m_x;
32 double m_y; 37 double m_y;
33 double m_z; 38 double m_z;
34 double m_w; 39 double m_w;
35 }; 40 };
36 41
37 } // namespace blink 42 } // namespace blink
38 43
39 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698