Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/browser/resources/options2/chromeos/virtual_keyboard.js

Issue 9386032: [uber page] Migrate the virtual keyboard sub-page to a dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: var rename Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698