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/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
9 <link rel="import" href="/tracing/model/event_set.html"> | 9 <link rel="import" href="/tracing/model/event_set.html"> |
10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> | 10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 function createAnalysisLinkTo(event) { | 28 function createAnalysisLinkTo(event) { |
29 var linkEl = document.createElement('tr-ui-a-analysis-link'); | 29 var linkEl = document.createElement('tr-ui-a-analysis-link'); |
30 linkEl.setSelectionAndContent( | 30 linkEl.setSelectionAndContent( |
31 new tr.model.EventSet(event), event.userFriendlyName); | 31 new tr.model.EventSet(event), event.userFriendlyName); |
32 return linkEl; | 32 return linkEl; |
33 } | 33 } |
34 | 34 |
35 Polymer({ | 35 Polymer({ |
36 is: 'tr-ui-a-single-flow-event-sub-view', | 36 is: 'tr-ui-a-single-flow-event-sub-view', |
37 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 37 behaviors: [tr.ui.analysis.AnalysisSubView], |
38 | 38 |
39 listeners: { | 39 listeners: { |
40 'singleEventSubView.customize-rows': 'onCustomizeRows_' | 40 'singleEventSubView.customize-rows': 'onCustomizeRows_' |
41 }, | 41 }, |
42 | 42 |
43 set selection(selection) { | 43 set selection(selection) { |
44 this.currentSelection_ = selection; | 44 this.currentSelection_ = selection; |
45 this.$.singleEventSubView.setSelectionWithoutErrorChecks(selection); | 45 this.$.singleEventSubView.setSelectionWithoutErrorChecks(selection); |
46 }, | 46 }, |
47 | 47 |
(...skipping 18 matching lines...) Expand all Loading... |
66 name: 'From', | 66 name: 'From', |
67 value: createAnalysisLinkTo(event.startSlice) | 67 value: createAnalysisLinkTo(event.startSlice) |
68 }); | 68 }); |
69 rows.push({ | 69 rows.push({ |
70 name: 'To', | 70 name: 'To', |
71 value: createAnalysisLinkTo(event.endSlice) | 71 value: createAnalysisLinkTo(event.endSlice) |
72 }); | 72 }); |
73 } | 73 } |
74 }); | 74 }); |
75 </script> | 75 </script> |
OLD | NEW |