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/ruler_track.css"> | 8 <link rel="stylesheet" href="/tracing/ui/tracks/ruler_track.css"> |
9 | 9 |
10 <link rel="import" href="/tracing/ui/base/draw_helpers.html"> | 10 <link rel="import" href="/tracing/ui/base/draw_helpers.html"> |
(...skipping 26 matching lines...) Expand all Loading... |
37 this.strings_secs_ = []; | 37 this.strings_secs_ = []; |
38 this.strings_msecs_ = []; | 38 this.strings_msecs_ = []; |
39 this.strings_usecs_ = []; | 39 this.strings_usecs_ = []; |
40 this.strings_nsecs_ = []; | 40 this.strings_nsecs_ = []; |
41 | 41 |
42 this.viewportChange_ = this.viewportChange_.bind(this); | 42 this.viewportChange_ = this.viewportChange_.bind(this); |
43 viewport.addEventListener('change', this.viewportChange_); | 43 viewport.addEventListener('change', this.viewportChange_); |
44 | 44 |
45 var heading = document.createElement('tr-ui-heading'); | 45 var heading = document.createElement('tr-ui-heading'); |
46 heading.arrowVisible = false; | 46 heading.arrowVisible = false; |
47 this.appendChild(heading); | 47 Polymer.dom(this).appendChild(heading); |
48 }, | 48 }, |
49 | 49 |
50 detach: function() { | 50 detach: function() { |
51 tr.ui.tracks.Track.prototype.detach.call(this); | 51 tr.ui.tracks.Track.prototype.detach.call(this); |
52 this.viewport.removeEventListener('change', | 52 this.viewport.removeEventListener('change', |
53 this.viewportChange_); | 53 this.viewportChange_); |
54 }, | 54 }, |
55 | 55 |
56 viewportChange_: function() { | 56 viewportChange_: function() { |
57 if (this.viewport.interestRange.isEmpty) | 57 if (this.viewport.interestRange.isEmpty) |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 365 |
366 addAllEventsMatchingFilterToSelection: function(filter, selection) { | 366 addAllEventsMatchingFilterToSelection: function(filter, selection) { |
367 } | 367 } |
368 }; | 368 }; |
369 | 369 |
370 return { | 370 return { |
371 RulerTrack: RulerTrack | 371 RulerTrack: RulerTrack |
372 }; | 372 }; |
373 }); | 373 }); |
374 </script> | 374 </script> |
OLD | NEW |