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

Side by Side Diff: tracing/tracing/ui/analysis/analysis_view.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 (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 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/alert_sub_view.html"> 10 <link rel="import" href="/tracing/ui/analysis/alert_sub_view.html">
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 var eventsByBaseTypeName = selection.getEventsOrganizedByBaseType(true); 171 var eventsByBaseTypeName = selection.getEventsOrganizedByBaseType(true);
172 172
173 var numBaseTypesToAnalyze = tr.b.dictionaryLength(eventsByBaseTypeName); 173 var numBaseTypesToAnalyze = tr.b.dictionaryLength(eventsByBaseTypeName);
174 for (var eventTypeName in eventsByBaseTypeName) { 174 for (var eventTypeName in eventsByBaseTypeName) {
175 var subSelection = eventsByBaseTypeName[eventTypeName]; 175 var subSelection = eventsByBaseTypeName[eventTypeName];
176 var subView = this.createSubViewForSelection_( 176 var subView = this.createSubViewForSelection_(
177 eventTypeName, subSelection, previousSubViews[eventTypeName]); 177 eventTypeName, subSelection, previousSubViews[eventTypeName]);
178 // Store the eventTypeName for future tab restoration. 178 // Store the eventTypeName for future tab restoration.
179 subView._eventTypeName = eventTypeName; 179 subView._eventTypeName = eventTypeName;
180 this.tabView_.appendChild(subView); 180 Polymer.dom(this.tabView_).appendChild(subView);
181 181
182 subView.selection = subSelection; 182 subView.selection = subSelection;
183 } 183 }
184 184
185 // Restore the tab type that was previously selected. First try by tag 185 // Restore the tab type that was previously selected. First try by tag
186 // name. 186 // name.
187 var tab; 187 var tab;
188 if (lastSelectedTabTagName) 188 if (lastSelectedTabTagName)
189 tab = this.tabView_.querySelector(lastSelectedTabTagName); 189 tab = this.tabView_.querySelector(lastSelectedTabTagName);
190 190
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 253 }
254 } else { 254 } else {
255 this.tallMode = false; 255 this.tallMode = false;
256 if (brushingStateController) 256 if (brushingStateController)
257 brushingStateController.changeAnalysisViewRelatedEvents(undefined); 257 brushingStateController.changeAnalysisViewRelatedEvents(undefined);
258 } 258 }
259 } 259 }
260 }); 260 });
261 })(); 261 })();
262 </script> 262 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/trace2html.html ('k') | tracing/tracing/ui/analysis/container_memory_dump_sub_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698