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

Side by Side Diff: ui/keyboard/resources/webui/layout_us.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/keyboard/resources/webui/keysets.html ('k') | ui/keyboard/resources/webui/main.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 /**
6 * @fileoverview A simple English virtual keyboard implementation.
7 */
8
9 /**
10 * All keys for the rows of the keyboard.
11 * NOTE: every row below should have an aspect of 12.6.
12 * @type {Array.<Array.<BaseKey>>}
13 */
14 var KEYS_US = [
15 [
16 new Key(C('q'), C('Q'), C('1'), C('`')),
17 new Key(C('w'), C('W'), C('2'), C('~')),
18 new Key(C('e'), C('E'), C('3'), C('<', 'LessThan')),
19 new Key(C('r'), C('R'), C('4'), C('>', 'GreaterThan')),
20 new Key(C('t'), C('T'), C('5'), C('[')),
21 new Key(C('y'), C('Y'), C('6'), C(']')),
22 new Key(C('u'), C('U'), C('7'), C('{')),
23 new Key(C('i'), C('I'), C('8'), C('}')),
24 new Key(C('o'), C('O'), C('9'), C('\'')),
25 new Key(C('p'), C('P'), C('0'), C('|')),
26 ],
27 [
28 new SvgKey('tab', 'Tab'),
29 new Key(C('a'), C('A'), C('!'), C('+')),
30 new Key(C('s'), C('S'), C('@'), C('=')),
31 new Key(C('d'), C('D'), C('#'), C(' ')),
32 new Key(C('f'), C('F'), C('$'), C(' ')),
33 new Key(C('g'), C('G'), C('%'), C(' ')),
34 new Key(C('h'), C('H'), C('^'), C(' ')),
35 new Key(C('j'), C('J'), C('&', 'Ampersand'), C(' ')),
36 new Key(C('k'), C('K'), C('*'), C('#')),
37 new Key(C('l'), C('L'), C('('), C(' ')),
38 ],
39 [
40 new ShiftKey('left_shift'),
41 new Key(C('z'), C('Z'), C('/'), C(' ')),
42 new Key(C('x'), C('X'), C('-'), C(' ')),
43 new Key(C('c'), C('C'), C('\''), C(' ')),
44 new Key(C('v'), C('V'), C('"'), C(' ')),
45 new Key(C('b'), C('B'), C(':'), C('.')),
46 new Key(C('n'), C('N'), C(';'), C(' ')),
47 new Key(C('m'), C('M'), C('_'), C(' ')),
48 new SvgKey('backspace', 'Backspace', true /* repeat */)
49 ],
50 [
51 new MicKey(),
52 new SymbolKey(),
53 new SpecialKey('comma', ',', ','),
54 new SpecialKey('space', ' ', 'Spacebar'),
55 new SpecialKey('period', '.', '.'),
56 new SvgKey('return', 'Enter')
57 ]
58 ];
59
60 // Add layout to KEYBOARDS, which is defined in common.js
61 KEYBOARDS['us'] = {
62 'definition': KEYS_US,
63 'aspect': 2.00,
64 };
OLDNEW
« no previous file with comments | « ui/keyboard/resources/webui/keysets.html ('k') | ui/keyboard/resources/webui/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698