Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: ui/keyboard/resources/webui/constants.js

Issue 15176004: Web Component Virtual Keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use third_party polymer Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/resources/voice_input.js ('k') | ui/keyboard/resources/webui/keysets.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/webui/constants.js
diff --git a/ui/keyboard/resources/webui/constants.js b/ui/keyboard/resources/webui/constants.js
new file mode 100644
index 0000000000000000000000000000000000000000..ea620c6d54619196345ce885b321ed2107ede064
--- /dev/null
+++ b/ui/keyboard/resources/webui/constants.js
@@ -0,0 +1,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 = 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;
« no previous file with comments | « ui/keyboard/resources/voice_input.js ('k') | ui/keyboard/resources/webui/keysets.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698