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 var RowAlignment = { | 5 var RowAlignment = { |
6 STRETCH: "stretch", | 6 STRETCH: "stretch", |
7 LEFT: "left", | 7 LEFT: "left", |
8 RIGHT: "right", | 8 RIGHT: "right", |
9 CENTER: "center", | 9 CENTER: "center", |
10 } | 10 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 */ | 52 */ |
53 var KEY_ASPECT_RATIO_PORTRAIT = 1; | 53 var KEY_ASPECT_RATIO_PORTRAIT = 1; |
54 | 54 |
55 /** | 55 /** |
56 * The ratio between the width and height of the key when in landscape mode. | 56 * The ratio between the width and height of the key when in landscape mode. |
57 * @type {number} | 57 * @type {number} |
58 */ | 58 */ |
59 var KEY_ASPECT_RATIO_LANDSCAPE = 1.46; | 59 var KEY_ASPECT_RATIO_LANDSCAPE = 1.46; |
60 | 60 |
61 /** | 61 /** |
| 62 * The ratio between the height and width of the compact keyboard. |
| 63 * @type {number} |
| 64 */ |
| 65 var DEFAULT_KEYBOARD_ASPECT_RATIO = 0.3; |
| 66 |
| 67 /** |
| 68 * The ratio between the height and width of the a11y keyboard. |
| 69 * @type {number} |
| 70 */ |
| 71 var DEFAULT_A11Y_KEYBOARD_ASPECT_RATIO = 0.41; |
| 72 |
| 73 /** |
62 * The default weight of a key. | 74 * The default weight of a key. |
63 * @type {number} | 75 * @type {number} |
64 */ | 76 */ |
65 var DEFAULT_KEY_WEIGHT = 100; | 77 var DEFAULT_KEY_WEIGHT = 100; |
66 | 78 |
67 /** | 79 /** |
68 * The default volume for keyboard sounds. | 80 * The default volume for keyboard sounds. |
69 * @type {number} | 81 * @type {number} |
70 */ | 82 */ |
71 var DEFAULT_VOLUME = 0.2; | 83 var DEFAULT_VOLUME = 0.2; |
(...skipping 20 matching lines...) Expand all Loading... |
92 */ | 104 */ |
93 var RESIZE_THRESHOLD = 20; | 105 var RESIZE_THRESHOLD = 20; |
94 | 106 |
95 /** | 107 /** |
96 * The size of the pool to use for playing audio sounds on key press. This is to | 108 * The size of the pool to use for playing audio sounds on key press. This is to |
97 * enable the same sound to be overlayed, for example, when a repeat key is | 109 * enable the same sound to be overlayed, for example, when a repeat key is |
98 * pressed. | 110 * pressed. |
99 * @type {number} | 111 * @type {number} |
100 */ | 112 */ |
101 var SOUND_POOL_SIZE = 10; | 113 var SOUND_POOL_SIZE = 10; |
OLD | NEW |