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/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/single_event_sub_view.html"> | 9 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html"> |
10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> | 10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> |
11 | 11 |
12 <script> | 12 <script> |
13 'use strict'; | 13 'use strict'; |
14 | 14 |
15 Polymer({ | 15 Polymer({ |
16 is: 'tr-ui-a-single-alert-sub-view', | 16 is: 'tr-ui-a-single-alert-sub-view', |
17 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 17 behaviors: [tr.ui.analysis.AnalysisSubView], |
18 | 18 |
19 created: function() { | 19 created: function() { |
20 this.currentSelection_ = undefined; | 20 this.currentSelection_ = undefined; |
21 }, | 21 }, |
22 | 22 |
23 set selection(selection) { | 23 set selection(selection) { |
24 this.currentSelection_ = selection; | 24 this.currentSelection_ = selection; |
25 | 25 |
26 Polymer.dom(this).textContent = ''; | 26 Polymer.dom(this).textContent = ''; |
27 var realView = document.createElement('tr-ui-a-single-event-sub-view'); | 27 var realView = document.createElement('tr-ui-a-single-event-sub-view'); |
(...skipping 28 matching lines...) Expand all Loading... |
56 isExpanded: true, subRows: eventSubRows | 56 isExpanded: true, subRows: eventSubRows |
57 }); | 57 }); |
58 } | 58 } |
59 }.bind(this); | 59 }.bind(this); |
60 | 60 |
61 Polymer.dom(this).appendChild(realView); | 61 Polymer.dom(this).appendChild(realView); |
62 realView.setSelectionWithoutErrorChecks(selection); | 62 realView.setSelectionWithoutErrorChecks(selection); |
63 } | 63 } |
64 }); | 64 }); |
65 </script> | 65 </script> |
OLD | NEW |