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

Unified Diff: ui/keyboard/keyboard_util.cc

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright notice. Created 6 years, 9 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
« ui/aura/client/virtual_keyboard_client.h ('K') | « ui/keyboard/keyboard_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_util.cc
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc
index 4d717395518935a833792b0ab5ff0a23f55bda5a..60431b03c48748b6bd80956df6cf8e4a62b713e6 100644
--- a/ui/keyboard/keyboard_util.cc
+++ b/ui/keyboard/keyboard_util.cc
@@ -103,6 +103,22 @@ bool IsKeyboardUsabilityExperimentEnabled() {
switches::kKeyboardUsabilityExperiment);
}
+bool IsKeyboardOverscrollEnabled() {
+ if (!IsKeyboardEnabled())
+ return false;
+ if (g_accessibility_keyboard_enabled)
+ return false;
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableVirtualKeyboardOverscroll)) {
+ return false;
+ }
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableVirtualKeyboardOverscroll)) {
+ return true;
+ }
+ return false;
+}
+
bool InsertText(const base::string16& text, aura::Window* root_window) {
if (!root_window)
return false;
« ui/aura/client/virtual_keyboard_client.h ('K') | « ui/keyboard/keyboard_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698