OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 /** | 6 /** |
7 * Aspect ratio of keyboard. | 7 * Aspect ratio of keyboard. |
8 * @type {number} | 8 * @type {number} |
9 */ | 9 */ |
10 var ASPECT_RATIO = 2.0; | 10 var ASPECT_RATIO = 2.0; |
11 | 11 |
12 /** | 12 /** |
13 * Ratio of key height and font size. | 13 * Ratio of key height and font size. |
14 * @type {number} | 14 * @type {number} |
15 */ | 15 */ |
16 var FONT_SIZE_RATIO = 3.5; | 16 var FONT_SIZE_RATIO = 2; |
17 | 17 |
18 /** | 18 /** |
19 * The number of rows in each keyset. | 19 * The number of rows in each keyset. |
20 * @type {number} | 20 * @type {number} |
21 */ | 21 */ |
22 // TODO(bshe): The number of rows should equal to the number of kb-row elements | 22 // TODO(bshe): The number of rows should equal to the number of kb-row elements |
23 // in kb-keyset. Remove this variable once figure out how to calculate the | 23 // in kb-keyset. Remove this variable once figure out how to calculate the |
24 // number from keysets. | 24 // number from keysets. |
25 | 25 |
26 var ROW_LENGTH = 4; | 26 var ROW_LENGTH = 4; |
OLD | NEW |