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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 'use strict'; | 62 'use strict'; |
63 | 63 |
64 /** | 64 /** |
65 * @fileoverview ProfilingView glues the View control to | 65 * @fileoverview ProfilingView glues the View control to |
66 * TracingController. | 66 * TracingController. |
67 */ | 67 */ |
68 tr.exportTo('tr.ui.e.about_tracing', function() { | 68 tr.exportTo('tr.ui.e.about_tracing', function() { |
69 /** | 69 /** |
70 * ProfilingView | 70 * ProfilingView |
71 * @constructor | 71 * @constructor |
72 * @extends {HTMLUnknownElement} | 72 * @extends {HTMLDivElement} |
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__: HTMLDivElement.prototype, |
79 | 79 |
80 decorate: function(tracingControllerClient) { | 80 decorate: function(tracingControllerClient) { |
81 Polymer.dom(this).appendChild( | 81 Polymer.dom(this).appendChild( |
82 tr.ui.b.instantiateTemplate('#profiling-view-template', THIS_DOC)); | 82 tr.ui.b.instantiateTemplate('#profiling-view-template', 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" |
(...skipping 271 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 |