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

Side by Side Diff: tracing/tracing/ui/tracks/cpu_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) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 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/core/filter.html"> 8 <link rel="import" href="/tracing/core/filter.html">
9 <link rel="import" href="/tracing/model/event_set.html"> 9 <link rel="import" href="/tracing/model/event_set.html">
10 <link rel="import" href="/tracing/model/model.html"> 10 <link rel="import" href="/tracing/model/model.html">
(...skipping 10 matching lines...) Expand all
21 * Visualizes a Cpu using a series of SliceTracks. 21 * Visualizes a Cpu using a series of SliceTracks.
22 * @constructor 22 * @constructor
23 */ 23 */
24 var CpuTrack = 24 var CpuTrack =
25 tr.ui.b.define('cpu-track', tr.ui.tracks.ContainerTrack); 25 tr.ui.b.define('cpu-track', tr.ui.tracks.ContainerTrack);
26 CpuTrack.prototype = { 26 CpuTrack.prototype = {
27 __proto__: tr.ui.tracks.ContainerTrack.prototype, 27 __proto__: tr.ui.tracks.ContainerTrack.prototype,
28 28
29 decorate: function(viewport) { 29 decorate: function(viewport) {
30 tr.ui.tracks.ContainerTrack.prototype.decorate.call(this, viewport); 30 tr.ui.tracks.ContainerTrack.prototype.decorate.call(this, viewport);
31 this.classList.add('cpu-track'); 31 Polymer.dom(this).classList.add('cpu-track');
32 this.detailedMode_ = true; 32 this.detailedMode_ = true;
33 }, 33 },
34 34
35 get cpu() { 35 get cpu() {
36 return this.cpu_; 36 return this.cpu_;
37 }, 37 },
38 38
39 set cpu(cpu) { 39 set cpu(cpu) {
40 this.cpu_ = cpu; 40 this.cpu_ = cpu;
41 this.updateContents_(); 41 this.updateContents_();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Polymer.dom(this).appendChild(samplesTrack); 130 Polymer.dom(this).appendChild(samplesTrack);
131 }, this); 131 }, this);
132 } 132 }
133 }; 133 };
134 134
135 return { 135 return {
136 CpuTrack: CpuTrack 136 CpuTrack: CpuTrack
137 }; 137 };
138 }); 138 });
139 </script> 139 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/tracks/counter_track.html ('k') | tracing/tracing/ui/tracks/device_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698