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 28 matching lines...) Expand all Loading... |
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_) return undefined; |
50 return undefined; | |
51 return tr.b.getOnlyElement(this.currentSelection_).associatedEvents; | 50 return tr.b.getOnlyElement(this.currentSelection_).associatedEvents; |
52 } | 51 } |
53 }); | 52 }); |
54 | 53 |
55 tr.ui.analysis.AnalysisSubView.register( | 54 tr.ui.analysis.AnalysisSubView.register( |
56 'tr-ui-a-single-frame-sub-view', | 55 'tr-ui-a-single-frame-sub-view', |
57 tr.model.Frame, | 56 tr.model.Frame, |
58 { | 57 { |
59 multi: false, | 58 multi: false, |
60 title: 'Frame', | 59 title: 'Frame', |
61 }); | 60 }); |
62 </script> | 61 </script> |
OLD | NEW |