| Index: ui/keyboard/resources/constants.js
|
| diff --git a/ui/keyboard/resources/constants.js b/ui/keyboard/resources/constants.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f5700da08bf8e2f46956f00b6e4728f54a76db08
|
| --- /dev/null
|
| +++ b/ui/keyboard/resources/constants.js
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2013 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 = 4.5;
|
| +
|
| +/**
|
| + * Ratio of key height and font size.
|
| + * @type {number}
|
| + */
|
| +var FONT_SIZE_RATIO = 3.5;
|
| +
|
| +/**
|
| + * 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;
|
|
|