| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #library("clock"); | 5 #library("clock"); | 
| 6 | 6 | 
| 7 #import('dart:html'); | 7 #import('dart:html'); | 
|  | 8 #import('dart:math', prefix: "Math"); | 
| 8 | 9 | 
| 9 #source('balls.dart'); | 10 #source('balls.dart'); | 
| 10 #source('numbers.dart'); | 11 #source('numbers.dart'); | 
| 11 | 12 | 
| 12 void main() { | 13 void main() { | 
| 13   new CountDownClock(); | 14   new CountDownClock(); | 
| 14 } | 15 } | 
| 15 | 16 | 
| 16 double fpsAverage; | 17 double fpsAverage; | 
| 17 | 18 | 
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 147 void setElementPosition(Element elem, double x, double y) { | 148 void setElementPosition(Element elem, double x, double y) { | 
| 148   elem.style.left = "${x}px"; | 149   elem.style.left = "${x}px"; | 
| 149   elem.style.top = "${y}px"; | 150   elem.style.top = "${y}px"; | 
| 150 } | 151 } | 
| 151 | 152 | 
| 152 void setElementSize(Element elem, double l, double t, double r, double b) { | 153 void setElementSize(Element elem, double l, double t, double r, double b) { | 
| 153   setElementPosition(elem, l, t); | 154   setElementPosition(elem, l, t); | 
| 154   elem.style.right = "${r}px"; | 155   elem.style.right = "${r}px"; | 
| 155   elem.style.bottom = "${b}px"; | 156   elem.style.bottom = "${b}px"; | 
| 156 } | 157 } | 
| OLD | NEW | 
|---|