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

Unified Diff: content/renderer/render_widget.h

Issue 2466283002: [WIP Approach 2] Straighten up input method reactivation
Patch Set: 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 391ee08c8529bf4013c93c2332da883bc2bd647c..136b8e4c34f173bb8df2899fe64b6d5285e4f8fc 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -346,6 +346,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();
@@ -507,6 +510,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);
@@ -687,6 +693,10 @@ 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_;;
+
// 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