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/base/base.html"> | 8 <link rel="import" href="/tracing/base/base.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_details_table.html"> | 10 <link rel="import" href="/tracing/ui/analysis/multi_event_details_table.html"> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 </style> | 45 </style> |
46 <div id="content"></div> | 46 <div id="content"></div> |
47 </template> | 47 </template> |
48 </dom-module> | 48 </dom-module> |
49 <script> | 49 <script> |
50 'use strict'; | 50 'use strict'; |
51 | 51 |
52 Polymer({ | 52 Polymer({ |
53 is: 'tr-ui-a-multi-event-sub-view', | 53 is: 'tr-ui-a-multi-event-sub-view', |
54 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 54 behaviors: [tr.ui.analysis.AnalysisSubView], |
55 | 55 |
56 created: function() { | 56 created: function() { |
57 this.currentSelection_ = undefined; | 57 this.currentSelection_ = undefined; |
58 this.eventsHaveDuration_ = true; | 58 this.eventsHaveDuration_ = true; |
59 this.eventsHaveSubRows_ = true; | 59 this.eventsHaveSubRows_ = true; |
60 }, | 60 }, |
61 | 61 |
62 set selection(selection) { | 62 set selection(selection) { |
63 if (selection.length <= 1) | 63 if (selection.length <= 1) |
64 throw new Error('Only supports multiple items'); | 64 throw new Error('Only supports multiple items'); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 var detailsTableEl = document.createElement( | 121 var detailsTableEl = document.createElement( |
122 'tr-ui-a-multi-event-details-table'); | 122 'tr-ui-a-multi-event-details-table'); |
123 detailsTableEl.eventsHaveDuration = this.eventsHaveDuration_; | 123 detailsTableEl.eventsHaveDuration = this.eventsHaveDuration_; |
124 detailsTableEl.eventsHaveSubRows = this.eventsHaveSubRows_; | 124 detailsTableEl.eventsHaveSubRows = this.eventsHaveSubRows_; |
125 detailsTableEl.selection = selection; | 125 detailsTableEl.selection = selection; |
126 Polymer.dom(this.$.content).appendChild(detailsTableEl); | 126 Polymer.dom(this.$.content).appendChild(detailsTableEl); |
127 } | 127 } |
128 } | 128 } |
129 }); | 129 }); |
130 </script> | 130 </script> |
OLD | NEW |