Commit dfeceab4 authored by Leo Zhang's avatar Leo Zhang Committed by Commit Bot

Add mozc input logic IME feature.

Bug: 937152
Change-Id: Iecba7262a97ae67d2cf76ffa8fa3100f1628f864
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1852348Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Reviewed-by: default avatarLeo Zhang <googleo@chromium.org>
Commit-Queue: Leo Zhang <googleo@chromium.org>
Auto-Submit: Leo Zhang <googleo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704968}
parent a71e2342
...@@ -389,6 +389,9 @@ void ChromeVirtualKeyboardDelegate::OnHasInputDevices( ...@@ -389,6 +389,9 @@ void ChromeVirtualKeyboardDelegate::OnHasInputDevices(
"floatingkeyboarddefault", "floatingkeyboarddefault",
base::FeatureList::IsEnabled( base::FeatureList::IsEnabled(
chromeos::features::kVirtualKeyboardFloatingDefault))); chromeos::features::kVirtualKeyboardFloatingDefault)));
features->AppendString(GenerateFeatureFlag(
"mozcinputlogic",
base::FeatureList::IsEnabled(chromeos::features::kImeInputLogicMozc)));
results->Set("features", std::move(features)); results->Set("features", std::move(features));
......
...@@ -147,6 +147,11 @@ const base::Feature kImeInputLogicFst{"ImeInputLogicFst", ...@@ -147,6 +147,11 @@ const base::Feature kImeInputLogicFst{"ImeInputLogicFst",
const base::Feature kImeInputLogicFstNonEnglish{ const base::Feature kImeInputLogicFstNonEnglish{
"ImeInputLogicFstNonEnglish", base::FEATURE_DISABLED_BY_DEFAULT}; "ImeInputLogicFstNonEnglish", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable or disable Unified Input Logic for Mozc decoder in the IME extension
// on Chrome OS.
const base::Feature kImeInputLogicMozc{"ImeInputLogicMozc",
base::FEATURE_DISABLED_BY_DEFAULT};
// Enable or disable IME service decoder engine and 'ime' sandbox on Chrome OS. // Enable or disable IME service decoder engine and 'ime' sandbox on Chrome OS.
const base::Feature kImeDecoderWithSandbox{"ImeDecoderWithSandbox", const base::Feature kImeDecoderWithSandbox{"ImeDecoderWithSandbox",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
......
...@@ -72,6 +72,8 @@ extern const base::Feature kImeInputLogicFst; ...@@ -72,6 +72,8 @@ extern const base::Feature kImeInputLogicFst;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kImeInputLogicFstNonEnglish; extern const base::Feature kImeInputLogicFstNonEnglish;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kImeInputLogicMozc;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kImeDecoderWithSandbox; extern const base::Feature kImeDecoderWithSandbox;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kVirtualKeyboardFloatingDefault; extern const base::Feature kVirtualKeyboardFloatingDefault;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment