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

Side by Side Diff: tracing/tracing/ui/analysis/analysis_sub_view.html

Issue 2159353002: [polymer] Remove Polymer.dom() from getAttribute call (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698