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

Side by Side Diff: sky/engine/core/dom/Element.idl

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 [ 5 [
6 CustomConstructor, 6 CustomConstructor,
7 ] interface Element : ParentNode { 7 ] interface Element : ParentNode {
8 readonly attribute DOMString tagName; 8 readonly attribute DOMString tagName;
9 9
10 boolean hasAttribute(DOMString name); 10 boolean hasAttribute(DOMString name);
11 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); 11 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name);
12 [CustomElementCallbacks, RaisesException] void setAttribute(DOMString name, op tional DOMString? value); 12 [CustomElementCallbacks, RaisesException] void setAttribute(DOMString name, op tional DOMString? value);
13 [CustomElementCallbacks] void removeAttribute(DOMString name); 13 [CustomElementCallbacks] void removeAttribute(DOMString name);
14 14
15 sequence<Attr> getAttributes(); 15 sequence<Attr> getAttributes();
16 16
17 readonly attribute ShadowRoot shadowRoot; 17 readonly attribute ShadowRoot shadowRoot;
18 18
19 void requestPaint(PaintingCallback callback);
20
21 void setNeedsLayout(); 19 void setNeedsLayout();
22 void layout(); 20 void layout();
23 void setLayoutManager(LayoutCallback layout, LayoutCallback computeIntrinsicWi dths); 21 void setLayoutManager(LayoutCallback layout, LayoutCallback computeIntrinsicWi dths);
24 22
25 // TODO(abarth): Move to Node. 23 // TODO(abarth): Move to Node.
26 readonly attribute CSSStyleDeclaration style; 24 readonly attribute CSSStyleDeclaration style;
27 25
28 // TODO(abarth): Remove these when we implement more of the system. 26 // TODO(abarth): Remove these when we implement more of the system.
29 [RaisesException] boolean matches(DOMString selectors); 27 [RaisesException] boolean matches(DOMString selectors);
30 void focus(); 28 void focus();
(...skipping 15 matching lines...) Expand all
46 44
47 attribute double x; 45 attribute double x;
48 attribute double y; 46 attribute double y;
49 attribute double width; 47 attribute double width;
50 attribute double height; 48 attribute double height;
51 attribute double minContentWidth; // Intrinsic width if all wrappable points w rap. 49 attribute double minContentWidth; // Intrinsic width if all wrappable points w rap.
52 attribute double maxContentWidth; // Intrinsic width if no wrappable points wr ap. 50 attribute double maxContentWidth; // Intrinsic width if no wrappable points wr ap.
53 51
54 void paint(Canvas canvas); 52 void paint(Canvas canvas);
55 }; 53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698