OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2016 The Chromium Authors. All rights reserved. | 3 Copyright 2016 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/unit.html"> | 8 <link rel="import" href="/tracing/base/unit.html"> |
9 <link rel="import" href="/tracing/extras/chrome/blame_context/frame_tree_node.ht
ml"> | 9 <link rel="import" href="/tracing/extras/chrome/blame_context/frame_tree_node.ht
ml"> |
10 <link rel="import" href="/tracing/extras/chrome/blame_context/render_frame.html"
> | 10 <link rel="import" href="/tracing/extras/chrome/blame_context/render_frame.html"
> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // TODO(xiaochengh): Add grouping by site and probably more... | 164 // TODO(xiaochengh): Add grouping by site and probably more... |
165 }; | 165 }; |
166 | 166 |
167 Polymer({ | 167 Polymer({ |
168 is: 'tr-ui-e-s-frame-data-side-panel', | 168 is: 'tr-ui-e-s-frame-data-side-panel', |
169 behaviors: [tr.ui.behaviors.SidePanel], | 169 behaviors: [tr.ui.behaviors.SidePanel], |
170 | 170 |
171 ready: function() { | 171 ready: function() { |
172 this.model_ = undefined; | 172 this.model_ = undefined; |
173 this.rangeOfInterest_ = new tr.b.Range(); | 173 this.rangeOfInterest_ = new tr.b.math.Range(); |
174 | 174 |
175 this.$.table.showHeader = true; | 175 this.$.table.showHeader = true; |
176 this.$.table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW; | 176 this.$.table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW; |
177 this.$.table.tableColumns = this.createFrameDataTableColumns_(); | 177 this.$.table.tableColumns = this.createFrameDataTableColumns_(); |
178 | 178 |
179 this.$.table.addEventListener('selection-changed', function(e) { | 179 this.$.table.addEventListener('selection-changed', function(e) { |
180 this.selectEventSet_(this.$.table.selectedTableRow.eventsOfInterest); | 180 this.selectEventSet_(this.$.table.selectedTableRow.eventsOfInterest); |
181 }.bind(this)); | 181 }.bind(this)); |
182 | 182 |
183 this.$.select.addEventListener('change', function(e) { | 183 this.$.select.addEventListener('change', function(e) { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 this.model_ = model; | 330 this.model_ = model; |
331 this.updateContents_(); | 331 this.updateContents_(); |
332 } | 332 } |
333 }); | 333 }); |
334 | 334 |
335 tr.ui.side_panel.SidePanelRegistry.register(function() { | 335 tr.ui.side_panel.SidePanelRegistry.register(function() { |
336 return document.createElement('tr-ui-e-s-frame-data-side-panel'); | 336 return document.createElement('tr-ui-e-s-frame-data-side-panel'); |
337 }); | 337 }); |
338 }); | 338 }); |
339 </script> | 339 </script> |
OLD | NEW |