assistant: Add key remapping feature

Desktop / Chromium - Meilin Wang [google.com] - 27 February 2019 22:01 EST

Implement Assistant Key remapping like other neighbors and add a feature flag to guard this new feature.

Bug: 784857 Test: local compile and manually test. Change-Id: I595b836084d5af558edd5077350faff96c61db59 Reviewed-on: https://chromium-review.googlesource.com/c/1471299 Commit-Queue: Meilin Wang

8a1e95b460ef assistant: Add key remapping feature.
chrome/app/settings_strings.grdp | 3 +
chrome/browser/chromeos/preferences.cc | 5 ++
.../extensions/api/settings_private/prefs_util.cc | 2 +
.../resources/settings/device_page/keyboard.html | 9 +++
.../resources/settings/device_page/keyboard.js | 9 +++
.../settings/chromeos/device_keyboard_handler.cc | 8 +++
.../md_settings_localized_strings_provider.cc | 1 +
chromeos/services/assistant/public/features.cc | 7 +++
chromeos/services/assistant/public/features.h | 8 ++-
ui/chromeos/events/BUILD.gn | 1 +
ui/chromeos/events/event_rewriter_chromeos.cc | 68 ++++++++++++++++++----
ui/chromeos/events/event_rewriter_chromeos.h | 11 +++-
ui/chromeos/events/keyboard_layout_util.cc | 19 +++++-
ui/chromeos/events/keyboard_layout_util.h | 4 ++
ui/chromeos/events/modifier_key.h | 1 +
ui/chromeos/events/pref_names.cc | 2 +
ui/chromeos/events/pref_names.h | 1 +
17 files changed, 144 insertions(+), 15 deletions(-)

Upstream: git.chromium.org


  • Share