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

Side by Side Diff: third_party/WebKit/Source/core/geometry/DOMQuad.cpp

Issue 2741723005: Move geometry interface files to geometry directory. (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "core/dom/DOMQuad.h" 5 #include "core/geometry/DOMQuad.h"
6 6
7 #include "bindings/core/v8/V8ObjectBuilder.h" 7 #include "bindings/core/v8/V8ObjectBuilder.h"
8 #include "core/dom/DOMPoint.h" 8 #include "core/geometry/DOMPoint.h"
9 #include "core/dom/DOMQuadInit.h" 9 #include "core/geometry/DOMQuadInit.h"
10 #include "core/dom/DOMRect.h" 10 #include "core/geometry/DOMRect.h"
11 #include "core/dom/DOMRectInit.h" 11 #include "core/geometry/DOMRectInit.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 DOMQuad* DOMQuad::create(const DOMPointInit& p1, 15 DOMQuad* DOMQuad::create(const DOMPointInit& p1,
16 const DOMPointInit& p2, 16 const DOMPointInit& p2,
17 const DOMPointInit& p3, 17 const DOMPointInit& p3,
18 const DOMPointInit& p4) { 18 const DOMPointInit& p4) {
19 return new DOMQuad(p1, p2, p3, p4); 19 return new DOMQuad(p1, p2, p3, p4);
20 } 20 }
21 21
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ScriptValue DOMQuad::toJSONForBinding(ScriptState* scriptState) const { 71 ScriptValue DOMQuad::toJSONForBinding(ScriptState* scriptState) const {
72 V8ObjectBuilder result(scriptState); 72 V8ObjectBuilder result(scriptState);
73 result.add("p1", p1()); 73 result.add("p1", p1());
74 result.add("p2", p2()); 74 result.add("p2", p2());
75 result.add("p3", p3()); 75 result.add("p3", p3());
76 result.add("p4", p4()); 76 result.add("p4", p4());
77 return result.scriptValue(); 77 return result.scriptValue();
78 } 78 }
79 79
80 } // namespace blink 80 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/geometry/DOMQuad.h ('k') | third_party/WebKit/Source/core/geometry/DOMQuad.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698