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

Side by Side Diff: tracing/tracing/ui/analysis/single_sample_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/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/stack_frame.html"> 9 <link rel="import" href="/tracing/ui/analysis/stack_frame.html">
10 <link rel="import" href="/tracing/ui/base/table.html"> 10 <link rel="import" href="/tracing/ui/base/table.html">
11 <link rel="import" href="/tracing/value/ui/scalar_span.html"> 11 <link rel="import" href="/tracing/value/ui/scalar_span.html">
12 <link rel="import" href="/tracing/value/unit.html"> 12 <link rel="import" href="/tracing/value/unit.html">
13 13
14 <dom-module id='tr-ui-a-single-sample-sub-view'> 14 <dom-module id='tr-ui-a-single-sample-sub-view'>
15 <template> 15 <template>
16 <style> 16 <style>
17 :host { 17 :host {
18 display: flex; 18 display: flex;
19 } 19 }
20 </style> 20 </style>
21 <tr-ui-b-table id="content"></tr-ui-b-table> 21 <tr-ui-b-table id="content"></tr-ui-b-table>
22 </template> 22 </template>
23 </dom-module> 23 </dom-module>
24 <script> 24 <script>
25 'use strict'; 25 'use strict';
26 26
27 Polymer({ 27 Polymer({
28 is: 'tr-ui-a-single-sample-sub-view', 28 is: 'tr-ui-a-single-sample-sub-view',
29 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], 29 behaviors: [tr.ui.analysis.AnalysisSubView],
30 30
31 created: function() { 31 created: function() {
32 this.currentSelection_ = undefined; 32 this.currentSelection_ = undefined;
33 }, 33 },
34 34
35 ready: function() { 35 ready: function() {
36 this.$.content.tableColumns = [ 36 this.$.content.tableColumns = [
37 { 37 {
38 title: 'FirstColumn', 38 title: 'FirstColumn',
39 value: function(row) { return row.title; }, 39 value: function(row) { return row.title; },
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 sfEl.stackFrame = sample.leafStackFrame; 82 sfEl.stackFrame = sample.leafStackFrame;
83 rows.push({ 83 rows.push({
84 title: 'Stack trace', 84 title: 'Stack trace',
85 value: sfEl 85 value: sfEl
86 }); 86 });
87 table.tableRows = rows; 87 table.tableRows = rows;
88 table.rebuild(); 88 table.rebuild();
89 } 89 }
90 }); 90 });
91 </script> 91 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698