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

Issue 2045363002: Routing IME Result Calls to the Correct RenderWidgetHost (Aura Only) (Closed)

Created:
4 years, 6 months ago by EhsanK
Modified:
4 years, 6 months ago
Reviewers:
kenrb, Charlie Reis
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Routing IME Result Calls to the Correct RenderWidgetHost (Aura Only) Currently, the IME result calls on ui::TextInputClient (RenderWidgetHostViewAura) are only routed to the RenderWidgetHostImpl corresponding to the tab's RenderWidgetHostView. Therefore, the IME related IPC arrive at the main frame's RenderWidget only. In the OOPIF structure, the IME result might be intended to a child frame's RenderWidget. This patch will route all such IME calls to the RenderWidgetHost which currently has the active text input state. The patch also adds four unit tests to RenderWidgetHostViewAuraTests to verify that the routing is done properly. BUG=578168 Committed: https://crrev.com/d33fd7859cac797067a2b8a8e55f6dbac59bee19 Cr-Commit-Position: refs/heads/master@{#401465}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressing kenrb@ comments #

Patch Set 3 : Fixing a comment #

Total comments: 23

Patch Set 4 : Addressing creis@ and kenrb@ comments #

Patch Set 5 : Fixing a compile error #

Patch Set 6 : Rebase #

Total comments: 8

Patch Set 7 : Addressing creis@'s comments #

Patch Set 8 : Formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -26 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 2 chunks +15 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 8 chunks +220 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 5 6 4 chunks +17 lines, -5 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 24 (8 generated)
EhsanK
Ken, Charlie, This is the first followup patch to the TextInputState tracking which deals with ...
4 years, 6 months ago (2016-06-08 16:58:43 UTC) #2
kenrb
This looks good, just a few comments. https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1441 content/browser/renderer_host/render_widget_host_view_aura.cc:1441: // TODO(wjmaclean): ...
4 years, 6 months ago (2016-06-13 19:37:47 UTC) #3
EhsanK
PTAL. https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1441 content/browser/renderer_host/render_widget_host_view_aura.cc:1441: // TODO(wjmaclean): can host_ ever be null? On ...
4 years, 6 months ago (2016-06-17 22:36:20 UTC) #4
kenrb
https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1462 content/browser/renderer_host/render_widget_host_view_aura.cc:1462: text_input_manager_->GetActiveWidget()->ImeSetComposition( On 2016/06/17 22:36:19, ehsaaan (OOO till June 22) ...
4 years, 6 months ago (2016-06-20 16:04:06 UTC) #5
Charlie Reis
Sending a few style comments while I have a chance, to get them out of ...
4 years, 6 months ago (2016-06-21 21:13:56 UTC) #7
EhsanK
Thanks for the reviews. PTAL. https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1462 content/browser/renderer_host/render_widget_host_view_aura.cc:1462: text_input_manager_->GetActiveWidget()->ImeSetComposition( On 2016/06/20 16:04:06, ...
4 years, 6 months ago (2016-06-22 18:26:33 UTC) #8
Charlie Reis
https://codereview.chromium.org/2045363002/diff/40001/content/browser/renderer_host/text_input_manager.cc File content/browser/renderer_host/text_input_manager.cc (right): https://codereview.chromium.org/2045363002/diff/40001/content/browser/renderer_host/text_input_manager.cc#newcode51 content/browser/renderer_host/text_input_manager.cc:51: RenderWidgetHostImpl* TextInputManager::GetActiveWidget() const { On 2016/06/22 18:26:33, ehsaaan (OOO ...
4 years, 6 months ago (2016-06-22 19:19:15 UTC) #9
kenrb
Aside from creis' comments still outstanding, this looks good. lgtm https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1462 ...
4 years, 6 months ago (2016-06-22 19:39:50 UTC) #10
Charlie Reis
https://codereview.chromium.org/2045363002/diff/40001/content/browser/renderer_host/text_input_manager.cc File content/browser/renderer_host/text_input_manager.cc (right): https://codereview.chromium.org/2045363002/diff/40001/content/browser/renderer_host/text_input_manager.cc#newcode51 content/browser/renderer_host/text_input_manager.cc:51: RenderWidgetHostImpl* TextInputManager::GetActiveWidget() const { On 2016/06/22 19:39:50, kenrb wrote: ...
4 years, 6 months ago (2016-06-22 20:23:08 UTC) #11
EhsanK
Thanks for the reviews! PTAL. https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2045363002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1462 content/browser/renderer_host/render_widget_host_view_aura.cc:1462: text_input_manager_->GetActiveWidget()->ImeSetComposition( On 2016/06/22 19:39:50, ...
4 years, 6 months ago (2016-06-22 20:56:44 UTC) #12
Charlie Reis
Thanks, LGTM.
4 years, 6 months ago (2016-06-22 22:43:48 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045363002/140001
4 years, 6 months ago (2016-06-22 22:45:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045363002/140001
4 years, 6 months ago (2016-06-22 23:26:54 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-22 23:42:22 UTC) #21
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/d33fd7859cac797067a2b8a8e55f6dbac59bee19 Cr-Commit-Position: refs/heads/master@{#401465}
4 years, 6 months ago (2016-06-22 23:50:24 UTC) #23
Reilly Grant (use Gerrit)
4 years, 6 months ago (2016-06-23 23:43:03 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2095813002/ by reillyg@chromium.org.

The reason for reverting is: This patch added unit tests that leave behind state
that will break other tests if content_unittests is run with
--single-process-tests (as it is on the Dr. Memory bots)..

Powered by Google App Engine
This is Rietveld 408576698