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

Side by Side Diff: chrome/browser/resources/options/chromeos/keyboard_overlay.js

Issue 11943009: Add diamond-key remapping support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 7 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) 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 6
7 /** 7 /**
8 * Encapsulated handling of the keyboard overlay. 8 * Encapsulated handling of the keyboard overlay.
9 * @constructor 9 * @constructor
10 */ 10 */
(...skipping 20 matching lines...) Expand all
31 }; 31 };
32 }, 32 },
33 33
34 /** 34 /**
35 * Show/hide the caps lock remapping section. 35 * Show/hide the caps lock remapping section.
36 * @private 36 * @private
37 */ 37 */
38 showCapsLockOptions_: function(show) { 38 showCapsLockOptions_: function(show) {
39 $('caps-lock-remapping-section').hidden = !show; 39 $('caps-lock-remapping-section').hidden = !show;
40 }, 40 },
41
42 /**
43 * Show/hide the diamond key remapping section.
44 * @private
45 */
46 showDiamondKeyOptions_: function(show) {
47 $('diamond-key-remapping-section').hidden = !show;
48 },
41 }; 49 };
42 50
43 // Forward public APIs to private implementations. 51 // Forward public APIs to private implementations.
44 [ 52 [
45 'showCapsLockOptions', 53 'showCapsLockOptions',
54 'showDiamondKeyOptions',
46 ].forEach(function(name) { 55 ].forEach(function(name) {
47 KeyboardOverlay[name] = function() { 56 KeyboardOverlay[name] = function() {
48 var instance = KeyboardOverlay.getInstance(); 57 var instance = KeyboardOverlay.getInstance();
49 return instance[name + '_'].apply(instance, arguments); 58 return instance[name + '_'].apply(instance, arguments);
50 }; 59 };
51 }); 60 });
52 61
53 // Export 62 // Export
54 return { 63 return {
55 KeyboardOverlay: KeyboardOverlay 64 KeyboardOverlay: KeyboardOverlay
56 }; 65 };
57 }); 66 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698