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

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

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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/symbols.cc ('k') | samples/chat/chat_server.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 import 'dart:math' as Math;
7 #source('tape.dart'); 7 part 'tape.dart';
8 #source('settings.dart'); 8 part 'settings.dart';
9 #source('calcui.dart'); 9 part 'calcui.dart';
10 10
11 var padUI; // Calculator Pad UI. 11 var padUI; // Calculator Pad UI.
12 12
13 TapeUI tapeUI; // Tape output area UI. 13 TapeUI tapeUI; // Tape output area UI.
14 Tape tape; // Controller. 14 Tape tape; // Controller.
15 15
16 Settings mySettings; 16 Settings mySettings;
17 17
18 String currentRegister; 18 String currentRegister;
19 int currentOperator; 19 int currentOperator;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 renderPad(element); 375 renderPad(element);
376 376
377 // Render the UI. 377 // Render the UI.
378 document.body.elements.add(element); 378 document.body.elements.add(element);
379 379
380 currentRegister = ""; 380 currentRegister = "";
381 total = 0.0; 381 total = 0.0;
382 382
383 setupEvents(); 383 setupEvents();
384 } 384 }
OLDNEW
« no previous file with comments | « runtime/vm/symbols.cc ('k') | samples/chat/chat_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698