| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright 2014 The Chromium Authors. All rights reserved. | 3 Copyright 2014 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 | 9 |
| 10 <!-- | 10 <!-- |
| 11 @fileoverview Polymer element for various analysis sub-views. | 11 @fileoverview Polymer element for various analysis sub-views. |
| 12 --> | 12 --> |
| 13 <script> | 13 <script> |
| 14 'use strict'; | 14 'use strict'; |
| 15 | 15 |
| 16 tr.exportTo('tr.ui.analysis.behaviors', function() { | 16 tr.exportTo('tr.ui.analysis.behaviors', function() { |
| 17 | 17 |
| 18 var AnalysisSubView = { | 18 var AnalysisSubView = { |
| 19 set tabLabel(label) { | 19 set tabLabel(label) { |
| 20 Polymer.dom(this).setAttribute('tab-label', label); | 20 Polymer.dom(this).setAttribute('tab-label', label); |
| 21 }, | 21 }, |
| 22 | 22 |
| 23 get tabLabel() { | 23 get tabLabel() { |
| 24 return Polymer.dom(this).getAttribute('tab-label'); | 24 return this.getAttribute('tab-label'); |
| 25 }, | 25 }, |
| 26 | 26 |
| 27 get requiresTallView() { | 27 get requiresTallView() { |
| 28 return false; | 28 return false; |
| 29 }, | 29 }, |
| 30 | 30 |
| 31 get relatedEventsToHighlight() { | 31 get relatedEventsToHighlight() { |
| 32 return undefined; | 32 return undefined; |
| 33 }, | 33 }, |
| 34 | 34 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 49 AnalysisSubView: AnalysisSubView | 49 AnalysisSubView: AnalysisSubView |
| 50 }; | 50 }; |
| 51 }); | 51 }); |
| 52 | 52 |
| 53 // Dummy element for testing | 53 // Dummy element for testing |
| 54 Polymer({ | 54 Polymer({ |
| 55 is: 'tr-ui-a-sub-view', | 55 is: 'tr-ui-a-sub-view', |
| 56 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView] | 56 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView] |
| 57 }); | 57 }); |
| 58 </script> | 58 </script> |
| OLD | NEW |