| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 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/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
| 9 <link rel="import" href="/tracing/ui/analysis/alert_sub_view.html"> | 9 <link rel="import" href="/tracing/ui/analysis/alert_sub_view.html"> |
| 10 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> | 10 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 </style> | 23 </style> |
| 24 <tr-ui-a-alert-sub-view id="asv"> | 24 <tr-ui-a-alert-sub-view id="asv"> |
| 25 </tr-ui-a-alert-sub-view> | 25 </tr-ui-a-alert-sub-view> |
| 26 </template> | 26 </template> |
| 27 </dom-module> | 27 </dom-module> |
| 28 <script> | 28 <script> |
| 29 'use strict'; | 29 'use strict'; |
| 30 | 30 |
| 31 Polymer({ | 31 Polymer({ |
| 32 is: 'tr-ui-a-single-frame-sub-view', | 32 is: 'tr-ui-a-single-frame-sub-view', |
| 33 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 33 behaviors: [tr.ui.analysis.AnalysisSubView], |
| 34 | 34 |
| 35 ready: function() { | 35 ready: function() { |
| 36 this.currentSelection_ = undefined; | 36 this.currentSelection_ = undefined; |
| 37 }, | 37 }, |
| 38 | 38 |
| 39 get selection() { | 39 get selection() { |
| 40 return this.currentSelection_; | 40 return this.currentSelection_; |
| 41 }, | 41 }, |
| 42 | 42 |
| 43 set selection(selection) { | 43 set selection(selection) { |
| 44 this.currentSelection_ = selection; | 44 this.currentSelection_ = selection; |
| 45 this.$.asv.selection = tr.b.getOnlyElement(selection).associatedAlerts; | 45 this.$.asv.selection = tr.b.getOnlyElement(selection).associatedAlerts; |
| 46 }, | 46 }, |
| 47 | 47 |
| 48 get relatedEventsToHighlight() { | 48 get relatedEventsToHighlight() { |
| 49 if (!this.currentSelection_) | 49 if (!this.currentSelection_) |
| 50 return undefined; | 50 return undefined; |
| 51 return tr.b.getOnlyElement(this.currentSelection_).associatedEvents; | 51 return tr.b.getOnlyElement(this.currentSelection_).associatedEvents; |
| 52 } | 52 } |
| 53 }); | 53 }); |
| 54 </script> | 54 </script> |
| OLD | NEW |