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

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

Issue 1395423002: Fix class hierarchy display (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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.html » ('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 = '1.5em'; 71 expander.style.minWidth = '2em';
72 listeners.add(expander.onClick.listen(onClick)); 72 listeners.add(expander.onClick.listen(onClick));
73 return expander; 73 return expander;
74 } 74 }
75 75
76 void _cleanUpListeners() { 76 void _cleanUpListeners() {
77 for (var i = 0; i < listeners.length; i++) { 77 for (var i = 0; i < listeners.length; i++) {
78 listeners[i].cancel(); 78 listeners[i].cancel();
79 } 79 }
80 listeners.clear(); 80 listeners.clear();
81 } 81 }
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 if (column != _sortColumnIndex) { 362 if (column != _sortColumnIndex) {
363 return columns[column].label + '\u2003'; 363 return columns[column].label + '\u2003';
364 } 364 }
365 return columns[column].label + (_sortDescending ? arrowUp : arrowDown); 365 return columns[column].label + (_sortDescending ? arrowUp : arrowDown);
366 } 366 }
367 367
368 dynamic getValue(int row, int column) { 368 dynamic getValue(int row, int column) {
369 return rows[row].values[column]; 369 return rows[row].values[column];
370 } 370 }
371 } 371 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/class_tree.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698