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/base.html"> | 8 <link rel="import" href="/tracing/base/base.html"> |
9 <link rel="import" href="/tracing/base/unit.html"> | 9 <link rel="import" href="/tracing/base/unit.html"> |
10 <link rel="import" href="/tracing/ui/base/table.html"> | 10 <link rel="import" href="/tracing/ui/base/table.html"> |
(...skipping 15 matching lines...) Expand all Loading... |
26 </tr-ui-b-table> | 26 </tr-ui-b-table> |
27 </div> | 27 </div> |
28 </template> | 28 </template> |
29 </dom-module> | 29 </dom-module> |
30 <script> | 30 <script> |
31 'use strict'; | 31 'use strict'; |
32 | 32 |
33 Polymer({ | 33 Polymer({ |
34 is: 'tr-ui-a-selection-summary-table', | 34 is: 'tr-ui-a-selection-summary-table', |
35 created: function() { | 35 created: function() { |
36 this.selection_ = new tr.b.Range(); | 36 this.selection_ = new tr.b.math.Range(); |
37 }, | 37 }, |
38 | 38 |
39 ready: function() { | 39 ready: function() { |
40 this.$.table.showHeader = false; | 40 this.$.table.showHeader = false; |
41 this.$.table.tableColumns = [ | 41 this.$.table.tableColumns = [ |
42 { | 42 { |
43 title: 'Name', | 43 title: 'Name', |
44 value: function(row) { return row.title; }, | 44 value: function(row) { return row.title; }, |
45 width: '350px' | 45 width: '350px' |
46 }, | 46 }, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 unit: tr.b.Unit.byName.timeDurationInMs, | 87 unit: tr.b.Unit.byName.timeDurationInMs, |
88 ownerDocument: this.ownerDocument | 88 ownerDocument: this.ownerDocument |
89 }) : '<empty>' | 89 }) : '<empty>' |
90 }); | 90 }); |
91 | 91 |
92 this.$.table.tableRows = rows; | 92 this.$.table.tableRows = rows; |
93 this.$.table.rebuild(); | 93 this.$.table.rebuild(); |
94 } | 94 } |
95 }); | 95 }); |
96 </script> | 96 </script> |
OLD | NEW |