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="stylesheet" href="/tracing/ui/tracks/spacing_track.css"> | 8 <link rel="stylesheet" href="/tracing/ui/tracks/spacing_track.css"> |
9 | 9 |
10 <link rel="import" href="/tracing/ui/base/heading.html"> | 10 <link rel="import" href="/tracing/ui/base/heading.html"> |
(...skipping 12 matching lines...) Expand all Loading... |
23 var SpacingTrack = tr.ui.b.define('spacing-track', tr.ui.tracks.Track); | 23 var SpacingTrack = tr.ui.b.define('spacing-track', tr.ui.tracks.Track); |
24 | 24 |
25 SpacingTrack.prototype = { | 25 SpacingTrack.prototype = { |
26 __proto__: tr.ui.tracks.Track.prototype, | 26 __proto__: tr.ui.tracks.Track.prototype, |
27 | 27 |
28 decorate: function(viewport) { | 28 decorate: function(viewport) { |
29 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); | 29 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); |
30 this.classList.add('spacing-track'); | 30 this.classList.add('spacing-track'); |
31 | 31 |
32 this.heading_ = document.createElement('tr-ui-heading'); | 32 this.heading_ = document.createElement('tr-ui-heading'); |
33 this.appendChild(this.heading_); | 33 Polymer.dom(this).appendChild(this.heading_); |
34 }, | 34 }, |
35 | 35 |
36 addAllEventsMatchingFilterToSelection: function(filter, selection) { | 36 addAllEventsMatchingFilterToSelection: function(filter, selection) { |
37 } | 37 } |
38 }; | 38 }; |
39 | 39 |
40 return { | 40 return { |
41 SpacingTrack: SpacingTrack | 41 SpacingTrack: SpacingTrack |
42 }; | 42 }; |
43 }); | 43 }); |
44 </script> | 44 </script> |
45 | 45 |
OLD | NEW |