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

Side by Side Diff: client/samples/total/src/ClientChart.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class ClientChart extends Chart { 5 class ClientChart extends Chart {
6 6
7 static final List<String> _strokeColors = 7 static final List<String> _strokeColors =
8 ["#ff0000", "#00ff00", "#0000ff", "#ffff00", "#ff00ff", "#00ffff", "#00000 0"]; 8 const ["#ff0000", "#00ff00", "#0000ff", "#ffff00", "#ff00ff", "#00ffff", "# 000000"];
9 9
10 CanvasElement _canvas; 10 CanvasElement _canvas;
11 11
12 ClientChart(this._canvas) : super() { } 12 ClientChart(this._canvas) : super() { }
13 13
14 void render() { } 14 void render() { }
15 } 15 }
16 16
17 class ClientLineChart extends ClientChart { 17 class ClientLineChart extends ClientChart {
18 18
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 if (row == 0) { 103 if (row == 0) {
104 ctx.moveTo(x, y); 104 ctx.moveTo(x, y);
105 } else { 105 } else {
106 ctx.lineTo(x, y); 106 ctx.lineTo(x, y);
107 } 107 }
108 } 108 }
109 ctx.stroke(); 109 ctx.stroke();
110 } 110 }
111 } 111 }
112 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698