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/rect_track.css"> | 8 <link rel="stylesheet" href="/tracing/ui/tracks/rect_track.css"> |
9 | 9 |
10 <link rel="import" href="/tracing/base/sorted_array_utils.html"> | 10 <link rel="import" href="/tracing/base/sorted_array_utils.html"> |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 __proto__: tr.ui.tracks.Track.prototype, | 33 __proto__: tr.ui.tracks.Track.prototype, |
34 | 34 |
35 decorate: function(viewport) { | 35 decorate: function(viewport) { |
36 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); | 36 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); |
37 this.classList.add('rect-track'); | 37 this.classList.add('rect-track'); |
38 this.asyncStyle_ = false; | 38 this.asyncStyle_ = false; |
39 this.rects_ = null; | 39 this.rects_ = null; |
40 | 40 |
41 this.heading_ = document.createElement('tr-ui-heading'); | 41 this.heading_ = document.createElement('tr-ui-heading'); |
42 this.appendChild(this.heading_); | 42 Polymer.dom(this).appendChild(this.heading_); |
43 }, | 43 }, |
44 | 44 |
45 set heading(heading) { | 45 set heading(heading) { |
46 this.heading_.heading = heading; | 46 this.heading_.heading = heading; |
47 }, | 47 }, |
48 | 48 |
49 get heading() { | 49 get heading() { |
50 return this.heading_.heading; | 50 return this.heading_.heading; |
51 }, | 51 }, |
52 | 52 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 Rect.prototype = { | 242 Rect.prototype = { |
243 __proto__: tr.model.ProxySelectableItem.prototype | 243 __proto__: tr.model.ProxySelectableItem.prototype |
244 }; | 244 }; |
245 | 245 |
246 return { | 246 return { |
247 RectTrack: RectTrack, | 247 RectTrack: RectTrack, |
248 Rect: Rect | 248 Rect: Rect |
249 }; | 249 }; |
250 }); | 250 }); |
251 </script> | 251 </script> |
OLD | NEW |