| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This is a view class showing subs of selected item. | 6 * This is a view class showing subs of selected item. |
| 7 * TODO(junjianx): use dropdown menu to show. | 7 * TODO(junjianx): use dropdown menu to show. |
| 8 * @param {Object} profiler Must have addListener method. | 8 * @param {Object} profiler Must have addListener method. |
| 9 * @construct | 9 * @construct |
| 10 */ | 10 */ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 $tree.tree('loadData', data); | 79 $tree.tree('loadData', data); |
| 80 | 80 |
| 81 // Select current sub if exists. | 81 // Select current sub if exists. |
| 82 var curSub = prof.getCurSubById(id); | 82 var curSub = prof.getCurSubById(id); |
| 83 if (curSub) { | 83 if (curSub) { |
| 84 var node = $tree.tree('getNodeById', curSub); | 84 var node = $tree.tree('getNodeById', curSub); |
| 85 $tree.tree('selectNode', node); | 85 $tree.tree('selectNode', node); |
| 86 $tree.tree('scrollToNode', node); | 86 $tree.tree('scrollToNode', node); |
| 87 } | 87 } |
| 88 }; | 88 }; |
| OLD | NEW |