OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved. |
| 2 // limitations under the License. |
| 3 // See the License for the specific language governing permissions and |
| 4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 5 // distributed under the License is distributed on an "AS-IS" BASIS, |
| 6 // Unless required by applicable law or agreed to in writing, software |
| 7 // |
| 8 // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 // |
| 10 // You may obtain a copy of the License at |
| 11 // you may not use this file except in compliance with the License. |
| 12 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 13 // |
| 14 goog.provide('i18n.input.chrome.inputview.content.constants'); |
| 15 |
| 16 goog.require('i18n.input.chrome.inputview.Css'); |
| 17 goog.require('i18n.input.chrome.inputview.StateType'); |
| 18 goog.require('i18n.input.chrome.inputview.elements.ElementType'); |
| 19 |
| 20 goog.scope(function() { |
| 21 |
| 22 var ElementType = i18n.input.chrome.inputview.elements.ElementType; |
| 23 |
| 24 /** |
| 25 * The non letter keys. |
| 26 * |
| 27 * @const |
| 28 * @enum {Object} |
| 29 */ |
| 30 i18n.input.chrome.inputview.content.constants.NonLetterKeys = { |
| 31 BACKSPACE: { |
| 32 'iconCssClass': i18n.input.chrome.inputview.Css.BACKSPACE_ICON, |
| 33 'type': ElementType.BACKSPACE_KEY, |
| 34 'id': 'Backspace' |
| 35 }, |
| 36 ENTER: { |
| 37 'iconCssClass': i18n.input.chrome.inputview.Css.ENTER_ICON, |
| 38 'type': ElementType.ENTER_KEY, |
| 39 'id': 'Enter' |
| 40 }, |
| 41 HIDE: { |
| 42 'iconCssClass': i18n.input.chrome.inputview.Css.HIDE_KEYBOARD_ICON, |
| 43 'type': ElementType.HIDE_KEYBOARD_KEY, |
| 44 'id': 'HideKeyboard' |
| 45 }, |
| 46 LEFT_SHIFT: { |
| 47 'toState': i18n.input.chrome.inputview.StateType.SHIFT, |
| 48 'iconCssClass': i18n.input.chrome.inputview.Css.SHIFT_ICON, |
| 49 'type': ElementType.MODIFIER_KEY, |
| 50 'id': 'ShiftLeft', |
| 51 'supportSticky': true |
| 52 }, |
| 53 RIGHT_SHIFT: { |
| 54 'toState': i18n.input.chrome.inputview.StateType.SHIFT, |
| 55 'iconCssClass': i18n.input.chrome.inputview.Css.SHIFT_ICON, |
| 56 'type': ElementType.MODIFIER_KEY, |
| 57 'id': 'ShiftRight', |
| 58 'supportSticky': true |
| 59 }, |
| 60 SPACE: { |
| 61 'name': ' ', |
| 62 'type': ElementType.SPACE_KEY, |
| 63 'id': 'Space' |
| 64 }, |
| 65 SWITCHER: { |
| 66 'type': ElementType.SWITCHER_KEY |
| 67 }, |
| 68 MENU: { |
| 69 'iconCssClass': i18n.input.chrome.inputview.Css.MENU_ICON, |
| 70 'type': ElementType.MENU_KEY, |
| 71 'id': 'Menu' |
| 72 }, |
| 73 GLOBE: { |
| 74 'iconCssClass': i18n.input.chrome.inputview.Css.GLOBE_ICON, |
| 75 'type': ElementType.GLOBE_KEY, |
| 76 'id': 'Globe' |
| 77 } |
| 78 }; |
| 79 |
| 80 |
| 81 }); // goog.scope |
OLD | NEW |