| 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-keyboard" on-key-over="{{keyOver}}" | 7 <polymer-element name="kb-keyboard" on-key-over="{{keyOver}}" |
| 8 on-key-up="{{keyUp}}" on-key-down="{{keyDown}}" | 8 on-key-up="{{keyUp}}" on-key-down="{{keyDown}}" |
| 9 on-key-longpress="{{keyLongpress}}" on-pointerup="{{up}}" | 9 on-key-longpress="{{keyLongpress}}" on-pointerup="{{up}}" |
| 10 on-pointerdown="{{down}}" on-pointerout="{{out}}" | 10 on-pointerdown="{{down}}" on-pointerout="{{out}}" |
| 11 on-enable-sel="{{enableSel}}" on-enable-dbl="{{enableDbl}}" | 11 on-enable-sel="{{enableSel}}" on-enable-dbl="{{enableDbl}}" |
| 12 on-key-out="{{keyOut}}" on-set-layout="{{setLayout}}" on-type-key="{{type}}" | 12 on-key-out="{{keyOut}}" on-set-layout="{{setLayout}}" on-type-key="{{type}}" |
| 13 attributes="inputType inputTypeToLayoutMap keyset layout volume"> | 13 attributes="inputType inputTypeToLayoutMap keyset layout volume"> |
| 14 <template> | 14 <template> |
| 15 <style> | 15 <style> |
| 16 :host { | 16 :host { |
| 17 -webkit-user-select: none; | 17 -webkit-user-select: none; |
| 18 background-image: -webkit-linear-gradient(#282828, #000000); | 18 background-color: #eeeeee; |
| 19 background-size: cover; | |
| 20 bottom: 0; | 19 bottom: 0; |
| 21 cursor: default; | 20 cursor: default; |
| 22 left: 0; | 21 left: 0; |
| 23 margin: 0; | 22 margin: 0; |
| 24 overflow: hidden; | 23 overflow: hidden; |
| 25 padding: 0; | 24 padding: 0; |
| 26 position: absolute; | 25 position: absolute; |
| 27 right: 0; | 26 right: 0; |
| 28 top: 0; | 27 top: 0; |
| 29 } | 28 } |
| 30 </style> | 29 </style> |
| 31 <!-- The ID for a keyset follows the naming convention of combining the | 30 <!-- The ID for a keyset follows the naming convention of combining the |
| 32 -- layout name with a base keyset name. This convention is used to | 31 -- layout name with a base keyset name. This convention is used to |
| 33 -- allow multiple layouts to be loaded (enablign fast switching) while | 32 -- allow multiple layouts to be loaded (enablign fast switching) while |
| 34 -- allowing the shift and spacebar keys to be common across multiple | 33 -- allowing the shift and spacebar keys to be common across multiple |
| 35 -- keyboard layouts. | 34 -- keyboard layouts. |
| 36 --> | 35 --> |
| 37 <content select="kb-keyset" id="content"></content> | 36 <content select="kb-keyset" id="content"></content> |
| 38 <kb-key-codes id="keyCodeMetadata"></kb-key-codes> | 37 <kb-key-codes id="keyCodeMetadata"></kb-key-codes> |
| 39 </template> | 38 </template> |
| 40 </polymer-element> | 39 </polymer-element> |
| OLD | NEW |