| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('cr.ui', function() { | 5 cr.define('cr.ui', function() { |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Decorates elements as an instance of a class. | 8 * Decorates elements as an instance of a class. |
| 9 * @param {string|!Element} source The way to find the element(s) to decorate. | 9 * @param {string|!Element} source The way to find the element(s) to decorate. |
| 10 * If this is a string then {@code querySeletorAll} is used to find the | 10 * If this is a string then {@code querySeletorAll} is used to find the |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 return Math.round(pixels) + 'px'; | 168 return Math.round(pixels) + 'px'; |
| 169 } | 169 } |
| 170 | 170 |
| 171 return { | 171 return { |
| 172 decorate: decorate, | 172 decorate: decorate, |
| 173 define: define, | 173 define: define, |
| 174 limitInputWidth: limitInputWidth, | 174 limitInputWidth: limitInputWidth, |
| 175 toCssPx: toCssPx, | 175 toCssPx: toCssPx, |
| 176 }; | 176 }; |
| 177 }); | 177 }); |
| OLD | NEW |