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

Side by Side Diff: samples/swipe/swipe.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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 | « samples/swarm/swarmlib.dart ('k') | samples/third_party/dromaeo/Dromaeo.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("swipe"); 5 #library("swipe");
6 6
7 #import('dart:html'); 7 #import('dart:html');
8 #import('dart:math', prefix: 'Math');
8 9
9 Element target; 10 Element target;
10 11
11 var figureWidth; 12 var figureWidth;
12 13
13 double anglePos = 0.0; 14 double anglePos = 0.0;
14 15
15 var timeoutHandle; 16 var timeoutHandle;
16 17
17 void main() { 18 void main() {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 119
119 /** 120 /**
120 * Stop any spin that may be in progress. 121 * Stop any spin that may be in progress.
121 */ 122 */
122 void stopSpin() { 123 void stopSpin() {
123 if (timeoutHandle != null) { 124 if (timeoutHandle != null) {
124 window.clearInterval(timeoutHandle); 125 window.clearInterval(timeoutHandle);
125 timeoutHandle = null; 126 timeoutHandle = null;
126 } 127 }
127 } 128 }
OLDNEW
« no previous file with comments | « samples/swarm/swarmlib.dart ('k') | samples/third_party/dromaeo/Dromaeo.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698