blob: 94ccfb2f96efdfccccb5a1d9224dd939e37b3380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Aspect ratio of keyboard.
* @type {number}
*/
var ASPECT_RATIO = 2.0;
/**
* Ratio of key height and font size.
* @type {number}
*/
var FONT_SIZE_RATIO = 2;
/**
* The number of rows in each keyset.
* @type {number}
*/
// TODO(bshe): The number of rows should equal to the number of kb-row elements
// in kb-keyset. Remove this variable once figure out how to calculate the
// number from keysets.
var ROW_LENGTH = 4;
|