1 // Copyright 2015 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.MessageKey');
15 goog.provide('i18n.input.chrome.TriggerType');
19 * The message keys for communicating with the native client.
23 i18n.input.chrome.MessageKey = {
25 APPEND_TOKENS: 'append_tokens',
29 COMMIT_POS: 'commit_pos',
30 COMMIT_WORD: 'commit_word',
32 CORRECTION: 'correction',
33 DECODE_GESTURE: 'decode_gesture',
35 ENABLE_USER_DICT: 'enable_user_dict',
37 FREQUENCY: 'frequency',
38 FUZZY_PAIRS: 'fuzzy_pairs',
39 KEYBOARD_LAYOUT: 'keyboard_layout',
40 HIGHLIGHT: 'highlight',
41 HIGHLIGHT_INDEX: 'highlight_index',
43 MIN_SCORE: 'min_score',
45 MULTI_APPEND: 'multi_append',
49 SELECT_HIGHLIGHT: 'select_highlight',
52 UPDATE_ALL: 'update_all',
53 USER_DICT: 'user_dict'
58 * The trigger types for committing text.
62 i18n.input.chrome.TriggerType = {
67 DOUBLE_SPACE_TO_PERIOD: 4,
70 COMPOSITION_DISABLED: 7,