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

Unified Diff: content/renderer/render_widget.h

Issue 2355483006: Allow some InputConnection methods to be called on UI thread (Closed)
Patch Set: Created 4 years, 3 months 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: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 0ff4d8fa3a51560cd9d28164727af198750ef72e..be6a4aafd3fc1c3e6b7e5badae85b49eb98019fe 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -506,6 +506,10 @@ class CONTENT_EXPORT RenderWidget
// Called by the browser process to update text input state.
void OnRequestTextInputStateUpdate();
+
+ // Called by the browser process to begin (when |begin| is set) or end batch
+ // edit mode. Note that text input state will not be updated in this mode.
+ void OnImeBatchEdit(bool begin);
#endif
// Called by the browser process to update the cursor and composition
@@ -671,6 +675,10 @@ class CONTENT_EXPORT RenderWidget
// ImeEventGuard. We keep track of the outermost one, and update it as needed.
ImeEventGuard* ime_event_guard_;
+ // Whether IME is in batch edit mode, in which case we do not update text
+ // input state.
+ bool ime_in_batch_edit_;
+
// True if we have requested this widget be closed. No more messages will
// be sent, except for a Close.
bool closing_;

Powered by Google App Engine
This is Rietveld 408576698