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

Unified Diff: ui/keyboard/resources/main.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/resources/elements/kb-keyboard.js ('k') | ui/keyboard/resources/touch_fuzzing.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/main.js
diff --git a/ui/keyboard/resources/main.js b/ui/keyboard/resources/main.js
index 76306b00cc5ae1a952211e9570313aa0f9590533..b90f1b8203c62b5564c04bb033ebf25e6512c41b 100644
--- a/ui/keyboard/resources/main.js
+++ b/ui/keyboard/resources/main.js
@@ -421,7 +421,7 @@
* Realigns a given row based on the parameters provided.
* @param {!kb-row} row The row to realign.
* @param {!AlignmentOptions} params The parameters used to align the keyset.
- * @param {number} The height of the keys.
+ * @param {number} keyHeight The height of the keys.
* @param {number} heightOffset The offset caused by rows above it.
*/
function realignRow(row, params, keyHeight, heightOffset) {
@@ -536,7 +536,7 @@
exports.recordKeysets();
}
- /*
+ /**
* Realigns a given keyset.
* @param {Object} keyset The keyset to realign.
* @param {!AlignmentOptions} params The parameters used to align the keyset.
@@ -545,7 +545,7 @@
var rows = keyset.querySelectorAll('kb-row').array();
keyset.style.fontSize = (params.availableHeight /
FONT_SIZE_RATIO / rows.length) + 'px';
- var heightOffset = 0;
+ var heightOffset = 0;
for (var i = 0; i < rows.length; i++) {
var row = rows[i];
var rowHeight =
« no previous file with comments | « ui/keyboard/resources/elements/kb-keyboard.js ('k') | ui/keyboard/resources/touch_fuzzing.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698