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