| 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/base/heading.html"> | 8 <link rel="import" href="/tracing/ui/base/heading.html"> |
| 9 <link rel="import" href="/tracing/ui/base/ui.html"> | 9 <link rel="import" href="/tracing/ui/base/ui.html"> |
| 10 <link rel="import" href="/tracing/ui/tracks/chart_transform.html"> | 10 <link rel="import" href="/tracing/ui/tracks/chart_transform.html"> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * @extends {Track} | 29 * @extends {Track} |
| 30 */ | 30 */ |
| 31 var ChartTrack = | 31 var ChartTrack = |
| 32 tr.ui.b.define('chart-track', tr.ui.tracks.Track); | 32 tr.ui.b.define('chart-track', tr.ui.tracks.Track); |
| 33 | 33 |
| 34 ChartTrack.prototype = { | 34 ChartTrack.prototype = { |
| 35 __proto__: tr.ui.tracks.Track.prototype, | 35 __proto__: tr.ui.tracks.Track.prototype, |
| 36 | 36 |
| 37 decorate: function(viewport) { | 37 decorate: function(viewport) { |
| 38 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); | 38 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); |
| 39 this.classList.add('chart-track'); | 39 Polymer.dom(this).classList.add('chart-track'); |
| 40 this.series_ = undefined; | 40 this.series_ = undefined; |
| 41 | 41 |
| 42 // GUID -> {axis: ChartAxis, series: [ChartSeries]}. | 42 // GUID -> {axis: ChartAxis, series: [ChartSeries]}. |
| 43 this.axisGuidToAxisData_ = undefined; | 43 this.axisGuidToAxisData_ = undefined; |
| 44 | 44 |
| 45 // The maximum top and bottom padding of all series. | 45 // The maximum top and bottom padding of all series. |
| 46 this.topPadding_ = undefined; | 46 this.topPadding_ = undefined; |
| 47 this.bottomPadding_ = undefined; | 47 this.bottomPadding_ = undefined; |
| 48 | 48 |
| 49 this.heading_ = document.createElement('tr-ui-heading'); | 49 this.heading_ = document.createElement('tr-ui-heading'); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 var series = this.axisGuidToAxisData_[axis.guid].series; | 232 var series = this.axisGuidToAxisData_[axis.guid].series; |
| 233 axis.autoSetFromSeries(series, opt_config); | 233 axis.autoSetFromSeries(series, opt_config); |
| 234 } | 234 } |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 return { | 237 return { |
| 238 ChartTrack: ChartTrack | 238 ChartTrack: ChartTrack |
| 239 }; | 239 }; |
| 240 }); | 240 }); |
| 241 </script> | 241 </script> |
| OLD | NEW |