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

Side by Side Diff: runtime/observatory/lib/src/app/view_model.dart

Issue 1807263004: Improve class-tree, class-view, and instance-view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code review Created 4 years, 9 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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/class_tree.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of app; 5 part of app;
6 6
7 abstract class TableTreeRow extends Observable { 7 abstract class TableTreeRow extends Observable {
8 static const arrowRight = '\u2192'; 8 static const arrowRight = '\u2192';
9 static const arrowDownRight = '\u21b3'; 9 static const arrowDownRight = '\u21b3';
10 // Number of ems each subtree is indented. 10 // Number of ems each subtree is indented.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 HtmlElement _makeColorBlock(String backgroundColor) { 62 HtmlElement _makeColorBlock(String backgroundColor) {
63 var colorBlock = new DivElement(); 63 var colorBlock = new DivElement();
64 colorBlock.style.minWidth = '2px'; 64 colorBlock.style.minWidth = '2px';
65 colorBlock.style.backgroundColor = backgroundColor; 65 colorBlock.style.backgroundColor = backgroundColor;
66 return colorBlock; 66 return colorBlock;
67 } 67 }
68 68
69 HtmlElement _makeExpander() { 69 HtmlElement _makeExpander() {
70 var expander = new SpanElement(); 70 var expander = new SpanElement();
71 expander.style.minWidth = '2em'; 71 expander.style.minWidth = '24px';
72 expander.style.minHeight = '24px';
72 listeners.add(expander.onClick.listen(onClick)); 73 listeners.add(expander.onClick.listen(onClick));
73 return expander; 74 return expander;
74 } 75 }
75 76
76 void _cleanUpListeners() { 77 void _cleanUpListeners() {
77 for (var i = 0; i < listeners.length; i++) { 78 for (var i = 0; i < listeners.length; i++) {
78 listeners[i].cancel(); 79 listeners[i].cancel();
79 } 80 }
80 listeners.clear(); 81 listeners.clear();
81 } 82 }
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 if (column != _sortColumnIndex) { 363 if (column != _sortColumnIndex) {
363 return columns[column].label + '\u2003'; 364 return columns[column].label + '\u2003';
364 } 365 }
365 return columns[column].label + (_sortDescending ? arrowUp : arrowDown); 366 return columns[column].label + (_sortDescending ? arrowUp : arrowDown);
366 } 367 }
367 368
368 dynamic getValue(int row, int column) { 369 dynamic getValue(int row, int column) {
369 return rows[row].values[column]; 370 return rows[row].values[column];
370 } 371 }
371 } 372 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/class_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698