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

Side by Side Diff: tracing/tracing/ui/tracks/ruler_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="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
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/tracks/rect_track.html ('k') | tracing/tracing/ui/tracks/slice_group_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698