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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/app/view_model.dart

Issue 184233007: Refactor Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
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 observatory; 5 part of app;
6 6
7 abstract class TableTreeRow extends Observable { 7 abstract class TableTreeRow extends Observable {
8 final TableTreeRow parent; 8 final TableTreeRow parent;
9 @observable final int depth; 9 @observable final int depth;
10 @observable final List<TableTreeRow> children = new List<TableTreeRow>(); 10 @observable final List<TableTreeRow> children = new List<TableTreeRow>();
11 @observable final List<String> columns = []; 11 @observable final List<String> columns = [];
12 12
13 TableTreeRow(TableTreeRow parent) : 13 TableTreeRow(TableTreeRow parent) :
14 parent = parent, 14 parent = parent,
15 depth = parent != null ? parent.depth+1 : 0; 15 depth = parent != null ? parent.depth+1 : 0;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 // Collapse this row. 100 // Collapse this row.
101 row.expanded = false; 101 row.expanded = false;
102 // Remove all children. 102 // Remove all children.
103 int index = _index(row); 103 int index = _index(row);
104 for (var i = 0; i < childCount; i++) { 104 for (var i = 0; i < childCount; i++) {
105 rows.removeAt(index + 1); 105 rows.removeAt(index + 1);
106 } 106 }
107 } 107 }
108 } 108 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/app/service.dart ('k') | runtime/bin/vmservice/client/lib/src/app/vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698