Expose Japanese IME settings in InputMethodSettings private API.
This private API is primarily meant for exclusive use by
CrOS 1P Virtual Keyboard (VK). API impl [1] seems to include
any entries available in CrOS Prefs storage (incl. these
Japanese IME related entries), but only those exposed via
typings declaration can be properly accessed by clients in
a type-safe manner.
After the migration to CrOS Settings app & CrOS Prefs storage,
Japanese IME settings in CrOS Prefs (accessed via this private
API) are nowadays the canonical source-of-truth that should be
accessible and used by CrOS 1P VK, instead of Mozc-managed ones.
input_method_private.d.ts is autogen using the following command:
$ tools/json_schema_compiler/compiler.py \
chrome/common/extensions/api/input_method_private.json \
-g ts_definitions \
> chrome/browser/resources/chromeos/accessibility/definitions/input_method_private.d.ts
input_method_private.js is autogen using the following command:
$ tools/json_schema_compiler/compiler.py \
chrome/common/extensions/api/input_method_private.json \
-g externs \
> third_party/closure_compiler/externs/input_method_private.js
[1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ash/extensions/input_method_api.cc;l=362-400;drc=7f7a5a42a57cbff5a0b966f59fdf426c01218602
Bug: b:443220047
Change-Id: I8d1b31a7ccd7163d18225f704cc93710048d1b5e
Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome;luci.chromium.try:linux-chromeos-rel,linux-chromeos-dbg;luci.chrome.try:chromeos-betty-chrome,chromeos-betty-chrome-dchecks
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7197221
Reviewed-by: Hidehiko Abe <[email protected]>
Reviewed-by: Darren Shen <[email protected]>
Commit-Queue: Bao-Duy Tran <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1550494}
NOKEYCHECK=True
GitOrigin-RevId: 42b18359b37c4d6ca87656ab3e933d74e37f676c
1 file changed