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

Side by Side Diff: tracing/tracing/ui/tracks/slice_group_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/multi_row_track.html"> 8 <link rel="import" href="/tracing/ui/tracks/multi_row_track.html">
9 <link rel="import" href="/tracing/base/sorted_array_utils.html"> 9 <link rel="import" href="/tracing/base/sorted_array_utils.html">
10 <link rel="import" href="/tracing/ui/base/ui.html"> 10 <link rel="import" href="/tracing/ui/base/ui.html">
(...skipping 19 matching lines...) Expand all
30 this.classList.add('slice-group-track'); 30 this.classList.add('slice-group-track');
31 this.group_ = undefined; 31 this.group_ = undefined;
32 // Set the collapse threshold so we don't collapse by default, but the 32 // Set the collapse threshold so we don't collapse by default, but the
33 // user can explicitly collapse if they want it. 33 // user can explicitly collapse if they want it.
34 this.defaultToCollapsedWhenSubRowCountMoreThan = 100; 34 this.defaultToCollapsedWhenSubRowCountMoreThan = 100;
35 }, 35 },
36 36
37 addSubTrack_: function(slices) { 37 addSubTrack_: function(slices) {
38 var track = new tr.ui.tracks.SliceTrack(this.viewport); 38 var track = new tr.ui.tracks.SliceTrack(this.viewport);
39 track.slices = slices; 39 track.slices = slices;
40 this.appendChild(track); 40 Polymer.dom(this).appendChild(track);
41 return track; 41 return track;
42 }, 42 },
43 43
44 get group() { 44 get group() {
45 return this.group_; 45 return this.group_;
46 }, 46 },
47 47
48 set group(group) { 48 set group(group) {
49 this.group_ = group; 49 this.group_ = group;
50 this.setItemsToGroup(this.group_.slices, this.group_); 50 this.setItemsToGroup(this.group_.slices, this.group_);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 return subRows; 160 return subRows;
161 } 161 }
162 }; 162 };
163 163
164 return { 164 return {
165 SliceGroupTrack: SliceGroupTrack 165 SliceGroupTrack: SliceGroupTrack
166 }; 166 };
167 }); 167 });
168 </script> 168 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/tracks/ruler_track.html ('k') | tracing/tracing/ui/tracks/spacing_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698