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

Unified Diff: ui/keyboard/keyboard_controller.cc

Issue 2603663002: Make IME extensions decide when to show the keyboard. (Closed)
Patch Set: Created 4 years 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_controller.cc
diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc
index fa52b2add4fe432f747fd09dec87fd7b4f03f465..1a6a2e102a755a52858eddf6efbc170f9b866515 100644
--- a/ui/keyboard/keyboard_controller.cc
+++ b/ui/keyboard/keyboard_controller.cc
@@ -306,6 +306,10 @@ void KeyboardController::ShowKeyboardInDisplay(int64_t display_id) {
ShowKeyboardInternal(display_id);
}
+bool KeyboardController::IsKeyboardWindowCreated() {
+ return container_ != nullptr && !container_->children().empty();
bshe 2016/12/29 19:22:15 you can probably use if you just want to test if k
Azure Wei 2017/01/03 03:37:40 Done. Thanks.
+}
+
void KeyboardController::OnWindowHierarchyChanged(
const HierarchyChangeParams& params) {
if (params.new_parent && params.target == container_.get())
« ash/common/system/chromeos/ime_menu/ime_menu_tray.cc ('K') | « ui/keyboard/keyboard_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698