| 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/multi_event_sub_view.html"> | 9 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html"> |
| 10 | 10 |
| 11 <dom-module id='tr-ui-a-multi-cpu-slice-sub-view'> | 11 <dom-module id='tr-ui-a-multi-cpu-slice-sub-view'> |
| 12 <template> | 12 <template> |
| 13 <style> | 13 <style> |
| 14 :host { | 14 :host { |
| 15 display: flex; | 15 display: flex; |
| 16 } | 16 } |
| 17 #content { | 17 #content { |
| 18 flex: 1 1 auto; | 18 flex: 1 1 auto; |
| 19 } | 19 } |
| 20 </style> | 20 </style> |
| 21 <tr-ui-a-multi-event-sub-view id="content"></tr-ui-a-multi-event-sub-view> | 21 <tr-ui-a-multi-event-sub-view id="content"></tr-ui-a-multi-event-sub-view> |
| 22 </template> | 22 </template> |
| 23 </dom-module> | 23 </dom-module> |
| 24 <script> | 24 <script> |
| 25 'use strict'; | 25 'use strict'; |
| 26 | 26 |
| 27 Polymer({ | 27 Polymer({ |
| 28 is: 'tr-ui-a-multi-cpu-slice-sub-view', | 28 is: 'tr-ui-a-multi-cpu-slice-sub-view', |
| 29 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 29 behaviors: [tr.ui.analysis.AnalysisSubView], |
| 30 | 30 |
| 31 ready: function() { | 31 ready: function() { |
| 32 this.$.content.eventsHaveSubRows = false; | 32 this.$.content.eventsHaveSubRows = false; |
| 33 }, | 33 }, |
| 34 | 34 |
| 35 get selection() { | 35 get selection() { |
| 36 return this.$.content.selection; | 36 return this.$.content.selection; |
| 37 }, | 37 }, |
| 38 | 38 |
| 39 set selection(selection) { | 39 set selection(selection) { |
| 40 this.$.content.setSelectionWithoutErrorChecks(selection); | 40 this.$.content.setSelectionWithoutErrorChecks(selection); |
| 41 } | 41 } |
| 42 }); | 42 }); |
| 43 </script> | 43 </script> |
| OLD | NEW |