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

Side by Side Diff: tracing/tracing/ui/base/info_bar.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 (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 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/ui/base/dom_helpers.html"> 8 <link rel="import" href="/tracing/ui/base/dom_helpers.html">
9 <link rel="import" href="/tracing/ui/base/ui.html"> 9 <link rel="import" href="/tracing/ui/base/ui.html">
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 }, 70 },
71 71
72 removeAllButtons: function() { 72 removeAllButtons: function() {
73 this.buttonsEl_.textContent = ''; 73 this.buttonsEl_.textContent = '';
74 }, 74 },
75 75
76 addButton: function(text, clickCallback) { 76 addButton: function(text, clickCallback) {
77 var button = document.createElement('button'); 77 var button = document.createElement('button');
78 button.textContent = text; 78 button.textContent = text;
79 button.addEventListener('click', clickCallback); 79 button.addEventListener('click', clickCallback);
80 this.buttonsEl_.appendChild(button); 80 Polymer.dom(this.buttonsEl_).appendChild(button);
81 return button; 81 return button;
82 } 82 }
83 }); 83 });
84 </script> 84 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/base/hotkey_controller_test.html ('k') | tracing/tracing/ui/base/info_bar_group.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698