Adding missing UpdateTextInputState calls after each ime event.
Adding the missing UpdateTextInputState calls after each ime event and
preventing updates midway through ime event.
Added missing calls will start sending UpdateSelection updates to the
IMEs.
i.e. confirmComposition can cause multiple didChangeSelection calls but
we only care about the last one.
BUG=172845
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/12093068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182534 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 725bdc5..872aea6 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -543,6 +543,9 @@
// Are we currently handling an input event?
bool handling_input_event_;
+ // Are we currently handling an ime event?
+ bool handling_ime_event_;
+
// True if we have requested this widget be closed. No more messages will
// be sent, except for a Close.
bool closing_;