Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: ui/keyboard/keyboard_util.h

Issue 2444443002: cros: Allow pin keyboard to keep focus without popping up the pin keyboard. (Closed)
Patch Set: Closure compiler. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/keyboard_util.h
diff --git a/ui/keyboard/keyboard_util.h b/ui/keyboard/keyboard_util.h
index 2eefc9b02d69e4962ba86066fde314e0dd67675a..560690ac5d8c159748bc759931c7f6ca9d888cb9 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 SetForceDisableVirtualKeyboard(bool disable);
+
+// Return true if keyboard has been blocked from showing up for web ui purposes.
+KEYBOARD_EXPORT bool GetForceDisableVirtualKeyboard();
+
// Sets the state of the a11y onscreen keyboard.
KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled);
« no previous file with comments | « ui/keyboard/BUILD.gn ('k') | ui/keyboard/keyboard_util.cc » ('j') | ui/keyboard/keyboard_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698