Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Side by Side Diff: third_party/google_input_tools/src/chrome/os/inputview/config/util.js

Issue 701603002: Update to google-input-tools version 1.0.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698