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

Unified Diff: ui/keyboard/keyboard_util.h

Issue 292233002: Disable VK overscroll for login/out-of-box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, keyboard override value: convert to bool Created 6 years, 7 months 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
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_util.h
diff --git a/ui/keyboard/keyboard_util.h b/ui/keyboard/keyboard_util.h
index bc343bda7b654b5603977069bae1900296f97cc4..c3ef7aff3d90b4a392836ebf0eec12f2973fe8fb 100644
--- a/ui/keyboard/keyboard_util.h
+++ b/ui/keyboard/keyboard_util.h
@@ -38,6 +38,13 @@ enum KeyboardControlEvent {
KEYBOARD_CONTROL_MAX,
};
+// An enumeration of keyboard overscroll override value.
+enum KeyboardOverscrolOverride {
+ KEYBOARD_OVERSCROLL_OVERRIDE_DISABLED = 0,
+ KEYBOARD_OVERSCROLL_OVERRIDE_ENABLED,
+ KEYBOARD_OVERSCROLL_OVERRIDE_NONE,
+};
+
// Gets the default keyboard bounds from |window_bounds|.
KEYBOARD_EXPORT gfx::Rect DefaultKeyboardBoundsFromWindowBounds(
const gfx::Rect& window_bounds);
@@ -71,6 +78,10 @@ KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled();
// Returns true if keyboard overscroll mode is enabled.
KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled();
+// Sets temporary keyboard overscroll override.
+KEYBOARD_EXPORT void SetKeyboardOverscrollOverride(
+ KeyboardOverscrolOverride override);
+
// Returns true if an IME extension can specify a custom input view for the
// virtual keyboard window.
KEYBOARD_EXPORT bool IsInputViewEnabled();
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698