| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** | 6 /** |
| 7 * @fileoverview Renders an array of slices into the provided div, | 7 * @fileoverview Renders an array of slices into the provided div, |
| 8 * using a child canvas element. Uses a FastRectRenderer to draw only | 8 * using a child canvas element. Uses a FastRectRenderer to draw only |
| 9 * the visible slices. | 9 * the visible slices. |
| 10 */ | 10 */ |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 * @constructor | 116 * @constructor |
| 117 */ | 117 */ |
| 118 var TimelineThreadTrack = cr.ui.define(TimelineContainerTrack); | 118 var TimelineThreadTrack = cr.ui.define(TimelineContainerTrack); |
| 119 TimelineThreadTrack.prototype = { | 119 TimelineThreadTrack.prototype = { |
| 120 __proto__: TimelineContainerTrack.prototype, | 120 __proto__: TimelineContainerTrack.prototype, |
| 121 | 121 |
| 122 decorate: function() { | 122 decorate: function() { |
| 123 this.classList.add('timeline-thread-track'); | 123 this.classList.add('timeline-thread-track'); |
| 124 }, | 124 }, |
| 125 | 125 |
| 126 get thread(thread) { | 126 get thread() { |
| 127 return this.thread_; | 127 return this.thread_; |
| 128 }, | 128 }, |
| 129 | 129 |
| 130 set thread(thread) { | 130 set thread(thread) { |
| 131 this.thread_ = thread; | 131 this.thread_ = thread; |
| 132 this.updateChildTracks_(); | 132 this.updateChildTracks_(); |
| 133 }, | 133 }, |
| 134 | 134 |
| 135 get tooltip() { | 135 get tooltip() { |
| 136 return this.tooltip_; | 136 return this.tooltip_; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 * @constructor | 205 * @constructor |
| 206 */ | 206 */ |
| 207 var TimelineCpuTrack = cr.ui.define(TimelineContainerTrack); | 207 var TimelineCpuTrack = cr.ui.define(TimelineContainerTrack); |
| 208 TimelineCpuTrack.prototype = { | 208 TimelineCpuTrack.prototype = { |
| 209 __proto__: TimelineContainerTrack.prototype, | 209 __proto__: TimelineContainerTrack.prototype, |
| 210 | 210 |
| 211 decorate: function() { | 211 decorate: function() { |
| 212 this.classList.add('timeline-thread-track'); | 212 this.classList.add('timeline-thread-track'); |
| 213 }, | 213 }, |
| 214 | 214 |
| 215 get cpu(cpu) { | 215 get cpu() { |
| 216 return this.cpu_; | 216 return this.cpu_; |
| 217 }, | 217 }, |
| 218 | 218 |
| 219 set cpu(cpu) { | 219 set cpu(cpu) { |
| 220 this.cpu_ = cpu; | 220 this.cpu_ = cpu; |
| 221 this.updateChildTracks_(); | 221 this.updateChildTracks_(); |
| 222 }, | 222 }, |
| 223 | 223 |
| 224 get tooltip() { | 224 get tooltip() { |
| 225 return this.tooltip_; | 225 return this.tooltip_; |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 }; | 973 }; |
| 974 | 974 |
| 975 return { | 975 return { |
| 976 TimelineCounterTrack: TimelineCounterTrack, | 976 TimelineCounterTrack: TimelineCounterTrack, |
| 977 TimelineSliceTrack: TimelineSliceTrack, | 977 TimelineSliceTrack: TimelineSliceTrack, |
| 978 TimelineThreadTrack: TimelineThreadTrack, | 978 TimelineThreadTrack: TimelineThreadTrack, |
| 979 TimelineViewportTrack: TimelineViewportTrack, | 979 TimelineViewportTrack: TimelineViewportTrack, |
| 980 TimelineCpuTrack: TimelineCpuTrack | 980 TimelineCpuTrack: TimelineCpuTrack |
| 981 }; | 981 }; |
| 982 }); | 982 }); |
| OLD | NEW |