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

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

Issue 1922193002: [polymer] Replaces this.appendChild with Polymer.dom(this).appendChild (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: 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/ui/tracks/process_memory_dump_track.html"> 8 <link rel="import" href="/tracing/ui/tracks/process_memory_dump_track.html">
9 <link rel="import" href="/tracing/ui/tracks/process_track_base.html"> 9 <link rel="import" href="/tracing/ui/tracks/process_track_base.html">
10 <link rel="import" href="/tracing/ui/base/draw_helpers.html"> 10 <link rel="import" href="/tracing/ui/base/draw_helpers.html">
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 tr.ui.tracks.ProcessTrackBase.prototype.addContainersToTrackMap.apply( 110 tr.ui.tracks.ProcessTrackBase.prototype.addContainersToTrackMap.apply(
111 this, arguments); 111 this, arguments);
112 containerToTrackMap.addContainer(this.process, this); 112 containerToTrackMap.addContainer(this.process, this);
113 }, 113 },
114 114
115 appendMemoryDumpTrack_: function() { 115 appendMemoryDumpTrack_: function() {
116 var processMemoryDumps = this.process.memoryDumps; 116 var processMemoryDumps = this.process.memoryDumps;
117 if (processMemoryDumps.length) { 117 if (processMemoryDumps.length) {
118 var pmdt = new tr.ui.tracks.ProcessMemoryDumpTrack(this.viewport_); 118 var pmdt = new tr.ui.tracks.ProcessMemoryDumpTrack(this.viewport_);
119 pmdt.memoryDumps = processMemoryDumps; 119 pmdt.memoryDumps = processMemoryDumps;
120 this.appendChild(pmdt); 120 Polymer.dom(this).appendChild(pmdt);
121 } 121 }
122 }, 122 },
123 123
124 addIntersectingEventsInRangeToSelectionInWorldSpace: function( 124 addIntersectingEventsInRangeToSelectionInWorldSpace: function(
125 loWX, hiWX, viewPixWidthWorld, selection) { 125 loWX, hiWX, viewPixWidthWorld, selection) {
126 function onPickHit(instantEvent) { 126 function onPickHit(instantEvent) {
127 selection.push(instantEvent); 127 selection.push(instantEvent);
128 } 128 }
129 var instantEventWidth = 2 * viewPixWidthWorld; 129 var instantEventWidth = 2 * viewPixWidthWorld;
130 tr.b.iterateOverIntersectingIntervals(this.processBase.instantEvents, 130 tr.b.iterateOverIntersectingIntervals(this.processBase.instantEvents,
(...skipping 15 matching lines...) Expand all
146 apply(this, arguments); 146 apply(this, arguments);
147 } 147 }
148 }; 148 };
149 149
150 return { 150 return {
151 ProcessTrack: ProcessTrack 151 ProcessTrack: ProcessTrack
152 }; 152 };
153 }); 153 });
154 </script> 154 </script>
155 155
OLDNEW
« no previous file with comments | « tracing/tracing/ui/tracks/process_memory_dump_track.html ('k') | tracing/tracing/ui/tracks/process_track_base.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698