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

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

Issue 899673003: Uprev Google Input Tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698