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/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
9 <link rel="import" href="/tracing/model/event_set.html"> | 9 <link rel="import" href="/tracing/model/event_set.html"> |
10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> | 10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 </style> | 45 </style> |
46 <content></content> | 46 <content></content> |
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-single-object-snapshot-sub-view', | 53 is: 'tr-ui-a-single-object-snapshot-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 }, | 58 }, |
59 | 59 |
60 get requiresTallView() { | 60 get requiresTallView() { |
61 if (this.children.length === 0) | 61 if (this.children.length === 0) |
62 return false; | 62 return false; |
63 if (this.children[0] instanceof tr.ui.analysis.ObjectSnapshotView) | 63 if (this.children[0] instanceof tr.ui.analysis.ObjectSnapshotView) |
64 return this.children[0].requiresTallView; | 64 return this.children[0].requiresTallView; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 var argsEl = document.createElement('td'); | 121 var argsEl = document.createElement('td'); |
122 argsEl.id = 'args'; | 122 argsEl.id = 'args'; |
123 Polymer.dom(rowEl).appendChild(argsEl); | 123 Polymer.dom(rowEl).appendChild(argsEl); |
124 | 124 |
125 var objectViewEl = document.createElement('tr-ui-a-generic-object-view'); | 125 var objectViewEl = document.createElement('tr-ui-a-generic-object-view'); |
126 objectViewEl.object = snapshot.args; | 126 objectViewEl.object = snapshot.args; |
127 Polymer.dom(argsEl).appendChild(objectViewEl); | 127 Polymer.dom(argsEl).appendChild(objectViewEl); |
128 } | 128 } |
129 }); | 129 }); |
130 </script> | 130 </script> |
OLD | NEW |