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

Unified Diff: ui/keyboard/keyboard_ui_handler.cc

Issue 20526005: Implement virtual keyboard hiding. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Init Created 7 years, 5 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: ui/keyboard/keyboard_ui_handler.cc
diff --git a/ui/keyboard/keyboard_ui_handler.cc b/ui/keyboard/keyboard_ui_handler.cc
index 0c412675d3e8d1b8fd12231f6335d858db5945a3..7771a97ce29313d7856e45ea97430a1dca4e4114 100644
--- a/ui/keyboard/keyboard_ui_handler.cc
+++ b/ui/keyboard/keyboard_ui_handler.cc
@@ -13,6 +13,7 @@
#include "content/public/browser/web_contents_view.h"
#include "content/public/browser/web_ui.h"
#include "ui/aura/window.h"
+#include "ui/keyboard/keyboard_controller.h"
#include "ui/keyboard/keyboard_util.h"
namespace keyboard {
@@ -28,6 +29,10 @@ void KeyboardUIHandler::RegisterMessages() {
"insertText",
base::Bind(&KeyboardUIHandler::HandleInsertTextMessage,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback(
+ "hideKeyboard",
+ base::Bind(&KeyboardUIHandler::HandleHideKeyboard,
+ base::Unretained(this)));
}
void KeyboardUIHandler::HandleInsertTextMessage(const base::ListValue* args) {
@@ -48,4 +53,10 @@ void KeyboardUIHandler::HandleInsertTextMessage(const base::ListValue* args) {
LOG(ERROR) << "insertText failed";
}
+void KeyboardUIHandler::HandleHideKeyboard(const base::ListValue* args) {
+ // TODO(stevet): Call into the keyboard controller to hide the keyboard
+ // directly.
SteveT 2013/07/31 03:19:18 Looks like I encountered the same problem as you,
+ return;
+}
+
} // namespace keyboard

Powered by Google App Engine
This is Rietveld 408576698