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
8 // http://www.apache.org/licenses/LICENSE-2.0
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");
14 goog.provide('i18n.input.chrome.inputview.layouts.CompactSpaceRow');
16 goog.require('i18n.input.chrome.inputview.ConditionName');
17 goog.require('i18n.input.chrome.inputview.layouts.util');
21 * Creates the compact keyboard spaceKey row.
22 * @param {boolean} isNordic True if the space key row is generated for compact
24 * @return {!Object} The compact spaceKey row.
26 i18n.input.chrome.inputview.layouts.CompactSpaceRow.create = function(
28 var digitSwitcher = i18n.input.chrome.inputview.layouts.util.createKey({
31 var globeOrSymbolKey = i18n.input.chrome.inputview.layouts.util.createKey({
32 'condition': i18n.input.chrome.inputview.ConditionName.SHOW_GLOBE_OR_SYMBOL,
35 var menuKey = i18n.input.chrome.inputview.layouts.util.createKey({
36 'condition': i18n.input.chrome.inputview.ConditionName.SHOW_MENU,
39 var slashKey = i18n.input.chrome.inputview.layouts.util.createKey({
44 space = i18n.input.chrome.inputview.layouts.util.createKey({
48 space = i18n.input.chrome.inputview.layouts.util.createKey({
52 var comma = i18n.input.chrome.inputview.layouts.util.createKey({
55 var period = i18n.input.chrome.inputview.layouts.util.createKey({
58 var hide = i18n.input.chrome.inputview.layouts.util.createKey({
62 menuKey['spec']['giveWeightTo'] = space['spec']['id'];
63 globeOrSymbolKey['spec']['giveWeightTo'] = space['spec']['id'];
65 var spaceKeyRow = i18n.input.chrome.inputview.layouts.util.
68 'children': [digitSwitcher, globeOrSymbolKey, menuKey, slashKey, space,