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/model/event_set.html"> | 8 <link rel="import" href="/tracing/model/event_set.html"> |
9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> | 9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
10 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html"> | 10 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html"> |
(...skipping 20 matching lines...) Expand all Loading... |
31 <tr-ui-a-related-events id="relatedEvents"></tr-ui-a-related-events> | 31 <tr-ui-a-related-events id="relatedEvents"></tr-ui-a-related-events> |
32 </div> | 32 </div> |
33 </div> | 33 </div> |
34 </template> | 34 </template> |
35 </dom-module> | 35 </dom-module> |
36 <script> | 36 <script> |
37 'use strict'; | 37 'use strict'; |
38 | 38 |
39 Polymer({ | 39 Polymer({ |
40 is: 'tr-ui-a-multi-async-slice-sub-view', | 40 is: 'tr-ui-a-multi-async-slice-sub-view', |
41 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 41 behaviors: [tr.ui.analysis.AnalysisSubView], |
42 | 42 |
43 get selection() { | 43 get selection() { |
44 return this.$.content.selection; | 44 return this.$.content.selection; |
45 }, | 45 }, |
46 | 46 |
47 set selection(selection) { | 47 set selection(selection) { |
48 this.$.content.selection = selection; | 48 this.$.content.selection = selection; |
49 this.$.relatedEvents.setRelatedEvents(selection); | 49 this.$.relatedEvents.setRelatedEvents(selection); |
50 if (this.$.relatedEvents.hasRelatedEvents()) { | 50 if (this.$.relatedEvents.hasRelatedEvents()) { |
51 this.$.relatedEvents.style.display = ''; | 51 this.$.relatedEvents.style.display = ''; |
(...skipping 12 matching lines...) Expand all Loading... |
64 asyncEvent.associatedEvents.forEach(function(event) { | 64 asyncEvent.associatedEvents.forEach(function(event) { |
65 selection.push(event); | 65 selection.push(event); |
66 }); | 66 }); |
67 }); | 67 }); |
68 if (selection.length) | 68 if (selection.length) |
69 return selection; | 69 return selection; |
70 return undefined; | 70 return undefined; |
71 } | 71 } |
72 }); | 72 }); |
73 </script> | 73 </script> |
OLD | NEW |