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 <link rel="import" href="/tracing/ui/analysis/related_events.html"> | 10 <link rel="import" href="/tracing/ui/analysis/related_events.html"> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 if (tr.ui.e.chrome.cc.RasterTaskSelection.supports(selection)) { | 54 if (tr.ui.e.chrome.cc.RasterTaskSelection.supports(selection)) { |
55 var ltvSelection = new tr.ui.e.chrome.cc.RasterTaskSelection( | 55 var ltvSelection = new tr.ui.e.chrome.cc.RasterTaskSelection( |
56 selection); | 56 selection); |
57 | 57 |
58 var ltv = new tr.ui.e.chrome.cc.LayerTreeHostImplSnapshotView(); | 58 var ltv = new tr.ui.e.chrome.cc.LayerTreeHostImplSnapshotView(); |
59 ltv.objectSnapshot = ltvSelection.containingSnapshot; | 59 ltv.objectSnapshot = ltvSelection.containingSnapshot; |
60 ltv.selection = ltvSelection; | 60 ltv.selection = ltvSelection; |
61 ltv.extraHighlightsByLayerId = ltvSelection.extraHighlightsByLayerId; | 61 ltv.extraHighlightsByLayerId = ltvSelection.extraHighlightsByLayerId; |
62 | 62 |
63 this.$.content.textContent = ''; | 63 this.$.content.textContent = ''; |
64 this.$.content.appendChild(ltv); | 64 Polymer.dom(this.$.content).appendChild(ltv); |
65 | 65 |
66 this.requiresTallView_ = true; | 66 this.requiresTallView_ = true; |
67 return; | 67 return; |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 this.$.content.textContent = ''; | 71 this.$.content.textContent = ''; |
72 | 72 |
73 var mesv = document.createElement('tr-ui-a-multi-event-sub-view'); | 73 var mesv = document.createElement('tr-ui-a-multi-event-sub-view'); |
74 mesv.selection = selection; | 74 mesv.selection = selection; |
75 this.$.content.appendChild(mesv); | 75 Polymer.dom(this.$.content).appendChild(mesv); |
76 | 76 |
77 var relatedEvents = document.createElement('tr-ui-a-related-events'); | 77 var relatedEvents = document.createElement('tr-ui-a-related-events'); |
78 relatedEvents.setRelatedEvents(selection); | 78 relatedEvents.setRelatedEvents(selection); |
79 | 79 |
80 if (relatedEvents.hasRelatedEvents()) { | 80 if (relatedEvents.hasRelatedEvents()) { |
81 this.$.content.appendChild(relatedEvents); | 81 Polymer.dom(this.$.content).appendChild(relatedEvents); |
82 } | 82 } |
83 }, | 83 }, |
84 | 84 |
85 get requiresTallView() { | 85 get requiresTallView() { |
86 if (this.$.content.children.length === 0) | 86 if (this.$.content.children.length === 0) |
87 return false; | 87 return false; |
88 var childTagName = this.$.content.children[0].tagName; | 88 var childTagName = this.$.content.children[0].tagName; |
89 if (childTagName === 'TR-UI-A-MULTI-EVENT-SUB-VIEW') | 89 if (childTagName === 'TR-UI-A-MULTI-EVENT-SUB-VIEW') |
90 return false; | 90 return false; |
91 | 91 |
92 // Using raster task view. | 92 // Using raster task view. |
93 return true; | 93 return true; |
94 } | 94 } |
95 }); | 95 }); |
96 </script> | 96 </script> |
OLD | NEW |