OLD | NEW |
1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved. | 1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved. |
2 // limitations under the License. | 2 // limitations under the License. |
3 // See the License for the specific language governing permissions and | 3 // See the License for the specific language governing permissions and |
4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
5 // distributed under the License is distributed on an "AS-IS" BASIS, | 5 // distributed under the License is distributed on an "AS-IS" BASIS, |
6 // Unless required by applicable law or agreed to in writing, software | 6 // Unless required by applicable law or agreed to in writing, software |
7 // | 7 // |
8 // http://www.apache.org/licenses/LICENSE-2.0 | 8 // http://www.apache.org/licenses/LICENSE-2.0 |
9 // | 9 // |
10 // You may obtain a copy of the License at | 10 // You may obtain a copy of the License at |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 var spec = {}; | 146 var spec = {}; |
147 spec[SpecNodeName.ICON_CSS_CLASS] = | 147 spec[SpecNodeName.ICON_CSS_CLASS] = |
148 i18n.input.chrome.inputview.Css.EMOJI_BACK; | 148 i18n.input.chrome.inputview.Css.EMOJI_BACK; |
149 spec[SpecNodeName.TYPE] = ElementType.BACK_BUTTON; | 149 spec[SpecNodeName.TYPE] = ElementType.BACK_BUTTON; |
150 spec[SpecNodeName.ID] = 'backkey'; | 150 spec[SpecNodeName.ID] = 'backkey'; |
151 return i18n.input.chrome.inputview.content.util.createKey(spec); | 151 return i18n.input.chrome.inputview.content.util.createKey(spec); |
152 }; | 152 }; |
153 | 153 |
154 | 154 |
155 /** | 155 /** |
| 156 * Create the key which leads to keyboard from emoji/hwt. |
| 157 * |
| 158 * @return {!Object} The back key. |
| 159 */ |
| 160 i18n.input.chrome.inputview.content.util.createBackToKeyboardKey = function() { |
| 161 var spec = {}; |
| 162 spec[SpecNodeName.ICON_CSS_CLASS] = |
| 163 i18n.input.chrome.inputview.Css.BACK_TO_KEYBOARD_ICON; |
| 164 spec[SpecNodeName.TYPE] = ElementType.BACK_TO_KEYBOARD; |
| 165 spec[SpecNodeName.ID] = 'backToKeyboard'; |
| 166 return i18n.input.chrome.inputview.content.util.createKey(spec); |
| 167 }; |
| 168 |
| 169 |
| 170 /** |
156 * Creates a ctrl key. | 171 * Creates a ctrl key. |
157 * | 172 * |
158 * @return {!Object} The ctrl key. | 173 * @return {!Object} The ctrl key. |
159 */ | 174 */ |
160 i18n.input.chrome.inputview.content.util.createCtrlKey = function() { | 175 i18n.input.chrome.inputview.content.util.createCtrlKey = function() { |
161 var spec = {}; | 176 var spec = {}; |
162 spec[SpecNodeName.TO_STATE] = i18n.input.chrome.inputview.StateType.CTRL; | 177 spec[SpecNodeName.TO_STATE] = i18n.input.chrome.inputview.StateType.CTRL; |
163 spec[SpecNodeName.NAME] = 'ctrl'; | 178 spec[SpecNodeName.NAME] = 'ctrl'; |
164 spec[SpecNodeName.TYPE] = ElementType.MODIFIER_KEY; | 179 spec[SpecNodeName.TYPE] = ElementType.MODIFIER_KEY; |
165 spec[SpecNodeName.ID] = 'ControlLeft'; | 180 spec[SpecNodeName.ID] = 'ControlLeft'; |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 keyList.push(i18n.input.chrome.inputview.content.util.createEnSwitcherKey()); | 616 keyList.push(i18n.input.chrome.inputview.content.util.createEnSwitcherKey()); |
602 keyList.push(i18n.input.chrome.inputview.content.util.createAltgrKey()); | 617 keyList.push(i18n.input.chrome.inputview.content.util.createAltgrKey()); |
603 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( | 618 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( |
604 i18n.input.chrome.inputview.Direction.LEFT)); | 619 i18n.input.chrome.inputview.Direction.LEFT)); |
605 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( | 620 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( |
606 i18n.input.chrome.inputview.Direction.RIGHT)); | 621 i18n.input.chrome.inputview.Direction.RIGHT)); |
607 keyList.push(i18n.input.chrome.inputview.content.util. | 622 keyList.push(i18n.input.chrome.inputview.content.util. |
608 createHideKeyboardKey()); | 623 createHideKeyboardKey()); |
609 }; | 624 }; |
610 }); // goog.scope | 625 }); // goog.scope |
OLD | NEW |