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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMQuad.idl

Issue 2638413005: [GeometryInterface] add fromQuad function in DOMQuad. (Closed)
Patch Set: [WIP] formQuad 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMQuad.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 // https://drafts.fxtf.org/geometry/#domquad 5 // https://drafts.fxtf.org/geometry/#domquad
6 6
7 [ 7 [
8 Constructor(optional DOMPointInit p1, optional DOMPointInit p2, 8 Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
9 optional DOMPointInit p3, optional DOMPointInit p4), 9 optional DOMPointInit p3, optional DOMPointInit p4),
10 // TODO(hs1217.lee): Exposed=(Window,Worker) 10 // TODO(hs1217.lee): Exposed=(Window,Worker)
11 RuntimeEnabled=GeometryInterfaces 11 RuntimeEnabled=GeometryInterfaces
12 ] 12 ]
13 interface DOMQuad { 13 interface DOMQuad {
14 [NewObject] static DOMQuad fromRect(optional DOMRectInit other); 14 [NewObject] static DOMQuad fromRect(optional DOMRectInit other);
15 // TODO(hs1217.lee): [NewObject] static DOMQuad fromQuad(optional DOMQuadIni t other); 15 [NewObject] static DOMQuad fromQuad(optional DOMQuadInit other);
16 16
17 [SameObject] readonly attribute DOMPoint p1; 17 [SameObject] readonly attribute DOMPoint p1;
18 [SameObject] readonly attribute DOMPoint p2; 18 [SameObject] readonly attribute DOMPoint p2;
19 [SameObject] readonly attribute DOMPoint p3; 19 [SameObject] readonly attribute DOMPoint p3;
20 [SameObject] readonly attribute DOMPoint p4; 20 [SameObject] readonly attribute DOMPoint p4;
21 // TODO(hs1217.lee): [NewObject] DOMRect getBounds(); 21 // TODO(hs1217.lee): [NewObject] DOMRect getBounds();
22 22
23 serializer = { attribute }; 23 serializer = { attribute };
24 }; 24 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMQuad.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698