| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |