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

Side by Side Diff: tracing/tracing/ui/metrics_debugger_app.html

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 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 <link rel="import" href="/perf_insights/mre/mre_result.html"> 7 <link rel="import" href="/perf_insights/mre/mre_result.html">
8 <link rel="import" href="/tracing/extras/full_config.html"> 8 <link rel="import" href="/tracing/extras/full_config.html">
9 <link rel="import" href="/tracing/importer/import.html"> 9 <link rel="import" href="/tracing/importer/import.html">
10 <link rel="import" href="/tracing/metrics/all_metrics.html"> 10 <link rel="import" href="/tracing/metrics/all_metrics.html">
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 this.currentMetricName_ = undefined; 55 this.currentMetricName_ = undefined;
56 this.settingsKey_ = 'metrics-debugger-app-metric-name'; 56 this.settingsKey_ = 'metrics-debugger-app-metric-name';
57 }, 57 },
58 58
59 ready: function() { 59 ready: function() {
60 var metricSelector = tr.ui.b.createSelector( 60 var metricSelector = tr.ui.b.createSelector(
61 this, 'currentMetricName_', 61 this, 'currentMetricName_',
62 this.settingsKey_, 62 this.settingsKey_,
63 this.metrics_[0].value, 63 this.metrics_[0].value,
64 this.metrics_); 64 this.metrics_);
65 Polymer.dom(this.$.top_left_controls).appendChild(metricSelector); 65 Polymer.dom(this.$.top_left_controls).appendChild(
66 metricSelector);
66 67
67 this.$.load_trace.addEventListener('change', function(event) { 68 this.$.load_trace.addEventListener('change', function(event) {
68 var file = event.target.files[0]; 69 var file = event.target.files[0];
69 this.onTraceFileSelected_(file); 70 this.onTraceFileSelected_(file);
70 }.bind(this)); 71 }.bind(this));
71 this.$.run_metric.addEventListener( 72 this.$.run_metric.addEventListener(
72 'click', function(event) { 73 'click', function(event) {
73 event.stopPropagation(); 74 event.stopPropagation();
74 this.onRunMetricClicked_(); 75 this.onRunMetricClicked_();
75 }.bind(this)); 76 }.bind(this));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 }.bind(this), 124 }.bind(this),
124 function(err) { 125 function(err) {
125 tr.ui.b.Overlay.showError('Trace import error: ' + err); 126 tr.ui.b.Overlay.showError('Trace import error: ' + err);
126 console.error(err); 127 console.error(err);
127 }); 128 });
128 }, 129 },
129 }); 130 });
130 return {}; 131 return {};
131 }); 132 });
132 </script> 133 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/find_controller_test.html ('k') | tracing/tracing/ui/side_panel/side_panel_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698