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 |
(...skipping 18 matching lines...) Expand all Loading... |
29 this.currentSelection_ = undefined; | 29 this.currentSelection_ = undefined; |
30 }, | 30 }, |
31 | 31 |
32 // TODO(polymer): Convert to Polymer property. | 32 // TODO(polymer): Convert to Polymer property. |
33 set selection(selection) { | 33 set selection(selection) { |
34 this.$.content.textContent = ''; | 34 this.$.content.textContent = ''; |
35 var realView = document.createElement('tr-ui-a-multi-event-sub-view'); | 35 var realView = document.createElement('tr-ui-a-multi-event-sub-view'); |
36 realView.eventsHaveDuration = false; | 36 realView.eventsHaveDuration = false; |
37 realView.eventsHaveSubRows = false; | 37 realView.eventsHaveSubRows = false; |
38 | 38 |
39 this.$.content.appendChild(realView); | 39 Polymer.dom(this.$.content).appendChild(realView); |
40 realView.setSelectionWithoutErrorChecks(selection); | 40 realView.setSelectionWithoutErrorChecks(selection); |
41 | 41 |
42 this.currentSelection_ = selection; | 42 this.currentSelection_ = selection; |
43 }, | 43 }, |
44 | 44 |
45 get selection() { | 45 get selection() { |
46 return this.currentSelection_; | 46 return this.currentSelection_; |
47 } | 47 } |
48 }); | 48 }); |
49 </script> | 49 </script> |
OLD | NEW |