Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: tracing/tracing/ui/tracks/chart_track.html

Issue 1928873003: Use Polymer.dom with many dom manipulations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: fixes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/tracks/async_slice_group_track.html ('k') | tracing/tracing/ui/tracks/container_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698