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

Side by Side Diff: ui/keyboard/resources/elements/kb-keyset.html

Issue 43593003: Add layout switcher for virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove dead code. Created 7 years, 1 month 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/elements/kb-keyboard.html ('k') | ui/keyboard/resources/index.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 -- Copyright 2013 The Chromium Authors. All rights reserved. 2 -- Copyright 2013 The Chromium Authors. All rights reserved.
3 -- Use of this source code is governed by a BSD-style license that can be 3 -- Use of this source code is governed by a BSD-style license that can be
4 -- found in the LICENSE file. 4 -- found in the LICENSE file.
5 --> 5 -->
6 6
7 <polymer-element name="kb-keyset" attributes="nextKeyset isDefault 7 <polymer-element name="kb-keyset" attributes="nextKeyset isDefault
8 capsLocksTo capsLockable" on-key-up="keyUp" 8 capsLocksTo capsLockable" on-key-up="keyUp" on-key-longpress="keyLongpress">
bshe 2013/10/25 17:07:17 nit: doesn't seem need to wrap?
kevers 2013/10/25 18:00:34 Yes, this change removes the unnecessary wrap.
9 on-key-longpress="keyLongpress">
10 <template> 9 <template>
11 <style> 10 <style>
12 @host { 11 @host {
13 * { 12 * {
14 -webkit-box-orient: vertical; 13 -webkit-box-orient: vertical;
15 -webkit-box-flex: 1; 14 -webkit-box-flex: 1;
16 display: -webkit-box; 15 display: -webkit-box;
17 } 16 }
18 } 17 }
19 </style> 18 </style>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 var leftOffset = activeAltKeySet.offset * event.target.clientWidth; 68 var leftOffset = activeAltKeySet.offset * event.target.clientWidth;
70 activeAltKeySet.style.left = event.target.offsetLeft - leftOffset + 69 activeAltKeySet.style.left = event.target.offsetLeft - leftOffset +
71 'px'; 70 'px';
72 var nodes = activeAltKeySet.childNodes; 71 var nodes = activeAltKeySet.childNodes;
73 nodes[activeAltKeySet.offset].classList.add('active'); 72 nodes[activeAltKeySet.offset].classList.add('active');
74 altkeyContainer.hidden = false; 73 altkeyContainer.hidden = false;
75 } 74 }
76 }); 75 });
77 </script> 76 </script>
78 </polymer-element> 77 </polymer-element>
OLDNEW
« no previous file with comments | « ui/keyboard/resources/elements/kb-keyboard.html ('k') | ui/keyboard/resources/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698