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

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

Issue 2229223002: Route IME-related IPCs to the active/focused RenderWidget (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed erickchen@ comments + Making RWHVMacTest -> InputMethodMacTest. Created 4 years, 4 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/render_widget_host_view_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index 1021356aa272b33df34819c52d92190825e5a5c5..60633b5618868c9a0b28d856e2bf2c284979ed81 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -476,6 +476,11 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
// TextInputManager.
ui::TextInputType GetTextInputType();
+ // Helper method to obtain the currently active widget from TextInputManager.
+ // An active widget is a RenderWidget which is currently focused and has a
+ // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE.
+ RenderWidgetHostImpl* GetActiveWidget();
+
private:
friend class RenderWidgetHostViewMacTest;

Powered by Google App Engine
This is Rietveld 408576698