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

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 fix Created 8 years, 1 month 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..f6df30d84985125f66dc54268b3efbdaf193cc3f 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.
+ [
+ 'showCapsLockOptions',
+ ].forEach(function(name) {
+ KeyboardOverlay[name] = function() {
+ var instance = KeyboardOverlay.getInstance();
+ return instance[name + '_'].apply(instance, arguments);
+ };
+ });
+
// Export
return {
KeyboardOverlay: KeyboardOverlay
« no previous file with comments | « chrome/browser/resources/options/chromeos/keyboard_overlay.html ('k') | chrome/browser/ui/ash/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698