| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 * Factory function to create a View for statistics. | 6 * Factory function to create a View for statistics. |
| 7 * | 7 * |
| 8 * The statistics view shows some aggregate totals like how many total hours the | 8 * The statistics view shows some aggregate totals like how many total hours the |
| 9 * tree remained closed in the time range. | 9 * tree remained closed in the time range. |
| 10 */ | 10 */ |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 function DrawTopList(parent, topList) { | 257 function DrawTopList(parent, topList) { |
| 258 var items = []; | 258 var items = []; |
| 259 for (var i = 0; i < topList.length; ++i) { | 259 for (var i = 0; i < topList.length; ++i) { |
| 260 var str = "[" + topList[i].value + "] " + topList[i].key; | 260 var str = "[" + topList[i].value + "] " + topList[i].key; |
| 261 items.push(str); | 261 items.push(str); |
| 262 } | 262 } |
| 263 DrawList(parent, items, "ol"); | 263 DrawList(parent, items, "ol"); |
| 264 } | 264 } |
| 265 | 265 |
| 266 })(); // Private implementation. | 266 })(); // Private implementation. |
| OLD | NEW |