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

Unified Diff: content/renderer/render_widget.h

Issue 2470713002: [WIP Approach 1] Straighten up input method reactivation
Patch Set: fix some tests Created 4 years, 1 month 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 5bde3b184419e453b372dd7994374c0d46c9717c..2218f47107166c7657f104c2b692ebf6425bd9ac 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -337,6 +337,9 @@ class CONTENT_EXPORT RenderWidget
// |policy| see the comment on MessageDeliveryPolicy.
void QueueMessage(IPC::Message* msg, MessageDeliveryPolicy policy);
+ void CancelComposition();
+ void OnFocusedNodeChanged(bool is_editable, const gfx::Rect& node_bounds);
+
// Check whether IME thread is being used or not.
bool IsUsingImeThread();
@@ -498,6 +501,9 @@ class CONTENT_EXPORT RenderWidget
void OnSetFrameSinkId(const cc::FrameSinkId& frame_sink_id);
void OnHandleCompositorProto(const std::vector<uint8_t>& proto);
+ void UpdateTextInputStateInternal(ShowIme show_ime,
+ ChangeSource change_source,
+ bool ignore_until_ack);
#if defined(OS_ANDROID)
// Called when we send IME event that expects an ACK.
void OnImeEventSentForAck(const blink::WebTextInputInfo& info);
@@ -678,6 +684,13 @@ class CONTENT_EXPORT RenderWidget
// input state.
bool ime_in_batch_edit_;
+ // Indicates that we will ignore IME related messages from host until the
+ // new text input state update is acked by the host.
+ bool ime_ignore_until_acked_;;
+
+ // A queue of messages to send after we update the text input state.
+ std::vector<IPC::Message*> ime_messages_to_send_after_update_;
+
// True if we have requested this widget be closed. No more messages will
// be sent, except for a Close.
bool closing_;
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698