OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 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/ui/base/info_bar.html'> | 7 <link rel='import' href='/tracing/ui/base/info_bar.html'> |
8 | 8 |
9 <dom-module id='tr-ui-b-info-bar-group'> | 9 <dom-module id='tr-ui-b-info-bar-group'> |
10 <template> | 10 <template> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 this.$.messages.textContent = ''; | 52 this.$.messages.textContent = ''; |
53 this.messages_.forEach(function(message) { | 53 this.messages_.forEach(function(message) { |
54 var bar = document.createElement('tr-ui-b-info-bar'); | 54 var bar = document.createElement('tr-ui-b-info-bar'); |
55 bar.message = message.text; | 55 bar.message = message.text; |
56 bar.visible = true; | 56 bar.visible = true; |
57 | 57 |
58 message.buttons.forEach(function(button) { | 58 message.buttons.forEach(function(button) { |
59 bar.addButton(button.buttonText, button.onClick); | 59 bar.addButton(button.buttonText, button.onClick); |
60 }, this); | 60 }, this); |
61 | 61 |
62 this.$.messages.appendChild(bar); | 62 Polymer.dom(this.$.messages).appendChild(bar); |
63 }, this); | 63 }, this); |
64 } | 64 } |
65 }); | 65 }); |
66 </script> | 66 </script> |
OLD | NEW |