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
3 // found in the LICENSE file.
6 * Aspect ratio of keyboard.
9 var ASPECT_RATIO = 4.5;
19 * Ratio of key height and font size.
22 var FONT_SIZE_RATIO = 3;
25 * The number of rows in each keyset.
28 // TODO(bshe): The number of rows should equal to the number of kb-row elements
29 // in kb-keyset. Remove this variable once figure out how to calculate the
30 // number from keysets.
34 * The enumeration of swipe directions.
38 var SWIPE_DIRECTION = {
46 * The default weight of a key in the X direction.
49 var DEFAULT_KEY_WEIGHT_X = 100;
52 * The default weight of a key in the Y direction.
55 var DEFAULT_KEY_WEIGHT_Y = 60;
58 * The top padding on each key.
61 // TODO(rsadam): Remove this variable once figure out how to calculate this
62 // number before the key is rendered.
63 var KEY_PADDING_TOP = 2;