| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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("Total"); | 5 #library("Total"); |
| 6 #import("dart:html"); | 6 #import("../../../html/html.dart"); |
| 7 #import("TotalLib.dart"); | 7 #import("TotalLib.dart"); |
| 8 | 8 |
| 9 class Total { | 9 class Total { |
| 10 static final int DEFAULT_VISIBLE_COLUMNS = 10; | 10 static final int DEFAULT_VISIBLE_COLUMNS = 10; |
| 11 static final int DEFAULT_VISIBLE_ROWS = 25; | 11 static final int DEFAULT_VISIBLE_ROWS = 25; |
| 12 | 12 |
| 13 Spreadsheet _spreadsheet; | 13 Spreadsheet _spreadsheet; |
| 14 SpreadsheetPresenter _presenter; | 14 SpreadsheetPresenter _presenter; |
| 15 | 15 |
| 16 Total() { | 16 Total() { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 43 if (event.ctrlKey && event.keyCode == 68 /* d */) { | 43 if (event.ctrlKey && event.keyCode == 68 /* d */) { |
| 44 Element db = document.query('#debugbar'); | 44 Element db = document.query('#debugbar'); |
| 45 if (db.classes.contains('on')) { | 45 if (db.classes.contains('on')) { |
| 46 db.classes.remove('on'); | 46 db.classes.remove('on'); |
| 47 } else { | 47 } else { |
| 48 db.classes.add('on'); | 48 db.classes.add('on'); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 }, false); | 51 }, false); |
| 52 } | 52 } |
| OLD | NEW |