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="import" href="/tracing/base/base64.html"> | 8 <link rel="import" href="/tracing/base/base64.html"> |
9 <link rel="import" href="/tracing/importer/import.html"> | 9 <link rel="import" href="/tracing/importer/import.html"> |
10 <link rel="import" href="/tracing/ui/base/file.html"> | 10 <link rel="import" href="/tracing/ui/base/file.html"> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * @constructor | 71 * @constructor |
72 * @extends {HTMLUnknownElement} | 72 * @extends {HTMLUnknownElement} |
73 */ | 73 */ |
74 var ProfilingView = tr.ui.b.define('x-profiling-view'); | 74 var ProfilingView = tr.ui.b.define('x-profiling-view'); |
75 var THIS_DOC = document.currentScript.ownerDocument; | 75 var THIS_DOC = document.currentScript.ownerDocument; |
76 | 76 |
77 ProfilingView.prototype = { | 77 ProfilingView.prototype = { |
78 __proto__: HTMLUnknownElement.prototype, | 78 __proto__: HTMLUnknownElement.prototype, |
79 | 79 |
80 decorate: function(tracingControllerClient) { | 80 decorate: function(tracingControllerClient) { |
81 this.appendChild(tr.ui.b.instantiateTemplate('#profiling-view-template', | 81 Polymer.dom(this).appendChild(tr.ui.b.instantiateTemplate('#profiling-view
-template', |
82 THIS_DOC)); | 82 THIS_DOC)); |
83 | 83 |
84 this.timelineView_ = this.querySelector('tr-ui-timeline-view'); | 84 this.timelineView_ = this.querySelector('tr-ui-timeline-view'); |
85 this.infoBarGroup_ = this.querySelector('tr-ui-b-info-bar-group'); | 85 this.infoBarGroup_ = this.querySelector('tr-ui-b-info-bar-group'); |
86 | 86 |
87 // Detach the buttons. We will reattach them to the timeline view. | 87 // Detach the buttons. We will reattach them to the timeline view. |
88 // TODO(nduca): Make timeline-view have a content select="x-buttons" | 88 // TODO(nduca): Make timeline-view have a content select="x-buttons" |
89 // that pulls in any buttons. | 89 // that pulls in any buttons. |
90 this.recordButton_ = this.querySelector('#record-button'); | 90 this.recordButton_ = this.querySelector('#record-button'); |
91 this.loadButton_ = this.querySelector('#load-button'); | 91 this.loadButton_ = this.querySelector('#load-button'); |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 }); | 360 }); |
361 return false; | 361 return false; |
362 } | 362 } |
363 }; | 363 }; |
364 | 364 |
365 return { | 365 return { |
366 ProfilingView: ProfilingView | 366 ProfilingView: ProfilingView |
367 }; | 367 }; |
368 }); | 368 }); |
369 </script> | 369 </script> |
OLD | NEW |