Index: chrome/browser/resources/options/chromeos/keyboard_overlay.js |
=================================================================== |
--- chrome/browser/resources/options/chromeos/keyboard_overlay.js (revision 176515) |
+++ chrome/browser/resources/options/chromeos/keyboard_overlay.js (working copy) |
@@ -19,8 +19,26 @@ |
KeyboardOverlay.prototype = { |
__proto__: options.SettingsDialog.prototype, |
+ |
+ /** |
+ * Show/hide the caps lock remapping section. |
+ * @private |
+ */ |
+ showCapsLockOptions_: function(show) { |
+ $('caps-lock-remapping-section').hidden = !show; |
+ }, |
}; |
+ // Forward public APIs to private implementations. |
+ [ |
+ 'showCapsLockOptions', |
+ ].forEach(function(name) { |
+ KeyboardOverlay[name] = function() { |
+ var instance = KeyboardOverlay.getInstance(); |
+ return instance[name + '_'].apply(instance, arguments); |
+ }; |
+ }); |
+ |
// Export |
return { |
KeyboardOverlay: KeyboardOverlay |