Chromium Code Reviews| 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()) |