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="stylesheet" href="/tracing/ui/base/list_view.css"> | 8 <link rel="stylesheet" href="/tracing/ui/base/list_view.css"> |
9 | 9 |
10 <link rel="import" href="/tracing/base/event.html"> | 10 <link rel="import" href="/tracing/base/event.html"> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 tr.ui.b.scrollIntoViewIfNeeded(next); | 146 tr.ui.b.scrollIntoViewIfNeeded(next); |
147 e.preventDefault(); | 147 e.preventDefault(); |
148 return true; | 148 return true; |
149 } | 149 } |
150 } | 150 } |
151 }, | 151 }, |
152 | 152 |
153 addItem: function(textContent) { | 153 addItem: function(textContent) { |
154 var item = document.createElement('div'); | 154 var item = document.createElement('div'); |
155 item.textContent = textContent; | 155 item.textContent = textContent; |
156 this.appendChild(item); | 156 Polymer.dom(this).appendChild(item); |
157 return item; | 157 return item; |
158 } | 158 } |
159 | 159 |
160 }; | 160 }; |
161 | 161 |
162 return { | 162 return { |
163 ListView: ListView | 163 ListView: ListView |
164 }; | 164 }; |
165 | 165 |
166 }); | 166 }); |
167 </script> | 167 </script> |
OLD | NEW |