Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index 119c651aa5b56eecdd929641037a933de78b8770..7c9366d0c0b79190da3d97310f734fd07bd28f9e 100644 |
--- a/content/renderer/render_widget.h |
+++ b/content/renderer/render_widget.h |
@@ -349,9 +349,16 @@ class CONTENT_EXPORT RenderWidget |
throttle_input_events_ = throttle_input_events; |
} |
+ enum ShowIme { |
+ DO_NOT_SHOW_IME, |
+ SHOW_IME_IF_NEEDED |
+ }; |
+ |
// Checks if the text input state and compose inline mode have been changed. |
// If they are changed, the new value will be sent to the browser process. |
- void UpdateTextInputState(); |
+ // |show_ime_if_needed| should be SHOW_IME_IF_NEEDED iff the update may cause |
+ // the ime to be displayed, e.g. after a tap on an input field on mobile. |
+ void UpdateTextInputState(ShowIme show_ime); |
// Checks if the selection bounds have been changed. If they are changed, |
// the new value will be sent to the browser process. |