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

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

Issue 10391044: retry 136193 - convert localStrings to loadTimeData for options page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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) 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 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 ///////////////////////////////////////////////////////////////////////////// 8 /////////////////////////////////////////////////////////////////////////////
9 // VirtualKeyboardManager class: 9 // VirtualKeyboardManager class:
10 10
11 /** 11 /**
12 * Virtual keyboard management page. 12 * Virtual keyboard management page.
13 * @constructor 13 * @constructor
14 */ 14 */
15 function VirtualKeyboardManager() { 15 function VirtualKeyboardManager() {
16 this.activeNavTab = null; 16 this.activeNavTab = null;
17 OptionsPage.call(this, 17 OptionsPage.call(this,
18 'virtualKeyboards', 18 'virtualKeyboards',
19 // The templateData.virtualKeyboardPageTabTitle is added 19 loadTimeData.getString('virtualKeyboardPageTabTitle'),
20 // in OptionsPageUIHandler::RegisterTitle().
21 templateData.virtualKeyboardPageTabTitle,
22 'virtual-keyboard-manager'); 20 'virtual-keyboard-manager');
23 } 21 }
24 22
25 cr.addSingletonGetter(VirtualKeyboardManager); 23 cr.addSingletonGetter(VirtualKeyboardManager);
26 24
27 VirtualKeyboardManager.prototype = { 25 VirtualKeyboardManager.prototype = {
28 __proto__: OptionsPage.prototype, 26 __proto__: OptionsPage.prototype,
29 27
30 /** 28 /**
31 * The virtual keyboards list. 29 * The virtual keyboards list.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 filteredList.sort(function(e1, e2) { 83 filteredList.sort(function(e1, e2) {
86 return e1.layoutName > e2.layoutName; 84 return e1.layoutName > e2.layoutName;
87 })); 85 }));
88 }; 86 };
89 87
90 // Export 88 // Export
91 return { 89 return {
92 VirtualKeyboardManager: VirtualKeyboardManager, 90 VirtualKeyboardManager: VirtualKeyboardManager,
93 }; 91 };
94 }); 92 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698