Commit 9dfbc4ee authored by Matt Perry's avatar Matt Perry

Sky: Add a CustomDart attribute to the IDL compiler, and use that with Canvas

to provide a better Dart API.

When the attribute is present on an IDL interface, the generate Dart code will be a private interface that can extended by custom dart code.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1135283005
parent 20429827
......@@ -18,12 +18,14 @@ void main() {
context.save();
context.clipRect([0.0, 0.0, context.width, radius]);
context.clipRect(new Rect()..setLTRB(0.0, 0.0, context.width, radius));
context.translate(context.width / 2.0, context.height / 2.0);
paint.setARGB(128, 255, 0, 255);
context.rotateDegrees(45.0);
context.drawRect([-radius, -radius, radius, radius], paint);
context.drawRect(new Rect()..setLTRB(-radius, -radius, radius, radius),
paint);
// Scale x and y by 0.5.
var scaleMatrix = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment