OLD | NEW |
---|---|
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 Loading... | |
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; |
OLD | NEW |