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

Side by Side Diff: samples/clock/web/clock.dart

Issue 27440002: Revert "Removing setImmediate and hiding WindowTimers interface" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « no previous file | samples/clock/web/numbers.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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:async';
8 import 'dart:html'; 7 import 'dart:html';
9 import 'dart:math'; 8 import 'dart:math';
10 9
11 part 'balls.dart'; 10 part 'balls.dart';
12 part 'numbers.dart'; 11 part 'numbers.dart';
13 12
14 void main() { 13 void main() {
15 new CountDownClock(); 14 new CountDownClock();
16 } 15 }
17 16
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 155
157 void setElementPosition(Element elem, double x, double y) { 156 void setElementPosition(Element elem, double x, double y) {
158 elem.style.transform = 'translate(${x}px, ${y}px)'; 157 elem.style.transform = 'translate(${x}px, ${y}px)';
159 } 158 }
160 159
161 void setElementSize(Element elem, double l, double t, double r, double b) { 160 void setElementSize(Element elem, double l, double t, double r, double b) {
162 setElementPosition(elem, l, t); 161 setElementPosition(elem, l, t);
163 elem.style.right = "${r}px"; 162 elem.style.right = "${r}px";
164 elem.style.bottom = "${b}px"; 163 elem.style.bottom = "${b}px";
165 } 164 }
OLDNEW
« no previous file with comments | « no previous file | samples/clock/web/numbers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698