Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: tracing/tracing/ui/extras/side_panel/alerts_side_panel.html

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/extras/drive/index.html ('k') | tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698