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

Side by Side Diff: ui/keyboard/resources/constants.js

Issue 150783002: Aligns the Q A Z keys on the a11y keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make mic smaller. Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 * Aspect ratio of keyboard. 6 * Aspect ratio of keyboard.
7 * @type {number} 7 * @type {number}
8 */ 8 */
9 var ASPECT_RATIO = 4.5; 9 var ASPECT_RATIO = 4.5;
10 10
11 var RowAlignment = { 11 var RowAlignment = {
12 STRETCH: "stretch", 12 STRETCH: "stretch",
13 LEFT: "left", 13 LEFT: "left",
14 RIGHT: "right", 14 RIGHT: "right",
15 CENTER: "center" 15 CENTER: "center",
16 STRETCHRIGHT: "stretchright"
bshe 2014/01/31 16:09:49 you may want to add a short description of what is
16 } 17 }
17 18
18 /** 19 /**
19 * Ratio of key height and font size. 20 * Ratio of key height and font size.
20 * @type {number} 21 * @type {number}
21 */ 22 */
22 var FONT_SIZE_RATIO = 3; 23 var FONT_SIZE_RATIO = 3;
23 24
24 /** 25 /**
25 * @type {enum} 26 * @type {enum}
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 var DEFAULT_KEY_WEIGHT_Y = 100; 65 var DEFAULT_KEY_WEIGHT_Y = 100;
65 66
66 /** 67 /**
67 * The top padding on each key. 68 * The top padding on each key.
68 * @type {number} 69 * @type {number}
69 */ 70 */
70 // TODO(rsadam): Remove this variable once figure out how to calculate this 71 // TODO(rsadam): Remove this variable once figure out how to calculate this
71 // number before the key is rendered. 72 // number before the key is rendered.
72 var KEY_PADDING_TOP = 1; 73 var KEY_PADDING_TOP = 1;
73 var KEY_PADDING_BOTTOM = 1; 74 var KEY_PADDING_BOTTOM = 1;
OLDNEW
« no previous file with comments | « no previous file | ui/keyboard/resources/layouts/system-qwerty.html » ('j') | ui/keyboard/resources/layouts/system-qwerty.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698