OLD | NEW |
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 Loading... |
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> |
OLD | NEW |