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

Unified Diff: chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc

Issue 2260653002: Pin keyboard works with virtual keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 3 errors. Created 4 years, 4 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/chromeos/login/core_oobe_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
index e260f3fa102a460bc5713da3e60ee48466b70cab..7d6ff0de602d8048e09c6d91a7284dda6fdc86fa 100644
--- a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
@@ -278,6 +278,10 @@ void CoreOobeHandler::ShowControlBar(bool show) {
CallJSOrDefer("showControlBar", show);
}
+void CoreOobeHandler::ShowPinKeyboard(bool show) {
+ CallJSOrDefer("showPinKeyboard", show);
+}
+
void CoreOobeHandler::SetClientAreaSize(int width, int height) {
CallJSOrDefer("setClientAreaSize", width, height);
}
@@ -449,6 +453,7 @@ void CoreOobeHandler::UpdateKeyboardState() {
if (keyboard_controller) {
gfx::Rect bounds = keyboard_controller->current_keyboard_bounds();
ShowControlBar(bounds.IsEmpty());
+ ShowPinKeyboard(bounds.IsEmpty());
}
}

Powered by Google App Engine
This is Rietveld 408576698