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

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

Issue 2600663002: Adding matrixTrasnform to DOMPointReadOnly interfaces as following spec. (Closed)
Patch Set: Adding matrixTrasnform to DOMPointReadOnly interfaces as following spec. Created 3 years, 11 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
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 DOMMatrixInit;
15 class DOMPoint;
16 class DOMPointInit;
17 class ExceptionState;
18 class ScriptState;
14 class ScriptValue; 19 class ScriptValue;
15 class ScriptState;
16 class DOMPointInit;
17 20
18 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, 21 class CORE_EXPORT DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>,
19 public ScriptWrappable { 22 public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 23 DEFINE_WRAPPERTYPEINFO();
21 24
22 public: 25 public:
23 static DOMPointReadOnly* create(double x, double y, double z, double w); 26 static DOMPointReadOnly* create(double x, double y, double z, double w);
24 static DOMPointReadOnly* fromPoint(const DOMPointInit&); 27 static DOMPointReadOnly* fromPoint(const DOMPointInit&);
25 28
26 double x() const { return m_x; } 29 double x() const { return m_x; }
27 double y() const { return m_y; } 30 double y() const { return m_y; }
28 double z() const { return m_z; } 31 double z() const { return m_z; }
29 double w() const { return m_w; } 32 double w() const { return m_w; }
30 33
31 DEFINE_INLINE_TRACE() {} 34 DEFINE_INLINE_TRACE() {}
32 35
33 ScriptValue toJSONForBinding(ScriptState*) const; 36 ScriptValue toJSONForBinding(ScriptState*) const;
34 37 DOMPoint* matrixTransform(DOMMatrixInit&, ExceptionState&);
38
35 protected: 39 protected:
36 DOMPointReadOnly(double x, double y, double z, double w); 40 DOMPointReadOnly(double x, double y, double z, double w);
37 41
38 double m_x; 42 double m_x;
39 double m_y; 43 double m_y;
40 double m_z; 44 double m_z;
41 double m_w; 45 double m_w;
42 }; 46 };
43 47
44 } // namespace blink 48 } // namespace blink
45 49
46 #endif 50 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698