Commit 83db002b authored by Yingbing Wu's avatar Yingbing Wu Committed by Commit Bot

[VK] Expose enable-virtual-keyboard-md-ui flag value to the keyboard...

[VK] Expose enable-virtual-keyboard-md-ui flag value to the keyboard configuration of  API "chrome.virtualKeyboardPrivate.getConfig".

Change-Id: I7c8832c8d7a259774a2377eab60227f93b291c0a
Reviewed-on: https://chromium-review.googlesource.com/1103421Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
Commit-Queue: Yingbing Wu <wuyingbing@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567928}
parent 3de461f4
...@@ -268,6 +268,8 @@ void ChromeVirtualKeyboardDelegate::OnHasInputDevices( ...@@ -268,6 +268,8 @@ void ChromeVirtualKeyboardDelegate::OnHasInputDevices(
features->AppendString(GenerateFeatureFlag( features->AppendString(GenerateFeatureFlag(
"fullscreenhandwriting", "fullscreenhandwriting",
keyboard::IsFullscreenHandwritingVirtualKeyboardEnabled())); keyboard::IsFullscreenHandwritingVirtualKeyboardEnabled()));
features->AppendString(GenerateFeatureFlag(
"virtualkeyboardmdui", keyboard::IsVirtualKeyboardMdUiEnabled()));
const keyboard::KeyboardConfig config = keyboard::GetKeyboardConfig(); const keyboard::KeyboardConfig config = keyboard::GetKeyboardConfig();
// TODO(oka): Change this to use config.voice_input. // TODO(oka): Change this to use config.voice_input.
......
...@@ -33,6 +33,9 @@ KEYBOARD_EXPORT extern const char kEnableVirtualKeyboard[]; ...@@ -33,6 +33,9 @@ KEYBOARD_EXPORT extern const char kEnableVirtualKeyboard[];
// Floating virtual keyboard flag. // Floating virtual keyboard flag.
KEYBOARD_EXPORT extern const char kEnableFloatingVirtualKeyboard[]; KEYBOARD_EXPORT extern const char kEnableFloatingVirtualKeyboard[];
// Virtual keyboard material design UI flag.
KEYBOARD_EXPORT extern const char kEnableVirtualKeyboardMdUi[];
// Disabled overscrolling of web content when the virtual keyboard is displayed. // Disabled overscrolling of web content when the virtual keyboard is displayed.
// If disabled, the work area is resized to restrict windows from overlapping // If disabled, the work area is resized to restrict windows from overlapping
// with the keybaord area. // with the keybaord area.
......
...@@ -203,6 +203,10 @@ bool IsStylusVirtualKeyboardEnabled() { ...@@ -203,6 +203,10 @@ bool IsStylusVirtualKeyboardEnabled() {
return base::FeatureList::IsEnabled(features::kEnableStylusVirtualKeyboard); return base::FeatureList::IsEnabled(features::kEnableStylusVirtualKeyboard);
} }
bool IsVirtualKeyboardMdUiEnabled() {
return base::FeatureList::IsEnabled(features::kEnableVirtualKeyboardMdUi);
}
bool IsGestureTypingEnabled() { bool IsGestureTypingEnabled() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch( return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableGestureTyping); switches::kDisableGestureTyping);
......
...@@ -142,6 +142,9 @@ KEYBOARD_EXPORT bool IsFullscreenHandwritingVirtualKeyboardEnabled(); ...@@ -142,6 +142,9 @@ KEYBOARD_EXPORT bool IsFullscreenHandwritingVirtualKeyboardEnabled();
// Returns true if stylus virtual keyboard feature is enabled. // Returns true if stylus virtual keyboard feature is enabled.
KEYBOARD_EXPORT bool IsStylusVirtualKeyboardEnabled(); KEYBOARD_EXPORT bool IsStylusVirtualKeyboardEnabled();
// Returns true if virtual keyboard md ui feature is enabled.
KEYBOARD_EXPORT bool IsVirtualKeyboardMdUiEnabled();
// Returns true if gesture typing option is enabled for virtual keyboard. // Returns true if gesture typing option is enabled for virtual keyboard.
KEYBOARD_EXPORT bool IsGestureTypingEnabled(); KEYBOARD_EXPORT bool IsGestureTypingEnabled();
......
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