Index: ui/aura/window_tree_host.h |
diff --git a/ui/aura/window_tree_host.h b/ui/aura/window_tree_host.h |
index 73e641fa9022f3e53ddf5d011ed3a104fbf2c99f..edd5d6df34346a6309d6ea16f09cc44b8b657d88 100644 |
--- a/ui/aura/window_tree_host.h |
+++ b/ui/aura/window_tree_host.h |
@@ -133,6 +133,7 @@ class AURA_EXPORT WindowTreeHost : public ui::internal::InputMethodDelegate, |
// Gets the InputMethod instance, if NULL, creates & owns it. |
ui::InputMethod* GetInputMethod(); |
+ bool has_input_method() const { return input_method_ != nullptr; } |
// Sets a shared unowned InputMethod. This is used when there is a singleton |
// InputMethod shared between multiple WindowTreeHost instances. |