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

Side by Side Diff: tracing/tracing/ui/analysis/single_alert_sub_view.html

Issue 2246173002: Move AnalysisSubView to tr.ui.analysis namespace (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 4 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) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 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/ui/analysis/analysis_sub_view.html"> 8 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
9 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html"> 9 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html">
10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> 10 <link rel="import" href="/tracing/ui/base/dom_helpers.html">
11 11
12 <script> 12 <script>
13 'use strict'; 13 'use strict';
14 14
15 Polymer({ 15 Polymer({
16 is: 'tr-ui-a-single-alert-sub-view', 16 is: 'tr-ui-a-single-alert-sub-view',
17 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], 17 behaviors: [tr.ui.analysis.AnalysisSubView],
18 18
19 created: function() { 19 created: function() {
20 this.currentSelection_ = undefined; 20 this.currentSelection_ = undefined;
21 }, 21 },
22 22
23 set selection(selection) { 23 set selection(selection) {
24 this.currentSelection_ = selection; 24 this.currentSelection_ = selection;
25 25
26 Polymer.dom(this).textContent = ''; 26 Polymer.dom(this).textContent = '';
27 var realView = document.createElement('tr-ui-a-single-event-sub-view'); 27 var realView = document.createElement('tr-ui-a-single-event-sub-view');
(...skipping 28 matching lines...) Expand all
56 isExpanded: true, subRows: eventSubRows 56 isExpanded: true, subRows: eventSubRows
57 }); 57 });
58 } 58 }
59 }.bind(this); 59 }.bind(this);
60 60
61 Polymer.dom(this).appendChild(realView); 61 Polymer.dom(this).appendChild(realView);
62 realView.setSelectionWithoutErrorChecks(selection); 62 realView.setSelectionWithoutErrorChecks(selection);
63 } 63 }
64 }); 64 });
65 </script> 65 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698