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

Side by Side Diff: client/samples/total/src/Total.dart

Issue 8416010: Further code review changes for issue 8341027. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add DOMWrapperBase._empty. Created 9 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698