OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <link rel="import" href="/tracing/ui/tracks/container_track.html"> | 8 <link rel="import" href="/tracing/ui/tracks/container_track.html"> |
9 <link rel="import" href="/tracing/ui/tracks/power_series_track.html"> | 9 <link rel="import" href="/tracing/ui/tracks/power_series_track.html"> |
10 <link rel="import" href="/tracing/ui/tracks/spacing_track.html"> | 10 <link rel="import" href="/tracing/ui/tracks/spacing_track.html"> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 this.tracks_.forEach(function(track) { | 65 this.tracks_.forEach(function(track) { |
66 track.addEventsToTrackMap(eventToTrackMap); | 66 track.addEventsToTrackMap(eventToTrackMap); |
67 }); | 67 }); |
68 }, | 68 }, |
69 | 69 |
70 appendPowerSeriesTrack_: function() { | 70 appendPowerSeriesTrack_: function() { |
71 this.powerSeriesTrack_ = new tr.ui.tracks.PowerSeriesTrack(this.viewport); | 71 this.powerSeriesTrack_ = new tr.ui.tracks.PowerSeriesTrack(this.viewport); |
72 this.powerSeriesTrack_.powerSeries = this.device.powerSeries; | 72 this.powerSeriesTrack_.powerSeries = this.device.powerSeries; |
73 | 73 |
74 if (this.powerSeriesTrack_.hasVisibleContent) { | 74 if (this.powerSeriesTrack_.hasVisibleContent) { |
75 this.appendChild(this.powerSeriesTrack_); | 75 Polymer.dom(this).appendChild(this.powerSeriesTrack_); |
76 this.appendChild(new tr.ui.tracks.SpacingTrack(this.viewport)); | 76 Polymer.dom(this).appendChild(new tr.ui.tracks.SpacingTrack(this.viewpor
t)); |
77 } | 77 } |
78 }, | 78 }, |
79 | 79 |
80 updateContents_: function() { | 80 updateContents_: function() { |
81 this.clearTracks_(); | 81 this.clearTracks_(); |
82 this.appendPowerSeriesTrack_(); | 82 this.appendPowerSeriesTrack_(); |
83 } | 83 } |
84 }; | 84 }; |
85 | 85 |
86 return { | 86 return { |
87 DeviceTrack: DeviceTrack | 87 DeviceTrack: DeviceTrack |
88 }; | 88 }; |
89 }); | 89 }); |
90 </script> | 90 </script> |
OLD | NEW |