| 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/thread_track.css"> | 8 <link rel="stylesheet" href="/tracing/ui/tracks/thread_track.css"> | 
| 9 | 9 | 
| 10 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 10 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25    * Visualizes a Thread using a series of SliceTracks. | 25    * Visualizes a Thread using a series of SliceTracks. | 
| 26    * @constructor | 26    * @constructor | 
| 27    */ | 27    */ | 
| 28   var ThreadTrack = tr.ui.b.define('thread-track', | 28   var ThreadTrack = tr.ui.b.define('thread-track', | 
| 29                                    tr.ui.tracks.ContainerTrack); | 29                                    tr.ui.tracks.ContainerTrack); | 
| 30   ThreadTrack.prototype = { | 30   ThreadTrack.prototype = { | 
| 31     __proto__: tr.ui.tracks.ContainerTrack.prototype, | 31     __proto__: tr.ui.tracks.ContainerTrack.prototype, | 
| 32 | 32 | 
| 33     decorate: function(viewport) { | 33     decorate: function(viewport) { | 
| 34       tr.ui.tracks.ContainerTrack.prototype.decorate.call(this, viewport); | 34       tr.ui.tracks.ContainerTrack.prototype.decorate.call(this, viewport); | 
| 35       this.classList.add('thread-track'); | 35       Polymer.dom(this).classList.add('thread-track'); | 
| 36     }, | 36     }, | 
| 37 | 37 | 
| 38     get thread() { | 38     get thread() { | 
| 39       return this.thread_; | 39       return this.thread_; | 
| 40     }, | 40     }, | 
| 41 | 41 | 
| 42     set thread(thread) { | 42     set thread(thread) { | 
| 43       this.thread_ = thread; | 43       this.thread_ = thread; | 
| 44       this.updateContents_(); | 44       this.updateContents_(); | 
| 45     }, | 45     }, | 
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 154         } | 154         } | 
| 155       } | 155       } | 
| 156     } | 156     } | 
| 157   }; | 157   }; | 
| 158 | 158 | 
| 159   return { | 159   return { | 
| 160     ThreadTrack: ThreadTrack | 160     ThreadTrack: ThreadTrack | 
| 161   }; | 161   }; | 
| 162 }); | 162 }); | 
| 163 </script> | 163 </script> | 
| OLD | NEW | 
|---|