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

Unified Diff: content/browser/renderer_host/text_input_manager.h

Issue 2098353005: Implement RenderWidgetHostViewBase::ImeCancelComposition for all Views (Aura Only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the Incorrect DCHECK_EQ Created 4 years, 6 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/browser/renderer_host/text_input_manager.h
diff --git a/content/browser/renderer_host/text_input_manager.h b/content/browser/renderer_host/text_input_manager.h
index 39309a58342d79e126b7b0ad9d279d5f2ec8cbad..b5fde7f6dc39b13ad404320995bc8d8376e57d88 100644
--- a/content/browser/renderer_host/text_input_manager.h
+++ b/content/browser/renderer_host/text_input_manager.h
@@ -36,6 +36,11 @@ class CONTENT_EXPORT TextInputManager {
TextInputManager* text_input_manager,
RenderWidgetHostViewBase* updated_view,
bool did_update_state) {}
+ // Called when |updated_view| has called ImeCancelComposition on
+ // TextInputManager.
+ virtual void OnImeCancelComposition(
+ TextInputManager* text_input_manager,
+ RenderWidgetHostViewBase* updated_view) {}
};
TextInputManager();
@@ -62,6 +67,10 @@ class CONTENT_EXPORT TextInputManager {
void UpdateTextInputState(RenderWidgetHostViewBase* view,
const TextInputState& state);
+ // The current IME composition has been cancelled on the renderer side for
+ // the widget corresponding to |view|.
+ void ImeCancelComposition(RenderWidgetHostViewBase* view);
+
// Registers the given |view| for tracking its TextInputState. This is called
// by any view which has updates in its TextInputState (whether tab's RWHV or
// that of a child frame). The |view| must unregister itself before being

Powered by Google App Engine
This is Rietveld 408576698