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

Side by Side Diff: samples/calculator/calculator.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 | « runtime/vm/object.cc ('k') | samples/chat/chat_server_lib.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 #import('dart:html'); 5 #import('dart:html');
6 #import('dart:math', prefix: 'Math');
6 #source('tape.dart'); 7 #source('tape.dart');
7 #source('settings.dart'); 8 #source('settings.dart');
8 #source('calcui.dart'); 9 #source('calcui.dart');
9 10
10 var padUI; // Calculator Pad UI. 11 var padUI; // Calculator Pad UI.
11 12
12 TapeUI tapeUI; // Tape output area UI. 13 TapeUI tapeUI; // Tape output area UI.
13 Tape tape; // Controller. 14 Tape tape; // Controller.
14 15
15 Settings mySettings; 16 Settings mySettings;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 renderPad(element); 375 renderPad(element);
375 376
376 // Render the UI. 377 // Render the UI.
377 document.body.elements.add(element); 378 document.body.elements.add(element);
378 379
379 currentRegister = ""; 380 currentRegister = "";
380 total = 0.0; 381 total = 0.0;
381 382
382 setupEvents(); 383 setupEvents();
383 } 384 }
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | samples/chat/chat_server_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698