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

Side by Side Diff: third_party/closure_compiler/interfaces/input_method_private_interface.js

Issue 1897913002: Input method functions for chrome.languageSettingsPrivate and chrome.inputMethodPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 7 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file was generated by:
6 // ./tools/json_schema_compiler/compiler.py.
7
8 /** @fileoverview Interface for inputMethodPrivate that can be overriden. */
9
10 assertNotReached('Interface file for Closure Compiler should not be executed.');
11
12 /** @interface */
13 function InputMethodPrivate() {}
14
15 InputMethodPrivate.prototype = {
16 /**
17 * Gets configurations for input methods.
18 * @param {function({
19 * isPhysicalKeyboardAutocorrectEnabled: boolean,
20 * isImeMenuActivated: boolean
21 * }):void} callback Callback which is called with the config object.
22 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getI nputMethodConfig
23 */
24 getInputMethodConfig: assertNotReached,
25
26 /**
27 * Gets all whitelisted input methods.
28 * @param {function(!Array<{
29 * id: string,
30 * name: string,
31 * indicator: string
32 * }>):void} callback Callback which is called with the input method objects.
33 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getI nputMethods
34 */
35 getInputMethods: assertNotReached,
36
37 /**
38 * Gets the current input method.
39 * @param {function(string):void} callback Callback which is called with the
40 * current input method.
41 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getC urrentInputMethod
42 */
43 getCurrentInputMethod: assertNotReached,
44
45 /**
46 * Sets the current input method.
47 * @param {string} inputMethodId The input method ID to be set as current
48 * input method.
49 * @param {function():void=} callback Callback which is called once the
50 * current input method is set. If unsuccessful $(ref:runtime.lastError)
51 * is set.
52 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-setC urrentInputMethod
53 */
54 setCurrentInputMethod: assertNotReached,
55
56 /**
57 * Fetches a list of all the words currently in the dictionary.
58 * @param {function(!Array<string>):void} callback Callback which is called
59 * once the list of dictionary words are ready.
60 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-fetc hAllDictionaryWords
61 */
62 fetchAllDictionaryWords: assertNotReached,
63
64 /**
65 * Adds a single word to be stored in the dictionary.
66 * @param {string} word A new word to add to the dictionary.
67 * @param {function():void=} callback Callback which is called once the word
68 * is added. If unsuccessful $(ref:runtime.lastError) is set.
69 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-addW ordToDictionary
70 */
71 addWordToDictionary: assertNotReached,
72
73 /**
74 * Gets whether the encrypt sync is enabled.
75 * @param {function(boolean):void=} callback Callback which is called to
76 * provide the result.
77 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-getE ncryptSyncEnabled
78 */
79 getEncryptSyncEnabled: assertNotReached,
80
81 /**
82 * Sets the XKB layout for the given input method.
83 * @param {string} xkb_name The XKB layout name.
84 * @param {function():void=} callback Callback which is called when the layout
85 * is set.
86 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-setX kbLayout
87 */
88 setXkbLayout: assertNotReached,
89
90 /**
91 * Fires the input.ime.onMenuItemActivated event.
92 * @param {string} engineID ID of the engine to use.
93 * @param {string} name Name of the MenuItem which was activated
94 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-noti fyImeMenuItemActivated
95 */
96 notifyImeMenuItemActivated: assertNotReached,
97
98 /**
99 * Shows the input view window. If the input view window is already shown,
100 * this function will do nothing.
101 * @param {function():void=} callback Called when the operation completes.
102 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-show InputView
103 */
104 showInputView: assertNotReached,
105
106 /**
107 * Opens the options page for the input method extension. If the input method
108 * does not have options, this function will do nothing.
109 * @param {string} inputMethodId ID of the input method to open options for.
110 * @see https://developer.chrome.com/extensions/inputMethodPrivate#method-open OptionsPage
111 */
112 openOptionsPage: assertNotReached,
113 };
114
115 /**
116 * Fired when the input method is changed.
117 * @type {!ChromeEvent}
118 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onChang ed
119 */
120 InputMethodPrivate.prototype.onChanged;
121
122 /**
123 * Fired when the composition bounds or cursor bounds are changed.
124 * @type {!ChromeEvent}
125 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onCompo sitionBoundsChanged
126 */
127 InputMethodPrivate.prototype.onCompositionBoundsChanged;
128
129 /**
130 * Fired when the custom spelling dictionary is loaded.
131 * @type {!ChromeEvent}
132 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onDicti onaryLoaded
133 */
134 InputMethodPrivate.prototype.onDictionaryLoaded;
135
136 /**
137 * Fired when words are added or removed from the custom spelling dictionary.
138 * @type {!ChromeEvent}
139 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onDicti onaryChanged
140 */
141 InputMethodPrivate.prototype.onDictionaryChanged;
142
143 /**
144 * Fired when the IME menu is activated or deactivated.
145 * @type {!ChromeEvent}
146 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onImeMe nuActivationChanged
147 */
148 InputMethodPrivate.prototype.onImeMenuActivationChanged;
149
150 /**
151 * Fired when the input method or the list of active input method IDs is
152 * changed.
153 * @type {!ChromeEvent}
154 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onImeMe nuListChanged
155 */
156 InputMethodPrivate.prototype.onImeMenuListChanged;
157
158 /**
159 * Fired when the input.ime.setMenuItems or input.ime.updateMenuItems API is
160 * called.
161 * @type {!ChromeEvent}
162 * @see https://developer.chrome.com/extensions/inputMethodPrivate#event-onImeMe nuItemsChanged
163 */
164 InputMethodPrivate.prototype.onImeMenuItemsChanged;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/interfaces/compiled_resources2.gyp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698