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

Unified Diff: chrome/browser/resources/options/chromeos/keyboard_overlay.js

Issue 11346028: Allow Caps Lock to be remapped [part 2 of 2] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/chromeos/keyboard_overlay.js
diff --git a/chrome/browser/resources/options/chromeos/keyboard_overlay.js b/chrome/browser/resources/options/chromeos/keyboard_overlay.js
index 45b6859ce479a26d0b435dae0987ea3277a1d608..a56d696d4ff3f32d175724a420274876f903505f 100644
--- a/chrome/browser/resources/options/chromeos/keyboard_overlay.js
+++ b/chrome/browser/resources/options/chromeos/keyboard_overlay.js
@@ -19,8 +19,26 @@ cr.define('options', function() {
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.
Daniel Erat 2012/10/30 18:23:17 nit: add space after '//'
Yusuke Sato 2012/10/30 19:27:23 Done.
+ [
+ 'showCapsLockOptions',
+ ].forEach(function(name) {
+ KeyboardOverlay[name] = function() {
+ var instance = KeyboardOverlay.getInstance();
+ return instance[name + '_'].apply(instance, arguments);
+ };
+ });
+
// Export
return {
KeyboardOverlay: KeyboardOverlay

Powered by Google App Engine
This is Rietveld 408576698