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

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 closure compilation. 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 5522675942982137d960c356b9386c512eb07ff2..63c07a7bce4891abf7d45fcb82b0d96181b8c919 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