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/ui/analysis/analysis_sub_view.html"> | 8 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
9 <link rel="import" href="/tracing/ui/analysis/related_events.html"> | 9 <link rel="import" href="/tracing/ui/analysis/related_events.html"> |
10 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html"> | 10 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html"> |
(...skipping 16 matching lines...) Expand all Loading... |
27 <tr-ui-a-related-events id="relatedEvents"> | 27 <tr-ui-a-related-events id="relatedEvents"> |
28 </tr-ui-a-related-events> | 28 </tr-ui-a-related-events> |
29 </div> | 29 </div> |
30 </template> | 30 </template> |
31 </dom-module> | 31 </dom-module> |
32 <script> | 32 <script> |
33 'use strict'; | 33 'use strict'; |
34 | 34 |
35 Polymer({ | 35 Polymer({ |
36 is: 'tr-ui-a-single-thread-slice-sub-view', | 36 is: 'tr-ui-a-single-thread-slice-sub-view', |
37 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 37 behaviors: [tr.ui.analysis.AnalysisSubView], |
38 | 38 |
39 get selection() { | 39 get selection() { |
40 return this.$.content.selection; | 40 return this.$.content.selection; |
41 }, | 41 }, |
42 | 42 |
43 set selection(selection) { | 43 set selection(selection) { |
44 this.$.content.selection = selection; | 44 this.$.content.selection = selection; |
45 this.$.relatedEvents.setRelatedEvents(selection); | 45 this.$.relatedEvents.setRelatedEvents(selection); |
46 if (this.$.relatedEvents.hasRelatedEvents()) | 46 if (this.$.relatedEvents.hasRelatedEvents()) |
47 this.$.relatedEvents.style.display = ''; | 47 this.$.relatedEvents.style.display = ''; |
48 else | 48 else |
49 this.$.relatedEvents.style.display = 'none'; | 49 this.$.relatedEvents.style.display = 'none'; |
50 } | 50 } |
51 }); | 51 }); |
52 </script> | 52 </script> |
OLD | NEW |