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

Side by Side Diff: tracing/tracing/ui/extras/about_tracing/record_selection_dialog.html

Issue 1922193002: [polymer] Replaces this.appendChild with Polymer.dom(this).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 (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 <link rel="import" href="/tracing/core/filter.html"> 7 <link rel="import" href="/tracing/core/filter.html">
8 <link rel="import" href="/tracing/ui/base/overlay.html"> 8 <link rel="import" href="/tracing/ui/base/overlay.html">
9 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> 9 <link rel="import" href="/tracing/ui/base/dom_helpers.html">
10 <link rel="import" href="/tracing/ui/base/info_bar_group.html"> 10 <link rel="import" href="/tracing/ui/base/info_bar_group.html">
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 decorate: function() { 227 decorate: function() {
228 tr.ui.b.Overlay.prototype.decorate.call(this); 228 tr.ui.b.Overlay.prototype.decorate.call(this);
229 this.title = 'Record a new trace...'; 229 this.title = 'Record a new trace...';
230 230
231 this.classList.add('record-dialog-overlay'); 231 this.classList.add('record-dialog-overlay');
232 232
233 var node = 233 var node =
234 tr.ui.b.instantiateTemplate('#record-selection-dialog-template', 234 tr.ui.b.instantiateTemplate('#record-selection-dialog-template',
235 THIS_DOC); 235 THIS_DOC);
236 this.appendChild(node); 236 Polymer.dom(this).appendChild(node);
237 237
238 this.recordButtonEl_ = document.createElement('button'); 238 this.recordButtonEl_ = document.createElement('button');
239 this.recordButtonEl_.textContent = 'Record'; 239 this.recordButtonEl_.textContent = 'Record';
240 this.recordButtonEl_.addEventListener( 240 this.recordButtonEl_.addEventListener(
241 'click', 241 'click',
242 this.onRecordButtonClicked_.bind(this)); 242 this.onRecordButtonClicked_.bind(this));
243 this.recordButtonEl_.style.fontSize = '110%'; 243 this.recordButtonEl_.style.fontSize = '110%';
244 this.buttons.appendChild(this.recordButtonEl_); 244 this.buttons.appendChild(this.recordButtonEl_);
245 245
246 this.categoriesView_ = this.querySelector('.categories-column-view'); 246 this.categoriesView_ = this.querySelector('.categories-column-view');
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 671 }
672 warningLink.onclick = onClickHandler.bind(this); 672 warningLink.onclick = onClickHandler.bind(this);
673 } 673 }
674 }; 674 };
675 675
676 return { 676 return {
677 RecordSelectionDialog: RecordSelectionDialog 677 RecordSelectionDialog: RecordSelectionDialog
678 }; 678 };
679 }); 679 });
680 </script> 680 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698