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

Side by Side Diff: tracing/tracing/ui/analysis/single_object_instance_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) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 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/analysis_link.html"> 10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html">
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 </style> 46 </style>
47 <div id='content'></div> 47 <div id='content'></div>
48 </template> 48 </template>
49 </dom-module> 49 </dom-module>
50 <script> 50 <script>
51 'use strict'; 51 'use strict';
52 52
53 Polymer({ 53 Polymer({
54 is: 'tr-ui-a-single-object-instance-sub-view', 54 is: 'tr-ui-a-single-object-instance-sub-view',
55 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], 55 behaviors: [tr.ui.analysis.AnalysisSubView],
56 56
57 created: function() { 57 created: function() {
58 this.currentSelection_ = undefined; 58 this.currentSelection_ = undefined;
59 }, 59 },
60 60
61 get requiresTallView() { 61 get requiresTallView() {
62 if (this.$.content.children.length === 0) 62 if (this.$.content.children.length === 0)
63 return false; 63 return false;
64 if (this.$.content.children[0] instanceof 64 if (this.$.content.children[0] instanceof
65 tr.ui.analysis.ObjectInstanceView) 65 tr.ui.analysis.ObjectInstanceView)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 Polymer.dom(this.$.content).innerHTML = html; 109 Polymer.dom(this.$.content).innerHTML = html;
110 var snapshotsEl = Polymer.dom(this.$.content).querySelector('#snapshots'); 110 var snapshotsEl = Polymer.dom(this.$.content).querySelector('#snapshots');
111 instance.snapshots.forEach(function(snapshot) { 111 instance.snapshots.forEach(function(snapshot) {
112 var snapshotLink = document.createElement('tr-ui-a-analysis-link'); 112 var snapshotLink = document.createElement('tr-ui-a-analysis-link');
113 snapshotLink.selection = new tr.model.EventSet(snapshot); 113 snapshotLink.selection = new tr.model.EventSet(snapshot);
114 Polymer.dom(snapshotsEl).appendChild(snapshotLink); 114 Polymer.dom(snapshotsEl).appendChild(snapshotLink);
115 }); 115 });
116 } 116 }
117 }); 117 });
118 </script> 118 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698