| 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 flot graph. | 6 * This is a view class showing flot graph. |
| 7 * @param {Object} profiler Must have addListener method. | 7 * @param {Object} profiler Must have addListener method. |
| 8 * @construct | 8 * @construct |
| 9 */ | 9 */ |
| 10 var GraphView = function(profiler) { | 10 var GraphView = function(profiler) { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return; | 132 return; |
| 133 | 133 |
| 134 self.profiler_.setSelected(lines[i].id); | 134 self.profiler_.setSelected(lines[i].id); |
| 135 }); | 135 }); |
| 136 } else { | 136 } else { |
| 137 this.graph_.setData(data); | 137 this.graph_.setData(data); |
| 138 this.graph_.setupGrid(); | 138 this.graph_.setupGrid(); |
| 139 this.graph_.draw(); | 139 this.graph_.draw(); |
| 140 } | 140 } |
| 141 }; | 141 }; |
| OLD | NEW |