| 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 for (var i = 0; i < keyList.length; i++) { | 512 for (var i = 0; i < keyList.length; i++) { |
| 513 var key = keyList[i]; | 513 var key = keyList[i]; |
| 514 mapping[key['spec'][SpecNodeName.ID]] = viewIdPrefix + i; | 514 mapping[key['spec'][SpecNodeName.ID]] = viewIdPrefix + i; |
| 515 } | 515 } |
| 516 var layout = is102 ? '102kbd' : '101kbd'; | 516 var layout = is102 ? '102kbd' : '101kbd'; |
| 517 var result = []; | 517 var result = []; |
| 518 result[SpecNodeName.KEY_LIST] = keyList; | 518 result[SpecNodeName.KEY_LIST] = keyList; |
| 519 result[SpecNodeName.MAPPING] = mapping; | 519 result[SpecNodeName.MAPPING] = mapping; |
| 520 result[SpecNodeName.LAYOUT] = layout; | 520 result[SpecNodeName.LAYOUT] = layout; |
| 521 result[SpecNodeName.HAS_ALTGR_KEY] = hasAltGrKey; | 521 result[SpecNodeName.HAS_ALTGR_KEY] = hasAltGrKey; |
| 522 result[SpecNodeName.HAS_COMPACT_KEYBOARD] = !!opt_compactKeyboardId; | |
| 523 result[SpecNodeName.SHOW_MENU_KEY] = true; | 522 result[SpecNodeName.SHOW_MENU_KEY] = true; |
| 524 return result; | 523 return result; |
| 525 }; | 524 }; |
| 526 | 525 |
| 527 | 526 |
| 528 /** | 527 /** |
| 529 * Creates a switcher key which will switch between keyboards. | 528 * Creates a switcher key which will switch between keyboards. |
| 530 * | 529 * |
| 531 * @param {string} id The id. | 530 * @param {string} id The id. |
| 532 * @param {string} name The name. | 531 * @param {string} name The name. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 keyList.push(i18n.input.chrome.inputview.content.util.createEnSwitcherKey()); | 595 keyList.push(i18n.input.chrome.inputview.content.util.createEnSwitcherKey()); |
| 597 keyList.push(i18n.input.chrome.inputview.content.util.createAltgrKey()); | 596 keyList.push(i18n.input.chrome.inputview.content.util.createAltgrKey()); |
| 598 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( | 597 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( |
| 599 i18n.input.chrome.inputview.Direction.LEFT)); | 598 i18n.input.chrome.inputview.Direction.LEFT)); |
| 600 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( | 599 keyList.push(i18n.input.chrome.inputview.content.util.createArrowKey( |
| 601 i18n.input.chrome.inputview.Direction.RIGHT)); | 600 i18n.input.chrome.inputview.Direction.RIGHT)); |
| 602 keyList.push(i18n.input.chrome.inputview.content.util. | 601 keyList.push(i18n.input.chrome.inputview.content.util. |
| 603 createHideKeyboardKey()); | 602 createHideKeyboardKey()); |
| 604 }; | 603 }; |
| 605 }); // goog.scope | 604 }); // goog.scope |
| OLD | NEW |