| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |