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

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: 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..9dd7f53e56a2823c40bac96bacd78bba86f8ba59 100644
--- a/chrome/browser/ui/webui/settings/people_handler.cc
+++ b/chrome/browser/ui/webui/settings/people_handler.cc
@@ -56,6 +56,7 @@
#include "net/base/url_util.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/webui/web_ui_util.h"
+#include "ui/keyboard/keyboard_util.h"
#if defined(OS_CHROMEOS)
#include "components/signin/core/browser/signin_manager_base.h"
@@ -198,6 +199,10 @@ void PeopleHandler::RegisterMessages() {
"SyncSetupManageOtherPeople",
base::Bind(&PeopleHandler::HandleManageOtherPeople,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback(
+ "EnableVirtualKeyboardOverride",
+ base::Bind(&PeopleHandler::HandleEnableVirtualKeyboardOverride,
+ base::Unretained(this)));
#if defined(OS_CHROMEOS)
web_ui()->RegisterMessageCallback(
"SyncSetupDoSignOutOnAuthError",
@@ -553,6 +558,13 @@ void PeopleHandler::HandleManageOtherPeople(const base::ListValue* /* args */) {
profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION);
}
+void PeopleHandler::HandleEnableVirtualKeyboardOverride(
+ const base::ListValue* args) {
+ bool hide_keyboard = false;
+ args->GetBoolean(0, &hide_keyboard);
+ keyboard::SetWebUiOverrideEnabled(hide_keyboard);
+}
+
void PeopleHandler::CloseSyncSetup() {
// Stop a timer to handle timeout in waiting for checking network connection.
backend_start_timer_.reset();

Powered by Google App Engine
This is Rietveld 408576698