| OLD | NEW |
| 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"> |
| 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 Loading... |
| 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> |
| OLD | NEW |