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.
13 * Ratio of key height and font size.
16 var FONT_SIZE_RATIO = 2.5;
20 * Possible layout alignments.
22 var LayoutAlignment = {
28 * The enumeration of swipe directions.
32 var SwipeDirection = {
40 * The default weight of a key in the X direction.
43 var DEFAULT_KEY_WEIGHT_X = 100;
46 * The default weight of a key in the Y direction.
49 var DEFAULT_KEY_WEIGHT_Y = 70;
52 * The top padding on each key.
55 // TODO(rsadam): Remove this variable once figure out how to calculate this
56 // number before the key is rendered.
57 var KEY_PADDING_TOP = 1;
58 var KEY_PADDING_BOTTOM = 1;