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

Unified Diff: chrome/browser/ui/webui/settings/people_handler.cc

Issue 2444443002: cros: Allow pin keyboard to keep focus without popping up the pin keyboard. (Closed)
Patch Set: Fixed patch set 2 errors. Created 4 years, 2 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
Index: chrome/browser/ui/webui/settings/people_handler.cc
diff --git a/chrome/browser/ui/webui/settings/people_handler.cc b/chrome/browser/ui/webui/settings/people_handler.cc
index 55ebfe8cc730bdb06ba1a7e24bf6a7ee4473c378..09c0671d452f876bc6d90c5f8ec2e8fd318ab357 100644
--- a/chrome/browser/ui/webui/settings/people_handler.cc
+++ b/chrome/browser/ui/webui/settings/people_handler.cc
@@ -59,6 +59,7 @@
#if defined(OS_CHROMEOS)
#include "components/signin/core/browser/signin_manager_base.h"
+#include "ui/keyboard/keyboard_util.h"
#else
#include "components/signin/core/browser/signin_manager.h"
#endif
@@ -203,6 +204,10 @@ void PeopleHandler::RegisterMessages() {
"SyncSetupDoSignOutOnAuthError",
base::Bind(&PeopleHandler::HandleDoSignOutOnAuthError,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback(
+ "SetForceDisableVirtualKeyboard",
+ base::Bind(&PeopleHandler::HandleSetForceDisableVirtualKeyboard,
+ base::Unretained(this)));
#else
web_ui()->RegisterMessageCallback(
"SyncSetupStopSyncing",
@@ -502,6 +507,13 @@ void PeopleHandler::HandleDoSignOutOnAuthError(const base::ListValue* args) {
DVLOG(1) << "Signing out the user to fix a sync error.";
chrome::AttemptUserExit();
}
+
+void PeopleHandler::HandleSetForceDisableVirtualKeyboard(
+ const base::ListValue* args) {
+ bool disable_keyboard = false;
+ args->GetBoolean(0, &disable_keyboard);
+ keyboard::SetForceDisableVirtualKeyboardForWebUi(disable_keyboard);
+}
#endif
#if !defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698