OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 2015 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/base.html"> | 8 <link rel="import" href="/tracing/base/base.html"> |
9 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 9 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
10 <link rel="import" href="/tracing/model/event_set.html"> | 10 <link rel="import" href="/tracing/model/event_set.html"> |
(...skipping 17 matching lines...) Expand all Loading... |
28 </style> | 28 </style> |
29 <tr-ui-b-table id="table"> | 29 <tr-ui-b-table id="table"> |
30 </tr-ui-b-table> | 30 </tr-ui-b-table> |
31 </template> | 31 </template> |
32 </dom-module> | 32 </dom-module> |
33 <script> | 33 <script> |
34 'use strict'; | 34 'use strict'; |
35 | 35 |
36 Polymer({ | 36 Polymer({ |
37 is: 'tr-ui-a-alert-sub-view', | 37 is: 'tr-ui-a-alert-sub-view', |
38 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 38 behaviors: [tr.ui.analysis.AnalysisSubView], |
39 | 39 |
40 ready: function() { | 40 ready: function() { |
41 this.currentSelection_ = undefined; | 41 this.currentSelection_ = undefined; |
42 this.$.table.tableColumns = [ | 42 this.$.table.tableColumns = [ |
43 { | 43 { |
44 title: 'Label', | 44 title: 'Label', |
45 value: function(row) { return row.name; }, | 45 value: function(row) { return row.name; }, |
46 width: '150px' | 46 width: '150px' |
47 }, | 47 }, |
48 { | 48 { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 get relatedEventsToHighlight() { | 154 get relatedEventsToHighlight() { |
155 if (!this.currentSelection_) | 155 if (!this.currentSelection_) |
156 return undefined; | 156 return undefined; |
157 var result = new tr.model.EventSet(); | 157 var result = new tr.model.EventSet(); |
158 for (var event of this.currentSelection_) | 158 for (var event of this.currentSelection_) |
159 result.addEventSet(event.associatedEvents); | 159 result.addEventSet(event.associatedEvents); |
160 return result; | 160 return result; |
161 } | 161 } |
162 }); | 162 }); |
163 </script> | 163 </script> |
OLD | NEW |