| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 2015 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/statistics.html"> | 8 <link rel="import" href="/tracing/base/statistics.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/base/dom_helpers.html"> | 10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 return table; | 130 return table; |
| 131 }, | 131 }, |
| 132 | 132 |
| 133 updateContents_: function() { | 133 updateContents_: function() { |
| 134 this.$.result_area.textContent = ''; | 134 this.$.result_area.textContent = ''; |
| 135 if (this.model_ === undefined) | 135 if (this.model_ === undefined) |
| 136 return; | 136 return; |
| 137 | 137 |
| 138 var panel = this.createAlertsTable_(this.model_.alerts); | 138 var panel = this.createAlertsTable_(this.model_.alerts); |
| 139 this.$.result_area.appendChild(panel); | 139 Polymer.dom(this.$.result_area).appendChild(panel); |
| 140 }, | 140 }, |
| 141 | 141 |
| 142 supportsModel: function(m) { | 142 supportsModel: function(m) { |
| 143 if (m == undefined) { | 143 if (m == undefined) { |
| 144 return { | 144 return { |
| 145 supported: false, | 145 supported: false, |
| 146 reason: 'Unknown tracing model' | 146 reason: 'Unknown tracing model' |
| 147 }; | 147 }; |
| 148 } else if (m.alerts.length === 0) { | 148 } else if (m.alerts.length === 0) { |
| 149 return { | 149 return { |
| 150 supported: false, | 150 supported: false, |
| 151 reason: 'No alerts in tracing model' | 151 reason: 'No alerts in tracing model' |
| 152 }; | 152 }; |
| 153 } | 153 } |
| 154 | 154 |
| 155 return { | 155 return { |
| 156 supported: true | 156 supported: true |
| 157 }; | 157 }; |
| 158 }, | 158 }, |
| 159 | 159 |
| 160 get textLabel() { | 160 get textLabel() { |
| 161 return 'Alerts'; | 161 return 'Alerts'; |
| 162 } | 162 } |
| 163 }); | 163 }); |
| 164 </script> | 164 </script> |
| OLD | NEW |