OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
7 | 7 |
8 ///////////////////////////////////////////////////////////////////////////// | 8 ///////////////////////////////////////////////////////////////////////////// |
9 // VirtualKeyboardManager class: | 9 // VirtualKeyboardManager class: |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 * The virtual keyboards list. | 31 * The virtual keyboards list. |
32 * @type {ItemList} | 32 * @type {ItemList} |
33 * @private | 33 * @private |
34 */ | 34 */ |
35 virtualKeyboardsList_: null, | 35 virtualKeyboardsList_: null, |
36 | 36 |
37 /** @inheritDoc */ | 37 /** @inheritDoc */ |
38 initializePage: function() { | 38 initializePage: function() { |
39 OptionsPage.prototype.initializePage.call(this); | 39 OptionsPage.prototype.initializePage.call(this); |
40 this.createVirtualKeyboardsList_(); | 40 this.createVirtualKeyboardsList_(); |
| 41 $('virtual-keyboard-overlay-confirm').onclick = |
| 42 OptionsPage.closeOverlay.bind(OptionsPage); |
41 }, | 43 }, |
42 | 44 |
43 /** @inheritDoc */ | 45 /** @inheritDoc */ |
44 didShowPage: function() { | 46 didShowPage: function() { |
45 chrome.send('updateVirtualKeyboardList'); | 47 chrome.send('updateVirtualKeyboardList'); |
46 }, | 48 }, |
47 | 49 |
48 /** | 50 /** |
49 * Creates, decorates and initializes the keyboards list. | 51 * Creates, decorates and initializes the keyboards list. |
50 * @private | 52 * @private |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 filteredList.sort(function(e1, e2) { | 85 filteredList.sort(function(e1, e2) { |
84 return e1.layoutName > e2.layoutName; | 86 return e1.layoutName > e2.layoutName; |
85 })); | 87 })); |
86 }; | 88 }; |
87 | 89 |
88 // Export | 90 // Export |
89 return { | 91 return { |
90 VirtualKeyboardManager: VirtualKeyboardManager, | 92 VirtualKeyboardManager: VirtualKeyboardManager, |
91 }; | 93 }; |
92 }); | 94 }); |
OLD | NEW |