Chromium Code Reviews| Index: ui/keyboard/keyboard_util.h |
| diff --git a/ui/keyboard/keyboard_util.h b/ui/keyboard/keyboard_util.h |
| index 2eefc9b02d69e4962ba86066fde314e0dd67675a..ef0ae61a4ebca7719b65add8fd1286c58545dbf2 100644 |
| --- a/ui/keyboard/keyboard_util.h |
| +++ b/ui/keyboard/keyboard_util.h |
| @@ -65,6 +65,14 @@ enum KeyboardState { |
| KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds( |
| const gfx::Rect& root_bounds, int keyboard_height); |
| +// Blocks the keyboard from showing up. This should only be used for cases where |
| +// the focus needs to be passed around without poping up the keyboard. It needs |
| +// to be turned off when done with otherwise the keyboard will not pop up again. |
| +KEYBOARD_EXPORT void SetForceDisableVirtualKeyboardForWebUi(bool disable); |
|
xiyuan
2016/11/09 18:06:32
Why do we need to call out "webui" in the API? Can
sammiequon
2016/11/10 21:06:01
I added the webui becuase this function is used ex
xiyuan
2016/11/10 21:48:35
As an API, it should be generic. I would say drop
sammiequon
2016/11/10 22:36:56
Dropped. Using SetRequestedKeyboardState would onl
xiyuan
2016/11/10 22:40:58
Acknowledged.
|
| + |
| +// Return true if keyboard has been blocked from showing up for web ui purposes. |
| +KEYBOARD_EXPORT bool GetForceDisableVirtualKeyboardForWebUi(); |
| + |
| // Sets the state of the a11y onscreen keyboard. |
| KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); |