OLD | NEW |
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/multi_dimensional_view.html"> | 8 <link rel="import" href="/tracing/base/multi_dimensional_view.html"> |
9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> | 9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
10 <link rel="import" href="/tracing/ui/base/table.html"> | 10 <link rel="import" href="/tracing/ui/base/table.html"> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 }, | 72 }, |
73 { | 73 { |
74 label: 'Top-down (Heavy)', | 74 label: 'Top-down (Heavy)', |
75 value: tr.b.MultiDimensionalViewType.TOP_DOWN_HEAVY_VIEW | 75 value: tr.b.MultiDimensionalViewType.TOP_DOWN_HEAVY_VIEW |
76 }, | 76 }, |
77 { | 77 { |
78 label: 'Bottom-up (Heavy)', | 78 label: 'Bottom-up (Heavy)', |
79 value: tr.b.MultiDimensionalViewType.BOTTOM_UP_HEAVY_VIEW | 79 value: tr.b.MultiDimensionalViewType.BOTTOM_UP_HEAVY_VIEW |
80 } | 80 } |
81 ]); | 81 ]); |
82 this.$.control.appendChild(viewSelector); | 82 Polymer.dom(this.$.control).appendChild(viewSelector); |
83 this.$.table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW; | 83 this.$.table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW; |
84 }, | 84 }, |
85 | 85 |
86 // TODO(polymer): Convert to Polymer property. | 86 // TODO(polymer): Convert to Polymer property. |
87 get selection() { | 87 get selection() { |
88 return this.selection_; | 88 return this.selection_; |
89 }, | 89 }, |
90 | 90 |
91 set selection(selection) { | 91 set selection(selection) { |
92 this.selection_ = selection; | 92 this.selection_ = selection; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 }, | 258 }, |
259 width: '60px', | 259 width: '60px', |
260 cmp: function(a, b) { | 260 cmp: function(a, b) { |
261 return a[field] - b[field]; | 261 return a[field] - b[field]; |
262 } | 262 } |
263 }; | 263 }; |
264 } | 264 } |
265 }); | 265 }); |
266 })(); | 266 })(); |
267 </script> | 267 </script> |
OLD | NEW |