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('options', function() { | 5 cr.define('options', function() { |
6 var EditableTextField = cr.ui.define('div'); | 6 var EditableTextField = cr.ui.define('div'); |
7 | 7 |
8 /** | 8 /** |
9 * Decorates an element as an editable text field. | 9 * Decorates an element as an editable text field. |
10 * @param {!HTMLElement} el The element to decorate. | 10 * @param {!HTMLElement} el The element to decorate. |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 return node instanceof EditableTextField; | 366 return node instanceof EditableTextField; |
367 }); | 367 }); |
368 if (itemAncestor) | 368 if (itemAncestor) |
369 document.activeElement.blur(); | 369 document.activeElement.blur(); |
370 }); | 370 }); |
371 | 371 |
372 return { | 372 return { |
373 EditableTextField: EditableTextField, | 373 EditableTextField: EditableTextField, |
374 }; | 374 }; |
375 }); | 375 }); |
OLD | NEW |