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

Side by Side Diff: ui/keyboard/resources/elements/kb-keyboard.js

Issue 594603002: Compile ui/keyboard/ JS, part 1: remove all warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ui/keyboard/resources/elements/kb-key-base.js ('k') | ui/keyboard/resources/main.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * The repeat delay in milliseconds before a key starts repeating. Use the 6 * The repeat delay in milliseconds before a key starts repeating. Use the
7 * same rate as Chromebook. 7 * same rate as Chromebook.
8 * (See chrome/browser/chromeos/language_preferences.cc) 8 * (See chrome/browser/chromeos/language_preferences.cc)
9 * @const 9 * @const
10 * @type {number} 10 * @type {number}
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 enterUpperOnSpace = this.shouldUpperOnSpace(); 739 enterUpperOnSpace = this.shouldUpperOnSpace();
740 break; 740 break;
741 default: 741 default:
742 enterUpperOnSpace = false; 742 enterUpperOnSpace = false;
743 break; 743 break;
744 } 744 }
745 // Reset control keys. 745 // Reset control keys.
746 this.onNonControlKeyTyped(); 746 this.onNonControlKeyTyped();
747 }, 747 },
748 748
749 /* 749 /**
750 * Handles key-longpress event that is sent by kb-key-base. 750 * Handles key-longpress event that is sent by kb-key-base.
751 * @param {CustomEvent} event The key-longpress event dispatched by 751 * @param {CustomEvent} event The key-longpress event dispatched by
752 * kb-key-base. 752 * kb-key-base.
753 * @param {Object} detail The detail of pressed key. 753 * @param {Object} detail The detail of pressed key.
754 */ 754 */
755 keyLongpress: function(event, detail) { 755 keyLongpress: function(event, detail) {
756 // If the gesture is long press, remove the pointermove listener. 756 // If the gesture is long press, remove the pointermove listener.
757 this.removeEventListener('pointermove', this.swipeHandler, false); 757 this.removeEventListener('pointermove', this.swipeHandler, false);
758 // Keyset transtion key. 758 // Keyset transtion key.
759 if (this.changeKeyset(detail)) { 759 if (this.changeKeyset(detail)) {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 keyboardLoaded(); 968 keyboardLoaded();
969 return true; 969 return true;
970 } 970 }
971 } 971 }
972 } 972 }
973 if (keysetsLoaded) 973 if (keysetsLoaded)
974 console.error('No default keyset found for ' + this.layout); 974 console.error('No default keyset found for ' + this.layout);
975 return false; 975 return false;
976 } 976 }
977 }); 977 });
OLDNEW
« no previous file with comments | « ui/keyboard/resources/elements/kb-key-base.js ('k') | ui/keyboard/resources/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698